Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
playerGui = player:()
MIN_FOV, MAX_FOV = ,
fov =
enabled =
dragging =
menuDragging =
alive =
connections = {}
KEYBIND_TOGGLE = .KeyCode.K
KEYBIND_REMOVE = .KeyCode.Delete
lastMousePos =
currentCamera = .CurrentCamera
defaultFOV = currentCamera currentCamera.FieldOfView
setEnabled
destroyMenu
(connection)
.(connections, connection)
connection
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = playerGui
frame = .()
frame.Size = .(, )
frame.Position = .(, )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Active =
frame.Parent = gui
title = .()
title.Size = .(, -, , )
title.Position = .(, )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.Active =
title.Parent = frame
label = .()
label.Size = .(, -, , )
label.Position = .(, )
label.BackgroundTransparency =
label.TextColor3 = .(, , )
label.Text = .. fov
label.TextSize =
label.Parent = frame
track = .()
track.Size = .(, -, , )
track.Position = .(, )
track.BackgroundColor3 = .(, , )
track.BorderSizePixel =
track.Active =
track.Parent = frame
knob = .()
knob.Size = .(, )
knob.AnchorPoint = .(, )
knob.BackgroundColor3 = .(, , )
knob.BorderSizePixel =
knob.Active =
knob.Parent = track
toggle = .()
toggle.Size = .(, )
toggle.Position = .(, )
toggle.BackgroundColor3 = .(, , )
toggle.TextColor3 = .(, , )
toggle.TextSize =
toggle.Text =
toggle.Parent = frame
remove = .()
remove.Size = .(, )
remove.Position = .(, )
remove.BackgroundColor3 = .(, , )
remove.TextColor3 = .(, , )
remove.TextSize =
remove.Text =
remove.Parent = frame
hint = .()
hint.Size = .(, -, , )
hint.Position = .(, )
hint.BackgroundTransparency =
hint.TextColor3 = .(, , )
hint.Text =
hint.TextSize =
hint.Parent = frame
(x)
width = track.AbsoluteSize.X
width <=
alpha = .(
(x - track.AbsolutePosition.X) / width,
,
)
fov = .(
MIN_FOV + alpha * (MAX_FOV - MIN_FOV) +
)
knob.Position = .(alpha, , , )
label.Text = .. fov
(input)
enabled
dragging =
(input.Position.X)
(track.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
(input)
))
(knob.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
(input)
))
(title.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
menuDragging =
lastMousePos = UserInputService:()
))
(UserInputService.InputChanged:((input)
dragging (
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
)
(input.Position.X)
menuDragging (
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
)
currentPos = UserInputService:()
lastMousePos
delta = currentPos - lastMousePos
frame.Position = .(
frame.AbsolutePosition.X + delta.X,
frame.AbsolutePosition.Y + delta.Y
)
lastMousePos = currentPos
))
(UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
menuDragging =
lastMousePos =
))
()
toggle.Text = enabled
toggle.BackgroundColor3 = enabled
.(, , )
.(, , )
setEnabled = (value)
enabled = value
()
enabled
camera = .CurrentCamera
camera
camera.FieldOfView = defaultFOV
(toggle.Activated:(()
( enabled)
))
destroyMenu = ()
alive
alive =
enabled =
RunService:()
camera = .CurrentCamera
camera
camera.FieldOfView = defaultFOV
_, connection (connections)
connection:()
.(connections)
gui:()
(remove.Activated:(destroyMenu))
(UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
UserInputService:()
input.KeyCode == KEYBIND_TOGGLE
( enabled)
input.KeyCode == KEYBIND_REMOVE
()
input.KeyCode == .KeyCode.P
frame.Visible = frame.Visible
))
knob.Position = .(
(fov - MIN_FOV) / (MAX_FOV - MIN_FOV),
, ,
)
(cam)
(
cam:():(()
alive enabled
cam.FieldOfView ~= fov
cam.FieldOfView = fov
)
)
(:():(()
newCamera = .CurrentCamera
newCamera
(newCamera)
))
initialCamera = .CurrentCamera
initialCamera
(initialCamera)
RunService:(
,
.RenderPriority.Last.Value,
()
alive enabled
camera = .CurrentCamera
camera camera.FieldOfView ~= fov
camera.FieldOfView = fov
)
()
Universal