Pete Davidson lost it when students at the University of Central Florida violated his no-cellphone rule during his standup show.

“That’s what’s f–ked up. You were the one filming. That’s right, we’re embarrassing. That’s why the world is going to end in 25 years because you’re all f–king retarded,” Davidson, 25, ranted at Monday’s show. “I meant it that way, idiots. You should f–king grow up. It says no phones. … You’re just supposed to just like behave. I have to have my boy patrol you guys like you’re 5 years old? That’s f–king embarrassing.

“You should grow up,” he continued in the middle of his set. “Where’s the next generation? … Don’t you want your parents to be proud of you? … Now we’ll continue.”

One attendee tweeted that the “Saturday Night Live” star realized his tirade had backfired and he tried to turn it into a motivational speech that failed to resonate.

“imagine going on a 5 minute … rant about how you hate millennials recording s–t and then tryna backtrack into making it a motivational speech 🥴 we ain’t even pay to see this s–t;;;; reLAX!” the showgoer tweeted.

“it was a S–T SHOW! he went on a whole rant bcs a few ppl were recording and he started yelling about how we need to grow up and that we’re r-words and bitches 🗿 and then he was like mad bcs no one was LAUGHING! u could feel the tension and how uncomfortable it was.”

The university called Davidson’s behavior “disappointing” and told Page Six in a statement, “Mr. Davidson’s abusive language, particularly his use of a derogatory slur, is contrary to the University of Central Florida’s values of inclusion and respect for all. It’s disappointing that his rant spoiled an event that was meant to welcome students back for the fall semester.”

A rep for Davidson didn’t return Page Six’s request for comment.