Advertisement
realstar101

Untitled

Mar 29th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.85 KB | None | 0 0
  1. lp=game.Players.LocalPlayer
  2.  
  3. pl=lp.Character
  4.  
  5. tol=Instance.new("HopperBin",lp.Backpack)
  6.  
  7. tol.Name="Shock Lance"--jarredbcv
  8.  
  9. function getAngles(cf)
  10.  
  11. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  12.  
  13. return math.atan2(-m12,m22),math.asin(m02),math.atan2(-m01,m00)end
  14.  
  15. cfoff=true
  16.  
  17. curnt="fire"
  18.  
  19. db=false
  20.  
  21. le=2
  22.  
  23. rng={}
  24.  
  25. Lerp = {Number = function(C1,C2,inc)
  26.  
  27. return C1 + (C2 - C1) * inc
  28.  
  29. end;CFrame = function(C1,C2,inc)
  30.  
  31. local x1,y1,z1 = getAngles(C1)
  32.  
  33. local x2,y2,z2 = getAngles(C2)
  34.  
  35. return CFrame.new(Lerp.Number(C1.X,C2.X,inc),Lerp.Number(C1.Y,C2.Y,inc), Lerp.Number(C1.Z,C2.Z,inc)) * CFrame.Angles(Lerp.Number(x1,x2,inc),Lerp.Number(y1,y2,inc),Lerp.Number(z1,z2,inc))
  36.  
  37. end;}
  38.  
  39. Part = function(x,y,z,color,tr,cc,an,parent)
  40.  
  41. local p = Instance.new('Part',parent or Weapon)
  42.  
  43. p.formFactor = 'Custom'
  44.  
  45. p.Size = Vector3.new(x,y,z)
  46.  
  47. p.BrickColor = BrickColor.new(color)
  48.  
  49. p.CanCollide = cc
  50.  
  51. p.Transparency = tr
  52.  
  53. p.Anchored = an
  54.  
  55. p.TopSurface,p.BottomSurface = 0,0
  56.  
  57. return p end
  58.  
  59. fir = function(n1,n2,n3,n4,n5,n6,hs,fs,parent)
  60.  
  61. local fi = Instance.new('Fire',parent or Weapon)
  62.  
  63. fi.Color=Color3.new(n1,n2,n3)
  64.  
  65. fi.Heat=hs
  66.  
  67. fi.SecondaryColor=Color3.new(n4,n5,n6)
  68.  
  69. fi.Size=fs
  70.  
  71. return fi end
  72.  
  73. wPart = function(x,y,z,color,tr,cc,an,parent)
  74.  
  75. local wp = Instance.new('WedgePart',parent or Weapon)
  76.  
  77. wp.formFactor = 'Custom'
  78.  
  79. wp.Size = Vector3.new(x,y,z)
  80.  
  81. wp.BrickColor = BrickColor.new(color)
  82.  
  83. wp.CanCollide = cc
  84.  
  85. wp.Transparency = tr
  86.  
  87. wp.Anchored = an
  88.  
  89. wp.TopSurface,wp.BottomSurface = 0,0
  90.  
  91. return wp end
  92.  
  93. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  94.  
  95. p0.Position = p1.Position
  96.  
  97. local w = Instance.new('Motor',par or p0)
  98.  
  99. w.Part0 = p0
  100.  
  101. w.Part1 = p1
  102.  
  103. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  104.  
  105. return w end
  106.  
  107. Mesh = function(par,num,x,y,z)
  108.  
  109. local msh = _
  110.  
  111. if num == 1 then msh = Instance.new("CylinderMesh",par)
  112.  
  113. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  114.  
  115. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  116.  
  117. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  118.  
  119. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  120.  
  121. end msh.Scale = Vector3.new(x,y,z)
  122.  
  123. return msh end
  124.  
  125. function TweenCFrame(part,cframe,q)
  126.  
  127. local c0 = part.CFrame
  128.  
  129. for i = -90,90,q do
  130.  
  131. local r = ((math.sin(math.rad(i))+1)/2)
  132.  
  133. part.CFrame = CFrame.new(c0.p:lerp(cframe.p,r))
  134.  
  135. wait()end end
  136.  
  137. cube = function(pos,colr,hig,ra)
  138.  
  139. for i=1,6 do local ascube = Part(1,1,1,colr,0,false,true,mo)
  140.  
  141. ascube.CFrame= pos
  142.  
  143. coroutine.wrap(function()
  144.  
  145. TweenCFrame(ascube,pos+Vector3.new(math.random(-ra,ra),math.random(-hig,hig),math.random(-ra,ra)),10)
  146.  
  147. ascube.Anchored=false
  148.  
  149. game.Debris:AddItem(ascube,.5)
  150.  
  151. end)()end end
  152.  
  153. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency) -- messy and bad
  154.  
  155. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  156.  
  157. for i=1,Times do
  158.  
  159. li = Instance.new("Part",mo) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color)
  160.  
  161. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  162.  
  163. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  164.  
  165. if Times == i then
  166.  
  167. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  168.  
  169. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  170.  
  171. else
  172.  
  173. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  174.  
  175. end
  176.  
  177. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  178.  
  179. end
  180.  
  181. end
  182.  
  183. s1 = Instance.new("Sound",pl.Torso)s1.SoundId = "http://roblox.com/asset/?id=28445431"s1.Volume=100 s1.Pitch=20
  184.  
  185. s2 = Instance.new("Sound",pl.Torso)s2.SoundId = "http://roblox.com/asset/?id=131382140"s2.Pitch=10
  186.  
  187. s3 = Instance.new("Sound",pl.Torso)s3.SoundId = "http://www.roblox.com/asset/?id=130865054"s3.Pitch=1.5
  188.  
  189. s4 = Instance.new("Sound",pl.Torso)s4.SoundId = "http://www.roblox.com/asset/?id=25605551"
  190.  
  191. s5 = Instance.new("Sound",pl.Torso)s5.SoundId = "http://www.roblox.com/asset/?id=32656713"
  192.  
  193. s6 = Instance.new("Sound",pl.Torso)s6.SoundId = "http://www.roblox.com/asset/?id=32656754"
  194.  
  195. s7 = Instance.new("Sound",pl.Torso)s7.SoundId = "http://www.roblox.com/asset/?id=10756104"s7.Pitch=1.25
  196.  
  197. s8 = Instance.new("Sound",pl.Torso)s8.SoundId = "http://www.roblox.com/asset/?id=10756118"
  198.  
  199. s9 = Instance.new("Sound",pl.Torso)s9.SoundId = "http://www.roblox.com/asset/?id=142070127"
  200.  
  201. s10 = Instance.new("Sound",pl.Torso)s10.SoundId = "http://www.roblox.com/asset/?id=102546080"
  202.  
  203. s11 = Instance.new("Sound",pl.Torso)s11.SoundId = "http://www.roblox.com/asset/?id=30583931"s11.Pitch=.75
  204.  
  205. mo=Instance.new("Model",pl)
  206.  
  207. orign= Part(.23,4,.23,'',0,false,false,mo)
  208.  
  209. me=Mesh(orign,1,1,1,1)
  210.  
  211. owld= Weld(orign,pl.Torso,0,0,.5,0,math.pi/1,math.pi/1.25,mo)
  212.  
  213. adpa= Part(.1,2,.1,'Really black',0,false,false,mo)
  214.  
  215. me=Mesh(adpa,1,1,1,1)
  216.  
  217. wld= Weld(adpa,orign,0,-3,0,math.pi/1,0,0,mo)
  218.  
  219. for i=1,7 do le=le+.2
  220.  
  221. rpa= Part(.1,2,.1,'Sand red',0,false,false,mo)
  222.  
  223. me=Mesh(rpa,'http://www.roblox.com/asset/?id=3270017',.5,.5,.5)
  224.  
  225. wld= Weld(rpa,orign,0,-le,0,math.pi/2,0,0,mo)
  226.  
  227. table.insert(rng,rpa)
  228.  
  229. end for i=1,5 do
  230.  
  231. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  232.  
  233. me=Mesh(pa,3,.1,.9,.1)
  234.  
  235. wld= Weld(pa,orign,0,-4,-.1,0,0,i/.2,mo)
  236.  
  237. end for i=1,5 do
  238.  
  239. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  240.  
  241. me=Mesh(pa,3,.1,.9,.1)
  242.  
  243. wld= Weld(pa,orign,0,-4,.1,0,0,i/.2,mo)end
  244.  
  245. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  246.  
  247. me=Mesh(pa,1,.7,.1,.7)
  248.  
  249. wld= Weld(pa,orign,0,-4,-.1,math.pi/2,0,0,mo)
  250.  
  251. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  252.  
  253. me=Mesh(pa,1,.7,.1,.7)
  254.  
  255. wld= Weld(pa,orign,0,-4,.1,math.pi/2,0,0,mo)
  256.  
  257. pa= Part(1,1,1,'',0,false,false,mo)
  258.  
  259. me=Mesh(pa,'http://www.roblox.com/asset/?id=77353021',.7,.1,.7)
  260.  
  261. wld= Weld(pa,orign,.2,-4,0,math.pi/2,0,0,mo)
  262.  
  263. pa= Part(1,1,1,'',0,false,false,mo)
  264.  
  265. me=Mesh(pa,'http://www.roblox.com/asset/?id=77353021',.7,.1,.7)
  266.  
  267. wld= Weld(pa,orign,-.2,-4,0,math.pi/2,0,math.pi/1,mo)
  268.  
  269. pa= Part(.231,.75,.231,'Really black',0,false,false,mo)
  270.  
  271. me=Mesh(pa,1,1,1,1)
  272.  
  273. wld= Weld(pa,orign,0,0,0,0,0,0,mo)
  274.  
  275. pa= Part(.5,.75,.5,'Really black',0,false,false,mo)
  276.  
  277. me=Mesh(pa,1,1,1,1)
  278.  
  279. wld= Weld(pa,orign,0,0,-.2,0,0,0,mo)
  280.  
  281. pa= Part(.1,.7,.1,'Lime green',0,false,false,mo)
  282.  
  283. me=Mesh(pa,1,1,1,1)
  284.  
  285. wld= Weld(pa,orign,0,-0.05,-.3,0,0,0,mo)
  286.  
  287. pa= Part(.1,2,.1,'Dark stone grey',0,false,false,mo)
  288.  
  289. me=Mesh(pa,1,.7,.7,.7)
  290.  
  291. wld= Weld(pa,orign,0,-1,-.3,0,0,0,mo)
  292.  
  293. pa= Part(.1,.6,.1,'Dark stone grey',0,false,false,mo)
  294.  
  295. me=Mesh(pa,1,.7,.7,.7)
  296.  
  297. wld= Weld(pa,orign,0,-1.8,-.1837,-math.pi/5,0,0,mo)
  298.  
  299. pa= Part(.5,.1,.5,'Dark stone grey',0,false,false,mo)
  300.  
  301. me=Mesh(pa,1,.7,.7,.7)
  302.  
  303. wld= Weld(pa,orign,0,2,0,0,0,0,mo)
  304.  
  305. pa= Part(.4,.1,.4,'Dark stone grey',0,false,false,mo)
  306.  
  307. me=Mesh(pa,1,.7,.7,.7)
  308.  
  309. wld= Weld(pa,orign,0,2.1,0,0,0,0,mo)
  310.  
  311. pa= Part(.3,.1,.3,'Dark stone grey',0,false,false,mo)
  312.  
  313. me=Mesh(pa,1,.7,.7,.7)
  314.  
  315. wld= Weld(pa,orign,0,2.2,0,0,0,0,mo)
  316.  
  317. -- arm
  318.  
  319. mpa= Part(1.01,1.01,1.01,'Really black',0,false,false,mo) mpa:BreakJoints()
  320.  
  321. mwl= Weld(mpa,pl['Right Arm'],0,0,0,0,0,0,mo)
  322.  
  323. pa= Part(1.1,1.1,1.1,'Dark stone grey',0,false,false,mo)
  324.  
  325. m=Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.3,.15,.3)
  326.  
  327. wl= Weld(pa,mpa,0,.3,-.5,0,0,0,mo)
  328.  
  329. pa= Part(1.1,1.1,1.1,'Dark stone grey',0,false,false,mo)
  330.  
  331. m=Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.3,.15,.3)
  332.  
  333. wl= Weld(pa,mpa,0,-.3,-.5,math.pi/1,0,0,mo)
  334.  
  335. --[[pa= Part(1.1,1.1,1.1,'White',0,false,false,mo) -- UNWANTED RMDX PART
  336.  
  337. m=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.75,.75,.75)
  338.  
  339. wl= Weld(pa,mpa,.5,0,0,0,math.pi/2,0,mo)
  340.  
  341. spa= Part(1.1,1.1,1.1,'Royal purple',0,false,false,mo)
  342.  
  343. spm=Mesh(spa,'http://www.roblox.com/asset/?id=47260990',.75,.75,.75)
  344.  
  345. spwl= Weld(spa,mpa,.5,0,0,0,math.pi/2,0,mo)]]
  346.  
  347. pa= Part(1.1,1.1,1.1,'White',0,false,false,mo)
  348.  
  349. m=Mesh(pa,'http://www.roblox.com/Asset/?id=10207677',.18,.01,.18)
  350.  
  351. wl= Weld(pa,mpa,0,0,.4088,math.pi/2,0,0,mo)
  352.  
  353. rot= Part(1,1,1,'',0,false,false,mo)
  354.  
  355. m=Mesh(rot,1,.4,.35,.4)
  356.  
  357. rotwl= Weld(rot,mpa,0,0,-.5,0,0,0,mo)
  358.  
  359. el1= Part(1,1,1,'Bright red',0,false,false,mo)
  360.  
  361. m=Mesh(el1,3,.11,.13,.11)
  362.  
  363. wl= Weld(el1,rot,0,0,-.16,0,0,0,mo)
  364.  
  365. el2= Part(1,1,1,'Bright green',0,false,false,mo)
  366.  
  367. m=Mesh(el2,3,.11,.13,.11)
  368.  
  369. wl= Weld(el2,rot,-.16,0,0,math.pi/2,0,0,mo)
  370.  
  371. el3= Part(1,1,1,'Bright yellow',0,false,false,mo)
  372.  
  373. m=Mesh(el3,3,.11,.13,.11)
  374.  
  375. wl= Weld(el3,rot,.16,0,0,math.pi/2,0,0,mo)
  376.  
  377. el4= Part(1,1,1,'Bright blue',0,false,false,mo)
  378.  
  379. m=Mesh(el4,3,.11,.13,.11)
  380.  
  381. wl= Weld(el4,rot,0,0,.16,0,0,0,mo)
  382.  
  383. function spin()
  384.  
  385. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-50),0) * CFrame.new(0.15,-0.2,0)
  386.  
  387. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-90),math.rad(75),0) * CFrame.new(.2,-0.5,-1)
  388.  
  389. wait(.25)
  390.  
  391. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-70),math.rad(75),0) * CFrame.new(.2,-0.5,-1)
  392.  
  393. if curnt=="fire" then
  394.  
  395. curnt="posion"
  396.  
  397. for i = 0,1,0.1 do wait()
  398.  
  399. s1:Play()
  400.  
  401. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  402.  
  403. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  404.  
  405. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)return end
  406.  
  407. if curnt=="posion" then
  408.  
  409. curnt="ice"
  410.  
  411. for i = 0,1,0.1 do wait()
  412.  
  413. s1:Play()
  414.  
  415. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  416.  
  417. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(-.2,-0.1,-1)
  418.  
  419. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)return end
  420.  
  421. if curnt=="ice" then
  422.  
  423. curnt="light"
  424.  
  425. for i = 0,1,0.1 do wait()
  426.  
  427. s1:Play()
  428.  
  429. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  430.  
  431. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  432.  
  433. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)return end
  434.  
  435. if curnt=="light" then
  436.  
  437. curnt="fire"
  438.  
  439. for i = 0,1,0.1 do wait()
  440.  
  441. s1:Play()
  442.  
  443. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  444.  
  445. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  446.  
  447. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)return end
  448.  
  449. end
  450.  
  451. function flame()
  452.  
  453. s2:Play()
  454.  
  455. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright red") end
  456.  
  457. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  458.  
  459. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  460.  
  461. for i=1,10 do wait(.05)
  462.  
  463. fxpa= Part(.3,.3,.3,'Bright red',0.5,false,true,mo)
  464.  
  465. fxpa.CFrame= adpa.CFrame*CFrame.new(math.random(-100/math.random(100,150),100/math.random(100,150)),math.random(-100/math.random(100,150),100/math.random(100,150)),1)*CFrame.Angles(math.random(),math.random(),math.random())
  466.  
  467. game.Debris:AddItem(fxpa,.5) end
  468.  
  469. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  470.  
  471. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  472.  
  473. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  474.  
  475. local firept= Part(.25,3,.25,'Bright red',0.5,false,false,mo)
  476.  
  477. m=Mesh(firept,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  478.  
  479. wl= Weld(firept,adpa,0,2,0,0,0,0,mo)
  480.  
  481. local bm= Part(.25,3,.25,'Bright red',0.5,false,false,mo)
  482.  
  483. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  484.  
  485. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  486.  
  487. s3:play()
  488.  
  489. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) firept.Transparency=firept.Transparency+.1 end
  490.  
  491. game.Debris:AddItem(firepart,.1)
  492.  
  493. game.Debris:AddItem(bm,.0000001)
  494.  
  495. wait(.1)
  496.  
  497. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  498.  
  499. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  500.  
  501. for i=1,5 do wait(.1)
  502.  
  503. local bm= Part(1,1,1,'Bright red',0.5,false,true,mo)
  504.  
  505. local bmm=Mesh(bm,3,0,0,0)
  506.  
  507. local sfx = Instance.new("Sound",bm)sfx.SoundId = "http://www.roblox.com/asset/?id=32791565" sfx:play()
  508.  
  509. game.Debris:AddItem(sfx,.1)
  510.  
  511. bm.CFrame= pl.Torso.CFrame*CFrame.new(0,0,-5-i*8)*CFrame.Angles(math.random(),math.random(),math.random())
  512.  
  513. for i,v in pairs(workspace:children()) do
  514.  
  515. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  516.  
  517. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  518.  
  519. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 10 and v.Name ~= pl.Name then
  520.  
  521. v:findFirstChild("Humanoid"):TakeDamage(20) local f=Instance.new("Fire",v.Torso)game.Debris:AddItem(f,7)
  522.  
  523. end end end end
  524.  
  525. cube(bm.CFrame,'Really red',6,6)
  526.  
  527. coroutine.wrap(function()
  528.  
  529. for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) end game.Debris:AddItem(bm,.1) end)()
  530.  
  531. end
  532.  
  533. wait(.2)
  534.  
  535. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  536.  
  537. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  538.  
  539. end
  540.  
  541. function pos()
  542.  
  543. s10:play()
  544.  
  545. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright green") end
  546.  
  547. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  548.  
  549. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  550.  
  551. for i=1,10 do wait(.05)
  552.  
  553. fxpa= Part(.3,.3,.3,'Bright green',0.5,false,true,mo)
  554.  
  555. fxpa.CFrame= adpa.CFrame*CFrame.new(math.random(-100/math.random(100,150),100/math.random(100,150)),math.random(-100/math.random(100,150),100/math.random(100,150)),1)*CFrame.Angles(math.random(),math.random(),math.random())
  556.  
  557. game.Debris:AddItem(fxpa,.5) end
  558.  
  559. local erpt= Part(.25,3,.25,'Bright green',0.5,false,false,mo)
  560.  
  561. m=Mesh(erpt,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  562.  
  563. wl= Weld(erpt,adpa,0,2,0,0,0,0,mo)
  564.  
  565. local bm= Part(.25,3,.25,'Bright green',0.5,false,false,mo)
  566.  
  567. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  568.  
  569. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  570.  
  571. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  572.  
  573. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  574.  
  575. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  576.  
  577. s11:play()
  578.  
  579. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) erpt.Transparency=erpt.Transparency+.1 end
  580.  
  581. game.Debris:AddItem(erpt,.1)
  582.  
  583. game.Debris:AddItem(bm,.0000001)
  584.  
  585. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  586.  
  587. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  588.  
  589. wait(.125)
  590.  
  591. local kaz = Part(1,1,1,'Bright green',1,false,true,mo)
  592.  
  593. local bom= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  594.  
  595. m=Mesh(bom,'http://www.roblox.com/asset/?id=52603336',3,3,3)
  596.  
  597. bom.CFrame=adpa.CFrame
  598.  
  599. kaz.CFrame=pl.Torso.CFrame*CFrame.new(0,-1.5,-30)
  600.  
  601. coroutine.wrap(function()
  602.  
  603. for i=1,15 do wait()
  604.  
  605. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  606.  
  607. local msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',3,3,3)
  608.  
  609. sfx.CFrame=bom.CFrame
  610.  
  611. coroutine.wrap(function()
  612.  
  613. for i=1,10 do wait()
  614.  
  615. msf.Scale=msf.Scale-Vector3.new(.3,.3,.3)
  616.  
  617. end game.Debris:AddItem(sfx,.001) end)()
  618.  
  619. end end)()
  620.  
  621. TweenCFrame(bom,kaz.CFrame,10)
  622.  
  623. game.Debris:AddItem(bom,.00000000001)
  624.  
  625. local spil= Part(.25,3,.25,'Bright green',0,false,true,mo)
  626.  
  627. spm=Mesh(spil,1,3,.1,3)
  628.  
  629. spil.CFrame=bom.CFrame*CFrame.new(0,-1.5,0)
  630.  
  631. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  632.  
  633. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  634.  
  635. for i=1,10 do wait() spm.Scale=spm.Scale+Vector3.new(7.5,0,7.5) end
  636.  
  637. s12 = Instance.new("Sound",spil)s12.SoundId = "http://www.roblox.com/asset/?id=148008221"
  638.  
  639. s12:play()
  640.  
  641. for i,v in pairs(workspace:children()) do
  642.  
  643. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  644.  
  645. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  646.  
  647. if (v:findFirstChild("Torso").Position - spil.Position).magnitude < 15 and v.Name ~= pl.Name then
  648.  
  649. local kl= v:findFirstChild("Humanoid")
  650.  
  651. kl:TakeDamage(15)
  652.  
  653. coroutine.wrap(function()
  654.  
  655. for i=1,10 do wait(1.5)
  656.  
  657. kl:TakeDamage(8)
  658.  
  659. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,kl.Parent.Torso)
  660.  
  661. msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',1,1,1)
  662.  
  663. sfx.CFrame=kl.Parent.Torso.CFrame
  664.  
  665. coroutine.wrap(function()
  666.  
  667. for i=1,10 do wait()
  668.  
  669. sfx.CFrame=sfx.CFrame+Vector3.new(0,.3,0)
  670.  
  671. end game.Debris:AddItem(sfx,.0000000001)end)()
  672.  
  673. end end)() end end end end
  674.  
  675. for i=1,10 do wait(.25)
  676.  
  677. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  678.  
  679. msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',1,1,1)
  680.  
  681. sfx.CFrame=spil.CFrame*CFrame.new(math.random(-7.5,7.5),.5,math.random(-7.5,7.5))
  682.  
  683. coroutine.wrap(function()
  684.  
  685. for i=1,10 do wait()
  686.  
  687. sfx.CFrame=sfx.CFrame+Vector3.new(0,.1,0)
  688.  
  689. end game.Debris:AddItem(sfx,.0000000001)end)()end
  690.  
  691. for i=1,5 do wait()spil.Transparency=spil.Transparency+.2 end
  692.  
  693. game.Debris:AddItem(spil,.000000001)
  694.  
  695. end
  696.  
  697. function ice()
  698.  
  699. s4:play()
  700.  
  701. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright blue") end
  702.  
  703. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  704.  
  705. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  706.  
  707. for i=1,10 do wait(.05)
  708.  
  709. fxpa= Part(.3,.3,.3,'Bright blue',0.5,false,true,mo)
  710.  
  711. fxpa.CFrame= adpa.CFrame*CFrame.new(math.random(-100/math.random(100,150),100/math.random(100,150)),math.random(-100/math.random(100,150),100/math.random(100,150)),1)*CFrame.Angles(math.random(),math.random(),math.random())
  712.  
  713. game.Debris:AddItem(fxpa,.5) end
  714.  
  715. local icept= Part(.25,3,.25,'Bright blue',0.5,false,false,mo)
  716.  
  717. m=Mesh(icept,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  718.  
  719. wl= Weld(icept,adpa,0,2,0,0,0,0,mo)
  720.  
  721. local bm= Part(.25,3,.25,'Bright blue',0.5,false,false,mo)
  722.  
  723. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  724.  
  725. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  726.  
  727. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  728.  
  729. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  730.  
  731. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  732.  
  733. s5:play()
  734.  
  735. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) icept.Transparency=icept.Transparency+.1 end
  736.  
  737. game.Debris:AddItem(icept,.1)
  738.  
  739. game.Debris:AddItem(bm,.0000001)
  740.  
  741. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  742.  
  743. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  744.  
  745. for i=1,7 do wait(.1)
  746.  
  747. local bm= Part(1,1,1,'Bright blue',0.2,false,true,mo)
  748.  
  749. local bmm=Mesh(bm,'http://www.roblox.com/asset/?id=1778999',0,0,0)
  750.  
  751. local sfx = Instance.new("Sound",bm)sfx.SoundId = "http://www.roblox.com/asset/?id=32656754" sfx:play()
  752.  
  753. game.Debris:AddItem(sfx,.1)
  754.  
  755. bm.CFrame= pl.Torso.CFrame*CFrame.new(0,-1.5,-i*8)*CFrame.Angles(math.random(-50,50)/100,0,math.random(-50,50)/100)
  756.  
  757. for i,v in pairs(workspace:children()) do
  758.  
  759. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  760.  
  761. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  762.  
  763. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 10 and v.Name ~= pl.Name then
  764.  
  765. v.Humanoid:TakeDamage(15)
  766.  
  767. local cur= v.Torso
  768.  
  769. cur.Anchored=true
  770.  
  771. coroutine.wrap(function()
  772.  
  773. for i=1,4 do wait()
  774.  
  775. local new= Part(1,1,1,'Bright blue',0.2,false,true,mo)
  776.  
  777. local newm=Mesh(new,'http://www.roblox.com/asset/?id=1778999',1,3,1)
  778.  
  779. new.CFrame=cur.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(math.random(-100,100)/100,0,math.random(-100,100)/100)
  780.  
  781. game.Debris:AddItem(new,3)
  782.  
  783. end wait(3)
  784.  
  785. local sfx = Instance.new("Sound",cur)sfx.SoundId = "http://www.roblox.com/Asset?ID=87015121" sfx:play()
  786.  
  787. game.Debris:AddItem(sfx,.1)
  788.  
  789. cur.Anchored=false end)() end end end end
  790.  
  791. coroutine.wrap(function()for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(.5,1,.5) end
  792.  
  793. wait(1)
  794.  
  795. for i= 1,8 do wait()
  796.  
  797. bm.Transparency=bm.Transparency+.1
  798.  
  799. end
  800.  
  801. game.Debris:AddItem(bm,.1)
  802.  
  803. end)()
  804.  
  805. end
  806.  
  807. wait(.2)
  808.  
  809. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  810.  
  811. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  812.  
  813. end
  814.  
  815. function light()
  816.  
  817. s7:play()
  818.  
  819. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright yellow") end
  820.  
  821. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  822.  
  823. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  824.  
  825. for i=1,10 do wait(.05)
  826.  
  827. fxpa= Part(.3,.3,.3,'Bright yellow',0.5,false,true,mo)
  828.  
  829. fxpa.CFrame= adpa.CFrame*CFrame.new(math.random(-100/math.random(100,150),100/math.random(100,150)),math.random(-100/math.random(100,150),100/math.random(100,150)),1)*CFrame.Angles(math.random(),math.random(),math.random())
  830.  
  831. game.Debris:AddItem(fxpa,.5) end
  832.  
  833. local lightpt= Part(.25,3,.25,'Bright yellow',0.5,false,false,mo)
  834.  
  835. m=Mesh(lightpt,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  836.  
  837. wl= Weld(lightpt,adpa,0,2,0,0,0,0,mo)
  838.  
  839. local bm= Part(.25,3,.25,'Bright yellow',0.5,false,false,mo)
  840.  
  841. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  842.  
  843. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  844.  
  845. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  846.  
  847. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  848.  
  849. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  850.  
  851. s8:play()
  852.  
  853. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) lightpt.Transparency=lightpt.Transparency+.1 end
  854.  
  855. game.Debris:AddItem(lightpt,.1)
  856.  
  857. game.Debris:AddItem(bm,.0000001)
  858.  
  859. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  860.  
  861. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  862.  
  863. wait(.125)
  864.  
  865. local angl= Part(0,0,0,'Bright yellow',1,false,true,mo)
  866.  
  867. angl.CFrame=pl.Torso.CFrame*CFrame.new(0,0,-25)
  868.  
  869. for i=1,10 do wait()Lightning(adpa.Position,angl.Position,math.random(5,10),math.random(-2.5,2.5),"Bright yellow",0.05,0.35)end
  870.  
  871. local bm= Part(.25,3,.25,'Bright yellow',0.8,false,true,mo)
  872.  
  873. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=52603336',0,0,0)
  874.  
  875. bm.CFrame=angl.CFrame
  876.  
  877. local bm2= Part(1,1,1,'Bright yellow',0,false,true,mo)
  878.  
  879. bmm2=Mesh(bm2,3,0,0,0)
  880.  
  881. bm2.CFrame=angl.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  882.  
  883. game.Debris:AddItem(angl,.1)
  884.  
  885. s9:Play()
  886.  
  887. for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(2.5,2.5,2.5)
  888.  
  889. bmm2.Scale=bmm2.Scale+Vector3.new(1.5,1.5,1.5)
  890.  
  891. bm2.Transparency=bm2.Transparency+.09
  892.  
  893. end
  894.  
  895. for i,v in pairs(workspace:children()) do
  896.  
  897. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  898.  
  899. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  900.  
  901. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 20 and v.Name ~= pl.Name then
  902.  
  903. local curnt= v
  904.  
  905. v.Humanoid:TakeDamage(35)
  906.  
  907. local x= curnt.Head.BrickColor
  908.  
  909. local y= curnt.Torso.BrickColor
  910.  
  911. local z= curnt['Left Arm'].BrickColor
  912.  
  913. local f= curnt['Right Arm'].BrickColor
  914.  
  915. local n= curnt['Left Leg'].BrickColor
  916.  
  917. local g= curnt['Right Leg'].BrickColor
  918.  
  919. coroutine.wrap(function()
  920.  
  921. for _,v in pairs(curnt:GetChildren()) do if v.ClassName=="Part" then v.BrickColor=BrickColor.new("Really black") end end
  922.  
  923. sm=Instance.new("Smoke",curnt.Torso)
  924.  
  925. game.Debris:AddItem(sm,2)
  926.  
  927. wait(3)
  928.  
  929. curnt.Head.BrickColor=x
  930.  
  931. curnt.Torso.BrickColor=y
  932.  
  933. curnt['Left Arm'].BrickColor=z
  934.  
  935. curnt['Right Arm'].BrickColor=f
  936.  
  937. curnt['Left Leg'].BrickColor=n
  938.  
  939. curnt['Right Leg'].BrickColor=g
  940.  
  941. end)() end end end end
  942.  
  943. game.Debris:AddItem(bm,.00000000000000000000000001)
  944.  
  945. game.Debris:AddItem(bm2,.00000000000000000000000001)
  946.  
  947. wait(.2)
  948.  
  949. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  950.  
  951. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  952.  
  953. end
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960. function onKeyDown(key)
  961.  
  962. key = key:lower()
  963.  
  964. if key == "e" then
  965.  
  966. if db==true then return end
  967.  
  968. db=true
  969.  
  970. spin()
  971.  
  972. db=false
  973.  
  974. end end
  975.  
  976.  
  977. function onClicked()
  978.  
  979. if db==true then return end
  980.  
  981. db=true
  982.  
  983. if curnt=="fire" then flame()end
  984.  
  985. if curnt=="posion" then pos()end
  986.  
  987. if curnt=="ice" then ice()end
  988.  
  989. if curnt=="light" then light()end
  990.  
  991. db=false
  992.  
  993. end
  994.  
  995.  
  996. tol.Selected:connect(function(mouse)
  997.  
  998. mouse.KeyDown:connect(onKeyDown)
  999.  
  1000. mouse.Button1Down:connect(function() onClicked(mouse) end)
  1001.  
  1002. rshr = Instance.new("Weld",pl.Torso)
  1003.  
  1004. rshr.Part0 = pl.Torso;rshr.Part1 = pl['Right Arm']
  1005.  
  1006. rshr.C1 = CFrame.new(-1.5,0,0)
  1007.  
  1008. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  1009.  
  1010. lshl = Instance.new("Weld",pl.Torso)
  1011.  
  1012. lshl.Part0 = pl.Torso;lshl.Part1 = pl['Left Arm']
  1013.  
  1014. lshl.C1 = CFrame.new(1.5,0,0)
  1015.  
  1016. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  1017.  
  1018. owld.Part1 = pl['Right Arm']
  1019.  
  1020. owld.C1 = CFrame.new(0,-1.1,0.2)*CFrame.Angles(math.pi/2,math.pi/1,0)
  1021.  
  1022. cfoff=false
  1023.  
  1024. end)
  1025.  
  1026. tol.Deselected:connect(function(mouse)
  1027.  
  1028. cfoff=true
  1029.  
  1030. rshr:remove()
  1031.  
  1032. lshl:remove()
  1033.  
  1034. end)
  1035.  
  1036.  
  1037.  
  1038. game:service'RunService'.RenderStepped:connect(function()
  1039.  
  1040. if cfoff==true then return end
  1041.  
  1042. rshr.C1 = Lerp.CFrame(rshr.C1,LerpTo,0.2)
  1043.  
  1044. lshl.C1 = Lerp.CFrame(lshl.C1,LerpTo2,0.2)
  1045.  
  1046. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement