Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = true
- game:GetService("UserInputService").InputBegan:Connect(function(input, gamepro)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- if debounce == true then
- debounce = false
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView + 1.6
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed + 1
- end
- debounce = true
- elseif debounce == false then
- repeat
- wait()
- until debounce == true
- debounce = false
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView + 1.6
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed + 1
- end
- debounce = true
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:Connect(function(input, gamepro)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- if debounce == true then
- debounce = false
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1.6
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed - 1
- end
- debounce = true
- elseif debounce == false then
- repeat
- wait()
- until debounce == true
- debounce = false
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1.6
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed - 1
- end
- debounce = true
- end
- end
- end)
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function()
- script.Disabled = true
- game.Workspace.Camera.FieldOfView = 70
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement