In The SpongeBob SquarePants Movie , Squidward is put under a spell by Plankton .
He uses his guitar as if it were a magic wand to destroy the mind-controlling helmets , freeing Neptune and Bikini Bottom 's residents from Plankton 's rule .