They are back in Bikini Bottom and they saw Spongebob pick up all the Krabby Patty
Spongebob: Hey, you guys!
Ryan: Spongebob, what are you doing?
Spongebob: Picking up those Krabby Patty, they have dropped from that Truck.
Ryan: And do you think we can help you?
They went back to the Krusty Krab with all the Krabby Patty
Krab: Where did you find them?
Spongebob: I found them on the road.
Krab: It looks like those are the Krabby Patty that has been Stolen.
Krab: Even my Formula. And it wasn't Plankton after we send him to jail.
Spongebob: Then who took it?
Krab: I don't know, but we need to set up a trap from that thief. And that person like Krabby Patty so much. So we have to make some.
They are making Krabby Patty and they're done
Donald: All done!
Spongebob: Not yet.
Goofy: There's more?
Spongebob: Don't worry, I'll figured it out.
They went to the Jellyfish Field to set a trap for the Thief and they hid inside the box
Sci-Ryan: Ow! Stop kicking me!
Crash: It's wasn't me.
Spongebob: Quite, everyone.
Matau: I said, cut it out!
Goofy: It wasn't me, Matau.
Ryan: Why do we have to be the bait?
Spongebob: Good plan. Right?
Bertram: Ow! Stop pinching me!
Then someone coming and pop out to their hiding spot and they saw A Robot from Sandy
Spongebob: Sandy's Robot did it!
They are fighting it and they defeated it
Ryan: We did it! The mystery is solved!
Spongebob: But I don't know why is that Robot doing and
Krab: It's seems that it was looking for a heart. Poor thing, he really wants to have a heart for the Krabby Patty.
Ryan: Man... but at least we got the Formula Back. And it's our time to go.
They left this world