Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. game:GetService("UserInputService").InputBegan:connect(function(input,gameprocesed)
  2. if input.KeyCode == Enum.KeyCode.LeftShift then
  3. for i = 1,16 do
  4. wait()
  5. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView + 1.6
  6. game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed + 12
  7. end
  8. end
  9. end)
  10.  
  11. game:GetService("UserInputService").InputEnded:connect(function(input,gameprocesed)
  12. if input.KeyCode == Enum.KeyCode.LeftShift then
  13. for i = 1,16 do
  14. wait()
  15. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1.6
  16. game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed - 12
  17. end
  18. end
  19. end)
  20.  
  21. game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
  22. game.Workspace.Camera.FieldOfView = 70
  23. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  24. script.Disabled = true
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement