roblox-datastores
Skill by gamedev-skills
Roblox DataStoreService skill for persisting player data across sessions. It covers load on join, save on leave and BindToClose, UpdateAsync, session locking and OrderedDataStore leaderboards. Aimed at Roblox developers fixing lost data, duplication or throttling errors.
Install roblox-datastores
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/other-engines/roblox-datastores ~/.claude/skills/roblox-datastoresRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/other-engines/roblox-datastores ~/.gemini/antigravity-cli/skills/roblox-datastoresAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through Roblox DataStoreService persistence. It covers loading player data on join, saving on leave and on server shutdown, and writing with UpdateAsync instead of SetAsync. It also covers session locking, periodic saves and OrderedDataStore leaderboards. The workflow asks the assistant to find any existing persistence layer first and to guard every DataStore call with pcall. A failed load should block saves so defaults never overwrite real data.
The skill includes Luau code patterns, a retry helper with jittered backoff, and a static search for DataStore calls that lack error handling. It also describes how to verify changes in a test place with Studio or by asking the user to rejoin and report values. It is written for Roblox developers dealing with lost player data, items duplicating after teleport, or "too many requests" errors.
Written from the project's SKILL.md and checked against it.
What it can do
- Load on joinLoads player data on PlayerAdded with pcall and marks the session as loaded or not loaded.
- Save on leave and shutdownSaves on PlayerRemoving and in game:BindToClose, plus a periodic save every 60-120 seconds.
- UpdateAsync savesWrites player data with UpdateAsync and explains the session ownership check needed to avoid stale overwrites.
- Session locking guidancePoints to a reference file on session ownership, versioning, pagination and request budgets.
- LeaderboardsShows OrderedDataStore with GetSortedAsync for rankings and BatchGetAsync for a set of keys.
- Retry helperProvides a withRetry function with jittered backoff and notes which calls are safe to repeat.
- Static checkLists rg commands that find DataStore calls outside pcall and BindToClose handlers.
- Studio verificationDescribes a play, change, stop, replay test in a test place using the Studio MCP server or manual steps.
What you need
- Roblox Studio
- A published test place with Enable Studio Access to API Services turned on
- Studio MCP server connected, if using MCP checks
- MCP Permissions Save and load data scopes enabled for the game
Try asking
- Fix lost player data when players rejoin my Roblox game
- Rewrite my DataStore saves to use UpdateAsync with session checks
- Build a top 10 coins leaderboard with OrderedDataStore in Roblox
Good to know
- Studio Run mode uses lower static limits, so rate-limit behavior needs Team Create testing.
- GetAsync can return a cached value for about four seconds after the first read.
- Automated Right to be Forgotten processing for data stores was in beta during 2026.
- Ordered stores have no versioning or metadata, so use a regular DataStore when you need those.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/other-engines/roblox-datastores/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/sessions-and-limits.md8 KB
Alternatives to roblox-datastores
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
roblox-datastores: common questions
How do I stop Roblox player data from being lost?
The skill says to gate saves on a successful load, so a failed load never saves defaults over real data. It also says to save on PlayerRemoving and BindToClose, and to use UpdateAsync with session ownership.
Why does Roblox Studio return StudioAccessToApisNotAllowed?
The source says requests fail with this error unless File, Experience Settings, Security has Enable Studio Access to API Services turned on in a published test place.
What are the Roblox DataStore rate limits?
The source lists about 25 MB per minute of reads and 4 MB per minute of writes per key, and a maximum value size of 4,194,304 characters. Per-experience budgets also apply since 2026-07-29.
How do I install roblox-datastores?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is roblox-datastores free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is roblox-datastores safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to roblox-datastores?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
