After failing to destroy Agrabah because of Aladdin and the gang, Mechanicles creates a valet-style automaton named Gregarius to hypnotize Jasmine, Aladdin and his friends. Genie and Carpet, however, are not hypnotized and Genie tries to tell the gang that Greg is evil, but they don't believe him.
Everyone is now working for Mechanicles and Greg, who are now the rulers of Agrabah. Genie and Carpet get Aladdin back to normal and the three decide to save Agrabah. Aladdin, Genie, and Carpet first have to fight their hypnotized friends and then try to defeat Mechanicles and Greg. After Genie destroys Greg, everybody returns to normal.
Mechanicles tries to destroy them with his exploding attack wasp, but fails and tries to escape. Genie turns Mechanicles' scorpions against him and everyone is proud of him.