Kevin Bacon went undercover as a high school student to research his role in “Footloose.”

During a conversation for Variety‘s “Actors on Actors” with John Lithgow, Bacon said at 23, he was afraid he couldn’t pull off the role of 17-year-old Ren McCormack — a Chicago teen who moves to a small town.

“I went and had that same experience for a day,” he recalled. “The only people that knew that I was an actor was the principal and maybe the guidance counselor. The teachers didn’t know. The students didn’t know.”

Bacon said the experience was eye-opening, to say the least.

“It was terrifying. I got a real insight into literally how to play this part,” he added. “It was exactly like the movie because some kids gave me a hard time, made fun of me, made fun of my hair, made fun of my clothing. I was dressed and looked like the character. Some of girls giggled and formed little groups and would whisper about me.”

The interview will air in its entirety on Variety’s “Actors on Actors” Season 6, presented by Shutterstock, which premieres June 13 on PBS SoCal.