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

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

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

1 comment

0

what is leading up to the deletion?

1 answer

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() 

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