Player shaking when moving camera

Hey guys, I took a break from roblox recently so my scripting skills are super rusty. Basically my friend wants me to create a third person view, which I have. But a small issue appeared when testing, the player shakes like this(unsure how easy it is to see in my low quality gyazo).

Now I guess its obvious that would happen as I am offsetting the camera and then forcing a sort of shift lock.

Basically, I am assuming there are ways of making the player not shake when they move their camera and I will try to fix it(messed around with the basics and it didn’t change anything).

I’m assuming you could mess with the way the camera works. If anybody knows ways to stop this from happening I’m open to ideas(a basic guess of how to fix it would be a huge help).

2 Likes

Assuming that you’re not already doing this, I would recommend using BindToRenderStep for anything that pairs the movement of the camera with that of the character. If I remember correctly, the second parameter defines the priority at which your function executes each frame, so it should be around (typically above) Enum.RenderPriority.Camera.Value (200) to keep everything relatively synced.

This older thread might be relevant: https://devforum.roblox.com/t/should-i-use-bindtorenderstep-for-character-controls/43574/7?u=spooce

3 Likes

I have that problem too, about camerascript
The script briefly changes the character’s camera position and makes it similar to shift lock.

local R15_HEAD_OFFSET = Vector3.new(-1.7, 2.5, 0)

https://gyazo.com/a7974077065b467af2953f7afa22d9ed
full script:
CameraScript.rbxm (49.2 KB)
(put script to StarterCharacterScripts)