Roblox Luau scripting
Writes well structured Roblox Luau scripts and fixes common errors like LocalScripts that never run.
Claude's review
7/10 Specific Roblox Luau placement rules, patterns and gotchas with static check workflow.
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 Luau scripting and code structure: services, Instances, Script vs LocalScript vs ModuleScript, the task library and typed Luau, with selene and luau-lsp checks. Use when a LocalScript does not run, a client gets nil after joining or wait() needs replacing. Not for remotes (`roblox-networking`), saving (`roblox-datastores`) or live-place edits (`roblox-studio-workflow`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- 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-luau
description: >
Roblox Luau scripting and code structure: services, Instances, Script vs LocalScript vs
ModuleScript, the task library and typed Luau, with selene and luau-lsp checks. Use when a
LocalScript does not run, a client gets nil after joining or wait() needs replacing. Not for
remotes (`roblox-networking`), saving (`roblox-datastores`) or live-place edits
(`roblox-studio-workflow`).
---
# Roblox Luau scripting
Write Luau that runs in the right place, cleans up after itself, and passes static checks before
anyone presses Play. Remote events appear here only as basic mechanics; contract design and
validation belong to `roblox-networking`.
## Workflow
1. **Read the project setup first.** Rojo `*.project.json`, `selene.toml`, `.luaurc`, Wally or
pesde manifests, and the place's `Workspace.SignalBehavior` and `LuauTypeCheckMode`. Follow the
existing module layout and naming instead of inventing a new one.
2. **Decide where the code runs** (table below). Check `RunContext` on any `Script` before
assuming it is server code.
3. **Get services with `game:GetService("Name")`** at the top of the file, not by indexing `game`.
4. **Create Instances deliberately.** Set properties, then `Parent` last, so the Instance
replicates once in its final state and change handlers do not fire for every property.
5. **Own every connection.** Store what `:Connect` returns and disconnect it with the object or
screen that created it; use `:Once` for one-shot handlers.
6. **Share code through ModuleScripts.** A module runs once per context (server, and each client
separately) and `require` returns the cached result, so module-level state is per context, never
shared between server and client.
7. **Check before reporting.** Run the project's static tools (below). With the Studio MCP server
connected, `start_stop_play`, exercise the change with `execute_luau` on the matching datamodel,
then read `get_console_output` and report any new error or warning. Without it, ask the user to
press Play and paste the Output, from both the server and client views when both sides changed.
### Static checks the agent can run
```bash
selene . # root selene.toml needs std = "roblox"
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Roblox simulator economy
Designs upgrade costs, income rates, rebirth pacing and egg odds for Roblox simulator and tycoon games.
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.
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.
7/101 credit -
Checked
Roblox monetisation
Adds Robux purchases, passes and subscriptions to a Roblox game without losing or double granting sales.
7/101 credit -
Checked
Roblox Physics and Raycasts
Helps you build Roblox hit detection, vehicles and projectiles with modern physics APIs and no jitter or flinging.
7/101 credit -
Checked
Roblox Code Structure
Fixes Roblox scripts that never run, start too early or break on teleports, with current engine rules.
7/101 credit