Detect getting hit by a player
- 
How do I detect getting hit
 - 
@deleted I want to detect if someone hits me. How would I implement that to my script?
@ivanovladimirs mc.thePlayer.hurtTime
 - 
Use attack event (if you want detect your hits)
Use hurtTime (if you want detect that someone hits you)@deleted I want to detect if someone hits me. How would I implement that to my script?
 - 
@deleted I want to detect if someone hits me. How would I implement that to my script?
@ivanovladimirs mc.thePlayer.hurtTime