Advertisement
memberhero

vanta2

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