when you click image/text button you unequip all tools from backpack... not destroy, clear or remove
COMMUNITY QUESTION
When you click a image/text button unequip all tools?
1 answer
Make the TextButton, add a LocalScript to it, and write the following text into the script:
local textbutton = script.Parent --The TextButton
local player = game.Players.LocalPlayer --The player
textButton.MouseButton1Down:connect(function() --AKA 'When button clicked'
player.Backpack:ClearAllChildren() --Clears the player's backpack
end)
1 comment
0
sry you helped with deleting gears but i needed help with unequip sry but you helped
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Tools in the backpack are not equiped? all you would do is use the function :Destroy() or ClaerAllChildren()
Also shouldn't this be classified as 'Not Constructive', since you don't need help with fixing an error but instead you're just asking for a script?
no i need help with to UNEQUIP
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/UnequipTools