Skip to main content
skill CX Codex

roblox-physics · nonlooped — Claude Code skill: what it does, how to install

roblox-physics guides agents on building and debugging Roblox assemblies, vehicles, mover constraints, and network ownership.

MIT 521 installs ★ 36 updated 2026-10-22

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add nonlooped/roblox-suite --skill roblox-physics -a claude-code
Open on GitHub

What roblox-physics does

The skill provides exact guidelines for Roblox physics mechanics, preventing typical scripting errors like frame-by-frame CFrame manipulation or obsolete BodyMover objects. It covers mechanical components like HingeConstraint and CylindricalConstraint, alongside modern target forces such as AlignPosition and LinearVelocity.

Included guidelines also handle assembly architecture, the physics sleep system, and stepping modes (Fixed at 240 Hz versus Adaptive). Anchoring multiple parts within a single mechanism splits the assembly; the skill helps avoid this mistake by structuring anchor logic solely around root parts. It also addresses security gaps, warning that client-owned parts require strict server-side validation against physics exploits.

What it helps with

  • migrate deprecated BodyMovers to modern AlignPosition and LinearVelocity
  • set up multi-part vehicle assemblies and spring suspension
  • fix input delay on moving mechanisms by assigning network ownership
  • prevent slow moving assemblies from falling asleep prematurely

Example prompts for the agent

  • Create a motorized sliding door using PrismaticConstraint and limits
  • Replace BodyVelocity with LinearVelocity for this moving platform script
  • Explain how to configure SetNetworkOwner on a vehicle chassis

How to install roblox-physics

1Skills CLI (Vercel)

npx skills add nonlooped/roblox-suite --skill roblox-physics -a claude-code

2Manually: put the files in place

~/.claude/skills/roblox-physics/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/roblox-physics/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about roblox-physics

How to install roblox-physics in Claude Code?

Run npx skills add nonlooped/roblox-suite --skill roblox-physics -a claude-code in your terminal.

What does roblox-physics do?

It provides reference patterns and migration tables for modern Roblox physics constraints, assemblies, and simulation performance.

When should you use Adaptive physics stepping over Fixed?

Adaptive stepping distributes assemblies into 60, 120, and 240 Hz islands for higher throughput, while Fixed 240 Hz suits high-precision racing and destruction.

Source text

SKILL.md · MIT
---
name: roblox-physics
description: "Build or debug Roblox vehicles, mechanisms, and moving objects. Use for assemblies, mechanical or mover constraints, network ownership, collision filtering, and simulation performance."
last_reviewed: 2026-06-17
---

# roblox-physics

**Official sources:**
- https://create.roblox.com/docs/physics
- https://create.roblox.com/docs/physics/assemblies
- https://create.roblox.com/docs/physics/mechanical-constraints
- https://create.roblox.com/docs/physics/mover-constraints
- https://create.roblox.com/docs/physics/network-ownership
- https://create.roblox.com/docs/physics/sleep-system
- https://create.roblox.com/docs/physics/adaptive-timestepping
- https://create.roblox.com/docs/physics/units
- https://create.roblox.com/docs/workspace/collisions

Use mechanical constraints to connect parts and mover constraints to apply forces or velocity targets. For older code, use the BodyMover migration table below.

## Core concepts

### Assemblies

An **assembly** is one or more parts connected by rigid welds or movable joints, simulated as a single rigid body.

Key `BasePart` properties (same for any part in the assembly):
- `AssemblyLinearVelocity` / `AssemblyAngularVelocity`: prefer constraints or `ApplyImpulse` over direct assignment for realistic motion.
- `AssemblyCenterOfMass`: force here produces pure linear acceleration.
- `AssemblyMass`: sum of all part masses; infinite if any part is anchored.
- `AssemblyRootPart`: automatically chosen root for replication and network ownership.

Root-part priority: anchored > non-massless > higher `RootPriority` > size/name heuristics.

### Anchoring

- Anchoring one part in an assembly makes it the root; the rest are implicitly anchored.
- Anchoring multiple parts in the same assembly **splits** it.
- To anchor an entire assembly, only anchor the root part.

### Collision filtering

Use collision groups (`Workspace:RegisterCollisionGroup` (inherited from `WorldRoot`), `BasePart.CollisionGroup`) or `NoCollisionConstraint` for part-to-part filtering. `CanCollide`, `CanTouch`, and `CanQuery` control different behaviors; see [references/collisions-and-filtering.md](references/collisions-and-filtering.md).

## Mechanical constraints

All mechanical constraints connect one or two `Attachment`s (or `Bone`s), except `WeldConstraint` and `NoCollisionConstraint` which use `Part0`/`Part1`.

