Village officials wrote the ban after the Parkland, Florida school massacre.
The Deerfield Village Board had unanimously approved the ordinance back in April. The ban was scheduled to take effect today, June 13.
But some Deerfield residents went to court, and said law-abiding gun owners shouldn't be punished.
Deerfield says it'll obey the judge's order, but it might appeal it.
The case will be back in court on July 20.
Copyright 2023 by Cable News Network, Inc., a Time Warner Company. All rights reserved.