How do I lock the camera rotation to the head's rotation while still allowing mouse movement?

I’ve seen a similar topic to this on the DevForum, but it doesn’t seem to work.

I don’t really know how to do this without the camera stuttering (double vision) or bugging out. How would you script this?

1 Like

is this what you’re trying to achieve? Moving mouse in first person - #4 by MyNameIsChaosity

local Camera = workspace.CurrentCamera
local Head = Character.Head

task.wait(1)

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = Head.CFrame
Head.Changed:Connect(function()
Camera.CFrame = Head.CFrame
end)

No. That involves ImageLabels, not camera movement.

I want the camera rotation to be the head’s rotation, but without jittering.

local Camera = workspace.CurrentCamera
local Head = Character.Head

task.wait(1)

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = Head.CFrame
game:GetService("RunService").RenderStepped:Connect(function(dt)
	Camera.CFrame = Head.CFrame
end)

That forcefully locks it. I need the mouse to still be able to be moved.

I don’t really know how to do this without the camera stuttering (double vision) or bugging out. How would you script this?