Advertisement
Nova355killer

zoom press y

Mar 19th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. --
  5. local pushkey = "y"
  6. --
  7.  
  8. mouse.KeyDown:connect(function(key)
  9. if key:lower() == pushkey then
  10. local cam = game.Workspace.CurrentCamera
  11. cam.FieldOfView = 25
  12. end
  13. end)
  14.  
  15.  
  16. mouse.KeyUp:connect(function(key)
  17. if key:lower() == pushkey then
  18. local cam = game.Workspace.CurrentCamera
  19. cam.FieldOfView = 70
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement