Hello
This is an older movie, Probably before 2000, possible up to 2005. The main character is a teen and so is the girl. I think it’s about martial arts or something. In one of the ending scenes the main character has to rescue the heroine who has been kidnapped by some badguy. I think she was bound by some rollercoaster or similar setting.
“3 Ninjas: High Noon at Mega Mountain” (1998)
https://www.imdb.com/title/tt0118539/
Detailed plot on Wikipedia:
https://en.wikipedia.org/wiki/3_Ninjas:_High_Noon_at_Mega_Mountain
From Wikipedia:
“He then manages to free Jennifer before the roller coaster can crush them.”