Hide the toolbar

So I’m making a horror game and I want to hide the toolbar without deleting it because I don’t want the toolbar covering up my dialogue. I haven’t found any tutorials online that tells you how to hide it, they only have how to delete it.
Hope you guys can help me!
Thanks!

7 Likes

You can take a look at the StarterGui documentation on the SetCoreGuiEnabled function. Basically that lets you hide any core gui(except for the start menu) and show them.

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
7 Likes

And where do I put this script? (I am new to lua so I dont know much of the locations I am supposed to put my scripts.)

2 Likes

Where it’ll run only once and as soon as possible. So StarterPlayerScripts.

2 Likes

I tried it and now it wont let me access my tools i have put in my toolbar, I just want something that will hide it but it will still let the player access their items

2 Likes

There is no way to disable the backpack CoreGui without disabling the number row hotkey functionality afaik.

It was claimed otherwise in this post:

but that appears to be false. Your best bet if I’m right is to write custom backpack hotkeys. You could probably just fork whatever CoreScript handles the standard backpack.

4 Likes

Ok. Thanks for your Help! (30characters)

1 Like

You would put it in a LocalScript inside of StarterGui

1 Like

I wouldn’t do that. It won’t hurt but it’ll needlessly disable the backpack every respawn.

I know there is a way to easily do that. Look it up on google. I would show u what I did for my game, but I am unable to until Saturday night.