An Illinois judge blocked an impending ban on assault weapons within a suburb outside of Chicago just hours before it was set to go into effect.

The Deerfield Village Board voted unanimously in April in favor of an amendment to its gun ordinance to restrict some semi-automatic firearms.

Current or retired law enforcement personnel were exempt from the law, and residents would have faced fines of up to $1,000 per day if they didn't comply with the ordinance.

In response to the order from Judge Luis Berrones, the village said in a statement, "We are certainly going to review all of the options available to the village, including the right to appeal the decision to the Illinois appellate court."

Town Near Chicago Votes to Ban Assault Weapons, High-Capacity Magazines

According to Deerfield Patch, the village's mayor asked village staff to draw up a possible ban after the Feb. 14 shooting in Parkland, Florida.

"[Mayor Harriet Rosenthal] said the state provided local municipalities the opportunity to amend local firearm regulations," Jonah Meadows reported.

The order to block the ban came after lawsuits were filed by a pair of residents that were supported by gun advocacy groups both within Illinois and nationally.

Illinois State Rifle Association Executive Director Richard Pearson had called the potential ban a "slippery slope" and said that he'd fight it to the Supreme Court.

Supporters of the ban have said they will appeal the judge's ruling.

'Everything Is at Stake': State Rifle Association Fights Weapons Ban in Illinois Town

GA Teacher Assigns Students to Write Letters to Lawmakers Pushing for Gun Control

'The 2nd Amendment Is Outdated': Phillips Talks to Students Marching for Gun Control