Leaderstats Saver
Leaderstats that save between sessions. Free, one script, set up in a minute.
5.0 · 1 reviewOverview
A free server script that adds leaderstats to every player and saves them with DataStoreService. Drop it in, rename the stats, and your game keeps Coins and Wins between sessions.
Features
- Coins and Wins on the player list out of the box; add or rename stats in one table at the top
- Saves when players leave, every two minutes, and when the server shuts down
- Never overwrites saved data when Roblox's DataStore fails to load; it warns instead
- Small Api module so other server scripts can Get, Set and Add stats
Technical details
- Architecture: one Script plus an Api ModuleScript, settings at the top of the Script
- Saving: UpdateAsync with up to 4 retries and exponential backoff; one save per player at a time
- Networking: none; leaderstats replicate to clients automatically
- Compatibility: tested in Roblox Studio as of November 2026; works with R6/R15, StreamingEnabled and mobile
Setup
- Download LeaderstatsSaver.rbxmx and drag it into Roblox Studio.
- Move the LeaderstatsSaver script into ServerScriptService.
- Game Settings > Security > turn on Enable Studio Access to API Services to test saving in Studio.
- Edit the STATS table to change stat names and starting values.
Requirements: none. Basic Luau knowledge helps if you want to use the Api module.
License: free to use in your own experiences, including monetized ones. Don't resell, share or re-upload the source as your own.
What's included
- LeaderstatsSaver.rbxmx: the server Script with its Api ModuleScript
- Setup notes at the top of the Script
Technical details
Compare- Type
- Script + ModuleScript
- Data saving
- DataStoreService, UpdateAsync with retries
- Autosave
- Every 120 seconds, on leave and on shutdown
- RemoteEvents
- None
- Setup time
- About a minute
Changelog
License
- Use it in any of your own experiences
- Use it in monetized games
- Edit and extend it for your projects
- Resell, share or re-upload the files
- Sublicense or give them away
- Use them in rule-breaking projects
Non-exclusive, non-transferable license. Full terms in the EULA.
Reviews
Sign in and add this asset to review it.
- OblivionTheDev24/11/2026
Perfect product
More scripts
Compare side by sideRoundKit: Round Manager
$4.99Lobby, intermission, map voting and timed rounds: the game loop, ready to use.
Admin Commands Lite
SoonFree chat admin commands: kick, speed, teleport and more, for you and your mods.
CodeKit: Redeem Codes
$2.00Redeem codes for your game: a ready-made window, expiring and limited codes, saved per player.