Variables on client keep being set to zero

I am trying to set up a multiplayer game, but my aim offsets pitch and yaw, keeps being set to zero a second after on the other client.

I am printing the values to the screen, and I can se then change on both clients, but as soon as i stop making imputs with the mouse, it is set back to 0, on the other client.
It also tries constantly to set it back to zero, so the character flickers back and front between the two stages, on the other client, while everything looks fine on the client im using.

I have no idea where to start, so do any of you know what could be happening?