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 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's back to normal.
Mechanicles tries to destroy them with his exploding attack wasp, but fails and tries to escape. Genie makes Mechanicles's scorpions be against him and everyone is proud of him.