Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local walkspeed = 32
  2. local speed = 1 + walkspeed*0.05
  3. local rocket = Instance.new("BodyPosition",game.Players.LocalPlayer.Character.Head)
  4. local upvalue = 0
  5. rocket.maxForce = Vector3.new(12500,12500,12500)
  6.  
  7. spawn(function()
  8. while true do
  9. wait()
  10. if game.Players.LocalPlayer.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  11. rocket.Parent = game.Players.LocalPlayer.Character
  12. wait(0.5)
  13. else
  14. wait(0.5)
  15. rocket.Parent = game.Players.LocalPlayer.Character.Head
  16. end
  17. end
  18. end)
  19.  
  20. spawn(function()
  21. while true do
  22. wait()
  23. rocket.Position = Vector3.new(game.Players.LocalPlayer.Character.Head.Position.X+game.Players.LocalPlayer.Character.Humanoid.MoveDirection.X*speed*5.4,game.Players.LocalPlayer.Character.Head.Position.Y,game.Players.LocalPlayer.Character.Head.Position.Z+game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Z*speed*5.4)
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement