Phineas and Ferb travel to the future to find a tool that fuses metal with wood. There they encounter a 35-year-old Candace, who follows them back through time and finally busts them as they are building their roller coaster, but also accidentally foils Agent P's plan to defeat Dr. Doofenshmirtz, setting off a chain reaction that turns the future into a dystopian society.