Camera being manipulated in RunService very sensitive

Hello, I’ve got a problem with Camera Manipulation.

Underneath I have a code segment which runs when a player sits in seat, in a LocalScript parented to the PlayerGUI. It works but its very sensitive, like unreasonably sensitive.

What could be causing it?
I’ve tried changing the MouseDeltaSensitivity to a very low number but it makes no difference. My Camera Sensitivity ingame is at 0.36

local RSS = game:GetService('RunService')

local Camera = game.Workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable

RSS.RenderStepped:Connect(function(Delta)	

	if EngineOn and not Crashing then
		Camera.CFrame = CFrame.new(script.Engine.Value.Parent.CameraPart.Position, Mouse.Hit.Position)
	end
end)

Changing the orientation of the camera changes where the mouse ends up pointing, so the farther from the center of your screen the mouse hit pos is, the faster it rotates. Try

Camera.CFrame = Camera.CFrame:Lerp( CFrame.new(script.Engine.Value.Parent.CameraPart.Position, Mouse.Hit.Position)
	end, math.min(1, dt * 40))
end)

1 Like

Perfect, It worked. Thank you very much!!

Here’s the code I ended up using incase someone needs it

RSS.RenderStepped:Connect(function(Delta)	

	if EngineOn and not Crashing then
		Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(script.Engine.Value.Parent.CameraPart.Position, Mouse.Hit.Position), math.min(1, Delta))


	end
end)
1 Like