Advertisement
aidanthescriptor101

wings

Jan 10th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. --Metal Wings Gifted by TheRedAngel, Regular Script!
  2.  
  3. me = game.Players.jbabybabyj
  4.  
  5. if script.Parent.className ~= "HopperBin" then
  6.  
  7. h = Instance.new("HopperBin",me.Backpack)
  8.  
  9. h.Name = "Wings"
  10.  
  11. script.Parent = h
  12.  
  13. end
  14.  
  15.  
  16.  
  17. bin = script.Parent
  18.  
  19.  
  20.  
  21. function weld(w, p, p0, p1, a, b, c, x, y, z)
  22.  
  23. w.Parent = p
  24.  
  25. w.Part0 = p0
  26.  
  27. w.Part1 = p1
  28.  
  29. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  30.  
  31. end
  32.  
  33.  
  34.  
  35. function prop(part, parent, collide, tran, ref, x, y, z, color)
  36.  
  37. part.Parent = parent
  38.  
  39. part.formFactor = 0
  40.  
  41. part.CanCollide = collide
  42.  
  43. part.Transparency = tran
  44.  
  45. part.Reflectance = ref
  46.  
  47. part.Size = Vector3.new(x,y,z)
  48.  
  49. part.BrickColor = BrickColor.new(color)
  50.  
  51. part:BreakJoints()
  52.  
  53. end
  54.  
  55.  
  56.  
  57. function mesh(mesh, parent, x, y, z, type)
  58.  
  59. mesh.Parent = parent
  60.  
  61. mesh.Scale = Vector3.new(x, y, z)
  62.  
  63. mesh.MeshType = type
  64.  
  65. end
  66.  
  67.  
  68.  
  69. wings = Instance.new("Model",me.Character)
  70.  
  71. wings.Name = "Wings"
  72.  
  73.  
  74.  
  75. torso = me.Character.Torso
  76.  
  77. rarm = me.Character["Right Arm"]
  78.  
  79. larm = me.Character["Left Arm"]
  80.  
  81.  
  82.  
  83. main = Instance.new("Part")
  84.  
  85. prop(main,wings,false,0,0.06,2,1,2,"Dark grey")
  86.  
  87. mainmesh = Instance.new("SpecialMesh")
  88.  
  89. mesh(mainmesh,main,0.9,0.4,0.75,"Torso")
  90.  
  91. tweld = Instance.new("Weld")
  92.  
  93. weld(tweld,torso,torso,main,-1.57,0,0,0,0,-0.7)
  94.  
  95.  
  96.  
  97. wing1 = Instance.new("Part")
  98.  
  99. prop(wing1,wings,false,0,0.1,1,1,2,"Dark grey")
  100.  
  101. wingmesh1 = Instance.new("SpecialMesh")
  102.  
  103. mesh(wingmesh1,wing1,1,0.65,1.2,"Brick")
  104.  
  105. ww1 = Instance.new("Weld")
  106.  
  107. weld(ww1,main,main,wing1,0,0,0,1,0,0)
  108.  
  109.  
  110.  
  111. wing2 = Instance.new("Part")
  112.  
  113. prop(wing2,wings,false,0,0.1,1,1,2,"Dark grey")
  114.  
  115. wingmesh2 = Instance.new("SpecialMesh")
  116.  
  117. mesh(wingmesh2,wing2,1,0.65,1.2,"Brick")
  118.  
  119. ww2 = Instance.new("Weld")
  120.  
  121. weld(ww2,main,main,wing2,0,0,0,-1,0,0)
  122.  
  123.  
  124.  
  125. wing2b = Instance.new("Part")
  126.  
  127. prop(wing2b,wings,false,0,0.1,1,2,3,"Dark grey")
  128.  
  129. wingmesh2b = Instance.new("SpecialMesh")
  130.  
  131. mesh(wingmesh2b,wing2b,0.4,1.4,1.4,"Wedge")
  132.  
  133. ww2b = Instance.new("Weld")
  134.  
  135. weld(ww2b,main,main,wing2b,-math.pi/2,0,math.pi/2,-3,0,-0.25)
  136.  
  137.  
  138.  
  139. wing1b = Instance.new("Part")
  140.  
  141. prop(wing1b,wings,false,0,0.1,1,2,3,"Dark grey")
  142.  
  143. wingmesh1b = Instance.new("SpecialMesh")
  144.  
  145. mesh(wingmesh1b,wing1b,0.4,1.4,1.4,"Wedge")
  146.  
  147. ww1b = Instance.new("Weld")
  148.  
  149. weld(ww1b,main,main,wing1b,-math.pi/2,0,-math.pi/2,3,0,-0.25)
  150.  
  151.  
  152.  
  153. thrust1 = Instance.new("Part")
  154.  
  155. prop(thrust1, wings, false, 0, 0.1, 1, 2, 1, "Dark grey")
  156.  
  157. tme1 = Instance.new("SpecialMesh")
  158.  
  159. mesh(tme1,thrust1,0.8,1,0.8,"Head")
  160.  
  161. tw1 = Instance.new("Weld")
  162.  
  163. weld(tw1, wing1b, wing1b, thrust1, 0, 0, 0, 0, 0, 0)
  164.  
  165.  
  166.  
  167. thrust2 = Instance.new("Part")
  168.  
  169. prop(thrust2, wings, false, 0, 0.1, 1, 2, 1, "Dark grey")
  170.  
  171. tme2 = Instance.new("SpecialMesh")
  172.  
  173. mesh(tme2,thrust2,0.8,1,0.8,"Head")
  174.  
  175. tw2 = Instance.new("Weld")
  176.  
  177. weld(tw2, wing2b, wing2b, thrust2, 0, 0, 0, 0, 0, 0)
  178.  
  179.  
  180.  
  181.  
  182.  
  183. fire1 = Instance.new("Fire",thrust1)
  184.  
  185. fire1.Heat = 25
  186.  
  187. fire1.Size = 2
  188.  
  189. fire1.Enabled = false
  190.  
  191.  
  192.  
  193. fire2 = Instance.new("Fire",thrust2)
  194.  
  195. fire2.Heat = 25
  196.  
  197. fire2.Size = 2
  198.  
  199. fire2.Enabled = false
  200.  
  201.  
  202.  
  203. hold = false
  204.  
  205. using = false
  206.  
  207.  
  208.  
  209. speed = 0
  210.  
  211. maxspeed = 700
  212.  
  213.  
  214.  
  215. bin.Selected:connect(function(mouse)
  216.  
  217. speed = 0
  218.  
  219. mouse.Button1Down:connect(function()
  220.  
  221. if using == false then
  222.  
  223. hold = true
  224.  
  225. using = true
  226.  
  227. me.Character.Humanoid.PlatformStand = true
  228.  
  229. bg = Instance.new("BodyGyro",main)
  230.  
  231. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  232.  
  233. bv = Instance.new("BodyVelocity",main)
  234.  
  235. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  236.  
  237. bg.cframe = CFrame.new(main.Position, mouse.Hit.p)
  238.  
  239. bv.velocity = main.CFrame.lookVector * speed
  240.  
  241. fire1.Enabled = true
  242.  
  243. fire2.Enabled = true
  244.  
  245. while hold do
  246.  
  247. wait()
  248.  
  249. speed = speed + 5
  250.  
  251. if speed >= maxspeed then
  252.  
  253. speed = maxspeed
  254.  
  255. end
  256.  
  257. bg.cframe = CFrame.new(main.Position, mouse.Hit.p)
  258.  
  259. bv.velocity = main.CFrame.lookVector * speed
  260.  
  261. end
  262.  
  263. end
  264.  
  265. end)
  266.  
  267. mouse.Button1Up:connect(function()
  268.  
  269. hold = false
  270.  
  271. me.Character.Humanoid.PlatformStand = false
  272.  
  273. fire1.Enabled = false
  274.  
  275. fire2.Enabled = false
  276.  
  277. for i = speed, 0, -30 do
  278.  
  279. wait()
  280.  
  281. speed = i
  282.  
  283. bv.velocity = main.CFrame.lookVector * speed
  284.  
  285. end
  286.  
  287. bg.Parent = torso
  288.  
  289. bg.cframe = CFrame.new(torso.Position, torso.Position + Vector3.new(3,0,0))
  290.  
  291. wait(0.5)
  292.  
  293. bv:remove()
  294.  
  295. wait(2)
  296.  
  297. bg:remove()
  298.  
  299. using = false
  300.  
  301. end)
  302.  
  303. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement