In the end of the film, the Goonies find One-Eyed Willy's ship, as well as his treasure, but they aren't the only ones who make it there. The Fratellis, who've been on their trail, catch up with the group and claim One-Eyed Willy's treasure for their own. What they don't realize, however, is that the famed pirate has one last booby trap in place, so when the Fratellis attempt to steal the treasure set aside for One-Eyed Willy himself, the action causes the entire cave to collapse.

When the kids all emerge onto the beach, literally everyone from town is there. It isn't just the police who are standing by, ready to arrest the Fratellis, or the kids' parents. It's everyone — including the media and the real estate guys who've been trying to foreclose on everyone. Who tipped all these people off? And what exactly are the developers doing there? They have no reason to be on the beach at this precise moment, but here they are, with a front row seat to watch Mr. Walsh tear up their contract.