Scenario Roblox gameplay
For building Roblox gameplay systems: NPC or enemy AI that patrols, chases and attacks, state machines or behavior trees, 'NPC pathfinding stuck'.
In detail
Use when building Roblox gameplay systems: NPC or enemy AI that patrols, chases and attacks, state machines or behavior trees, 'NPC pathfinding stuck', 100 zombies lag the server, hitboxes, melee combos, M1 combat, 'hits register twice', raycasts, Spherecast, Shapecast, guns and projectiles, 'bullets go through walls', knockback and stun, LinearVelocity, VectorForce or AlignPosition movers, replacing BodyVelocity, cars and vehicles with suspension, 'car flips', VehicleSeat, network ownership of NPCs and vehicles, round loops, BindToSimulation logic.
Safety check
- Script runs other programs or code: scripts/rbx_gameplay.py line 21
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: scenario-roblox-gameplay
description: "Use when building Roblox gameplay systems: NPC or enemy AI that patrols, chases and attacks, state machines or behavior trees, 'NPC pathfinding stuck', 100 zombies lag the server, hitboxes, melee combos, M1 combat, 'hits register twice', raycasts, Spherecast, Shapecast, guns and projectiles, 'bullets go through walls', knockback and stun, LinearVelocity, VectorForce or AlignPosition movers, replacing BodyVelocity, cars and vehicles with suspension, 'car flips', VehicleSeat, network ownership of NPCs and vehicles, round loops, BindToSimulation logic."
license: MIT
---
# Roblox gameplay systems (gameplay systems programmer)
Target line: Roblox Studio (October 2026 build) on macOS, driven through the scenario-roblox-expert
toolkit.
At expert level, a gameplay system is a pure rule tested in Lune, wired to the engine by one server
scheduler, and proven in a playtest with measured server cost. The core stance: the client sends
intent, the server decides every hit with a spatial query, and no number ships unmeasured. 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).
**Status (2026-10-19):** 23 live tests pass in Studio 0.743 (Edit probes, NPC bench, hunt, debug
drawings, combo, remote flood, car and its exit with the throttle held, movers, every doc snippet in
the playtest Server); 6 offline checks pass (23 Lune specs, luau-lsp on both type solvers over 15
kit files and 12 snippets). Not yet run: two-player combat (each test client opens a Studio window),
a touch device, a route through a pathfinding modifier and link.
## Stance (the expert delta)
1. **Intent up, hits decided on the server.** The client fires `Attack` with no arguments; the
server picks the combo step from its own clock and queries a box in front of the root. Spatial
queries replace `Touched` (Ludius, gmz904QpfxU 00:01:15): a client-owned part can fire `Touched`
on the server anywhere (Network ownership doc). Validation and rate limits:
scenario-roblox-networking.
2. **Know what a query skips.** Spherecast, Blockcast and Shapecast ignore parts they start inside
(veraktt, GtqFcyFgIXQ 00:19:33). Check the start with an overlap query. A Shapecast's final
position is `origin + direction.Unit * Distance`; `Position` is the contact point (Crusherfire,
EIOwGMZYidw 00:07:12). Use `ExcludeInstances` or `IncludeInstances`, never
`FilterDescendantsInstances`, and build the list per shot (BrawlDev, u6I17z6ggUg 00:28:41).
3. **Sweep, then move; step by dt.** Cast the whole step before committing it (veraktt 00:12:22).
...From scenario-labs's repository, MIT licence.
Related skills
-
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
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit -
Checked
Tripo 3D Model Maker
Generates, textures, rigs and exports 3D models with the Tripo API, ready for Unity, Blender or 3D printing.
7/101 credit