Enable data stores in Studio, then watch your coins survive across restarts, sessions, and even other players.
Now the payoff of the whole data section: watching a player's coins survive the game ending. This lesson turns on Studio's data store testing and walks the save loop live, end to end.
Studio refuses to touch real data stores by default — safety. Turn it on:
That one checkbox is the difference between "saves never happen in Studio" and "your full save loop runs." Without it, everything you built in the datastores lesson silently does nothing here.
This setting is per-experience, and it's exactly what real developers flip on for testing. Your published game already has full access — this just gives your Studio tests the same powers.
What does 'Enable Studio Access to API Services' do?
PlayerRemoving, which calls SetAsync. That's your save.PlayerAdded fires, GetAsync pulls the saved number, and your leaderboard should show exactly the coins you left with.If it does, the loop is closed: load on join, save on leave, store in between.
Why did nothing save before this lesson? Because Studio had no permission. The code was always correct — the environment was refusing. This is the single most common "my saves don't work" story, and it's never the code.
Pressing Stop fires PlayerRemoving, which runs the call that writes the save.
The full test is two rooms:
A friend earns 10 coins in your game. You earn 20. When you both return tomorrow, what should you each see?
For the truly satisfying check, open your experience in the Roblox website creator dashboard. Roblox logs a history of data store usage there — you can watch your SetAsync/GetAsync calls happen live as you test. It's the smoking gun when debugging saves: the call either appears or it doesn't.
A player's data didn't survive a reload. Write the checklist item you check FIRST in this order: the GetAsync default, PlayerRemoving saves, key names matching, or Studio access.
-- the first thing to check
SetAsync run on leave, and did GetAsync return the value on join?Next section: leveling up — reading errors like a pro and growing beyond this course.