(Cut to outside the fortress. Super Super Big Doctor is leading her henchmen to the balcony as triumphant music is heard in the distance.)
Super Super Big Doctor: Now, make sure Mama is comfortable. Wait. What am I hearing right now?
Hermellivue: I, uh, I think— I think it's music, ma'am.
(Song: This Is Our Battle Song)
All: This is our battle song
As we're marching into war
This is our battle song
We're gonna give you guys what for.

You might think you can defeat us
Their defenses have some heft
But the thing that they won't tell you
As you're fighting on the left.

Is the left just a skirmish
A diversionary fight
/ We'll hide the bulk of our forces
/ On the right!

Super Super Big Doctor: The fools! They're telling us their plan! In song! Get our forces over to the right!
Henchman: Yeah, okay, boss. Uh, their right or our right?

All: No, our right
They're hidden over in that forest
That's your left
Perhaps we shouldn't put that in the chorus.
We should watch just what we say
Super Super Big Doctor: Get over to the right already!
All: Don't wanna give our plan away.
But with subtle subterfuge
We will surely win the day!
Super Super Big Doctor: As soon as they scale the wall, let 'em have it!
All: Surely win the day
It's our battle song!
(Pause as nothing happens. Super Super Big Doctor walks over to the balcony to find no one there.)
Super Super Big Doctor: What?
Buford: Psych, we're over here! We came in on the left while you were going over to the right!
Super Super Big Doctor: You lied to us! Through song! An art form that's supposed to connect people through sincerity of emotion. That is cold. Who are you people?
Cowards: We are the cowards!
Super Super Big Doctor: Well, I'm a big enough woman to admit when—RUUUUUUUUUN!
(The henchmen follow her as the cowards go after her.)
Candace: Let's go find the Boys! (Perry points to the mothership.) Wait, there they are! Phineas! Ferb!

(Cut to Super Super Big Doctor and her henchmen running onto the ship still being pursued by the cowards.)
Super Super Big Doctor: Activate anti-coward countermeasures!
(A cardboard spider emerges from the flower stopping the cowards in their tracks.)
Spider: Roar. I'm a big, scary spider. Roar.
(The mothership starts to take off. Just as the gang pursues it, Doof's phone gets a notification.)
Doofenshmirtz: Wait! It's Vanessa! She's— She's not back on Earth. She's still on this planet!
(Close-up on Doof's phone showing Vanessa's latest selfie with the caption "STILL STUCK HERE! #BuildingMakesWeirdTone")
Doofenshmirtz: Okay, okay. I'll save Vanessa. You guys go. Go now while you still can!
Isabella: But how will you get back to Earth?
Doofenshmirtz: By adulting. I learned from the best.
(Isabella smiles.)
Doofenshmirtz: Go. Go now! Go!
(The gang takes off, and Isabella gives Doof a patch.)
Doofenshmirtz: What's this?
Isabella: It's a getting-back-to-Earth patch. Earn it! (Doof smile at that as he ran off to the other direction,)

Candace: Come on guys we got to get to that ship (she did a quick look around and noticed Perry is not following them) Perry are you coming? (Perry had that unsure look on his face as he looked at the direction Doofenshmirtz took off) you want to make sure he doesn't get hurt huh? (Perry nodded, as much as he want to save the boys, he does want to make sure Doof doesn't get killed out there) well alright you go do that, we'll see you back on earth (Perry nodded and left the scene)

(Cut to the cowards. Borthos is attempting to confront the spider.)
Garnoz: Borthos, no! You'll be killed!
Spider: Roar. Roar. Roar. Roar. Ro—
(The cardboard spider gets run over by Candace and the gang run over to the mothership.)
Borthos: Oh, they're so brave!
(The gang make it onto the gangplank and the ship leaves Feebla-Oot, passing by the elephant creature from earlier in the film.)
Creature: (through subtitles) Sure, just leave me here.

