Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i connect a part to the torso?

local part = Instance.new("Part")
part.Parent = game.Workspace.Player.Torso
part.Name  = "Part0"
part.Size = Vector3.new(1,1,1)
part.Transparency = (0.5)

1 answer

✓ Accepted answer

Using Welds:

local Weld = Instance.new("Weld")
Weld.Part0 = part
Weld.Part1 = Torso
Weld.Parent = part

The above script will stick the part to the torso, however if you wanted to maintain its relative CFrame, use:

local Weld = Instance.new("Weld")
Weld.Part0 = part
Weld.Part1 = Torso
Weld.C0 = part.CFrame:inverse()
Weld.C1 = Torso.CFrame:inverse()
Weld.Parent = part

This discussion is preserved as it was. New answers, comments, and votes are closed.