repeat wait() until game.Players.LocalPlayer.Character
StarterGui = Game:GetService(‘StarterGui’)
StarterGui:SetCoreGuiEnabled("All", false)
StarterGui:SetCoreGuiEnabled("Health", false) --Because ALL doesn't hide the HealthGui
StarterGui:SetCoreGuiEnabled("Chat", true)[/code]
…but no matter what the HealthGui always pops up.
Anyone else noticing this new HealthGui doesn’t like to be removed?
No problems hiding any other CoreGui. Just the Health Gui is the one being a jerk.
GOOOOOOOOOOOOOOOOOOOOOO AWAAAAAAAAAYYYYYYYYY HEALTH GUI
This removes ALL CoreGUIs
p=game.Players:GetChildren()
for i=1,#p do
play={p[i].Name}
c=game.CoreGui
for i,v in pairs(play)do
c.RobloxGui:remove()
wait()
end
end
I guarantee this script will remove the Health Bar
[code]Health_Bar = false
if Health_Bar == true then
game.StarterGui:SetCoreGuiEnabled(1,true)
elseif Health_Bar == false then
game.StarterGui:SetCoreGuiEnabled(1,false)
end
[/code]
One of my friends suggested I try looping it until it’s disabled, which seems to have worked as opposed to just trying to disable it once (which doesn’t work)
local starterGui = game:GetService("StarterGui");
Spawn(function()
repeat wait()
starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false);
until not starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health);
end);
I put it in a spawn, so it wouldn’t yield the rest of my code. It seems it doesn’t make the HealthGui go away if you do it once.
They need to fix this, we shouldn’t have to resort to things like this.
[quote] External Media [/quote]
There wasn’t much need for that. If he wants to use semicolons, he can. In fact, at times, I use semicolons inadvertently. (C# makes me so I got used to it so yeah)