Is there a script where if a button is pressed (this button is a TextButton located in StarterGui) it forces the player to unequip the tool they are currently holding so that it appears in their Backpack along with all other items that were in the StarterGui.
I am currently creating a inventory system (it contains a lot of scripts that are inefficient and unnecessary) and I reached the point in which a player can drop a tool if the inventory begins to reach max, I am working on the part where a player can click a TextButton and the tool according is removed from their backpack, as many are aware, when a player equips a tool, it is removed from their backpack and somewhere I don't know and as a result, the script cannot find its way into the tool as the tool isn't in the backpack, so I made a way around this is by when the player clicks the "Open inventory button", they are not able to equip any tools what so ever and so the tools remain in the backpack for the script to find and remove. Pls halp |