TALLAHASSEE, Fla. — Florida Gov. Rick Scott signed a far-reaching school-safety bill Friday that places new restrictions on guns, cementing his state's break with the National Rifle Association and decades of Republican thinking on gun control in the aftermath of the Parkland high school attack.
Surrounded by family members of the 17 people killed in the shooting just over three weeks ago, 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."
[ Read: Parkland shooting suspect Nikolas Cruz withdraws not guilty plea, stands mute on 34 counts ]
The bill fell short of achieving the ban on assault-style weapons sought by survivors. The gunman who opened fire at Marjory Stoneman Douglas High 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.
[ Read: Details emerge about accused Parkland shooter's texts ]
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.
[ Read: Student survivor says fate led him to commit to Mass. college after Parkland school shooting ]
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."
[ Read: Dwyane Wade visits students at Marjory Stoneman Douglas High ]
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.
[ Read: Police union won't defend Parkland, Florida, school resource officer if he faces legal action ]
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, Tamara Lush in St. Petersburg, and Terry Spencer, Jennifer Kay and Adriana Gomez Licon in Miami contributed to this report.
[ Read: Company working on bulletproof doors in wake of school shootings ]