Follow CBSMIAMI.COM: Facebook | Twitter

TALLAHASSEE (CBSMiami/AP) — The National Rifle Association has filed a  federal lawsuit over gun control legislation Florida Gov. Rick Scott has signed, saying it violates the Second Amendment by raising the age to buy guns from 18 to 21.

READ MORE: Seminoles Suspend Sports Betting After Court Rulings

The lawsuit came just hours after Gov. Scott, a Republican, signed the compromise bill Friday afternoon.

Chris W. Cox, executive director of the NRA’s Institute for Legislative Action, says the bill “punishes law-abiding gun owners for the criminal acts of a deranged individual.”

Lawyers for the NRA want a federal judge to block the new age restriction from taking effect.

READ MORE: 23rd Annual 'A Home For The Holidays At The Grove' Comes To CBS On Sunday, December 5th

The new legislation raises the minimum age to buy rifles from 18 to 21, extends a three-day waiting period for handgun purchases to include long guns and bans bump stocks that allow guns to mimic fully automatic fire. It also creates a so-called “guardian” program that enables teachers and other school employees to carry handguns.

‘The State of Florida, however, has recently prohibited an entire class of law-abiding, responsible citizens from fully exercising the right to keep an bear arms-namely, adults who have reached the age of 18 but are not yet 21,” the lawsuit reads.

It goes on to say, “At 18 years of age, law-abiding citizens in this country are considered adults for almost all purposes and certainly for the purposes of the exercise of fundamental constitutional right.”

The new measures come in the wake of the Feb. 14 shooting rampage at Marjory Stoneman Douglas High School in Parkland, Florida, that killed 17 people.

MORE NEWS: Sharp Increase In Hospitalized Children With Covid Investigated In South Africa

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)