How do I weld a player to another one?

  1. What do you want to achieve?
    I am trying to weld someone to another one, I am currently using .RenderStepped, but I believe that there is a more efficient method to do it.

  2. What is the issue?
    The only issue is that the arrested player sometimes touches the other player.
    This is what I mean:


    As you can see the player’s hand goes through the other player’s torso.

    CuffEvent = Rs.RenderStepped:Connect(function(dT)
        local arm = localChar.RightHand or localChar['Right Arm']
        local root = localChar.HumanoidRootPart
        otherChar.HumanoidRootPart.CFrame = CFrame.new(arm.Position+Vector3.new(0,0,arm.Size.Z)) * CFrame.Angles(root.CFrame:ToOrientation()) 
    end)

Thanks for reading :smile:

1 Like

try changing the cframe to

CFrame.new(hand.CFrame.p) * CFrame.Angles(root.CFrame:ToOrientation())
1 Like

Just note, in the past Roblox has advised against using SetPrimaryPartCFrame as repeated calls may break the model over time. In the case of a character, since everything is jointed to the HumanoidRootPart, it’s fine (and actually faster) to directly set the CFrame of the HumanoidRootPart.

1 Like

oh, I didn’t know that. Thank you for letting me know.

1 Like