Dr. Wily: Behold Megaman, I have awakened the ancient weapon Sunstar! Its Nova Weapon will destroy you! Sunstar, destroy Megaman!
[Sunstar instead shoots Dr. Wily.]
Dr. Wily: What?!? You fool! How dare you attack the mighty Dr. Wily!
[Wily flees.]
Sunstar: You are... Megaman... I am Sunstar... The doomsday weapon... I must destroy all inferior life forms!
[FIGHT]
Megaman: Are you OK? Here, grab my shoulder. I'm sure you can be fixed at Dr. Light's lab.
Sunstar: Megaman... why? Why are you helping me?
Megaman: Because we are both robots.
Sunstar: Yes. And we were both created to fight!
Megaman: No, you're wrong! I only fight when I am forced to protect the world from those who would pit machines against man. I believe humans and robots can live in peace!
Sunstar: Maybe... but I will never know. My fusion reactor is going critical and when it does, it will destroy this entire fortress.
Megaman: Sunstar...
Sunstar: Leave now!
[And... kaboom.]
Credit to the Megaman Knowledge Base for the script.
The alternate translation can be found at Legends of Localization: Mega Man V’s Ending Was a Bit Different in Japanese