Is there a way to keep the same zoom distance and vertical fov while closing in the horizontal fov of either side? Code:
function CameraController:SetHorizontalFov(fov)
local camera = workspace.CurrentCamera
local currentFov = camera.FieldOfView
local currentAspectRatio = camera.ViewportSize.X / camera.ViewportSize.Y
local newAspectRatio = math.tan(math.rad(fov) / 2) / math.tan(math.rad(currentFov) / 2)
local newHorizontalFov = math.deg(2 * math.atan(math.tan(math.rad(currentFov) / 2) * newAspectRatio))
camera.FieldOfView = newHorizontalFov
end