knowyourmom12

Parkour Roblox script builder (local just run)

Jul 21st, 2016
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. pl=game.Players.LocalPlayer
  2. me=pl.Character
  3. xl=me.Torso['Right Shoulder']
  4. t=Instance.new("HopperBin",pl.Backpack)
  5. t.Name="the_Parkour_Flip"
  6.  
  7. local debounce=false
  8. function _restoreproperties()
  9. Holder = player.Character
  10. Torso = Holder:FindFirstChild("Torso")
  11. RightS = Torso:FindFirstChild("Right Shoulder")
  12. LeftS = Torso:FindFirstChild("Left Shoulder")
  13. RightH = Torso:FindFirstChild("Right Hip")
  14. LeftH = Torso:FindFirstChild("Left Hip")
  15. RightS.MaxVelocity = .15
  16. LeftS.MaxVelocity = .15
  17. RightH.MaxVelocity = .1
  18. LeftH.MaxVelocity = .1
  19. RightS.DesiredAngle = 0
  20. LeftS.DesiredAngle = 0
  21. LeftH.DesiredAngle = 0
  22. RightH.DesiredAngle = 0
  23. end
  24. function ManageAnimation(value)
  25. Holder = player.Character
  26. Player = player
  27. if value == "no anim" then
  28. Anim = Holder:FindFirstChild("Animate")
  29. if Anim~=nil then
  30. Anim.Disabled = true
  31. Anim.Parent = Player
  32. end
  33. elseif value == "re-anim" then
  34. Anim = Player:FindFirstChild("Animate")
  35. if Anim~=nil then
  36. Anim.Disabled = false
  37. Anim.Parent = Holder
  38. end
  39. end
  40. end
  41. function Down(ml)
  42. for i=1, ml.velocity.y/3 do
  43. ml.velocity = ml.velocity+Vector3.new(0,-4.25,0)
  44. wait()
  45. end
  46. ml:Remove()
  47. end
  48. function Flip()
  49. if debounce==true then return end
  50. debounce=true
  51. Char = player.Character
  52. Human = Char.Humanoid
  53. Torso = Char.Torso
  54. CF = Torso.CFrame
  55. Human.PlatformStand = false
  56. Human.Sit = true
  57. VelUp = Instance.new("BodyVelocity")
  58. VelUp.velocity = Vector3.new(0,-5000,0)+Torso.CFrame.lookVector*-30
  59. VelUp.P = VelUp.P*-1000
  60. VelUp.maxForce = Vector3.new(10000,10000,10000)*999
  61. VelUp.Parent = Torso
  62. coroutine.resume(coroutine.create(Down),VelUp)
  63. Gyro = Instance.new("BodyGyro")
  64. Gyro.P = Gyro.P*10
  65. Gyro.maxTorque = Vector3.new(100000,100000,100000)*999
  66. Gyro.cframe = CF
  67. Gyro.Parent = Torso
  68. for i=1, 16 do
  69. Gyro.cframe = Gyro.cframe*CFrame.fromEulerAnglesXYZ(math.pi/9,math.pi/-18,0)
  70. wait()
  71. end
  72. Gyro.cframe = CF
  73. wait()
  74. Gyro:Remove()
  75. Human.PlatformStand = false
  76. Human.Sit = false
  77. _restoreproperties()
  78. debounce=false
  79. end
  80. function onActive(mouse)
  81. player = game.Players.LocalPlayer
  82. if player==nil then return end
  83. mouse.Button1Down:connect(function() Flip() end)
  84. end
  85. script.Parent = t.Selected:connect(onActive)
Add Comment
Please, Sign In to add comment