Scenario Roblox data
For a Roblox game saves or loads player data, or when players report data not saving, lost progress, rollbacks, duplicated items or a purchase granted twice.
In detail
Use when a Roblox game saves or loads player data, or when players report data not saving, lost progress, rollbacks, duplicated items or a purchase granted twice. Triggers: DataStoreService, UpdateAsync, SetAsync, BindToClose, ProfileStore, ProfileService, DataStore2, session locking, data schema or migration, Developer Product ProcessReceipt, player trading, OrderedDataStore leaderboards, MemoryStore, MessagingService, TeleportService and reserved servers, DataStore budgets and throttling (errors 301 to 306), 'You must publish this place to the web to access DataStore', and testing data code in an unpublished place.
Safety check
- Script runs other programs or code: scripts/rbx_data.py line 32
- Script calls the network: scripts/rbx_data.py line 34
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: scenario-roblox-data
description: "Use when a Roblox game saves or loads player data, or when players report data not saving, lost progress, rollbacks, duplicated items or a purchase granted twice. Triggers: DataStoreService, UpdateAsync, SetAsync, BindToClose, ProfileStore, ProfileService, DataStore2, session locking, data schema or migration, Developer Product ProcessReceipt, player trading, OrderedDataStore leaderboards, MemoryStore, MessagingService, TeleportService and reserved servers, DataStore budgets and throttling (errors 301 to 306), 'You must publish this place to the web to access DataStore', and testing data code in an unpublished place."
license: MIT
---
# Roblox Data and Backend
Roblox Studio (October 2026 build) on macOS, driven through the scenario-roblox-expert toolkit.
Expert level here means the data layer stays correct when a server crashes, a write fails after it
landed, or two servers want the same player. Prove those cases against a simulated multi-server
backend before any published test, because an unpublished place cannot reach DataStores at all.
If a sibling skill named here is missing from your available skills, load it with `skill_get`
(Scenario MCP) or ask the user to install it (https://github.com/scenario-labs/skills#install);
unattended, proceed from tool schemas and flag the gap.
**REQUIRED BACKGROUND:** scenario-roblox-expert (channels, review loop, toolkit, current-Roblox
traps).
## Stance (the expert delta)
1. **Session locks stop duplication, UpdateAsync alone does not.** One ProfileStore profile per
player holds the lock (loleris, ProfileStore docs). `UpdateAsync` is safer than `SetAsync` only
when the transform reads the old value (Suphi Kaner, 00:04:43).
2. **A failed write may have landed.** Read with `UseCache = false` before redoing it (Roblox best
practices). Put an operation id inside the value so a repeat is a no-op [added]. With 30% of
writes failing after they landed, naive retries stored 39 for 30 operations in the mock run.
3. **Retries on one key stay in order.** A late retry of an old value overwrites newer data (Roblox
best practices). `KeyQueue` serializes per key.
4. **A purchase is granted once and confirmed saved.** Log each `PurchaseId` in the profile. Return
`PurchaseGranted` only when `LastSavedData` holds it (Rileybytes, 00:29:08; Roblox purchasing
doc). Every other path returns `NotProcessedYet`.
5. **Migrate before `Reconcile`.** `Reconcile` copies the template's `SchemaVersion` into old data,
and the migration is skipped [added, proven against the real ProfileStore].
6. **Old servers never save newer data.** During an update, old and new servers run side by side.
Refuse a higher `SchemaVersion`, release the lock untouched, and kick [added]. Publish every
place of a multi-place game together (CJ_Oyer, 00:27:33).
7. **Two profiles never save atomically.** Editing both without a yield protects memory only
...From scenario-labs's repository, MIT licence.
Related skills
-
Checked
Godot game optimisation
Profiles a Godot game and fixes common slowdowns in draw calls, physics and memory so it runs more smoothly.
7/101 credit -
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Blender asset optimisation
Cuts Blender assets down to each platform's budget with LODs, decimation and texture atlases before export.
7/101 credit -
Checked
Three.js game UI
Designs HUDs, menus, pause screens and touch controls for Three.js games that read well on any screen.
7/101 credit