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

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

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

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.