sklop
Scriptsv1.0.0

Leaderstats Saver

Leaderstats that save between sessions. Free, one script, set up in a minute.

5.0 · 1 review

Overview

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

  1. Download LeaderstatsSaver.rbxmx and drag it into Roblox Studio.
  2. Move the LeaderstatsSaver script into ServerScriptService.
  3. Game Settings > Security > turn on Enable Studio Access to API Services to test saving in Studio.
  4. 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

1.0.0: First release.

License

You can
  • Use it in any of your own experiences
  • Use it in monetized games
  • Edit and extend it for your projects
You can't
  • 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

5.0 out of 5 · 1

Sign in and add this asset to review it.

  • OblivionTheDev
    24/11/2026

    Perfect product