#detain help tool

1 messages · Page 1 of 1 (latest)

fair spoke
#

well , im making a detain tool , and detaining a player requires a click , so basically you click the player to detain him , but the thing i want , is like when you equip the tool , someone like upclose to you , probably at 1 stud gets detained and cant equip no tools and cant move

junior dragon
#

toolbox

raw bridge
timid bough
#

If you put a script inside the tool, using tool Equipped and tool Unequipped

#

tweak this script b/c it only considers freezing the hrp. I did not write in that the players frozen can not equip a tool.

#

but you get the idea of how you can do this.

near martenBOT
#

studio** You are now Level 4! **studio

fair spoke
#

be more clear pls , that toolbox aint working on its own

fair spoke
timid bough
heavy sapphire
timid bough
#

ooh well... what do you suggest ?

heavy sapphire
#

instead of

if Character:FindFirstChild("HumanoidRootPart") then
end```
you can do
```lua
if not Character:FindFirstChild("HumanoidRootPart") then return end
timid bough
#

more optimal, less lines

fair spoke
#

help rn plms

#

pls