Disable Equip , Unequipped, and Changing tools

I’m making a item that perform an action an disable them from equipping and unequipped , change any tool.

I searched it up and some of the techniques are ineffective or just bugs the script (resetting the script in the tool).

2 Likes

Do you mean disabling the tool GUI? You can do

local StarterGui = game:GetService(“StarterGui”)

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

Not really sure what you mean.

3 Likes

no I mean’t disabling equip and disrequip temporarily

1 Like

Can’t you disable the GUI and then when you want to enable it again?

3 Likes

try this
for i,tool in pairs(player.Backpack:GetChildren()) do tool.Enabled = false end

it will disable all tools but the GUI will still be visible

3 Likes

You’ll need a custom hotbar for this and your own system for this. First of all, disable default backpack, and have your own system for hotbar.
Then make a system to have tools which are not really into the new hotbar, so players can’t mess with it.
Lol that’s it.

4 Likes