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

How to disable health bar?

I've already made a custom health bar, but I can't find a way to disable the ROBLOX health bar. Any help please?

2 answers

✓ Accepted answer
game.StarterGui:SetCoreGuiEnabled("Health",false)

4 comments

0

Don't just post code! Explain your answers in detail!

1

Apologies. This is a method that essentially disables Roblox's CoreGuis, which are Health,Backpack,Leaderboard, and Chat. The second argument determines if it is on or off with true or false respectively. You can also use "All" to disabled all of the CoreGuis

0

Why did you just give them the answer. You explained it at least. You could also do "game.Players.Player.HealthDisplayDistance = 0" If they want it to be invisible to other players.

0

Yes sorry I'm still sort of new here and didn't even think twice about doing it. Percil explained that I should explain my answer, which I did as a comment

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

There is an enum for this also,

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

It is prefered to use the enum.

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