pklo

Untitled

Mar 7th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.27 KB | None | 0 0
  1. --New boss for Black Magic
  2. it=Instance.new
  3. vt=Vector3.new
  4. cf=CFrame.new
  5. euler=CFrame.fromEulerAnglesXYZ
  6. angles=CFrame.Angles
  7.  
  8. if workspace:findFirstChild("Vanta",true) ~= nil then
  9. workspace:findFirstChild("Vanta",true).Parent = nil
  10. end
  11.  
  12. function NoOutline(Part)
  13. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  14. end
  15.  
  16. function swait(num)
  17. if num==0 or num==nil then
  18. game:service'RunService'.RenderStepped:wait()
  19. else
  20. for i=0,num do
  21. game:service'RunService'.RenderStepped:wait()
  22. end
  23. end
  24. end
  25.  
  26. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  27. local fp=it("Part")
  28. fp.formFactor=formfactor
  29. fp.Parent=parent
  30. fp.Reflectance=reflectance
  31. fp.Transparency=transparency
  32. fp.CanCollide=false
  33. fp.Locked=true
  34. fp.BrickColor=brickcolor
  35. fp.Name=name
  36. fp.Size=size
  37. NoOutline(fp)
  38. fp.Material="SmoothPlastic"
  39. fp:BreakJoints()
  40. return fp
  41. end
  42.  
  43. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  44. local mesh=it(Mesh)
  45. mesh.Parent=part
  46. if Mesh=="SpecialMesh" then
  47. mesh.MeshType=meshtype
  48. mesh.MeshId=meshid
  49. end
  50. mesh.Offset=offset
  51. mesh.Scale=scale
  52. return mesh
  53. end
  54.  
  55. function weld(parent,part0,part1,c0)
  56. local weld=it("Weld")
  57. weld.Parent=parent
  58. weld.Part0=part0
  59. weld.Part1=part1
  60. weld.C0=c0
  61. return weld
  62. end
  63.  
  64. local Character=Instance.new("Model")
  65. Character.Parent=workspace
  66. Character.Name="Vanta"
  67.  
  68. local Head=part(0,Character,0,1,BrickColor.new("Black"),"Head",vt(2,1,1))
  69. local Torso=part(0,Character,0,1,BrickColor.new("Black"),"Torso",vt(2,2,1))
  70. local LeftArm=part(0,Character,0,1,BrickColor.new("Black"),"Left Arm",vt(1,2,1))
  71. local RightArm=part(0,Character,0,1,BrickColor.new("Black"),"Right Arm",vt(1,2,1))
  72. local LeftLeg=part(0,Character,0,1,BrickColor.new("Black"),"Left Leg",vt(1,2,1))
  73. local RightLeg=part(0,Character,0,1,BrickColor.new("Black"),"Right Leg",vt(1,2,1))
  74. local RootPart=part(0,Character,0,1,BrickColor.new("White"),"HumanoidRootPart",vt(2,2,1))
  75. Head.CanCollide=true
  76. Torso.CanCollide=true
  77. LeftArm.CanCollide=true
  78. RightArm.CanCollide=true
  79. LeftLeg.CanCollide=true
  80. RightLeg.CanCollide=true
  81. RootPart.CanCollide=false
  82.  
  83. local HMesh=mesh("SpecialMesh",Head,"Head","",vt(0,0,0),vt(1.25,1.25,1.25))
  84.  
  85. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  86. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  87. local Neck=weld(Torso,Torso,Head,cf(0,1,0))
  88. Neck.C1=cf(0,-0.5,0)
  89. local RW=weld(Torso,Torso,RightArm,cf(1.5,0.5,0))
  90. RW.C1=cf(0,0.5,0)
  91. local LW=weld(Torso,Torso,LeftArm,cf(-1.5,0.5,0))
  92. LW.C1=cf(0,0.5,0)
  93. local RH=weld(Torso,Torso,RightLeg,cf(0.5,-1,0))
  94. RH.C1=cf(0,1,0)
  95. local LH=weld(Torso,Torso,LeftLeg,cf(-0.5,-1,0))
  96. LH.C1=cf(0,1,0)
  97. local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
  98.  
  99. local Humanoid=Instance.new("Humanoid")
  100. Humanoid.Parent=Character
  101. Humanoid.MaxHealth=math.huge
  102. Humanoid.Health=math.huge
  103. coroutine.resume(coroutine.create(function()
  104. for i=1,20 do
  105. Humanoid.Health=Humanoid.MaxHealth
  106. end
  107. Humanoid:TakeDamage(1)
  108. end))
  109.  
  110. local MainPosition=workspace.Base.CFrame*cf(0,100,0)*euler(0,1.57,0)
  111. Torso.CFrame=MainPosition
  112. local Mode=Instance.new("IntValue")
  113. Mode.Parent=Character
  114. Mode.Value=2
  115. Mode.Name="ModeValue"
  116.  
  117. so = function(id,par,vol,pit)
  118. coroutine.resume(coroutine.create(function()
  119. local sou = Instance.new("Sound",par or workspace)
  120. sou.Volume=vol
  121. sou.Pitch=pit or 1
  122. sou.SoundId=id
  123. wait()
  124. sou:play()
  125. game:GetService("Debris"):AddItem(sou,6)
  126. end))
  127. end
  128.  
  129. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  130. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  131. prt.Anchored=true
  132. prt.CFrame=cframe
  133. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  134. game:GetService("Debris"):AddItem(prt,2)
  135. coroutine.resume(coroutine.create(function(Part,Mesh)
  136. for i=0,1,delay do
  137. wait()
  138. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  139. Part.Transparency=i
  140. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  141. end
  142. Part.Parent=nil
  143. end),prt,msh)
  144. end
  145.  
  146. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  147. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  148. prt.Anchored=true
  149. prt.CFrame=cframe
  150. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  151. game:GetService("Debris"):AddItem(prt,2)
  152. coroutine.resume(coroutine.create(function(Part,Mesh)
  153. for i=0,1,delay do
  154. wait()
  155. Part.Transparency=i
  156. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  157. end
  158. Part.Parent=nil
  159. end),prt,msh)
  160. end
  161.  
  162. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  163. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  164. prt.Anchored=true
  165. prt.CFrame=cframe
  166. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  167. game:GetService("Debris"):AddItem(prt,2)
  168. coroutine.resume(coroutine.create(function(Part,Mesh)
  169. local wld=nil
  170. for i=0,1,delay do
  171. wait()
  172. Part.CFrame=Part.CFrame
  173. Part.Transparency=i
  174. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  175. end
  176. Part.Parent=nil
  177. end),prt,msh)
  178. end
  179.  
  180. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  181. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  182. prt.Anchored=true
  183. prt.CFrame=cframe
  184. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  185. game:GetService("Debris"):AddItem(prt,5)
  186. coroutine.resume(coroutine.create(function(Part,Mesh)
  187. for i=0,1,delay do
  188. wait()
  189. Part.CFrame=Part.CFrame
  190. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  191. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  192. prt2.Anchored=true
  193. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  194. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  195. game:GetService("Debris"):AddItem(prt2,2)
  196. coroutine.resume(coroutine.create(function(Part,Mesh)
  197. for i=0,1,0.05 do
  198. wait()
  199. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  200. end
  201. Part.Parent=nil
  202. end),prt2,msh2)
  203. end
  204. for i=0,1,delay do
  205. wait()
  206. Part.CFrame=Part.CFrame
  207. Part.Transparency=i
  208. Mesh.Scale=Mesh.Scale-vt(x3,y3,z3)
  209. end
  210. Part.Parent=nil
  211. end),prt,msh)
  212. end
  213.  
  214. function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  215. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  216. prt.Anchored=true
  217. prt.CFrame=cframe
  218. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(x1,y1,z1))
  219. game:GetService("Debris"):AddItem(prt,4)
  220. coroutine.resume(coroutine.create(function(Part,Mesh)
  221. local wld=nil
  222. for i=0,1,delay do
  223. wait()
  224. Part.CFrame=Part.CFrame
  225. Part.Transparency=i
  226. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  227. end
  228. Part.Parent=nil
  229. end),prt,msh)
  230. end
  231.  
  232. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  233. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  234. prt.Anchored=true
  235. prt.CFrame=cframe
  236. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  237. game:GetService("Debris"):AddItem(prt,5)
  238. coroutine.resume(coroutine.create(function(Part,Mesh)
  239. for i=0,1,delay do
  240. wait()
  241. Part.CFrame=Part.CFrame
  242. Part.Transparency=i
  243. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  244. end
  245. Part.Parent=nil
  246. end),prt,msh)
  247. end
  248.  
  249. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  250. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  251. prt.Anchored=true
  252. prt.CFrame=cframe
  253. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  254. game:GetService("Debris"):AddItem(prt,5)
  255. coroutine.resume(coroutine.create(function(Part,Mesh)
  256. for i=0,1,delay do
  257. wait()
  258. Part.CFrame=Part.CFrame
  259. Part.Transparency=i
  260. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  261. end
  262. Part.Parent=nil
  263. end),prt,msh)
  264. end
  265.  
  266. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  268. prt.Anchored=true
  269. prt.CFrame=cframe
  270. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  271. game:GetService("Debris"):AddItem(prt,5)
  272. coroutine.resume(coroutine.create(function(Part,Mesh)
  273. for i=0,1,delay do
  274. wait()
  275. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  276. Part.Transparency=i
  277. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  278. end
  279. Part.Parent=nil
  280. end),prt,msh)
  281. end
  282.  
  283. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  284. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  285. prt.Anchored=true
  286. prt.CFrame=cframe
  287. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1))
  288. game:GetService("Debris"):AddItem(prt,2)
  289. coroutine.resume(coroutine.create(function(Part,Mesh)
  290. for i=0,1,delay do
  291. wait()
  292. Part.CFrame=Part.CFrame
  293. Part.Transparency=i
  294. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  295. end
  296. Part.Parent=nil
  297. end),prt,msh)
  298. end
  299.  
  300. function SummonCrystals()
  301. local Cryst={}
  302. Part1=workspace.Base
  303. local numbah=0
  304. for i=1,4 do
  305. Crys=Instance.new("Model")
  306. Crys.Parent=workspace
  307. Crys.Name="Crystal"
  308.  
  309. CHead=part(0,Crys,0,0,BrickColor.new("Black"),"Head",vt(8,8,8))
  310. CTorso=part(0,Crys,0,1,BrickColor.new("Black"),"Torso",vt())
  311. CHMesh=mesh("SpecialMesh",CHead,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(10,11,10))
  312. local Neck=weld(CTorso,CTorso,CHead,cf(0,0,0))
  313. Hum=Instance.new("Humanoid")
  314. Hum.Parent=Crys
  315. CTorso.CFrame=Part1.CFrame*cf(5,10,0)*euler(0,numbah,0)
  316. MagicCircle(BrickColor.new("Really black"),CHead.CFrame,50,50,50,1,12,1,0.05)
  317. wait(0)
  318. CTorso.Anchored=true
  319. coroutine.resume(coroutine.create(function(Model,CrysHum)
  320. while CrysHum.Health>0 do
  321. wait()
  322. end
  323. print("ded")
  324. Tors=Model.Torso
  325. Hed=Model.Head
  326. for i=0,1,0.1 do
  327. wait()
  328. Hed.Transparency=i
  329. end
  330. print("ez ded")
  331. Model.Parent=nil
  332. end),Crys,Hum)
  333. numbah=numbah+1.57
  334. wait(0.875)
  335. end
  336. coroutine.resume(coroutine.create(function(ModeVal)
  337. while ModeVal.Value==2 do
  338. wait()
  339. local dedcrystals=true
  340. model=workspace
  341. for _,c in pairs(model:children()) do
  342. if c.Name=="Crystal" then
  343. dedcrystals=false
  344. end
  345. end
  346. if dedcrystals==true then
  347. ModeVal.Value=3
  348. print("CRYSTALS ARE DED")
  349. end
  350. end
  351. print("goe keel vanta nao")
  352. end),Mode)
  353. end
  354.  
  355. local BodPos=Instance.new("BodyPosition")
  356. BodPos.P=500
  357. BodPos.D=100
  358. BodPos.Name="VantaPos"
  359. BodPos.maxForce=vt(math.huge,math.huge,math.huge)
  360. BodPos.position=workspace.Base.Position+vt(0,50,0)
  361. BodPos.Parent=RootPart
  362.  
  363. local BPRef=part(3,Character,0,0.5,BrickColor.new("Black"),"Reference",vt())
  364. BPRef.Anchored=true
  365. for i=0,1,0.1 do
  366. wait()
  367. end
  368.  
  369. BPRef.CFrame=Torso.CFrame
  370. BodPos.position=BPRef.Position
  371.  
  372. local BodGy=Instance.new("BodyGyro")
  373. BodGy.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  374. BodGy.P=2000
  375. BodGy.D=100
  376. BodGy.Name="VantaGyro"
  377. CF=RootPart.CFrame
  378. BodGy.Parent=RootPart
  379. BodGy.cframe=CF
  380. --local music=workspace.PlayMusic
  381. local intro=true
  382. local DarkLegEffect=true
  383.  
  384. wait(1)
  385. if intro==true then
  386. wait(5)
  387. --music.Value=true
  388. coroutine.resume(coroutine.create(function(Leg1,Leg2)
  389. while DarkLegEffect==true do
  390. wait(0.1)
  391. MagicBlock(BrickColor.new("Really black"),Leg1.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  392. MagicBlock(BrickColor.new("Really black"),Leg2.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  393. end
  394. end),RightLeg,LeftLeg)
  395.  
  396. MagicCircle2(BrickColor.new("Black"),Torso.CFrame*euler(1.57,0,0),10,0.1,10,0.1,0,0.1,0.02)
  397. for _,c in pairs(Character:children()) do
  398. if c.className=="Part" and c.Name~="HumanoidRootPart" and c.Name~="Reference" then
  399. c.Transparency=1
  400. coroutine.resume(coroutine.create(function(Part)
  401. for i=1,0,-0.05 do
  402. wait()
  403. Part.Transparency=i
  404. end
  405. Part.Transparency=0
  406. end),c)
  407. end
  408. end
  409.  
  410. for i=0,1,0.01 do
  411. wait()
  412. RootJoint.C0=cf(0,0,0)*euler(1-0.8*i,0,0)
  413. RW.C0=cf(1.5,0.5,0)*euler(-0.5+0.2*i,0,1.57-1.37*i)
  414. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  415. LW.C0=cf(-1.5,0.5,0)*euler(-0.5+0.2*i,0,-1.57+1.37*i)
  416. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  417. RH.C0=cf(0.5,-1,0)*euler(-1+0.7*i,0,0.2)
  418. RH.C1=cf(0,1,0)
  419. LH.C0=cf(-0.5,-1,0)*euler(-1+0.7*i,0,-0.2)
  420. LH.C1=cf(0,1,0)
  421. BPRef.CFrame=BPRef.CFrame*cf(0,0,-0.1)
  422. BodPos.position=BPRef.Position
  423. end
  424. --wait(0.5)
  425. for i=0,1,0.02 do
  426. wait()
  427. Neck.C0=cf(0,1,0)*euler(0.2*i,0,0)
  428. RW.C0=cf(1.5,0.5,0)*euler(-0.3+1.5*i,0,0.2+0.2*i)
  429. LW.C0=cf(-1.5,0.5,0)*euler(-0.3+1.5*i,0,-0.2-0.2*i)
  430. end
  431. for i=0,1,0.1 do
  432. wait()
  433. RW.C0=cf(1.5-0.3*i,0.5,-0.5*i)*euler(1.2+0.37*i,0,0.4-1.57*i)
  434. LW.C0=cf(-1.5+0.3*i,0.5,-0.5*i)*euler(1.2+0.37*i,0,-0.4+1.57*i)
  435. end
  436. MagicCircle(BrickColor.new("Really black"),RootPart.CFrame,4,4,4,3,3,3,0.04)
  437.  
  438. Crystals={}
  439. numb=0
  440. for i=1,4 do
  441. local Cryst1=part(3,Character,0,0,BrickColor.new("Black"),"Crystal",vt())
  442. local CrystMsh=mesh("SpecialMesh",Cryst1,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1.5,2,1.5))
  443. Cryst1.Anchored=true
  444. Cryst1.CFrame=RootPart.CFrame*euler(0,numb,0)*cf(0,0,5)
  445. MagicCrystal(BrickColor.new("Really black"),Cryst1.CFrame,1,1,1,0.2,0.4,0.2,0.1)
  446. numb=numb+1.57
  447. table.insert(Crystals,Cryst1)
  448. end
  449. wait(0.5)
  450. for i=0,1,0.05 do
  451. wait()
  452. Neck.C0=cf(0,1,0)*euler(0.2-0.2*i,0,0)
  453. RW.C0=cf(1.2+0.3*i,0.5,-0.5+0.5*i)*euler(1.57-1.57*i,0,-1.17+1.27*i)
  454. LW.C0=cf(-1.2-0.3*i,0.5,-0.5+0.5*i)*euler(1.57-1.67*i,0,1.17-1.27*i)
  455. end
  456. for i=0,1,0.1 do
  457. wait()
  458. RW.C0=cf(1.5,0.5,0)*euler(3.2*i,0,0.1-0.1*i)
  459. LW.C0=cf(-1.5,0.5,0)*euler(-0.1+0.1*i,0,-0.1-0.3*i)
  460. end
  461. wait(0.5)
  462. for i=1,#Crystals do
  463. Crystals[i].Parent=nil
  464. MagicCircle(BrickColor.new("Really black"),Crystals[i].CFrame,10,10,10,0.5,8,0.5,0.1)
  465. wait(0.2)
  466. end
  467. for i=0,1,0.04 do
  468. wait()
  469. RW.C0=cf(1.5,0.5,0)*euler(3.2-3.2*i,0,0.1)
  470. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.1-0.3+0.3*i)
  471. end
  472. wait(0.5)
  473. for i=0,1,0.05 do
  474. wait()
  475. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.1+1.37*i)
  476. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.1-1.37*i)
  477. end
  478. numb=2
  479. for i=0,1,0.1 do
  480. wait()
  481. RW.C0=cf(1.5,0.5,0)*euler(0,0,1.47+0.1*i*numb)
  482. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.47-0.1*i*numb)
  483. numb=numb-0.1
  484. end
  485. RW.C0=cf(1.5,0.5,0)*euler(0,0,1.57)
  486. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.57)
  487. SummonCrystals()
  488. --wait(3.5)
  489. for i=0,1,0.1 do
  490. wait()
  491. RW.C0=cf(1.5,0.5,0)*euler(0.1*i,0,1.57-1.47*i)
  492. LW.C0=cf(-1.5,0.5,0)*euler(0.1*i,0,-1.57+1.47*i)
  493. end
  494. for i=0,1,0.1 do
  495. wait()
  496. RootJoint.C0=cf(0,0,0)*euler(0.2-0.1*i,0,0)
  497. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0.1+1.37*i,0,0.1-1.37*i)
  498. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0.1+1.07*i,0,-0.1+1.17*i)
  499. end
  500. n=2
  501. for i=0,1,0.1 do
  502. wait()
  503. Neck.C0=cf(0,1,0)*euler(-0.2*i*n,0,0)
  504. RootJoint.C0=cf(0,0,0)*euler(0.1-0.1*i*n,0,0)
  505. RW.C0=cf(1,0.5,-0.5)*euler(1.47+0.1*i*n,0,-1.27-0.1*i*n)
  506. LW.C0=cf(-1,0.5,-0.5)*euler(1.17+0.1*i*n,0,1.07+0.1*i*n)
  507. n=n-0.1
  508. end
  509. --[[local Shield1=part(3,Character,0,1,BrickColor.new("Dark stone grey"),"Shield1",vt())
  510. local Smsh1=mesh("SpecialMesh",Shield1,"FileMesh","http://www.roblox.com/asset/?id=90782182",vt(0,0,0),vt(0.4,0.5,0.4))
  511. Smsh1.TextureId="http://www.roblox.com/asset/?id=90782359"
  512. Smsh1.VertexColor=vt(0.5,0.5,0.5)
  513. local swld1=weld(Torso,Torso,Shield1,cf(0,1.45,0))
  514. local Shield2=part(3,Character,0,1,BrickColor.new("Dark stone grey"),"Shield2",vt())
  515. local Smsh2=mesh("SpecialMesh",Shield2,"FileMesh","http://www.roblox.com/asset/?id=90782182",vt(0,0,0),vt(0.4,0.5,0.4))
  516. Smsh2.TextureId="http://www.roblox.com/asset/?id=90782359"
  517. Smsh2.VertexColor=vt(0.5,0.5,0.5)
  518. local swld1=weld(Torso,Torso,Shield2,cf(0,-1.45,0)*euler(3.14,0,0))
  519. coroutine.resume(coroutine.create(function(Part1,Mesh1,Part2,Mesh2)
  520. for i=1,0.5,-0.02 do
  521. wait()
  522. Part1.Transparency=i
  523. Part2.Transparency=i
  524. end
  525. wait(1)
  526. for i=0.5,1,0.01 do
  527. wait()
  528. Part1.Transparency=i
  529. Part2.Transparency=i
  530. end
  531. end),Shield1,Smsh1,Shield2,Smsh2)]]
  532. wait(1)
  533. n=2
  534. num=1
  535. for i=0,1,0.02 do
  536. wait()
  537. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.57-1.57*i*n,0,-1.37+1.57*i*n)
  538. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.27-1.27*i*n,0,1.17-1.37*i*n)
  539. n=n-0.02
  540. end
  541. wait(5)
  542. else
  543. print("NOE INTRO")
  544. --music.Value=true
  545. coroutine.resume(coroutine.create(function(Leg1,Leg2)
  546. while DarkLegEffect==true do
  547. wait(0.1)
  548. MagicBlock(BrickColor.new("Really black"),Leg1.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  549. MagicBlock(BrickColor.new("Really black"),Leg2.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  550. end
  551. end),RightLeg,LeftLeg)
  552.  
  553. for _,c in pairs(Character:children()) do
  554. if c.className=="Part" and c.Name~="HumanoidRootPart" and c.Name~="Reference" then
  555. c.Transparency=0
  556. end
  557. end
  558. Neck.C0=cf(0,1,0)*euler(-0.2,0,0)
  559. RootJoint.C0=cf(0,0,0)*euler(0,0,0)
  560. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.2)
  561. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  562. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  563. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  564. RH.C0=cf(0.5,-1,0)*euler(-0.3,0,0.2)
  565. RH.C1=cf(0,1,0)
  566. LH.C0=cf(-0.5,-1,0)*euler(-0.3,0,-0.2)
  567. LH.C1=cf(0,1,0)
  568. wait(1)
  569. end
  570. print("START BOSS BATTLE")
  571.  
  572. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  573. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  574. end
  575.  
  576. function findNearestTorso(pos)
  577. local list = game.Workspace:children()
  578. local torso = nil
  579. local dist = 1000
  580. local temp = nil
  581. local human = nil
  582. local temp2 = nil
  583. for x = 1, #list do
  584. temp2 = list[x]
  585. if (temp2.className == "Model") and (temp2.Name~="Vanta") and temp2.Name~="Crystal" then
  586. temp = temp2:findFirstChild("Torso")
  587. human = temp2:findFirstChild("Humanoid")
  588. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  589. if (temp.Position - pos).magnitude < dist then
  590. torso = temp
  591. dist = (temp.Position - pos).magnitude
  592. end
  593. end
  594. end
  595. end
  596. return torso,dist
  597. end
  598.  
  599. function findRandomTorso(pos)
  600. local list = game.Workspace:children()
  601. local torso = nil
  602. local dist = 1000
  603. local temp = nil
  604. local human = nil
  605. local temp2 = nil
  606. local list2 = {}
  607. for x = 1, #list do
  608. temp2 = list[x]
  609. if (temp2.className == "Model") and (temp2.Name~="Vanta") and temp2.Name~="Crystal" then
  610. temp = temp2:findFirstChild("Torso")
  611. human = temp2:findFirstChild("Humanoid")
  612. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  613. if pos.magnitude < dist then
  614. torso = temp
  615. table.insert(list2,temp)
  616. end
  617. end
  618. end
  619. end
  620. if #list2>0 then
  621. rand=math.random(1,#list2)
  622. return list2[rand],dist
  623. else
  624. return nil,dist
  625. end
  626. end
  627.  
  628. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay)
  629. if hit.Parent==nil then
  630. return
  631. end
  632. CPlayer=Bin
  633. h=hit.Parent:FindFirstChild("Humanoid")
  634. for _,v in pairs(hit.Parent:children()) do
  635. if v:IsA("Humanoid") then
  636. h=v
  637. end
  638. end
  639. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
  640. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  641. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  642. return
  643. end]]
  644. -- hs(hit,1.2)
  645. c=Instance.new("ObjectValue")
  646. c.Name="creator"
  647. c.Value=game:service("Players").LocalPlayer
  648. c.Parent=h
  649. game:GetService("Debris"):AddItem(c,.5)
  650. Damage=math.random(minim,maxim)
  651. -- h:TakeDamage(Damage)
  652. blocked=false
  653. block=hit.Parent:findFirstChild("Block")
  654. if block~=nil then
  655. if block.className=="IntValue" then
  656. if block.Value>0 then
  657. blocked=true
  658. block.Value=block.Value-1
  659. end
  660. end
  661. end
  662. if blocked==false then
  663. -- h:TakeDamage(Damage)
  664. h.Health=h.Health-Damage
  665. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  666. else
  667. h.Health=h.Health-(Damage/2)
  668. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  669. end
  670. if Type=="Knockdown" then
  671. hum=hit.Parent.Humanoid
  672. hum.PlatformStand=true
  673. coroutine.resume(coroutine.create(function(HHumanoid)
  674. wait(1)
  675. HHumanoid.PlatformStand=false
  676. end),hum)
  677. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  678. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  679. local bodvol=Instance.new("BodyVelocity")
  680. bodvol.velocity=angle*knockback
  681. bodvol.P=5000
  682. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  683. bodvol.Parent=hit
  684. rl=Instance.new("BodyAngularVelocity")
  685. rl.P=3000
  686. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  687. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  688. rl.Parent=hit
  689. game:GetService("Debris"):AddItem(bodvol,.5)
  690. game:GetService("Debris"):AddItem(rl,.5)
  691. elseif Type=="Normal" then
  692. vp=Instance.new("BodyVelocity")
  693. vp.P=500
  694. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  695. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  696. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  697. if knockback>0 then
  698. vp.Parent=hit.Parent.Torso
  699. end
  700. game:GetService("Debris"):AddItem(vp,.5)
  701. elseif Type=="Up" then
  702. local bodyVelocity=Instance.new("BodyVelocity")
  703. bodyVelocity.velocity=vt(0,20,0)
  704. bodyVelocity.P=5000
  705. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  706. bodyVelocity.Parent=hit
  707. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  708. elseif Type=="Snare" then
  709. bp=Instance.new("BodyPosition")
  710. bp.P=2000
  711. bp.D=100
  712. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  713. bp.position=hit.Parent.Torso.Position
  714. bp.Parent=hit.Parent.Torso
  715. game:GetService("Debris"):AddItem(bp,1)
  716. elseif Type=="Freeze" then
  717. BodPos2=Instance.new("BodyPosition")
  718. BodPos2.P=50000
  719. BodPos2.D=1000
  720. BodPos2.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  721. BodPos2.position=hit.Parent.Torso.Position
  722. BodPos2.Parent=hit.Parent.Torso
  723. BodGy2 = it("BodyGyro")
  724. BodGy2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  725. BodGy2.P = 20e+003
  726. BodGy2.Parent=hit.Parent.Torso
  727. BodGy2.cframe = hit.Parent.Torso.CFrame
  728. hit.Parent.Torso.Anchored=true
  729. coroutine.resume(coroutine.create(function(Part)
  730. wait(1.5)
  731. Part.Anchored=false
  732. end),hit.Parent.Torso)
  733. game:GetService("Debris"):AddItem(BodPos2,3)
  734. game:GetService("Debris"):AddItem(BodGy2,3)
  735. end
  736. debounce=Instance.new("BoolValue")
  737. debounce.Name="DebounceHit"
  738. debounce.Parent=hit.Parent
  739. debounce.Value=true
  740. game:GetService("Debris"):AddItem(debounce,Delay)
  741. c=Instance.new("ObjectValue")
  742. c.Name="creator"
  743. c.Value=Player
  744. c.Parent=h
  745. game:GetService("Debris"):AddItem(c,.5)
  746. CRIT=false
  747. hitDeb=true
  748. AttackPos=6
  749. end
  750. end
  751.  
  752. showDamage=function(Char,Dealt,du,Color)
  753. m=Instance.new("Model")
  754. m.Name=tostring(Dealt)
  755. h=Instance.new("Humanoid")
  756. h.Health=0
  757. h.MaxHealth=0
  758. h.Parent=m
  759. c=Instance.new("Part")
  760. c.Transparency=0
  761. c.BrickColor=Color
  762. c.Name="Head"
  763. c.TopSurface=0
  764. c.BottomSurface=0
  765. c.formFactor="Plate"
  766. c.Size=Vector3.new(1,.4,1)
  767. ms=Instance.new("CylinderMesh")
  768. ms.Scale=Vector3.new(.8,.8,.8)
  769. if CRIT==true then
  770. ms.Scale=Vector3.new(1,1.25,1)
  771. end
  772. ms.Parent=c
  773. c.Reflectance=0
  774. Instance.new("BodyGyro").Parent=c
  775. c.Parent=m
  776. if Char:findFirstChild("Head")~=nil then
  777. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  778. else
  779. c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0))
  780. end
  781. f=Instance.new("BodyPosition")
  782. f.P=2000
  783. f.D=100
  784. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  785. f.position=c.Position+Vector3.new(0,3,0)
  786. f.Parent=c
  787. game:GetService("Debris"):AddItem(m,.5+du)
  788. c.CanCollide=false
  789. m.Parent=workspace
  790. c.CanCollide=false
  791. end
  792.  
  793. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,base)
  794. for _,c in pairs(workspace:children()) do
  795. local hum=c:findFirstChild("Humanoid")
  796. if hum~=nil then
  797. local head=c:findFirstChild("Torso")
  798. if head~=nil then
  799. local targ=head.Position-Part.Position
  800. local mag=targ.magnitude
  801. if mag<=magni and c.Name~=Character.Name then
  802. Damagefunc(head,mindam,maxdam,knock,Type,base,0)
  803. end
  804. end
  805. end
  806. end
  807. end
  808.  
  809.  
  810. local HealtVal=Instance.new("IntValue")
  811. HealtVal.Name="Max Health Value"
  812. HealtVal.Parent=Character
  813. HealtVal.Value=5000
  814. local HealtVal2=Instance.new("IntValue")
  815. HealtVal2.Name="Current Health Value"
  816. HealtVal2.Parent=Character
  817. HealtVal2.Value=5000
  818. local HealthNum=Instance.new("IntValue")
  819. HealthNum.Name="Divis Numb"
  820. HealthNum.Parent=Character
  821. HealthNum.Value=HealtVal2.Value/3
  822. local HealthNumber=1666
  823. Anim=Instance.new("StringValue")
  824. Anim.Name="Animation"
  825. Anim.Parent=Character
  826. Anim.Value="Walking"
  827. mode=Mode
  828. local target,distance=nil,nil
  829. local attacking=false
  830. while Humanoid.Health>0 do
  831. wait()
  832. while mode.Value==2 do
  833. Humanoid.PlatformStand=false
  834. Humanoid.Sit=false
  835. if Torso.Parent==nil or Humanoid.Health<=0 then
  836. Humanoid.Parent=nil
  837. RootPart.Parent=Character
  838. BPRef.CFrame=workspace.Base.CFrame*cf(0,100,0)*euler(0,1.57,0)
  839. BodPos.position=BPRef.Position
  840. BodPos.Parent=RootPart
  841. RootPart.CFrame=BPRef.CFrame
  842. BodPos.position=BPRef.Position
  843. Torso.Parent=Character
  844. Head.Parent=Character
  845. LeftArm.Parent=Character
  846. RightArm.Parent=Character
  847. LeftLeg.Parent=Character
  848. RightLeg.Parent=Character
  849.  
  850. Neck.Parent=Torso
  851. RootJoint.Parent=Torso
  852. RW.Parent=Torso
  853. LW.Parent=Torso
  854. RH.Parent=Torso
  855. LH.Parent=Torso
  856. wait(.1)
  857. Humanoid.MaxHealth=math.huge
  858. Humanoid.Health=math.huge
  859. coroutine.resume(coroutine.create(function()
  860. for i=1,20 do
  861. Humanoid.Health=math.huge
  862. Neck.Parent=Torso
  863. RootJoint.Parent=Torso
  864. RW.Parent=Torso
  865. LW.Parent=Torso
  866. RH.Parent=Torso
  867. LH.Parent=Torso
  868. end
  869. Humanoid:TakeDamage(1)
  870. end))
  871.  
  872. end
  873. RH.C0=cf(0.5,-1,0)*euler(-0.3,0,0.2)
  874. RH.C1=cf(0,1,0)
  875. LH.C0=cf(-0.5,-1,0)*euler(-0.3,0,-0.2)
  876. LH.C1=cf(0,1,0)
  877. BodPos.maxForce=vt(math.huge,math.huge,math.huge)
  878. local move=1
  879. if math.random(1,2)==1 then
  880. move=1
  881. target,distance=findRandomTorso(Torso.Position)
  882. else
  883. move=2
  884. target,distance=findNearestTorso(Torso.Position)
  885. end
  886. if target~=nil then
  887. if math.random(1,5)==1 then
  888. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  889. local pos=cf(math.random(-10,10),math.random(50,70),math.random(-10,10))
  890. BPRef.CFrame=cf(target.Position)*pos
  891. Torso.CFrame=BPRef.CFrame
  892. BodPos.position=BPRef.Position
  893. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  894. end
  895. BodGy.cframe=CF*euler(0,math.random(-50,50),0)
  896. local pos=cf(math.random(-10,10),math.random(50,70),math.random(-10,10))
  897. --BPRef.CFrame=cf(target.Position)*pos
  898. --BodPos.position=BPRef.Position
  899. attack=math.random(1,3)
  900. attacking=true
  901. if attack==1 then --Dark Rain
  902. coroutine.resume(coroutine.create(function()
  903. while attacking==true do
  904. wait()
  905. BPRef.CFrame=cf(target.Position)*pos
  906. BodPos.position=BPRef.Position
  907. end
  908. end))
  909. n=2
  910. for i=0,1,0.1 do
  911. wait()
  912. Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0)
  913. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.2-0.2*i*n)
  914. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2-0.2*i*n)
  915. n=n-0.1
  916. end
  917. for i=1,math.random(10,20) do
  918. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  919. so("http://roblox.com/asset/?id=183763498",orb,1,1.2)
  920. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  921. local owld=weld(orb,orb,Torso,cf(0,-5,0))
  922. MagicCircle(BrickColor.new("Really black"),orb.CFrame,10,10,10,1,1,1,0.1)
  923. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  924. local ceef1=math.random(-50,50)
  925. local ceef2=math.random(-2,8)
  926. local ceef3=math.random(100,200)/100
  927. local n=2
  928. for i=0,1,0.1 do
  929. wait()
  930. Part.Transparency=Part.Transparency-0.07
  931. owld.C0=cf(ceef2*i*n,-5,0)*euler(ceef3*i*n,ceef1,0)
  932. n=n-0.1
  933. end
  934. wait(1)
  935. Part.Parent=nil
  936. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  937. local TheHit=Part.Position+vt(0,-1,0)
  938. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  939. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  940. local mag=(Part.Position-pos).magnitude
  941. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  942. MagicBlock(BrickColor.new("Really black"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  943. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,6,6,6,0.1)
  944. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  945. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  946. ref.CFrame=cf(pos)
  947. so("http://roblox.com/asset/?id=183763487",ref,1,1)
  948. coroutine.resume(coroutine.create(function(Part)
  949. wait(1)
  950. Part.Parent=nil
  951. end),ref)
  952. MagniDamage(ref,15,5,10,0,"Normal",RootPart)
  953. if hit~=nil then
  954. Damagefunc(hit,20,40,1,"Knockdown",RootPart,0)
  955. end
  956. end),orb,omsh,owld)
  957. wait(0.2)
  958. end
  959. n=2
  960. for i=0,1,0.1 do
  961. wait()
  962. Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  963. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.2*i*n)
  964. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.4+0.2*i*n)
  965. n=n-0.1
  966. end
  967. attacking=false
  968. wait(2)
  969. elseif attack==2 then --Nocturne
  970. coroutine.resume(coroutine.create(function()
  971. while attacking==true do
  972. wait()
  973. Pos=target.Position
  974. BodGy.cframe=cf(Torso.Position,Pos)
  975. end
  976. end))
  977. n=2
  978. for i=0,1,0.1 do
  979. wait()
  980. Neck.C0=cf(0,1,0)*euler(-0.2+0.2*i*n,0,0)
  981. RW.C0=cf(1.5,0.5,0)*euler(1.57*i*n,0,0.2-0.6*i*n)
  982. LW.C0=cf(-1.5,0.5,0)*euler(1.57*i*n,0,-0.2+0.6*i*n)
  983. n=n-0.1
  984. end
  985. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  986. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  987. local owld=weld(orb,orb,Torso,cf(0,-0.5,3))
  988. so("http://roblox.com/asset/?id=137463716",orb,1,0.6)
  989. for i=1,0.3,-0.01 do
  990. wait()
  991. orb.Transparency=i
  992. omsh.Scale=omsh.Scale+vt(0.2,0.2,0.2)
  993. MagicBlock(BrickColor.new("Really black"),orb.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  994. local ef=part(3,workspace,0,0,BrickColor.new("Really black"),"Effect",vt())
  995. ef.Anchored=true
  996. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  997. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(5,10),0)
  998. ef.CFrame=orb.CFrame*ceef
  999. game:GetService("Debris"):AddItem(ef,2)
  1000. coroutine.resume(coroutine.create(function(Part,Mesh)
  1001. for i=0,1,0.1 do
  1002. wait()
  1003. Part.Transparency=i
  1004. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1005. end
  1006. Part.Parent=nil
  1007. end),ef,emsh)
  1008. end
  1009. attacking=false
  1010. wait(1)
  1011. orb.Parent=nil
  1012. local hit,pos = rayCast(orb.Position,Head.CFrame.lookVector,999,Character)
  1013. print(hit)
  1014. local mag=(orb.Position-pos).magnitude
  1015. MagicCircle(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  1016. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  1017. MagicCylinder(BrickColor.new("Really black"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  1018. for i=1,2 do
  1019. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  1020. end
  1021. for i=1,5 do
  1022. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  1023. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  1024. end
  1025. for i=0,5 do
  1026. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  1027. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  1028. end
  1029. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1030. ref.CFrame=cf(pos)
  1031. so("http://roblox.com/asset/?id=183763506",Torso,1,0.6)
  1032. so("http://roblox.com/asset/?id=178452221",Torso,1,0.6)
  1033. so("http://www.roblox.com/Asset?ID=87767777",Torso,1,1)
  1034. so("http://roblox.com/asset/?id=183763506",ref,1,0.6)
  1035. so("http://roblox.com/asset/?id=178452221",ref,1,0.6)
  1036. so("http://www.roblox.com/Asset?ID=87767777",ref,1,1)
  1037. coroutine.resume(coroutine.create(function(Part)
  1038. wait(1)
  1039. Part.Parent=nil
  1040. end),ref)
  1041. MagniDamage(ref,20,10,30,40,"Knockdown",ref)
  1042. if hit~=nil then
  1043. Damagefunc(hit,30,70,50,"Knockdown",RootPart,0)
  1044. end
  1045. wait(1)
  1046. n=2
  1047. for i=0,1,0.1 do
  1048. wait()
  1049. Neck.C0=cf(0,1,0)*euler(-0.2*i*n,0,0)
  1050. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,0.2-0.6+0.6*i*n)
  1051. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-0.2+0.6-0.6*i*n)
  1052. n=n-0.1
  1053. end
  1054. elseif attack==3 then --Terror blast
  1055. n=2
  1056. for i=0,1,0.1 do
  1057. wait()
  1058. Neck.C0=cf(0,1,0)*euler(-0.2-0.2*i*n,0,0)
  1059. RW.C0=cf(1.5-0.5*i*n,0.5,-0.5*i*n)*euler(1.4*i*n,0,0.2-1.4*i*n)
  1060. LW.C0=cf(-1.5+0.5*i*n,0.5,-0.5*i*n)*euler(1.6*i*n,0,-0.2+1.6*i*n)
  1061. n=n-0.1
  1062. end
  1063. so("http://roblox.com/asset/?id=160772554",Torso,1,0.6)
  1064. so("http://roblox.com/asset/?id=161006069",Torso,1,0.6)
  1065. local charging=true
  1066. for _,c in pairs(workspace:children()) do
  1067. if c.className=="Model" then
  1068. if c:findFirstChild("Torso")~=nil and c:findFirstChild("Humanoid")~=nil and c.Name~="Vanta" then
  1069. print(c)
  1070. local Tors=c:findFirstChild("Torso")
  1071. coroutine.resume(coroutine.create(function(Part)
  1072. local ef=part(3,Character,0,0.5,BrickColor.new("Really black"),"Laser",vt(0.2,0.2,0.2))
  1073. ef.Anchored=true
  1074. local emsh=mesh("SpecialMesh",ef,"Head","",vt(0,0,0),vt(1,1,1))
  1075. game:GetService("Debris"):AddItem(ef,5)
  1076. while charging==true do
  1077. wait()
  1078. local TheHit=Part.Position
  1079. local MouseLook=cf((Torso.Position+TheHit)/2,TheHit)
  1080. local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character)
  1081. local mag=(Torso.Position-pos).magnitude
  1082. ef.CFrame=CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0)
  1083. emsh.Scale=vt(1,mag*5,1)
  1084. end
  1085. ef.Parent=nil
  1086. local TheHit=Part.Position
  1087. local MouseLook=cf((Torso.Position+TheHit)/2,TheHit)
  1088. wait()
  1089. local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character)
  1090. local mag=(Torso.Position-pos).magnitude
  1091. if hit~=nil then
  1092. Damagefunc(hit,20,40,50,"Knockdown",RootPart,0)
  1093. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,6,6,6,0.02)
  1094. MagicBlock(BrickColor.new("Really black"),cf(pos),5,5,5,7,7,7,0.02)
  1095. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0),5,mag*5,5,0.5,0,0.5,0.01)
  1096. so("http://roblox.com/asset/?id=183763515",hit,1,1)
  1097. so("http://roblox.com/asset/?id=183763512",hit,1,1)
  1098. end
  1099. end),Tors)
  1100. end
  1101. end
  1102. end
  1103. wait(1)
  1104. n=2
  1105. for i=0,1,0.2 do
  1106. wait()
  1107. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  1108. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n)
  1109. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n)
  1110. n=n-0.2
  1111. end
  1112. charging=false
  1113. wait(1)
  1114. n=2
  1115. for i=0,1,0.1 do
  1116. wait()
  1117. Neck.C0=cf(0,1,0)*euler(-0.2,0,0)
  1118. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.37*i*n)
  1119. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.37*i*n)
  1120. n=n-0.1
  1121. end
  1122. wait(2)
  1123. end
  1124. attacking=false
  1125. else
  1126. print("CAN'T FIND TARGET")
  1127. end
  1128. wait(1)
  1129. end
  1130. Humanoid.MaxHealth=HealtVal.Value
  1131. Humanoid.Health=HealtVal2.Value
  1132. coroutine.resume(coroutine.create(function()
  1133. for i=1,20 do
  1134. Humanoid.Health=HealtVal2.Value
  1135. end
  1136. Humanoid:TakeDamage(1)
  1137. end))
  1138.  
  1139. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  1140. BPRef.CFrame=MainPosition
  1141. Torso.CFrame=BPRef.CFrame
  1142. BodPos.position=BPRef.Position
  1143. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  1144. BodGy.cframe=CF
  1145. wait(0.5)
  1146. n=2
  1147. for i=0,1,0.05 do
  1148. wait()
  1149. BPRef.CFrame=MainPosition*cf(0,-60*i,0)
  1150. BodPos.position=BPRef.Position
  1151. Neck.C0=cf(0,1,0)*euler(-0.2-0.2*i*n,0,0)
  1152. RW.C0=cf(1.5-0.5*i*n,0.5,-0.5*i*n)*euler(1.4*i*n,0,0.2-1.4*i*n)
  1153. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1154. LW.C0=cf(-1.5+0.5*i*n,0.5,-0.5*i*n)*euler(1.6*i*n,0,-0.2+1.6*i*n)
  1155. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1156. RH.C0=cf(0.5,-1,0)*euler(-0.3+0.3*i*n,0,0.2)
  1157. RH.C1=cf(0,1,0)
  1158. LH.C0=cf(-0.5,-1,0)*euler(-0.3+0.3*i*n,0,-0.2)
  1159. LH.C1=cf(0,1,0)
  1160. n=n-0.05
  1161. end
  1162. wait(1)
  1163. DarkLegEffect=false
  1164. local Head2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Head",vt(10,5,5))
  1165. local Torso2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Torso",vt(10,10,5))
  1166. local LeftArm2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Left Arm",vt(5,10,5))
  1167. local RightArm2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Right Arm",vt(5,10,5))
  1168. local LeftLeg2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Left Leg",vt(5,10,5))
  1169. local RightLeg2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Right Leg",vt(5,10,5))
  1170. Head2.CFrame=Head.CFrame
  1171. Torso2.CFrame=Head.CFrame
  1172. LeftArm2.CFrame=Head.CFrame
  1173. RightArm2.CFrame=Head.CFrame
  1174. LeftLeg2.CFrame=Head.CFrame
  1175. RightLeg2.CFrame=Head.CFrame
  1176.  
  1177. local HMesh2=mesh("SpecialMesh",Head2,"Head","",vt(0,0,0),vt(1.25,1.25,1.25))
  1178.  
  1179. local Neck2=weld(Torso2,Torso2,Head2,cf(0,5,0))
  1180. Neck2.C1=cf(0,-2.5,0)
  1181. local RW2=weld(Torso2,Torso2,RightArm2,cf(7.5,2.5,0))
  1182. RW2.C1=cf(0,2.5,0)
  1183. local LW2=weld(Torso2,Torso2,LeftArm2,cf(-7.5,2.5,0))
  1184. LW2.C1=cf(0,2.5,0)
  1185. local RH2=weld(Torso2,Torso2,RightLeg2,cf(2.5,-5,0))
  1186. RH2.C1=cf(0,5,0)
  1187. local LH2=weld(Torso2,Torso2,LeftLeg2,cf(-2.5,-5,0))
  1188. LH2.C1=cf(0,5,0)
  1189. local RootJoint2=weld(Torso2,Torso2,Torso,cf(0,2.5,0))
  1190. local DarkBody=true
  1191. local cf1=0
  1192. local cf2=4
  1193. local cf3=0
  1194. local cf4=6
  1195. local cf5=2
  1196. local cf6=0
  1197. local cf7=-6
  1198. local cf8=2
  1199. local cf9=0
  1200. local cf10=2
  1201. local cf11=-4
  1202. local cf12=0
  1203. local cf13=-2
  1204. local cf14=-4
  1205. local cf15=0
  1206. coroutine.resume(coroutine.create(function()
  1207. --Destroy all CC, Dark body assume angles of normal body
  1208. while DarkBody==true do
  1209. wait()
  1210. for _,c in pairs(Character:children()) do
  1211. for _,v in pairs(c:children()) do
  1212. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  1213. if v.Name~="VantaGyro" and v.Name~="VantaPos" then
  1214. print("dai")
  1215. v.Parent=nil
  1216. end
  1217. end
  1218. end
  1219. end
  1220. Neck2.C0=cf(cf1,cf2,cf3)*Neck.C0
  1221. RW2.C0=cf(cf4,cf5,cf6)*RW.C0
  1222. LW2.C0=cf(cf7,cf8,cf9)*LW.C0
  1223. RH2.C0=cf(cf10,cf11,cf12)*RH.C0
  1224. LH2.C0=cf(cf13,cf14,cf15)*LH.C0
  1225. end
  1226. end))
  1227. n=2
  1228. n2=1
  1229. for i=0,1,0.1 do
  1230. wait()
  1231. Neck.C0=cf(0,1,0)*euler(-0.4+0.4*i*n,0,0)
  1232. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n)
  1233. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1234. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n)
  1235. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1236. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2+0.2*i*n)
  1237. RH.C1=cf(0,1,0)
  1238. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2-0.2*i*n)
  1239. LH.C1=cf(0,1,0)
  1240. Head2.Transparency=n2
  1241. Torso2.Transparency=n2
  1242. LeftArm2.Transparency=n2
  1243. RightArm2.Transparency=n2
  1244. LeftLeg2.Transparency=n2
  1245. RightLeg2.Transparency=n2
  1246. n=n-0.1
  1247. n2=n2-0.05
  1248. end
  1249. wait(0.5)
  1250. RootJoint.C0=cf(0,-14.5,0)*euler(0,0,0)
  1251. BodPos.Parent=nil
  1252. Humanoid.WalkSpeed=25
  1253. n=2
  1254. for i=0,1,0.1 do
  1255. wait()
  1256. Neck.C0=cf(0,1,0)*euler(-0.2*i*n,0,0)
  1257. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.27*i*n)
  1258. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1259. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.27*i*n)
  1260. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1261. RH.C0=cf(0.5,-1,0)*euler(0,0,0.4-0.4*i*n)
  1262. RH.C1=cf(0,1,0)
  1263. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.4+0.4*i*n)
  1264. LH.C1=cf(0,1,0)
  1265. n=n-0.1
  1266. end
  1267. BodGy.maxTorque=Vector3.new(40000000,400000000,40000000)
  1268. BodGy.P=2000
  1269. BodGy.D=100
  1270. --BodGy.cframe=CF*euler(0,0,0)
  1271. coroutine.resume(coroutine.create(function()
  1272. --Movement function
  1273. local flying=false
  1274. while DarkBody==true do
  1275. wait()
  1276. --[[print(RootPart.Velocity.z)
  1277. if RootPart.Velocity.x>=6 or RootPart.Velocity.x<=-6 or RootPart.Velocity.z>=6 or RootPart.Velocity.z<=6 then
  1278. Anim.Value="Walking"
  1279. else
  1280. Anim.Value="Standing"
  1281. end]]
  1282. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1283. if flying==true then
  1284. Anim.Value="Flying"
  1285. elseif torvel<1 then
  1286. Anim.Value="Standing"
  1287. elseif torvel<30 then
  1288. Anim.Value="Walking"
  1289. end
  1290. target=findNearestTorso(RootPart.Position)
  1291. local hit,pos=rayCast(RootPart.Position,cf(RootPart.Position,RootPart.Position-vt(0,1,0)).lookVector,50,Character)
  1292. if hit==nil and flying==false then
  1293. flying=true
  1294. BodPos.maxForce=vt(0,math.huge,0)
  1295. if target~=nil then
  1296. BodPos.position=target.Position
  1297. else
  1298. BodPos.position=Torso2.Position
  1299. end
  1300. BodPos.Parent=RootPart
  1301. coroutine.resume(coroutine.create(function()
  1302. local ground=false
  1303. while ground==false do
  1304. wait()
  1305. if target~=nil then
  1306. BodPos.position=target.Position
  1307. end
  1308. local hit,pos=rayCast(RootPart.Position,cf(RootPart.Position,RootPart.Position-vt(0,1,0)).lookVector,50,Character)
  1309. if hit~=nil then
  1310. ground=true
  1311. flying=false
  1312. end
  1313. end
  1314. BodPos.Parent=nil
  1315. end))
  1316. end
  1317. if target~=nil then
  1318. local pos=Vector3.new(target.Parent.Torso.Position.x,RootPart.Position.Y,target.Parent.Torso.Position.z)
  1319. BodGy.cframe=cf(RootPart.Position,pos)
  1320. Humanoid:MoveTo(target.Position)
  1321. end
  1322. end
  1323. end))
  1324. coroutine.resume(coroutine.create(function()
  1325. --Movement animations
  1326. --[[function onRunning(speed)
  1327. if speed>1 then
  1328. Anim.Value="Walking"
  1329. else
  1330. Anim.Value="Standing"
  1331. end
  1332. end
  1333. Humanoid.Running:connect(onRunning)]]
  1334. local con1=nil
  1335. local con2=nil
  1336.  
  1337. while DarkBody==true do
  1338. wait()
  1339. local walkingoffset1=0
  1340. local walkingoffset2=0
  1341. if attacking==false then
  1342. if Anim.Value=="Standing" then
  1343. RH.C0=cf(0.5,-1,0)*euler(0,0,0)
  1344. RH.C1=cf(0,1,0)
  1345. LH.C0=cf(-0.5,-1,0)*euler(0,0,0)
  1346. LH.C1=cf(0,1,0)
  1347. elseif Anim.Value=="Walking" then
  1348. n=2
  1349. for i=0,1,0.1 do
  1350. if Anim.Value=="Walking" then
  1351. --con1=LeftLeg2.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5) end)
  1352. --con2=RightLeg2.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5) end)
  1353. wait()
  1354. walkingoffset1=1.2*i*n
  1355. walkingoffset2=-1.2*i*n
  1356. end
  1357. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  1358. RH.C1=cf(0,1,0)
  1359. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  1360. LH.C1=cf(0,1,0)
  1361. n=n-0.1
  1362. end
  1363. while Anim.Value=="Walking" and DarkBody==true do
  1364. wait()
  1365. n=2
  1366. for i=0,1,0.05 do
  1367. if Anim.Value=="Walking" then
  1368. wait()
  1369. walkingoffset1=1.2-2.4*i*n
  1370. walkingoffset2=-1.2+2.4*i*n
  1371. end
  1372. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  1373. RH.C1=cf(0,1,0)
  1374. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  1375. LH.C1=cf(0,1,0)
  1376. n=n-0.05
  1377. end
  1378. n=2
  1379. for i=0,1,0.05 do
  1380. if Anim.Value=="Walking" then
  1381. wait()
  1382. walkingoffset1=-1.2+2.4*i*n
  1383. walkingoffset2=1.2-2.4*i*n
  1384. end
  1385. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  1386. RH.C1=cf(0,1,0)
  1387. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  1388. LH.C1=cf(0,1,0)
  1389. n=n-0.05
  1390. end
  1391. end
  1392. if Anim.Value=="Standing" then
  1393. n=2
  1394. for i=0,1,0.1 do
  1395. wait()
  1396. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1-walkingoffset1*i*n,0,0)
  1397. RH.C1=cf(0,1,0)
  1398. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2-walkingoffset2*i*n,0,0)
  1399. LH.C1=cf(0,1,0)
  1400. n=n-0.1
  1401. end
  1402. end
  1403. elseif Anim.Value=="Flying" then
  1404. while Anim.Value=="Flying" and DarkBody==true do
  1405. wait(.1)
  1406. RH.C0=cf(0.5,-1,0)*euler(-0.2,0,0.2)
  1407. RH.C1=cf(0,1,0)
  1408. LH.C0=cf(-0.5,-1,0)*euler(-0.2,0,-0.2)
  1409. LH.C1=cf(0,1,0)
  1410. MagicBlock(BrickColor.new("Really black"),LeftLeg2.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  1411. MagicBlock(BrickColor.new("Really black"),RightLeg2.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end))
  1417. coroutine.resume(coroutine.create(function()
  1418. while Humanoid.Health>=HealtVal.Value-HealthNum.Value do
  1419. wait()
  1420. end
  1421. HealthNum.Value=HealthNum.Value+HealthNumber
  1422. mode.Value=2
  1423. end))
  1424. while mode.Value==3 do
  1425. Humanoid.PlatformStand=false
  1426. Humanoid.Sit=false
  1427. Humanoid.Parent=Character
  1428. if Torso.Parent==nil then
  1429. Humanoid.Parent=Character
  1430. RootPart.Parent=Character
  1431. BodPos.position=workspace["Map"].ReferenceMiddle.Position+vt(0,50,0)
  1432. BodPos.Parent=RootPart
  1433. RootPart.CFrame=BPRef.CFrame
  1434. BPRef.CFrame=Torso.CFrame
  1435. BodPos.position=BPRef.Position
  1436. Torso.Parent=Character
  1437. Head.Parent=Character
  1438. LeftArm.Parent=Character
  1439. RightArm.Parent=Character
  1440. LeftLeg.Parent=Character
  1441. RightLeg.Parent=Character
  1442.  
  1443. Neck.Parent=Torso
  1444. RootJoint.Parent=Torso
  1445. RW.Parent=Torso
  1446. LW.Parent=Torso
  1447. RH.Parent=Torso
  1448. LH.Parent=Torso
  1449. wait(.1)
  1450. Humanoid.MaxHealth=HealtVal.Value
  1451. Humanoid.Health=HealtVal2.Value
  1452. coroutine.resume(coroutine.create(function()
  1453. for i=1,20 do
  1454. Humanoid.Health=HealtVal2.Value
  1455. Neck.Parent=Torso
  1456. RootJoint.Parent=Torso
  1457. RW.Parent=Torso
  1458. LW.Parent=Torso
  1459. RH.Parent=Torso
  1460. LH.Parent=Torso
  1461. end
  1462. Humanoid:TakeDamage(1)
  1463. end))
  1464.  
  1465. end
  1466. Neck.C0=cf(0,1,0)*euler(-0.2,0,0)
  1467. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.3)
  1468. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1469. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.3)
  1470. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1471. wait(1)
  1472. local targetting=false
  1473. if target~=nil then
  1474. targetting=true
  1475. local dist=(RootPart.Position - target.Position).magnitude
  1476. if Anim.Value=="Floating" then
  1477. dist=500
  1478. end
  1479. coroutine.resume(coroutine.create(function()
  1480. while targetting==true do
  1481. target=findNearestTorso(RootPart.Position)
  1482. if target==nil then
  1483. target=Torso2
  1484. end
  1485. wait(0)
  1486. end
  1487. end))
  1488. if dist>=50 then
  1489. attack=math.random(1,2)
  1490. if attack==1 then --Dark Rain
  1491. local n=2
  1492. for i=0,1,0.1 do
  1493. wait()
  1494. Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0)
  1495. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.3*i*n)
  1496. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1497. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3)
  1498. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1499. n=n-0.1
  1500. end
  1501. for i=1,math.random(20,40) do
  1502. wait(.05)
  1503. MagicBlock(BrickColor.new("Really black"),RightArm2.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  1504. local orb=part(3,Character,0,0.5,BrickColor.new("Really black"),"Orb",vt())
  1505. orb.Anchored=true
  1506. so("http://roblox.com/asset/?id=183763498",orb,1,1.2)
  1507. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  1508. orb.CFrame=cf(target.Position+vt(math.random(-10,10),math.random(50,100),math.random(-10,10)))
  1509. MagicCircle(BrickColor.new("Really black"),orb.CFrame,10,10,10,1,1,1,0.1)
  1510. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1511. wait(1)
  1512. Part.Parent=nil
  1513. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  1514. local TheHit=Part.Position+vt(0,-1,0)
  1515. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  1516. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  1517. local mag=(Part.Position-pos).magnitude
  1518. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  1519. MagicBlock(BrickColor.new("Really black"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  1520. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,6,6,6,0.1)
  1521. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  1522. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1523. ref.CFrame=cf(pos)
  1524. so("http://roblox.com/asset/?id=183763487",ref,1,1)
  1525. coroutine.resume(coroutine.create(function(Part)
  1526. wait(1)
  1527. Part.Parent=nil
  1528. end),ref)
  1529. MagniDamage(ref,15,5,10,0,"Normal",RootPart)
  1530. if hit~=nil then
  1531. Damagefunc(hit,20,40,1,"Knockdown",RootPart,0)
  1532. end
  1533. end),orb,omsh,owld)
  1534. end
  1535. wait(0.5)
  1536. local n=2
  1537. for i=0,1,0.1 do
  1538. wait()
  1539. Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  1540. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n)
  1541. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1542. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  1543. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1544. n=n-0.1
  1545. end
  1546. wait(1)
  1547. elseif attack==2 then --Nocturne
  1548. local n=2
  1549. for i=0,1,0.1 do
  1550. wait()
  1551. Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0)
  1552. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.9*i*n)
  1553. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1554. LW.C0=cf(-1.5,0.5,0)*euler(3.14*i*n,0,-0.3+0.9*i*n)
  1555. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1556. n=n-0.1
  1557. end
  1558. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  1559. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  1560. local owld=weld(orb,orb,Torso,cf(0,-10,0))
  1561. so("http://roblox.com/asset/?id=137463716",orb,1,0.6)
  1562. for i=1,0.3,-0.01 do
  1563. wait()
  1564. orb.Transparency=i
  1565. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  1566. MagicBlock(BrickColor.new("Really black"),orb.CFrame,15,15,15,2,2,2,0.1)
  1567. local ef=part(3,workspace,0,0,BrickColor.new("Really black"),"Effect",vt())
  1568. ef.Anchored=true
  1569. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  1570. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  1571. ef.CFrame=orb.CFrame*ceef
  1572. game:GetService("Debris"):AddItem(ef,2)
  1573. coroutine.resume(coroutine.create(function(Part,Mesh)
  1574. for i=0,1,0.1 do
  1575. wait()
  1576. Part.Transparency=i
  1577. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1578. end
  1579. Part.Parent=nil
  1580. end),ef,emsh)
  1581. end
  1582. local Pos=cf(orb.Position,target.Position).lookVector
  1583. wait(.5)
  1584. orb.Parent=nil
  1585. local hit,pos = rayCast(orb.Position,Pos,999,Character)
  1586. local mag=(orb.Position-pos).magnitude
  1587. MagicCircle(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  1588. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  1589. MagicCylinder(BrickColor.new("Really black"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  1590. for i=1,2 do
  1591. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  1592. end
  1593. for i=1,5 do
  1594. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  1595. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  1596. end
  1597. for i=0,5 do
  1598. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  1599. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  1600. end
  1601. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1602. ref.CFrame=cf(pos)
  1603. so("http://roblox.com/asset/?id=183763506",Torso,1,0.6)
  1604. so("http://roblox.com/asset/?id=178452221",Torso,1,0.6)
  1605. so("http://www.roblox.com/Asset?ID=87767777",Torso,1,1)
  1606. so("http://roblox.com/asset/?id=183763506",ref,1,0.6)
  1607. so("http://roblox.com/asset/?id=178452221",ref,1,0.6)
  1608. so("http://www.roblox.com/Asset?ID=87767777",ref,1,1)
  1609. coroutine.resume(coroutine.create(function(Part)
  1610. wait(1)
  1611. Part.Parent=nil
  1612. end),ref)
  1613. MagniDamage(ref,20,10,30,40,"Knockdown",ref)
  1614. if hit~=nil then
  1615. Damagefunc(hit,30,70,50,"Knockdown",RootPart,0)
  1616. end
  1617. wait(1)
  1618. local n=2
  1619. for i=0,1,0.1 do
  1620. wait()
  1621. Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  1622. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,-0.6+0.9*i*n)
  1623. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1624. LW.C0=cf(-1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.6-0.9*i*n)
  1625. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1626. n=n-0.1
  1627. end
  1628. end
  1629. else
  1630. attack=math.random(1,2)
  1631. if attack==1 then --Titan Fall
  1632. attacking=true
  1633. Humanoid.WalkSpeed=0
  1634. local n=2
  1635. for i=0,1,0.05 do
  1636. wait()
  1637. cf4=6-2*i*n
  1638. cf5=2+2*i*n
  1639. cf6=-2*i*n
  1640. cf7=-6+2*i*n
  1641. cf8=2+2*i*n
  1642. cf9=-2*i*n
  1643. Neck.C0=cf(0,1,0)*euler(-0.2+0.8*i*n,0,0)
  1644. RW.C0=cf(1.5-0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,0.3-0.9*i*n)
  1645. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1646. LW.C0=cf(-1.5+0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,-0.3+0.9*i*n)
  1647. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1648. n=n-0.05
  1649. end
  1650. wait(0.3)
  1651. so("http://www.roblox.com/asset/?id=169445121",Torso2,1,0.6)
  1652. n=2
  1653. for i=0,1,0.2 do
  1654. wait()
  1655. MagicBlock(BrickColor.new("Really black"),RightArm2.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  1656. MagicBlock(BrickColor.new("Really black"),LeftArm2.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  1657. cf11=-4+2*i*n
  1658. cf12=-2*i*n
  1659. cf5=4-4*i*n
  1660. cf8=4-4*i*n
  1661. RootJoint.C0=cf(0,-14.5+3*i*n,0)*euler(0,0,0)
  1662. Neck.C0=cf(0,1,0)*euler(0.6-1*i*n,0,0)
  1663. RW.C0=cf(1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,-0.6)
  1664. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1665. LW.C0=cf(-1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,0.6)
  1666. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1667. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(-0.1*i*n,0,0)
  1668. RH.C1=cf(0,1,0)
  1669. LH.C0=cf(-0.5,-1,0)*euler(-0.6*i*n,0,0)
  1670. LH.C1=cf(0,1,0)
  1671. n=n-0.2
  1672. end
  1673. local cf2=RootPart.CFrame*cf(0,500,-20)
  1674. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1675. ref.CFrame=cf2
  1676. ref.Anchored=true
  1677. local TheHit=ref.Position+vt(0,-1,0)
  1678. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  1679. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  1680. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1681. ref2.CFrame=cf(pos)
  1682. ref2.Anchored=true
  1683. local mag=(ref.Position-pos).magnitude
  1684. MagicCylinder(BrickColor.new("Really black"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),5,mag*5,5,1,0,1,0.05)
  1685. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  1686. MagicBlock(BrickColor.new("Really black"),ref2.CFrame,15,15,15,3,3,3,0.02)
  1687. WaveEffect2(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,3,2,0.05)
  1688. MagicRing(BrickColor.new("Really black"),cf(ref2.Position)*euler(1.57,0,0),5,5,5,4,4,4,0.05)
  1689. MagniDamage(ref2,25,20,50,math.random(10,30),"Knockdown",ref2)
  1690. --so("http://roblox.com/asset/?id=144844438",ref2,1,0.8)
  1691. so("http://roblox.com/asset/?id=87784452",ref2,1,0.8)
  1692. so("http://roblox.com/asset/?id=183763515",ref2,1,0.8)
  1693. game:GetService("Debris"):AddItem(ref,2)
  1694. game:GetService("Debris"):AddItem(ref2,2)
  1695. wait(1)
  1696. n=2
  1697. for i=0,1,0.1 do
  1698. wait()
  1699. cf4=4+2*i*n
  1700. cf5=2*i*n
  1701. cf6=-2+2*i*n
  1702. cf7=-4-2*i*n
  1703. cf8=2*i*n
  1704. cf9=-2+2*i*n
  1705. cf11=-4+2-2*i*n
  1706. cf12=-2+2*i*n
  1707. RootJoint.C0=cf(0,-14.5+3-3*i*n,0)*euler(0,0,0)
  1708. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  1709. RW.C0=cf(1+0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,-0.6+0.9*i*n)
  1710. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1711. LW.C0=cf(-1-0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,0.6-0.9*i*n)
  1712. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1713. RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5+0.5*i*n)*euler(-0.1+0.1*i*n,0,0)
  1714. RH.C1=cf(0,1,0)
  1715. LH.C0=cf(-0.5,-1,0)*euler(-0.6+0.6*i*n,0,0)
  1716. LH.C1=cf(0,1,0)
  1717. n=n-0.1
  1718. end
  1719. wait(1)
  1720. Humanoid.WalkSpeed=25
  1721. attacking=false
  1722. elseif attack==2 then --Dark Stomp
  1723. attacking=true
  1724. Humanoid.WalkSpeed=0
  1725. local n=2
  1726. for i=0,1,0.1 do
  1727. wait()
  1728. cf11=-4+2*i*n
  1729. cf12=-2*i*n
  1730. --cf13=-2
  1731. --cf14=-4
  1732. --cf15=0
  1733. RootJoint.C0=cf(0,-14.5,0)*euler(0.2*i*n,0,0)
  1734. Neck.C0=cf(0,1,0)*euler(-0.2-0.4*i*n,0,0)
  1735. RW.C0=cf(1.5,0.5,0)*euler(-0.2*i*n,0,0.3)
  1736. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1737. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3)
  1738. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1739. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(0.2*i*n,0,0)
  1740. RH.C1=cf(0,1,0)
  1741. LH.C0=cf(-0.5,-1,0)*euler(-0.2*i*n,0,0)
  1742. LH.C1=cf(0,1,0)
  1743. n=n-0.1
  1744. end
  1745. so("http://www.roblox.com/asset/?id=169445046",RightLeg2,1,0.6)
  1746. local n=2
  1747. for i=0,1,0.2 do
  1748. wait()
  1749. cf11=-2-2*i*n
  1750. RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5)*euler(0.2+0.1*i*n,0,0)
  1751. RH.C1=cf(0,1,0)
  1752. n=n-0.2
  1753. end
  1754. MagicCylinder(BrickColor.new("Really black"),cf(RightLeg2.Position+vt(0,-4,0)),10,4,10,5,3,5,0.05)
  1755. local numb=-8
  1756. local basecf=RootPart.CFrame
  1757. for i=1,4 do
  1758. local cf2=basecf*cf(0,0,numb)
  1759. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1760. ref.CFrame=cf2
  1761. ref.Anchored=true
  1762. local TheHit=ref.Position+vt(0,-1,0)
  1763. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  1764. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  1765. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1766. ref2.CFrame=cf(pos)
  1767. ref2.Anchored=true
  1768. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  1769. MagicWaveThing(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,2,2,0.05)
  1770. MagniDamage(ref2,20,20,30,math.random(5,20),"Normal",RootPart)
  1771. so("http://www.roblox.com/asset/?id=161006093",ref2,1,0.6)
  1772. game:GetService("Debris"):AddItem(ref,2)
  1773. game:GetService("Debris"):AddItem(ref2,2)
  1774. numb=numb-15
  1775. wait(0.4)
  1776. end
  1777. --wait(1)
  1778. local n=2
  1779. for i=0,1,0.1 do
  1780. wait()
  1781. cf12=-2+2*i*n
  1782. RootJoint.C0=cf(0,-14.5,0)*euler(0.2-0.2*i*n,0,0)
  1783. Neck.C0=cf(0,1,0)*euler(-0.6+0.4*i*n,0,0)
  1784. RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.2*i*n,0,0.3)
  1785. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1786. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  1787. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1788. RH.C0=cf(0.5,-1,-0.5+0.5*i*n)*euler(0.3-0.3*i*n,0,0)
  1789. RH.C1=cf(0,1,0)
  1790. LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.2*i*n,0,0)
  1791. LH.C1=cf(0,1,0)
  1792. n=n-0.1
  1793. end
  1794. Humanoid.WalkSpeed=25
  1795. attacking=false
  1796. wait(1)
  1797. elseif attack==3 then
  1798. end
  1799. end
  1800. targetting=false
  1801. end
  1802. end
  1803. --Destroy body
  1804. DarkBody=false
  1805. HealtVal2.Value=Humanoid.Health
  1806. Head2.Anchored=true
  1807. Torso2.Anchored=true
  1808. LeftArm2.Anchored=true
  1809. RightArm2.Anchored=true
  1810. LeftLeg2.Anchored=true
  1811. RightLeg2.Anchored=true
  1812.  
  1813. Neck2.Parent=nil
  1814. RW2.Parent=nil
  1815. LW2.Parent=nil
  1816. RH2.Parent=nil
  1817. LH2.Parent=nil
  1818. RootJoint2.Parent=nil
  1819. coroutine.resume(coroutine.create(function()
  1820. for i=0.5,1,0.05 do
  1821. wait()
  1822. Head2.Transparency=i
  1823. Torso2.Transparency=i
  1824. LeftArm2.Transparency=i
  1825. RightArm2.Transparency=i
  1826. LeftLeg2.Transparency=i
  1827. RightLeg2.Transparency=i
  1828. end
  1829. Head2.Parent=nil
  1830. Torso2.Parent=nil
  1831. LeftArm2.Parent=nil
  1832. RightArm2.Parent=nil
  1833. LeftLeg2.Parent=nil
  1834. RightLeg2.Parent=nil
  1835. end))
  1836. DarkLegEffect=true
  1837. coroutine.resume(coroutine.create(function(Leg1,Leg2)
  1838. while DarkLegEffect==true do
  1839. wait(0.1)
  1840. MagicBlock(BrickColor.new("Really black"),Leg1.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  1841. MagicBlock(BrickColor.new("Really black"),Leg2.CFrame*cf(0,-1,0),5,5,5,0.5,0.5,0.5,0.1)
  1842. end
  1843. end),RightLeg,LeftLeg)
  1844.  
  1845. Humanoid.MaxHealth=math.huge
  1846. Humanoid.Health=math.huge
  1847. coroutine.resume(coroutine.create(function()
  1848. for i=1,20 do
  1849. Humanoid.Health=Humanoid.MaxHealth
  1850. end
  1851. Humanoid:TakeDamage(1)
  1852. end))
  1853. RootJoint.C0=cf(0,0,0)
  1854. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  1855. BPRef.CFrame=MainPosition
  1856. Torso.CFrame=BPRef.CFrame
  1857. BodPos.position=BPRef.Position
  1858. BodGy.Parent=Torso
  1859. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  1860. BodGy.cframe=CF*euler(0,1.57,0)
  1861. BodPos.Parent=RootPart
  1862. BodPos.maxForce=vt(math.huge,math.huge,math.huge)
  1863. coroutine.resume(coroutine.create(function()
  1864. for i=0,40 do
  1865. wait()
  1866. BodPos.Parent=RootPart
  1867. end
  1868. end))
  1869. for i=0,1,0.1 do
  1870. wait()
  1871. RH.C0=cf(0.5,-1,0)*euler(-0.3*i,0,0.2*i)
  1872. RH.C1=cf(0,1,0)
  1873. LH.C0=cf(-0.5,-1,0)*euler(-0.3*i,0,-0.2*i)
  1874. LH.C1=cf(0,1,0)
  1875. end
  1876. if Humanoid.Health>0 then
  1877. SummonCrystals()
  1878. end
  1879. wait(1)
  1880. end
  1881. DarkLegEffect=false
Add Comment
Please, Sign In to add comment