(Cut back to Feebla-Oot. Doof is searching for Vanessa.)
Doofenshmirtz: All right, maybe I can figure out where Vanessa is from this photo…(Doof notices the fortress in the background of the photo and sees the fortress in front of him.) There we go. So she must be that way. All right.(Doof falls off yet another cliff, but Perry saves him just in the nick of time.)Perry the Platypus! I can't believe you're here! Wait, I thought you went with the other, unless? Aww you want to keep me safe like a fuzzy little teal guardian ang—
(The branch they were clinging onto breaks and both Doof and Perry fall to their deaths, but then a dragon creature grabs both of them.)
Vanessa: Dad? Perry?
(Pan up to reveal Vanessa taming the dragon creature.)
Doofenshmirtz: Vanessa!
Vanessa: I thought it was you guys. How did you get here?
Doofenshmirtz: I used my Galactic-Travel-inator.
Vanessa: You mean your spaceship?
(beat)
Doofenshmirtz: Yes, I mean my spaceship. Hey, where'd you get the alien dragon creature?
Vanessa: You like her? I named her Vlorkel.
Doofenshmirtz: Why?
Vlorkel: Vlorkel!
Doofenshmirtz: Ah.
Vanessa: Can I keep her?
Doofenshmirtz: Well, we're gonna need a bigger litter box.
Vlorkel: (roars)

(Cross-dissolve back to the mothership. Cut to inside with Phineas and the gang.)
Candace: We need to find where they're keeping the boys.
Buford: Hey, look. They're taking us back to Earth.
Candace: More likely, they wanna conquer Earth.

(Cut to Super Super Big Doctor, Mama, her henchmen, the human prisoners and Phineas and Ferb.)
Super Super Big Doctor: Soon, Mama, you'll be soaking up the sweet carbon dioxide of Earth. All right, Hermellivue. Punch it!

(Cut back to Candace and the gang.)
Computer: Attention. Brace yourselves. We are accelerating to warp two.
Baljeet: Oh, my. That is twice the speed of light.
Isabella: Twice the speed of light? What will that be like?
Baljeet: I read a theory that when you exceed the speed of light, reality, the very nature of your existence, begins breaking down…
(The scene begins losing its color, leaving it in clean-up form.)
Baljeet: …to its primal essence, all the way back…
(The clean-up animation goes back to rough pencil test form.)
Baljeet: …to its source.
Isabella: This is so weird!
(The scene then reverts to animatic form.)
Dan Povenmire: Buford says something funny here.
(The scene then reverts to storyboard.)
Candace: Whoa! Temp dialogue.
Baljeet: How much more can reality break down?
Dan Povenmire: And then we suddenly cut…
(The drawing turns into a live-action scene of Dan and Swampy showing the storyboard.)
Dan Povenmire: …to us.
Jeff "Swampy" Marsh: So you'd actually see Dan and I pitching this part.
Dan Povenmire: Right, exactly like we are now, saying exactly what we're saying right now.
Jeff "Swampy" Marsh: And then we push…
Dan Povenmire and Jeff "Swampy" Marsh: …back into the storyboard.
(The full animation returns and the gang looks confused.)
Baljeet: We should never speak of this again.
Rest of the gang: Agreed.

(Cut back to Feebla-Oot, with Vanessa, Doof, Perry, and Vlorkel.)
Vanessa: Oh, Dad, I can't believe you came all the way here to save me.
Doofenshmirtz: And then you saved me. Look at you, adulting.
Vanessa: You know that's not a verb, right?
Doofenshmirtz: Yeah, so I've been told. But I don't know how we're gonna get home from here. (A chicken is heard squawking.) That's it! We'll use the Chicken-Replace-inator to switch places with a chicken on Earth! Worked like a charm earlier. Come on! Get on!
Vanessa and Doofenshmirtz: (grunt)
Doofenshmirtz: Here we go, selfie mode. Everybody smile!(Doof zaps everyone with the Chicken-Replace-inator and a chicken appears in their place. Unfortunately, pan right to reveal it was the same chicken they saw.) Wait a second.(He zaps themselves again once again switching with the same chicken.) Nope, one sec.
(Zaps again.)
Vanessa: Dad.
Doofenshmirtz: Oh, I get it. The nearest chicken used to be on Earth. Now there's one on this planet. So, it's nearer. So as long as this chicken is here, we won't be able to— Wait a minute. (gets out his Axe-inator) Accidents can happen.
(Cut to over Doof's shoulder to reveal the obligatory self-destruct button on the back.)
Vanessa: Dad, we're not going to kill this chicken.
(chicken clucks)
Doofenshmirtz: So what are we gonna do?