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

How do you delete the the toolbar?

The toolbar is the bar with the tools on it. And I want to know how to delete it. Because I have a script I want to do, but without the toolbar, because it's cool.

player = game.Players.LocalPlayer
mouse = player:GetMouse()

function keyDown(key)
if key==1 then
player:EquipTool(tool.Name)
end

mouse.KeyDown:connect(keyDown)

1 answer

We use the SetCoreGuiEnabled method of the StarterGui to disable and enable ROBLOX Core Gui objects.


According to the CoreGuiType Enum list the backpack is 2, which is the first parameter to SetCoreGuiEnabled. The second parameter would be false since we are disabling that gui.

game.StarterGui:SetCoreGuiEnabled(2, false);

This must be done in a LocalScript and only affects the local player

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