Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago

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.

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. ABK2017 406 — 4y
0
I actually did try platform stand right after righting this, and it works, at least from what I’ve tried. Thanks! joshthegamer456 93 — 4y

1 answer

Log in to vote
1
Answered by
Robin5D 186
4 years ago

Weld's probably won't do for you here; might want to use a loop that sets position (maybe use Stepped)

Otherwise, if you just want a easy solution, go get free, well-made cuffs that run in 60fps (probably using stepped) over here: https://www.roblox.com/library/739586523/Smooth-Arrest-Detain-Tools

Ad

Answer this question