There is a delay on the server and client, and I'm trying to use CFrame on my character, but because of the delay, it looks laggy, and creates problems. What's the best way to counteract or fix this?

character.HumanoidRootPart.CFrame = CFrame.new(character.HumanoidRootPart.Position, hit.Position)

I'm using the code above in the server script.