Sonic’s enemy Doctor Eggman, or Dr. Ivo Robotnik (Jim Carrey ... In the first end-credits scene, Sonic finishes a race with Tails and Knuckles and is suddenly attacked by Metal Sonic robots.