The kids are pulled into a world made of their wildest dreams. Unfortunately, Lena's worst nightmare comes true: Magica De Spell is back and coming to reclaim what’s hers.
The boys, Webby, Lena, and Violet have a sleepover at McDuck Manor, which Lena uses as a celebration of her 1-year friend-iversary with Webby, which she has spent all week preparing for. The group party until the early hours of the morning to the point of exhaustion, but Lena at first refuses to go to sleep. Privately, it is revealed that she has been unable to sleep due to recurring nightmares involving her Aunt Magica beckoning to her, and her fear of turning into Magica. Webby convinces her that she needs some rest, and the group all go to bed together.
To their surprise, they wake up on a tropical island that does not seem to follow any logic, which they realize is a lucid shared dreamscape. Violet theorizes it is influenced by Lena's sleep deprivation affecting her magic. Lena admits to her nightmares, claiming she didn't want to foist her problems on her friends, though she stops short of explaining what her nightmares are about. The group quickly takes advantage of the dreamscape to have some fun by going to their different dream worlds: Dewey takes them to his dream of musical high school, Louie shows them his dream of being a cat, Huey has a dream about having impossible long limbs (which turns into more of a nightmare), and Violet dreams of being in a quiet library reading; eventually they simply montage (literally) into an adventurous dreamscape. Throughout this, however, Lena finds herself stalked by the specter of Magica de Spell, who repeatedly possesses aspects of her friends' dreams to beckon her.
When it comes to Lena's turn to show a dream, she is transported to a castle-like location, where she learns Magica has in fact been possessing her dreams. Magica claims their connection is inevitable and that her friends will always fail her, and demonstrates by transforming Lena into a doppelganger of her. Lena's friends, thinking she is Magica, immediately attack her and call her a monster, breaking her spirit further. However, Webby soon realizes who she is when Lena saves her from a falling chandelier and spots the friendship bracelet she made, and with the help of her friends stops Lena from willingly giving her magic back to Magica and free themselves from the dreamscape.
Upon finding a now insane Magica on the McDuck Manor grounds, the group learns that Magica's possession of Lena's dreams was actually thanks to using a telepathic helmet and not actual magic, proving she is completely powerless. Satisfied that she truly is not like Magica, Lena and the rest of the group return to the Manor while Magica pathetically vows revenge.