Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this only work in studio?

Asked by 10 years ago

This only works in studio...

It's a regular script.

game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
game:GetService("StarterGui"):SetCoreGuiEnabled("Health", false)
game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack", false)
0
Is this a LocalScript or a Script? BlueTaslem 18071 — 10y
0
Regular Script. EzraNehemiah_TF2 3552 — 10y

2 answers

Log in to vote
2
Answered by
Gamenew09 180
10 years ago

Put the script inside of a LocalScript.

0
It won't work in studio. I think it might work. EzraNehemiah_TF2 3552 — 10y
0
Did you put it into StarterGui or StarterPack? Gamenew09 180 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

I guess you have to use a enum to get through security?

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
0
Doesn't work for me... EzraNehemiah_TF2 3552 — 10y
0
and `game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)`? What about `while not game.StarterGui do wait() end game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)` YoYoYonnYOfficial 5 — 10y
0
game:GetService("StarterGui") is the same thing as game.StarterGui. I tried to do Enum but didn't work in both studio or in game. EzraNehemiah_TF2 3552 — 10y

Answer this question