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

When you click a image/text button unequip all tools?

when you click image/text button you unequip all tools from backpack... not destroy, clear or remove

4 comments

0

Tools in the backpack are not equiped? all you would do is use the function :Destroy() or ClaerAllChildren()

0

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?

0

no i need help with to UNEQUIP

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.