Replicating Rotation based on Look at Mouse

Hello, im trying to make a topdown game where you move normally with WASD, but when you press RMG(aim) he will start always rotating towards where the mouse is. The current blueprint is working only in singleplayer, but when i try it in multiplayer, the client starts to jitter whenever i rotate. So im guessing it has something to do with the replication, i´ve tried so many things now to make it work but nothing seem to do it. Any help would be highly appreciated. Thanks