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: Problems with turning off base GUI

Previous Thread :: Next Thread 
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
15 Sep 2016 08:58 PM
This script works fine when the game is played in studio, but when I play the actual game from the website, the script doesn't work.
Any ideas why?

StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)


r+://471495989r+://471533497
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
15 Sep 2016 09:00 PM
Is the script in a LocalScript?
Report Abuse
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
15 Sep 2016 09:01 PM
actually i copied it wrong, here it is:

localStarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

I didn't copy the local


r+://471495989r+://471533497
Report Abuse
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
15 Sep 2016 09:02 PM
I copied it wrong again...

local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)



r+://471495989r+://471533497
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
15 Sep 2016 09:05 PM
Is it in a localscript?
Report Abuse
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
16 Sep 2016 08:01 PM
no


r+://471495989r+://471533497
Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
16 Sep 2016 08:09 PM
SetCoreGuiEnabled can only be used in a localscript.
Report Abuse
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
16 Sep 2016 08:18 PM
oh thanks, I was trying to put local before it in a regular script


r+://471495989r+://471533497
Report Abuse
PressurizedSphere is online. PressurizedSphere
Joined: 08 Jan 2011
Total Posts: 8164
16 Sep 2016 08:19 PM
nope, now it doesn't work in studio or in the game


r+://471495989r+://471533497
Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:21 PM
## repeat wait() until game.Players.LocalPlayer.Character ~= nil at the top should work fine.
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