ashexplained/roblox-skills

roblox-datastore-persistence

Design, implement, and review Roblox DataStore persistence.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/ashexplained/roblox-skills --skill roblox-datastore-persistence

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Roblox DataStore Persistence

Goal

Save player progress reliably without corrupting or losing valuable state.

Schema Rules

  • Store compact canonical state, not UI state.
  • Include schemaVersion.
  • Keep defaults centralized.
  • Validate loaded data before using it.
  • Write migrations that can handle old, missing, or partial data.
  • Keep transient match/session state separate from permanent profile state.

Save Strategy

  • Load once when the player joins.
  • Keep an in-memory authoritative profile on the server.
  • Save on meaningful intervals and player leave.
  • Save on server shutdown with a bounded timeout.
  • Debounce rapid save requests.
  • Retry transient failures with backoff.
  • Mark dirty profiles and avoid unnecessary writes.

Valuable State

Treat these carefully:

  • Currency and premium currency.
  • Inventory, pets, cosmetics, boosts, quest progress, achievements.
  • Purchases and receipt-granted items.
  • Trading or gifting results.
  • Daily streaks and time-gated rewards.

MCP Review Workflow

  1. Use script_grep for DataStore, UpdateAsync, SetAsync, GetAsync, profile, save, and load.
  2. Read all persistence scripts with script_read.
  3. Map load, mutation, save, and shutdown flow.
  4. Patch with multi_edit.
  5. Playtest join/change/leave-like paths where possible and check get_console_output.

Output

Return:

  • Profile schema.
  • Save/load flow.
  • Migration plan.
  • Failure modes handled.
  • Manual tests still needed in published or multi-server conditions.

Next

Harden the save path against exploits with roblox-security-economy, then verify saves survive rejoin and shutdown with roblox-playtest-qa.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills
ashexplained
社区

roblox-playtest-qa

Playtest Roblox experiences through Studio MCP with attention to first-session fun, mobile UX, console errors, progression, social hooks, performance, and exploit-sensitive flows.

1小时安装量
4
GitHub Stars
63
最近更新
7月1日
ashexplained
社区

roblox-animation-audio-feedback

Improve Roblox feel through animation, audio, VFX, haptics-like feedback, reward juice, movement feel, combat feedback, UI transitions, emotes, and satisfying loop feedback without hurting mobile performance.

1小时安装量
3
GitHub Stars
63
最近更新
7月1日
ashexplained
社区

roblox-combat-systems

Design, implement, and review Roblox combat systems. Use for melee, ranged, abilities, cooldowns, hit detection, damage validation, status effects, enemy AI hooks, combat UI, balance knobs, VFX/SFX, and exploit-resistant remotes.

1小时安装量
3
GitHub Stars
63
最近更新
7月1日
ashexplained
社区

roblox-creator-store-security-audit

Audit Roblox Creator Store, Toolbox, inventory, group, universe, package, model, UI, gameplay, plugin-like, and other third-party imported assets for malicious or risky scripts. Use whenever Claude imports, inserts, reviews, or trusts Creator Store assets, especially assets with Scripts, LocalScripts, ModuleScripts, hidden descendants, require calls, HTTP, DataStore, remote creation, obfuscated code, or suspicious names.

1小时安装量
3
GitHub Stars
63
最近更新
7月1日