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 10 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 10 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:

game.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 — 10y
0
Chat, PlayerList, BackPack, and Health. See http://wiki.roblox.com/index.php?title=CoreGuiType Articulating 1335 — 10y
Ad
Log in to vote
0
Answered by
Uroxus 350 Moderation Voter
10 years ago

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.

Answer this question