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 + 1.6
   game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed + 1.45
  end
 end
end)

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 - 1.6
   game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed - 1.45
  end
 end
end)

game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
 game.Workspace.Camera.FieldOfView = 70
 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
 script.Disabled = true
end)

4 comments

0

Gamepasses can only be used from the server, so you'd have to configure your script(s) so that it'll communicate to the server.

0

Why would you turn sprinting into a gamepass?

0

Cause I can

0

did you take this script from someone else? xddddddd