Advertisement
isakk12

Very Simple Zoom Script Roblox

Mar 15th, 2021
4,528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2. -- u can change Enum.KeyCode.V to the key u want for example if u want it to be B u change it to Enum.KeyCode.B
  3.  
  4. uis.InputBegan:Connect(function(a)
  5.     if a.KeyCode == Enum.KeyCode.V then
  6.         workspace.CurrentCamera.FieldOfView = 10
  7.     end
  8. end)
  9.  
  10. uis.InputEnded:Connect(function(b)
  11.     if b.KeyCode == Enum.KeyCode.V then
  12.         workspace.CurrentCamera.FieldOfView = 70
  13.     end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement