Damage Help

Hello I have a health bar and a projectile. I have it setup right now so the projectile hits the characters capsule and it prints “hit” and sets him onfire for 5seconds. What i’m trying to figure out is how can i apply some damage? I setup a way i thought it would work and it does not seem to work. Can someone take a look and see if anything is wrong please.

Ok After i while i got this to work. But i noticed it only works on the server side if i play through the viewport. and then it hurts me instead of the client. How can i fix this?