hey yall
i’ve been in studio recently, working with cameras (which i hate doing), and i’ve been trying to figure out how to limit the DeltaSensitivity of a Controller, if possible.
What I mean is limiting the sensitivity of moving the camera.
for example, im using this script right here, that controls the sensitivity of the camera, when the player locks the mouse in to move it:
-- C = Camera Sensitivity/MouseSensitivity
-- D = MouseDeltaSensitivity
-- formula 0.1 / C = D
-- 0.1 increase to make it the movement speed higher decrease to make it slower
task.spawn(function()
local userInputService = game:GetService("UserInputService")
local UserGameSettings = UserSettings():GetService("UserGameSettings")
local number = 0.1 -- change this number to change speed
local mouseDeltaSensitivity = number / UserGameSettings.MouseSensitivity
userInputService.MouseDeltaSensitivity = mouseDeltaSensitivity
UserGameSettings:GetPropertyChangedSignal("MouseSensitivity"):Connect(function()
mouseDeltaSensitivity = number / UserGameSettings.MouseSensitivity
userInputService.MouseDeltaSensitivity = mouseDeltaSensitivity
end)
end)
As shown here, this is how I want the Controller Camera Sensitivity (or when the player moves the stick that controls the camera) to be too, but I don’t know how to do so.
Mouse (Set to max):
Controller Sensitivity (Set to max):
could you help me with this? thank you. If you need a better explanation, let me know