Advertisement
Swagnuggetz

Metal Wings

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