UIS.MouseDeltaSensitivity doesn’t seem to work on gamepads. I was wondering if there’s an equilviant to this, or another way I can do this. Thanks!
Code:
game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.UserInputType == Enum.UserInputType.MouseButton2 or inputObject.KeyCode == Enum.KeyCode.ButtonL2 then
if loadout.current.Name == "SniperRifle" and script.Parent.SniperScope.Visible == false then
script.Parent.SniperScope.Visible = true
game.Workspace.CurrentCamera.FieldOfView = 10
UIS.MouseDeltaSensitivity = 0.07
elseif loadout.current.Name == "SniperRifle" and script.Parent.SniperScope.Visible == true then
script.Parent.SniperScope.Visible = false
game.Workspace.CurrentCamera.FieldOfView = 70
UIS.MouseDeltaSensitivity = 1
end
end
end)