TALLAHASSEE, Fla. (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.

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

READ MORE: Most Popular Dog And Cat Names Of 2021: Is Your Pet's Name On The List?

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

READ MORE: CHiPs For Kids | Donation Information

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 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: CHiPs For Kids Toy Drive Kicks Off For 2021

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)