Hudgens stars with Selena Gomez and Ashley Benson in Spring Breakers as three teenage girls who begin working for a drug dealer (Franco).
The actress disclosed to Glow magazine that an erotic sequence with Franco was one of her least favourite experiences on the Spring Breakers set.
"It was very nerve-racking for me," Hudgens explained. "I told my agent that I never want to do it ever again."
The former High School Musical actress also stressed that she has learned not to conform to traditional Hollywood standards.
"At the end of the day, I'm going to do what I want to do, regardless of whether it may upset someone," Hudgens declared.
"But I think that if I'm doing right for myself, then that's all I really need to care about."
Director Harmony Korine's Spring Breakers opens on March 5, 2013 in the US. A UK release date has not been announced.
Gallery - Top 10 movie sex scenes: