Advertisement
Qwartarz

Untitled

May 16th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. me = game.Players.Qwartarz
  2. if script.Parent.className ~= "HopperBin" then
  3. h = Instance.new("HopperBin",me.Backpack)
  4. h.Name = "Wings"
  5. script.Parent = h
  6. end
  7.  
  8. bin = script.Parent
  9.  
  10. function weld(w, p, p0, p1, a, b, c, x, y, z)
  11. w.Parent = p
  12. w.Part0 = p0
  13. w.Part1 = p1
  14. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  15. end
  16.  
  17. function prop(part, parent, collide, tran, ref, x, y, z, color)
  18. part.Parent = parent
  19. part.formFactor = 0
  20. part.CanCollide = collide
  21. part.Transparency = tran
  22. part.Reflectance = ref
  23. part.Size = Vector3.new(x,y,z)
  24. part.BrickColor = BrickColor.new(color)
  25. part:BreakJoints()
  26. end
  27.  
  28. function mesh(mesh, parent, x, y, z, type)
  29. mesh.Parent = parent
  30. mesh.Scale = Vector3.new(x, y, z)
  31. mesh.MeshType = type
  32. end
  33.  
  34. wings = Instance.new("Model",me.Character)
  35. wings.Name = "Wings"
  36.  
  37. torso = me.Character.Torso
  38. rarm = me.Character["Right Arm"]
  39. larm = me.Character["Left Arm"]
  40.  
  41. main = Instance.new("Part")
  42. prop(main,wings,false,0,0.06,2,1,2,"Dark grey")
  43. mainmesh = Instance.new("SpecialMesh")
  44. mesh(mainmesh,main,0.9,0.4,0.75,"Torso")
  45. tweld = Instance.new("Weld")
  46. weld(tweld,torso,torso,main,-1.57,0,0,0,0,-0.7)
  47.  
  48. wing1 = Instance.new("Part")
  49. prop(wing1,wings,false,0,0.1,1,1,2,"Dark grey")
  50. wingmesh1 = Instance.new("SpecialMesh")
  51. mesh(wingmesh1,wing1,1,0.65,1.2,"Brick")
  52. ww1 = Instance.new("Weld")
  53. weld(ww1,main,main,wing1,0,0,0,1,0,0)
  54.  
  55. wing2 = Instance.new("Part")
  56. prop(wing2,wings,false,0,0.1,1,1,2,"Dark grey")
  57. wingmesh2 = Instance.new("SpecialMesh")
  58. mesh(wingmesh2,wing2,1,0.65,1.2,"Brick")
  59. ww2 = Instance.new("Weld")
  60. weld(ww2,main,main,wing2,0,0,0,-1,0,0)
  61.  
  62. wing2b = Instance.new("Part")
  63. prop(wing2b,wings,false,0,0.1,1,2,3,"Dark grey")
  64. wingmesh2b = Instance.new("SpecialMesh")
  65. mesh(wingmesh2b,wing2b,0.4,1.4,1.4,"Wedge")
  66. ww2b = Instance.new("Weld")
  67. weld(ww2b,main,main,wing2b,-math.pi/2,0,math.pi/2,-3,0,-0.25)
  68.  
  69. wing1b = Instance.new("Part")
  70. prop(wing1b,wings,false,0,0.1,1,2,3,"Dark grey")
  71. wingmesh1b = Instance.new("SpecialMesh")
  72. mesh(wingmesh1b,wing1b,0.4,1.4,1.4,"Wedge")
  73. ww1b = Instance.new("Weld")
  74. weld(ww1b,main,main,wing1b,-math.pi/2,0,-math.pi/2,3,0,-0.25)
  75.  
  76. thrust1 = Instance.new("Part")
  77. prop(thrust1, wings, false, 0, 0.1, 1, 2, 1, "Dark grey")
  78. tme1 = Instance.new("SpecialMesh")
  79. mesh(tme1,thrust1,0.8,1,0.8,"Head")
  80. tw1 = Instance.new("Weld")
  81. weld(tw1, wing1b, wing1b, thrust1, 0, 0, 0, 0, 0, 0)
  82.  
  83. thrust2 = Instance.new("Part")
  84. prop(thrust2, wings, false, 0, 0.1, 1, 2, 1, "Dark grey")
  85. tme2 = Instance.new("SpecialMesh")
  86. mesh(tme2,thrust2,0.8,1,0.8,"Head")
  87. tw2 = Instance.new("Weld")
  88. weld(tw2, wing2b, wing2b, thrust2, 0, 0, 0, 0, 0, 0)
  89.  
  90.  
  91. fire1 = Instance.new("Fire",thrust1)
  92. fire1.Heat = 25
  93. fire1.Size = 2
  94. fire1.Enabled = false
  95.  
  96. fire2 = Instance.new("Fire",thrust2)
  97. fire2.Heat = 25
  98. fire2.Size = 2
  99. fire2.Enabled = false
  100.  
  101. hold = false
  102. using = false
  103.  
  104. speed = 0
  105. maxspeed = 700
  106.  
  107. bin.Selected:connect(function(mouse)
  108. speed = 0
  109. mouse.Button1Down:connect(function()
  110. if using == false then
  111. hold = true
  112. using = true
  113. me.Character.Humanoid.PlatformStand = true
  114. bg = Instance.new("BodyGyro",main)
  115. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  116. bv = Instance.new("BodyVelocity",main)
  117. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  118. bg.cframe = CFrame.new(main.Position, mouse.Hit.p)
  119. bv.velocity = main.CFrame.lookVector * speed
  120. fire1.Enabled = true
  121. fire2.Enabled = true
  122. while hold do
  123. wait()
  124. speed = speed + 5
  125. if speed >= maxspeed then
  126. speed = maxspeed
  127. end
  128. bg.cframe = CFrame.new(main.Position, mouse.Hit.p)
  129. bv.velocity = main.CFrame.lookVector * speed
  130. end
  131. end
  132. end)
  133. mouse.Button1Up:connect(function()
  134. hold = false
  135. me.Character.Humanoid.PlatformStand = false
  136. fire1.Enabled = false
  137. fire2.Enabled = false
  138. for i = speed, 0, -30 do
  139. wait()
  140. speed = i
  141. bv.velocity = main.CFrame.lookVector * speed
  142. end
  143. bg.Parent = torso
  144. bg.cframe = CFrame.new(torso.Position, torso.Position + Vector3.new(3,0,0))
  145. wait(0.5)
  146. bv:remove()
  147. wait(2)
  148. bg:remove()
  149. using = false
  150. end)
  151. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement