|
| 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
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 15 Sep 2016 09:00 PM |
| Is the script in a LocalScript? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
| |
|
|
| 16 Sep 2016 08:01 PM |
no
r+://471495989r+://471533497 |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:09 PM |
| SetCoreGuiEnabled can only be used in a localscript. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 16 Sep 2016 08:19 PM |
nope, now it doesn't work in studio or in the game
r+://471495989r+://471533497 |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:21 PM |
| ## repeat wait() until game.Players.LocalPlayer.Character ~= nil at the top should work fine. |
|
|
| Report Abuse |
|
|