I'm working on handcuffs, and I'm trying to make a part that welds on the officer and the suspect to bind them together, from there I could disable the suspect's controls to let the officer have full control. The problem is that whenever I try to weld a part to the officer, if glitches and the part end up welded to my torso, but it's in a very different spot then where it was intended.
What I'm trying to do: https://i.vgy.me/MKhmDv.png What it's doing: https://i.vgy.me/ydtYPZ.png
Any help would greatly be appreciated!
Code that creates the part and adds the weld:
local attach = Instance.new("Part")
attach.Parent = game.Workspace
attach.Size = Vector3.new(1,2,3)
attach.CFrame = officerChar.HumanoidRootPart.CFrame * CFrame.new(0.5,0,-1)
local weld1 = Instance.new("Weld")
weld1.Parent = officerChar
weld1.Part0 = officerChar.HumanoidRootPart
weld1.Part1 = attach
weld1.C0 = officerChar.HumanoidRootPart.CFrame:inverse()
weld1.C1 = attach.CFrame:inverse()
