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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"constraintType": "<constraintType>",
"parentPath": "<parentPath>",
"attachment0Path": "<attachment0Path>"
},
"name": "roblox_add_constraint"
}
}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. |