How do I get rid of friendly fire

I figured it out by using the “Out Hit Actor” on the sphere trace by channel node then checked if actor had tag then everything worked. No clue why it did not work for the other ones but everything works.