Advertisement
nguyenjimbo

Wings Script

Feb 2nd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.37 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 3 and 5 and put your name where it says "YOUR NAME HERE"
  2. Evil={'YOUR NAME HERE'}
  3. if not (script.Parent:IsA('HopperBin')) then
  4. bin=Instance.new('HopperBin',game.Players.YOUR NAME HERE.Backpack)
  5. bin.TextureId='http://www.roblox.com/asset/?id=54353092'
  6. bin.Name='AlaFly'
  7. script.Parent=bin
  8. else
  9. bin=script.Parent
  10. end
  11. player=bin.Parent.Parent
  12. debris=game:service('Debris')
  13. new=Instance.new
  14. fnew=CFrame.new
  15. brick=BrickColor.new
  16. vnew=Vector3.new
  17. rot=CFrame.fromEulerAnglesXYZ
  18. if script.className~='LocalScript'then
  19. bin:remove()
  20. end
  21. T=new('Sound')
  22. T.SoundId='rbxassetid://2101157'
  23. T.Pitch=.4
  24. motors={
  25. right={},
  26. left={},
  27. mains={}
  28. }
  29. X=function(f)coroutine.resume(coroutine.create(f))end
  30. life=function(obj,time)debris:AddItem(obj,time)end
  31. local bv,bg,torso,Lmotor,Rmotor,head
  32. fly=250
  33. findt=function()
  34. for i,v in pairs(player.Character:children())do
  35. if v.Name=='Torso'then
  36. return v
  37. end
  38. end
  39. end
  40. wing=function()
  41. torso=player.Character.Torso
  42. for i,v in pairs(torso.Parent:children())do
  43. if v.Name=='WingMain'then
  44. v:remove()
  45. end
  46. end
  47. mainwingpart=new('WedgePart')
  48. mainwingpart.Name='WingMain'
  49. mainwingpart.CanCollide=false
  50. mainwingpart.Size=vnew(1,1,1)
  51. mainwingpart.Transparency=1
  52. mainwingpart.BrickColor=BrickColor.White()
  53. mainwingpart.Parent=player.Character
  54. weld=new('Weld',torso)
  55. weld.Part0=weld.Parent
  56. weld.Part1=mainwingpart
  57. weld.C0=fnew(0,.4,0)
  58. WingRight=new('WedgePart')
  59. WingRight.formFactor=3
  60. WingRight.Size=vnew(.04,.3,.5)
  61. WingRight.CanCollide=false
  62. WingRight.BrickColor=BrickColor.White()
  63. WingRight.Parent=mainwingpart
  64. Rmotor=new('Motor',mainwingpart)
  65. Rmotor.Part0=Rmotor.Parent
  66. Rmotor.Part1=WingRight
  67. Rmotor.C1=rot(0,math.pi/1.5,0)+vnew(-.18,-.10,.8)
  68. nextpp=nil
  69. dan=-2
  70. for w=1,15 do
  71. wait()
  72. dan=dan+1
  73. pp=new('WedgePart')
  74. pp.Locked=true
  75. pp.BrickColor=BrickColor.White()
  76. pp.formFactor=3
  77. if w==1 then
  78. pp.Size=vnew(.3,2.5,.8)
  79. else
  80. pp.Size=vnew(.3,1/(w/5),2/w)
  81. end
  82. pp.CanCollide=false
  83. pp.BrickColor=BrickColor.White()
  84. pp.CFrame=WingRight.CFrame
  85. pp.Material='Slate'
  86. pp.Parent=WingRight
  87. if dan==1 then
  88. dan=0
  89. asdlal=new('WedgePart')
  90. asdlal.BrickColor=BrickColor.White()
  91. asdlal.formFactor=3
  92. asdlal.Size=vnew(.25,pp.Size.y,15/w)
  93. for lawlz,Evil in pairs(Evil)do
  94. if player.Name==Evil then
  95. asdlal:remove()
  96. asdlal=new('WedgePart')
  97. asdlal.formFactor=3
  98. asdlal.BrickColor=BrickColor.White()
  99. asdlal.Size=vnew(.25,.8,15/w)
  100. end
  101. end
  102. asdlal.Locked=true
  103. asdlal.CanCollide=false
  104. asdlal.Material='Slate'
  105. asdlal.Parent=pp
  106. mmm=new('Motor',pp)
  107. mmm.Part0=pp
  108. mmm.Part1=asdlal
  109. mmm.C0=fnew(0,0,-asdlal.Size.z/2)
  110. end
  111. if w==1 then
  112. ppmotor=new('Motor',WingRight)
  113. else
  114. ppmotor=new('Motor',nextpp)
  115. end
  116. table.insert(motors.right,ppmotor)
  117. ppmotor.Part0=ppmotor.Parent
  118. ppmotor.Part1=pp
  119. if w==1 then
  120. ppmotor.C0=rot(-.04,-math.pi/6,0)+vnew(.3,0,-.1)
  121. else
  122. ppmotor.C0=rot(-.1/(w/7),-.07,0)+vnew(0,pp.Size.y,0)
  123. end
  124. nextpp=pp
  125. end
  126. WingLeft=new('WedgePart')
  127. WingLeft.formFactor=3
  128. WingLeft.Size=vnew(.04,.3,.5)
  129. WingLeft.CanCollide=false
  130. WingLeft.BrickColor=BrickColor.White()
  131. WingLeft.Parent=mainwingpart
  132. Lmotor=new('Motor',mainwingpart)
  133. Lmotor.Part0=Lmotor.Parent
  134. Lmotor.Part1=WingLeft
  135. Lmotor.C1=rot(0,-math.pi/1.5,0)+vnew(0.18,-.10,.8)
  136. nextpp=nil
  137. dan=-2
  138. for w=1,15 do
  139. wait()
  140. dan=dan+1
  141. pp=new('WedgePart')
  142. pp.Locked=true
  143. pp.BrickColor=BrickColor.White()
  144. pp.formFactor=3
  145. if w==1 then
  146. pp.Size=vnew(.3,2.5,.8)
  147. else
  148. pp.Size=vnew(.3,1/(w/5),2/w)
  149. end
  150. pp.CanCollide=false
  151. pp.BrickColor=BrickColor.White()
  152. pp.CFrame=WingLeft.CFrame
  153. pp.Material='Slate'
  154. pp.Parent=WingLeft
  155. if dan==1 then
  156. dan=0
  157. asdlal=new('WedgePart')
  158. asdlal.BrickColor=BrickColor.White()
  159. asdlal.formFactor=3
  160. asdlal.Size=vnew(.25,pp.Size.y,15/w)
  161. for lawlz,Evil in pairs(Evil)do
  162. if player.Name==Evil then
  163. asdlal:remove()
  164. asdlal=new('WedgePart')
  165. asdlal.formFactor=3
  166. asdlal.BrickColor=BrickColor.White()
  167. asdlal.Size=vnew(.25,.8,15/w)
  168. end
  169. end
  170. asdlal.Locked=true
  171. asdlal.CanCollide=false
  172. asdlal.Material='Slate'
  173. asdlal.Parent=pp
  174. mmm=new('Motor',pp)
  175. mmm.Part0=pp
  176. mmm.Part1=asdlal
  177. mmm.C0=fnew(0,0,-asdlal.Size.z/2)
  178. end
  179. if w==1 then
  180. ppmotor=new('Motor',WingLeft)
  181. else
  182. ppmotor=new('Motor',nextpp)
  183. end
  184. ppmotor.Part0=ppmotor.Parent
  185. table.insert(motors.left,ppmotor)
  186. ppmotor.Part1=pp
  187. if w==1 then
  188. ppmotor.C0=rot(-.04,math.pi/6,0)+vnew(-.3,0,-.1)
  189. else
  190. ppmotor.C0=rot(-.1/(w/7),.07,0)+vnew(0,pp.Size.y,0)
  191. end
  192. nextpp=pp
  193. end
  194. X(function()
  195. for i,v in pairs(motors.right)do
  196. v.C1=rot(.1,0,0)
  197. wait()
  198. end
  199. for i,v in pairs(motors.right)do
  200. v.C1=rot(0,-.1,-.1)
  201. wait()
  202. end
  203. end)
  204. X(function()
  205. for i,v in pairs(motors.left)do
  206. v.C1=rot(.1,0,0)
  207. wait()
  208. end
  209. for i,v in pairs(motors.left)do
  210. v.C1=rot(0,.1,.1)
  211. wait()
  212. end
  213. end)
  214. X(function()
  215. for i,v in pairs(motors.right)do
  216. v.C1=rot(.1,0,0)
  217. wait()
  218. end
  219. for i,v in pairs(motors.right)do
  220. v.C1=rot(0,-.1,0)
  221. wait()
  222. end
  223. end)
  224. X(function()
  225. for i,v in pairs(motors.left)do
  226. v.C1=rot(.1,0,0)
  227. wait()
  228. end
  229. for i,v in pairs(motors.left)do
  230. v.C1=rot(0,.1,0)
  231. wait()
  232. end
  233. end)
  234. Rmotor.MaxVelocity=.1
  235. Lmotor.MaxVelocity=.1
  236. Lmotor.DesiredAngle=.8
  237. Rmotor.DesiredAngle=-.8
  238. end
  239. leftarm=function(bool)
  240. X(function()
  241. newlarm=new('Motor6D')
  242. newlarm.Name='Left Shoulder'
  243. newlarm.Parent=player.Character.Torso
  244. newlarm.Part0=player.Character.Torso
  245. newlarm.Part1=player.Character['Left Arm']
  246. wait()--hmm
  247. newlarm.C0=fnew(-1,.5,0,0,0,-1,0,1,0,1,0,0)
  248. newlarm.C1=fnew(.5,.5,0,0,0,-1,0,1,0,1,0,0)
  249. if bool==false then return newlarm end
  250. an=player.Character.Animate
  251. an.Disabled=true
  252. an.Disabled=false
  253. end)
  254. return newlarm
  255. end
  256. Name=function()
  257. name=''
  258. for LA=1,3 do
  259. name=name..string.char(math.random(0,255))
  260. end
  261. return name
  262. end
  263. Lazer=function(m)wllwlw=false
  264. for i,v in pairs(Evil)do
  265. if v==player.Name then
  266. wllwlw=true break
  267. end
  268. end
  269. if wllwlw==false then return end
  270. if asdTroll~=nil then return end
  271. asdTroll='asd'
  272. rarm=rightarm(false)
  273. rarm.MaxVelocity=.2
  274. rarm.DesiredAngle=math.rad(110)
  275. larm=leftarm(false)
  276. larm.MaxVelocity=.2
  277. larm.DesiredAngle=-math.rad(110)
  278. lball=new('Part')
  279. life(lball,10)
  280. lball.Shape=0
  281. lball.Size=vnew(1,1,1)
  282. lball.CanCollide=false
  283. lball.BottomSurface=0
  284. lball.TopSurface=0
  285. lball.Transparency=.5
  286. lball.BrickColor=BrickColor.White()
  287. for i,v in pairs(Evil)do
  288. if player.Name==v then
  289. lball.BrickColor=BrickColor.White()
  290. end
  291. end
  292. lball.Parent=player.Character
  293. lweld=new('Weld',larm.Part1)
  294. lweld.Part0=lweld.Parent
  295. lweld.Part1=lball
  296. lweld.C0=fnew(0,-4,0)
  297. rball=new('Part')
  298. life(rball,10)
  299. rball.Shape=0
  300. rball.Size=vnew(1,1,1)
  301. rball.Transparency=.5
  302. rball.CanCollide=false
  303. rball.BottomSurface=0
  304. rball.TopSurface=0
  305. rball.BrickColor=BrickColor.White()
  306. for i,v in pairs(Evil)do
  307. if player.Name==v then
  308. rball.BrickColor=BrickColor.White()
  309. end
  310. end
  311. rball.Parent=player.Character
  312. rweld=new('Weld',rarm.Part1)
  313. rweld.Part0=rweld.Parent
  314. rweld.Part1=rball
  315. rweld.C0=fnew(0,-4,0)
  316. X(function()
  317. X(function()
  318. for KG=1,157 do wait()
  319. part=new('Part')
  320. life(part,.2)
  321. part.Transparency=.3
  322. asdrandom=(math.random(5,20)/10)+KG/40
  323. new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom)
  324. part.Size=vnew(1,1,1)
  325. part.Anchored=true
  326. part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+lball.Position
  327. part.Name='asd'
  328. part.BrickColor=BrickColor.White()
  329. for i,v in pairs(Evil)do
  330. if player.Name==v then
  331. part.BrickColor=BrickColor.White()
  332. end
  333. end
  334. part.Parent=lball
  335. end
  336. end)
  337. for KG2=1,157 do wait()
  338. part=new('Part')
  339. life(part,.2)
  340. part.Transparency=.3
  341. asdrandom=(math.random(5,20)/10)+KG2/40
  342. new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom)
  343. part.Size=vnew(1,1,1)
  344. part.Anchored=true
  345. part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+rball.Position
  346. part.Name='asd'
  347. part.BrickColor=BrickColor.White()
  348. for i,v in pairs(Evil)do
  349. if player.Name==v then
  350. part.BrickColor=BrickColor.White()
  351. end
  352. end
  353. part.Parent=rball
  354. end
  355. rball:remove()
  356. lball:remove()
  357. rightarm(true)
  358. leftarm(true)
  359. asdTroll=nil
  360. for wasd=1,200 do
  361. if pp~=nil then pp:remove()end
  362. if asdTroll~=nil then return end
  363. pos=m.Hit.p
  364. pp=new('WedgePart')
  365. life(pp,.1)
  366. pp.formFactor=3
  367. pp.BrickColor=BrickColor.White()
  368. pp.Transparency=.2
  369. pp.Size=vnew(6,1000,6)
  370. pp.CFrame=CFrame.new(pos.x,pos.y+(pp.Size.y/2),pos.z)+vnew(math.random(-3,3),0,math.random(-3,3))
  371. exp=Instance.new('Explosion')
  372. exp.Position=pos+vnew(math.random(-3,3),0,math.random(-3,3))
  373. exp.BlastRadius=30
  374. exp.Parent=workspace
  375. Join=new('Part')
  376. Join.formFactor=0
  377. Join.Size=vnew(1,1,1)
  378. new('SpecialMesh',Join).MeshType='Sphere'
  379. Join.Mesh.Scale=vnew(60,60,60)
  380. Join.Anchored=true
  381. Join.BottomSurface=0
  382. Join.TopSurface=0
  383. Join.BrickColor=BrickColor.White()
  384. Join.Transparency=.5
  385. Join.CFrame=rot(0,math.rad(3.6*wasd)*2,0)+pos+vnew(math.random(-3,3),0,math.random(-3,3))
  386. Join.Parent=pp
  387. pJoin=new('Part')
  388. life(pJoin,.4)
  389. new('BlockMesh',pJoin).Scale=vnew(10,10,10)+vnew((wasd/30),(wasd/30),(wasd/30))
  390. pJoin.formFactor=0
  391. pJoin.Size=vnew(1,1,1)
  392. pJoin.Anchored=true
  393. pJoin.BrickColor=BrickColor.White()
  394. pJoin.Transparency=.5
  395. pJoin.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+pos+vnew(math.random(-3,3),0,math.random(-3,3))
  396. pJoin.Parent=workspace
  397. pp.Parent=player.Character
  398. wait()
  399. pp.BrickColor=BrickColor.White()
  400. end
  401. end)
  402. -- rightarm(true)
  403. end
  404. rightarm=function(bool)
  405. if pcall(function()
  406. newrarm=new('Motor6D')
  407. newrarm.Name='Right Shoulder'
  408. newrarm.Parent=player.Character.Torso
  409. newrarm.Part0=player.Character.Torso
  410. newrarm.Part1=player.Character['Right Arm']
  411. newrarm.C0=fnew(1,.5,0,0,0,1,0,1,0,-1,0,0)
  412. newrarm.C1=fnew(-.5,.5,0,0,0,1,0,1,0,-1,0,0)
  413. if bool==false then return newlarm end
  414. pcall(function()
  415. an=player.Character.Animate
  416. an.Disabled=true
  417. an.Disabled=false
  418. end)
  419. end)then
  420. return newrarm
  421. end
  422. end
  423. light=function()
  424. if pcall(function()torso=player.Character.Torso end)then
  425. else
  426. return
  427. end
  428. larm=leftarm(false)
  429. tt=T:clone()
  430. life(tt,0)
  431. tt.Parent=workspace
  432. tt:play()
  433. Pl=new('WedgePart')
  434. life(Pl,20)
  435. Pl.CFrame=torso.CFrame+torso.CFrame.lookVector*6
  436. Pl.Anchored=true
  437. Pl.CanCollide=false
  438. Pl.Parent=workspace
  439. leftarm(true)
  440. end
  441. bodys=function(asd)
  442. for i,v in pairs(torso:children())do
  443. if v:IsA('BodyVelocity')or v:IsA('BodyGyro')then
  444. v:remove()
  445. end
  446. end
  447. if asd==true then return end
  448. bv=new('BodyVelocity')
  449. bg=new('BodyGyro')
  450. bv.maxForce=vnew(math.huge,math.huge,math.huge)
  451. bv.velocity=vnew(0,0,0)
  452. bg.maxTorque=vnew(0,0,0)
  453. bg.Parent=torso
  454. bv.Parent=torso
  455. end
  456. ball=function(asd)
  457. for i,v in pairs(player.Character:children())do
  458. if v.Name=='Fly Ball'then
  459. v:remove()
  460. end
  461. end
  462. if asd==true then return end
  463. part=new('Part')
  464. part.Shape=0
  465. part.BottomSurface=0
  466. part.TopSurface=0
  467. part.Size=torso.Size*5
  468. part.Transparency=.5
  469. part.BrickColor=BrickColor.White()
  470. part.CanCollide=false
  471. part.CFrame=torso.CFrame
  472. part.Name='Fly Ball'
  473. part.Parent=player.Character
  474. weld=new('Weld')
  475. weld.Parent=torso
  476. weld.Part0=weld.Parent
  477. weld.Part1=part
  478. part.Touched:connect(function()
  479. for i=1,5 do
  480. wait()
  481. part.Transparency=.5-i/10
  482. end
  483. part.Transparency=.5
  484. end)
  485. end
  486. script.Parent.Selected:connect(function(m)
  487. torso=player.Character.Torso
  488. bodys(true)
  489. m.KeyDown:connect(function(k)
  490. if k=='q'then
  491. fly=fly-10
  492. if fly<0 then
  493. fly=10
  494. end
  495. elseif k=='r'then
  496. wing()
  497. elseif k=='f'then
  498. Lazer(m)
  499. elseif k=='t'then
  500. X(function()player.Character.WingMain:remove()end)
  501. elseif k=='e'then
  502. fly=fly+10
  503. elseif k=='y'then
  504. MUp=false
  505. bodys(false)
  506. elseif k=='p'then
  507. print'asd'
  508. elseif k=='b'then
  509. fly=150
  510. elseif k=='x'then
  511. X(function()
  512. if m.Target==workspace or m.Target==nil then return end
  513. ko=new('ObjectValue')
  514. game:service('Debris'):AddItem(ko,1)
  515. ko.Value=player
  516. ko.Name='creator'
  517. for i,v in pairs(m.Target.Parent:children())do
  518. if v:IsA('Humanoid')then
  519. ko.Parent=v
  520. v.Torso:BreakJoints()
  521. X(function()
  522. for asd=1,100 do
  523. wait()
  524. part=new('WedgePart')
  525. game:service('Debris'):AddItem(part,.2)
  526. part.formFactor=0
  527. part.Transparency=.3
  528. part.Anchored=true
  529. part.CanCollide=false
  530. part.CFrame=rot(math.rad(math.random(1,180)),math.rad(math.random(1,180)),math.rad(math.random(1,180)))+v.Torso.Position
  531. part.Size=vnew(2,2,2)
  532. part.BrickColor=BrickColor.White()
  533. random=math.random(part.Size.x,part.Size.x*2)
  534. new('BlockMesh',part).Scale=vnew(random,random,random)
  535. part.Parent=workspace
  536. end
  537. end)
  538. end
  539. end
  540. end)
  541. end
  542. end)
  543. m.Button1Down:connect(function()
  544. ball(true)
  545. bodys(false)
  546. MUp=false
  547. rightarm(false)
  548. leftarm(false)
  549. bg.maxTorque=Vector3.new(900000,900000,900000)
  550. bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0)
  551. bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly
  552. end)
  553. m.Move:connect(function()
  554. if MUp==true then return end
  555. torso=player.Character.Torso
  556. X(function()
  557. bg.maxTorque=vnew(math.huge,math.huge,math.huge)
  558. bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0)
  559. bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly
  560. end)
  561. end)
  562. m.Button1Up:connect(function()
  563. MUp=true
  564. ball(true)
  565. bodys(false)
  566. rightarm(true)
  567. leftarm(true)
  568. bv.maxForce=vnew(10000,10000,10000)
  569. delay(2,function()if MUp==true then bodys(true)end end)
  570. torso.Velocity=vnew(0,0,0)
  571. torso.RotVelocity=vnew(0,0,0)
  572. torso.CFrame=fnew(torso.Position,m.hit.p)*rot(0,0,0)
  573. torso.Velocity=vnew(0,0,0)
  574. torso.RotVelocity=vnew(0,0,0)
  575. end)
  576. end)
  577. bin.Deselected:connect(function()
  578. X(function()
  579. ball(true)
  580. bodys(true)
  581. torso.Velocity=vnew(0,0,0)
  582. torso.RotVelocity=vnew(0,0,0)
  583. end)
  584. end)
  585. function onTouched(part)
  586. local h = part.Parent:findFirstChild("Humanoid")
  587. if h~=nil then
  588. h.Health = 0
  589. end
  590. end
  591. script.Parent.Touched:connect(onTouched)Winga
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement