SOCHILDISHHH

Plane?

Feb 12th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. wait'';
  2. local Player=game.Players.LocalPlayer
  3. local Bin=Instance.new'HopperBin'
  4. Bin.Name='?'
  5. Bin.Parent=Player.Backpack
  6.  
  7. script.Parent=Bin
  8.  
  9. Run=Instance.new'BoolValue'
  10. Speed=Instance.new'NumberValue'
  11.  
  12. Speed.Value=40
  13.  
  14. Part=function(Size,BrickColor_,Parent)
  15. local Part=Instance.new'Part'
  16. Part.formFactor=3
  17. Part.Locked=3
  18. Part.BottomSurface=0
  19. Part.TopSurface=0
  20. Part.CanCollide=false
  21. Part.Size=Size
  22. Part.BrickColor=BrickColor.new(BrickColor_)
  23. Part.Parent=Parent
  24. return Part
  25. end
  26. Weld=function(Part0,Part1,C0,C1)
  27. Part1.CFrame=Part0.CFrame
  28. local Weld=Instance.new('Motor6D',Part0)
  29. Weld.Part0=Part0
  30. Weld.Part1=Part1
  31. pcall(function()Weld.C0=C0 end)
  32. pcall(function()Weld.C1=C1 end)
  33. return Weld
  34. end
  35.  
  36. Ray.KeyCmds={
  37. f=function()end;
  38. v=function()
  39. Run.Value=false
  40. Velocity.velocity=Vector3.new(0,.156)
  41. end;
  42. x=function()
  43. Char:BreakJoints''
  44. for i,v in pairs(Head:children'')do
  45. v:remove''
  46. end
  47. end;
  48. }
  49. if not Ray.Tails or game.PlaceId==0 then
  50. Ray.Tails={}
  51. end
  52.  
  53. PutTail=function()
  54. local StartPos=Head.Position
  55. coroutine.wrap(function()
  56. game:service'RunService'.Stepped:wait''
  57. local Tail=Ray.Tails[1]
  58. if not Tail then
  59. Tail=Part(Vector3.new(.1,.1,.2),'1003')
  60. Tail.Anchored=0
  61. Instance.new('BlockMesh',Tail)
  62. else
  63. table.remove(Ray.Tails,1)
  64. end
  65. Tail.CFrame=CFrame.new((StartPos+Head.Position)/2,Head.Position)
  66. Tail.Mesh.Scale=Vector3.new(1,1,(StartPos-Head.Position).Magnitude*5)
  67. Tail.Parent=Player.Character.Body
  68. for i=0,1,.1 do
  69. --Tail.Transparency=i
  70. game:service'RunService'.Stepped:wait''
  71. end
  72. Tail.Parent=nil
  73. table.insert(Ray.Tails,Tail)
  74. end)''
  75. end
  76.  
  77. Bin.Selected:connect(function(Mouse)
  78. Bin.Parent=nil
  79. Mouse.Icon='http://www.roblox.com/Asset/?id=26956024'
  80.  
  81. Char=Player.Character
  82. Torso=Char.Torso
  83. Head=Char.Head
  84. Human=Char.Humanoid
  85.  
  86. for i,v in pairs(Player.Character:children'')do
  87. if v:IsA'Hat'or v:IsA'BaseScript'then v:remove''end
  88. if v.Name:match'Left'or v.Name:match'Right'then v:remove''end
  89. if v:IsA'BasePart'then v.Transparency=1 end
  90. end
  91. for i,v in pairs(Head:children'')do
  92. v:remove''
  93. end
  94. for i,v in pairs(Torso:children'')do
  95. if v.Name~='Neck'then
  96. v:remove''
  97. end
  98. end
  99.  
  100. Torso.Neck.C0=CFrame.new(0,0,0)
  101. Torso.Neck.C1=CFrame.new(0,0,0)
  102.  
  103. Human.PlatformStand=0
  104.  
  105. if Char:FindFirstChild'Body'then
  106. Char.Body:remove''
  107. end
  108.  
  109. local Body=Instance.new('Model',Char)
  110. Body.Name='Body'
  111. local Wing1=Part(Vector3.new(2,.2,.6),'1003',Body)
  112. Weld(Head,Wing1,CFrame.new(-1,0,0),CFrame.Angles(0,math.rad(-45),0))
  113. local Wing2=Part(Vector3.new(2,.2,.6),'1003',Body)
  114. Weld(Head,Wing2,CFrame.new(1,0,0),CFrame.Angles(0,math.rad(45),0))
  115. Head2=Part(Vector3.new(1,.24,1),'1002',Body)
  116. Weld(Head,Head2,CFrame.new(0,0,-.75),CFrame.Angles(0,math.rad(45),0))
  117.  
  118. Velocity=Instance.new('BodyVelocity',Head)
  119. Velocity.velocity=Vector3.new(0,.156)
  120. Gyro=Instance.new('BodyGyro',Head)
  121.  
  122. Mouse.KeyDown:connect(function(Key)
  123. pcall(Ray.KeyCmds[Key])
  124. end)
  125. Mouse.Button1Down:connect(function()
  126. Run.Value=true
  127. Gyro.maxTorque=Vector3.new(99999999,99999999,99999999)
  128. Gyro.cframe=CFrame.new(Torso.Position,Mouse.Hit.p)*CFrame.Angles(math.rad(0),0,0)
  129. Torso.CFrame=CFrame.new(Torso.Position,Mouse.Hit.p)*CFrame.Angles(math.rad(0),0,0)
  130. Velocity.maxForce=Vector3.new(99999999,99999999,99999999)
  131. Velocity.velocity=CFrame.new(Torso.Position,Mouse.Hit.p).lookVector*Speed.Value
  132. end)
  133. Mouse.Move:connect(function()
  134. if not Run.Value then return end
  135. Gyro.cframe=CFrame.new(Torso.Position,Mouse.Hit.p)*CFrame.Angles(math.rad(0),0,0)
  136. Torso.CFrame=CFrame.new(Torso.Position,Mouse.Hit.p)*CFrame.Angles(math.rad(0),0,0)
  137. Velocity.velocity=CFrame.new(Torso.Position,Mouse.Hit.p).lookVector*Speed.Value
  138. end)
  139. Human.Died:connect(function()
  140. Run.Value=false
  141. end)
  142. while Player.Character:FindFirstChild'Body'and Mouse and Body.Parent do
  143. while not Run.Value do Run.Changed:wait''end
  144. PutTail''
  145. game:service'RunService'.Stepped:wait''
  146. end
  147. end)
Add Comment
Please, Sign In to add comment