This is how Death of Optimus Prime and Twilight Sparkle goes in Ryan's, Thomas' and Crash's Adventures of The Transformers: The Movie.
[At medic bay, Ryan holds Twilight's hoof]
Ryan F-Freeman: Twilight? Are you ok?
Twilight Sparkle: Yes, Ryan. [coughs] I've been through worse
[Kup and Daniel look at the monitor]
[Perceptor, in microscope mode, examines the marks on Twilight and Optimus]
[Perceptor transforms to robot mode]
Perceptor: I fear the wounds are... fatal.
[The Cyberlings gasp]
[Hot Rod, Ulrta Magnus, Arcee, Rainbow Dash, and Kup look at Optimus and Twilight]
Spike: Prime. You can't die.
Ryan F-Freeman: Twilight. I don't want you to die.
Optimus Prime: Do not grieve. Soon... I will be one with the Matrix.
Twilight Sparkle: Yeah. And I know, Ryan. You can still help the Autobots about friendship.
Hot Rod: Prime...
Codylight Sparkle: Sparkle...
[Twilight looks at Daffy and Optimus looks at Ultra Magnus]
Optimus Prime: Ultra Magnus... It is to you, old friend, that I shall pass the Matrix of Leadership... as it was passed to me.
Twilight Sparkle: Daffy Duck. It is your time to be the hero. I will make you the Element of Magic.
Ultra Magnus: But Prime... I'm... I'm just a soldier. I'm not worthy.
Daffy Duck: But, Twilight. I am not worthy as well. I am Duck Dodgers.
Optimus Prime: Nor was I.
Twilight Sparkle: Neither was I.
[Ultra Magnus holds Optimus' hand]
[Daffy Duck puts his hand on Twilight's hoof]
Optimus Prime: But one day... an Autobot shall rise from our ranks... and use the power of the Matrix... to light... our darkest hour.
Twilight Sparkle: And two heroes will use the Matrix to light the road to victory.
[Optimus opens his chest to reveal the Matrix]
Optimus Prime: Until the day...til all are one.
Twilight Sparkle: And all friendship.... help us... all.
[Optimus drops the Matrix and Hot Rod catches it and gives it to Ultra Magnus. Ryan picks up another Matrix and gives it to Daffy]
[The heart meters on Optimus and Twilight go in neat lines and the optics on Optimus becomes dull and lifeless]
[Optimus and Twilight turn black and move their heads to one side]
Ryan F-Freeman: May our hearts be our guiding key.
[Meanwhile, Unicron sees what happened in his screens of his core and sees the Matrixs in the hands of Ultra Magnus and Daffy Duck]
[Unicron then sees Daffy wearing Twilight's crown]