scenario-roblox-gameplay
Use when building Roblox gameplay systems: NPC or enemy AI that patrols, chases and attacks, state machines or behavior trees, 'NPC pathfinding stuck', 100…
от scenario-labs★ 4 422 звезды на GitHub
Установить scenario-roblox-gameplay в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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)
- Intent up, hits decided on the server. The client fires
Attackwith no arguments; the server picks the combo step from its own clock and queries a box in front of the root. Spatial queries replaceTouched(Ludius, gmz904QpfxU 00:01:15): a client-owned part can fireTouchedon the server anywhere (Network ownership doc). Validation and rate limits: scenario-roblox-networking. - 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;Positionis the contact point (Crusherfire, EIOwGMZYidw 00:07:12). UseExcludeInstancesorIncludeInstances, neverFilterDescendantsInstances, and build the list per shot (BrawlDev, u6I17z6ggUg 00:28:41). - Sweep, then move; step by dt. Cast the whole step before committing it (veraktt 00:12:22). Trapezoid displacement makes the path independent of frame rate (BrawlDev, 0Dt-Ab8czPw 00:33:08); measured in Lune: 30, 60 and 240 Hz agree within 0.001 studs, Euler drifts 0.5.
- One scheduler for every NPC, measured at the target count. One Heartbeat thinks one bucket
per frame, one worker computes paths on a budget, perception is distance first and one raycast
against static geometry [added]. Measured with 100 R15 NPCs: server 60 fps, frame p95 17.6 ms, AI
0.14 ms per frame patrolling and 0.26 ms chasing; the physics step grew to 1.8 ms. Humanoid
physics costs more than the brain, so measure at your count with the AgentKit
Stats, and cut the per-Humanoid cost: unused states disabled,BreakJointsOnDeathfalse, no state machine on static NPCs, models pooled across waves (P5). - Pin NPC roots to the server. An unanchored NPC near a player is simulated, and movable, by
that client (measured: an unpinned NPC 6 studs away belonged to the player);
SetNetworkOwner(nil)after parenting (Network ownership doc). Purely decorative crowds can run as client Humanoids fed by one attribute per NPC every 5 s (Suphi Kaner, JyMxrcqEzu8 00:13:50). - The brain is data with hysteresis. States with
onEnter,onStay,onExitand transitions as a list (Miller, Roblox Learn, nlVpAZEkxgo 00:00:57). Enter Attack at 5 studs, leave above 6.5, give up 4 s after losing sight [added]. Pathfinding success ispcallANDStatus == Success(BrawlDev, ckA4fVkAjIA 00:15:48); recompute onBlockedonly when the index is at or after the next waypoint (Pathfinding doc). Re-issueMoveTo, because it gives up after 8 s. Price routes in oneCoststable (materials,PathfindingModifierandPathfindingLinklabels) instead of special-case code; compute only on the ground, in a loaded world, under 3,000 studs; a failed move snaps to that waypoint, never the goal (P12). - Stun cancels pending hits. A hit victim's queued swing is dropped and its requests refused
for a bounded stun (ArTheDev, Aoc9HkGHu_8 00:02:57). One hit per character per swing, never per
limb (Ludius 00:04:06). Knock a Humanoid back with a
LinearVelocityheld 0.2 s: oneApplyImpulsemoved a standing dummy 1.2 studs, theLinearVelocity10.5 [measured]. - Cars are constraints plus ownership. Per wheel one CylindricalConstraint and one SpringConstraint on the same attachments, upper limit below 0 (Suphi Kaner, FVOowr2DXbM 00:10:19). The driver owns the car while seated (Network ownership doc) and the server keeps a speed check; competitive racing goes to Server Authority. Check the steer si
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/critique.md
- references/expert-notes.md
- references/gui-paths.md
- references/procedures.md
- references/sources.md
- scripts/agentkit/gameplay/Car.luau
- scripts/agentkit/gameplay/CarSafety.luau
- scripts/agentkit/gameplay/Combo.luau
- scripts/agentkit/gameplay/DebugDraw.luau
- scripts/agentkit/gameplay/GameplayAudit.luau
- scripts/agentkit/gameplay/GameplayInputs.luau
- scripts/agentkit/gameplay/Hitbox.luau
- scripts/agentkit/gameplay/NpcBrain.luau
- scripts/agentkit/gameplay/NpcPool.luau
- scripts/agentkit/gameplay/NpcService.luau
- scripts/agentkit/gameplay/PathGuard.luau
- scripts/agentkit/gameplay/Projectile.luau
- scripts/agentkit/gameplay/StateMachine.luau
- scripts/agentkit/gameplay/boot/GameplayClient.client.luau
- scripts/agentkit/gameplay/boot/GameplayServer.server.luau
- scripts/agentkit/gameplay/lune_gameplay_audit.luau
- scripts/agentkit/gameplay/lune_unit.luau
- scripts/rbx_gameplay.py
FAQ
Что делает скилл scenario-roblox-gameplay?
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.
Как установить скилл scenario-roblox-gameplay?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-roblox-gameplay запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…