Looks fine to me as long as onHurt is being called and the "hiteffect" class exists. It will need to be serverside, of course. If all you want is the common floating damage/status text, consider just using showani or a player attribute with a GANI script.