How do I fix this issue with clients and enabling input on an actor

Hmm, I do not seem to understand what you mean by

line trace affects another client

because it is not connected to anything and the hit result is not used for anything. Do you mean the line trace hits the player? You can simply do this:

From ActorsToIgnore, you can come out and say Make Array, and by connecting Self to it, you will ignore the actor who is doing the linetrace. Also, if the linetrace is not hitting the enemy actor, be sure to set the Collision visibility to Block on the character, like so:
image

I’m still not sure what you need help with. Read up on linetraces and watch a few videos on YouTube. Doesn’t have to be UE5, it’s the same logic. It seems weird at first but I’m pretty sure you’ll grasp it easily!

By client if you mean as in Multiplayer, I would never suggest trying to learn Multiplayer/networking logic before understanding the basics of the engine. Anyway, hope this helps somehow!