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

Setting the core gui to false doesn't seem to do anything, how do I fix?

Asked by 8 years ago

Let's put this straight forward, I put a script together setting the core gui. This is a local script in starter gui and looks like this:

local startergui = game:Getservice('StarterGui')
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)

But it doesn't seem to be working, what should I do?

0
Error at line 1, make sure it's GetService('StarterGui'), you wrote Getservice with small S. 1N0body 206 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

put the script in ReplicatedFirst, and do this:

local startergui = game:GetService('StarterGui')
repeat startergui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false) wait(0.5) until startergui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList) == false
repeat startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false) wait(0.5) until startergui:GetCoreGuiEnabled(Enum.CoreGuiType.Health) == false

repeat startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false) wait(0.5) until startergui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack) == false

Ad

Answer this question