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.
1 | —ar is the character being arrested and p is the player that has the character with the cuffs |
2 | ar.Humanoid.WalkSpeed = 0 |
3 | ar.Humanoid.JumpPower = 0 |
4 | local weld = Instance.new(“Weld”,workspace) |
5 | weld.Part 0 = p.Character.HumanoidRootPart |
6 | weld.Part 1 = ar.HumanoidRootPart |
7 | weld.C 1 = CFrame.new( 0 , 0 , 1.5 ) |
Thanks for the help.
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