The group of teens is heading out of town on their mopeds.
Mopeds with teens riding them are leaving town.
"Leaving town" is a rephrasing of "heading out of town". If teens are on their mopeds then we already know that teens are riding them (the mopeds).
(-x)
(-x)