[Woody jumps on to a train of orphaned Troll dolls. He pulls the brake to try and stop the train before reaching the broken bridge, but they still fall into the canyon]
[Suddenly, Buzz Lightyear appears, lifting the train and its passengers out of the canyon]
Buzz Lightyear: Glad I could catch the train!
Woody: Now let's catch some criminals!
Buzz Lightyear: To infinity and beyond!
[Cut to the Potato Heads and the aliens in their car, counting money and laughing evily]
Aliens: [pointing at the sky] Ooh!
[Buzz flies above the bandits and slices their car with his laser. After the criminals tumble to the ground, Woody, Buzz, and Jessie enter]
Woody: Reach for the sky!
Mr. Potato Head: You can't touch me, Sheriff. I brought my attack dog with a built-in force field!
[Mr. Potato Head calls Slinky Dog over with a whistle. Slinky bounces down from the mountains and forms the force field around the Potato Heads and aliens]
Woody: Well, I brought my dinosaur who eats force field dogs!
[the ground cracks apart, and Rex emerges. He roars at the evildoers, but then notices something]
Rex the Green Dinosaur: Huh?
Buzz Lightyear: [a pig-shaped spaceship suddenly appears. Its driver is Hamm, portraying Dr. Porkchop] Evil Dr. Porkchop!
Hamm the Piggy Bank: That's Mr. Evil Dr. Porkchop to you.
[Hamm teleports the Potato Heads, the aliens, and Slinky onto his ship. He also pushes a button reading, "Death by Monkeys," trapping our heroes with a flood of plastic red monkeys. As Mr. Potato Head reaches toward a button activating a destructive ray, the scene suddenly cuts to Andy's bedroom. The whole scene actually took place in Andy's imagination, as he plays with the toys and a cardboard spaceship]
Young Andy: [as Woody] Buzz, shoot your laser at my badge!
Young Andy: [as Buzz] Woody, no! It'll kill you!
Young Andy: [as Woody] Just do it!
[Andy shields Buzz's eyes and pushes the laser button. He uses his finger to trace the laser bouncing off Woody's badge, then knocks the spaceship and its evil passengers towards the ground]