Command Palette

Search for a command to run...

Back to skills
skill № 63624

roblox-physics

Build or debug Roblox vehicles, mechanisms, and moving objects. Use for assemblies, mechanical or mover constraints, network ownership, collision filtering…

FreeRuns bundled scripts
nonloopedby nonlooped★ 40 GitHub stars

Install roblox-physics in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

roblox-physics

Official sources:

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.

Mechanical constraints

All mechanical constraints connect one or two Attachments (or Bones), 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 for creation, orientation, motor/servo tuning, and limits.

Mover constraints

Modern replacements for deprecated BodyMovers:

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 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.

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 s
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • references/collisions-and-filtering.md
  • references/mechanical-constraints.md
  • references/mover-constraints.md
  • references/network-ownership.md
  • references/units-and-physical-properties.md
  • scripts/DoorHinge.lua
  • scripts/PlatformMover.lua
  • scripts/Suspension.lua
  • scripts/VehicleController.lua

FAQ

What does the roblox-physics skill do?

Build or debug Roblox vehicles, mechanisms, and moving objects. Use for assemblies, mechanical or mover constraints, network ownership, collision filtering, and simulation performance.

How do I install the roblox-physics skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the roblox-physics skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare roblox-physics with