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)
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