ROBLOX - How To Make A Sprint Script - tutorial

Опубликовано: 08 Июль 2017
на канале: GreatNewo
871
18

Local Script:

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
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
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)

Hey everyone OwenBLOXs, in this tutorial is going to be about.

'How to make a sprint script', so that if someone want's to start running all they have to do it press shift.

Play ROBLOX for free YES FREE!!
Link https://www.roblox.com/?v=rc&rbx_sour...

Background music from:
   • Cotarvoid - Lacuna [Top Shelf Sounds ...  

here's the download link if you want the music: https://myaudiograb.com/vzjaS84R

tags: OwenBLOXs, roblox, scripting, tutorial, roblox scripting, scripting tutorial, roblox tutorial, roblox scripting tutorial, roblox scripting tutorial 2017, ROBLOX