Ad
Log in to vote
0

How to disable health bar?

Asked by 7 years ago

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

Log in to vote
0
Answered by
Hibobb 40
7 years ago
game.StarterGui:SetCoreGuiEnabled("Health",false)
0
Don't just post code! Explain your answers in detail! Perci1 4988 — 7y
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 Hibobb 40 — 7y
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. EzraNehemiah_TF2 3552 — 7y
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 Hibobb 40 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
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.

Answer this question