Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
Rigid
A RigidConstraint connects two Attachments or Bones and ensures they stay in the same relative position/orientation to each other. This flexibility gives it additional functionality beyond WeldConstraint, such as attaching accessories to Attachments on a character rig.
Note
To attach two BaseParts together, versus two Attachments or Bones, see WeldConstraint.
When creating a RigidConstraint using Studio's Constraint button, the tool behaves differently depending on whether you click on existing BaseParts, Attachments, or Bones after the tool is activated:
- Clicking on an existing
BasePartcreates a newAttachmentupon it as the intendedRigidConstraint.Attachment0orRigidConstraint.Attachment1. - Clicking on an existing
AttachmentorBoneuses that instance as the intendedRigidConstraint.Attachment0orRigidConstraint.Attachment1.
Following the second valid click, a new RigidConstraint is created to connect the two new attachments. If either the first or second click is not made on a BasePart, Attachment, or Bone, the workflow is canceled and no constraint is created.