generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: SetCoreGuiEnabled

Previous Thread :: Next Thread 
CreationChronicles is not online. CreationChronicles
Joined: 13 Dec 2010
Total Posts: 1361
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 is not online. 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 is not online. 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
CreationChronicles is not online. CreationChronicles
Joined: 13 Dec 2010
Total Posts: 1361
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image