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

How do I delete the tool that the player is holding ONLY?

Asked by 3 years ago

I've tried a lot of scripts, but none work. I would like to know to how to only delete the tool that the player is holding, not any tools in the backpack though

0
what is leading up to the deletion? tightanfall 110 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

When the player has the tool in their hands, the tool location is in the character. So, simply you would only need to delete the tool with the function :FindFirstChildWhichIsA()

Example:

local char -- char location

char:FindFirstChildWhichIsA('Tool'):Destroy() 
Ad

Answer this question