Background Pony #111A
After this scene, Scoots sneaks out and finds a new friend, and they go to a factory or something, which is a heavily-guarded high-tech facility similar to a James Bond villain’s base/lair, where ponies are given mind-control collars that make them blissfully happy all the time, turning them into carefree idiots like Derpy but somewhat worse.
The Mane 6 and others discover the facility, and they come up with a plan to break into it and rescue Scoots. At the same time, Scoots’ new friend is collared and brainwashed like the other ponies in there, and she runs off to find out what’s going on, promising to come back for her friend.