How to Fix the Cookie Machine in Riddle School 2

The cookie machine in Riddle School 2 is supposed to look like it's not working. Phil Eggtree can't just walk up and buy a snack, he has to make the machine give one up, and the fix is simpler than it feels in the moment: click the machine again. And again. How to fix the cookie machine in Riddle School 2 comes down to persistence, not a hidden item or a code. Keep clicking past the point where it feels like nothing is happening, and a cookie eventually drops loose into view, ready to be picked up and carried into your inventory.
Play Riddle School 2 free on Dubdoo right in the browser, no download needed.
Why the machine doesn't respond on the first click
Riddle School 2 runs on the same examine-collect-combine loop as the rest of the series: click objects to look at them or grab them, click characters to talk, then use inventory items on whatever's in your way. The cookie machine is built to test that loop a little harder than a regular object. A single click reads as "examine," and examining a vending machine understandably doesn't do much. The game is waiting for you to treat it like something you can force, not just look at, which is exactly the kind of low-key trick this series likes to hide in an otherwise ordinary-looking room.
The fix: click it more than once
There's no coin, code, or second item required. Walk up to the machine, click it, and when nothing visibly changes, click it again. Riddle School 2 rewards repeated interaction with background objects more than the first game did, and the cookie machine is one of the clearest examples. A few clicks in, the machine gives in and a cookie appears. Grab it the same way you'd grab any other item in the room: click on it once it's visible, and it moves straight into your inventory.
What the cookie is for
The cookie isn't a reward for its own sake, it's a trade item. Once it's in your inventory, click on it, then click on the classmate or hall monitor loitering near the machine. Handing over food to smooth things over with whoever's blocking a path is a pattern that repeats a few times across Riddle School 2, so it's worth remembering for later rooms too: if a character won't budge and you're holding something they'd want, try it on them before assuming you need a different item entirely.
If the machine still isn't giving up the cookie
Two things usually explain a cookie machine that seems permanently stuck. First, check that your cursor is actually changing shape when it hovers over the machine, since Riddle School 2's clickable areas can be smaller than the image suggests, and clicking the wall or the floor tile next to the machine won't register at all. Second, make sure you haven't accidentally wandered to a different room mid-click, since the game tracks your position precisely and a click registered in the hallway won't affect an object back in the room you just left. Neither one is a bug. They're just the two most common reasons this specific puzzle stalls out.
Once Phil's past this room, the rest of the school follows the same rules: collect what you can, talk to everyone more than once, and revisit rooms after picking something up. Our full Riddle School 2 walkthrough covers the puzzles that come after the cookie machine if you get stuck again later. If this is your first time through the series, our guide to the original Riddle School explains the same core mechanics from the start, and Riddle School 3 picks up the story afterward with a bigger building to search. For more of the same style, Dubdoo's games for school collection is full of quiet, no-download puzzle games that work fine in a browser tab.
Play Riddle School 2 free on Dubdoo and get Phil past the cookie machine right now, no download required.
FAQ
Is the cookie machine in Riddle School 2 actually broken, or is that a bug?
It's intentional. The machine is built as a small puzzle, not a dead end, so the fact that nothing happens on your first click is expected, not a glitch in the Dubdoo version of the game.
Do I need a coin or another item to get the cookie machine working?
No. There's no coin slot puzzle here. The fix is purely repeated interaction: keep clicking the machine itself until it gives up the cookie.
What do I do with the cookie once I have it?
Open your inventory, click the cookie, then click on the character standing near the machine who's blocking your path. Handing over food to get past someone is a repeated trick in Riddle School 2.
I've clicked the machine a bunch of times and nothing is happening. What now?
Make sure you're clicking directly on the machine itself, not the wall or floor next to it, since Riddle School 2's hotspots are small. If the cursor isn't changing when you hover over it, you're aimed at the wrong pixel, not a broken puzzle.