Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local mouse = player:GetMouse()
- --
- local pushkey = "y"
- --
- mouse.KeyDown:connect(function(key)
- if key:lower() == pushkey then
- local cam = game.Workspace.CurrentCamera
- cam.FieldOfView = 25
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == pushkey then
- local cam = game.Workspace.CurrentCamera
- cam.FieldOfView = 70
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement