At the Piqua State Penitentiary, Tippy is asked to build a statue (secretly a robot suit) of Warden Gordon Bordon Schmorden, the chief jailer of the prison.
Even though Captain Underpants successfully pulls off the top half of the robo-suit, Tippy escapes by going back in time exactly five years ago.
On his way to school, he notices six-year-old Harold being attacked by Kipper, Bugg, Loogie and Finkstein(the former being Krupp’s nephew) with the mean owner of the nearby gas station, Billy Bill, egging them on.
George and Harold study Kipper for a week and then later switches his padlock for one of their own locks, and replace his stolen lunch money with girly things like friendship bracelets, dresses, dolls and Susie Sunshine bracelet kits while sending strange texts to Kipper's goons, all while placing a note from "Wedgie Magee" with it.
Enraged and tired of the anonymous pranks, Kipper and his three goons begin to torture the kindergarteners for answers, even stealing more pizzas, then charge money for leftovers.
George and Harold eventually create a comic that tells the fictional tale of Wedgie Magee and the signs of his curse, all of which match their pranks.
After Kipper and his gang "see" that ghost (George on stilts, wearing a giant pair of pants), they run outside in terror, during a severe thunderstorm and power outage.
Tippy arrives in the present only to find out all that remains of Earth is a flaming and devastated wasteland, dominated by dead talking toilets and giant evil zombie nerds.