QueenFake

FLY Adventure Up

Dec 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. repeat wait() until game.Players.LocalPlayer.Character
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local char = plr.Character
  5. local hum = char:WaitForChild("Humanoid")
  6. local Torso = char:WaitForChild("LowerTorso")
  7. local Mouse = plr:GetMouse()
  8. local toggle = false
  9.  
  10. Mouse.KeyDown:Connect(function(key)
  11. if key == "f" then
  12. if toggle == false then
  13. toggle = true
  14. local Anim = Instance.new("Animation")
  15. Anim.AnimationId = "rbxassetid://2426232664"
  16. local PlayAnim = hum:LoadAnimation(Anim)
  17. PlayAnim:Play()
  18. local BV = Instance.new("BodyVelocity",Torso)
  19. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  20. while toggle == true do
  21. BV.Velocity = Mouse.Hit.lookVector*65
  22. wait()
  23. end
  24. end
  25. if toggle == true then
  26. toggle = false
  27. Torso:FindFirstChildOfClass("BodyVelocity"):remove()
  28. local tracks = hum:GetPlayingAnimationTracks()
  29. for i, stoptracks in pairs(tracks) do
  30. stoptracks:Stop()
  31. end
  32. local Anim = Instance.new("Animation")
  33. Anim.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  34. local PlayAnim = hum:LoadAnimation(Anim)
  35. PlayAnim:Play()
  36. end
  37. end
  38. end)
Add Comment
Please, Sign In to add comment