How can I remove the health gui? Here's my script:
local StarterGui = Game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
How can I remove the health gui? Here's my script:
local StarterGui = Game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
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)
local StarterGui = Game:GetService('StarterGui')
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
This will work trust me
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.
7 comments
It doesn't work.
Try it now.
I forgot the bracket at the end.
It still doesn't work
OMG MADE BIGGEST ERROR forgot connect q.q.
That won't work because SetCoreGuiEnabled is a method of StarterGui, not the Player object.
But still works on the player try it out..