# Roblox Physics

> Constraints, VehicleSeat, ragdoll, projectiles, Attachment patterns, network ownership.

- **Type:** Skill
- **Install:** `agentstack add skill-tabooharmony-roblox-brain-roblox-physics`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [TabooHarmony](https://agentstack.voostack.com/s/tabooharmony)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [TabooHarmony](https://github.com/TabooHarmony)
- **Source:** https://github.com/TabooHarmony/roblox-brain/tree/main/skills/roblox-physics

## Install

```sh
agentstack add skill-tabooharmony-roblox-brain-roblox-physics
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## When to Load

Use this skill when building physics-driven gameplay: vehicles, ragdolls, projectiles, mechanical contraptions, elevators, swinging platforms, or anything using constraints and forces.

## Quick Reference

### Constraint Types
**Mechanical:** `HingeConstraint` (doors/wheels), `PrismaticConstraint` (elevators/pistons), `CylindricalConstraint` (telescoping), `BallSocketConstraint` (ragdoll/chains), `UniversalConstraint` (steering), `WeldConstraint`/`RigidConstraint` (rigid attach)
**Motion:** `AlignPosition`, `AlignOrientation`, `LinearVelocity`, `AngularVelocity`, `VectorForce`, `Torque`
**Spring/Rope:** `SpringConstraint` (suspension/trampolines), `RopeConstraint` (grapple, slack), `RodConstraint` (rigid link)

### Attachment Pattern
All constraints connect via `Attachment` objects, not Parts directly. Create Attachment on each part, set `constraint.Attachment0`/`Attachment1`, parent constraint to part0. Actuator types: `None`, `Motor` (constant velocity), `Servo` (target position/angle).

### Vehicles
Wheel = `HingeConstraint` (ActuatorType.Motor) + `SpringConstraint` for suspension. Steer = Hinge with ActuatorType.Servo. Rear wheels get throttle AngularVelocity, front wheels get servo TargetAngle. Use `CustomPhysicalProperties` on wheels for friction tuning.

### Ragdoll
Replace Motor6Ds with `BallSocketConstraint`: create Attachments from motor.C0/C1, set `LimitsEnabled=true`, `UpperAngle=45`. Keep Root Motor6D for HRP. Set humanoid state to `Physics`. Re-enable motors to recover.

### Network Ownership
Default: nearest player owns unanchored physics (exploitable!). `part:SetNetworkOwner(nil)` = server-owned (secure, laggy). `part:SetNetworkOwner(player)` = player-owned (responsive). **Rule:** NPCs/world objects → server. Vehicles → driver player. Always set explicitly on important physics objects.

### Common Gotchas
- Constraints do nothing on Anchored parts
- Both Attachment0 AND Attachment1 required (missing one = silent fail)
- Over-constraining = jitter. Tune mass with `CustomPhysicalProperties`
- Use Raycast for hitscan, `Touched` only for slow physics projectiles
- Always set lifetime on physics projectiles (forgotten ones kill perf)
**Need more detail?** Load `references/full.md` for the complete reference with code examples, API tables, and edge cases.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [TabooHarmony](https://github.com/TabooHarmony)
- **Source:** [TabooHarmony/roblox-brain](https://github.com/TabooHarmony/roblox-brain)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tabooharmony-roblox-brain-roblox-physics
- Seller: https://agentstack.voostack.com/s/tabooharmony
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
