Advertisement
Guest User

Paper airplane

a guest
Apr 19th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3.  
  4. function rocket()
  5. rocket = Instance.new("Part")
  6. rocket.Position = Vector3.new(player.Character.Torso.Position)
  7. rocket.Size = Vector3.new("4, 1, 1")
  8.  
  9. rocket.Parent = workspace
  10. push = Instance.new("RocketPropulsion")
  11. push.Parent = rocket
  12. push.Target = mouse.Target
  13. push.MaxSpeed = "53"
  14. push.TargetRadius = "5"
  15. push.CartoonFactor = 1
  16. push:Fire()
  17. mesh = Instance.new("SpecialMesh", rocket)
  18. mesh.MeshId = "http://www.roblox.com/asset/?id=20626798"
  19. mesh.TextureId = "http://www.roblox.com/asset/?id=20626793"
  20. wait (3)
  21. e = Instance.new("Explosion")
  22. e.Parent = rocket
  23. e.Position = rocket.Position
  24. wait (.1)
  25. rocket:Destroy()
  26. end
  27.  
  28.  
  29.  
  30. mouse.Button1Down:connect(rocket)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement