So I'm making an FPS, and I want to make weapons that aren't tools, using GetMouse() instead of tools. But I need to get the backpack toolbar thingy out of the way! How could I do this in a script?
Is it even possible?
It's possible - you call SetCoreGuiEnabled
, which is a member of StarterGui. This has to be called from a LocalScript in order to take effect. To disable the backpack GUI you'd call:
1 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false ) |
1 | game.StarterGui:SetCoreGuiEnabled( "All" , false ) |
2 | game.StarterGui:SetCoreGuiEnabled( "Chat" , true ) |
3 | game.StarterGui:SetCoreGuiEnabled( "PlayerList" , true ) |
4 | game.StarterGui:SetCoreGuiEnabled( "Backpack" , false ) |
Just edit it to what you wish. Hope this helped.