Is there a way do detect when player health change?

Is there a way do detect when player health change? like player take damage and u can do .Changed, but you cant do Humanoid.Changed because it has multiple values and parameters , how do do then?

3 Likes

you can use Humanoid.HealthChanged or Humanoid.Health.Changed

5 Likes

Health.Changed dosent work, ill try the other way rn…

its HealthChanged, Thank you very much !

For consistancy sake when moving forward I would advise the use of GetPropertyChangedSignal. It creates an event attached to a property.

Humanoid:GetPropertyChangedSignal("Health"):Connect(function()

end)
2 Likes

HealthChanged is the canonical event for checking when the health of the Humanoid changes and it also gives you more power since it actually passes the new health as a parameter which you can use for whatever you wish. Whenever possible, if a canonical event already exists for something, don’t use GetPropertyChangedSignal.

6 Likes