Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Removing the Health Gui?

How can I remove the health gui? Here's my script:

local StarterGui = Game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)

5 answers

just write in LocalScript, in StarterGui

game.StarterGui:SetCoreGuiEnabled("Health", false)

Make sure you put this in a LocalScript, inside StarterGui

local sg = game.StarterGui
sg:SetCoreGuiEnabled(1, false) -- 1 = health gui
game.Players.PlayerAdded:connect(function(plr)
plr:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
end)

or

game.Players.PlayerAdded:connect(function(plr)
plr:SetCoreGuiEnabled(1,false)
end)

7 comments

0

It doesn't work.

1

Try it now.

1

I forgot the bracket at the end.

0

It still doesn't work

1

OMG MADE BIGGEST ERROR forgot connect q.q.

0

That won't work because SetCoreGuiEnabled is a method of StarterGui, not the Player object.

0

But still works on the player try it out..

local StarterGui = Game:GetService('StarterGui')
 
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)

This will work trust me

1 comment

0

Put this in a local script and then in the starter gui trust it will work

In a LocalScript located in the StarterGui, put this:

wait(1)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)

This discussion is preserved as it was. New answers, comments, and votes are closed.