So i made this script that will (for now) print something when player has taken damage. But it wont work! why?
local hum = game.Players.LocalPlayer.Character.Humanoid
local currHealth = hum.Health
hum.HealthChanged:connect(function(h)
if h.Health == h.Health -5 then
print "damage dealed"
end
end)

3 comments
its that deprecated Connect you used.
No it isn't - deprecated doesn't mean "Broken".
i thought it meant "it was a joke".