Universal Script 📌
10.8k Views
502 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

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
Universal Script 📌
2.7k
30.2k
Bumped 1 hour ago
Universal Script 📌
6.1k
17.8k
Bumped 2 hours ago
Key System
Universal Script 📌
531.5k
336.7k
Bumped 4 hours ago
Script hub
2.5k
2.2k
Bumped 5 hours ago
Key System
Universal Script 📌
463
37
Approved 5 hours ago
Script hub
2.8M
661.6k
Bumped 6 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated