Advertisement
BINO2002

Untitled

Jan 12th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.86 KB | None | 0 0
  1.  
  2. lp=game.Players.BINO2002
  3. pl=lp.Character
  4. tol=Instance.new("HopperBin",lp.Backpack)
  5. tol.Name="Shock Lance"--jarredbcv
  6. function getAngles(cf)
  7. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  8. return math.atan2(-m12,m22),math.asin(m02),math.atan2(-m01,m00)end
  9. cfoff=true
  10. curnt="fire"
  11. db=false
  12. le=2
  13. rng={}
  14. Lerp = {Number = function(C1,C2,inc)
  15. return C1 + (C2 - C1) * inc
  16. end;CFrame = function(C1,C2,inc)
  17. local x1,y1,z1 = getAngles(C1)
  18. local x2,y2,z2 = getAngles(C2)
  19. 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))
  20. end;}
  21. Part = function(x,y,z,color,tr,cc,an,parent)
  22. local p = Instance.new('Part',parent or Weapon)
  23. p.formFactor = 'Custom'
  24. p.Size = Vector3.new(x,y,z)
  25. p.BrickColor = BrickColor.new(color)
  26. p.CanCollide = cc
  27. p.Transparency = tr
  28. p.Anchored = an
  29. p.TopSurface,p.BottomSurface = 0,0
  30. return p end
  31. fir = function(n1,n2,n3,n4,n5,n6,hs,fs,parent)
  32. local fi = Instance.new('Fire',parent or Weapon)
  33. fi.Color=Color3.new(n1,n2,n3)
  34. fi.Heat=hs
  35. fi.SecondaryColor=Color3.new(n4,n5,n6)
  36. fi.Size=fs
  37. return fi end
  38. wPart = function(x,y,z,color,tr,cc,an,parent)
  39. local wp = Instance.new('WedgePart',parent or Weapon)
  40. wp.formFactor = 'Custom'
  41. wp.Size = Vector3.new(x,y,z)
  42. wp.BrickColor = BrickColor.new(color)
  43. wp.CanCollide = cc
  44. wp.Transparency = tr
  45. wp.Anchored = an
  46. wp.TopSurface,wp.BottomSurface = 0,0
  47. return wp end
  48. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  49. p0.Position = p1.Position
  50. local w = Instance.new('Motor',par or p0)
  51. w.Part0 = p0
  52. w.Part1 = p1
  53. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  54. return w end
  55. Mesh = function(par,num,x,y,z)
  56. local msh = _
  57. if num == 1 then msh = Instance.new("CylinderMesh",par)
  58. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  59. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  60. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  61. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  62. end msh.Scale = Vector3.new(x,y,z)
  63. return msh end
  64. function TweenCFrame(part,cframe,q)
  65. local c0 = part.CFrame
  66. for i = -90,90,q do
  67. local r = ((math.sin(math.rad(i))+1)/2)
  68. part.CFrame = CFrame.new(c0.p:lerp(cframe.p,r))
  69. wait()end end
  70. cube = function(pos,colr,hig,ra)
  71. for i=1,6 do local ascube = Part(1,1,1,colr,0,false,true,mo)
  72. ascube.CFrame= pos
  73. coroutine.wrap(function()
  74. TweenCFrame(ascube,pos+Vector3.new(math.random(-ra,ra),math.random(-hig,hig),math.random(-ra,ra)),10)
  75. ascube.Anchored=false
  76. game.Debris:AddItem(ascube,.5)
  77. end)()end end
  78. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency) -- messy and bad
  79. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  80. for i=1,Times do
  81. 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)
  82. 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)])
  83. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  84. if Times == i then
  85. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  86. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  87. else
  88. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  89. end
  90. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  91. end
  92. end
  93. s1 = Instance.new("Sound",pl.Torso)s1.SoundId = "http://roblox.com/asset/?id=28445431"s1.Volume=100 s1.Pitch=20
  94. s2 = Instance.new("Sound",pl.Torso)s2.SoundId = "http://roblox.com/asset/?id=131382140"s2.Pitch=10
  95. s3 = Instance.new("Sound",pl.Torso)s3.SoundId = "http://www.roblox.com/asset/?id=130865054"s3.Pitch=1.5
  96. s4 = Instance.new("Sound",pl.Torso)s4.SoundId = "http://www.roblox.com/asset/?id=25605551"
  97. s5 = Instance.new("Sound",pl.Torso)s5.SoundId = "http://www.roblox.com/asset/?id=32656713"
  98. s6 = Instance.new("Sound",pl.Torso)s6.SoundId = "http://www.roblox.com/asset/?id=32656754"
  99. s7 = Instance.new("Sound",pl.Torso)s7.SoundId = "http://www.roblox.com/asset/?id=10756104"s7.Pitch=1.25
  100. s8 = Instance.new("Sound",pl.Torso)s8.SoundId = "http://www.roblox.com/asset/?id=10756118"
  101. s9 = Instance.new("Sound",pl.Torso)s9.SoundId = "http://www.roblox.com/asset/?id=142070127"
  102. s10 = Instance.new("Sound",pl.Torso)s10.SoundId = "http://www.roblox.com/asset/?id=102546080"
  103. s11 = Instance.new("Sound",pl.Torso)s11.SoundId = "http://www.roblox.com/asset/?id=30583931"s11.Pitch=.75
  104. mo=Instance.new("Model",pl)
  105. orign= Part(.23,4,.23,'',0,false,false,mo)
  106. me=Mesh(orign,1,1,1,1)
  107. owld= Weld(orign,pl.Torso,0,0,.5,0,math.pi/1,math.pi/1.25,mo)
  108. adpa= Part(.1,2,.1,'Really black',0,false,false,mo)
  109. me=Mesh(adpa,1,1,1,1)
  110. wld= Weld(adpa,orign,0,-3,0,math.pi/1,0,0,mo)
  111. for i=1,7 do le=le+.2
  112. rpa= Part(.1,2,.1,'Sand red',0,false,false,mo)
  113. me=Mesh(rpa,'http://www.roblox.com/asset/?id=3270017',.5,.5,.5)
  114. wld= Weld(rpa,orign,0,-le,0,math.pi/2,0,0,mo)
  115. table.insert(rng,rpa)
  116. end for i=1,5 do
  117. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  118. me=Mesh(pa,3,.1,.9,.1)
  119. wld= Weld(pa,orign,0,-4,-.1,0,0,i/.2,mo)
  120. end for i=1,5 do
  121. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  122. me=Mesh(pa,3,.1,.9,.1)
  123. wld= Weld(pa,orign,0,-4,.1,0,0,i/.2,mo)end
  124. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  125. me=Mesh(pa,1,.7,.1,.7)
  126. wld= Weld(pa,orign,0,-4,-.1,math.pi/2,0,0,mo)
  127. pa= Part(1,1,1,'Dark stone grey',0,false,false,mo)
  128. me=Mesh(pa,1,.7,.1,.7)
  129. wld= Weld(pa,orign,0,-4,.1,math.pi/2,0,0,mo)
  130. pa= Part(1,1,1,'',0,false,false,mo)
  131. me=Mesh(pa,'http://www.roblox.com/asset/?id=77353021',.7,.1,.7)
  132. wld= Weld(pa,orign,.2,-4,0,math.pi/2,0,0,mo)
  133. pa= Part(1,1,1,'',0,false,false,mo)
  134. me=Mesh(pa,'http://www.roblox.com/asset/?id=77353021',.7,.1,.7)
  135. wld= Weld(pa,orign,-.2,-4,0,math.pi/2,0,math.pi/1,mo)
  136. pa= Part(.231,.75,.231,'Really black',0,false,false,mo)
  137. me=Mesh(pa,1,1,1,1)
  138. wld= Weld(pa,orign,0,0,0,0,0,0,mo)
  139. pa= Part(.5,.75,.5,'Really black',0,false,false,mo)
  140. me=Mesh(pa,1,1,1,1)
  141. wld= Weld(pa,orign,0,0,-.2,0,0,0,mo)
  142. pa= Part(.1,.7,.1,'Lime green',0,false,false,mo)
  143. me=Mesh(pa,1,1,1,1)
  144. wld= Weld(pa,orign,0,-0.05,-.3,0,0,0,mo)
  145. pa= Part(.1,2,.1,'Dark stone grey',0,false,false,mo)
  146. me=Mesh(pa,1,.7,.7,.7)
  147. wld= Weld(pa,orign,0,-1,-.3,0,0,0,mo)
  148. pa= Part(.1,.6,.1,'Dark stone grey',0,false,false,mo)
  149. me=Mesh(pa,1,.7,.7,.7)
  150. wld= Weld(pa,orign,0,-1.8,-.1837,-math.pi/5,0,0,mo)
  151. pa= Part(.5,.1,.5,'Dark stone grey',0,false,false,mo)
  152. me=Mesh(pa,1,.7,.7,.7)
  153. wld= Weld(pa,orign,0,2,0,0,0,0,mo)
  154. pa= Part(.4,.1,.4,'Dark stone grey',0,false,false,mo)
  155. me=Mesh(pa,1,.7,.7,.7)
  156. wld= Weld(pa,orign,0,2.1,0,0,0,0,mo)
  157. pa= Part(.3,.1,.3,'Dark stone grey',0,false,false,mo)
  158. me=Mesh(pa,1,.7,.7,.7)
  159. wld= Weld(pa,orign,0,2.2,0,0,0,0,mo)
  160. -- arm
  161. mpa= Part(1.01,1.01,1.01,'Really black',0,false,false,mo) mpa:BreakJoints()
  162. mwl= Weld(mpa,pl['Right Arm'],0,0,0,0,0,0,mo)
  163. pa= Part(1.1,1.1,1.1,'Dark stone grey',0,false,false,mo)
  164. m=Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.3,.15,.3)
  165. wl= Weld(pa,mpa,0,.3,-.5,0,0,0,mo)
  166. pa= Part(1.1,1.1,1.1,'Dark stone grey',0,false,false,mo)
  167. m=Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.3,.15,.3)
  168. wl= Weld(pa,mpa,0,-.3,-.5,math.pi/1,0,0,mo)
  169. --[[pa= Part(1.1,1.1,1.1,'White',0,false,false,mo) -- UNWANTED RMDX PART
  170. m=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.75,.75,.75)
  171. wl= Weld(pa,mpa,.5,0,0,0,math.pi/2,0,mo)
  172. spa= Part(1.1,1.1,1.1,'Royal purple',0,false,false,mo)
  173. spm=Mesh(spa,'http://www.roblox.com/asset/?id=47260990',.75,.75,.75)
  174. spwl= Weld(spa,mpa,.5,0,0,0,math.pi/2,0,mo)]]
  175. pa= Part(1.1,1.1,1.1,'White',0,false,false,mo)
  176. m=Mesh(pa,'http://www.roblox.com/Asset/?id=10207677',.18,.01,.18)
  177. wl= Weld(pa,mpa,0,0,.4088,math.pi/2,0,0,mo)
  178. rot= Part(1,1,1,'',0,false,false,mo)
  179. m=Mesh(rot,1,.4,.35,.4)
  180. rotwl= Weld(rot,mpa,0,0,-.5,0,0,0,mo)
  181. el1= Part(1,1,1,'Bright red',0,false,false,mo)
  182. m=Mesh(el1,3,.11,.13,.11)
  183. wl= Weld(el1,rot,0,0,-.16,0,0,0,mo)
  184. el2= Part(1,1,1,'Bright green',0,false,false,mo)
  185. m=Mesh(el2,3,.11,.13,.11)
  186. wl= Weld(el2,rot,-.16,0,0,math.pi/2,0,0,mo)
  187. el3= Part(1,1,1,'Bright yellow',0,false,false,mo)
  188. m=Mesh(el3,3,.11,.13,.11)
  189. wl= Weld(el3,rot,.16,0,0,math.pi/2,0,0,mo)
  190. el4= Part(1,1,1,'Bright blue',0,false,false,mo)
  191. m=Mesh(el4,3,.11,.13,.11)
  192. wl= Weld(el4,rot,0,0,.16,0,0,0,mo)
  193. function spin()
  194. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-50),0) * CFrame.new(0.15,-0.2,0)
  195. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-90),math.rad(75),0) * CFrame.new(.2,-0.5,-1)
  196. wait(.25)
  197. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-70),math.rad(75),0) * CFrame.new(.2,-0.5,-1)
  198. if curnt=="fire" then
  199. curnt="posion"
  200. for i = 0,1,0.1 do wait()
  201. s1:Play()
  202. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  203. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  204. 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
  205. if curnt=="posion" then
  206. curnt="ice"
  207. for i = 0,1,0.1 do wait()
  208. s1:Play()
  209. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  210. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(-.2,-0.1,-1)
  211. 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
  212. if curnt=="ice" then
  213. curnt="light"
  214. for i = 0,1,0.1 do wait()
  215. s1:Play()
  216. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  217. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  218. 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
  219. if curnt=="light" then
  220. curnt="fire"
  221. for i = 0,1,0.1 do wait()
  222. s1:Play()
  223. rotwl.C1=rotwl.C1 *CFrame.Angles(0,i*2-0.0005,0)
  224. end LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  225. 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
  226. end
  227. function flame()
  228. s2:Play()
  229. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright red") end
  230. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  231. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  232. for i=1,10 do wait(.05)
  233. fxpa= Part(.3,.3,.3,'Bright red',0.5,false,true,mo)
  234. 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())
  235. game.Debris:AddItem(fxpa,.5) end
  236. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  237. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  238. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  239. local firept= Part(.25,3,.25,'Bright red',0.5,false,false,mo)
  240. m=Mesh(firept,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  241. wl= Weld(firept,adpa,0,2,0,0,0,0,mo)
  242. local bm= Part(.25,3,.25,'Bright red',0.5,false,false,mo)
  243. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  244. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  245. s3:play()
  246. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) firept.Transparency=firept.Transparency+.1 end
  247. game.Debris:AddItem(firepart,.1)
  248. game.Debris:AddItem(bm,.0000001)
  249. wait(.1)
  250. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  251. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  252. for i=1,5 do wait(.1)
  253. local bm= Part(1,1,1,'Bright red',0.5,false,true,mo)
  254. local bmm=Mesh(bm,3,0,0,0)
  255. local sfx = Instance.new("Sound",bm)sfx.SoundId = "http://www.roblox.com/asset/?id=32791565" sfx:play()
  256. game.Debris:AddItem(sfx,.1)
  257. bm.CFrame= pl.Torso.CFrame*CFrame.new(0,0,-5-i*8)*CFrame.Angles(math.random(),math.random(),math.random())
  258. for i,v in pairs(workspace:children()) do
  259. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  260. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  261. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 10 and v.Name ~= pl.Name then
  262. v:findFirstChild("Humanoid"):TakeDamage(20) local f=Instance.new("Fire",v.Torso)game.Debris:AddItem(f,7)
  263. end end end end
  264. cube(bm.CFrame,'Really red',6,6)
  265. coroutine.wrap(function()
  266. for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) end game.Debris:AddItem(bm,.1) end)()
  267. end
  268. wait(.2)
  269. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  270. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  271. end
  272. function pos()
  273. s10:play()
  274. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright green") end
  275. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  276. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  277. for i=1,10 do wait(.05)
  278. fxpa= Part(.3,.3,.3,'Bright green',0.5,false,true,mo)
  279. 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())
  280. game.Debris:AddItem(fxpa,.5) end
  281. local erpt= Part(.25,3,.25,'Bright green',0.5,false,false,mo)
  282. m=Mesh(erpt,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  283. wl= Weld(erpt,adpa,0,2,0,0,0,0,mo)
  284. local bm= Part(.25,3,.25,'Bright green',0.5,false,false,mo)
  285. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  286. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  287. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  288. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  289. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  290. s11:play()
  291. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) erpt.Transparency=erpt.Transparency+.1 end
  292. game.Debris:AddItem(erpt,.1)
  293. game.Debris:AddItem(bm,.0000001)
  294. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  295. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  296. wait(.125)
  297. local kaz = Part(1,1,1,'Bright green',1,false,true,mo)
  298. local bom= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  299. m=Mesh(bom,'http://www.roblox.com/asset/?id=52603336',3,3,3)
  300. bom.CFrame=adpa.CFrame
  301. kaz.CFrame=pl.Torso.CFrame*CFrame.new(0,-1.5,-30)
  302. coroutine.wrap(function()
  303. for i=1,15 do wait()
  304. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  305. local msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',3,3,3)
  306. sfx.CFrame=bom.CFrame
  307. coroutine.wrap(function()
  308. for i=1,10 do wait()
  309. msf.Scale=msf.Scale-Vector3.new(.3,.3,.3)
  310. end game.Debris:AddItem(sfx,.001) end)()
  311. end end)()
  312. TweenCFrame(bom,kaz.CFrame,10)
  313. game.Debris:AddItem(bom,.00000000001)
  314. local spil= Part(.25,3,.25,'Bright green',0,false,true,mo)
  315. spm=Mesh(spil,1,3,.1,3)
  316. spil.CFrame=bom.CFrame*CFrame.new(0,-1.5,0)
  317. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  318. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  319. for i=1,10 do wait() spm.Scale=spm.Scale+Vector3.new(7.5,0,7.5) end
  320. s12 = Instance.new("Sound",spil)s12.SoundId = "http://www.roblox.com/asset/?id=148008221"
  321. s12:play()
  322. for i,v in pairs(workspace:children()) do
  323. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  324. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  325. if (v:findFirstChild("Torso").Position - spil.Position).magnitude < 15 and v.Name ~= pl.Name then
  326. local kl= v:findFirstChild("Humanoid")
  327. kl:TakeDamage(15)
  328. coroutine.wrap(function()
  329. for i=1,10 do wait(1.5)
  330. kl:TakeDamage(8)
  331. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,kl.Parent.Torso)
  332. msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',1,1,1)
  333. sfx.CFrame=kl.Parent.Torso.CFrame
  334. coroutine.wrap(function()
  335. for i=1,10 do wait()
  336. sfx.CFrame=sfx.CFrame+Vector3.new(0,.3,0)
  337. end game.Debris:AddItem(sfx,.0000000001)end)()
  338. end end)() end end end end
  339. for i=1,10 do wait(.25)
  340. local sfx= Part(.25,3,.25,'Bright green',0.5,false,true,mo)
  341. msf=Mesh(sfx,'http://www.roblox.com/asset/?id=52603336',1,1,1)
  342. sfx.CFrame=spil.CFrame*CFrame.new(math.random(-7.5,7.5),.5,math.random(-7.5,7.5))
  343. coroutine.wrap(function()
  344. for i=1,10 do wait()
  345. sfx.CFrame=sfx.CFrame+Vector3.new(0,.1,0)
  346. end game.Debris:AddItem(sfx,.0000000001)end)()end
  347. for i=1,5 do wait()spil.Transparency=spil.Transparency+.2 end
  348. game.Debris:AddItem(spil,.000000001)
  349. end
  350. function ice()
  351. s4:play()
  352. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright blue") end
  353. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  354. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  355. for i=1,10 do wait(.05)
  356. fxpa= Part(.3,.3,.3,'Bright blue',0.5,false,true,mo)
  357. 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())
  358. game.Debris:AddItem(fxpa,.5) end
  359. local icept= Part(.25,3,.25,'Bright blue',0.5,false,false,mo)
  360. m=Mesh(icept,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  361. wl= Weld(icept,adpa,0,2,0,0,0,0,mo)
  362. local bm= Part(.25,3,.25,'Bright blue',0.5,false,false,mo)
  363. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  364. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  365. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  366. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  367. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  368. s5:play()
  369. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) icept.Transparency=icept.Transparency+.1 end
  370. game.Debris:AddItem(icept,.1)
  371. game.Debris:AddItem(bm,.0000001)
  372. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  373. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  374. for i=1,7 do wait(.1)
  375. local bm= Part(1,1,1,'Bright blue',0.2,false,true,mo)
  376. local bmm=Mesh(bm,'http://www.roblox.com/asset/?id=1778999',0,0,0)
  377. local sfx = Instance.new("Sound",bm)sfx.SoundId = "http://www.roblox.com/asset/?id=32656754" sfx:play()
  378. game.Debris:AddItem(sfx,.1)
  379. 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)
  380. for i,v in pairs(workspace:children()) do
  381. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  382. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  383. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 10 and v.Name ~= pl.Name then
  384. v.Humanoid:TakeDamage(15)
  385. local cur= v.Torso
  386. cur.Anchored=true
  387. coroutine.wrap(function()
  388. for i=1,4 do wait()
  389. local new= Part(1,1,1,'Bright blue',0.2,false,true,mo)
  390. local newm=Mesh(new,'http://www.roblox.com/asset/?id=1778999',1,3,1)
  391. new.CFrame=cur.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(math.random(-100,100)/100,0,math.random(-100,100)/100)
  392. game.Debris:AddItem(new,3)
  393. end wait(3)
  394. local sfx = Instance.new("Sound",cur)sfx.SoundId = "http://www.roblox.com/Asset?ID=87015121" sfx:play()
  395. game.Debris:AddItem(sfx,.1)
  396. cur.Anchored=false end)() end end end end
  397. coroutine.wrap(function()for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(.5,1,.5) end
  398. wait(1)
  399. for i= 1,8 do wait()
  400. bm.Transparency=bm.Transparency+.1
  401. end
  402. game.Debris:AddItem(bm,.1)
  403. end)()
  404. end
  405. wait(.2)
  406. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  407. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  408. end
  409. function light()
  410. s7:play()
  411. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Bright yellow") end
  412. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(30),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  413. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(65),0) * CFrame.new(.2,0,-1)
  414. for i=1,10 do wait(.05)
  415. fxpa= Part(.3,.3,.3,'Bright yellow',0.5,false,true,mo)
  416. 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())
  417. game.Debris:AddItem(fxpa,.5) end
  418. local lightpt= Part(.25,3,.25,'Bright yellow',0.5,false,false,mo)
  419. m=Mesh(lightpt,'http://www.roblox.com/asset/?id=1323306',.2,2,.2)
  420. wl= Weld(lightpt,adpa,0,2,0,0,0,0,mo)
  421. local bm= Part(.25,3,.25,'Bright yellow',0.5,false,false,mo)
  422. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=3270017',0,0,0)
  423. wl= Weld(bm,adpa,0,1,0,math.pi/2,0,0,mo)
  424. for i,v in pairs(rng)do v.BrickColor=BrickColor.new("Sand red") end
  425. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),-math.rad(30),math.rad(20)) * CFrame.new(.2,-0.5,0)
  426. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(-50),math.rad(65),0) * CFrame.new(.2,0,-1)
  427. s8:play()
  428. for i=1,5 do wait()bmm.Scale=bmm.Scale+Vector3.new(1,1,1) lightpt.Transparency=lightpt.Transparency+.1 end
  429. game.Debris:AddItem(lightpt,.1)
  430. game.Debris:AddItem(bm,.0000001)
  431. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  432. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  433. wait(.125)
  434. local angl= Part(0,0,0,'Bright yellow',1,false,true,mo)
  435. angl.CFrame=pl.Torso.CFrame*CFrame.new(0,0,-25)
  436. 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
  437. local bm= Part(.25,3,.25,'Bright yellow',0.8,false,true,mo)
  438. bmm=Mesh(bm,'http://www.roblox.com/asset/?id=52603336',0,0,0)
  439. bm.CFrame=angl.CFrame
  440. local bm2= Part(1,1,1,'Bright yellow',0,false,true,mo)
  441. bmm2=Mesh(bm2,3,0,0,0)
  442. bm2.CFrame=angl.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  443. game.Debris:AddItem(angl,.1)
  444. s9:Play()
  445. for i=1,10 do wait()bmm.Scale=bmm.Scale+Vector3.new(2.5,2.5,2.5)
  446. bmm2.Scale=bmm2.Scale+Vector3.new(1.5,1.5,1.5)
  447. bm2.Transparency=bm2.Transparency+.09
  448. end
  449. for i,v in pairs(workspace:children()) do
  450. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  451. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  452. if (v:findFirstChild("Torso").Position - bm.Position).magnitude < 20 and v.Name ~= pl.Name then
  453. local curnt= v
  454. v.Humanoid:TakeDamage(35)
  455. local x= curnt.Head.BrickColor
  456. local y= curnt.Torso.BrickColor
  457. local z= curnt['Left Arm'].BrickColor
  458. local f= curnt['Right Arm'].BrickColor
  459. local n= curnt['Left Leg'].BrickColor
  460. local g= curnt['Right Leg'].BrickColor
  461. coroutine.wrap(function()
  462. for _,v in pairs(curnt:GetChildren()) do if v.ClassName=="Part" then v.BrickColor=BrickColor.new("Really black") end end
  463. sm=Instance.new("Smoke",curnt.Torso)
  464. game.Debris:AddItem(sm,2)
  465. wait(3)
  466. curnt.Head.BrickColor=x
  467. curnt.Torso.BrickColor=y
  468. curnt['Left Arm'].BrickColor=z
  469. curnt['Right Arm'].BrickColor=f
  470. curnt['Left Leg'].BrickColor=n
  471. curnt['Right Leg'].BrickColor=g
  472. end)() end end end end
  473. game.Debris:AddItem(bm,.00000000000000000000000001)
  474. game.Debris:AddItem(bm2,.00000000000000000000000001)
  475. wait(.2)
  476. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  477. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  478. end
  479.  
  480.  
  481.  
  482.  
  483.  
  484. function onKeyDown(key)
  485. key = key:lower()
  486. if key == "e" then
  487. if db==true then return end
  488. db=true
  489. spin()
  490. db=false
  491. end end
  492.  
  493. function onClicked()
  494. if db==true then return end
  495. db=true
  496. if curnt=="fire" then flame()end
  497. if curnt=="posion" then pos()end
  498. if curnt=="ice" then ice()end
  499. if curnt=="light" then light()end
  500. db=false
  501. end
  502.  
  503. tol.Selected:connect(function(mouse)
  504. mouse.KeyDown:connect(onKeyDown)
  505. mouse.Button1Down:connect(function() onClicked(mouse) end)
  506. rshr = Instance.new("Weld",pl.Torso)
  507. rshr.Part0 = pl.Torso;rshr.Part1 = pl['Right Arm']
  508. rshr.C1 = CFrame.new(-1.5,0,0)
  509. LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(-60),math.rad(-30),0) * CFrame.new(0.15,-0.2,0)
  510. lshl = Instance.new("Weld",pl.Torso)
  511. lshl.Part0 = pl.Torso;lshl.Part1 = pl['Left Arm']
  512. lshl.C1 = CFrame.new(1.5,0,0)
  513. LerpTo2 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(-40),math.rad(30),0) * CFrame.new(.2,-0.1,-1)
  514. owld.Part1 = pl['Right Arm']
  515. owld.C1 = CFrame.new(0,-1.1,0.2)*CFrame.Angles(math.pi/2,math.pi/1,0)
  516. cfoff=false
  517. end)
  518. tol.Deselected:connect(function(mouse)
  519. cfoff=true
  520. rshr:remove()
  521. lshl:remove()
  522. end)
  523.  
  524.  
  525. game:service'RunService'.RenderStepped:connect(function()
  526. if cfoff==true then return end
  527. rshr.C1 = Lerp.CFrame(rshr.C1,LerpTo,0.2)
  528. lshl.C1 = Lerp.CFrame(lshl.C1,LerpTo2,0.2)
  529. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement