I have no clue how to do this, I need this because I want a player not be able to equip another tool or unequip the tool its currently using
Put LocalScript inside tool with following code. It will disable backpack when equipped.
1 | tool = script.parent |
2 |
3 | local function disableGui() |
4 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false ) |
5 | end |
6 | tool.Equipped:Connect(disableGui) |