How do I make a TextLabel display the Players Health?

How do I make a Text Label display the Players Health?

1 Like

Check for the player’s health being updated and then update the TextLabel.

You could use .Changed for this, for example

game.Players.LocalPlayer.Character.Humanoid.Changed:Connect(function(property)
  if property == "Health" then
     game.Players.LocalPlayer.Character.Humanoid.Health
  end
end)

The above is written via the forums and untested - just something that you can probably refer to.

EDIT: Instance.Changed refer to this

1 Like