Advertisement
TeoMessiKing

asdasd

Mar 9th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. --// Speed Run V5 ( Realistic+ ) \\--
  2. --// Scripted By TeoMessiKing \\--
  3.  
  4. wait(2)
  5.  
  6. local uis = game:GetService("UserInputService")
  7. local plr = game.Players.LocalPlayer
  8. local mouse = plr:GetMouse()
  9. local jump = false
  10. local run = false
  11. local fly = true
  12. local mag = wait()
  13. local character = plr.Character or plr.CharacterAdded:Wait()
  14. local anim = character.Humanoid:LoadAnimation(script.Animation)
  15.  
  16.  
  17. --// Custom Walk Script \\--
  18.  
  19. uis.InputBegan:Connect(function(key)
  20. if key.KeyCode == Enum.KeyCode.W then
  21. run=true
  22. print("Running")
  23. game.Workspace.CurrentCamera.FieldOfView = 70
  24. plr.Character.Humanoid.WalkSpeed = 16
  25. for i = 1,20 do
  26. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 0.5
  27. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 0.2
  28. wait()
  29. end
  30. end
  31. end)
  32.  
  33.  
  34. uis.InputEnded:Connect(function(key)
  35. if key.KeyCode == Enum.KeyCode.W then
  36. run=false
  37. print("Walking")
  38. for i=1,20 do
  39. wait()
  40. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 0.5
  41. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed - 0.2
  42. end
  43. end
  44. end)
  45.  
  46.  
  47. --// Custom Jump Script \\--
  48.  
  49. uis.InputBegan:Connect(function(key)
  50. if key.KeyCode == Enum.KeyCode.Space then
  51. jump=true
  52. for i=1,10 do
  53. wait()
  54. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 1
  55. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 0.5
  56. end
  57. end
  58. end)
  59.  
  60.  
  61. uis.InputEnded:Connect(function(key)
  62. if key.KeyCode == Enum.KeyCode.Space then
  63. jump=false
  64. for i=1,10 do
  65. wait()
  66. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower - 1
  67. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 0.5
  68. end
  69. end
  70. end)
  71.  
  72.  
  73. --// Custom Fly Script () \\--
  74. uis.InputBegan:Connect(function(key)
  75. if key.KeyCode == Enum.KeyCode.F then
  76.  
  77. if plr.Character.HumanoidRootPart:findFirstChild("b") then
  78.  
  79. plr.Character.HumanoidRootPart.b:Destroy()
  80.  
  81. anim:Stop()
  82.  
  83. uis.MouseBehavior = Enum.MouseBehavior.Default
  84.  
  85. fly = false
  86.  
  87. game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  88.  
  89. for i=1,10 do
  90. wait()
  91. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 2
  92. end
  93. else
  94.  
  95. local bp = Instance.new("BodyVelocity")
  96. bp.Name = "b"
  97. bp.Parent = plr.Character.HumanoidRootPart
  98. bp.P = 7000
  99. anim:Play()
  100. for i=1,10 do
  101. wait()
  102. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 2
  103. end
  104. game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  105. fly = true
  106. repeat
  107. uis.MouseBehavior = Enum.MouseBehavior.LockCenter
  108. bp.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector*100
  109. wait()
  110. until fly == false
  111. end
  112. end
  113. end)
  114.  
  115. --// Custom Special Abilities \\--
  116.  
  117. uis.InputBegan
  118.  
  119. --// Cheats \\--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement