How do I get rid of friendly fire

Are you using the “Apply Damage” Node?
If yes, make sure to actually connect the Event Instigator reference to the responsible Player Controller.
You could add a team variable to the Player Controller and as you pass it through the “Apply Damage” node, get it from the Event AnyDamage → InstigatedBy → Cast to that Player Controller and get the team variable to compare and adjust your logic there.