This is how Twilight teaches Optimus to fly goes in My Little Pony: Endgame.
[Twilight goes over to Optimus]
Twilight Sparkle: Are you ready?
Optimus Prime: I think I am.
Twilight Sparkle: Have you ever flown before?
Optimus Prime: Not really but...
[Before he can continue, Twilight yanks him into the air via magic]
Optimus Prime: Whaaaaaa!
Twilight Sparkle: It's alright. I got you.
Optimus Prime: I'm getting the hang of it.
Twilight Sparkle: That's my Autobot!
[She and Optimus do some tricks]