Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Increase
- game:GetService("UserInputService").InputBegan:connect(function(input,gameprocesed)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView + 0.5
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed + 0.5
- end
- end
- end)
- --// Decrease
- game:GetService("UserInputService").InputEnded:connect(function(input,gameprocesed)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- for i = 1,16 do
- wait()
- game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 0.5
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed - 0.5
- end
- end
- end)
- --// Default
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
- game.Workspace.Camera.FieldOfView = 70
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 12.5
- script.Disabled = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement