MCPInstall

roblox-physics

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

Installs
301
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/nonlooped/roblox-suite --skill roblox-physics
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads roblox-physics automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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.

ConstraintUse case
WeldConstraintRigidly lock two parts together, same relative transform
RigidConstraintSame as WeldConstraint but attachment-based, supports bones
HingeConstraintDoors, levers, rotating parts; motor/servo optional
PrismaticConstraintSliding doors, elevators, pistons
CylindricalConstraintSlides + rotates, like hydraulic rams or landing gear
SpringConstraintSprings, shocks, suspension
TorsionSpringConstraintRotational springs
BallSocketConstraintShoulders, ball joints
UniversalConstraintDrive shafts, constant-velocity joints
RopeConstraintCables, winches, maximum length
RodConstraintFixed separation distance
PlaneConstraintConstrain motion to a plane
NoCollisionConstraintDisable 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:

LegacyModernUse case
BodyPositionAlignPositionMove attachment to a position or another attachment
BodyGyroAlignOrientationAlign orientation; LookAtPosition for tracking
BodyVelocityLinearVelocityMaintain constant velocity along vector/line/plane
BodyAngularVelocityAngularVelocityMaintain constant angular velocity
BodyForce/BodyThrustVectorForceApply constant force
RocketPropulsionLineForce + AlignOrientationFollow + face target
-TorqueApply constant torque
-LineForceForce along line between two attachments
-AnimationConstraintConstraint 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 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

RobloxMetric
1 stud28 cm
1 RMU21.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.

Common mistakes

  • Using deprecated BodyMovers 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: Configure collision groups, touch events, or spatial query filters.
  • mechanical-constraints.md: Connect parts with hinges, springs, ropes, or other mechanical constraints.
  • mover-constraints.md: Apply forces or velocity targets, or migrate BodyMover code.
  • network-ownership.md: Assign physics simulation to the server or a player and debug ownership.
  • units-and-physical-properties.md: Tune mass, density, friction, force, or simulation stepping.
<!-- catalog:references:end -->

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 roblox-physics?

Run npx skills add https://github.com/nonlooped/roblox-suite --skill roblox-physics in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/roblox-physics/ (personal) or .claude/skills/roblox-physics/ (project).

Which AI agents can use roblox-physics?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is roblox-physics safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains roblox-physics?

It is published by nonlooped in nonlooped/roblox-suite. It has 301 recorded installs.

More from nonlooped/roblox-suite

View all →

roblox-vfx

nonlooped/roblox-suite

Build or optimize Roblox particles, beams, trails, and highlights. Use for emitter shapes, flipbooks, one-shot bursts, animation-marker effects, distance culling, and overdraw.

Frontend & Design685 installs

roblox-animation

nonlooped/roblox-suite

Build or debug Roblox character animations, IK poses, animation-marker events, and UI or object tweens. Use for locomotion, emotes, motion blending, and timed effects.

Frontend & Design414 installs

roblox-user-interfaces

nonlooped/roblox-suite

Build or debug Roblox HUDs, menus, and world-space interfaces. Use for GUI containers, responsive layouts, input handling, ViewportFrame previews, and particle effects in 2D UI.

Frontend & Design341 installs

roblox-testing

nonlooped/roblox-suite

Test, debug, or profile Roblox experiences. Use for Studio debugging, TestEZ, logging, connection cleanup, memory or network diagnostics, MicroProfiler, Scene Analysis, and Script Profiler.

Testing & QA330 installs

roblox

nonlooped/roblox-suite

Open the skill to read its SKILL.md instructions.

322 installs

roblox-mcp

nonlooped/roblox-suite

Connect an AI client to Roblox Studio through MCP. Use for connection setup, Studio tools, multiple Studio windows, playtesting, or combining MCP with Script Sync.

AI & Agents321 installs

Popular education & science skills

View category →

teach

mattpocock/skills

Teach the user a new skill or concept, within this workspace.

Education & Science874K installs

scaffold-exercises

mattpocock/skills

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

Education & Science488.2K installs

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

Education & Science478.3K installs

caveman-learn

juliusbrussee/caveman

Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.

Education & Science107.9K installs

gsap-plugins

greensock/gsap-skills

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

Education & Science67.9K installs

teach-impeccable

pbakaus/impeccable

DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.