| Constraint | Use case |
| --- | --- |
| `WeldConstraint` | Rigidly lock two parts together, same relative transform |
| `RigidConstraint` | Same as WeldConstraint but attachment-based, supports bones |
| `HingeConstraint` | Doors, levers, rotating parts; motor/servo optional |
| `PrismaticConstraint` | Sliding doors, elevators, pistons |
| `CylindricalConstraint` | Slides + rotates, like hydraulic rams or landing gear |
| `SpringConstraint` | Springs, shocks, suspension |
| `TorsionSpringConstraint` | Rotational springs |
| `BallSocketConstraint` | Shoulders, ball joints |
| `UniversalConstraint` | Drive shafts, constant-velocity joints |
| `RopeConstraint` | Cables, winches, maximum length |
| `RodConstraint` | Fixed separation distance |
| `PlaneConstraint` | Constrain motion to a plane |
| `NoCollisionConstraint` | Disable collisions between two specific parts |

See [references/mechanical-constraints.md](references/mechanical-constraints.md) for creation, orientation, motor/servo tuning, and limits.

## Mover constraints

Modern replacements for deprecated `BodyMover`s:

| Legacy | Modern | Use case |
| --- | --- | --- |
| `BodyPosition` | `AlignPosition` | Move attachment to a position or another attachment |
| `BodyGyro` | `AlignOrientation` | Align orientation; `LookAtPosition` for tracking |
| `BodyVelocity` | `LinearVelocity` | Maintain constant velocity along vector/line/plane |
| `BodyAngularVelocity` | `AngularVelocity` | Maintain constant angular velocity |
| `BodyForce`/`BodyThrust` | `VectorForce` | Apply constant force |
| `RocketPropulsion` | `LineForce` + `AlignOrientation` | Follow + face target |
| - | `Torque` | Apply constant torque |
| - | `LineForce` | Force along line between two attachments |
| - | `AnimationConstraint` | Constraint driven by animation/transform |

See [references/mover-constraints.md](references/mover-constraints.md) for force modes (`Magnitude` vs `PerAxis`), relativity frames, rigidity, and reaction forces.

## Network ownership

- The server owns anchored parts.
- Unanchored parts near a player character are automatically owned by that client.
- Set ownership explicitly with `BasePart:SetNetworkOwner(player)` (server only). Reset with `SetNetworkOwnershipAuto()`.
- Assign vehicle/driver ownership carefully: the first seated player may own the whole assembly otherwise.

**Security:** clients can exploit owned parts (teleport, fake collisions). Validate gameplay-critical events server-side. See [references/network-ownership.md](references/network-ownership.md).

## Sleep system

Assemblies stop simulating when still to save performance. They wake on collisions, property changes, impulses, or gravity/wind changes.

- If a slow mechanism falls asleep, increase motion or use actuated joints (motor/servo constraints) which get stricter sleep thresholds.
- Visualize sleep states with **Awake parts** in Studio's Visualization Options.

## Physics stepping method

Workspace.PhysicsSteppingMethod:
- **Fixed** (default, 240 Hz): best general choice; use for racing, destruction, tanks, or when most parts already solve at 240 Hz.
- **Adaptive**: assigns assemblies to 60/120/240 Hz islands for up to ~2.5× performance in suitable experiences.

Use the MicroProfiler to check island distribution.

## Units quick reference

| Roblox | Metric |
| --- | --- |
| 1 stud | 28 cm |
| 1 RMU | 21.952 kg |
| 196.2 studs/s² | default "Classic" gravity |
| 35 studs/s² | "Realistic" gravity (≈ 9.8 m/s²) |

See [references/units-and-physical-properties.md](references/units-and-physical-properties.md).

## Common mistakes

- Using deprecated `BodyMover`s instead of modern constraints.
- Setting `CFrame` every frame instead of using forces/constraints.
- Anchoring every part in an assembly (splits it and hurts performance).
- Ignoring network ownership on vehicles and then wondering why input lags.
- Trusting `Touched` events from client-owned parts for damage/authority.
- Letting actuated joints fall asleep prematurely.

## Scripts

- `scripts/VehicleController.lua`: chassis setup with `HingeConstraint` steering and motor drive, with client ownership and server validation.
- `scripts/DoorHinge.lua`: motorized/servo door with limits and state machine.
- `scripts/PlatformMover.lua`: `AlignPosition` + `AlignOrientation` platform with configurable waypoints.
- `scripts/Suspension.lua`: spring-damper suspension using `SpringConstraint`.

