This is how Post Credits Scene: Malfunction, Nighlock, and Sombra break out the Canterlot Warriors and Celestia allows it goes in My Little Pony Transformers: Age of Extinction.
[We then see Red Guardian, Darkstar, Crimson Dynamo, Ursa Major, Radioactive Man, Rick Flag, Katana, Deadshot, Harley Quinn, Captain Boomerang, Killer Croc, El Diablo, Crossbones, Taskmaster, Mister Fantastic, Invisible Woman, Thing, Human Torch, Thorax, Scotch, Figge, Sonata, Gilda, Moon Dancer, Adagio, Luna, and Aria in prison cells in Canterlot]
Aria Blaze: Okay, how did they even find us?
Thorax: Betrayal. I'm telling you, someone ratted us all out.
Moon Dancer: My question is why Princess Celestia would allow this? Our team practically worked for the Equestrian Government.
[Just then, an explosion sets off]
[Malfunction comes in and fires upon the dragon guards]
[Sombra appears next, and takes out the Royal Guards]
[Nighlock comes in last, and fires hi cosmic laser eyes at the turrets and crossbows]
[Nighlock proceeds to break open the cell doors]
Nighlock: Jail break, let's go.
[They all begin going out the back way]
[Only to run into Celestia]
Nighlock: [unsheathes his swords]
Major Malfunction: Celestia. Get out of our way. You may be a goddess. But you can still be injured. You're outnumbered.
[However, Celestia just tosses her own crown on the ground and walks away]
[Later, they are in a secret hideout with the others]
Rainbow Dash: Welcome to the Equestrian Avengers.
Sonata Dusk: Feels great to back on the team.
Applejack: Good to have you, Diablo, Thorax, Susan, Johnny, and Ben back on the team, Sonata.
[We then see everyone lounging around]
Rainbow Dash: [realizes something] I just realized something.
Rainbow Dash: Since Twilight was the leader of the Equestrian Avengers, and you were the second in command of the team, and since Twilight's gone, leadership of the team falls to you.
Nighlock: Oh, yeah.
[Screen goes black]