TALLAHASSEE (CBSMiami/NSF) — Gone will be the days of distracted drivers mid-conversation via text if Gov. Rick Scott signs a bill to ban texting while driving.

The bill was sent to Gov. Scott on Thursday after a years-long effort to join all the other states that have outlawed the behavior.

The Senate voted 39-1 in favor of the bill (SB 52) that makes it illegal to read or type texts or emails while driving, though it will remain OK to do it while stopped.

Scott hasn’t said whether he’ll sign the bill.

Under the measure as passed, only drivers who are pulled over for something else, such as careless driving or speeding, and then are determined to have been texting while driving, could be cited. And in most cases, police and prosecutors won’t be able to seek the driver’s cell phone records to prove it. Under an amendment added to the bill this week by the House, records could only be sought if there were an injury or death in a crash.

That provision weakened the bill, but the measure’s Senate sponsor said the fight to get a texting ban has been long and so it was better to go along with that than not pass the bill – and she said the measure still could reduce the dangerous practice, particularly among kids.

“This bill is still a good bill, it still will allow parents today to say to their kids ‘Don’t text, it’s against the law,'” said Sen. Nancy Detert, R-Venice, who has pushed for the ban unsuccessfully for years.

On the second-to-last day of the legislative session, there was a risk that stripping the House provision on cell phone records and sending it back to the House would keep the bill from passing.

If Scott were to approve, Florida would become one of the last states to have any kind of restriction on texting while driving.

The measure has an exception for use of a GPS device, or for reporting criminal behavior. The bill also allows talk-to-text technology to be used, as long as the driver isn’t typing or reading the message. In addition to texting, the bill includes reading or writing emails, or other messages.

“The News Service of Florida contributed to this report.”