mathmasterphil

RopeHeli

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