This is how Klementia revives Optimus and Twilight goes in The Return of Optimus Prime and Twilight Sparkle Part 1.
[On an unknown planet, we see a Quintesson Judge named Klementia trying to get away from infected Sharkticons]
Klementia: No! Stay away! Keep back!
[The infected Sharkticons continue to chase him]
Sky Lynx: Need a lift, Quintesson?
Klementia: Yes, yes, let me in!
Infected Sharkticon: Get him! Infect them all!
Sky Lynx: Not so fast. You can only come aboard if you agree to revive Optimus Prime and Princess Twilight Sparkle.
Klementia: I'll do it!
Sky Lynx: Wise choice.
[Sky Lynx lets Klementia board him and they get away from the infected Sharkticons]
[Ryan looks at the photo of Twilight]
Ryan F-Freeman: Hey. Ever wonder why those Sharkicons are infected?
Timon: Ryan. I don't have to wonder. I know. Rothbart used the Magic of the Forbidden Arts to make the Sharkticons evil.
Klementia: I don't know about it, Timon.
[On Earth, Klementia works on Optimus and Twilight]
Klementia: This is not going to be easy.
Ryan F-Freeman: Sure it will. I revived Daffy.
[Ryan uses his medic on Twilight's legs]
[Klementia tests Twilight's legs and they move]
Ryan F-Freeman: Wow.
Klementia: And now the horn.
[Twilight's horn lights up]
Klementia: Watch out!
[Twilight's magic hits Ryan]
Ryan F-Freeman: Ouch!
Klementia: It was an accident.
Ryan F-Freeman: It's ok. And I am sorry about your planet of Quintessa.
[Klementia works on Optimus' legs]
Klementia: Legs are fully operated. And now the arms.
[Optimus' left arm stretches out]
Klementia: Watch out!
[Optimus' arm hits Ryan]
Ryan F-Freeman: [muffled] Oh my poor nose.
Ryan F-Freeman: It's ok. At least the arms are working. Let me test the wings.
[Ryan tests Twilight's wings]
Ryan F-Freeman: Awesome.
[Klementia works on Optimus]
[Optimus' right arm goes up and down]
Klementia: That's better. And what are you going to do about the disease?
Ryan F-Freeman: We think we can find a cure.
Sky Lynx: Optimus and Twilight will know what to do. I hope.
[Optimus' body is laying down on a chair with Twilight's body laying on his shoulder]
Sky Lynx: There's no time left for mistakes. The world needs leaders.
Klementia: Once again, we are ready. But if this doesn't work, Optimus Prime and Princess Twilight Sparkle will never live again.
[Ryan uses Kuryan's and his Keyblades on Twilight's body]
[Crash bites his nails and the metal nails]
[The magic and powers flow into Optimus and Twilight]
[The heart meters start beeping and Ryan watches with amazement]
[Optimus stands up and Twilight stands up on his shoulder]
[Twilight and Optimus are revived]
Sky Lynx: Optimus.
Ryan F-Freeman: Twilight.
Klementia: I've done it! Optimus Prime and Princess Twilight Sparkle live!
Sky Lynx: It's true. Our leaders are back.
Ryan F-Freeman: Oh, Twilight! I'm so happy you're alive! [hugs Twilight and kisses her five times] Thomas would be so happy!
Optimus Prime: Yes, Sky Lynx. And this time no force in the universe can stop us.
Twilight Sparkle: Yeah. And there is no message to learn.
[To be continued...]