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?
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:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
game.StarterGui:SetCoreGuiEnabled("All",false)
game.StarterGui:SetCoreGuiEnabled("Chat",true)
game.StarterGui:SetCoreGuiEnabled("PlayerList",true)
game.StarterGui:SetCoreGuiEnabled("Backpack",false)
Just edit it to what you wish. Hope this helped.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
What other Core Guis can I get rid of? Cuz I kinda wanna redesign the whole interface in my game O_O
Chat, PlayerList, BackPack, and Health. See http://wiki.roblox.com/index.php?title=CoreGuiType