Goal
I am making a system in which the players “lock on” to each other to engage in a combat system. Right now, the client sets the CFrame of the player’s character to be facing the opponent in a BindToRenderStep function. This works as intended.
Problem
However, when another player is locked on to you, sometimes (I’m assuming due to ping and whatnot) they jitter and shake a lot when walking. The code works properly on the server but it looks weird and jarring.
Attempted Solutions
I tried changing between Hearbeat, RenderStepped, and the current BindToRenderStep, all of which produce the exact same results.
I also tried setting your opponents CFrame in your own localscript since the client is faster. However, setting HumanoidRootPart.CFrame = CFrame.lookAt(HumanoidRootPart.Position, target) freezes them despite taking their position as the first argument. (I tried Heartbeat in this scenario as well)
I tried setting the orientation too but this just bugged out for many reasons.
If anyone has any suggestions for this let me know. If you need a video of it happening I can send that, or the whole script, but I think I’ve given enough information here.