Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Speed Run V5 \\--
- --// Scripter By TeoMessiKing \\--
- local uis = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local jump = false
- local run = false
- local fly = false
- local mag = wait()
- --// Custom Walk Script \\--
- uis.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.W then
- run=true
- print("Running")
- game.Workspace.CurrentCamera.FieldOfView = 70
- plr.Character.Humanoid.WalkSpeed = 16
- for i = 1,20 do
- game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 0.5
- plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 0.2
- wait()
- end
- end
- end)
- uis.InputEnded:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.W then
- run=false
- print("Walking")
- for i=1,20 do
- wait()
- game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 0.5
- plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed - 0.2
- end
- end
- end)
- --// Custom Jump Script \\--
- uis.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.Space then
- jump=true
- for i=1,10 do
- wait()
- plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 1
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 0.5
- end
- end
- end)
- uis.InputEnded:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.Space then
- jump=false
- for i=1,10 do
- wait()
- plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower - 1
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 0.5
- end
- end
- end)
- --// Custom Fly Script \\--
- uis.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.F then
- if fly == true then
- fly = false
- plr.Character.HumanoidRootPart.b:Destroy()
- end
- elseif fly == false then
- local bp = Instance.new("BodyPosition")
- bp.Name = "b"
- bp.Parent = plr.Character.HumanoidRootPart
- bp.P = 1000
- bp.Position = game.Workspace.CurrentCamera
- fly = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement