Losing a player's progress is the fastest way to lose a player. These are the DataStore mistakes I see most often, and the small fix for each.
1. Calling DataStore without pcall
DataStore calls fail. Roblox's servers throttle, time out, or have a bad minute. An unprotected call will error your script and the save is gone.
local ok, result = pcall(function() return store:GetAsync(key) end) if not ok then warn("Load failed:", result) end 2. No retry
One failure should not mean a lost save. Retry a few times with a short wait that grows each time, then give up and tell the player instead of overwriting their data with defaults.
3. Saving on every change
Every coin pickup does not need a write. DataStore has request limits. Keep data in memory while the player is in the server, then save when they leave, every few minutes as autosave, and on shutdown.
4. Forgetting BindToClose
When a server shuts down, PlayerRemoving may not finish for everyone. Add game:BindToClose and save the remaining players there.
5. Using SetAsync for data that can change from two places
If two servers write the same key, the last write wins and can erase the other. UpdateAsync lets you read the current value and return the new one, which is safer for anything shared or additive.
Bonus: do not overwrite on a failed load
If the load fails, do not let the game treat the player as new and save defaults over the real data. Mark the profile as not loaded and block saving, or kick the player with a clear message.
I keep these patterns, plus a folder structure and UI habits, in a small starter kit for new Roblox projects: https://agurokey.gumroad.com/l/aguro-key-game-starter-kit?utm_source=devto&utm_medium=article . Everything above works without it.