I'm a prankster
Yeperoony.
Here's the correct version.
Code:
InjuryCount=0
function hurtplayer(e)
Detect = PlyrDist(e)
Health = Health(e)
if Detect < 100 and InjuryCount<=5 then
Health(-1)
InjuryCount=InjuryCount+1
else
Health > 1 and InjuryCount==5 then
action(e,1)
end
end