The Texas Court of Criminal Appeals says that's because the law restricted freedom of speech protections.
Prosecutors with the Wichita County District Attorney's Office say the high court's ruling won't stop them from achieving their objectives.
John Gillespie, first assistant district attorney, says, "If you solicit minors online or children online, we will aggressively prosecute them. If you solicit a minor online, you're going to get investigated, you're going to get prosecuted, and you're likely going to wind up in prison for a long time. This is not going to hinder our efforts at all to protect kids in our community."
Gillespie says prosecutors in the state still have other tools to go after sexual predators, like laws banning the solicitation of minors, possession of child pornography, and distribution of obscene material to minors.
He says parents can make sure their children stay safe by monitoring their electronic devices.
Copyright 2015 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.