Multiplayer topdown rotation with mouse

Hello, i’m having problem with my multiplayer game, the rotation and movement works fine on the client 0 but the rotation doesn’t work on the client 1, can someone help me ?
Here is a video of what’s happening

hard to read the code there but a few things

  1. player controllers don’t replicate too each other
  2. for this reason both clients will be player controller 0 to themselves

i think if you just set the actor mesh to replicate movement and set its rotation on the server it should work


The codes looks like that, what do you think

The green part is in the Player blueprint

so because its coming from the player controller its running on the client, what you need is a server RPC to set the rotation variable for the server/other clients