Hi,
I want to make that when a player was hurt by other player, it check where player was hurt like the back of the player
Thank you to spend time to read this
This is actually kinda tricky but here is the general gist:
Create a list of AABB representing the player's body part hitboxes: the head, left leg, right leg, body, right arm, left arm.
Using the LivingHurtEvent or whatnot grab the player being hurt and the player initiating the attack.
Your attack vector is [attacker.eye] - [victim.eye] + [attacker.forward], or alternatively [attacker.forward] * [attacker.reach_distance]. Either should work but the second variant is preferra