Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by 11 years ago

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

Log in to vote
4
Answered by 11 years ago

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:

1game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
0
What other Core Guis can I get rid of? Cuz I kinda wanna redesign the whole interface in my game O_O Dozer86421 10 — 11y
0
Chat, PlayerList, BackPack, and Health. See http://wiki.roblox.com/index.php?title=CoreGuiType Articulating 1335 — 11y
Ad
Log in to vote
0
Answered by
Uroxus 350 Moderation Voter
11 years ago
1game.StarterGui:SetCoreGuiEnabled("All",false)
2game.StarterGui:SetCoreGuiEnabled("Chat",true)
3game.StarterGui:SetCoreGuiEnabled("PlayerList",true)
4game.StarterGui:SetCoreGuiEnabled("Backpack",false)

Just edit it to what you wish. Hope this helped.

Answer this question