How can I make it so when a player is hit it deals 5 damage to the hit player? I dont know why im having so much trouble with this.

if (Boss := Players[0], FortBoss := Boss.GetFortCharacter[]):
            

Replace it with this

for (Player : Players):
   if(FC:Player.GetFortCharacter[]):
      FC.DamagedEvent.Subscribe(HandlePlayerHit)
            

As for the npcs idk