Gmodmoney2

Double Jump

Sep 12th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. lp = game.Players.LocalPlayer
  2. char = lp.Character
  3. mouse = lp:GetMouse()
  4. hed = char.Head
  5. torso = char.Torso
  6. larm = char["Left Arm"]
  7. rarm = char["Right Arm"]
  8. lleg = char["Left Leg"]
  9. rleg = char["Right Leg"]
  10. rootpart=char.HumanoidRootPart
  11. hum = char.Humanoid
  12. canJump=true
  13.  
  14. exo = function(parent, pitch)
  15. exos = Instance.new("Sound")
  16. exos.Parent=parent
  17. exos.SoundId="rbxassetid://222942614"
  18. exos.Volume=10
  19. exos.Pitch=pitch
  20. wait(0.001)
  21. exos:Play()
  22. end
  23.  
  24. mouse.KeyDown:connect(function(key)
  25. if key==' ' then
  26. if hum.Jump==true and canJump==true then
  27. canJump=false
  28. hum.Jump=false
  29. BV = Instance.new("BodyVelocity", torso)
  30. hum.Jump=false
  31. BV.maxForce = Vector3.new(0,5000,0)
  32. exo(char.Torso, 1)
  33. hum.Jump=false
  34. BV.P = 5000
  35. hum.Jump=false
  36. BV.velocity = Vector3.new(0,8000,0)
  37. hum.Jump=false
  38. wait(0.5)
  39. hum.Jump=false
  40. BV:Remove()
  41. hum.Jump=false
  42. canJump=true
  43. end
  44. end
  45. end)
Add Comment
Please, Sign In to add comment