Buzz became hostile to the other toys in Toy Story 3 .
However , before they can leave , Andy 's toys are imprisoned by Lotso 's gang , guarded by Buzz , whom Lotso switched to Demo Mode ( which caused him to believe he is a real space ranger , therefore turning against the other toys ) .
Toy Story 3