|
| 11 Jun 2015 11:48 PM |
So I'm trying to just disable the backpack GUIs. But the script it gives in the wiki is:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
but that makes all GUIs dissappear. Chat, backpack, leaderboard, etc. I looked through the wiki some more and found that under Enums for SetCoreGui, Backpack is 'Value: 2' But I'm not sure how/what enums are/how to change the line of code to only disable backpack GUIs? Basically: Can someone explain what small change I need to make to that line to make it so only the backpack GUIs disappear? |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 11 Jun 2015 11:50 PM |
:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
:SetCoreGuiEnabled(2, false)
:SetCoreGuiEnabled("Backpack", false)
Any of the three above would work to disable the player's backpack.
http://wiki.roblox.com/index.php?title=Enums#Usage |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Jun 2015 11:50 PM |
local script and put this is starterpack
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2015 11:52 PM |
Thanks guys!
I had tried replacing Enum with Backpace, and tried adding .2 after Type... needless to say those didn't work xD. |
|
|
| Report Abuse |
|
|