Here's how Optimus fights Lockdown and Lockdown and Attinger and Ernie's deaths play out in Brian and the Eeveelution Family's Adventures of Transformers: Age of Extinction.
["As Long as I Can Hold My Breath" begins playing]
[Optimus goes after Lockdown, while Attinger is coming. Then Lockdown jumps out]
Lockdown: PRIIIIME!!! [he fires his rockets and he and Optimus battle]
[With the others]
[The music stops]
Tessa: Stop the car!
Bumblebee: You better listen.
Tessa: No, you listen. I'm not leaving my dad.
Sylveon: And I'm not leaving Brian.
[The Dinobots and the Autobots make there way across the bridge]
Cross-Hairs: All right, we're gonna hold the line, then block the bridge!
[Back with Optimus and Lockdown]
[Cade and Brian get in position, while Optimus and Lockdown fight. Then there's gunfire and we see Attinger and Ernie gun pointing them]
Attinger: [walks up to the 2] You see, it takes patience to make a man. The patience to watch and wait, to protect all of us quietly, for God and country, without any recondition at all!
[Optimus and Lockdown fight, then sees the group]
Optimus: CADE! BRIAN!
Attinger: There are no good aliens! Or BAD aliens, Yeager and Mr. Griffin. It's just us and them. And you choose them.
Ernie: And besides, you can't protect the Autobots. No one can! Besides, you've caused me a lot of trouble already. All your friends, and other Autobots will be destroyed, and I will lose nothing but time! And you on the other hand, Brian Griffin. Shall die with them!
[But before they can kill them, Optimus slides in, then shoots, and kills Attinger and Ernie]
[Lockdown takes Optimus by surprise and traps him in a pillar with his sword]
Lockdown: You saved the human and that dog instead of saving yourself. You bring shame upon us all.
[Cade and Brian fire at Lockdown, then Bumblebee pulls up]
Cade: She never listens. Never.
Optimus: I gave you an order!
[Bumblebee and Lockdown fight]
Cade: [fires his alien gun]
Cade: Get out of here, now!
Brian: [as Tarzan] Go, now!
Shane: Get in, get in.
Cade: Hey, you! Hey!
Brian: Over here you big pile of scrap pile!
Optimus: Cade! Brian! Get out of here! This is my fight!
Lockdown: [grabs Bumblebee's foot] It's my fight! [slams Bumblebee] And you're all gonna die!
[Cade, Brian, and Lockdown fight, while Tessa hooks up]
Tessa: Go, go!
Shane: Come on, come on!
[Cade and Lockdown continue their fight]
Shane: Yeah, killer robot, my butt!
[Cade and Brian fight Lockdown]
Shane: Come on!
Tessa: [picks up the hook, while Lockdown and Cade fight]
["Sortie!" now begins playing]
Optimus: Get away, all of you!
Sylveon: We're not leaving you, Optimus!
Shane: Come on, Tess, come on, Tess, come on, Tess.
[Lockdown grabs Cade's gun]
Tessa: [hooks up the sword] Drive!
Lockdown: You see my face, your lives are done!
Shane: Come on, come on, come on!
[The sword pulls out of Optimus, Optimus grabs it and stabs Lockdown and drives the sword up, slicing him in half]
Optimus: Honor to the end.
Tessa: You still happy that we met? [they kiss]
[The KSI robots find them]
Optimus: Hurry! [grabs them] Quickly! I'm setting off Lockdown's grenade! Hold tight! [he takes off while the grenade explodes killing the robots]
Galvatron: We shall meet again, Prime. For I am reborn.
Adagio Dazzle: Come on girls. Let's help Galvatron become Megatron again.
[They then leave as jets fly by]