How do I replicate Player Look at position

anyone here know how i can properly replicate this? It works now on the server, and the server sees the client rotate, but the client doesnt see itself rotate.

This piece of code makes the Player always look at the mouse position, for my topdown game.