Autoattack multiplayer game

I’m trying to create auto attack feature for a moba game. In this feature, when the player presses on attack button, the player needs to move automatically towards the enemy character and attack him. I tried using MoveTo and SimpleMoveToLocation on player character(server side), it’s working on all other connected players except the local player controller. Could you please share your ideas to get this feature working?

I also tried with player controller sending commands to ai controller. Its working but the movements are lagging.