How to make the health bar appear even when the player isn't damaged?

As a player from 2016, I do remember back when health bars appeared when you weren’t damaged.

Now that the feature is gone, how can I display the health even when the player isn’t damaged?

Thanks in advance! :slight_smile:

Yes I am fully aware that someone else has created a topic like this, I looked at it but found no helpful support.

1 Like

Set HealthDisplayType to Enum.HumanoidHealthDisplayType.AlwaysOn

image

However if you are talking about the GUI it won’t affect that. You would need a custom health bar gui.

1 Like

Would I type that into a script?

1 Like

I don’t think so, I am pretty sure there is a property, not sure because I don’t have studio open

It’s a property in humanoid, however, when I make a humanoid’s health always on it doesn’t make the player’s health always on.

You would need to type that in a script because every time the character loads in, the humanoid property will be reset to its default state if I’m correct. I might be wrong though

game.Players.PlayerAdded:Connect(function(Player)
 Player.CharacterAdded:Connect(function(Character)
   local Humanoid = Character:WaitForChild("Humanoid")
   Humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
 end)
end)

Where would I insert the script?

Do you want it for the player to see or other players to see?

For everyone to see; if possible

ServerScriptService or Workspace should do the trick. sorry for late response

1 Like

hm, i tried that but it didnt work.

1 Like

Did you set

Humanoid.HealthDisplayDistance

And also Humanoid.HealthDisplayType

It could be the humanoid is too far. .

Well this was really easy

humanoid:GetPropertyChangedSignal(“Health”):Connect(function()
if humanoid.Health == humanoid.MaxHealth then
humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
else
humanoid.HealthDisplayType = Enum.Humanoid.HealthDisplayType.AlwaysOff
end
end)

Hi, thanks. This was an old question from well over two years ago.

1 Like

This is for people that wants the same solve.

I really don’t understand why would you do that when you could just:

game:GetService("Players").PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local humanoid = character:WaitForChild("Humanoid")
		humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
	end)
end)