Tyler Kost was arrested in May for alleged sex crimes against the girls, who range from 13 to 17 years old

Lawyers for an Arizona teen accused of sexually assaulting 13 girls say the 19-year-old was framed in a plot reminiscent of the movie John Tucker Must Die.

Tyler Kost was arrested in May for alleged sex crimes against the girls, the majority of whom are his former classmates at Poston Butte High School in San Tan Valley, according to the Associated Press. He faces 30 charges, which range from sexual abuse to child molestation.

Get push notifications with news, features and more.

But attorneys for the teen claim he was set up – and they say they have the evidence to prove it.

In a court hearing on Monday, Kost’s lawyers described a Facebook chat in which some of the victims, who range from 13 to 17 years old, allegedly spoke about how to get revenge against the teen.

“He needs to be taught a lesson,” one victim wrote, according to court documents obtained by Arizona’s 12 News.

“He’s gonna feel the pain he put every girl thru,” another puportedly answered.

Kost’s lawyers said the chat specifically references the 2006 movie John Tucker Must Die, in which a group of girls band together to get revenge against their cheating ex.

“They conspired to put Tyler in jail,” defense attorney Christine Whalin told 12 News outside the Pinal County Courthouse. “They succeeded. Tyler’s been sitting in jail for almost a year based on the lies of these girls.”

The defense team asked prosecutors to turn over the social media history of each victim, as well as some of their friends, in an attempt to determine how far the alleged plot spreads.

“Quite frankly the fact that the state is refusing to get any additional social media records is concerning,” defense attorney Michael Alarid said, according to the AP. “It’s shocking. Based on what we’ve uncovered so far they should be dismissing several charges. Instead they are digging their heels in and they are refusing to give us anything additional.”

But prosecutors argued that it’s not their responsibility to help the defense obtain the records, which can only be requested from Facebook by law enforcement, due to the social media site’s privacy policy.

The judge in the case has said he will take the defense’s request under advisement, 12 News reports.

The news channel spoke to one of the girls who says she participated in the chat. “We were just a bunch of pissed-off teenage girls,” said Michelle Holmes, who is not one of the victims listed in Kost’s charges, though she is friendly with the girls who are. “We were just ranting and venting and getting it off our chest.”

“It’s been almost three years since it happened and they’re going to have the nerve to call me a liar?” she added. “What the hell is wrong with you?”