How can I detect health player?

how can I detect health player? I want to detect health to make one rob system

If = ?

workspace[playername].Humanoid.Health?

2 Likes

Use Humanoid.HealthChanged to check when the hp changes

Health is a property of humanoid and every character has a humanoid. If you have a reference to the player in your script you can just do

if Player.Character.Humanoid.Health > Blah then
    -- stuff
end
2 Likes