Advertisement
memberhero

ClockWork Staff Thingy

Jan 25th, 2018
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.76 KB | None | 0 0
  1. wait(.2)
  2. lp=game.Players.LocalPlayer
  3. pl=lp.Character
  4. tor=pl.Torso
  5. mouse=lp:GetMouse()
  6.  
  7. rw2=tor['Right Hip']
  8. lw2=tor['Left Hip']
  9.  
  10.  
  11. mo=Instance.new("Model",pl)
  12.  
  13. dednum=math.huge
  14. pi=math.pi
  15. Key={}
  16. sec=5
  17. cleanup=sec*10
  18. a=false
  19. deb=false
  20. hitdeb=false
  21. isblocking=false
  22. swing=1
  23. equi=false
  24. smode='knife'
  25. rad=math.rad
  26. ca=CFrame.Angles
  27. cf=CFrame.new
  28. skull=30
  29. bg = Instance.new("BodyGyro")
  30. bg.P = 20e+003
  31. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  32. descro=pl
  33.  
  34. lwc1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  35. rwc1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  36.  
  37. Part = function(x,y,z,color,tr,cc,an,parent)
  38. local p = Instance.new('Part',parent or Weapon)
  39. p.formFactor = 'Custom'
  40. p.Size = Vector3.new(x,y,z)
  41. p.BrickColor = BrickColor.new(color)
  42. p.CanCollide = cc
  43. p.Transparency = tr
  44. p.Anchored = an
  45. p.TopSurface,p.BottomSurface = 0,0
  46. p.Locked=true
  47. p:BreakJoints()
  48. return p
  49. end
  50.  
  51. so = function(id,par,lo,pi,tm)
  52. local s = Instance.new("Sound",par)
  53. s.Looped=lo
  54. s.Pitch=pi
  55. s.SoundId = "http://roblox.com/asset/?id="..id
  56. s:play()
  57. s.Volume=.1
  58. game.Debris:AddItem(s,tm)
  59. return s
  60. end
  61.  
  62. so2 = function(id,par,lo,pi,tm)
  63. s = Instance.new("Sound",par)
  64. s.Looped=lo
  65. s.Pitch=pi
  66. s.SoundId = id
  67. s:play()
  68. s.Volume=.1
  69. game.Debris:AddItem(s,tm)
  70. end
  71.  
  72. wPart = function(x,y,z,color,tr,cc,an,parent)
  73. local wp = Instance.new('WedgePart',parent or Weapon)
  74. wp.formFactor = 'Custom'
  75. wp.Size = Vector3.new(x,y,z)
  76. wp.BrickColor = BrickColor.new(color)
  77. wp.CanCollide = cc
  78. wp.Transparency = tr
  79. wp.Locked=true
  80. wp.Anchored = an
  81. wp.TopSurface,wp.BottomSurface = 0,0
  82. wp:BreakJoints()
  83. return wp
  84. end
  85.  
  86. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  87. local w = Instance.new('Motor',par or p0)
  88. w.Part0 = p0
  89. w.Part1 = p1
  90. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  91. return w
  92. end
  93.  
  94. Mesh = function(par,num,x,y,z)
  95. local msh = nil
  96. if num == 1 then
  97. msh = Instance.new("CylinderMesh",par)
  98. elseif num == 2 then
  99. msh = Instance.new("SpecialMesh",par)
  100. msh.MeshType = 3
  101. elseif num == 3 then
  102. msh = Instance.new("BlockMesh",par)
  103. elseif num == 4 then
  104. msh = Instance.new("SpecialMesh",par)
  105. msh.MeshType = "Wedge"
  106. elseif type(num) == 'string' then
  107. msh = Instance.new("SpecialMesh",par)
  108. msh.MeshId = num
  109. end
  110. msh.Scale = Vector3.new(x,y,z)
  111. return msh
  112. end
  113.  
  114. Tween = function(Weld, Stop, Step,a)
  115. ypcall(function()
  116. local func = function()
  117. local Start = Weld.C1
  118. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  119. local Stop = Stop
  120. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  121. Spawn(function()
  122. for i = 0, 1, Step or .1 do
  123. wait()
  124. Weld.C1 = cf( (Start.p.X * (1 - i)) + (Stop.p.X * i),(Start.p.Y * (1 - i)) + (Stop.p.Y * i),(Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * ca((X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),(Z1 * (1 - i)) + (Z2 * i) )
  125. end
  126. Weld.C1 = Stop
  127. end)
  128. end
  129. if a then
  130. coroutine.wrap(func)()
  131. else
  132. func()
  133. end
  134. end)
  135. end
  136. TimeStop = function(Stop,Hit,Freeze,Resume)
  137. hit.Parent.Torso.Anchored = true
  138. wait(3)
  139. hit.Parent.Torso.Anchored = false
  140. end
  141. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  142. local magz = (Start - End).magnitude
  143. local curpos = Start
  144. local trz = {-Offset,Offset}
  145. Spawn(function()
  146. for i=1,Times do wait()
  147. local li = Instance.new("Part",workspace)
  148. li.TopSurface =0
  149. li.BottomSurface = 0
  150. li.Anchored = true
  151. li.Transparency = Transparency or 0.4
  152. li.BrickColor = Color
  153. li.formFactor = "Custom"
  154. li.CanCollide = false
  155. li.Size = Vector3.new(1,1,1)
  156. li.Material="Neon"
  157. Instance.new('BlockMesh',li).Scale = Vector3.new(Thickness,Thickness,magz/Times)
  158. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  159. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  160. if Times == i then
  161. local magz2 = (curpos - End).magnitude
  162. li.Mesh.Scale = Vector3.new(Thickness,Thickness,magz2)
  163. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  164. else
  165. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  166. end
  167. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  168. Spawn(function() for i=1,10 do
  169. wait()
  170. li.Transparency = li.Transparency+.1
  171. end li:Destroy() end)
  172. end
  173. end)
  174. end
  175.  
  176. function ani(val)
  177. if val==true then
  178. la = Part(.1,.1,.1,'',0,false,false,mo)
  179. ra = Part(.1,.1,.1,'',0,false,false,mo)
  180. hp = Part(.1,.1,.1,'',1,false,false,mo)
  181. prj = Part(.1,.1,.1,'',1,false,false,mo)
  182. lw = Weld(la,pl.Torso,-1.5,.5,0,0,0,0,mo)
  183. rw = Weld(ra,pl.Torso,1.5,.5,0,0,0,0,mo)
  184. hw = Weld(hp,pl.Torso,0,2,0,0,0,0,mo)
  185. rj = Weld(prj,pl.HumanoidRootPart,0,0,0,0,0,0,mo)
  186. Weld(pl['Right Arm'],ra,0,-.5,0,0,0,0,mo)
  187. Weld(pl['Left Arm'],la,0,-.5,0,0,0,0,mo)
  188. Weld(pl.Torso,prj,0,0,0,0,0,0,mo)
  189. Weld(pl.Head,hp,0,-.5,0,0,0,0,mo)
  190. else
  191. ra:Destroy()la:Destroy()hp:Destroy()prj:Destroy()rw2.C1=rwc1 lw2.C1=lwc1
  192. end
  193. end
  194.  
  195. function gradient(prnt,col,rng,brt,tm)
  196. local f=Instance.new('PointLight',prnt)
  197. f.Color=col
  198. f.Range=rng
  199. f.Brightness=brt
  200. Spawn(function()
  201. while wait(tm) do
  202. if f.Brightness <= 0 then f:Destroy() break end
  203. f.Brightness=f.Brightness-0.05
  204. end
  205. end)
  206. end
  207.  
  208. function skul(v)
  209. if v:findFirstChild("Torso") ~= nil then
  210. for i=1,30 do
  211. local prt= Part(1,.2,1,'Black',0,true,false,workspace)
  212. prt.Material='Concrete'
  213. prt.CFrame=v.Torso.CFrame*CFrame.new(math.random(-30,30)/10,math.random(-20,30)/10,math.random(-20,20)/10)
  214. game.Debris:AddItem(prt,math.random(50,70)/10)
  215. end
  216. ypcall(function()v.Head.face:Destroy()end)
  217. local ms= Mesh(v.Head,'http://www.roblox.com/asset/?id=4770583',3.2,3.2,3.2)
  218. ms.TextureId='http://www.roblox.com/asset/?id=4770560'
  219. local ded=so('16433289',v.Head,false,1,1)
  220. ded.Volume=100
  221. for _,a in pairs(v:GetChildren()) do if a.Name ~= 'Head' and a.Name ~= 'Humanoid' then a:remove() end end
  222. end
  223. end
  224.  
  225. function trail(pos,tim,col)
  226. Spawn(function()
  227. for i=1,tim do
  228. local oldpos=pos.CFrame.p wait()
  229. local newpos=pos.CFrame.p
  230. local mag = (oldpos-newpos).magnitude
  231. local a= Part(1,1,1,col,0,false,true,mo)
  232. local m= Mesh(a,1,.25,mag,.25)
  233. a.CFrame=cf(oldpos,newpos)*cf(0,0,-mag/2)*ca(pi/2,0,0)
  234. a.Material="Neon"
  235. Spawn(function()
  236. for i=1,10 do
  237. wait()
  238. m.Scale=m.Scale-Vector3.new(0.025,0,0.025)
  239. end
  240. wait(.5)
  241. a:Destroy()
  242. end)
  243. end
  244. end)
  245. end
  246.  
  247. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  248. local cols={col1,col2}
  249. Spawn(function()
  250. for i=1,tm do
  251. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,mo)
  252. a.Material="Neon"
  253. curre=a
  254. v1,v2,v3=sz.x,sz.y,sz.z
  255. local m= Mesh(a,3,v1,v2,v3)
  256. a.CFrame=pa.CFrame*cfr*ca(math.random(),math.random(),math.random())
  257. Spawn(function()
  258. while wait() do
  259. if a.Transparency >= 1 then a:Destroy() break end
  260. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  261. a.CFrame=a.CFrame+Vector3.new(0,0.1,0)
  262. a.Transparency=a.Transparency+0.05
  263. end
  264. end)
  265. wait(wa)
  266. end
  267. end)
  268. return curre
  269. end
  270. function explosion(col1,col2,cfr,sz,rng,dmg)
  271. local a= Part(1,1,1,col1,.5,false,true,mo)
  272. local a2= Part(1,1,1,col2,.5,false,true,mo)
  273. local a3= Part(1,1,1,col2,.5,false,true,mo)
  274. a.Material="Neon"
  275. a2.Material="Neon"
  276. a3.Material="Neon"
  277. v1,v2,v3=sz.x,sz.y,sz.z
  278. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  279. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  280. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  281. a.CFrame=cfr
  282. a2.CFrame=cfr*ca(math.random(),math.random(),math.random())
  283. a3.CFrame=cfr*ca(math.random(),math.random(),math.random())
  284. so('219338733',a,false,1,1)
  285. for i,v in pairs(workspace:children()) do
  286. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  287. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  288. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pl.Name then
  289. v.Humanoid.Health=v.Humanoid.Health-dmg
  290. end
  291. end
  292. end
  293. end
  294. Spawn(function()
  295. while wait() do
  296. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  297. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  298. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  299. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  300. a.Transparency=a.Transparency+0.05
  301. a2.Transparency=a2.Transparency+0.05
  302. a3.Transparency=a3.Transparency+0.05
  303. end
  304. end)
  305. end
  306.  
  307. function hit(tm,parent,dmg)
  308. local dodmg=parent.Touched:connect(function(hit)
  309. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= pl.Name and hitdeb==false then
  310. hitdeb=true
  311. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-dmg
  312. so('46153268',hit.Parent,false,math.random(50,100)/100,1)
  313. if hit.Parent.Humanoid.Health<=dednum then skul(hit.Parent) end
  314. wait(.1)
  315. hitdeb=false
  316. end
  317. end)
  318. Spawn(function()
  319. wait(tm)
  320. dodmg:disconnect()
  321. end)
  322. end
  323.  
  324. Lightning2 = function(Start,End,Times,Offset,Color,Thickness)
  325. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  326. for i=1,Times do
  327. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = 0 li.BrickColor = Color
  328. 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)]) li.Material="Neon"
  329. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  330. if Times == i then
  331. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  332. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  333. else
  334. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  335. end
  336. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() li.Transparency = li.Transparency+.1 end li:Destroy() end)
  337. end
  338. end
  339.  
  340.  
  341. function tmdmg(tm,pa,dmg,rng)
  342. Spawn(function()
  343. for i=1,tm do wait()
  344. for i,v in pairs(workspace:children()) do
  345. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  346. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  347. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pl.Name then
  348. v.Humanoid:TakeDamage(dmg)
  349. end
  350. end
  351. end
  352. end
  353. end
  354. end)
  355. end
  356.  
  357. function stratle()
  358. Tween(rw,cf(1.5,.75,0)*ca(0,0,rad(120)),.2)
  359. so('206083107',tor,false,.7,1)
  360. Spawn(function()
  361. for i=1,7 do wait(.1)
  362. for i=1,math.random(3,7) do
  363. mgblock(dmnd,cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),2,'Lime green','White',Vector3.new(1,1,1),0)
  364. end
  365. end
  366. end)
  367. wait(.2)
  368. mgblock(pl['Right Arm'],cf(0,-1,0),10,'Lime green','White',Vector3.new(1.5,1.5,1.5),0)
  369. so('200633433',tor,false,1,1)
  370. wait(1)
  371. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.2)
  372. for i=1,3 do
  373. local pa= Part(1,1,1,'Lime green',0,false,true,workspace)
  374. pa.Reflectance=1
  375. pa.CFrame=dmnd.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  376. local ms=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',2,2,.02)
  377. Spawn(function()
  378. for i=1,20 do wait()
  379. pa.Reflectance=pa.Reflectance-.05
  380. pa.Transparency=pa.Transparency+.05
  381. ms.Scale=ms.Scale+Vector3.new(.5,.5,0)
  382. end
  383. pa:Destroy()
  384. end)
  385. end
  386. wait(.1)
  387. local goto=dmnd.Position+Vector3.new(0,1000,0)
  388. Lightning2(dmnd.Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Lime green',2)
  389. so('219338923',tor,false,1,1)
  390. so('206083093',tor,false,1,1)
  391. wait(2)
  392. for i=1,math.random(4,7) do
  393. local start=dmnd.Position+Vector3.new(math.random(-50,50),1000,math.random(-50,50))
  394. local goto=mouse.Hit.p+Vector3.new(math.random(-15,15),1,math.random(-15,15))
  395. so('219339064',workspace,false,1,1)
  396. Lightning2(start,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Lime green',.2)
  397. explosion('Really black','Lime green',CFrame.new(goto),Vector3.new(10,10,10),15,30)
  398. wait(math.random(1,10)/10)
  399. end
  400. end
  401.  
  402.  
  403. function plc()
  404. if x then
  405. Tween(lw,cf(-1,.5,-.5)*ca(rad(120),0,rad(45)),.2)
  406. Tween(rw,cf(1,.5,-.5)*ca(rad(120),0,-rad(45)),.2)
  407. so('206083107',tor,false,.7,1)
  408. wait(.4)
  409. so('206083107',tor,false,.5,1)
  410. Tween(lw,cf(-1,.5,-.5)*ca(rad(90),0,rad(45)),.4)
  411. Tween(rw,cf(1,.5,-.5)*ca(rad(90),0,-rad(45)),.4)
  412. Tween(rj,cf(0,-1.3,0)*ca(0,0,0),.4)
  413. Tween(rw2,rwc1*cf(-.75,-1.3,0),.4)
  414. Tween(lw2,lwc1*cf(0,-.7,0)*ca(0,0,-rad(60)),.4)
  415. wait(.5)
  416. mwl:Destroy()
  417. mpa.Anchored=true
  418. so('219338674',tor,false,1,1)
  419. for i=1,3 do
  420. for i=1,math.random(3,7) do
  421. mgblock(dmnd,cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),2,'Lime green','White',Vector3.new(1,1,1),0)
  422. end
  423. local pa= Part(1,1,1,'Lime green',0,false,true,workspace)
  424. pa.Reflectance=1
  425. pa.CFrame=dmnd.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  426. local ms=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',5,5,.02)
  427. Spawn(function()
  428. for i=1,20 do wait()
  429. pa.Reflectance=pa.Reflectance-.05
  430. pa.Transparency=pa.Transparency+.05
  431. ms.Scale=ms.Scale+Vector3.new(.5,.5,0)
  432. end
  433. pa:Destroy()
  434. end)
  435. end
  436. wait(.1)
  437. Tween(mwl2,cf(0,-1,-0.2)*ca(-pi/2,0,0),.5)
  438. Tween(mowl3,cf(-0.0125,.9+.75,-0.075)*ca(0,0,pi/2),.1)
  439. Tween(mowl4,cf(0.0125,.9+.75,-0.075)*ca(pi/1,pi/1,pi/2),.1)
  440. Tween(mowl5,cf(0.0125,.9+.75,0.075)*ca(0,pi/1,pi/2),.1)
  441. Tween(mowl6,cf(-0.0125,.9+.75,0.075)*ca(pi/1,0,pi/2),.1)
  442. Tween(mowl7,cf(0,1.4+1.5,0),.1)
  443. Spawn(function()
  444. for i=1,5 do wait()
  445. mom3.Scale=mom3.Scale+Vector3.new(0.3,0,0)
  446. mom4.Scale=mom4.Scale+Vector3.new(0.3,0,0)
  447. mom5.Scale=mom5.Scale+Vector3.new(0.3,0,0)
  448. mom6.Scale=mom6.Scale+Vector3.new(0.3,0,0)
  449. end
  450. end)
  451. smode='sword'
  452. so('219339134',tor,false,1,1)
  453. --Tween(mwl,cf(0,-1,0)*ca(-pi/2,pi/2,0),.1)
  454. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.1)
  455. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.1)
  456. Tween(rj,cf(0,0,0)*ca(0,0,0),.2)
  457. Tween(rw2,rwc1,.2)
  458. Tween(lw2,lwc1,.2)
  459. else
  460. for i=1,10 do wait()
  461. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" then v.Reflectance=v.Reflectance-.1 v.Transparency=v.Transparency+.1 end end
  462. end
  463. mpa.Anchored=false
  464. mwl= Weld(mpa,pl['Right Arm'],0,-1,0,-pi/2,0,0,mo)
  465. for i=1,10 do wait()
  466. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" then v.Reflectance=v.Reflectance+.1 v.Transparency=v.Transparency-.1 end end
  467. end
  468. Tween(mwl2,cf(0,-1,-0.2)*ca(-pi/2,0,0),.5)
  469. Tween(mowl3,cf(-0.0125,.9,-0.075)*ca(0,0,pi/2),.2)
  470. Tween(mowl4,cf(0.0125,.9,-0.075)*ca(pi/1,pi/1,pi/2),.2)
  471. Tween(mowl5,cf(0.0125,.9,0.075)*ca(0,pi/1,pi/2),.2)
  472. Tween(mowl6,cf(-0.0125,.9,0.075)*ca(pi/1,0,pi/2),.2)
  473. Tween(mowl7,cf(0,1.4,0),.2)
  474. Spawn(function()
  475. for i=1,5 do wait()
  476. mom3.Scale=mom3.Scale-Vector3.new(0.3,0,0)
  477. mom4.Scale=mom4.Scale-Vector3.new(0.3,0,0)
  478. mom5.Scale=mom5.Scale-Vector3.new(0.3,0,0)
  479. mom6.Scale=mom6.Scale-Vector3.new(0.3,0,0)
  480. end
  481. end)
  482. so('206083252',tor,false,.9,1)
  483. for i=1,3 do
  484. for i=1,math.random(3,7) do
  485. mgblock(tp,cf(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),2,'Lime green','White',Vector3.new(.1,.1,.1),0)
  486. end
  487. end
  488. Tween(mwl2,cf(0,-1,0.2)*ca(pi/2,0,0),.1)
  489. smode='knife'
  490. end
  491. end
  492.  
  493. function eq()
  494. deb=true
  495. so('31758934',pl.Torso,false,1,1)
  496. ani(true)
  497. Tween(rw,cf(1.5,.5,0)*ca(-rad(60),0,-rad(50)),.1)
  498. Tween(lw,cf(-1.5,.5,0)*ca(-rad(60),0,rad(50)),.1)
  499. wait(.4)
  500. mwl.Part1 = pl['Right Arm']
  501. Tween(mwl,cf(0,-1,0)*ca(-pi/2,pi/2,0),.1)
  502. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.1)
  503. mwl2.Part1 = pl['Left Arm']
  504. Tween(mwl2,cf(0,-1,0.2)*ca(pi/2,0,0),.1)
  505. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.1)
  506. wait(.4)
  507. equi=true
  508. deb=false
  509. end
  510.  
  511. function dc()
  512. deb=true
  513. equi=false
  514. so('31758934',pl.Torso,false,1,1)
  515. Tween(rw,cf(1.5,.5,0)*ca(-rad(60),0,-rad(50)),.1)
  516. Tween(lw,cf(-1.5,.5,0)*ca(-rad(60),0,rad(50)),.1)
  517. wait(.4)
  518. mwl.Part1 = tor
  519. Tween(mwl,cf(0,0,0.5)*ca(0,0,rad(45)),.5)
  520. Tween(rw,cf(1.5,.5,0)*ca(0,0,0),.1)
  521. mwl2.Part1 = tor
  522. Tween(mwl2,cf(-.5,-1,.5)*ca(pi/2,0,-pi/2),.5)
  523. Tween(lw,cf(-1.5,.5,0)*ca(0,0,0),.1)
  524. wait(.4)
  525. ani(false)
  526. deb=false
  527. end
  528. function Ultimate()
  529. sound = Instance.new("Sound")
  530. sound.SoundId = "rbxassetid://1055792303"
  531. sound.Parent = game.Players.LocalPlayer.Character
  532. sound:Play()
  533. for i,v in next, game.Players:GetChildren() do
  534. v.Character.Torso.Anchored = true
  535. wait(5)
  536. v.Character.Torso.Anchored = false
  537. end
  538. end
  539.  
  540.  
  541. mo=Instance.new("Model",pl)
  542. mo.Name='s_Celestial'
  543. -- staff
  544. mpa= Part(1,1,1,'Black',0,false,false,mo)
  545. Mesh(mpa,1,.15,4,.15)
  546. mwl= Weld(mpa,tor,0,0,0.5,0,0,rad(45),mo)--0,-1,0,-pi/2,0,0
  547. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  548. pa.Reflectance=.75
  549. Mesh(pa,1,.175,.75,.175)
  550. wl= Weld(pa,mpa,0,0,0,0,0,0,mo)
  551. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  552. pa.Reflectance=.75
  553. Mesh(pa,3,.175,.05,.175)
  554. wl= Weld(pa,mpa,0,.375,0,0,0,0,mo)
  555. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  556. pa.Reflectance=.75
  557. Mesh(pa,3,.175,.05,.175)
  558. wl= Weld(pa,mpa,0,-.375,0,0,0,0,mo)
  559. pa= Part(1,1,1,'Black',0,false,false,mo)
  560. Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.17,.2,.17)
  561. wl= Weld(pa,mpa,0,-1.7,0,0,0,0,mo)
  562. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  563. pa.Reflectance=.75
  564. Mesh(pa,1,.225,.2,.225)
  565. wl= Weld(pa,mpa,0,-1.967,0,0,0,0,mo)
  566. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  567. pa.Reflectance=.75
  568. Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.17,.2,.17)
  569. wl= Weld(pa,mpa,0,-2.22,0,pi/1,0,0,mo)
  570. pa= Part(1,1,1,'Lime green',0,false,false,mo)
  571. pa.Material='Granite'
  572. Mesh(pa,1,.1,.27,.1)
  573. wl= Weld(pa,mpa,0,-1.967,0,pi/2,0,0,mo)
  574. pa= Part(1,1,1,'Lime green',0,false,false,mo)
  575. pa.Material='Granite'
  576. Mesh(pa,1,.1,.27,.1)
  577. wl= Weld(pa,mpa,0,-1.967,0,pi/2,0,pi/2,mo)
  578. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  579. pa.Reflectance=.75
  580. Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.17,.2,.17)
  581. wl= Weld(pa,mpa,0,1.7,0,pi/1,0,0,mo)
  582. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  583. pa.Reflectance=.75
  584. Mesh(pa,1,.225,.2,.225)
  585. wl= Weld(pa,mpa,0,1.967,0,0,0,0,mo)
  586. pa= Part(1,1,1,'New Yeller',0,false,false,mo)
  587. pa.Reflectance=.75
  588. Mesh(pa,'http://www.roblox.com/Asset/?id=9756362',.255,.05,.255)
  589. wl= Weld(pa,mpa,0,2.05,0,0,rad(45),0,mo)
  590. dmnd= Part(.25,.25,.25,'Lime green',1,false,false,mo)
  591. dmndwl= Weld(dmnd,mpa,0,2.2,0,0,0,0,mo)
  592. dmndp= Part(.25,.25,.25,'Lime green',0,false,false,mo)
  593. dmndp.Material="Neon"
  594. dmndpwl= Weld(dmndp,dmnd,0,0,0,rad(45),rad(45),rad(90),mo)
  595. pa= Part(1,1,1,'Black',0,false,false,mo)
  596. pa.Reflectance=.75
  597. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',1.5,1.5,.2)
  598. wl= Weld(pa,dmnd,0,0,0,0,0,0,mo)
  599. pa= Part(1,1,1,'Black',0,false,false,mo)
  600. pa.Reflectance=.75
  601. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',1.5,1.5,.2)
  602. wl= Weld(pa,dmnd,0,0,0,0,pi/2,0,mo)
  603. for i=1,3 do
  604. for i = 1, 360, 24 do
  605. local pa= Part(.2,.2,.2,'New Yeller',0.5,false,false,mo)
  606. m=Mesh(pa,'http://www.roblox.com/Asset/?id=9756362',.05,.1,.05)
  607. pa.Material="Neon"
  608. pa.Reflectance=.75
  609. local weld = Instance.new("Weld")
  610. weld.Parent = mo
  611. weld.Part0 = dmnd
  612. weld.Part1 = pa
  613. weld.C0 = CFrame.Angles(0,-rad(i),0) * CFrame.new(0.25*math.cos(rad(i/100)),-0.75,0.25*math.sin(rad(i/100))) * CFrame.Angles(0,0,pi/2)
  614. local pa= Part(.2,.2,.2,'New Yeller',0.5,false,false,mo)
  615. m=Mesh(pa,'http://www.roblox.com/Asset/?id=9756362',.05,.1,.05)
  616. pa.Material="Neon"
  617. pa.Reflectance=.75
  618. local weld = Instance.new("Weld")
  619. weld.Parent = mo
  620. weld.Part0 = dmnd
  621. weld.Part1 = pa
  622. weld.C0 = CFrame.Angles(0,0,-math.rad(i)) * CFrame.new(0.25*math.cos(math.rad(i/100)),0.25*math.sin(math.rad(i/100))-0.75,0)
  623. local pa= Part(.2,.2,.2,'New Yeller',0.5,false,false,mo)
  624. m=Mesh(pa,'http://www.roblox.com/Asset/?id=9756362',.05,.1,.05)
  625. pa.Material="Neon"
  626. pa.Reflectance=.75
  627. local weld = Instance.new("Weld")
  628. weld.Parent = mo
  629. weld.Part0 = dmnd
  630. weld.Part1 = pa
  631. weld.C0 = CFrame.Angles(0,pi/2,-math.rad(i)) * CFrame.new(0.25*math.cos(math.rad(i/100)),0.25*math.sin(math.rad(i/100))-0.75,0)
  632. end
  633. end
  634. --knife
  635. mo2=Instance.new('Model',pl)
  636. mo2.Name='k_Celestial'
  637. mpa2= Part(1,1,1,'Black',0,false,false,mo2)
  638. Mesh(mpa2,1,.15,.75,.15)
  639. mwl2= Weld(mpa2,tor,-.5,-1,.5,pi/2,0,-pi/2,mo2)--0,-1,-0.2,-pi/2,0,0
  640. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  641. pa.Reflectance=.75
  642. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.175,.6,.175)
  643. wl= Weld(pa,mpa2,0,0,0,rad(15),0,0,mo2)
  644. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  645. pa.Reflectance=.75
  646. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.175,.6,.175)
  647. wl= Weld(pa,mpa2,0,0,0,-rad(15),0,0,mo2)
  648. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  649. pa.Reflectance=.75
  650. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.175,.6,.175)
  651. wl= Weld(pa,mpa2,0,0,0,rad(15),pi/2,0,mo2)
  652. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  653. pa.Reflectance=.75
  654. Mesh(pa,'http://www.roblox.com/asset/?id=3270017',.175,.6,.175)
  655. wl= Weld(pa,mpa2,0,0,0,-rad(15),pi/2,0,mo2)
  656. pa= Part(1,1,1,'Black',0,false,false,mo2)
  657. Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.17,.2,.17)
  658. wl= Weld(pa,mpa2,0,-.25,0,0,0,0,mo2)
  659. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  660. pa.Reflectance=.75
  661. Mesh(pa,1,.225,.2,.225)
  662. wl= Weld(pa,mpa2,0,-.515,0,0,0,0,mo2)
  663. pa= Part(1,1,1,'New Yeller',0,false,false,mo2)
  664. pa.Reflectance=.75
  665. Mesh(pa,'http://www.roblox.com/asset/?id=1778999',.17,.2,.17)
  666. wl= Weld(pa,mpa2,0,-.775,0,pi/1,0,0,mo2)
  667. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  668. pa.Material='Granite'
  669. Mesh(pa,1,.1,.27,.1)
  670. wl= Weld(pa,mpa2,0,-.515,0,pi/2,0,0,mo2)
  671. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  672. pa.Material='Granite'
  673. Mesh(pa,1,.1,.27,.1)
  674. wl= Weld(pa,mpa2,0,-.515,0,pi/2,0,pi/2,mo2)
  675. pa= Part(1,1,1,'Black',0,false,false,mo2)
  676. mom1=Mesh(pa,3,.5,.15,.15)
  677. mowl1= Weld(pa,mpa2,0,.5,-0.15,0,pi/2,rad(45),mo2)
  678. pa= Part(1,1,1,'Black',0,false,false,mo2)
  679. mom2=Mesh(pa,3,.5,.15,.15)
  680. mowl2= Weld(pa,mpa2,0,.5,0.15,0,pi/2,-rad(45),mo2)
  681. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  682. pa.Reflectance=.75
  683. mom3=Mesh(pa,4,1,.025,.15)
  684. mowl3= Weld(pa,mpa2,-0.0125,.9,-0.075,0,0,pi/2,mo2)
  685. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  686. pa.Reflectance=.75
  687. mom4=Mesh(pa,4,1,.025,.15)
  688. mowl4= Weld(pa,mpa2,0.0125,.9,-0.075,pi/1,pi/1,pi/2,mo2)
  689. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  690. pa.Reflectance=.75
  691. mom5=Mesh(pa,4,1,.025,.15)
  692. mowl5= Weld(pa,mpa2,0.0125,.9,0.075,0,pi/1,pi/2,mo2)
  693. pa= Part(1,1,1,'Lime green',0,false,false,mo2)
  694. pa.Reflectance=.75
  695. mom6=Mesh(pa,4,1,.025,.15)
  696. mowl6= Weld(pa,mpa2,-0.0125,.9,0.075,pi/1,0,pi/2,mo2)
  697. tp= Part(1,1,1,'Lime green',0,false,false,mo2)
  698. tp.Reflectance=.75
  699. Mesh(tp,'http://www.roblox.com/Asset/?id=9756362',.035,.5,.2)
  700. mowl7= Weld(tp,mpa2,0,1.4,0,0,0,0,mo2)
  701. --pa.Material='Granite'
  702.  
  703. function onKeyDown(key)
  704. key = key:lower()
  705. if deb==true then return end
  706. if key == "q" then a=not a
  707. if a then eq()else dc()end
  708. elseif key == "x" then
  709. if equi==false then return end
  710. x=not x
  711. plc()
  712. elseif key == "c" then
  713. if equi==false or smode=='knife' then return end
  714. c=c
  715. stratle()
  716. elseif key == "v" and equi == true then
  717. Ultimate()
  718.  
  719.  
  720. end
  721. end
  722.  
  723. --so('62777105',tor,false,1)
  724. function onClicked()
  725. if equi==false or deb==true then return end
  726. if smode=='knife' then deb=true
  727. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(90)),.2)
  728. wait(.3)
  729. trail(tp,7,'White')
  730. tmdmg(10,tp,4,2)
  731. so('206083107',tor,false,.9,1)
  732. Tween(lw,cf(-1.5,.5,0)*ca(0,-rad(90),-rad(90)),.2)
  733. Tween(rj,cf(0,0,0)*ca(0,-rad(90),0),.2)
  734. Tween(hw,cf(0,2,0)*ca(0,rad(90),0),.2)
  735. wait(.3)
  736. Tween(mwl2,cf(0,-1,-0.2)*ca(-pi/2,0,0),.5)
  737. wait(.05)
  738. tmdmg(10,tp,4,2)
  739. so('206083107',tor,false,.7,1)
  740. Tween(lw,cf(-1.5,.5,0)*ca(0,rad(30),-rad(90)),.2)
  741. wait(.001)
  742. trail(tp,7,'White')
  743. wait(.3)
  744. so('206083107',tor,false,.5,1)
  745. Tween(rj,cf(0,0,0)*ca(0,rad(90),0),.2)
  746. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(90)),.2)
  747. Tween(mwl,cf(0,-1,0)*ca(-pi/1,pi/2,0),.2)
  748. Tween(hw,cf(0,2,0)*ca(0,-rad(90),0),.2)
  749. wait(.3)
  750. for i=1,5 do
  751. so('206083293',tor,false,1,100)
  752. end
  753. for i,v in pairs(workspace:children()) do
  754. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  755. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  756. if (v:findFirstChild("Torso").Position - dmnd.Position).magnitude < 8 and v.Name ~= pl.Name then
  757. for i=1,5 do wait()
  758. local goto=v.Torso.Position+Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  759. Lightning(dmnd.Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Lime green',.1)
  760. v.Humanoid:TakeDamage(4)
  761. end
  762. end
  763. end
  764. end
  765. end
  766. Tween(mwl,cf(0,-1,0)*ca(-pi/2,pi/2,0),.1)
  767. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.1)
  768. Tween(mwl2,cf(0,-1,0.2)*ca(pi/2,0,0),.1)
  769. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.1)
  770. Tween(rj,cf(0,0,0)*ca(0,0,0),.2)
  771. Tween(hw,cf(0,2,0)*ca(0,0,0),.2)
  772. wait(.3)
  773. deb=false
  774. elseif smode=='sword' then
  775. deb=true
  776. Tween(lw,cf(-1.5,.5,0)*ca(rad(120),0,-rad(40)),.3)
  777. Tween(rw,cf(1.5,.5,0)*ca(rad(20),0,rad(20)),.3)
  778. wait(.18)
  779. so('206083107',pl.Torso,false,.6,1)
  780. trail(tp,7,'White')
  781. tmdmg(10,tp,4,2)
  782. Tween(lw,cf(-1.5,.5,0)*ca(rad(15),0,rad(30)),.3)
  783. Tween(rw,cf(1.5,.5,0)*ca(-rad(20),0,rad(20)),.3)
  784. wait(.18)
  785. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.3)
  786. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.3)
  787. wait(.18)
  788. Tween(lw,cf(-1.5,.5,0)*ca(rad(120),0,rad(40)),.3)
  789. Tween(rw,cf(1.5,.5,0)*ca(rad(20),0,rad(20)),.3)
  790. wait(.18)
  791. so('206083107',pl.Torso,false,.45,1)
  792. trail(tp,7,'White')
  793. tmdmg(10,tp,4,2)
  794. Tween(lw,cf(-1.5,.5,0)*ca(rad(15),0,-rad(30)),.3)
  795. Tween(rw,cf(1.5,.5,0)*ca(-rad(20),0,rad(20)),.3)
  796. wait(.18)
  797. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.3)
  798. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.3)
  799. wait(.18)
  800. Tween(rw,cf(1.5,.5,0)*ca(0,-rad(30),rad(90)),.3)
  801. its=so('219338993',pl.Torso,false,1,3)
  802. for i=1,15 do wait(.1)
  803. local goto=mgblock(pl['Right Arm'],cf(0,-1,0),2,'Lime green','White',Vector3.new(1.5,1.5,1.5),0)
  804. Lightning2(dmnd.Position,goto.Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Lime green',.2)
  805. end
  806. mgblock(pl['Right Arm'],cf(0,-1,0),7,'Lime green','White',Vector3.new(1.5,1.5,1.5),0)
  807. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(90)),.3)
  808. Tween(rj,cf(0,0,0)*ca(0,rad(90),0),.3)
  809. Tween(hw,cf(0,2,0)*ca(0,-rad(90),0),.3)
  810. wait(.3)
  811. its:Stop()
  812. explosion('Really black','Lime green',pl['Right Arm'].CFrame*CFrame.new(0,-2,0),Vector3.new(5,5,5),10,20)
  813. Tween(rw,cf(1.5,.5,0)*ca(0,0,rad(18)),.1)
  814. Tween(lw,cf(-1.5,.5,0)*ca(0,0,-rad(18)),.1)
  815. Tween(rj,cf(0,0,0)*ca(0,0,0),.2)
  816. Tween(hw,cf(0,2,0)*ca(0,0,0),.2)
  817. wait(.3)
  818. deb=false
  819. end
  820. end
  821.  
  822. mouse.Button1Down:connect(function() onClicked(mouse) end)
  823. mouse.KeyDown:connect(onKeyDown)
  824. while true do
  825. wait(0)
  826. if game.Players.LocalPlayer.Character.Torso.Anchored == true then
  827. game.Players.LocalPlayer.Character.Torso.Anchored = false
  828. end
  829. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement