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

When welding two players together, how do I make sure one player always has control all of the time?

I’m trying to make some handcuffs with the ability to grab a player, and sometimes when I grab the player, the player being grabbed has control. I’ve tried setting walkspeed to 0, jump power to 0, and I really want to know how to fix this. Any suggestions? Here’s my code block.

—ar is the character being arrested and p is the player that has the character with the cuffs
ar.Humanoid.WalkSpeed = 0
ar.Humanoid.JumpPower = 0
local weld = Instance.new(“Weld”,workspace)
weld.Part0 = p.Character.HumanoidRootPart
weld.Part1 = ar.HumanoidRootPart
weld.C1 = CFrame.new(0,0,1.5)

Thanks for the help.

2 comments

0

Have you tried PlatformStand on the (ar) humanoid? Or another humanoid state? I’m not sure what you want it to look like but a weld constraint may also be worth looking into.

0

I actually did try platform stand right after righting this, and it works, at least from what I’ve tried. Thanks!

1 answer

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