Universal Script 📌
17.4k Views
1.8k 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.

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
orbit16710 months ago

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

1

More universal scripts

See all
Universal Script 📌
511
698
Bumped 4 minutes ago
Script hub
1.6M
2.1M
Bumped 8 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.3k
121.2k
Bumped 8 hours ago
Key System
Script hub
171.4k
1.4M
Bumped 11 hours ago
Key System
Script hub
16.8k
3.3k
Bumped 13 hours ago
Key System
Paid
Script hub
17.5k
89.5k
Bumped 13 hours ago