How would I make my camera less sensitive?

I’m trying to make my camera follow the mouse. This works, but it’s really sensitive. How would I make it less sensitive?

rs.RenderStepped:connect(function()
   cam.CFrame = CFrame.new(cam.CFrame.p, mouse.hit.p)
end)

I tried adding a debounce and rounding mouse.hit.p but neither helped. Anyone have any ideas?

maybe you’re looking for GetMouseDelta?

Nah, not quite what I’m looking for. I need to somehow make the this code “tween” slower.

did you try dividing mouse.hit.p by your desired sensitivity?

From what I understand, you want the camera to move towards the target instead of instantly set it to the target… if so:

Try lerping the CFrame by a small alpha.

rs.RenderStepped:connect(function()
   cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, mouse.hit.p), .1)
end)
2 Likes

I’ve used this in the past, not sure if it’s the answer to your question but it’s something to look into… Camera | Documentation - Roblox Creator Hub

Thank you. That’s exactly what I was looking for!

I was in the middle of doing some ugly stuff with tween service…

I use this for my camera system. It allows you to set the mouse delta sensitivity, which, if linked to your camera, fixes the camera sensitivity issue. My default is about 0.5 - 0.75 but it will vary based on the mouse. If it is a gaming mouse, the sensitivity can be adjusted on the mouse itself so you’ll have to add a sensitivity option in game.

I’ve heard it is frowned upon to use this alone as your sensitivity handler but it’s much easier and it doesn’t take as much math.

Edit: Saw you found the solution above. If you experience future issues, this should take care of all sensitivity issues.

1 Like