Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Roblox datastores

Saves Roblox player data safely with session locking and retries, fixing lost data and duplicated items.

Claude's review

8/10 Solid Roblox DataStore workflow covering session locking, retries and safe saving.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Roblox DataStoreService persistence: load on join, save on leave and BindToClose, UpdateAsync vs SetAsync, session locking and OrderedDataStore leaderboards. Use for lost player data, items duplicating after teleport, or "too many requests" errors. Not for engine-neutral saves (`save-systems`), Luau basics (`roblox-luau`) or economy numbers (`roblox-simulator-economy`).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: roblox-datastores
description: >
  Roblox DataStoreService persistence: load on join, save on leave and BindToClose, UpdateAsync vs
  SetAsync, session locking and OrderedDataStore leaderboards. Use for lost player data, items
  duplicating after teleport, or "too many requests" errors. Not for engine-neutral saves
  (`save-systems`), Luau basics (`roblox-luau`) or economy numbers (`roblox-simulator-economy`).
---

# Roblox DataStores

Persist data across sessions without losing or duplicating it. All DataStore calls are network
requests from server `Script`s; they can fail, be throttled, and race with another server writing
the same key.

## Workflow

1. **Find the existing persistence layer.** Search for `DataStoreService`, `GetDataStore`, and any
   profile or session library before writing new code. If the project already uses one, extend it;
   two systems writing the same key is the most common cause of rollbacks.
2. **Use a test place for Studio work.** Studio reads and writes the same live data as players.
   In a separate published test place, turn on File → Experience Settings → Security → *Enable
   Studio Access to API Services*; without it, requests fail with `StudioAccessToApisNotAllowed`.
3. **Key by `UserId`**, never by name: `"Player_" .. player.UserId`.
4. **Guard every call with `pcall`.** On a failed *load*, mark the session as not loaded and refuse
   to save, so defaults never overwrite real data.
5. **Load on `PlayerAdded`, save on `PlayerRemoving` and in `game:BindToClose`**, plus a periodic
   save (every 60-120 s), never on every value change.
6. **Write with `UpdateAsync` and session ownership.** `UpdateAsync` reads the latest value before
   writing; session ownership (in `references/sessions-and-limits.md`) stops a stale server from
   writing an old snapshot over newer progress.
7. **Use `OrderedDataStore` only for numeric rankings** (leaderboards).
8. **Check before reporting.** Run the static check below and fix every hit. Then, with the Studio
   MCP server connected, API access on in a test place, and the user's MCP Permissions → **Save &
   load data** scopes enabled for that game (`universe-datastores.objects:read`, plus `:update` for
   writes; the agent cannot turn these on), play, change a value, stop, play again, and read it
   back with an uncached read from `execute_luau` on the `Server` datamodel. A `502 … Access
   forbidden` error means the scope is off. Without
   MCP, ask the user to do join, change, leave, rejoin in the test place and report the value seen
   after rejoining and any Output warnings. Rate-limit behavior needs Team Create, not Run mode.
...

From gamedev-skills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Roblox Luau scripting

    Writes well structured Roblox Luau scripts and fixes common errors like LocalScripts that never run.

    by gamedev-skills 13k
    7/101 credit
  • Checked

    Roblox simulator economy

    Designs upgrade costs, income rates, rebirth pacing and egg odds for Roblox simulator and tycoon games.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Roblox Studio editing

    Edits a Roblox place or Rojo project safely and proves each change with the right test before reporting.

    by gamedev-skills 13k
    7/101 credit
  • Checked

    Roblox Game Testing

    Sets up Jest Lua tests, cloud test runs and multiplayer playtests for your Roblox game, plus a release checklist.

    by EL4CTEO 169
    7/101 credit
  • Checked

    Roblox Luau Traps Guide

    Catches the Luau bugs that bite Roblox games, like leaking connections, silent errors and wrong buffer reads.

    by TabooHarmony 229
    7/101 credit
  • Checked

    Roblox Game Structure

    Helps you organise a Roblox game's client and server code, data flow and streaming so it stays secure.

    by EL4CTEO 169
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added