Universal Script 📌
17.7k Views
2.3k Executions

Infinite Zoom

Universal Script 📌
YallSumLz
YallSumLzPublished 5
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Toggled using V you can then zoom out infinitely.

Updates

  1. Script edited: Update script

View Raw
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


Comments

2
Log in to join the conversation. Login
Fimekio's profile picture
Fimekio2 years ago(edited)

well infinite yield has that already just type maxzoom 999999999 right

1

[deleted]

Replying to a deleted comment
orbit167's profile picture
orbit16711 months ago

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

1

More universal scripts

See all
Script hub
119.5k
193.3k
Bumped 5 hours ago
Key System
Script hub
180.8k
1.8M
Bumped 5 hours ago
Key System
Universal Script 📌
1.1k
2.4k
Bumped 5 hours ago
Script hub
60.1k
242.9k
Bumped 6 hours ago
Key System
Universal Script 📌
6.1k
53.3k
Bumped 8 hours ago
Universal Script 📌
122.9k
877.7k
Bumped 8 hours ago
Script hub
6.4k
49.2k
Bumped 8 hours ago
Key System