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

How does UnequipTools() work? [closed]

Asked by
OniiCh_n 410 Moderation Voter
10 years ago

I was looking into making a replacement for the current backpack and I got it to equip the tools, but I can't seem to unequip it. I've tried destroying it, but that doesn't work. I've looked around the wiki and it seems that there is an UnequipTools() function, but there isn't any sample code or documentation for it.

0
Did you try using the unequip tools method on the humanoid? M39a9am3R 3210 — 10y

Locked by OniiCh_n, Perci1, M39a9am3R, and TofuBytes

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

There actually is an UnequipTools() method. I have not tested it, but if you do this:

game.Workspace.Player.Humanoid:UnequipTools()

it should unequip all the tools that the player currently has equipped.

0
Mmkay thanks OniiCh_n 410 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

I have tested this method. Calling UnequipTools of a Humanoid will deselect the Tool the player is holding, but NOT HopperBins. So yes, in most cases, you can call UnequipTools on the player's Humanoid.