Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I get rid of the backpack toolbar in a script?

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?

2 answers

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)

2 comments

0

What other Core Guis can I get rid of? Cuz I kinda wanna redesign the whole interface in my game O_O

0

Chat, PlayerList, BackPack, and Health. See http://wiki.roblox.com/index.php?title=CoreGuiType


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.