i = 1 effect = function() flash(255, 0, 0) damage(8) end hit = function() if (i < 80) then xrange = i i = i + 1 else xrange = 0 end end effect = function() flash(255, 0, 255) damage(4) end