Advertisement
TeoMessiKing

lollipop

Mar 9th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. --// Speed Run V5 \\--
  2. --// Scripter By TeoMessiKing \\--
  3.  
  4.  
  5. local uis = game:GetService("UserInputService")
  6. local plr = game.Players.LocalPlayer
  7. local mouse = plr:GetMouse()
  8. local jump = false
  9. local run = false
  10. local fly = false
  11. local mag = wait()
  12.  
  13. --// Custom Walk Script \\--
  14.  
  15. uis.InputBegan:Connect(function(key)
  16. if key.KeyCode == Enum.KeyCode.W then
  17. run=true
  18. print("Running")
  19. game.Workspace.CurrentCamera.FieldOfView = 70
  20. plr.Character.Humanoid.WalkSpeed = 16
  21. for i = 1,20 do
  22. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 0.5
  23. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 0.2
  24. wait()
  25. end
  26. end
  27. end)
  28.  
  29.  
  30. uis.InputEnded:Connect(function(key)
  31. if key.KeyCode == Enum.KeyCode.W then
  32. run=false
  33. print("Walking")
  34. for i=1,20 do
  35. wait()
  36. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 0.5
  37. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed - 0.2
  38. end
  39. end
  40. end)
  41.  
  42.  
  43. --// Custom Jump Script \\--
  44.  
  45. uis.InputBegan:Connect(function(key)
  46. if key.KeyCode == Enum.KeyCode.Space then
  47. jump=true
  48. for i=1,10 do
  49. wait()
  50. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 1
  51. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 0.5
  52. end
  53. end
  54. end)
  55.  
  56.  
  57. uis.InputEnded:Connect(function(key)
  58. if key.KeyCode == Enum.KeyCode.Space then
  59. jump=false
  60. for i=1,10 do
  61. wait()
  62. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower - 1
  63. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 0.5
  64. end
  65. end
  66. end)
  67.  
  68.  
  69. --// Custom Fly Script \\--
  70. uis.InputBegan:Connect(function(key)
  71. if key.KeyCode == Enum.KeyCode.F then
  72.  
  73. if fly == true then
  74. fly = false
  75. plr.Character.HumanoidRootPart.b:Destroy()
  76. end
  77. elseif fly == false then
  78.  
  79. local bp = Instance.new("BodyPosition")
  80. bp.Name = "b"
  81. bp.Parent = plr.Character.HumanoidRootPart
  82. bp.P = 1000
  83. bp.Position = game.Workspace.CurrentCamera
  84. fly = true
  85. end
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement