Roblox Add Constraint
roblox_add_constraintAdd a physics constraint (like Spring, Hinge, or Weld) between two attachments in Roblox Studio. Specify constraint type, parent, and attachments to create realistic joints.
Instructions
Add a physics constraint (SpringConstraint, HingeConstraint, RopeConstraint, WeldConstraint, etc.) between two attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| constraintType | Yes | Type of constraint to create. | |
| parentPath | Yes | Instance path where the constraint will be parented. | |
| attachment0Path | Yes | Path to Attachment0. | |
| attachment1Path | No | Path to Attachment1 (empty for single-attachment constraints). | |
| properties | No | Additional properties to set on the constraint (e.g. {Stiffness: 100, Damping: 10}). | |
| waitForResponseMs | No | Command timeout. |