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

Removing the Health Gui?

Asked by 10 years ago

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

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

5 answers

Log in to vote
3
Answered by 10 years ago

just write in LocalScript, in StarterGui

game.StarterGui:SetCoreGuiEnabled("Health", false)
Ad
Log in to vote
0
Answered by 10 years ago

Make sure you put this in a LocalScript, inside StarterGui

local sg = game.StarterGui
sg:SetCoreGuiEnabled(1, false) -- 1 = health gui
Log in to vote
-1
Answered by
HexC3D 830 Moderation Voter
10 years ago
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)
0
It doesn't work. mario6325 55 — 10y
1
Try it now. HexC3D 830 — 10y
1
I forgot the bracket at the end. HexC3D 830 — 10y
0
It still doesn't work mario6325 55 — 10y
View all comments (3 more)
1
OMG MADE BIGGEST ERROR forgot connect q.q. HexC3D 830 — 10y
0
That won't work because SetCoreGuiEnabled is a method of StarterGui, not the Player object. Thewsomeguy 448 — 10y
0
But still works on the player try it out.. HexC3D 830 — 10y
Log in to vote
-1
Answered by 10 years ago
local StarterGui = Game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)

This will work trust me

0
Put this in a local script and then in the starter gui trust it will work FPSStudioDidi 1 — 10y
Log in to vote
-1
Answered by 10 years ago

In a LocalScript located in the StarterGui, put this:

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

Answer this question