roblox-physics
Skill25 starsChanged 56 days agoMITView on GitHub
Build or debug Roblox vehicles, mechanisms, and moving objects. Use for assemblies, mechanical or mover constraints, network ownership, collision filtering, and simulation performance.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- gamedev-skills/awesome-gamedev-agent-skillstheir own version, first seen Oct 23, 2026
- EL4CTEO/roblox-skillstheir own version, first seen Sep 28, 2026
- TabooHarmony/roblox-braintheir own version, first seen Sep 23, 2026
- szlay/roblox-basetheir own version, first seen Jul 24, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- gamedev-skills/awesome-gamedev-agent-skills★ 6.4ksame name
- TabooHarmony/roblox-brain★ 150same name
- EL4CTEO/roblox-skills★ 92same name
- szlay/roblox-base★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- roblox-animationSkill
- roblox-audioSkill
- roblox-coreSkill
- roblox-datastoresSkill
- roblox-gamepassesSkill
- roblox-mcpSkill
- roblox-networkingSkill
- roblox-npcsSkill
- roblox-open-cloudSkill
- roblox-rojoSkill
- robloxSkill
- roblox-teleportSkill
- roblox-testingSkill
- roblox-user-interfacesSkill
- roblox-vfxSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Use mechanical constraints to connect parts and mover constraints to apply forces or velocity targets.
- Very specific: line 44
Use collision groups (Workspace:RegisterCollisionGroup (inherited from WorldRoot), BasePart.CollisionGroup) or NoCollisionConstraint for …
- Very specific: line 48
All mechanical constraints connect one or two Attachments (or Bones), except WeldConstraint and NoCollisionConstraint which use Part0/Part1.
- Distinctive: line 99
If a slow mechanism falls asleep, increase motion or use actuated joints (motor/servo constraints) which get stricter sleep thresholds.
- Distinctive: line 108
Use the MicroProfiler to check island distribution.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 orApplyImpulseover 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 withSetNetworkOwnershipAuto(). - 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
| 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.
Common mistakes
- Using deprecated
BodyMovers instead of modern constraints. - Setting
CFrameevery 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
Touchedevents from client-owned parts for damage/authority. - Letting actuated joints fall asleep prematurely.
Scripts
scripts/VehicleController.lua: chassis setup withHingeConstraintsteering and motor drive, with client ownership and server validation.scripts/DoorHinge.lua: motorized/servo door with limits and state machine.scripts/PlatformMover.lua:AlignPosition+AlignOrientationplatform with configurable waypoints.scripts/Suspension.lua: spring-damper suspension usingSpringConstraint.
How to proceed
- Decide if the object is a rigid mechanism (mechanical constraint) or force-driven (mover constraint).
- Plan assemblies, root parts, and anchoring strategy.
- Set network ownership for multiplayer responsiveness.
- Tune forces/velocities using units and physical properties.
- 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 -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

