Universal Script 📌
10.9k Views
623 Executions

⭐ 'Optifine' Zoom Script

Universal Script 📌
skem
skemFirst script
5 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

Basic zoom / FOV script for any game, the lower the 'ZoomedAmount' the more it zooms in. 10 is the recommended number. Double executing will not work, I recommend you play around with the number if you aren't happy with 10. First-person is also recommended. BIND: C

Updates

  1. Script edited: Create script

View Raw
local oldZoom = game.Workspace.CurrentCamera.FieldOfView

local Settings = {
    ZoomTime = 0.2,
    ZoomedAmount = 10
}

local function createZoom(time, amount)
    local Tween_Info = TweenInfo.new(time, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) 
    local Tween = game:GetService("TweenService"):Create(game.Workspace.CurrentCamera, Tween_Info, {FieldOfView = amount})
    return Tween
end

game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.C then
        createZoom(Settings.ZoomTime, Settings.ZoomedAmount):Play()
    end
end)

game:GetService("UserInputService").InputEnded:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.C then
        createZoom(Settings.ZoomTime, oldZoom):Play()
    end
end)


Comments

3
Log in to join the conversation. Login
VampireKiller's profile picture
VampireKiller5 years ago(edited)

Finally i can now play minecraft copy games with optifine and esp mods

2
casofe6027's profile picture
casofe60275 years ago(edited)

finally i can play roblox without the ugly *** 60 FOV

1
zenya's profile picture
zenya5 years ago(edited)

minecraft?

1

Tags

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.5k
Bumped 4 hours ago
Script hub
49.8k
12.3k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 9 hours ago
Key System
Paid
Universal Script 📌
724
209
Approved 15 hours ago
Universal Script 📌
628
2.5k
Approved 16 hours ago
Universal Script 📌
589
589
Approved 16 hours ago