## How to proceed

1. Decide if the object is a rigid mechanism (mechanical constraint) or force-driven (mover constraint).
2. Plan assemblies, root parts, and anchoring strategy.
3. Set network ownership for multiplayer responsiveness.
4. Tune forces/velocities using units and physical properties.
5. Profile with MicroProfiler and watch sleep/ownership visualizations.

<!-- catalog:references:start -->
## Reference index

- [collisions-and-filtering.md](references/collisions-and-filtering.md): Configure collision groups, touch events, or spatial query filters.
- [mechanical-constraints.md](references/mechanical-constraints.md): Connect parts with hinges, springs, ropes, or other mechanical constraints.
- [mover-constraints.md](references/mover-constraints.md): Apply forces or velocity targets, or migrate BodyMover code.
- [network-ownership.md](references/network-ownership.md): Assign physics simulation to the server or a player and debug ownership.
- [units-and-physical-properties.md](references/units-and-physical-properties.md): Tune mass, density, friction, force, or simulation stepping.
<!-- catalog:references:end -->

© nonlooped · MIT · nonlooped/roblox-suite

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

roblox-physics by other authors comes first.

roblox-physics gamedev-skills Claude Code skill for Roblox physics and spatial queries, managing assemblies, constraints, and network ownership. CX Codex +1 9,100installs roblox-physics TabooHarmony Guides Roblox physics setups for vehicles, ragdolls, constraints, network ownership, and projectiles while troubleshooting simulation glitches. CX Codex +1 3,200installs roblox-physics EL4CTEO The roblox-physics skill for Claude Code manages physics simulations and spatial queries. Use it when setting up raycasts, collisions, and vehicle mechanics. CX Codex +1 1,200installs roblox-characters gamedev-skills This Claude Code skill helps debug Roblox character scripts, animations, and movement. It applies when scripts fail after respawn, animations stop replicating, or sprint logic conflicts with Humanoid. CX Codex +1 9,300installs roblox-animation-vfx TabooHarmony roblox-animation-vfx — a skill that helps your coding agent write and fix Roblox animations, particles, beams, trails and tweens. CX Codex +1 4,200installs roblox-monetization TabooHarmony roblox-monetization — a skill for Roblox purchase work: Game Passes, Developer Products, subscriptions, private servers and policy checks. Useful when a purchase stops granting. CX Codex +1 3,400installs roblox-animations sentinelcore A reference skill for Roblox animations: loading tracks, priorities, blending, and swapping default character animations. Useful when your agent writes Humanoid or rig code. CX Codex +1 1,000installs roblox-security sentinelcore roblox-security — a skill for Claude Code and five other coding agents that teaches secure Roblox scripting patterns. It kicks in when you write RemoteEvent handlers, currency logic, damage systems or any server-authoritative code. CX Codex +1 783installs scenario-roblox-environment scenario-labs scenario-roblox-environment — a Claude Code skill for building and lighting Roblox maps. Sets up level layouts, collision fidelity, terrain generation, and scene lighting. CX Codex +1 393installs

From the same set16

The whole set →
roblox-gamepasses roblox-gamepasses walks your agent through Roblox monetization: game passes, developer products, subscriptions and Robux transfers, with every benefit granted on the server. CX Codex +1 547installs roblox-core roblox-core is a Claude Code skill for choosing Roblox services, script locations, and execution contexts. It handles questions about Luau types, serialization, module loading, streaming, and client-server data. CX Codex +1 546installs roblox-datastores roblox-datastores is a Claude Code skill that implements and debugs persistent player data in Roblox, including concurrent writes, leaderboards, migrations, and storage choices. CX Codex +1 544installs roblox-audio This skill helps build and debug Roblox audio graphs, spatial sound, effects, and speech features. Use it when setting up playback or deciding whether to move from Sound to the audio graph. CX Codex +1 522installs roblox-rojo roblox-rojo sets up Rojo 7 to sync local filesystem code with Roblox Studio, build place files, and export places back to disk. CX Codex +1 519installs roblox-teleport roblox-teleport moves Roblox players between places, public servers, and reserved servers using TeleportAsync. Shows how to pass data, handle failures, and set up lobby flows. CX Codex +1 519installs roblox-npcs roblox-npcs — a skill for building and debugging NPC navigation in Roblox using PathfindingService. Use when you need patrol, chase, or obstacle avoidance logic. CX Codex +1 518installs roblox-open-cloud Reference skill for Roblox Open Cloud REST API to handle external automation, CI/CD deployments, and Data Store operations. CX Codex +1 497installs

Project sponsors

Companies that keep this analytics open