Rotation replication problem

Why is the result of Z obtained on the server different from that on the client? Both methods are the same. Do this via RPC. I would be very grateful if anyone could help me with this.

Is anyone can help? I think the tick event between server and client is not sync