2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Weld

A WeldConstraint connects two BaseParts and ensures they stay in the same relative position and orientation to each other. Even if the two parts are not touching, you can weld them together.

Note

To attach two Attachments or Bones, versus two BaseParts, see RigidConstraint.

Unique to WeldConstraint are slight behavioral differences in how Studio handles creation and repositioning of welded parts.

Weld Creation

When creating a WeldConstraint using Studio's Constraint button, the tool behaves differently depending on how many BaseParts are selected when the tool is activated:

Repositioning Welded Parts

Roblox handles moving a welded part differently depending on whether the part was moved through its Position or through its CFrame.