How to lower field of view while keeping smooth mouse movement

  1. What do you want to achieve? I would like to achieve a field of view for my scope that allows the mouse to still move smoothly.

  2. What is the issue? The issue is that right now when the field of view is lowered, the mouse seems to only move in specific units and cannot move freely.

  3. What solutions have you tried so far? I have tried changing the field of view and could not find any alternate methods of zooming.

Please help if you can. Thanks.

You could try a method many AAA games use for magnification smoothing: sensitivity scaling.

local UIS = game:GetService("UserInputService")

local cam = workspace.CurrentCamera

local ogSens = UIS.MouseDeltaSensitivity
local sensFactor = 100 -- larger # = more rigid

local function ADS(enable)
    if enable then
        UIS.MouseDeltaSensitivity = ogSens / (sensFactor / cam.FieldOfView)
    else
        UIS.MouseDeltaSensitivity = ogSens
    end
end

-- zoom:
ADS(true)

-- unzoom:
ADS(false)

If you’re still finding issues with the first-person camera, I recommend you look into camera lerping for further smoothing.

Hope this helps! :slight_smile:

4 Likes