How to make player not be damaged by their own attack?

how to make player not be damaged by their own attack?
for e.g

You simply check with an If statement whether the found humanoid or character are the same as the attacker’s.

1 Like