Infinite Zoom
Key RequiredUniversal

Infinite Zoom

Universal ScriptYallSumLzYallSumLz 16.9K views 1.3K executesUpdated Dec 8, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•57 lines (1873 chars)
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local isEnabled = false
local currentMaxZoom = player.CameraMaxZoomDistance
local defaultMaxZoom = 100

local function onMouseWheel(input, gameProcessed)
    if not isEnabled or gameProcessed then return end
    
    if input.UserInputType == Enum.UserInputType.MouseWheel then
        local currentZoom = (camera.CFrame.Position - camera.Focus.Position).Magnitude
        
        if input.Position.Z < 0 then
            if currentZoom >= currentMaxZoom * 0.9 then
                currentMaxZoom = currentMaxZoom * 1.5
                player.CameraMaxZoomDistance = currentMaxZoom
            end
        end
    end
end

local function onKeyPress(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.V then
        isEnabled = not isEnabled
        
        if isEnabled then
            player.CameraMaxZoomDistance = currentMaxZoom
            game:GetService("StarterGui"):SetCore("SendNotification", {
                Title = "Infinite Zoom",
                Text = "Infinite zoom enabled!",
                Duration = 3
            })
        else
            player.CameraMaxZoomDistance = defaultMaxZoom
            currentMaxZoom = defaultMaxZoom
            game:GetService("StarterGui"):SetCore("SendNotification", {
                Title = "Infinite Zoom",
                Text = "Infinite zoom disabled!",
                Duration = 3
            })
        end
    end
end

UserInputService.InputChanged:Connect(onMouseWheel)
UserInputService.InputBegan:Connect(onKeyPress)

game:GetService("StarterGui"):SetCore("SendNotification", {
    Title = "Infinite Zoom",
    Text = "Press V to toggle infinite zoom!",
    Duration = 5
})

Features & Information

Toggled using V you can then zoom out infinitely.

Community Comments (2)

FimekioFimekioDec 8, 2024(edited)

well infinite yield has that already just type maxzoom 999999999 right

orbit167orbit167Jan 4, 2026

@Vyperia on god y is he complicating it sm :sob:

More Scripts for Universal Scripts