How do I remove the default Roblox hotbar?

So in my game I’ve added a custom Hotbar which is good but of course the default Hotbar isn’t gonna remove itself so how would I go about removing the default Hotbar so it doesn’t cover up my new custom one?



You have to use the SetCoreGuiEnabled function.


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


Where would I place this script?

Also, I looked up the SetCoreGuiEnabled function when I posted this and I saw this script, do I use the one you listed or use this one below?

local StarterGui = game:GetService(“StarterGui”)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

Inside a local script. Doesn’t really matter where, but I’d probably just put it in starter player scripts.

It removed the whole hotbar thing not just the gui, how would I make the hotbar work but without the default hotbar guis?

When a player presses a number key, set the corresponding tool’s parent to the player’s character, this will equip the tool. To unequip it, move it back into the player’s backpack.

Using this method it won’t save the location of the tool in the hotbar without extra values assigned. Is there anyway around this?

Right now, I can only think of making a custom inventory system where you keep track of all the tools the player has in a table. There’s probably a better solution though.