Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(roblox): Server Authority prediction notes and WorldRoot collision groups in physics

Kiro Creweac855f6fe9e
diff --git a/skills/other-engines/roblox-physics/SKILL.md b/skills/other-engines/roblox-physics/SKILL.md
index 40b50b8..eefde58 100644
--- a/skills/other-engines/roblox-physics/SKILL.md
+++ b/skills/other-engines/roblox-physics/SKILL.md
@@ -40,7 +40,10 @@ validation belongs to `roblox-networking`; decorative UI/world motion may only n
1. **Inspect the mechanism.** In Studio, visualize assemblies, anchors, constraints, collision
groups, massless parts, and network owners. Identify the assembly root and intended authority.
2. **Define interaction policy.** Write the collision-group matrix and separately decide
- `CanCollide`, `CanTouch`, and `CanQuery`. These flags are not interchangeable.
+ `CanCollide`, `CanTouch`, and `CanQuery`. These flags are not interchangeable. Register groups
+ in the Studio Collision Groups editor or with `Workspace:RegisterCollisionGroup()` and
+ `Workspace:CollisionGroupSetCollidable()`; the `PhysicsService` collision-group methods are
+ deprecated and forward to `Workspace`.
3. **Choose simulation or query.** Do not use `.Touched` as a universal hit detector. Use a ray for
a path/line, an overlap query for a volume, and simulation contacts when physical response is
actually required.
@@ -118,6 +121,12 @@ policy below. `OverlapParams.Tolerance` controls contact slop.
cost. Visualize network owners in Studio.
- A client owner can manipulate physical results and `.Touched` observations. The server validates
consequential hits, positions, timing, and permissions independently.
+- If `Workspace.AuthorityMode` is `Server`, the server owns simulation and clients predict parts
+ near their own character with rollback (`RunService:SetPredictionMode()`, client-only, overrides
+ per instance). Drive
+ predicted forces and constraints from `RunService:BindToSimulation()` on both sides rather than
+ from `Heartbeat` or client-only scripts; custom physics scripts need adapting when a place
+ switches modes. See `roblox-networking`.
## Common failures
diff --git a/skills/other-engines/roblox-physics/references/queries-and-ownership.md b/skills/other-engines/roblox-physics/references/queries-and-ownership.md
index bb3a6b5..2c62a5e 100644
--- a/skills/other-engines/roblox-physics/references/queries-and-ownership.md
+++ b/skills/other-engines/roblox-physics/references/queries-and-ownership.md
@@ -8,7 +8,11 @@ multiplayer ownership/security test.
`CanCollide` controls physical response, `CanTouch` controls touch event participation, and
`CanQuery` controls spatial-query eligibility (subject to query parameters). Define each by role.
Typical sensor parts do not collide but may touch/query; visual-only geometry may do neither. Use
-named collision groups through `PhysicsService` and verify the actual matrix in Studio.
+named collision groups registered on the world (`Workspace:RegisterCollisionGroup()`,
+`CollisionGroupSetCollidable()`; a `WorldModel` keeps its own matrix unless
+`UseWorkspaceCollisionGroups` is on) and verify the actual matrix in Studio. Registration has a
+cost proportional to part count, so register groups at edit time or once at startup. The
+`PhysicsService` versions are deprecated.
## Query selection
@@ -54,4 +58,5 @@ temporary-object cleanup. Use server-observed results for gameplay assertions.
- `https://create.roblox.com/docs/physics/assemblies`
- `https://create.roblox.com/docs/physics/network-ownership`
- `https://create.roblox.com/docs/workspace/raycasting`
+- `https://create.roblox.com/docs/workspace/collisions`
- `https://create.roblox.com/docs/reference/engine/datatypes/RaycastParams`