carlosname

Untitled

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