Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- -- 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
- uis.InputBegan:Connect(function(a)
- if a.KeyCode == Enum.KeyCode.V then
- workspace.CurrentCamera.FieldOfView = 10
- end
- end)
- uis.InputEnded:Connect(function(b)
- if b.KeyCode == Enum.KeyCode.V then
- workspace.CurrentCamera.FieldOfView = 70
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement