CORRECTS ID OF WOMAN TO GENA HOYER INSTEAD OF JENNIFER MONTALTO - Florida Gov. Rick Scott signs the Marjory Stoneman Douglas Public Safety Act in the governor's office at the Florida State Capitol in Tallahassee, Fla., Friday, March 9, 2018. Scott is flanked by victims' parents Gena Hoyer, left, Ryan Petty, second from left, Andrew Pollack, right, and his son Hunter Pollack, second from right. (AP Photo/Mark Wallheiser)

CORRECTS ID OF WOMAN TO GENA HOYER INSTEAD OF JENNIFER MONTALTO - Florida Gov. Rick Scott signs the Marjory Stoneman Douglas Public Safety Act in the governor's office at the Florida State Capitol in Tallahassee, Fla., Friday, March 9, 2018. Scott is flanked by victims' parents Gena Hoyer, left, Ryan Petty, second from left, Andrew Pollack, right, and his son Hunter Pollack, second from right. (AP Photo/Mark Wallheiser)

TALLAHASSEE, Fla. (AP) — Florida Gov. Rick Scott signed a far-reaching school-safety bill Friday that places new restrictions on guns in the aftermath of a deadly school shooting, cementing his state’s break with the National Rifle Association. The NRA immediately fought back with a lawsuit.

The new law capped an extraordinary three weeks of lobbying that followed the shooting at Marjory Stoneman Douglas High School, with student survivors and grieving families working to persuade a Republican-run state government that had shunned gun control measures.

ADVERTISEMENT

Surrounded by family members of the 17 people killed in the Valentine’s Day shooting, the GOP governor said the bill balances “our individual rights with need for public safety.”

“It’s an example to the entire country that government can and has moved fast,” said Scott, whose state has been ruled for 20 years by gun-friendly Republican lawmakers.

Tony Montalto, whose daughter Gina was killed in the shooting, read a statement from victims’ families: “When it comes to preventing future acts of horrific school violence, this is the beginning of the journey. We have paid a terrible price for this progress.”

The bill fell short of achieving the ban on assault-style weapons sought by survivors. The gunman who opened fire at the school used such a weapon, an AR-15 rifle.

Nevertheless, the bill 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, which allow guns to mimic fully automatic fire. It also creates a so-called guardian program enabling some teachers and other school employees to carry guns.

The NRA insisted that the measure “punishes law-abiding gun owners for the criminal acts of a deranged individual.” The group promptly filed a lawsuit to block the provision that raises the age to buy guns, arguing that it violates the Second Amendment.

The Parkland gunman “gave repeated warning signs that were ignored by federal and state officials. If we want to prevent future atrocities, we must look for solutions that keep guns out of the hands of those who are a danger to themselves or others, while protecting the rights of law-abiding Americans,” Chris W. Cox, executive director of the NRA’s Institute for Legislative Action, said in a statement.

ADVERTISEMENT

The signing marked a major victory for the teens who lived through the attack and swiftly became the public faces of a renewed gun-control movement. Just days after the shooting, they began holding rallies, lobbying lawmakers and harnessing the power of social media in support of reform.

The governor told the students: “You helped change our state. You made a difference. You should be proud.”

Scott, who said he is an NRA member and will continue to be one, said he is still “not persuaded” about the guardian program that will let districts authorize staff members to carry handguns if they complete law enforcement training. It is not mandatory.

“If counties don’t want to do this, they can simply say no,” he said.

Andrew Pollack, whose daughter Meadow died, called the new law “a start for us.”

His teenage son Hunter added: “Let’s get the rest of the country to follow our lead and let’s make schools safe. Let’s harden the schools and make sure this never happens again.”

The governor singled out two fathers whose children were killed, saying that they walked the halls of the Legislature since the shooting seeking change.

“I know the debate on all these issues will continue. And that’s healthy in our democracy,” he said. “This is a time for all of us to come together, roll up our sleeves and get it done.”

Student activists from the school called it “a baby step.”

“Obviously, this is what we’ve been fighting for. It’s nowhere near the long-term solution,” said Chris Grady, a senior at Stoneman Douglas High. “It’s a baby step but a huge step at the same time. Florida hasn’t passed any legislation like this in God knows how long.”

The bill narrowly passed the House and Senate, which formally delivered the reform package on Thursday.

In schools, the measure creates new mental health programs and establishes an anonymous tip line for reporting threats. It also seeks to improve communication between schools, law enforcement and state agencies.

Broward County teachers union President Anna Fusco said teachers supported the bill but not the provision that allows them to carry guns.

She said she wants Scott to veto the money for the guardian program when he receives the budget. The governor cannot veto individual items in the bill itself, but he does have line-item veto power with the budget.

The Broward County school superintendent has already said he does not want to participate in the program.

Meanwhile, the 19-year-old former student accused of assaulting the school went before a judge. Nikolas Cruz faces 17 counts of murder and attempted murder. In a brief hearing Friday, he stood with his head bowed as he appeared via video conference.

Cruz’s public defender has said he will plead guilty if prosecutors take the death penalty off the table and sentence him to life in prison instead. Prosecutors have not announced a decision.

___

Associated Press writers Jason Dearen in Gainesville, Florida; Tamara Lush in St. Petersburg, Florida; and Curt Anderson, Terry Spencer, Jennifer Kay and Adriana Gomez Licon in Miami contributed to this report.

___

Follow the AP’s complete coverage of the Florida school shooting here: https://apnews.com/tag/Floridaschoolshooting .