kingkoolie

Untitled

Nov 1st, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. enabled = true
  3. local userInputService = game:GetService("UserInputService")
  4. jumps = 0
  5. userInputService.InputBegan:connect(function(input, event)
  6. if not event then
  7. if input.KeyCode == Enum.KeyCode.R and enabled == true and player.Character.Humanoid.Jump ~= true then
  8. enabled = false
  9.  
  10.  
  11. local humanoid = player.Character:FindFirstChild("Humanoid")
  12. local animation = Instance.new("Animation", player.Character)
  13. animation.AnimationId = "http://www.roblox.com/Asset?ID=277361183";
  14. local loadedAnimation = humanoid:LoadAnimation(animation)
  15. loadedAnimation:Play()
  16. animation.Name = "FrontFlip"
  17. local force = Instance.new("BodyPosition")
  18.  
  19.  
  20. local y = player.Character.Torso.Position.Y + 30
  21.  
  22. local x = player.Character.Torso.Position.X
  23. local z = player.Character.Torso.Position.Z
  24. force.position = Vector3.new(x,y,z)+(player.Character.Torso.CFrame.lookVector * 40)
  25.  
  26. force.Parent = player.Character.Torso
  27. force.maxForce = Vector3.new(400000000000000000000,400000000000000000000,400000000000000000000)
  28.  
  29. wait(0.1)
  30.  
  31.  
  32. force:remove()
  33. wait(2)
  34. enabled = true
  35.  
  36.  
  37.  
  38. end
  39. end
  40. end)
Advertisement
Add Comment
Please, Sign In to add comment