The time machine takes the gang to the Age of Pirates, where Edward Teach, a.k.a. Blackbeard needs the gang's help to find a lost treasure.
While the gang is experiencing life in Massachusetts during the Salem Witch Trials in 1693, Cupcake is captured by a crazed witch hunter and the gang have to come to her rescue.
The gang's time machine transports them to the Amazon Jungle, where they're mistaken for thieves who are ravaging the locals' city.
The gang find themselves 2000 years in the future in 3057 A.D., where they must escape from the clutches of the Morlocks.