Coin Chest System
A complete coin loop: chests that pay out, a live leaderboard, and crash-safe DataStore saving that survives server restarts, not just rejoins. The chest is deliberately plain, so you can drop your own model over it.
Luau / DataStore / Crash-safe saves
- Category
- Roblox Scripts
- Made for
- Game developers
- Built with
- Luau
- Version
- v1.0.0
- Files
- 02
- Price
- $10
Specification
§ 1 In the download
What you get.
Creates the Coins leaderboard stat and saves it with DataStore, including when the server shuts down.
Pays out coins when a player opens the chest, then waits out the cooldown.
§ 2 Setup
Up and running.
Put CoinDataSystem_Server in ServerScriptService as a Script. It creates the Coins leaderboard itself, so remove any other script that creates leaderstats.
Add a ProximityPrompt to your chest part or model, then put CoinChest_Server inside the chest as a Script. Each chest works on its own, so copy it for as many as you want.
To test saving in Studio, turn on Game Settings > Security > Enable Studio Access to API Services.
§ 3 Settings
What you can change.
Copied straight from the script: this is its settings block, the part you're meant to edit. The rest of the code comes with your download.
-- CONFIGURATION (Please make changes here)local COIN_REWARD = 50 -- Coins given per openlocal COOLDOWN = 5 -- Seconds until the chest can be reopened-- CONFIGURATION (Please make changes here)local STARTING_COINS = 0 -- Balance for a brand new playerlocal LOAD_ATTEMPTS = 3 -- Retries before giving up on a loadlocal SAVE_ATTEMPTS = 3 -- Retries before giving up on a savelocal RETRY_DELAY = 2 -- Seconds between attempts§ 4 Good to know
Before you buy.
- Full, readable source. Nothing is hidden, so you can read and change every line.
- It stays in your library, with free updates for as long as it's sold.
- If it doesn't work as described and can't be fixed, you get your money back. See the refund policy.
- Questions before or after are welcome in the Discord, or at support@venscripts.dev.
Ready when you are.
Coin Chest System · $10