Head Rotation Replication Question

So, I’m currently making a head rotation thing, and what I’m doing is firing a remote every 30 frames and then having every client use that data on the server to smoothly tween the head rotation on the client, is this the ideal way of doing it or would you just change also change it on the server and tween it on the server?

Tweening a player head rotation every 30 frames on the server sounds like a bad idea. That would put a heavy load on the server cpu as well as causing replication lag. Not to mention the Tweening would be choppy as well for other players.
I recommend having a CFrame value placed inside the player head that updates 20 frames or less a second. Then let the client spamming CFrame:Lerp() itself through a LocalScript or a ServerScript with Client RunContext inside that head.

1 Like

Yeah I thought so, they way I have it is that the clients are doing the head rotations for themselves and for every other player in the server, the server is just updating the rotation values for that specific player and the clients just read that data and apply it locally