BosskuAI Roblox Systems Scripter
Use this skill to build Roblox game systems where the server is the source of truth and player data is not lost.
How this differs from nearby skills
bosskuai-godot-multiplayer-engineer: the same authority ideas in Godot. This skill covers Roblox's Remote objects, DataStore, and service model.
bosskuai-unity-editor-tool-developer: Unity tooling, not runtime netcode.
bosskuai-llm-trading-agent-security: untrusted-input handling in a different domain.
bosskuai-redis-caching-queues: server-side retry and idempotency patterns in web stacks; Roblox uses its own DataStore service.
Workflow
- Split responsibilities: the server owns damage, currency, inventory, and position authority; the client displays state and requests actions.
- Map every Remote: direction, caller, payload shape, and who validates it. Keep Remote references in one shared module or folder.
- Validate every
OnServerEvent: type, range, cooldown, distance, and that the player is allowed to ask. Assume payloads can be garbage.
- Avoid
RemoteFunction:InvokeClient() from the server (a bad client can stall the thread) and add a timeout path to InvokeServer uses.
- Persistence: design the key schema and a version field first. Wrap every DataStore call in
pcall with retry and backoff. Save on PlayerRemoving and in BindToClose. Respect the documented request budgets and check the current Roblox DataStore limits and error codes. Consider UpdateAsync for concurrent-write safety and session locking when a player may load on two servers.
- Do not load default data over a failed read and then save it; treat a failed load as an error state that blocks save so data is not overwritten.
- Structure the code as ModuleScripts with
init() and thin bootstrap Scripts and LocalScripts. Put shared constants in one place.
- Security review: fire Remotes with impossible values using a test script and confirm the server rejects them; check no server logic or secrets are reachable from the client.
- Shutdown and stress test: rapid join and leave, server close during sessions, DataStore outage then recovery.
Guardrails
- Roblox APIs, limits, and best practices change; check the current Creator documentation before using a service or quota.
- Follow Roblox's terms and safety policies, especially for chat, minors, and monetisation.
- Do not test destructive scripts on a live published experience.
- Roblox updates the engine on its own. Write down the date you checked each API and limit in the Creator Hub (create.roblox.com/docs).
- Run DataStore tests only in a separate test experience, with its own data stores and test data, never in a place inside the live experience. Never enable Studio Access to API Services on a live experience.
- Luau numbers are doubles, so store large IDs as strings, not numbers.
- Test a save that fails halfway, two servers saving one key, a server that closes mid-save, and a player who leaves during the load.
- Load records written by an earlier schema version. Roll out a schema change in steps, so old and new servers can both read the data.
Full quality bar (versions, edge cases, data, deploy, proof): ../../references/checklists/engineering-quality-bar.md.
Output format
Authority map: [state -> owner]
Remotes: [name, direction, validation]
Data: [key, schema version, save triggers, retry policy]
Modules: [list + init order]
Exploit tests: [input tried, result]
Adapted from agency-agents/game-development/roblox-studio/roblox-systems-scripter.md (agency-agents, MIT).
1---2name: bosskuai-roblox-systems-scripter3description: "Use when scripting a Roblox experience in Luau: server-authoritative design, RemoteEvent validation, DataStore saves with retry, module layout, and anti-exploit review."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-roblox-systems-scripter6---78# BosskuAI Roblox Systems Scripter910Use this skill to build Roblox game systems where the server is the source of truth and player data is not lost.1112## How this differs from nearby skills1314- **`bosskuai-godot-multiplayer-engineer`**: the same authority ideas in Godot. This skill covers Roblox's Remote objects, DataStore, and service model.15- **`bosskuai-unity-editor-tool-developer`**: Unity tooling, not runtime netcode.16- **`bosskuai-llm-trading-agent-security`**: untrusted-input handling in a different domain.17- **`bosskuai-redis-caching-queues`**: server-side retry and idempotency patterns in web stacks; Roblox uses its own DataStore service.1819## Workflow20211. Split responsibilities: the server owns damage, currency, inventory, and position authority; the client displays state and requests actions.222. Map every Remote: direction, caller, payload shape, and who validates it. Keep Remote references in one shared module or folder.233. Validate every `OnServerEvent`: type, range, cooldown, distance, and that the player is allowed to ask. Assume payloads can be garbage.244. Avoid `RemoteFunction:InvokeClient()` from the server (a bad client can stall the thread) and add a timeout path to `InvokeServer` uses.255. Persistence: design the key schema and a version field first. Wrap every DataStore call in `pcall` with retry and backoff. Save on `PlayerRemoving` and in `BindToClose`. Respect the documented request budgets and check the current Roblox DataStore limits and error codes. Consider `UpdateAsync` for concurrent-write safety and session locking when a player may load on two servers.266. Do not load default data over a failed read and then save it; treat a failed load as an error state that blocks save so data is not overwritten.277. Structure the code as ModuleScripts with `init()` and thin bootstrap Scripts and LocalScripts. Put shared constants in one place.288. Security review: fire Remotes with impossible values using a test script and confirm the server rejects them; check no server logic or secrets are reachable from the client.299. Shutdown and stress test: rapid join and leave, server close during sessions, DataStore outage then recovery.3031## Guardrails3233- Roblox APIs, limits, and best practices change; check the current Creator documentation before using a service or quota.34- Follow Roblox's terms and safety policies, especially for chat, minors, and monetisation.35- Do not test destructive scripts on a live published experience.36- Roblox updates the engine on its own. Write down the date you checked each API and limit in the Creator Hub (create.roblox.com/docs).37- Run DataStore tests only in a separate test experience, with its own data stores and test data, never in a place inside the live experience. Never enable Studio Access to API Services on a live experience.38- Luau numbers are doubles, so store large IDs as strings, not numbers.39- Test a save that fails halfway, two servers saving one key, a server that closes mid-save, and a player who leaves during the load.40- Load records written by an earlier schema version. Roll out a schema change in steps, so old and new servers can both read the data.4142Full quality bar (versions, edge cases, data, deploy, proof): `../../references/checklists/engineering-quality-bar.md`.4344## Output format4546```text47Authority map: [state -> owner]48Remotes: [name, direction, validation]49Data: [key, schema version, save triggers, retry policy]50Modules: [list + init order]51Exploit tests: [input tried, result]52```5354Adapted from agency-agents/game-development/roblox-studio/roblox-systems-scripter.md (agency-agents, MIT).