Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can I make a tool when activated disable the core gui for tools?

Asked by 3 years ago

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

1 answer

Log in to vote
0
Answered by 3 years ago

Put LocalScript inside tool with following code. It will disable backpack when equipped.

tool = script.parent

local function disableGui()
    game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
end
tool.Equipped:Connect(disableGui)
Ad

Answer this question