Advertisement
Guest User

Untitled

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