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

How do you use the function UnequipTools?

I saw it on the wiki but without much information. How would you use the function? Would it be something like:

humanoid:UnequipTools()

and that would unequip whatever tool the character has?

1 answer

✓ Accepted answer

Yes.

Get a reference to a player's Humanoid instance, and you can use the UnequipTools function on it to unequip any tools that the player may have equipped.

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

humanoid:UnequipTools()

Hope this helps :)

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