Advertisement
1x1x1x1IAMbck

King Nelf remake

May 18th, 2018
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 141.82 KB | None | 0 0
  1. --// Created by 1x1x1x1IAMbck \\--
  2. --\\ This is new remake of King nelf //--
  3. Me = game.Players.LocalPlayer
  4. player = Me
  5. char = Me.Character
  6. chara = char
  7. larm = char["Left Arm"]
  8. rarm = char["Right Arm"]
  9. lleg = char["Left Leg"]
  10. rleg = char["Right Leg"]
  11. torso = char.Torso
  12. hed = char.Head
  13. mouse = player:GetMouse()
  14. lght = game.Lighting
  15. lichtact = false
  16. moosicact = false
  17. gotsagofest = true
  18. hat=Instance.new("Part",chara)
  19.  
  20. New = function(Object, Parent, Name, Data)
  21. local Object = Instance.new(Object)
  22. for Index, Value in pairs(Data or {}) do
  23. Object[Index] = Value
  24. end
  25. Object.Parent = Parent
  26. Object.Name = Name
  27. return Object
  28. end
  29.  
  30. Mouse = player:GetMouse()
  31.  
  32. local IsFreeFalling = false
  33. local SpinPart = Instance.new('Part')
  34. SpinPart.Transparency = 1
  35. SpinPart.Size = Vector3.new(1000,10,1000)
  36. SpinPart.CanCollide = false
  37. SpinPart.FormFactor = 'Custom'
  38. local FX = Instance.new('ParticleEmitter',SpinPart)
  39. FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(20), NumberRange.new(3.75,3.75), 100, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://160508788",0.1
  40. local FX = Instance.new('ParticleEmitter',SpinPart)
  41. FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(20), NumberRange.new(3.75,3.75), 100, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://268043891",0.1
  42. --CricleForTarget
  43. --121028264 MagicCircle1
  44. --160506713 MagicCircle2
  45. --327794305 MagicCircle3 (Death)
  46. --160508788 MagicCircle4 (Scary)
  47. --124339738 CoolCircle5
  48. --268043891 Abyss-Demon-Magic-Circle
  49. --165647841 I SHE GOD!
  50.  
  51. do
  52. local tspin = Instance.new('BodyAngularVelocity')
  53. tspin.angularvelocity = Vector3.new(0,8,0)
  54. tspin.maxTorque =Vector3.new(math.huge,math.huge,math.huge)
  55. tspin.Parent = SpinPart
  56. end
  57. local SpinPos = Instance.new('BodyPosition')
  58. SpinPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  59. SpinPos.Parent = SpinPart
  60.  
  61. function Equipped()
  62. IsEquipped = true
  63. local MyTorso = char.Torso
  64. if MyTorso then
  65. spawn(function()
  66. local startTime = tick()
  67. SpinPart.CFrame = CFrame.new(MyTorso.CFrame.p+Vector3.new(0,-2.8,0))
  68. SpinPart.Parent = MyTorso
  69. local fadeIn = true
  70. while IsEquipped do
  71. if not IsFreeFalling then
  72. SpinPos.position = MyTorso.CFrame.p+Vector3.new(0,-2.8,0)
  73. end
  74. wait()
  75. end
  76. SpinPart.Parent = nil
  77.  
  78. end)
  79. end
  80. end
  81.  
  82. wait(0.01)
  83. Equipped()
  84.  
  85.  
  86. function start()
  87. print("Darkness falls across the battlefield...")
  88. wait()
  89. print("----------------------------------------")
  90. wait()
  91. print(" - Ender booted up. -")
  92. wait()
  93. print("- Ender written by yeox769. -")
  94. i = 0
  95. while i<1 do
  96. wait()
  97. i = i + 0.01
  98. l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375
  99. l.TintColor = Color3.new(1,1-i,1-i)
  100. end
  101. end
  102.  
  103. delay(0,start)
  104.  
  105. wait(3)
  106. local sky = game.Lighting
  107. game.Lighting.TimeOfDay = "00:00:00"
  108. sky.Ambient = BrickColor.new("Really black").Color
  109. sky.Brightness = 0
  110. sky.FogEnd = 50000
  111. sky.FogColor = BrickColor.new("Really black").Color
  112. script.Name = "nigga srsly"
  113. ArtificialHB = Instance.new("BindableEvent", script)
  114. ArtificialHB.Name = "Heartbeat"
  115. script:WaitForChild("Heartbeat")
  116. Player = game:GetService("Players").LocalPlayer
  117. Character = Player.Character
  118. PlayerGui = Player.PlayerGui
  119. script.Parent = PlayerGui
  120. Backpack = Player.Backpack
  121. Torso = Character.Torso
  122. Head = Character.Head
  123. Humanoid = Character.Humanoid
  124. LeftArm = Character["Left Arm"]
  125. LeftLeg = Character["Left Leg"]
  126. RightArm = Character["Right Arm"]
  127. RightLeg = Character["Right Leg"]
  128. ch = Character
  129. RootPart = Character.HumanoidRootPart
  130. RootJoint = RootPart.RootJoint
  131. it=Instance.new
  132. vt=Vector3.new
  133. cf=CFrame.new
  134. euler=CFrame.fromEulerAnglesXYZ
  135. angles=CFrame.Angles
  136. local decreaseatk=50
  137. local decreasedef=100
  138. local decreasemvmt=0
  139. local Anim="Idle"
  140. local Effects={}
  141. local armorparts={}
  142. local armorwelds={}
  143. local weaponparts={}
  144. local weaponwelds={}
  145. local necko=euler(0,0,0)*cf(0,3,0)
  146. local attack=false
  147. local jump=false
  148. local hitfloor,posfloor=nil,nil
  149. local target,distance=nil,nil
  150. local meleecooldown=0
  151. local mcdadd=1
  152. local summoncrystals=0
  153. local crystals=false
  154. local stunanim=false
  155.  
  156. Humanoid.WalkSpeed=7
  157.  
  158.  
  159. local sa2 = Instance.new("Sound",Character)
  160. sa2.SoundId = "rbxassetid://472006887"
  161. sa2.Pitch = 1
  162. sa2.Volume = 20
  163. sa2.Looped = true
  164. sa2:Play()
  165. --472006887 Doom Choir
  166. --598378876 War of Change
  167. --194431946 Carol of the Bells
  168. --251935616 Child-of-Light-Boss-Battle-Theme-3-With-Choir
  169. --571756774 Angel
  170. --545677173 Red Army Choir
  171. --738743040 Choir Of The Fayth
  172. if workspace:findFirstChild("Neflhelm",true) ~= nil then
  173. workspace:findFirstChild("Neflhelm",true).Parent = nil
  174. end
  175.  
  176. function NoOutline(Part)
  177. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  178. end
  179.  
  180. function swait(num)
  181. if num==0 or num==nil then
  182. --if Stagger.Value==false or Stun.Value<=100 then
  183. script.Heartbeat.Event:wait()
  184. --end
  185. else
  186. for i=0,num do
  187. script.Heartbeat.Event:wait()
  188. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  189. break
  190. end]]
  191. end
  192. end
  193. end
  194.  
  195. --30hz Pacemaker
  196.  
  197. frame = 1/30
  198. tf = 0
  199. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  200. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  201. lastframe = tick()
  202. script.Heartbeat:Fire() --ayy lmao
  203.  
  204. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  205. tf = tf + s
  206. if tf >= frame then
  207. if allowframeloss then
  208. script.Heartbeat:Fire()
  209. lastframe=tick()
  210. else
  211. ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  212. for i=1, math.floor(tf/frame) do
  213. script.Heartbeat:Fire()
  214. end
  215. lastframe=tick()
  216. end
  217. if tossremainder then
  218. tf = 0
  219. else
  220. tf = tf - frame * math.floor(tf/frame)
  221. end
  222. end
  223. end)
  224.  
  225. function clerp(a,b,t)
  226. local qa = {QuaternionFromCFrame(a)}
  227. local qb = {QuaternionFromCFrame(b)}
  228. local ax, ay, az = a.x, a.y, a.z
  229. local bx, by, bz = b.x, b.y, b.z
  230. local _t = 1-t
  231. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  232. end
  233.  
  234. function QuaternionFromCFrame(cf)
  235. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  236. local trace = m00 + m11 + m22
  237. if trace > 0 then
  238. local s = math.sqrt(1 + trace)
  239. local recip = 0.5/s
  240. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  241. else
  242. local i = 0
  243. if m11 > m00 then
  244. i = 1
  245. end
  246. if m22 > (i == 0 and m00 or m11) then
  247. i = 2
  248. end
  249. if i == 0 then
  250. local s = math.sqrt(m00-m11-m22+1)
  251. local recip = 0.5/s
  252. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  253. elseif i == 1 then
  254. local s = math.sqrt(m11-m22-m00+1)
  255. local recip = 0.5/s
  256. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  257. elseif i == 2 then
  258. local s = math.sqrt(m22-m00-m11+1)
  259. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  260. end
  261. end
  262. end
  263.  
  264. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  265. local xs, ys, zs = x + x, y + y, z + z
  266. local wx, wy, wz = w*xs, w*ys, w*zs
  267. local xx = x*xs
  268. local xy = x*ys
  269. local xz = x*zs
  270. local yy = y*ys
  271. local yz = y*zs
  272. local zz = z*zs
  273. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  274. end
  275.  
  276. function QuaternionSlerp(a, b, t)
  277. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  278. local startInterp, finishInterp;
  279. if cosTheta >= 0.0001 then
  280. if (1 - cosTheta) > 0.0001 then
  281. local theta = math.acos(cosTheta)
  282. local invSinTheta = 1/math.sin(theta)
  283. startInterp = math.sin((1-t)*theta)*invSinTheta
  284. finishInterp = math.sin(t*theta)*invSinTheta
  285. else
  286. startInterp = 1-t
  287. finishInterp = t
  288. end
  289. else
  290. if (1+cosTheta) > 0.0001 then
  291. local theta = math.acos(-cosTheta)
  292. local invSinTheta = 1/math.sin(theta)
  293. startInterp = math.sin((t-1)*theta)*invSinTheta
  294. finishInterp = math.sin(t*theta)*invSinTheta
  295. else
  296. startInterp = t-1
  297. finishInterp = t
  298. end
  299. end
  300. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  301. end
  302.  
  303. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  304. local fp=it("Part")
  305. fp.formFactor=formfactor
  306. fp.Parent=parent
  307. fp.Reflectance=reflectance
  308. fp.Transparency=transparency
  309. fp.CanCollide=false
  310. fp.Locked=true
  311. fp.BrickColor=brickcolor
  312. fp.Name=name
  313. fp.Size=size
  314. NoOutline(fp)
  315. fp.Material="SmoothPlastic"
  316. fp:BreakJoints()
  317. return fp
  318. end
  319.  
  320. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  321. local mesh=it(Mesh)
  322. mesh.Parent=part
  323. if Mesh=="SpecialMesh" then
  324. mesh.MeshType=meshtype
  325. if meshid~="nil" then
  326. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  327. end
  328. end
  329. mesh.Offset=offset
  330. mesh.Scale=scale
  331. return mesh
  332. end
  333.  
  334. function weld(parent,part0,part1,c0)
  335. local weld=it("Motor")
  336. weld.Parent=parent
  337. weld.Part0=part0
  338. weld.Part1=part1
  339. weld.C0=c0
  340. return weld
  341. end
  342.  
  343. function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
  344. local gui=it(GuiType)
  345. gui.Parent=parent
  346. gui.BackgroundTransparency=backtrans
  347. gui.BackgroundColor3=backcol
  348. gui.SizeConstraint="RelativeXY"
  349. gui.Position=pos
  350. gui.Size=size
  351. if GuiType=="TextLabel" then
  352. gui.Text=text
  353. gui.TextXAlignment="Center"
  354. gui.TextYAlignment="Center"
  355. gui.Font="SourceSans"
  356. gui.FontSize="Size14"
  357. gui.TextWrapped=false
  358. gui.TextStrokeTransparency=0
  359. gui.TextColor=BrickColor.new("Really black")
  360. elseif GuiType=="ImageLabel" then
  361. gui.Image="rbxassetid://"..image
  362. gui.ImageColor3=backcol
  363. end
  364. return gui
  365. end
  366.  
  367. local nr=NumberRange.new
  368. local ns=NumberSequence.new
  369. local cs=ColorSequence.new
  370. local nsk=NumberSequenceKeypoint.new
  371.  
  372. function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
  373. local fp=it("ParticleEmitter")
  374. fp.Parent=parent
  375. fp.Color=cs(col1,col2)
  376. fp.LightEmission=lightemis
  377. fp.Size=size
  378. fp.Texture=texture
  379. fp.Transparency=transparency
  380. fp.ZOffset=zoffset
  381. fp.Acceleration=accel
  382. fp.Drag=drag
  383. fp.LockedToPart=ltp
  384. fp.VelocityInheritance=velinher
  385. fp.EmissionDirection=emisdir
  386. fp.Enabled=enabled
  387. fp.Lifetime=lifetime
  388. fp.Rate=rate
  389. fp.Rotation=rotation
  390. fp.RotSpeed=rotspeed
  391. fp.Speed=speed
  392. fp.VelocitySpread=velspread
  393. return fp
  394. end
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402. --[[local Head=part(0,Character,0,0,BrickColor.new("Really black"),"Head",vt(2,2,2)) Head.Material="Neon"
  403. local Torso=part(0,Character,0,0,BrickColor.new("Really black"),"Torso",vt(2,2,2)) Torso.Material="Neon"]]
  404. Head.Size = vt(2,2,2)
  405. Torso.Size = vt(2,2,2)
  406. Head.BrickColor = BrickColor.new("Really black")
  407. Torso.BrickColor = BrickColor.new("Really black")
  408. Head.Material = "Neon"
  409. Torso.Material = "Neon"
  410. Head.face:Destroy()
  411. workspace.CurrentCamera.CameraSubject = Torso
  412. local Back=part(0,Character,0,0,BrickColor.new("Really black"),"Back",vt(2,2,2)) Back.Material="Neon"
  413. local Lower1=part(0,Character,0,0,BrickColor.new("Really black"),"Lower1",vt(2,2,2)) Lower1.Material="Neon"
  414. local Lower2=part(0,Character,0,0,BrickColor.new("Really black"),"Lower2",vt(2,2,2)) Lower2.Material="Neon"
  415.  
  416. --local RootPart=part(0,Character,0,0,BrickColor.new("Really red"),"HumanoidRootPart",vt(2,2,1))
  417. --RootPart.CanCollide=false
  418.  
  419. local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
  420. local TMesh=mesh("SpecialMesh",Torso,"Sphere","nil",vt(0,0,0),vt(105,105,105))
  421. local BMesh=mesh("SpecialMesh",Back,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  422. local L1Mesh=mesh("SpecialMesh",Lower1,"Sphere","nil",vt(0,0,0),vt(90,90,90))
  423. local L2Mesh=mesh("SpecialMesh",Lower2,"Sphere","nil",vt(0,0,0),vt(90,90,90))
  424.  
  425. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  426. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  427. local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
  428. --Neck.C1=cf(0,-1.5,0)
  429. Neck.C1=cf(0,-80,0)
  430. --Neck.C0=clerp(Neck.C0,euler(0,0,0)*cf(0,115,0)*euler(-.3,0,0),.3)
  431. local RootJoint=weld(Torso,Torso,RootPart,cf(-1.749,-200,0))
  432. local BackJoint=weld(Torso,Torso,Back,cf(0,51,-87.75))
  433. local L1Joint=weld(Torso,Torso,Lower1,cf(0,-42,-7.75))
  434. local L2Joint=weld(Torso,Torso,Lower2,cf(0,-54.75,-16.749))
  435. --Torso.CFrame=cf(0,20,0)
  436. RootPart.Anchored=true
  437. for d=10,180,10 do
  438. for i=10,360,10 do
  439. local Hitbox1=part(0,Character,0,1,BrickColor.new("Really black"),"Left Arm",vt(1,1,1)) Hitbox1.Material="Neon"
  440. local HbMesh=mesh("SpecialMesh",Hitbox1,"Sphere","nil",vt(0,0,0),vt(1,1,1))
  441. --local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60/(d/30),d,0)*euler(0,math.rad(i),0))
  442. local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60,0,0)*euler(0,math.rad(i),math.rad(d)))
  443. end
  444. end
  445.  
  446.  
  447.  
  448. local armor=Instance.new("Model")
  449. armor.Parent=Character
  450. armor.Name="Body"
  451. --RootPart.Parent=armor
  452.  
  453. prt1=part(3,armor,0,0,BrickColor.new("Really black"),"Part01",vt(2,2,2)) prt1.Material="Neon"
  454. prt2=part(3,armor,0,0,BrickColor.new("Really black"),"Part02",vt(2,2,2))
  455. prt3=part(3,armor,0,0,BrickColor.new("Really red"),"Part03",vt(2,2,2)) prt3.Material="Neon"
  456. prt4=part(3,armor,0,0,BrickColor.new("Really black"),"Part04",vt(2,2,2))
  457. prt5=part(3,armor,0,0,BrickColor.new("Really red"),"Part05",vt(2,2,2)) prt5.Material="Neon"
  458. prt6=part(3,armor,0,0,BrickColor.new("Really black"),"Part06",vt(2,2,2)) prt6.Material="Neon"
  459. prt7=part(3,armor,0,0,BrickColor.new("Really black"),"Part07",vt(2,2,2)) prt7.Material="Neon"
  460. prt8=part(3,armor,0,0,BrickColor.new("Really black"),"Part08",vt(2,2,2)) prt8.Material="Neon"
  461. prt9=part(3,armor,0,0,BrickColor.new("Really black"),"Part09",vt(2,2,2)) prt9.Material="Neon"
  462. prt10=part(3,armor,0,0,BrickColor.new("Really black"),"Part10",vt(2,2,2)) prt10.Material="Neon"
  463. prt11=part(3,armor,.4,0,BrickColor.new("Really black"),"Part11",vt(2,2,2))
  464. prt12=part(3,armor,.4,0,BrickColor.new("Really red"),"Part12",vt(2,2,2))
  465. prt13=part(3,armor,.4,0,BrickColor.new("Really black"),"Part13",vt(2,2,2))
  466. prt14=part(3,armor,.4,0,BrickColor.new("Really black"),"Part14",vt(2,2,2))
  467. prt15=part(3,armor,.4,0,BrickColor.new("Really black"),"Part15",vt(2,2,2))
  468. prt16=part(3,armor,.4,0,BrickColor.new("Really black"),"Part16",vt(2,2,2))
  469. prt17=part(3,armor,.4,0,BrickColor.new("Really black"),"Part17",vt(2,2,2))
  470. prt18=part(3,armor,.4,0,BrickColor.new("Really black"),"Part18",vt(2,2,2))
  471. prt19=part(3,armor,0,0,BrickColor.new("Really black"),"Part19",vt(2,2,2)) prt19.Material="Neon" --main right arm
  472. prt20=part(3,armor,0,0,BrickColor.new("Really black"),"Part20",vt(2,2,2)) prt20.Material="Neon"
  473. prt21=part(3,armor,0,0,BrickColor.new("Really black"),"Part21",vt(2,2,2)) prt21.Material="Neon" --second right arm point
  474. prt22=part(3,armor,0,0,BrickColor.new("Really black"),"Part22",vt(2,2,2)) prt22.Material="Neon"
  475. prt23=part(3,armor,0,0,BrickColor.new("Really black"),"Part23",vt(2,2,2)) prt23.Material="Neon"
  476. prt24=part(3,armor,0,0,BrickColor.new("Really black"),"Part24",vt(2,2,2)) prt24.Material="Neon" --third right arm point
  477. prt25=part(3,armor,0,0,BrickColor.new("Really black"),"Part25",vt(2,2,2)) prt25.Material="Neon"
  478. prt26=part(3,armor,0,0,BrickColor.new("Really black"),"Part26",vt(2,2,2)) prt26.Material="Neon"
  479. prt27=part(3,armor,0,0,BrickColor.new("Really black"),"Part27",vt(2,2,2)) prt27.Material="Neon"
  480. prt28=part(3,armor,0,0,BrickColor.new("Really black"),"Part28",vt(2,2,2)) prt28.Material="Neon"
  481. prt29=part(3,armor,0,0,BrickColor.new("Really black"),"Part29",vt(2,2,2)) prt29.Material="Neon" --fourth right arm point
  482. prt30=part(3,armor,0,0,BrickColor.new("Really black"),"Part30",vt(2,2,2)) prt30.Material="Neon"
  483. prt31=part(3,armor,0,0,BrickColor.new("Really black"),"Part31",vt(2,2,2)) prt31.Material="Neon"
  484. prt32=part(3,armor,0,0,BrickColor.new("Really black"),"Part32",vt(2,2,2)) prt32.Material="Neon"
  485. prt33=part(3,armor,0,0,BrickColor.new("Really black"),"Part33",vt(2,2,2)) prt33.Material="Neon" --main left arm
  486. prt34=part(3,armor,0,0,BrickColor.new("Really black"),"Part34",vt(2,2,2)) prt34.Material="Neon"
  487. prt35=part(3,armor,0,0,BrickColor.new("Really black"),"Part35",vt(2,2,2)) prt35.Material="Neon" --second right arm point
  488. prt36=part(3,armor,0,0,BrickColor.new("Really black"),"Part36",vt(2,2,2)) prt36.Material="Neon"
  489. prt37=part(3,armor,0,0,BrickColor.new("Really black"),"Part37",vt(2,2,2)) prt37.Material="Neon"
  490. prt38=part(3,armor,0,0,BrickColor.new("Really black"),"Part38",vt(2,2,2)) prt38.Material="Neon" --third right arm point
  491. prt39=part(3,armor,0,0,BrickColor.new("Really black"),"Part39",vt(2,2,2)) prt39.Material="Neon"
  492. prt40=part(3,armor,0,0,BrickColor.new("Really black"),"Part40",vt(2,2,2)) prt40.Material="Neon"
  493. prt41=part(3,armor,0,0,BrickColor.new("Really black"),"Part41",vt(2,2,2)) prt41.Material="Neon"
  494. prt42=part(3,armor,0,0,BrickColor.new("Really black"),"Part42",vt(2,2,2)) prt42.Material="Neon"
  495. prt43=part(3,armor,0,0,BrickColor.new("Really black"),"Part43",vt(2,2,2)) prt43.Material="Neon" --fourth right arm point
  496. prt44=part(3,armor,0,0,BrickColor.new("Really black"),"Part44",vt(2,2,2)) prt44.Material="Neon"
  497. prt45=part(3,armor,0,0,BrickColor.new("Really black"),"Part45",vt(2,2,2)) prt45.Material="Neon"
  498. prt46=part(3,armor,0,0,BrickColor.new("Really black"),"Part46",vt(2,2,2)) prt46.Material="Neon"
  499.  
  500. msh1=mesh("SpecialMesh",prt1,"FileMesh","62740878",vt(0,0,0),vt(80,50,80))
  501. msh2=mesh("SpecialMesh",prt2,"Sphere","nil",vt(0,0,0),vt(5,10,10))
  502. msh3=mesh("SpecialMesh",prt3,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
  503. msh4=mesh("SpecialMesh",prt4,"Sphere","nil",vt(0,0,0),vt(5,10,10))
  504. msh5=mesh("SpecialMesh",prt5,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
  505. msh6=mesh("SpecialMesh",prt6,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  506. msh7=mesh("SpecialMesh",prt7,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  507. msh8=mesh("SpecialMesh",prt8,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  508. msh9=mesh("SpecialMesh",prt9,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  509. msh10=mesh("SpecialMesh",prt10,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  510. msh11=mesh("SpecialMesh",prt11,"FileMesh","9756362",vt(0,0,0),vt(20,90,20))
  511. msh12=mesh("SpecialMesh",prt12,"FileMesh","9756362",vt(0,0,0),vt(20,100,27.5))
  512. msh13=mesh("SpecialMesh",prt13,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  513. msh14=mesh("SpecialMesh",prt14,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  514. msh15=mesh("SpecialMesh",prt15,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  515. msh16=mesh("SpecialMesh",prt16,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  516. msh17=mesh("SpecialMesh",prt17,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  517. msh18=mesh("SpecialMesh",prt18,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  518. msh19=mesh("SpecialMesh",prt19,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  519. msh20=mesh("SpecialMesh",prt20,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  520. msh21=mesh("CylinderMesh",prt21,"nil","nil",vt(0,0,0),vt(50,30,50))
  521. msh22=mesh("SpecialMesh",prt22,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  522. msh23=mesh("SpecialMesh",prt23,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  523. msh24=mesh("CylinderMesh",prt24,"nil","nil",vt(0,0,0),vt(65,10,65))
  524. msh25=mesh("SpecialMesh",prt25,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  525. msh26=mesh("SpecialMesh",prt26,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  526. msh27=mesh("SpecialMesh",prt27,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  527. msh28=mesh("SpecialMesh",prt28,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  528. msh29=mesh("CylinderMesh",prt29,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
  529. msh30=mesh("SpecialMesh",prt30,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
  530. msh31=mesh("SpecialMesh",prt31,"Sphere","nil",vt(0,0,0),vt(85,85,85))
  531. msh32=mesh("SpecialMesh",prt32,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
  532. msh33=mesh("SpecialMesh",prt33,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  533. msh34=mesh("SpecialMesh",prt34,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  534. msh35=mesh("CylinderMesh",prt35,"nil","nil",vt(0,0,0),vt(50,30,50))
  535. msh36=mesh("SpecialMesh",prt36,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  536. msh37=mesh("SpecialMesh",prt37,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  537. msh38=mesh("CylinderMesh",prt38,"nil","nil",vt(0,0,0),vt(65,10,65))
  538. msh39=mesh("SpecialMesh",prt39,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  539. msh40=mesh("SpecialMesh",prt40,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  540. msh41=mesh("SpecialMesh",prt41,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  541. msh42=mesh("SpecialMesh",prt42,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  542. msh43=mesh("CylinderMesh",prt43,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
  543. msh44=mesh("SpecialMesh",prt44,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
  544. msh45=mesh("SpecialMesh",prt45,"Sphere","nil",vt(0,0,0),vt(85,85,85))
  545. msh46=mesh("SpecialMesh",prt46,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
  546.  
  547. local wld1=weld(prt1,prt1,Head,euler(0,math.rad(180),0)*cf(-4.597,-46.367,0))
  548. local wld2=weld(prt1,prt2,Head,euler(0,math.rad(90+(90-65)),0)*cf(23.772,0,-50.979))
  549. local wld3=weld(prt1,prt3,Head,euler(0,math.rad(90+(90-65)),0)*cf(24.406,0,-52.339))
  550. local wld4=weld(prt1,prt4,Head,euler(0,math.rad(65),0)*cf(-23.772,0,-50.979))
  551. local wld5=weld(prt1,prt5,Head,euler(0,math.rad(65),0)*cf(-24.406,0,-52.339))
  552. local wld6=weld(prt1,prt6,Torso,euler(math.rad(63.644),0,0)*cf(0,-118.531,124.184))
  553. local wld7=weld(prt1,prt7,Torso,euler(math.rad(-90-165.516),0,0)*cf(0,-1.816,157.992))
  554. local wld8=weld(prt1,prt8,Torso,euler(math.rad(171.785),0,0)*cf(-3.372,67.659,3.285))
  555. local wld9=weld(prt1,prt9,Torso,euler(math.rad(-90-55),math.rad(-90-65),0)*cf(-32.5,66.459,35.483))
  556. local wld10=weld(prt1,prt10,Torso,euler(math.rad(-90-60),math.rad(-90-115),0)*cf(32.5,66.459,35.483))
  557. local wld11=weld(prt1,prt11,Torso,euler(0,math.rad(45),0)*cf(0,0,-104.75))
  558. local wld12=weld(prt1,prt12,Torso,euler(0,math.rad(90),0)*cf(0,0,-104.75))
  559. local wld13=weld(prt1,prt13,Torso,euler(0,math.rad(90),math.rad(-35))*cf(32.009,-22.413,-88.007))
  560. local wld14=weld(prt1,prt14,Torso,euler(0,math.rad(90),math.rad(35))*cf(-32.009,-22.413,-88.007))
  561. local wld15=weld(prt1,prt15,Torso,euler(0,math.rad(90),math.rad(90))*cf(32.075,0,-88.007))
  562. local wld16=weld(prt1,prt16,Torso,euler(0,math.rad(90),math.rad(-90))*cf(-32.075,0,-88.007))
  563. local wld17=weld(prt1,prt17,Torso,euler(0,math.rad(90),math.rad(90-35))*cf(32.009,22.413,-88.007))
  564. local wld18=weld(prt1,prt18,Torso,euler(0,math.rad(90),math.rad(-90+35))*cf(-32.009,22.413,-88.007))
  565. local wld19=weld(prt1,prt19,Torso,euler(0,0,0)*cf(94,-47.5,-2.248))
  566. local wld20=weld(prt1,prt20,prt19,euler(math.rad(90),math.rad(-90+75),0)*cf(21.417,0,79.93))
  567. local wld21=weld(prt1,prt21,prt19,euler(0,0,math.rad(90))*cf(74.25,0,0))
  568. local wld22=weld(prt1,prt22,prt21,euler(0,0,0)*cf(0,-30,0))
  569. local wld23=weld(prt1,prt23,prt21,euler(0,0,0)*cf(0,30,0))
  570. local wld24=weld(prt1,prt24,prt21,euler(0,0,0)*cf(0,90.25,0))
  571. local wld25=weld(prt1,prt25,prt24,euler(0,0,0)*cf(0,10,0))
  572. local wld26=weld(prt1,prt26,prt24,euler(0,0,0)*cf(0,-10,0))
  573. local wld27=weld(prt1,prt27,prt24,euler(0,0,math.rad(-90))*cf(88.5,0,0))
  574. local wld28=weld(prt1,prt28,prt24,euler(0,0,math.rad(90))*cf(-88.5,0,0))
  575. local wld29=weld(prt1,prt29,prt24,euler(0,0,0)*cf(0,125,0))
  576. local wld30=weld(prt1,prt30,prt29,euler(0,0,0)*cf(0,-60,0))
  577. local wld31=weld(prt1,prt31,prt29,euler(0,0,0)*cf(0,130,0))
  578. local wld32=weld(prt1,prt32,prt29,euler(0,0,0)*cf(0,130,0))
  579. local wld33=weld(prt1,prt33,Torso,euler(0,0,0)*cf(-94,-47.5,-2.248))
  580. local wld34=weld(prt1,prt34,prt33,euler(math.rad(-90),math.rad(-90-75),0)*cf(-21.417,0,79.93))
  581. local wld35=weld(prt1,prt35,prt33,euler(0,0,math.rad(90))*cf(-74.25,0,0))
  582. local wld36=weld(prt1,prt36,prt35,euler(0,0,0)*cf(0,30,0))
  583. local wld37=weld(prt1,prt37,prt35,euler(0,0,0)*cf(0,-30,0))
  584. local wld38=weld(prt1,prt38,prt35,euler(0,0,0)*cf(0,-90.25,0))
  585. local wld39=weld(prt1,prt39,prt38,euler(0,0,0)*cf(0,-10,0))
  586. local wld40=weld(prt1,prt40,prt38,euler(0,0,0)*cf(0,10,0))
  587. local wld41=weld(prt1,prt41,prt38,euler(0,0,math.rad(-90))*cf(88.5,0,0))
  588. local wld42=weld(prt1,prt42,prt38,euler(0,0,math.rad(90))*cf(-88.5,0,0))
  589. local wld43=weld(prt1,prt43,prt38,euler(0,0,0)*cf(0,-125,0))
  590. local wld44=weld(prt1,prt44,prt43,euler(0,0,0)*cf(0,60,0))
  591. local wld45=weld(prt1,prt45,prt43,euler(0,0,0)*cf(0,-130,0))
  592. local wld46=weld(prt1,prt46,prt43,euler(0,0,0)*cf(0,-130,0))
  593.  
  594. --[[wld19.C0=clerp(wld19.C0,euler(0,0,0)*cf(94,-47.5,-2.248),.3)
  595. wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0),.3)
  596. wld24.C0=clerp(wld24.C0,euler(0,0,0)*cf(0,90.25,0),.3)
  597. wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),.3)
  598.  
  599. wld33.C0=clerp(wld33.C0,euler(0,0,0)*cf(-94,-47.5,-2.248),.3)
  600. wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0),.3)
  601. wld38.C0=clerp(wld38.C0,euler(0,0,0)*cf(0,-90.25,0),.3)
  602. wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),.3)]]
  603.  
  604. local effects=it("Model",Character)
  605. effects.Name="Effects"
  606.  
  607. local refs2={}
  608. local createref=true
  609. if workspace:findFirstChild("SnowfRef",true) ~= nil then
  610. createref=false
  611. end
  612. local refs=it("Model",nil)
  613. refs.Name="SnowfRef"
  614.  
  615. --circle size 170,170,170
  616.  
  617. Ref1=part(0,refs,0,1,BrickColor.new("Really black"),"Ref1",vt(210,210,210)) Ref1.CanCollide=true Ref1.Anchored=true Ref1.Shape="Ball"
  618. Ref2=part(0,refs,0,1,BrickColor.new("Really black"),"Ref2",vt(119,119,119)) Ref2.CanCollide=true Ref2.Anchored=true Ref2.Shape="Ball"
  619. Ref3=part(0,refs,0,1,BrickColor.new("Really black"),"Ref3",vt(130,130,130)) Ref3.CanCollide=true Ref3.Anchored=true Ref3.Shape="Ball"
  620. Ref4=part(0,refs,0,1,BrickColor.new("Really black"),"Ref4",vt(130,100,100)) Ref4.CanCollide=true Ref4.Anchored=true Ref4.Shape="Cylinder"
  621. Ref5=part(0,refs,0,1,BrickColor.new("Really black"),"Ref5",vt(130,130,130)) Ref5.CanCollide=true Ref5.Anchored=true Ref5.Shape="Ball"
  622. Ref6=part(0,refs,0,1,BrickColor.new("Really black"),"Ref6",vt(160,105,105)) Ref6.CanCollide=true Ref6.Anchored=true Ref6.Shape="Cylinder"
  623. Ref7=part(0,refs,0,1,BrickColor.new("Really black"),"Ref7",vt(170,170,170)) Ref7.CanCollide=true Ref7.Anchored=true Ref7.Shape="Ball"
  624. Ref8=part(0,refs,0,1,BrickColor.new("Really black"),"Ref8",vt(130,130,130)) Ref8.CanCollide=true Ref8.Anchored=true Ref8.Shape="Ball"
  625. Ref9=part(0,refs,0,1,BrickColor.new("Really black"),"Ref9",vt(130,100,100)) Ref9.CanCollide=true Ref9.Anchored=true Ref9.Shape="Cylinder"
  626. Ref10=part(0,refs,0,1,BrickColor.new("Really black"),"Ref10",vt(130,130,130)) Ref10.CanCollide=true Ref10.Anchored=true Ref10.Shape="Ball"
  627. Ref11=part(0,refs,0,1,BrickColor.new("Really black"),"Ref11",vt(160,105,105)) Ref11.CanCollide=true Ref11.Anchored=true Ref11.Shape="Cylinder"
  628. Ref12=part(0,refs,0,1,BrickColor.new("Really black"),"Ref12",vt(170,170,170)) Ref12.CanCollide=true Ref12.Anchored=true Ref12.Shape="Ball"
  629.  
  630. if createref==false then
  631. refs=workspace.SnowfRef
  632. Ref1=refs.Ref1
  633. Ref2=refs.Ref2
  634. Ref3=refs.Ref3
  635. Ref4=refs.Ref4
  636. Ref5=refs.Ref5
  637. Ref6=refs.Ref6
  638. Ref7=refs.Ref7
  639. Ref8=refs.Ref8
  640. Ref9=refs.Ref9
  641. Ref10=refs.Ref10
  642. Ref11=refs.Ref11
  643. Ref12=refs.Ref12
  644. else
  645. --refs.Parent=workspace
  646. end
  647.  
  648. --[[R1wld=weld(Ref1,Ref1,Torso,euler(0,0,0)*cf(0,0,0))
  649. R2wld=weld(Ref2,Ref2,Head,euler(0,0,0)*cf(0,0,0))
  650. R3wld=weld(Ref3,Ref3,prt19,euler(0,0,0)*cf(0,0,0))
  651. R4wld=weld(Ref4,Ref4,prt21,euler(0,0,0)*cf(0,0,0))
  652. R5wld=weld(Ref5,Ref5,prt24,euler(0,0,0)*cf(0,0,0))
  653. R6wld=weld(Ref6,Ref6,prt29,euler(0,0,0)*cf(0,0,0))
  654. R7wld=weld(Ref7,Ref7,prt31,euler(0,0,0)*cf(0,0,0))
  655. R8wld=weld(Ref8,Ref8,prt33,euler(0,0,0)*cf(0,0,0))
  656. R9wld=weld(Ref9,Ref9,prt35,euler(0,0,0)*cf(0,0,0))
  657. R10wld=weld(Ref10,Ref10,prt38,euler(0,0,0)*cf(0,0,0))
  658. R11wld=weld(Ref11,Ref11,prt43,euler(0,0,0)*cf(0,0,0))
  659. R12wld=weld(Ref12,Ref12,prt45,euler(0,0,0)*cf(0,0,0))]]
  660. table.insert(refs2,{Ref1,Torso,cf(0,0,0)})
  661. table.insert(refs2,{Ref2,Head,cf(0,0,0)})
  662. table.insert(refs2,{Ref3,prt19,cf(0,0,0)})
  663. table.insert(refs2,{Ref4,prt21,euler(0,0,math.rad(90))})
  664. table.insert(refs2,{Ref5,prt24,cf(0,0,0)})
  665. table.insert(refs2,{Ref6,prt29,euler(0,0,math.rad(90))})
  666. table.insert(refs2,{Ref7,prt31,cf(0,0,0)})
  667. table.insert(refs2,{Ref8,prt33,cf(0,0,0)})
  668. table.insert(refs2,{Ref9,prt35,euler(0,0,math.rad(90))})
  669. table.insert(refs2,{Ref10,prt38,cf(0,0,0)})
  670. table.insert(refs2,{Ref11,prt43,euler(0,0,math.rad(90))})
  671. table.insert(refs2,{Ref12,prt45,cf(0,0,0)})
  672.  
  673. for _,c in pairs(armor:children()) do
  674. table.insert(armorparts,c)
  675. end
  676. --[[for _,c in pairs(modelzorz:children()) do
  677. table.insert(weaponparts,c)
  678. end]]
  679. for _,c in pairs(prt1:children()) do
  680. table.insert(weaponwelds,c)
  681. end
  682. local hitbox=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  683. --hitbox.Anchored=true
  684. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  685. hitbox2.Anchored=true
  686. local hitboxCF=cf(0,0,0)
  687.  
  688. --TehHealth=500+(#game.Players:GetChildren()*20)
  689. local CurrentHealth=300000
  690. Humanoid.MaxHealth=CurrentHealth
  691. Humanoid.Health=CurrentHealth
  692. local Stats=Instance.new("BoolValue")
  693. Stats.Name="Stats"
  694. Stats.Parent=Character
  695. local Alive=Instance.new("BoolValue")
  696. Alive.Name="Alive"
  697. Alive.Parent=Character
  698. Alive.Value=true
  699. local Atk=Instance.new("NumberValue")
  700. Atk.Name="Damage"
  701. Atk.Parent=Stats
  702. Atk.Value= math.huge
  703. local Def=Instance.new("NumberValue")
  704. Def.Name="Defense"
  705. Def.Parent=Stats
  706. Def.Value=100
  707. local Mvmt=Instance.new("NumberValue")
  708. Mvmt.Name="Movement"
  709. Mvmt.Parent=Stats
  710. Mvmt.Value=1
  711. local Block=Instance.new("BoolValue")
  712. Block.Name="Block"
  713. Block.Parent=Stats
  714. Block.Value=false
  715. local Stun=Instance.new("NumberValue")
  716. Stun.Name="Stun"
  717. Stun.Parent=Stats
  718. Stun.Value=0
  719. local StunT=Instance.new("NumberValue")
  720. StunT.Name="StunThreshold"
  721. StunT.Parent=Stats
  722. StunT.Value=800
  723. local Rooted=Instance.new("BoolValue")
  724. Rooted.Name="Rooted"
  725. Rooted.Parent=Stats
  726. Rooted.Value=false
  727. local Stunned=Instance.new("BoolValue")
  728. Stunned.Name="Stunned"
  729. Stunned.Parent=Stats
  730. Stunned.Value=false
  731. local Stagger=Instance.new("BoolValue")
  732. Stagger.Name="Stagger"
  733. Stagger.Parent=Stats
  734. Stagger.Value=false
  735. local StaggerHit=Instance.new("BoolValue")
  736. StaggerHit.Name="StaggerHit"
  737. StaggerHit.Parent=Stats
  738. StaggerHit.Value=false
  739. local Decrease=Instance.new("BoolValue")
  740. Decrease.Name="Decrease"
  741. Decrease.Parent=Stats
  742. Decrease.Value=false
  743. local mana=Instance.new("NumberValue")
  744. mana.Name="Mana"
  745. mana.Parent=Stats
  746. mana.Value=10000000
  747. local boss=Instance.new("BoolValue")
  748. boss.Name="Boss"
  749. boss.Parent=Stats
  750. boss.Value=true
  751. local ungrab=Instance.new("BoolValue")
  752. ungrab.Name="Ungrabbable"
  753. ungrab.Parent=Stats
  754. ungrab.Value=true
  755.  
  756. local Cryst1=it("Model",nil)
  757. Cryst1.Name="Heart Of The King"
  758. local C1Head=part(0,Cryst1,0,0,BrickColor.new("Really red"),"Head",vt(15,20,15)) C1Head.Anchored=true
  759. local C1msh=mesh("SpecialMesh",C1Head,"FileMesh","9756362",vt(0,0,0),vt(20,30,20))
  760. local C1Torso=part(0,Cryst1,0,.5,BrickColor.new("Really red"),"Torso",vt()) C1Torso.Anchored=true
  761. local C1msh=mesh("SpecialMesh",C1Torso,"FileMesh","9756362",vt(0,0,0),vt(-20,-50,-20))
  762. local C1S=Stats:Clone() C1S.Parent=Cryst1
  763. local Cryst2=it("Model",nil) Cryst2.Name="Sould Of The King"
  764. local C2Head=C1Head:Clone() C2Head.Parent=Cryst2
  765. local C2Torso=C1Torso:Clone() C2Torso.Parent=Cryst2
  766. local C2S=Stats:Clone() C2S.Parent=Cryst2
  767. local Cryst3=it("Model",nil) Cryst3.Name="Power OF The King"
  768. local C3Head=C1Head:Clone() C3Head.Parent=Cryst3
  769. local C3Torso=C1Torso:Clone() C3Torso.Parent=Cryst3
  770. local C3S=Stats:Clone() C3S.Parent=Cryst3
  771. local Cryst4=it("Model",nil) Cryst4.Name="Energy Of The King"
  772. local C4Head=C1Head:Clone() C4Head.Parent=Cryst4
  773. local C4Torso=C1Torso:Clone() C4Torso.Parent=Cryst4
  774. local C4S=Stats:Clone() C4S.Parent=Cryst4
  775. local C1Neck=weld(C1Torso,C1Torso,C1Head,euler(0,0,0)*cf(0,0,0))
  776. local C2Neck=weld(C2Torso,C2Torso,C2Head,euler(0,0,0)*cf(0,0,0))
  777. local C3Neck=weld(C3Torso,C3Torso,C3Head,euler(0,0,0)*cf(0,0,0))
  778. local C4Neck=weld(C4Torso,C4Torso,C4Head,euler(0,0,0)*cf(0,0,0))
  779. local C1Hum=it("Humanoid")
  780. local C2Hum=it("Humanoid")
  781. local C3Hum=it("Humanoid")
  782. local C4Hum=it("Humanoid")
  783. local C1a=false
  784. local C2a=false
  785. local C3a=false
  786. local C4a=false
  787.  
  788. so = function(id,par,vol,pit)
  789. local sou = Instance.new("Sound",par or workspace)
  790. sou.Volume=vol
  791. sou.Pitch=pit or 1
  792. sou.SoundId="http://www.roblox.com/asset/?id="..id
  793. --swait()
  794. sou:play()
  795. game:GetService("Debris"):AddItem(sou,6)
  796. end
  797.  
  798. local function CFrameFromTopBack(at, top, back)
  799. local right = top:Cross(back)
  800. return CFrame.new(at.x, at.y, at.z,
  801. right.x, top.x, back.x,
  802. right.y, top.y, back.y,
  803. right.z, top.z, back.z)
  804. end
  805.  
  806. function Triangle(a, b, c)
  807. local edg1 = (c-a):Dot((b-a).unit)
  808. local edg2 = (a-b):Dot((c-b).unit)
  809. local edg3 = (b-c):Dot((a-c).unit)
  810. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  811. a, b, c = a, b, c
  812. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  813. a, b, c = b, c, a
  814. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  815. a, b, c = c, a, b
  816. else
  817. assert(false, "unreachable")
  818. end
  819.  
  820. local len1 = (c-a):Dot((b-a).unit)
  821. local len2 = (b-a).magnitude - len1
  822. local width = (a + (b-a).unit*len1 - c).magnitude
  823.  
  824. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  825.  
  826. local list = {}
  827.  
  828. if len1 > 0.01 then
  829. local w1 = Instance.new('WedgePart', m)
  830. w1.Name = "Triangle"
  831. game:GetService("Debris"):AddItem(w1,5)
  832. w1.Material = "SmoothPlastic"
  833. w1.FormFactor = 'Custom'
  834. w1.BrickColor = BrickColor.new("Really black")
  835. w1.Transparency = 0
  836. w1.Reflectance = 0
  837. w1.Material = "SmoothPlastic"
  838. w1.CanCollide = false
  839. NoOutline(w1)
  840. local sz = Vector3.new(0.2, width, len1)
  841. w1.Size = sz
  842. local sp = Instance.new("SpecialMesh",w1)
  843. sp.MeshType = "Wedge"
  844. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  845. w1:BreakJoints()
  846. w1.Anchored = true
  847. w1.Parent = workspace
  848. w1.Transparency = 0.7
  849. table.insert(Effects,{w1,"Disappear",.05})
  850. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  851. table.insert(list,w1)
  852. end
  853.  
  854. if len2 > 0.01 then
  855. local w2 = Instance.new('WedgePart', m)
  856. w2.Name = "Triangle"
  857. game:GetService("Debris"):AddItem(w2,5)
  858. w2.Material = "SmoothPlastic"
  859. w2.FormFactor = 'Custom'
  860. w2.BrickColor = BrickColor.new("Really black")
  861. w2.Transparency = 0
  862. w2.Reflectance = 0
  863. w2.Material = "SmoothPlastic"
  864. w2.CanCollide = false
  865. NoOutline(w2)
  866. local sz = Vector3.new(0.2, width, len2)
  867. w2.Size = sz
  868. local sp = Instance.new("SpecialMesh",w2)
  869. sp.MeshType = "Wedge"
  870. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  871. w2:BreakJoints()
  872. w2.Anchored = true
  873. w2.Parent = workspace
  874. w2.Transparency = 0.7
  875. table.insert(Effects,{w2,"Disappear",.05})
  876. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  877. table.insert(list,w2)
  878. end
  879. return unpack(list)
  880. end
  881.  
  882. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  883. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  884. prt.Anchored=true
  885. prt.CFrame=cframe
  886. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  887. game:GetService("Debris"):AddItem(prt,10)
  888. if Type==1 or Type==nil then
  889. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  890. elseif Type==2 then
  891. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  892. end
  893. end
  894.  
  895. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  896. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  897. prt.Anchored=true
  898. prt.CFrame=cframe
  899. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  900. game:GetService("Debris"):AddItem(prt,10)
  901. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  902. end
  903.  
  904. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
  905. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  906. prt.Anchored=true
  907. prt.CFrame=cframe
  908. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  909. game:GetService("Debris"):AddItem(prt,10)
  910. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
  911. end
  912.  
  913. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  914. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  915. prt.Anchored=true
  916. prt.CFrame=cframe*cf(x2,y2,z2)
  917. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  918. game:GetService("Debris"):AddItem(prt,10)
  919. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  920. end
  921.  
  922. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  923. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  924. prt.Anchored=true
  925. prt.CFrame=cframe
  926. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  927. game:GetService("Debris"):AddItem(prt,10)
  928. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  929. end
  930.  
  931. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  932. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  933. prt.Anchored=true
  934. prt.CFrame=cframe
  935. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  936. game:GetService("Debris"):AddItem(prt,10)
  937. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  938. end
  939.  
  940. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  941. local prt=part(3,effects,0,1,brickcolor,"Effect",vt())
  942. prt.Anchored=true
  943. prt.CFrame=cframe
  944. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  945. game:GetService("Debris"):AddItem(prt,10)
  946. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  947. end
  948.  
  949. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  950. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  951. prt.Anchored=true
  952. prt.CFrame=cframe
  953. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  954. game:GetService("Debris"):AddItem(prt,10)
  955. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  956. end
  957.  
  958. function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  959. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  960. prt.Anchored=true
  961. prt.CFrame=cframe
  962. local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  963. game:GetService("Debris"):AddItem(prt,10)
  964. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,0})
  965. end
  966.  
  967. function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  968. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  969. prt.Anchored=true
  970. prt.CFrame=cframe
  971. local msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
  972. game:GetService("Debris"):AddItem(prt,10)
  973. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  974. end
  975.  
  976. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  977. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  978. prt.Anchored=true
  979. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  980. game:GetService("Debris"):AddItem(prt,10)
  981. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  982. local num=math.random(10,50)/1000
  983. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  984. --table.insert(Effects,{prt,"Shatter",.02,msh})
  985. --[[
  986. 1=prt
  987. 2=Shatter
  988. 3=.02
  989. 4=Thing[1].CFrame
  990. 5=randnum
  991. 6=Numbb
  992. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  993. CF=Part.CFrame
  994. Numbb=0
  995. randnumb=math.random()-math.random()
  996. for i=0,1,0.05 do
  997. wait()
  998. CF=CF*cf(0,1,0)
  999. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1000. Part.CFrame=CF*euler(Numbb,0,0)
  1001. Part.Transparency=i
  1002. Numbb=Numbb+randnumb
  1003. end
  1004. Part.Parent=nil
  1005. end),prt,CF,Numbb,randnumb)]]
  1006. end
  1007.  
  1008. function BreakEffect2(brickcolor,cframe,x1,y1,z1)
  1009. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1010. prt.Anchored=true
  1011. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1012. game:GetService("Debris"):AddItem(prt,10)
  1013. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1014. local num=math.random(100,200)/1000
  1015. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(300,1000)/100})
  1016. end
  1017.  
  1018.  
  1019. --Break effect. Credits to whoever made it
  1020. local MaxPieces = 10
  1021. local Explode = true
  1022. local Connection = nil
  1023. function IsWhole(Number)
  1024. return math.ceil(Number) == Number
  1025. end
  1026. function ChangeAxis(Vector,Axis,Value)
  1027. if(Axis == "x")then
  1028. return Vector3.new(Value,Vector.y,Vector.z)
  1029. end
  1030. if(Axis == "y")then
  1031. return Vector3.new(Vector.x,Value,Vector.z)
  1032. end
  1033. if(Axis == "z")then
  1034. return Vector3.new(Vector.x,Vector.y,Value)
  1035. end
  1036. end
  1037. function Break(mouse)
  1038. local Targ = mouse
  1039. local oldParent = mouse.Parent
  1040. local FF = 1
  1041. if(Targ.formFactor == Enum.FormFactor.Symmetric)then
  1042. FF = 1
  1043. end
  1044. if(Targ.formFactor == Enum.FormFactor.Brick)then
  1045. FF = 1.2
  1046. end
  1047. if(Targ.formFactor == Enum.FormFactor.Plate)then
  1048. FF = 0.4
  1049. end
  1050. local New = Targ:Clone()
  1051. local Rotation = Targ.CFrame - Targ.CFrame.p
  1052. local SizeFactorX = 1
  1053. local SizeFactorY = FF
  1054. local SizeFactorZ = 1
  1055. local Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
  1056. while Extra > 1 do
  1057. SizeFactorX = SizeFactorX * 2
  1058. SizeFactorY = SizeFactorY * 2
  1059. SizeFactorZ = SizeFactorZ * 2
  1060. if(SizeFactorX > Targ.Size.x)then
  1061. SizeFactorX = Targ.Size.x
  1062. end
  1063. if(SizeFactorY > Targ.Size.y)then
  1064. SizeFactorY = Targ.Size.y
  1065. end
  1066. if(SizeFactorZ > Targ.Size.z)then
  1067. SizeFactorZ = Targ.Size.z
  1068. end
  1069. Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
  1070. end
  1071. local Start = Targ.Position - (Targ.CFrame.lookVector * (Targ.Size.z/2 + (SizeFactorZ / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * (Targ.Size.x/2 + (SizeFactorX / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * (Targ.Size.y/2 + (SizeFactorY/2)))
  1072. New.Size = Vector3.new(SizeFactorX,SizeFactorY,SizeFactorZ)
  1073. New.Anchored = false
  1074. local OverShootZ = (Targ.Size.z/SizeFactorZ) - math.floor(Targ.Size.z/SizeFactorZ)
  1075. local OverShootX = (Targ.Size.x/SizeFactorX) - math.floor(Targ.Size.x/SizeFactorX)
  1076. local OverShootY = (Targ.Size.y/SizeFactorY) - math.floor(Targ.Size.y/SizeFactorY)
  1077. ----print("SizeFactor",SizeFactorX,SizeFactorY,SizeFactorZ)
  1078. ----print("OverShoot",OverShootX,OverShootY,OverShootZ)
  1079. for z = 1,math.ceil(Targ.Size.z/SizeFactorZ) do
  1080. if(OverShootZ > 0)then
  1081. if(z == math.ceil(Targ.Size.z/SizeFactorZ))then
  1082. z = z - ((1 - OverShootZ) / 2)
  1083. New.Size = ChangeAxis(New.Size,"z",OverShootZ * SizeFactorZ)
  1084. else
  1085. New.Size = ChangeAxis(New.Size,"z",SizeFactorZ)
  1086. end
  1087. end
  1088. for y = 1,math.ceil(Targ.Size.y/SizeFactorY) do
  1089. if(OverShootY > 0)then
  1090. if(y == math.ceil(Targ.Size.y/SizeFactorY))then
  1091. y = y - ((1 - OverShootY) / 2)
  1092. New.Size = ChangeAxis(New.Size,"y",OverShootY * SizeFactorY)
  1093. else
  1094. New.Size = ChangeAxis(New.Size,"y",SizeFactorY)
  1095. end
  1096. end
  1097. for x = 1,math.ceil(Targ.Size.x/SizeFactorX) do
  1098. if(OverShootX > 0)then
  1099. if(x == math.ceil(Targ.Size.x/SizeFactorX))then
  1100. x = x - ((1 - OverShootX) / 2)
  1101. New.Size = ChangeAxis(New.Size,"x",OverShootX * SizeFactorX)
  1102. else
  1103. New.Size = ChangeAxis(New.Size,"x",SizeFactorX)
  1104. end
  1105. end
  1106. local N = New:Clone()
  1107. N.CFrame = CFrame.new(Start + (Targ.CFrame.lookVector * z * SizeFactorZ)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * x * SizeFactorX)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * y * SizeFactorY))*Rotation
  1108. --N.Parent = oldParent
  1109. N.Parent = workspace
  1110. N.CanCollide = false
  1111. N.Velocity = vt(math.random(-300,300),math.random(-20,40),math.random(-300,300))
  1112. N.RotVelocity = vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1113. game:GetService("Debris"):AddItem(N,5)
  1114. end
  1115. end
  1116. end
  1117. Targ:Remove()
  1118. end
  1119.  
  1120.  
  1121.  
  1122. local BodGy=Instance.new("BodyGyro")
  1123. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  1124. BodGy.P=2000
  1125. BodGy.D=100
  1126. BodGy.Name="SiegmundGyro"
  1127. CF=RootPart.CFrame
  1128. BodGy.Parent=RootPart
  1129. BodGy.cframe=CF
  1130.  
  1131. sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
  1132. transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
  1133. local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
  1134. sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
  1135. transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
  1136. local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
  1137. sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
  1138. transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
  1139.  
  1140. --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
  1141. RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
  1142. RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
  1143. RW.C1=cf(0,1.5,0)*euler(0,0,0)
  1144. LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
  1145. LW.C1=cf(0,1.5,0)*euler(0,0,0)
  1146. RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
  1147. RH.C1=cf(0,3,0)*euler(0,0,0)
  1148. LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
  1149. LH.C1=cf(0,3,0)*euler(0,0,0)]]
  1150. -- idle pose
  1151. --[[Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1152. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
  1153. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1154. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),1)
  1155. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),1)
  1156. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1157.  
  1158. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1159. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),1)
  1160. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),1)
  1161. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)]]
  1162.  
  1163. --[[ old idle
  1164. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
  1165. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1166. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
  1167. wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),1)
  1168. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1169.  
  1170. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1171. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
  1172. wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
  1173. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
  1174. ]]
  1175.  
  1176. --[[RootJoint.C0=clerp(RootJoint.C0,cf(-1.749,-200,0),1)
  1177. wld19.C0=clerp(wld19.C0,euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1178. wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
  1179. wld24.C0=clerp(wld24.C0,euler(1.4,-.2,0)*cf(0,90.25,0),1)
  1180. wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),1)
  1181.  
  1182. wld33.C0=clerp(wld33.C0,euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1183. wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
  1184. wld38.C0=clerp(wld38.C0,euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
  1185. wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),1)]]
  1186. msh3.Scale=vt(4,0,8.5)
  1187. msh5.Scale=vt(4,0,8.5)
  1188. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1189. RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,.1)*cf(-1.749,-60,-30),1)
  1190. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1191. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.6)*euler(0,-.8,0)*euler(0,0,0),1)
  1192. wld24.C0=wld24.C0:lerp(euler(1.4,.5,0)*cf(0,90.25,0),1)
  1193. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1194.  
  1195. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1196. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.8,0)*euler(.8,0,0),1)
  1197. wld38.C0=wld38.C0:lerp(euler(-.6,1,0)*cf(0,-90.25,0),1)
  1198. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
  1199. --[[local Ice1=part(0,armor,.2,0,BrickColor.new("Hot pink"),"Ice",vt(57.75,136.17,57.77))
  1200. Ice1.Material="Ice"
  1201. Ice1.Anchored=true
  1202. Ice1.CFrame=workspace.BossSpawn.CFrame*cf(144.341,286.773,15.162)
  1203. local Ice2=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(89.99,35.13,77.57)) Ice2.Material="Ice" Ice2.Anchored=true
  1204. Ice2.CFrame=workspace.BossSpawn.CFrame*cf(-53.887,-10.726,-155.145)
  1205. local Ice3=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(164.4,63.01,89.76)) Ice3.Material="Ice" Ice3.Anchored=true
  1206. Ice3.CFrame=workspace.BossSpawn.CFrame*cf(-107.848,12.137,-93.992)
  1207. local Ice4=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(25.2,179.13,34.57))
  1208. Ice4.Material="Ice"
  1209. Ice4.Anchored=true
  1210. Ice4.CFrame=workspace.BossSpawn.CFrame*cf(319.875,454.041,179.418)]]
  1211. --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(144.341,286.773,15.162))
  1212. --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(15.162,286.773))
  1213. --local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
  1214.  
  1215. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  1216. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  1217. --local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
  1218. for i=0,1,0.05 do
  1219. swait()
  1220. msh3.Scale=vt(4,1+7.5*i,8.5)
  1221. msh5.Scale=vt(4,1+7.5*i,8.5)
  1222. end
  1223. msh3.Scale=vt(4,8.5,8.5)
  1224. msh5.Scale=vt(4,8.5,8.5)
  1225. stunanim=true
  1226. attack=true
  1227. stunanim=false
  1228. attack=false
  1229. --[[for i=0,1,0.02 do
  1230. swait()
  1231. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.1)
  1232. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.1)
  1233. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
  1234. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
  1235. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
  1236. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  1237.  
  1238. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
  1239. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
  1240. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
  1241. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)
  1242. end]]
  1243. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1244. --print("START BOSS BATTLE")
  1245.  
  1246. function TriIceShards()
  1247. --for i=1,math.random(1,4) do
  1248. local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1249. local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1250. local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1251. local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1252. local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
  1253. i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1254. icepart1.CFrame=dacf
  1255. local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
  1256. i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1257. icepart2.CFrame=dacf2
  1258. local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
  1259. i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1260. icepart3.CFrame=dacf3
  1261. local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1262. local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
  1263. local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1264. local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
  1265. local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1266. local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
  1267. for i=0,1,0.1 do
  1268. swait()
  1269. icepart1.CFrame=dacf
  1270. icepart2.CFrame=dacf2
  1271. icepart3.CFrame=dacf3
  1272. dacf=dacf*cf(0,math.random(500,1000)/10,0)
  1273. dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
  1274. dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
  1275. end
  1276. local target1,distance1=findRandomTorso(icepart1.Position)
  1277. local target2,distance2=findRandomTorso(icepart2.Position)
  1278. local target3,distance3=findRandomTorso(icepart3.Position)
  1279. MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
  1280. MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
  1281. MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
  1282. if target1~=nil then
  1283. so("333475957",icepart1,1,.9)
  1284. local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
  1285. table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
  1286. else
  1287. icepart1.Parent=nil
  1288. end
  1289. if target2~=nil then
  1290. so("333475957",icepart2,1,.9)
  1291. local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
  1292. table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
  1293. else
  1294. icepart2.Parent=nil
  1295. end
  1296. if target3~=nil then
  1297. so("333475957",icepart3,1,.9)
  1298. local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
  1299. table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
  1300. else
  1301. icepart3.Parent=nil
  1302. end
  1303. --end
  1304. end
  1305.  
  1306. function TriIceShards2()
  1307. --for i=1,math.random(1,4) do
  1308. local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1309. --[[eul1=math.random(0,800)/1000 eul2=math.random(400,1200)/1000
  1310. eul3=math.random(200,1000)/1000
  1311. eul4=math.random(0,800)/1000 eul5=math.random(400,1200)/1000
  1312. local dacf=Torso.CFrame*euler(-eul1,0,eul2)
  1313. local dacf2=Torso.CFrame*euler(-eul3,0,0)
  1314. local dacf3=Torso.CFrame*euler(-eul4,0,-eul5)]]
  1315. local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1316. local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1317. local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1318. local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
  1319. i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1320. icepart1.CFrame=dacf
  1321. local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
  1322. i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1323. icepart2.CFrame=dacf2
  1324. local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
  1325. i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1326. icepart3.CFrame=dacf3
  1327. local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1328. local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
  1329. local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1330. local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
  1331. local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1332. local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
  1333. for i=0,1,0.1 do
  1334. swait()
  1335. icepart1.CFrame=dacf
  1336. icepart2.CFrame=dacf2
  1337. icepart3.CFrame=dacf3
  1338. dacf=dacf*cf(0,math.random(500,1000)/10,0)
  1339. dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
  1340. dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
  1341. end
  1342. local target1,distance1=findNearestTorso(Head.Position)
  1343. local target2,distance2=findNearestTorso(Head.Position)
  1344. local target3,distance3=findNearestTorso(Head.Position)
  1345. MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
  1346. MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
  1347. MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
  1348. if target1~=nil then
  1349. so("333475957",icepart1,1,.9)
  1350. local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
  1351. table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
  1352. else
  1353. icepart1.Parent=nil
  1354. end
  1355. if target2~=nil then
  1356. so("333475957",icepart2,1,.9)
  1357. local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
  1358. table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
  1359. else
  1360. icepart2.Parent=nil
  1361. end
  1362. if target3~=nil then
  1363. so("333475957",icepart3,1,.9)
  1364. local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
  1365. table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
  1366. else
  1367. icepart3.Parent=nil
  1368. end
  1369. --end
  1370. end
  1371.  
  1372. function TriOrbs()
  1373. --for i=1,math.random(1,4) do
  1374. local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1375. local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1376. local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1377. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1378. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1379. icepart1.CFrame=dacf
  1380. local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
  1381. i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1382. icepart2.CFrame=dacf2
  1383. local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
  1384. i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1385. icepart3.CFrame=dacf3
  1386. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1387. local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1388. local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1389. for i=0,1,0.1 do
  1390. swait()
  1391. icepart1.CFrame=dacf
  1392. icepart2.CFrame=dacf2
  1393. icepart3.CFrame=dacf3
  1394. dacf=dacf*cf(0,math.random(400,800)/10,0)
  1395. dacf2=dacf2*cf(0,math.random(400,800)/10,0)
  1396. dacf3=dacf3*cf(0,math.random(400,800)/10,0)
  1397. end
  1398. local target1,distance1=findRandomTorso(icepart1.Position)
  1399. local target2,distance2=findRandomTorso(icepart2.Position)
  1400. local target3,distance3=findRandomTorso(icepart3.Position)
  1401. local test1,dist1=findNearestTorso(Head.Position)
  1402. local pos1,pos2,pos3=nil,nil,nil
  1403. local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
  1404. local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
  1405. local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
  1406. if target1~=nil then
  1407. pos1=target1.Position
  1408. refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1409. end
  1410. if target2~=nil then
  1411. pos2=target2.Position
  1412. refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1413. end
  1414. if target3~=nil then
  1415. pos3=target3.Position
  1416. refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1417. end
  1418. local move=40
  1419. for i=0,1,0.1 do
  1420. swait()
  1421. move=40-40*i
  1422. if target1~=nil then
  1423. refpart1.CFrame=cf(refpart1.Position,target1.Position)
  1424. MagicCircle2(BrickColor.new("Really red"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1425. icepart1.CFrame=dacf
  1426. dacf=dacf*cf(0,move,0)
  1427. end
  1428. if target2~=nil then
  1429. refpart2.CFrame=cf(refpart2.Position,target2.Position)
  1430. MagicCircle2(BrickColor.new("Really red"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1431. icepart2.CFrame=dacf2
  1432. dacf2=dacf2*cf(0,move,0)
  1433. end
  1434. if target3~=nil then
  1435. refpart3.CFrame=cf(refpart3.Position,target3.Position)
  1436. MagicCircle2(BrickColor.new("Really red"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1437. icepart3.CFrame=dacf3
  1438. dacf3=dacf3*cf(0,move,0)
  1439. end
  1440. end
  1441. local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
  1442. local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
  1443. local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
  1444. local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
  1445. local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
  1446. local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
  1447. local ref=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1448. ref.Anchored=true
  1449. ref.CFrame=cf(0,0,0)
  1450. game:GetService("Debris"):AddItem(ref,1)
  1451. local ref1=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1452. ref1.Anchored=true
  1453. ref1.CFrame=cf(0,0,0)
  1454. game:GetService("Debris"):AddItem(ref1,5)
  1455. local ice1=0
  1456. local ref2=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1457. ref2.Anchored=true
  1458. ref2.CFrame=cf(0,0,0)
  1459. game:GetService("Debris"):AddItem(ref2,5)
  1460. local ice2=2
  1461. local ref3=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1462. ref3.Anchored=true
  1463. ref3.CFrame=cf(0,0,0)
  1464. game:GetService("Debris"):AddItem(ref3,5)
  1465. local ice3=4
  1466. for i=0,3,0.05 do
  1467. swait()
  1468. ice1=ice1+1
  1469. ice2=ice2+1
  1470. ice3=ice3+1
  1471. if target1~=nil then
  1472. if i>1 then
  1473. refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
  1474. end
  1475. local cfnew=cf(icepart1.Position,refpart1.Position)
  1476. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  1477. local mag1=(icepart1.Position-pos1).magnitude
  1478. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  1479. lmsh1.Scale=vt(10,mag1*5,10)
  1480. MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
  1481. ref.CFrame=cf(pos1)
  1482. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1483. ref1.CFrame=cf(ref.Position)
  1484. if ice1%2==0 then
  1485. so("333476017",ref1,.3,1.4)
  1486. end
  1487. end
  1488. if target2~=nil then
  1489. if i>1 then
  1490. refpart2.CFrame=refpart2.CFrame*cf(0,0,-1.5)
  1491. end
  1492. local cfnew=cf(icepart2.Position,refpart2.Position)
  1493. local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
  1494. local mag2=(icepart2.Position-pos2).magnitude
  1495. laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
  1496. lmsh2.Scale=vt(10,mag2*5,10)
  1497. MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
  1498. ref.CFrame=cf(pos2)
  1499. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1500. ref2.CFrame=cf(ref.Position)
  1501. if ice2%2==0 then
  1502. so("333476017",ref2,.3,1.4)
  1503. end
  1504. end
  1505. if target3~=nil then
  1506. if i>1 then
  1507. refpart3.CFrame=refpart3.CFrame*cf(0,0,-1.5)
  1508. end
  1509. local cfnew=cf(icepart3.Position,refpart3.Position)
  1510. local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
  1511. local mag3=(icepart3.Position-pos3).magnitude
  1512. laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
  1513. lmsh3.Scale=vt(10,mag3*5,10)
  1514. MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
  1515. ref.CFrame=cf(pos3)
  1516. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1517. ref3.CFrame=cf(ref.Position)
  1518. if ice3%2==0 then
  1519. so("333476017",ref3,.3,1.4)
  1520. end
  1521. end
  1522. end
  1523. if target1~=nil then
  1524. local pos1=laser1.CFrame
  1525. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  1526. MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
  1527. end
  1528. if target2~=nil then
  1529. local pos2=laser2.CFrame
  1530. local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
  1531. MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
  1532. end
  1533. if target3~=nil then
  1534. local pos3=laser3.CFrame
  1535. local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
  1536. MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
  1537. end
  1538. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  1539. MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
  1540. MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
  1541. icepart1.Parent=nil
  1542. icepart2.Parent=nil
  1543. icepart3.Parent=nil
  1544. refpart1.Parent=nil
  1545. refpart2.Parent=nil
  1546. refpart3.Parent=nil
  1547. laser1.Parent=nil
  1548. laser2.Parent=nil
  1549. laser3.Parent=nil
  1550. ref.Parent=nil
  1551. end
  1552.  
  1553. function TriOrbs2()
  1554. --for i=1,math.random(1,4) do
  1555. local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1556. local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1557. local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1558. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1559. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1560. icepart1.CFrame=dacf
  1561. local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
  1562. i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1563. icepart2.CFrame=dacf2
  1564. local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
  1565. i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1566. icepart3.CFrame=dacf3
  1567. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1568. local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1569. local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1570. for i=0,1,0.1 do
  1571. swait()
  1572. icepart1.CFrame=dacf
  1573. icepart2.CFrame=dacf2
  1574. icepart3.CFrame=dacf3
  1575. dacf=dacf*cf(0,math.random(400,800)/10,0)
  1576. dacf2=dacf2*cf(0,math.random(400,800)/10,0)
  1577. dacf3=dacf3*cf(0,math.random(400,800)/10,0)
  1578. end
  1579. local target1,distance1=findNearestTorso(Head.Position)
  1580. local target2,distance2=findNearestTorso(Head.Position)
  1581. local target3,distance3=findNearestTorso(Head.Position)
  1582. local test1,dist1=findNearestTorso(Head.Position)
  1583. local pos1,pos2,pos3=nil,nil,nil
  1584. local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
  1585. local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
  1586. local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
  1587. if target1~=nil then
  1588. pos1=target1.Position
  1589. refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1590. end
  1591. if target2~=nil then
  1592. pos2=target2.Position
  1593. refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1594. end
  1595. if target3~=nil then
  1596. pos3=target3.Position
  1597. refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1598. end
  1599. local move=40
  1600. for i=0,1,0.1 do
  1601. swait()
  1602. move=40-40*i
  1603. if target1~=nil then
  1604. refpart1.CFrame=cf(refpart1.Position,target1.Position)
  1605. MagicCircle2(BrickColor.new("Really red"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1606. icepart1.CFrame=dacf
  1607. dacf=dacf*cf(0,move,0)
  1608. end
  1609. if target2~=nil then
  1610. refpart2.CFrame=cf(refpart2.Position,target2.Position)
  1611. MagicCircle2(BrickColor.new("Really red"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1612. icepart2.CFrame=dacf2
  1613. dacf2=dacf2*cf(0,move,0)
  1614. end
  1615. if target3~=nil then
  1616. refpart3.CFrame=cf(refpart3.Position,target3.Position)
  1617. MagicCircle2(BrickColor.new("Really red"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1618. icepart3.CFrame=dacf3
  1619. dacf3=dacf3*cf(0,move,0)
  1620. end
  1621. end
  1622. local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
  1623. local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
  1624. local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
  1625. local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
  1626. local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
  1627. local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
  1628. local ref=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1629. ref.Anchored=true
  1630. ref.CFrame=cf(0,0,0)
  1631. game:GetService("Debris"):AddItem(ref,1)
  1632. local ref1=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1633. ref1.Anchored=true
  1634. ref1.CFrame=cf(0,0,0)
  1635. game:GetService("Debris"):AddItem(ref1,5)
  1636. local ice1=0
  1637. local ref2=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1638. ref2.Anchored=true
  1639. ref2.CFrame=cf(0,0,0)
  1640. game:GetService("Debris"):AddItem(ref2,5)
  1641. local ice2=2
  1642. local ref3=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1643. ref3.Anchored=true
  1644. ref3.CFrame=cf(0,0,0)
  1645. game:GetService("Debris"):AddItem(ref3,5)
  1646. local ice3=4
  1647. for i=0,3,0.1 do
  1648. swait()
  1649. ice1=ice1+1
  1650. ice2=ice2+1
  1651. ice3=ice3+1
  1652. if target1~=nil then
  1653. if i>1 then
  1654. refpart1.CFrame=refpart1.CFrame*cf(0,0,-2)
  1655. end
  1656. local cfnew=cf(icepart1.Position,refpart1.Position)
  1657. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  1658. local mag1=(icepart1.Position-pos1).magnitude
  1659. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  1660. lmsh1.Scale=vt(10,mag1*5,10)
  1661. MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
  1662. ref.CFrame=cf(pos1)
  1663. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1664. ref1.CFrame=cf(ref.Position)
  1665. if ice1%2==0 then
  1666. so("333476017",ref1,.3,1.4)
  1667. end
  1668. end
  1669. if target2~=nil then
  1670. if i>1 then
  1671. refpart2.CFrame=refpart2.CFrame*cf(0,0,-2)
  1672. end
  1673. local cfnew=cf(icepart2.Position,refpart2.Position)
  1674. local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
  1675. local mag2=(icepart2.Position-pos2).magnitude
  1676. laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
  1677. lmsh2.Scale=vt(10,mag2*5,10)
  1678. MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
  1679. ref.CFrame=cf(pos2)
  1680. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1681. ref2.CFrame=cf(ref.Position)
  1682. if ice2%2==0 then
  1683. so("333476017",ref2,.3,1.4)
  1684. end
  1685. end
  1686. if target3~=nil then
  1687. if i>1 then
  1688. refpart3.CFrame=refpart3.CFrame*cf(0,0,-2)
  1689. end
  1690. local cfnew=cf(icepart3.Position,refpart3.Position)
  1691. local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
  1692. local mag3=(icepart3.Position-pos3).magnitude
  1693. laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
  1694. lmsh3.Scale=vt(10,mag3*5,10)
  1695. MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
  1696. ref.CFrame=cf(pos3)
  1697. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
  1698. ref3.CFrame=cf(ref.Position)
  1699. if ice3%2==0 then
  1700. so("333476017",ref3,.3,1.4)
  1701. end
  1702. end
  1703. end
  1704. if target1~=nil then
  1705. local pos1=laser1.CFrame
  1706. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  1707. MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
  1708. end
  1709. if target2~=nil then
  1710. local pos2=laser2.CFrame
  1711. local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
  1712. MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
  1713. end
  1714. if target3~=nil then
  1715. local pos3=laser3.CFrame
  1716. local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
  1717. MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
  1718. end
  1719. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  1720. MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
  1721. MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
  1722. icepart1.Parent=nil
  1723. icepart2.Parent=nil
  1724. icepart3.Parent=nil
  1725. refpart1.Parent=nil
  1726. refpart2.Parent=nil
  1727. refpart3.Parent=nil
  1728. laser1.Parent=nil
  1729. laser2.Parent=nil
  1730. laser3.Parent=nil
  1731. ref.Parent=nil
  1732. end
  1733.  
  1734. function IceMortar()
  1735. for i=1,math.random(2,3) do
  1736. local dacf=Torso.CFrame*euler(-1.57+math.random(40,80)/100,0,math.random(-80,80)/100)
  1737. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1738. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(200,200,200))
  1739. icepart1.CFrame=dacf
  1740. local inc=100
  1741. for i=0,1,0.1 do
  1742. swait()
  1743. icepart1.CFrame=dacf
  1744. dacf=dacf*cf(0,inc,0)
  1745. inc=100-100*i
  1746. end
  1747. local cfinc=99999
  1748. MagicHead(BrickColor.new("Really red"),cf(icepart1.Position)*cf(0,cfinc/10,0),200,cfinc,200,-10,1,-10,.1)
  1749. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),200,200,200,-10,0,-10,.1)
  1750. icepart1.Transparency=1
  1751. so("334325056",icepart1,1,1)
  1752. game:GetService("Debris"):AddItem(icepart1,1)
  1753. local target1,distance1=findRandomTorso(icepart1.Position)
  1754. local test1,dist1=findNearestTorso(Head.Position)
  1755. if target1~=nil then
  1756. cfda=target1.Position+vt(math.random(-3000,3000)/100,0,math.random(-3000,3000)/100)
  1757. local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
  1758. local d1=part(3,effects,0,.5,BrickColor.new("Really red"),"Effect",vt())
  1759. d1.Anchored=true
  1760. d1.CFrame=cf(pos2)
  1761. msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(200,5,200))
  1762. d2=d1:Clone()
  1763. d2.Parent=d1
  1764. d2.CFrame=cf(d1.Position)
  1765. d2.BrickColor=BrickColor.new("Really black")
  1766. d2.Mesh.Scale=vt(0,5,0)
  1767. table.insert(Effects,{d1,"SatelliteStrike",d2,d2.Mesh,0})
  1768. end
  1769. end
  1770. end
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781. function TurnSlam()
  1782. attack=true
  1783.  
  1784. local value = 50
  1785. local value2 = 100
  1786. local value3 = 200
  1787.  
  1788.  
  1789. GroundWave = function()
  1790.  
  1791. local sa2 = Instance.new("Sound",Torso)
  1792. sa2.SoundId = "rbxassetid://262562442"
  1793. sa2.Pitch = 1
  1794. sa2.Volume = 10
  1795. sa2.Looped = false
  1796. sa2:Play()
  1797. local wave = Instance.new("Part", Torso)
  1798.  
  1799. wave.BrickColor = BrickColor.new("Really black")
  1800. wave.Anchored = true
  1801. wave.CanCollide = false
  1802. wave.Locked = true
  1803. wave.Size = Vector3.new(1, 1, 1)
  1804. wave.TopSurface = "Smooth"
  1805. wave.BottomSurface = "Smooth"
  1806. wave.Transparency = 0.35
  1807. wave.CFrame = prt45.CFrame
  1808. wave.Material = "Neon"
  1809. wm = Instance.new("SpecialMesh", wave)
  1810. wm.MeshType = "Sphere"
  1811. wm.Scale = Vector3.new(1,1,1)
  1812. local wave2 = Instance.new("Part", Torso)
  1813. wave2.BrickColor = BrickColor.new("Really red")
  1814. wave2.Anchored = true
  1815. wave2.CanCollide = false
  1816. wave2.Locked = true
  1817. wave2.Size = Vector3.new(1, 1, 1)
  1818. wave2.TopSurface = "Smooth"
  1819. wave2.BottomSurface = "Smooth"
  1820. wave2.Transparency = 0.35
  1821. wave2.CFrame = prt45.CFrame
  1822. wave2.Material = "Neon"
  1823. wm2 = Instance.new("SpecialMesh", wave2)
  1824. wm2.MeshType = "FileMesh"
  1825. wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1826. wm2.Scale = Vector3.new(1,1,1)
  1827. local wave3 = Instance.new("Part", Torso)
  1828. wave3.BrickColor = BrickColor.new("Really black")
  1829. wave3.Anchored = true
  1830. wave3.CanCollide = false
  1831. wave3.Locked = true
  1832. wave3.Size = Vector3.new(1, 1, 1)
  1833. wave3.TopSurface = "Smooth"
  1834. wave3.BottomSurface = "Smooth"
  1835. wave3.Transparency = 0.35
  1836. wave3.CFrame = prt45.CFrame
  1837. wave3.Material = "Neon"
  1838. wm3 = Instance.new("SpecialMesh", wave3)
  1839. wm3.MeshType = "FileMesh"
  1840. wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1841. wm3.Scale = Vector3.new(1,1,1)
  1842. coroutine.wrap(function()
  1843. for i = 1, 18, 1 do
  1844. value = value - 0.5
  1845. value2 = value2 - 0.75*1.5
  1846. value3 = value3 - 0.475*1.5
  1847. wm.Scale = wm.Scale + Vector3.new(value*5.5,value*5.5,value*5.5)
  1848. wm2.Scale = wm.Scale + Vector3.new(value2*5.5,value2*5.5,0.5)
  1849. wm3.Scale = wm.Scale + Vector3.new(value3*5.5,value3*5.5,0.25)
  1850. --wave.Size = wm.Scale
  1851. wave.CFrame = prt45.CFrame
  1852. wave.Transparency = i/14
  1853. --wave2.Size = wm2.Scale
  1854. wave2.CFrame = prt45.CFrame
  1855. wave2.Rotation = Vector3.new(90, 0, 0)
  1856. wave2.Transparency = i/14
  1857. --wave3.Size = wm3.Scale
  1858. wave3.CFrame = prt45.CFrame
  1859. wave3.Rotation = Vector3.new(90, 0, 0)
  1860. wave3.Transparency = i/14
  1861. wait()
  1862.  
  1863. end
  1864. wait()
  1865. wave:Destroy()
  1866. wave2:Destroy()
  1867. wave3:Destroy()
  1868. end)()
  1869. end
  1870.  
  1871.  
  1872.  
  1873. ROW = function(out, trans, s, wt, t, ang, plus)
  1874. for i = 1, 360, 360/t do
  1875. local c = Instance.new("Part", game.Workspace)
  1876. c.FormFactor = 3
  1877. c.TopSurface = 0
  1878. c.BottomSurface = 0
  1879. c.Size = s
  1880. c.Anchored = true
  1881. c.CanCollide = wt
  1882. c.Material=workspace.Base.Material
  1883. c.Transparency = trans
  1884. c.BrickColor = workspace.Base.BrickColor
  1885. c.CFrame = CFrame.new(prt45.CFrame.x,0,prt45.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  1886. c.Locked=true
  1887. game.Debris:AddItem(c,15)
  1888. end
  1889. end
  1890.  
  1891.  
  1892. local target,distance=findRandomTorso(RootPart.Position)
  1893. if target~=nil or target==nil then
  1894. local x,y,z = 0,0,0
  1895. for i=0,1,0.02 do
  1896. swait()
  1897. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
  1898. wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),.01)
  1899. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.4,-.6),.01)
  1900. wld24.C0=wld24.C0:lerp(euler(2.4,.2,0)*cf(0,90.25,0),.01)
  1901. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.01)
  1902.  
  1903. wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),.01)
  1904. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.4,.6),.01)
  1905. wld38.C0=wld38.C0:lerp(euler(-2.4,.2,0)*cf(0,-90.25,0),.01)
  1906. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.01)
  1907. if Stun.Value>=StunT.Value then
  1908. break
  1909. end
  1910. end
  1911. so("849891594",Character,40,1)
  1912.  
  1913. for i=0,1,0.01 do
  1914. swait()
  1915. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.2,0,0),.02)
  1916. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
  1917. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.02)
  1918. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),.02)
  1919. wld24.C0=wld24.C0:lerp(euler(2,-1,0)*cf(0,90.25,0),.02)
  1920. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(.5,0,1),.02)
  1921.  
  1922. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.02)
  1923. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),.02)
  1924. wld38.C0=wld38.C0:lerp(euler(-2,-1,0)*cf(0,-90.25,0),.02)
  1925. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(-.5,0,-1),.02)
  1926. if Stun.Value>=StunT.Value then
  1927. break
  1928. end
  1929. end
  1930. shockwave=false
  1931. ref1a=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
  1932. ref1a.Anchored=true
  1933. ref1a.CFrame=cf(0,-50,0)
  1934. game:GetService("Debris"):AddItem(ref1a,3)
  1935. ref2a=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  1936. ref2a.Anchored=true
  1937. ref2a.CFrame=cf(0,-50,0)
  1938. game:GetService("Debris"):AddItem(ref2a,3)
  1939. incda=80
  1940.  
  1941.  
  1942.  
  1943. for i=0,3,0.03 do
  1944. swait()
  1945. dan=.1
  1946. if shockwave==true then
  1947. incda=incda+10
  1948. if i<1.5 then
  1949. MagniDamage(ref1a,incda,10000,10000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
  1950. MagniDamage(ref2a,incda,10000,10000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
  1951. end
  1952. end
  1953. if i>1 then
  1954. dan=.05
  1955. if shockwave==false then
  1956. for i=1,2 do
  1957. so("157878578",ref1a,1,0.4)
  1958. so("2101148",ref1a,1,0.6)
  1959. end
  1960. for i=1,2 do
  1961. so("157878578",ref2a,1,0.4)
  1962. so("2101148",ref2a,1,0.6)
  1963. end
  1964. shockwave=true
  1965. refcam=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
  1966. refcam.Anchored=true
  1967. refcam.CFrame=cf(prt31.Position)
  1968. refcam.CFrame=refcam.CFrame:lerp(cf(prt45.Position),.5)
  1969. game:GetService("Debris"):AddItem(refcam,1)
  1970. hitfl1,posfl1=rayCast(prt31.Position,(CFrame.new(prt31.Position,prt31.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1971. MagicRing(BrickColor.new("Really black"),cf(posfl1)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  1972. ref1a.CFrame=cf(posfl1)
  1973. hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1974. MagicRing(BrickColor.new("Really red"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  1975. GroundWave()
  1976.  
  1977. ref2a.CFrame=cf(posfl2)
  1978. end
  1979. else
  1980. MagniDamage(prt31,90,10000,10000000,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
  1981. MagniDamage(prt45,90,10000,10000000,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
  1982.  
  1983. end
  1984.  
  1985.  
  1986. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),dan)
  1987. wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),dan)
  1988. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),dan)
  1989. wld24.C0=wld24.C0:lerp(euler(1.2,-1,0)*cf(0,90.25,0),dan)
  1990. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(-.5,0,0)*euler(0,-.6,0)*euler(.3,0,0),dan)
  1991.  
  1992. wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),dan)
  1993. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),dan)
  1994. wld38.C0=wld38.C0:lerp(euler(-1.2,-1,0)*cf(0,-90.25,0),dan)
  1995. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(.5,0,0)*euler(0,-.6,0)*euler(-.3,0,0),dan)
  1996. if Stun.Value>=StunT.Value then
  1997. break
  1998. end
  1999. end
  2000. meleecooldown=0
  2001. mcdadd=.05
  2002. if CurrentHealth<=1500 then
  2003. mcdadd=1
  2004. end
  2005. --mcdadd=1
  2006. end
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013. ROW(12, 0, Vector3.new(50.5, 150, 10), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
  2014.  
  2015. attack=false
  2016. end
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032. function GrandPunch()
  2033. attack=true
  2034. local target,distance=findRandomTorso(RootPart.Position)
  2035. if target~=nil or target==nil then
  2036. local x,y,z = 0,0,0
  2037. for i=0,1,0.01 do
  2038. swait()
  2039. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,.5,0),.02)
  2040. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.5,0),.02)
  2041. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.02)
  2042. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.3,-.4)*euler(0,-.2,0),.02)
  2043. wld24.C0=wld24.C0:lerp(euler(2,0,0)*euler(0,0,0)*cf(0,90.25,0),.02)
  2044. wld29.C0=wld29.C0:lerp(euler(0,.5,0)*cf(0,125,0),.02)
  2045.  
  2046. wld33.C0=wld33.C0:lerp(euler(-.4,-.8,0)*cf(-94,-47.5,-2.248),.02)
  2047. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.2)*euler(0,0,0),.02)
  2048. wld38.C0=wld38.C0:lerp(euler(-1,-.4,0)*cf(0,-90.25,0),.02)
  2049. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.02)
  2050. if Stun.Value>=StunT.Value then
  2051. break
  2052. end
  2053. end
  2054. da=0
  2055. local oldpos=prt31.Position
  2056. for i=0,1.5,0.01 do
  2057. swait()
  2058. da=da+1
  2059. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,-.5,0),.04)
  2060. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,-.5,0),.04)
  2061. wld19.C0=wld19.C0:lerp(euler(-.8,.6,0)*cf(94,-47.5,-2.248),.04)
  2062. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.2)*euler(0,-.2,0),.04)
  2063. --wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.8)*euler(0,-.2,0),.1)
  2064. wld24.C0=wld24.C0:lerp(euler(.8,0,0)*euler(0,0,0)*cf(0,90.25,0),.04)
  2065. wld29.C0=wld29.C0:lerp(euler(0,3,0)*cf(0,125,0),.04)
  2066.  
  2067. wld33.C0=wld33.C0:lerp(euler(-.4,-.1,0)*cf(-94,-47.5,-2.248),.04)
  2068. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.2,.2)*euler(0,0,0),.04)
  2069. wld38.C0=wld38.C0:lerp(euler(-1.8,-.4,0)*cf(0,-90.25,0),.04)
  2070. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.04)
  2071. if i<.5 then
  2072. if da%4==0 then
  2073. MagniDamage(prt31,95,15,20,math.random(60,100),"Knockdown2",prt31,.5,1,math.random(25,40),nil,nil,false)
  2074. MagicWave(BrickColor.new("Really red"),cf(prt31.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
  2075. oldpos=prt31.Position
  2076. end
  2077. end
  2078. if Stun.Value>=StunT.Value then
  2079. break
  2080. end
  2081. end
  2082. meleecooldown=0
  2083. mcdadd=.1
  2084. if CurrentHealth<=1500 then
  2085. mcdadd=1
  2086. end
  2087. --mcdadd=50
  2088. end
  2089. attack=false
  2090. end
  2091.  
  2092. --[[ punch
  2093. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.1)
  2094. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-.8,0,0)*euler(0,-.2,0),.1)
  2095. wld24.C0=wld24.C0:lerp(euler(1.2,.8,0)*cf(0,90.25,0),.1)
  2096. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  2097. ]]
  2098.  
  2099. function FrostSlam()
  2100. attack=true
  2101. local target,distance=findRandomTorso(RootPart.Position)
  2102. if target~=nil or target==nil then
  2103. local x,y,z = 0,0,0
  2104. for i=0,1,0.008 do
  2105. swait()
  2106. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.015)
  2107. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.3,0),.015)
  2108. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.015)
  2109. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,-.4),.015)
  2110. wld24.C0=wld24.C0:lerp(euler(.8,.8,0)*euler(0,-.2,0)*cf(0,90.25,0),.015)
  2111. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.015)
  2112.  
  2113. wld33.C0=wld33.C0:lerp(euler(.4,-.3,0)*cf(-94,-47.5,-2.248),.015)
  2114. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,1)*euler(.5,0,0)*euler(0,.2,0),.015)
  2115. wld38.C0=wld38.C0:lerp(euler(-1,-.2,0)*cf(0,-90.25,0),.015)
  2116. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.015)
  2117. if Stun.Value>=StunT.Value then
  2118. break
  2119. end
  2120. end
  2121. da=0
  2122. local oldpos=prt45.Position
  2123. shockwave=false
  2124. ref2a=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  2125. ref2a.Anchored=true
  2126. ref2a.CFrame=cf(0,-50,0)
  2127. game:GetService("Debris"):AddItem(ref2a,3)
  2128. incda=80
  2129. for i=0,10,0.02 do
  2130. swait()
  2131. da=da+1
  2132. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.025)
  2133. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-190,0)*euler(0,.3,0)*euler(-.1,0,0),.025)
  2134. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.025)
  2135. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,0),.025)
  2136. wld24.C0=wld24.C0:lerp(euler(1,0,0)*euler(0,.3,0)*cf(0,90.25,0),.025)
  2137. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.025)
  2138.  
  2139. wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.025)
  2140. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,1.4,0)*euler(0,0,0),.025)
  2141. wld38.C0=wld38.C0:lerp(euler(-.5,0,0)*euler(0,0,-.2)*cf(0,-90.25,0),.025)
  2142. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.025)
  2143. if i>1 and i<8 then
  2144. if da%10==0 then
  2145. local do1=0
  2146. local do2=0
  2147. local rand1=math.random(1,2)
  2148. if rand1==1 then do1=math.random(5000,15000)/100
  2149. elseif rand1==2 then do1=math.random(-15000,-5000)/100 end
  2150. local rand2=math.random(1,2)
  2151. if rand2==1 then do2=math.random(5000,15000)/100
  2152. elseif rand2==2 then do2=math.random(-15000,-5000)/100 end
  2153. cfda=ref2a.Position+vt(do1,10,do2)
  2154. local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
  2155. local d1=part(3,effects,0,.5,BrickColor.new("Really red"),"Effect",vt())
  2156. d1.Anchored=true
  2157. d1.CFrame=cf(pos2)
  2158. msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(300,5,300))
  2159. d2=d1:Clone()
  2160. d2.Parent=d1
  2161. d2.CFrame=cf(d1.Position)
  2162. d2.BrickColor=BrickColor.new("Really black")
  2163. d2.Mesh.Scale=vt(0,5,0)
  2164. table.insert(Effects,{d1,"SatelliteStrike2",d2,d2.Mesh,0})
  2165. end
  2166. end
  2167. if i>1 and i<1.3 then
  2168. incda=incda+10
  2169. MagniDamage(ref2a,incda,6,8,math.random(10000,1000000),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
  2170. end
  2171. if i<1 then
  2172. if da%4==0 then
  2173. MagniDamage(prt45,95,15,20,math.random(10000,10000000),"Knockdown2",prt45,.5,1,math.random(25,40),nil,nil,false)
  2174. MagicWave(BrickColor.new("Really red"),cf(prt45.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
  2175. oldpos=prt45.Position
  2176. end
  2177. else
  2178. if shockwave==false then
  2179. shockwave=true
  2180. so("157878578",ref2a,1,0.4)
  2181. so("2101148",ref2a,1,0.6)
  2182. hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  2183. refaa=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
  2184. refaa.Anchored=true
  2185. refaa.CFrame=cf(posfl2)
  2186. game:GetService("Debris"):AddItem(refaa,1)
  2187. MagicRing(BrickColor.new("Really black"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  2188. ref2a.CFrame=cf(posfl2)
  2189. end
  2190. end
  2191. if Stun.Value>=StunT.Value then
  2192. break
  2193. end
  2194. end
  2195. --print(incda)
  2196. meleecooldown=0
  2197. mcdadd=.08
  2198. if CurrentHealth<=1500 then
  2199. mcdadd=1
  2200. end
  2201. end
  2202. attack=false
  2203. end
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226. function SkyBeamOfDeath()
  2227.  
  2228. wait()
  2229. spark = Instance.new("Part",Character)
  2230. spark.Size = Vector3.new(2,2,2)
  2231. spark.BrickColor = BrickColor.new("Really black")
  2232. spark.Material = "Neon"
  2233. spark.TopSurface = 0
  2234. sparkw = Instance.new("Weld",spark)
  2235. sparkw.Part0 = spark
  2236. sparkw.Part1 = Head
  2237. sparkw.C0 = CFrame.new(0,0,905)
  2238. spark.BottomSurface = 0
  2239. sparkm = Instance.new("SpecialMesh",spark)
  2240. sparkm.MeshType = "Sphere"
  2241.  
  2242.  
  2243.  
  2244. for i = 2,20,0.5 do wait()
  2245.  
  2246. sparkm.Scale = Vector3.new(i,i,i)
  2247.  
  2248. spark.Transparency = i/10
  2249.  
  2250. end
  2251.  
  2252. wait(2)
  2253.  
  2254.  
  2255.  
  2256.  
  2257. m = Player:GetMouse()
  2258.  
  2259.  
  2260.  
  2261.  
  2262. local rng = Instance.new("Part", Character)
  2263.  
  2264. rng.Anchored = true
  2265.  
  2266. rng.BrickColor = BrickColor.new("Really black")
  2267.  
  2268. rng.CanCollide = false
  2269.  
  2270. rng.FormFactor = 3
  2271.  
  2272. rng.Name = "Ring"
  2273.  
  2274. rng.Size = Vector3.new(1.5,1.5,1.1)
  2275.  
  2276. rng.Transparency = 0
  2277.  
  2278. rng.TopSurface = 0
  2279.  
  2280. rng.BottomSurface = 0
  2281.  
  2282. rng.Material = "Neon"
  2283.  
  2284.  
  2285.  
  2286.  
  2287. rng.CFrame = Character.Torso.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0,0,-100)
  2288.  
  2289.  
  2290. rng.CFrame = CFrame.new(rng.Position, Vector3.new(m.Hit.p.x,m.Hit.p.y,m.Hit.p.z))* CFrame.Angles(math.rad(90),0,0)
  2291.  
  2292.  
  2293.  
  2294. local rngm = Instance.new("SpecialMesh", rng)
  2295.  
  2296. rngm.MeshType = "Sphere"
  2297.  
  2298.  
  2299.  
  2300. for i = 1,40,0.5 do wait()
  2301.  
  2302.  
  2303.  
  2304.  
  2305. rngm.Scale = Vector3.new(80,0.5,i)
  2306.  
  2307. end
  2308.  
  2309. endpoint = Instance.new("Part",Character)
  2310.  
  2311. endpoint.Transparency = 1
  2312.  
  2313.  
  2314.  
  2315.  
  2316. wait(0.5)
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322. s1 = Instance.new("Sound",Character)
  2323.  
  2324. s1.SoundId = "rbxassetid://130792236"
  2325.  
  2326. s1:Play()
  2327. s1.Pitch = 0.8
  2328. s1.Volume = 60
  2329. wait(0.4)
  2330.  
  2331. s = Instance.new("Sound",Character)
  2332.  
  2333. s.SoundId ="rbxassetid://254847708"
  2334.  
  2335. -- "rbxassetid://228343271"
  2336.  
  2337. s.Volume = 1
  2338.  
  2339. s.Pitch = 1
  2340.  
  2341. s:Play()
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347. for i = 1,85 do wait()
  2348.  
  2349. local ray=Ray.new(rng.CFrame.p,(rng.CFrame.p-(rng.CFrame
  2350.  
  2351. *CFrame.new(0,20,0).p)).unit*900)
  2352.  
  2353. local part, position = workspace:FindPartOnRay(ray, Player.Character, false, true)
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363. local beam = Instance.new("Part", workspace)
  2364.  
  2365. beam.BrickColor = BrickColor.new("Really black")
  2366.  
  2367. beam.FormFactor = "Custom"
  2368.  
  2369. beam.Material = "Neon"
  2370.  
  2371. beam.Transparency = 0
  2372.  
  2373. beam.Anchored = true
  2374.  
  2375. beam.Locked = true
  2376.  
  2377. beam.CanCollide = false
  2378.  
  2379.  
  2380.  
  2381. local distance = (rng.CFrame.p - position).magnitude
  2382.  
  2383. beam.Size = Vector3.new(60,27, distance)
  2384.  
  2385. beam.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2386.  
  2387. endpoint.Position = position
  2388.  
  2389. game:GetService("Debris"):AddItem(beam, 0.5)
  2390.  
  2391.  
  2392.  
  2393. local rng2= Instance.new("Part", Character)
  2394.  
  2395. rng2.Anchored= true
  2396.  
  2397. rng2.BrickColor = BrickColor.new("Really black")
  2398.  
  2399. rng2.CanCollide = false
  2400.  
  2401. rng2.FormFactor = 3
  2402.  
  2403. rng2.Name = "Ring"
  2404.  
  2405. rng2.Size = Vector3.new(1, 1, 1)
  2406.  
  2407. rng2.Transparency = 0
  2408.  
  2409. rng2.TopSurface = 0
  2410.  
  2411. rng2.BottomSurface = 0
  2412.  
  2413.  
  2414.  
  2415. rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))* CFrame.new(0,-3,0)
  2416.  
  2417.  
  2418.  
  2419. local rngm2 = Instance.new("SpecialMesh", rng2)
  2420.  
  2421. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2422.  
  2423. rngm2.Scale = Vector3.new(1, 1.3, 2)
  2424.  
  2425.  
  2426.  
  2427. local rng3 = Instance.new("Part", Character)
  2428.  
  2429. rng3.Anchored = true
  2430.  
  2431. rng3.BrickColor = BrickColor.new("Really black")
  2432.  
  2433. rng3.CanCollide = false
  2434.  
  2435. rng3.FormFactor = 3
  2436.  
  2437. rng3.Name = "Ring"
  2438.  
  2439. rng3.Size = Vector3.new(1, 1, 1)
  2440.  
  2441. rng3.Transparency = 0
  2442.  
  2443. rng3.TopSurface = 0
  2444.  
  2445. rng3.BottomSurface = 0
  2446.  
  2447. rng3.Material = "Neon"
  2448.  
  2449. rng3.Position = endpoint.Position
  2450.  
  2451. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2452.  
  2453. local rngm3 = Instance.new("SpecialMesh", rng3)
  2454.  
  2455. rngm3.MeshType = "Sphere"
  2456.  
  2457. rngm3.Scale = Vector3.new(1, 1.3, 2)
  2458.  
  2459.  
  2460.  
  2461. local rng4 = Instance.new("Part", Character)
  2462.  
  2463. rng4.Anchored = true
  2464.  
  2465. rng4.BrickColor = BrickColor.new("Really red")
  2466.  
  2467. rng4.CanCollide = false
  2468.  
  2469. rng4.FormFactor = 3
  2470.  
  2471. rng4.Name = "Ring"
  2472.  
  2473. rng4.Size = Vector3.new(1, 1, 1)
  2474.  
  2475. rng4.Transparency = 0
  2476.  
  2477. rng4.TopSurface = 0
  2478.  
  2479. rng4.BottomSurface = 0
  2480.  
  2481.  
  2482.  
  2483. rng4.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))* CFrame.new(0,-3,0)
  2484.  
  2485.  
  2486.  
  2487. local rngm4 = Instance.new("SpecialMesh", rng4)
  2488.  
  2489. rngm4.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2490.  
  2491. rngm4.Scale = Vector3.new(1, 1.3, 2)
  2492.  
  2493.  
  2494.  
  2495. local rng5 = Instance.new("Part", Character)
  2496.  
  2497. rng5.Anchored = true
  2498.  
  2499. rng5.BrickColor = BrickColor.new("Really black")
  2500.  
  2501. rng5.CanCollide = false
  2502.  
  2503. rng5.FormFactor = 3
  2504.  
  2505. rng5.Name = "Ring"
  2506.  
  2507. rng5.Size = Vector3.new(1, 1, 1)
  2508.  
  2509. rng5.Transparency = 0
  2510.  
  2511. rng5.TopSurface = 0
  2512.  
  2513. rng5.BottomSurface = 0
  2514.  
  2515.  
  2516.  
  2517. rng5.CFrame = rng3.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))* CFrame.new(0,-15,0)
  2518.  
  2519.  
  2520.  
  2521. local rngm5 = Instance.new("SpecialMesh", rng5)
  2522.  
  2523. rngm5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2524.  
  2525. rngm5.Scale = Vector3.new(1, 1.3, 2)
  2526.  
  2527. wait(0.1)
  2528.  
  2529.  
  2530.  
  2531. coroutine.wrap(function()
  2532.  
  2533. for i = 1, 70, 3 do
  2534.  
  2535. rngm2.Scale = Vector3.new(30+i*2,30+i,30+i*2)
  2536.  
  2537. rng2.Transparency = i/50
  2538.  
  2539. rngm4.Scale = Vector3.new(100+i*2,100+i,1*2)
  2540.  
  2541. rng4.Transparency = i/50
  2542.  
  2543. rngm5.Scale = Vector3.new(10+i*10,10+i*10,1*2)
  2544.  
  2545. rng5.Transparency = i/50
  2546.  
  2547. rngm3.Scale = Vector3.new(90+i,90+i,90+i)
  2548.  
  2549. rng3.Transparency = i/50
  2550.  
  2551.  
  2552.  
  2553. wait()
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559. end
  2560.  
  2561.  
  2562.  
  2563. wait()
  2564.  
  2565. rng5:Remove()
  2566.  
  2567. rng2:Remove()
  2568.  
  2569. rng4:Remove()
  2570.  
  2571. rng3:Remove()
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581. wait()
  2582.  
  2583. end)()
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598. local function CreateRegion3FromLocAndSize(Position, Size) local SizeOffset = Size/2 local Point1 = Position - SizeOffset local Point2 = Position + SizeOffset return Region3.new(Point1, Point2) end
  2599.  
  2600. local reg = CreateRegion3FromLocAndSize(endpoint.Position, endpoint.Size* 40)
  2601.  
  2602.  
  2603.  
  2604.  
  2605. for i, v in pairs(game:service'Workspace':FindPartsInRegion3WithIgnoreList(reg, Character:GetChildren(), 100)) do print(v) Spawn(function() ypcall(function() local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid") humanoid:TakeDamage(math.random(5000,6000)) humanoid.PlatformStand = true wait(0.1) humanoid:Destroy() end) end) end
  2606.  
  2607. end
  2608.  
  2609.  
  2610. for i = 40,0,-0.5 do wait()
  2611.  
  2612.  
  2613.  
  2614. rngm.Scale = Vector3.new(49,0.5,i)
  2615.  
  2616. end
  2617.  
  2618. rng:Remove()
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625. end
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631. LightOnBody = Instance.new("PointLight", Cryst1)
  2632. LightOnBody.Brightness = 10
  2633. LightOnBody.Range = 1000
  2634. LightOnBody.Color = Color3.new(0, 0, 0)
  2635.  
  2636.  
  2637. local base = game.Workspace.Base
  2638. base.BrickColor = BrickColor.new("Medium grey")
  2639. base.Material = "Granite"
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648. function FindNearestTorso(Position,Distance,SinglePlayer)
  2649. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  2650. local List = {}
  2651. for i,v in pairs(workspace:GetChildren())do
  2652. if v:IsA("Model")then
  2653. if v:findFirstChild("Torso")then
  2654. if v ~= Character then
  2655. if(v.Torso.Position -Position).magnitude <= Distance then
  2656. table.insert(List,v)
  2657. end
  2658. end
  2659. end
  2660. end
  2661. end
  2662. return List
  2663. end
  2664.  
  2665. function Roar()
  2666. attack=true
  2667. for i=0,1,0.01 do
  2668. swait()
  2669. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
  2670. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
  2671. --[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
  2672. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
  2673. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
  2674. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  2675.  
  2676. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
  2677. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
  2678. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
  2679. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
  2680. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
  2681. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0),.03)
  2682. wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
  2683. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
  2684.  
  2685. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
  2686. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0),.03)
  2687. wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
  2688. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
  2689. end
  2690. for i=0,1,0.04 do
  2691. swait()
  2692. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
  2693. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
  2694. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2695. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0)*euler(0,-.2,0),.05)
  2696. wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
  2697. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2698.  
  2699. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2700. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0)*euler(0,.2,0),.05)
  2701. wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
  2702. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2703. end
  2704.  
  2705.  
  2706. sa2.Volume = 2
  2707. so("850152775",Character,90,1)
  2708.  
  2709. for i,v in pairs(FindNearestTorso(Torso.CFrame.p,5000))do
  2710. if v:FindFirstChild('Humanoid') then
  2711. v.Humanoid:TakeDamage(math.random(10000020,10000030))
  2712. v.Humanoid.PlatformStand = true
  2713. v:FindFirstChild("Torso").Velocity = Head.CFrame.lookVector * 200
  2714. end
  2715. end
  2716.  
  2717. local HandCF = CFrame.new(RootPart.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2718. local valuer = 30
  2719. local valuer2 = 50
  2720. local valuer3 = 75
  2721.  
  2722. local wave = Instance.new("Part", Torso)
  2723. wave.BrickColor = BrickColor.new("Really red")
  2724. wave.Anchored = true
  2725. wave.CanCollide = false
  2726. wave.Locked = true
  2727. wave.Size = Vector3.new(1, 1, 1)
  2728. wave.TopSurface = "Smooth"
  2729. wave.BottomSurface = "Smooth"
  2730. wave.Transparency = 0.35
  2731. wave.CFrame = HandCF
  2732. wm = Instance.new("SpecialMesh", wave)
  2733. wm.MeshId = "rbxassetid://3270017"
  2734. local wave2 = Instance.new("Part", Torso)
  2735. wave2.BrickColor = BrickColor.new("Really black")
  2736. wave2.Anchored = true
  2737. wave2.CanCollide = false
  2738. wave2.Locked = true
  2739. wave2.Size = Vector3.new(1, 1, 1)
  2740. wave2.TopSurface = "Smooth"
  2741. wave2.BottomSurface = "Smooth"
  2742. wave2.Transparency = 0.35
  2743. wave2.CFrame = HandCF
  2744. wm2 = Instance.new("SpecialMesh", wave2)
  2745. wm2.MeshId = "rbxassetid://3270017"
  2746. local wave3 = Instance.new("Part", Torso)
  2747. wave3.BrickColor = BrickColor.new("Really red")
  2748. wave3.Anchored = true
  2749. wave3.CanCollide = false
  2750. wave3.Locked = true
  2751. wave3.Size = Vector3.new(1, 1, 1)
  2752. wave3.TopSurface = "Smooth"
  2753. wave3.BottomSurface = "Smooth"
  2754. wave3.Transparency = 0.35
  2755. wave3.CFrame = HandCF
  2756. wm3 = Instance.new("SpecialMesh", wave3)
  2757. wm3.MeshId = "rbxassetid://3270017"
  2758. coroutine.wrap(function()
  2759. for i = 1, 14, 1 do
  2760. valuer = valuer - 0.35
  2761. valuer2 = valuer - 0.45
  2762. valuer3 = valuer3 - 0.475
  2763. wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
  2764. wave.Size = wm.Scale
  2765. wave.CFrame = HandCF
  2766. wave.Transparency = i/14
  2767. wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
  2768. wave2.Size = wm2.Scale
  2769. wave2.CFrame = HandCF
  2770. wave2.Transparency = i/14
  2771. wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
  2772. wave3.Size = wm2.Scale
  2773. wave3.CFrame = HandCF
  2774. wave3.Transparency = i/14
  2775. wait()
  2776. end
  2777. wait()
  2778. wave:Destroy()
  2779. wave2:Destroy()
  2780. end)()
  2781.  
  2782. attack = false
  2783. wait(4)
  2784. sa2.Volume = 20
  2785. end
  2786.  
  2787.  
  2788. function StunAnim()
  2789. attack=true
  2790. for i=0,1,0.06 do
  2791. swait()
  2792. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.7,0,0),.06)
  2793. RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,0)*cf(-1.749,-180,0),.06)
  2794. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.06)
  2795. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.6)*euler(0,-.2,0)*euler(-.5,0,0),.06)
  2796. wld24.C0=wld24.C0:lerp(euler(1,.1,0)*cf(0,90.25,0),.06)
  2797. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  2798.  
  2799. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.06)
  2800. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.6)*euler(0,.2,0)*euler(-.5,0,0),.06)
  2801. wld38.C0=wld38.C0:lerp(euler(-1,.1,0)*cf(0,-90.25,0),.06)
  2802. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  2803. if Humanoid.Health<=0 then
  2804. break
  2805. end
  2806. end
  2807. for i=0,1,0.04 do
  2808. swait()
  2809. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.2,0,0)*euler(0,0,.2),.07)
  2810. RootJoint.C0=RootJoint.C0:lerp(euler(-.5,.2,0)*cf(-1.749,-140,0),.07)
  2811. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.07)
  2812. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.8)*euler(0,.2,0)*euler(-.4,0,0),.07)
  2813. wld24.C0=wld24.C0:lerp(euler(1.2,.3,0)*cf(0,90.25,0),.07)
  2814. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.07)
  2815.  
  2816. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.07)
  2817. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,.2,0)*euler(.7,0,0),.07)
  2818. wld38.C0=wld38.C0:lerp(euler(-1.4,.1,0)*cf(0,-90.25,0),.07)
  2819. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.07)
  2820. if Humanoid.Health<=0 then
  2821. break
  2822. end
  2823. end
  2824. for i=0,1,0.01 do
  2825. swait()
  2826. msh3.Scale=vt(4,8.5-8*i,8.5)
  2827. msh5.Scale=vt(4,8.5-8*i,8.5)
  2828. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,1.5,0),.02)
  2829. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
  2830. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2831. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,1)*euler(0,.2,0)*euler(-.1,0,0),.05)
  2832. wld24.C0=wld24.C0:lerp(euler(.5,2.2,0)*cf(0,90.25,0),.05)
  2833. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2834.  
  2835. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2836. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,-.6,0)*euler(1.6,0,0),.05)
  2837. wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
  2838. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2839. if Humanoid.Health<=0 then
  2840. break
  2841. end
  2842. end
  2843. msh3.Scale=vt(4,.5,8.5)
  2844. msh5.Scale=vt(4,.5,8.5)
  2845. --swait(100)
  2846. local numb=1300
  2847. if CurrentHealth<=1500 then
  2848. numb=1000
  2849. end
  2850. local removedeb=8
  2851. for i=0,numb do
  2852. swait()
  2853. removedeb=removedeb+1
  2854. if removedeb>8 then
  2855. removedeb=0
  2856. for _,c in pairs(Character:children()) do
  2857. if c.Name=="DebounceHit" then c.Parent=nil end
  2858. end
  2859. end
  2860. if Humanoid.Health<=0 then
  2861. break
  2862. end
  2863. end
  2864. for i=0,1,0.1 do
  2865. swait()
  2866. msh3.Scale=vt(4,.5+8*i,8.5)
  2867. msh5.Scale=vt(4,.5+8*i,8.5)
  2868. end
  2869. msh3.Scale=vt(4,8.5,8.5)
  2870. msh5.Scale=vt(4,8.5,8.5)
  2871. for i=0,1,0.02 do
  2872. swait()
  2873. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
  2874. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2875. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.1)*euler(0,.4,0)*euler(1,0,0),.05)
  2876. wld24.C0=wld24.C0:lerp(euler(1.6,.1,0)*cf(0,90.25,0),.05)
  2877. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2878.  
  2879. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2880. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.1)*euler(0,-.4,0)*euler(1,0,0),.05)
  2881. wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
  2882. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2883. if Humanoid.Health<=0 then
  2884. break
  2885. end
  2886. end
  2887. for i=0,1,0.03 do
  2888. swait()
  2889. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,0)*euler(-.6,0,0),.06)
  2890. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
  2891. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
  2892. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.4)*euler(0,-.2,0)*euler(-.3,0,0),.06)
  2893. wld24.C0=wld24.C0:lerp(euler(1.2,.1,0)*cf(0,90.25,0),.06)
  2894. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  2895.  
  2896. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
  2897. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.4)*euler(0,.2,0)*euler(-.3,0,0),.06)
  2898. wld38.C0=wld38.C0:lerp(euler(-1.2,.1,0)*cf(0,-90.25,0),.06)
  2899. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  2900. if Humanoid.Health<=0 then
  2901. break
  2902. end
  2903. end
  2904. for i=0,1,0.008 do
  2905. swait()
  2906. if i<.4 then
  2907. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.1,0,0),.06)
  2908. else
  2909. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
  2910. end
  2911. RootJoint.C0=RootJoint.C0:lerp(cf(5,-210,0)*euler(.1,0,0),.06)
  2912. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
  2913. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.8)*euler(0,-.6,0)*euler(-.5,0,0),.06)
  2914. wld24.C0=wld24.C0:lerp(euler(.6,.3,0)*cf(0,90.25,0),.06)
  2915. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  2916.  
  2917. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
  2918. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.6,0)*euler(-.5,0,0),.06)
  2919. wld38.C0=wld38.C0:lerp(euler(-.6,.3,0)*cf(0,-90.25,0),.06)
  2920. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  2921. if Humanoid.Health<=0 then
  2922. break
  2923. end
  2924. end
  2925. attack=false
  2926. end
  2927.  
  2928. function SummonCrystals()
  2929. attack=true
  2930. for i=0,1,0.01 do
  2931. swait()
  2932. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
  2933. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
  2934. --[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
  2935. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
  2936. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
  2937. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  2938.  
  2939. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
  2940. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
  2941. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
  2942. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
  2943. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
  2944. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0),.03)
  2945. wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
  2946. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
  2947.  
  2948. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
  2949. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0),.03)
  2950. wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
  2951. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
  2952. end
  2953. for i=0,1,0.04 do
  2954. swait()
  2955. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
  2956. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
  2957. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2958. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0)*euler(0,-.2,0),.05)
  2959. wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
  2960. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2961.  
  2962. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2963. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0)*euler(0,.2,0),.05)
  2964. wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
  2965. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2966. end
  2967. Cryst1.Parent=workspace
  2968. C1Head.CFrame=RootPart.CFrame*cf(math.random(-2000,20000)/100,0,math.random(-20000,2000)/100)
  2969. C1Torso.CFrame=C1Head.CFrame
  2970. C1Neck.Parent=C1Head
  2971. C1S.Parent=Cryst1
  2972. C1Hum.Parent=Cryst1
  2973. C1Hum.MaxHealth=800
  2974. C1Hum.Health=800
  2975. C1Hum.Parent=Cryst1
  2976. C1Hum:TakeDamage(1)
  2977. C1a=true
  2978. for _,c in pairs(Cryst1:children()) do
  2979. if c.Name=="DebounceHit" then c.Parent=nil end
  2980. end
  2981. Cryst2.Parent=workspace
  2982. C2Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2983. C2Torso.CFrame=C2Head.CFrame
  2984. C2Neck.Parent=C2Head
  2985. C2S.Parent=Cryst2
  2986. C2Hum.Parent=Cryst2
  2987. C2Hum.MaxHealth=500
  2988. C2Hum.Health=500
  2989. C2Hum.Parent=Cryst2
  2990. C2Hum:TakeDamage(1)
  2991. C2a=true
  2992. for _,c in pairs(Cryst2:children()) do
  2993. if c.Name=="DebounceHit" then c.Parent=nil end
  2994. end
  2995. Cryst3.Parent=workspace
  2996. C3Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2997. C3Torso.CFrame=C3Head.CFrame
  2998. C3Neck.Parent=C3Head
  2999. C3S.Parent=Cryst3
  3000. C3Hum.Parent=Cryst3
  3001. C3Hum.MaxHealth=500
  3002. C3Hum.Health=500
  3003. C3Hum.Parent=Cryst3
  3004. C3Hum:TakeDamage(1)
  3005. C3a=true
  3006. for _,c in pairs(Cryst3:children()) do
  3007. if c.Name=="DebounceHit" then c.Parent=nil end
  3008. end
  3009. Cryst4.Parent=workspace
  3010. C4Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  3011. C4Torso.CFrame=C4Head.CFrame
  3012. C4Neck.Parent=C4Head
  3013. C4S.Parent=Cryst4
  3014. C4Hum.Parent=Cryst4
  3015. C4Hum.MaxHealth=500
  3016. C4Hum.Health=500
  3017. C4Hum.Parent=Cryst4
  3018. C4Hum:TakeDamage(1)
  3019. C4a=true
  3020. for _,c in pairs(Cryst4:children()) do
  3021. if c.Name=="DebounceHit" then c.Parent=nil end
  3022. end
  3023. MagicCircle(BrickColor.new("Really red"),cf(C1Head.Position),150,400,150,5,10,5,.05)
  3024. MagicCircle(BrickColor.new("Really red"),cf(C2Head.Position),150,400,150,5,10,5,.05)
  3025. MagicCircle(BrickColor.new("Really red"),cf(C3Head.Position),150,400,150,5,10,5,.05)
  3026. MagicCircle(BrickColor.new("Really red"),cf(C4Head.Position),150,400,150,5,10,5,.05)
  3027. crystals=true
  3028. if CurrentHealth>1500 then
  3029. else
  3030. end
  3031. swait(50)
  3032. attack=false
  3033. end
  3034.  
  3035. function HeavySlam()
  3036. attack=true
  3037. for i=0,1,0.05 do
  3038. swait()
  3039. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,3,0),.1)
  3040. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
  3041. Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.3,0,0),.1)
  3042. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,1,0),.1)
  3043. RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(2,0,.3),.1)
  3044. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  3045. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.2,0,-.6),.1)
  3046. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  3047. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,1,0)*euler(.1,0,0),.1)
  3048. RH.C0=clerp(RH.C0,cf(1.5,-3,0)*euler(0,-1,0)*euler(.1,0,0),.1)
  3049. end
  3050. for i=0,1,0.04 do
  3051. swait()
  3052. wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,3,0),.1)
  3053. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
  3054. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.4,0,0),.1)
  3055. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,-.2,0),.1)
  3056. RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(3.5,0,0)*euler(0,.2,0),.1)
  3057. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  3058. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.4,0,-.6),.1)
  3059. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  3060. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-.3,0,0),.1)
  3061. RH.C0=clerp(RH.C0,cf(1.5,-3,-1)*euler(0,0,0)*euler(-.1,0,0),.1)
  3062. end
  3063. so("161006212",prt9,1,.6)
  3064. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(50,70),"Knockdown2",RootPart,2,1,math.random(20,40),nil,true) end)
  3065. hitbox.Parent=modelzorz
  3066. hitbox.Size=vt(2,20,8)
  3067. hitboxCF=prt9.CFrame*cf(0,0,0)
  3068. hitbox.CFrame=hitboxCF
  3069. blcf=nil
  3070. scfr=nil
  3071. for i=0,1,0.02 do
  3072. swait()
  3073. --[[local blcf = prt9.CFrame*cf(0,0,0)
  3074. if scfr and (prt9.Position-scfr.p).magnitude > .1 then
  3075. local h = 14
  3076. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  3077. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  3078. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  3079. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  3080. scfr = blcf
  3081. elseif not scfr then
  3082. scfr = blcf
  3083. end]]
  3084. hitboxCF=prt9.CFrame*cf(0,0,0)
  3085. hitbox.CFrame=hitboxCF
  3086. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,3,0),.4)
  3087. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.4)
  3088. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.6,0,0),.2)
  3089. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(0,0,0),.2)
  3090. RW.C0=clerp(RW.C0,cf(2.5,1.5,-1)*euler(.5,0,-.2)*euler(0,0,0),.4)
  3091. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
  3092. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.8,0,-.6),.2)
  3093. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
  3094. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-1,0,0),.2)
  3095. RH.C0=clerp(RH.C0,cf(1.5,-1,-1.5)*euler(0,0,0)*euler(-.1,0,0),.2)
  3096. if i>=.16 and i<=.17 then
  3097. hit,pos=rayCast(prt9.Position,(CFrame.new(prt9.Position,prt9.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  3098. if hit~=nil then
  3099. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  3100. ref.Anchored=true
  3101. ref.CFrame=cf(pos)
  3102. so("199145477",prt9,1,.8)
  3103. game:GetService("Debris"):AddItem(ref,1)
  3104. --MagniDamage(ref,30,1,5,math.random(50,70),"Knockdown2",false,"Movement",.2,400,math.random(90,100))
  3105. MagniDamage(ref,30,1,5,math.random(200,400),"Knockdown2",false,"Movement",.2,200,math.random(90,100))
  3106. MagicWave(BrickColor.new("Really red"),cf(ref.Position),1,1,1,2,2,2,.05)
  3107. end
  3108. end
  3109. end
  3110. con1:disconnect()
  3111. hitbox.Parent=nil
  3112. attack=false
  3113. end
  3114.  
  3115. local magref=part(3,effects,0,.5,BrickColor.new("Black"),"Effect",vt())
  3116. magref.Anchored=true
  3117. magref.CFrame=cf(0,0,0)
  3118. magref.Parent=nil
  3119. local mrmsh=mesh("SpecialMesh",magref,"Sphere","nil",vt(0,0,0),vt(1,1,1))
  3120.  
  3121. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  3122. --magref.CFrame=cf(Part.Position)
  3123. --mrmsh.Scale=vt(magni*10,magni*10,magni*10)
  3124. for _,c in pairs(workspace:children()) do
  3125. local hum=c:findFirstChild("Humanoid")
  3126. if hum~=nil then
  3127. local head=nil
  3128. for _,d in pairs(c:children()) do
  3129. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  3130. if d.className=="Part" then
  3131. head=d
  3132. if head~=nil then
  3133. local targ=head.Position-Part.Position
  3134. local mag=targ.magnitude
  3135. if mag<=magni and c.Name~=Character.Name and c.Name~="Crystal" then
  3136. if stun==nil then
  3137. stun=math.random(5,10)
  3138. end
  3139. local Rang=nil
  3140. if Ranged==false then
  3141. Rang=true
  3142. end
  3143. local stag=nil
  3144. if shbash==true then
  3145. stag=true
  3146. end
  3147. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  3148. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  3149. end
  3150. end
  3151. end
  3152. end
  3153. end
  3154. end
  3155. end
  3156.  
  3157. function DecreaseStat(Model,Stat,Amount,Duration)
  3158. if Model:findFirstChild("Stats")~=nil then
  3159. if Model.Stats[Stat]~=nil then
  3160. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  3161. d=Instance.new("NumberValue",Model.Stats.Decrease)
  3162. dur=Instance.new("NumberValue",d)
  3163. dur.Name="Duration"
  3164. dur.Value=Duration
  3165. game:GetService("Debris"):AddItem(d,40)
  3166. if Stat=="Damage" then
  3167. d.Name="DecreaseAtk"
  3168. elseif Stat=="Defense" then
  3169. d.Name="DecreaseDef"
  3170. elseif Stat=="Movement" then
  3171. d.Name="DecreaseMvmt"
  3172. end
  3173. if Model:findFirstChild("Torso")~=nil then
  3174. display=""
  3175. if Stat=="Damage" then
  3176. if Amount>0 then
  3177. display="-Damage"
  3178. else
  3179. display="+Damage"
  3180. end
  3181. elseif Stat=="Defense" then
  3182. if Amount>0 then
  3183. display="-Defense"
  3184. else
  3185. display="+Defense"
  3186. end
  3187. elseif Stat=="Movement" then
  3188. if Amount>0 then
  3189. display="-Movement"
  3190. else
  3191. display="+Movement"
  3192. end
  3193. end
  3194. showDamage(Model,display,"Debuff")
  3195. end
  3196. d.Value=Amount
  3197. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  3198. end
  3199. end
  3200. end
  3201.  
  3202. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3203. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3204. end
  3205.  
  3206. function findNearestTorso(pos)
  3207. local list = game.Workspace:children()
  3208. local torso = nil
  3209. local dist = 10000
  3210. local temp = nil
  3211. local human = nil
  3212. local temp2 = nil
  3213. for x = 1, #list do
  3214. temp2 = list[x]
  3215. if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
  3216. temp = temp2:findFirstChild("Torso")
  3217. human = temp2:findFirstChild("Humanoid")
  3218. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3219. if (temp.Position - pos).magnitude < dist then
  3220. local dohit=true
  3221. if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
  3222. if temp2:findFirstChild("Alive")==nil then dohit=false end
  3223. if dohit==true then
  3224. torso = temp
  3225. dist = (temp.Position - pos).magnitude
  3226. end
  3227. end
  3228. end
  3229. end
  3230. end
  3231. return torso,dist
  3232. end
  3233.  
  3234. function findRandomTorso(pos)
  3235. local list = game.Workspace:children()
  3236. local torso = nil
  3237. local dist = 10000
  3238. local temp = nil
  3239. local human = nil
  3240. local temp2 = nil
  3241. local list2 = {}
  3242. for x = 1, #list do
  3243. temp2 = list[x]
  3244. if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
  3245. temp = temp2:findFirstChild("Torso")
  3246. human = temp2:findFirstChild("Humanoid")
  3247. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3248. if pos.magnitude < dist then
  3249. local dohit=true
  3250. if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
  3251. if temp2:findFirstChild("Alive")==nil then dohit=false end
  3252. if dohit==true then
  3253. torso = temp
  3254. table.insert(list2,temp)
  3255. end
  3256. end
  3257. end
  3258. end
  3259. end
  3260. if #list2>0 then
  3261. rand=math.random(1,#list2)
  3262. return list2[rand],dist
  3263. else
  3264. return nil,dist
  3265. end
  3266. end
  3267.  
  3268. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  3269. if hit.Parent==nil then
  3270. return
  3271. end
  3272. h=hit.Parent:FindFirstChild("Humanoid")
  3273. --[[for _,v in pairs(hit.Parent:children()) do
  3274. if v:IsA("Humanoid") then
  3275. h=v
  3276. end
  3277. end]]
  3278. --[[if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  3279. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  3280. end]]
  3281. if hit.Parent.className=="Hat" then
  3282. hit=hit.Parent.Parent:findFirstChild("Head")
  3283. end
  3284. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
  3285. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3286. if Sound=="GreatHit" then
  3287. so("200632875",hit,1,1)
  3288. end
  3289. game:GetService("Debris"):AddItem(c,.5)
  3290. minim=minim*Atk.Value
  3291. maxim=maxim*Atk.Value
  3292. Damage=0
  3293. if minim==maxim or minim>maxim then
  3294. Damage=maxim
  3295. else
  3296. Damage=math.random(minim,maxim)
  3297. end
  3298. blocked=false
  3299. enblock=nil
  3300. Stats=hit.Parent:findFirstChild("Stats")
  3301. if Stats~=nil then
  3302. enblock=Stats:findFirstChild("Block")
  3303. if enblock~=nil then
  3304. if enblock.Value==true then
  3305. blocked=true
  3306. end
  3307. end
  3308. if Stats:findFirstChild("Defense")~=nil then
  3309. Damage=Damage/(Stats.Defense.Value)
  3310. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  3311. hitnum=math.random(1,5)
  3312. if hitnum==1 then so("199149321",hit,1,.7)
  3313. elseif hitnum==2 then so("199149338",hit,1,.7)
  3314. elseif hitnum==3 then so("199149367",hit,1,.7)
  3315. elseif hitnum==4 then so("199149409",hit,1,.7)
  3316. elseif hitnum==5 then so("199149452",hit,1,.7)
  3317. end
  3318. elseif ranged==false or ranged==nil and blocked~=true then
  3319. hitnum=math.random(1,6)
  3320. if hitnum==1 then so("199149137",hit,1,.7)
  3321. elseif hitnum==2 then so("199149186",hit,1,.7)
  3322. elseif hitnum==3 then so("199149221",hit,1,.7)
  3323. elseif hitnum==4 then so("199149235",hit,1,.7)
  3324. elseif hitnum==5 then so("199149269",hit,1,.7)
  3325. elseif hitnum==6 then so("199149297",hit,1,.7)
  3326. end
  3327. end
  3328. end
  3329. if Stats:findFirstChild("Stun")~=nil then
  3330. if blocked==true then
  3331. incstun=math.floor(incstun/2)
  3332. end
  3333. Stats.Stun.Value=Stats.Stun.Value+incstun
  3334. end
  3335. if Stats:findFirstChild("Stagger")~=nil then
  3336. if stagger==true then
  3337. Stats.Stagger.Value=true
  3338. end
  3339. end
  3340. end
  3341. if blocked==true then
  3342. showDamage(hit.Parent,"Block","Damage")
  3343. hitnum=math.random(1,2)
  3344. if hitnum==1 then so("199148933",hit,1,1)
  3345. elseif hitnum==2 then so("199148947",hit,1,1)
  3346. end
  3347. enblock.Value=false
  3348. else
  3349. Damage=math.floor(Damage)
  3350. h:TakeDamage(Damage)
  3351. --[[coroutine.resume(coroutine.create(function(Hum,Dam)
  3352. damageFunc:InvokeServer(nil,h,Damage)
  3353. --print(Dam)
  3354. end),h,Damage)]]
  3355. showDamage(hit.Parent,Damage,"Damage")
  3356. if DecreaseState~=nil then
  3357. if DecreaseState=="Shatter" then
  3358. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  3359. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  3360. else
  3361. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3362. end
  3363. end
  3364. if Type=="Knockdown" then
  3365. hum=hit.Parent.Humanoid
  3366. hum.PlatformStand=true
  3367. coroutine.resume(coroutine.create(function(HHumanoid)
  3368. swait(1)
  3369. HHumanoid.PlatformStand=false
  3370. end),hum)
  3371. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3372. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3373. local bodvol=Instance.new("BodyVelocity")
  3374. bodvol.velocity=angle*knockback
  3375. bodvol.P=5000
  3376. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3377. bodvol.Parent=hit
  3378. rl=Instance.new("BodyAngularVelocity")
  3379. rl.P=3000
  3380. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3381. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3382. rl.Parent=hit
  3383. game:GetService("Debris"):AddItem(bodvol,.5)
  3384. game:GetService("Debris"):AddItem(rl,.5)
  3385. elseif Type=="Shatter" then
  3386. for i=1,10 do
  3387. BreakEffect(BrickColor.new("Really red"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  3388. end
  3389. elseif Type=="Knockdown2" then
  3390. hum=hit.Parent.Humanoid
  3391. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3392. local bodvol=Instance.new("BodyVelocity")
  3393. bodvol.velocity=angle*knockback
  3394. bodvol.P=5000
  3395. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3396. bodvol.Parent=hit
  3397. game:GetService("Debris"):AddItem(bodvol,.5)
  3398. elseif Type=="Normal" then
  3399. vp=Instance.new("BodyVelocity")
  3400. vp.P=500
  3401. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  3402. if KnockbackType==1 then
  3403. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  3404. elseif KnockbackType==2 then
  3405. vp.velocity=Property.CFrame.lookVector*knockback
  3406. end
  3407. game:GetService("Debris"):AddItem(vp,.5)
  3408. if knockback>0 then
  3409. vp.Parent=hit.Parent.Torso
  3410. end
  3411. end
  3412. end
  3413. debounce=Instance.new("BoolValue")
  3414. debounce.Name="DebounceHit"
  3415. debounce.Parent=hit.Parent
  3416. debounce.Value=true
  3417. game:GetService("Debris"):AddItem(debounce,Delay)
  3418. CRIT=false
  3419. end
  3420. end
  3421.  
  3422. showDamage=function(Char,Dealt,Type)
  3423. m=Instance.new("Model")
  3424. m.Name="Effect"
  3425. c=Instance.new("Part")
  3426. c.Transparency=1
  3427. c.Name="Head"
  3428. c.TopSurface=0
  3429. c.BottomSurface=0
  3430. c.formFactor="Plate"
  3431. c.Size=Vector3.new(1,.4,1)
  3432. b=Instance.new("BillboardGui",c)
  3433. b.Size=UDim2.new(5,0,5,0)
  3434. b.AlwaysOnTop=true
  3435. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3436. if Type=="Damage" then
  3437. damgui.Font="SourceSans"
  3438. if Dealt=="Block" then
  3439. damgui.TextColor3=BrickColor.new("Really red").Color
  3440. elseif Dealt<3 then
  3441. damgui.TextColor3=BrickColor.new("Really red").Color
  3442. elseif Dealt>=3 and Dealt<20 then
  3443. damgui.TextColor3=BrickColor.new("Really red").Color
  3444. else
  3445. damgui.TextColor3=BrickColor.new("Really red").Color
  3446. damgui.Font="SourceSansBold"
  3447. end
  3448. elseif Type=="Debuff" then
  3449. damgui.TextColor3=BrickColor.new("White").Color
  3450. elseif Type=="Interrupt" then
  3451. damgui.TextColor3=BrickColor.new("Really red").Color
  3452. end
  3453. --damgui.FontSize="Size48"
  3454. damgui.TextScaled=true
  3455. ms=Instance.new("CylinderMesh")
  3456. ms.Scale=Vector3.new(.8,.8,.8)
  3457. ms.Parent=c
  3458. c.Reflectance=0
  3459. Instance.new("BodyGyro").Parent=c
  3460. c.Parent=m
  3461. if Char:findFirstChild("Head")~=nil then
  3462. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3463. elseif Char.Parent:findFirstChild("Head")~=nil then
  3464. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3465. end
  3466. f=Instance.new("BodyPosition")
  3467. f.P=2000
  3468. f.D=100
  3469. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3470. if Type=="Damage" then
  3471. f.position=c.Position+Vector3.new(0,3,0)
  3472. elseif Type=="Debuff" or Type=="Interrupt" then
  3473. f.position=c.Position+Vector3.new(0,5,0)
  3474. end
  3475. f.Parent=c
  3476. game:GetService("Debris"):AddItem(m,5)
  3477. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3478. c.CanCollide=false
  3479. m.Parent=effects
  3480. c.CanCollide=false
  3481. end
  3482.  
  3483.  
  3484.  
  3485.  
  3486. Mouse = Player:GetMouse()
  3487. Mouse.KeyDown:connect(function(kek)
  3488. kek = kek:lower()
  3489. if kek == "z" then
  3490. TurnSlam()
  3491. end
  3492. if kek == "x" then
  3493. GrandPunch()
  3494. end
  3495. if kek == "c" then
  3496. FrostSlam()
  3497. end
  3498. if kek == "v" then
  3499. TriIceShards()
  3500. end
  3501. if kek == "q" then
  3502. TriOrbs()
  3503. end
  3504. if kek == "e" then
  3505. IceMortar()
  3506. end
  3507. if kek == "r" then
  3508. TriIceShards2()
  3509. end
  3510. if kek == "f" then
  3511. TriOrbs2()
  3512. end
  3513. if kek == "t" then
  3514. SummonCrystals()
  3515. end
  3516. if kek == "y" then
  3517. StunAnim()
  3518. end
  3519. if kek == "l" then
  3520. SkyBeamOfDeath()
  3521. end
  3522. if kek == "p" then
  3523. Roar()
  3524. end
  3525. end)
  3526.  
  3527. local stunnum=0
  3528. local animnum=0
  3529. local idle=1
  3530. local animlimit=120
  3531. local attacking=false
  3532. while Humanoid.Health>0 do
  3533. swait()
  3534. for _,c in pairs(C1S:children()) do
  3535. if c.Name=="Defense" then c.Value=1 end
  3536. if c.Name=="Decrease" then
  3537. for _,d in pairs(c:children()) do
  3538. d.Parent=nil
  3539. end
  3540. end
  3541. end
  3542. for _,c in pairs(C2S:children()) do
  3543. if c.Name=="Defense" then c.Value=1 end
  3544. if c.Name=="Decrease" then
  3545. for _,d in pairs(c:children()) do
  3546. d.Parent=nil
  3547. end
  3548. end
  3549. end
  3550. for _,c in pairs(C3S:children()) do
  3551. if c.Name=="Defense" then c.Value=1 end
  3552. if c.Name=="Decrease" then
  3553. for _,d in pairs(c:children()) do
  3554. d.Parent=nil
  3555. end
  3556. end
  3557. end
  3558. for _,c in pairs(C4S:children()) do
  3559. if c.Name=="Defense" then c.Value=1 end
  3560. if c.Name=="Decrease" then
  3561. for _,d in pairs(c:children()) do
  3562. d.Parent=nil
  3563. end
  3564. end
  3565. end
  3566. if stunanim==false then
  3567. Humanoid.Health=CurrentHealth
  3568. else
  3569. CurrentHealth=Humanoid.Health
  3570. end
  3571. for i=1,#refs2 do
  3572. refs2[i][1].CFrame=refs2[i][2].CFrame*refs2[i][3]
  3573. end
  3574. if meleecooldown<100 then
  3575. meleecooldown=meleecooldown+mcdadd
  3576. end
  3577. hitbox2.Parent=hitbox.Parent
  3578. hitbox2.Size=hitbox.Size
  3579. hitbox2.CFrame=hitboxCF
  3580. target,distance=findNearestTorso(Torso.Position)
  3581. if target~=nil then
  3582. local test1,dist1=findNearestTorso(Head.Position)
  3583. if dist1<200 then
  3584. if math.random(1,50)==1 and stunanim==false then --close projectile attack
  3585. coroutine.resume(coroutine.create(function()
  3586. atktype=math.random(1,4)
  3587. if atktype==1 then
  3588. TriIceShards2()
  3589. elseif atktype==2 then
  3590. TriIceShards2()
  3591. elseif atktype==3 then
  3592. TriIceShards2()
  3593. elseif atktype==4 then
  3594. TriOrbs2()
  3595. end
  3596. end))
  3597. end
  3598. end
  3599. local rand=math.random(1,30)
  3600. if CurrentHealth<1500 then
  3601. rand=math.random(1,20)
  3602. end
  3603. if rand==1 and stunanim==false then --projectile attack
  3604. coroutine.resume(coroutine.create(function()
  3605. atktype=math.random(1,4)
  3606. if atktype==1 then
  3607. TriIceShards()
  3608. elseif atktype==2 then
  3609. TriIceShards()
  3610. elseif atktype==3 then
  3611. TriOrbs()
  3612. elseif atktype==4 then
  3613. IceMortar()
  3614. end
  3615. end))
  3616. end
  3617. if math.random(1,50)==1 and attack==false and meleecooldown>=100 and stunanim==false then --melee attack
  3618. coroutine.resume(coroutine.create(function()
  3619. atktype=math.random(1,3)
  3620. if atktype==1 then
  3621. TurnSlam()
  3622. elseif atktype==2 then
  3623. GrandPunch()
  3624. elseif atktype==3 then
  3625. FrostSlam()
  3626. end
  3627. end))
  3628. end
  3629. end
  3630. if C1a==true then
  3631. if C1Hum.Health<=0 then
  3632. C1a=false
  3633. summoncrystals=0
  3634. Stun.Value=Stun.Value+160
  3635. MagicCrystal(BrickColor.new("Really red"),cf(C1Head.Position),10,20,10,3,3,3,.1)
  3636. Cryst1.Parent=nil
  3637. end
  3638. end
  3639. if C2a==true then
  3640. if C2Hum.Health<=0 then
  3641. C2a=false
  3642. summoncrystals=0
  3643. Stun.Value=Stun.Value+160
  3644. MagicCrystal(BrickColor.new("Really red"),cf(C2Head.Position),10,20,10,3,3,3,.1)
  3645. Cryst2.Parent=nil
  3646. end
  3647. end
  3648. if C3a==true then
  3649. if C3Hum.Health<=0 then
  3650. C3a=false
  3651. summoncrystals=0
  3652. Stun.Value=Stun.Value+160
  3653. MagicCrystal(BrickColor.new("Really red"),cf(C3Head.Position),10,20,10,3,3,3,.1)
  3654. Cryst3.Parent=nil
  3655. end
  3656. end
  3657. if C4a==true then
  3658. if C4Hum.Health<=0 then
  3659. C4a=false
  3660. summoncrystals=0
  3661. Stun.Value=Stun.Value+160
  3662. MagicCrystal(BrickColor.new("Really red"),cf(C4Head.Position),10,20,10,3,3,3,.1)
  3663. Cryst4.Parent=nil
  3664. end
  3665. end
  3666. if C1a==false and C2a==false and C3a==false and C4a==false then
  3667. if CurrentHealth>1500 then
  3668. else
  3669. end
  3670. crystals=false
  3671. end
  3672. if CurrentHealth<=1500 then
  3673. end
  3674. summoncrystals=summoncrystals+.1
  3675. if summoncrystals>100 and crystals==false and attack==false then
  3676. coroutine.resume(coroutine.create(function()
  3677. while attack==true do
  3678. swait()
  3679. end
  3680. SummonCrystals()
  3681. end))
  3682. end
  3683. Humanoid.WalkSpeed=0
  3684. if Stun.Value>=StunT.Value and stunanim==false and attack==false then
  3685. coroutine.resume(coroutine.create(function()
  3686. stunanim=true
  3687. while attack==true do
  3688. swait()
  3689. Stun.Value=StunT.Value
  3690. end
  3691. summoncrystals=0
  3692. StunAnim()
  3693. Stun.Value=0
  3694. stunanim=false
  3695. end))
  3696. end
  3697. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3698. local velderp=RootPart.Velocity.y
  3699. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  3700. for _,c in pairs(Decrease:children()) do
  3701. c.Parent=nil
  3702. if c:findFirstChild("Duration")~=nil then
  3703. c.Duration.Value=c.Duration.Value-9999
  3704. if c.Duration.Value<=0 then
  3705. c.Parent=nil
  3706. end
  3707. end
  3708. if c.Name=="DecreaseAtk" then
  3709. decreaseatk=decreaseatk+c.Value
  3710. elseif c.Name=="DecreaseDef" then
  3711. decreasedef=decreasedef+c.Value
  3712. elseif c.Name=="DecreaseMvmt" then
  3713. decreasemvmt=decreasemvmt+c.Value
  3714. end
  3715. end
  3716. Atk.Value=2-decreaseatk
  3717. if Atk.Value<=0 then
  3718. Atk.Value=0
  3719. end
  3720. Def.Value=2-decreasedef
  3721. if Def.Value<=0 then
  3722. Def.Value=0.01
  3723. end
  3724. Mvmt.Value=0-decreasemvmt
  3725. if Mvmt.Value<=0 then
  3726. Mvmt.Value=0
  3727. end
  3728. decreaseatk=0
  3729. decreasedef=0
  3730. decreasemvmt=0
  3731. AtkVal=Atk.Value*100
  3732. AtkVal=math.floor(AtkVal)
  3733. AtkVal=AtkVal/100
  3734. DefVal=Def.Value*100
  3735. DefVal=math.floor(DefVal)
  3736. DefVal=DefVal/100
  3737. MvmtVal=Mvmt.Value*100
  3738. MvmtVal=math.floor(MvmtVal)
  3739. MvmtVal=MvmtVal/100
  3740. if MvmtVal<=0 then
  3741. MvmtVal=0
  3742. end
  3743. animnum=animnum+1
  3744. if animnum>=animlimit*5 then
  3745. idle=1
  3746. animnum=0
  3747. elseif animnum>=animlimit*4 then
  3748. idle=1
  3749. animnum=0
  3750. elseif animnum>=animlimit*3 then
  3751. idle=4
  3752. elseif animnum>=animlimit*2 then
  3753. idle=3
  3754. elseif animnum>=animlimit*1 then
  3755. idle=2
  3756. end
  3757.  
  3758. player = game.Players.LocalPlayer
  3759. chara = player.Character
  3760. debby = game:GetService("Debris")
  3761. angles=CFrame.Angles
  3762. euler=CFrame.fromEulerAnglesXYZ
  3763.  
  3764. skybox = Instance.new("Part",chara)
  3765. skybox.Size = Vector3.new(0,0,0)
  3766. skybox.Anchored = true
  3767. skybox.CanCollide = true
  3768. skyboxmesh = Instance.new("SpecialMesh",skybox)
  3769. skyboxmesh.MeshId = "http://www.roblox.com/asset/?id=1527559"
  3770. skyboxmesh.TextureId = "http://www.roblox.com/asset/?id=563138225"
  3771. skyboxmesh.VertexColor = Vector3.new(1,0,0)
  3772. skyboxmesh.Scale = Vector3.new(-3000,-1000,-3000)
  3773. skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(1),0)
  3774.  
  3775. local naeeym = Instance.new("BillboardGui",chara)
  3776. naeeym.Size = UDim2.new(0,100,0,400)
  3777. naeeym.StudsOffset = Vector3.new(0,200,0)
  3778. naeeym.Adornee = chara.Head
  3779. local tecks = Instance.new("TextLabel",naeeym)
  3780. tecks.BackgroundTransparency = 1
  3781. tecks.BorderSizePixel = 0
  3782. tecks.Text = "King_NELF"
  3783. tecks.Font = "Fantasy"
  3784. tecks.FontSize = "Size24"
  3785. tecks.TextStrokeTransparency = 0
  3786. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  3787. tecks.TextColor3 = Color3.new(0,0,0)
  3788. tecks.Size = UDim2.new(1,0,0.5,0)
  3789. tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  3790.  
  3791. --Death--
  3792. chara.Humanoid.Died:connect(function()
  3793. local pat = Instance.new("Part",game.Workspace)
  3794. pat.Transparency = 1
  3795. pat.Anchored = true
  3796. pat.CFrame = chara.Torso.CFrame
  3797. naeeym.Parent = pat
  3798. naeeym.Adornee = pat
  3799. skybox.Parent = game.Workspace
  3800. tecks.Text = "hahaha ;)"
  3801. tecks.FontSize = "Size48"
  3802. tecks.TextColor3 = Color3.new(1,0,0)
  3803. music1:Stop()
  3804. music2:Stop()
  3805. deathmus.Parent = game.Workspace
  3806. deathex.Parent = game.Workspace
  3807. deathmus:Play()
  3808. deathex:Play()
  3809. game.Lighting.TimeOfDay = "00:00:00"
  3810. game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
  3811. game.Lighting.FogColor = Color3.new(0,0,0)
  3812. game.Lighting.FogEnd = 50000000000000000
  3813. local ex = Instance.new("Explosion",game.Workspace)
  3814. ex.Position = chara.Torso.Position
  3815. ex.Visible = false
  3816. ex.BlastRadius = 999999999999999999999999
  3817. ex.BlastPressure = 9999999999999999999999999
  3818. end)
  3819.  
  3820. --Loop Function--
  3821. while true do
  3822. wait(.01)
  3823.  
  3824. if chara.Humanoid.Health > 0 then
  3825. chara.Humanoid.MaxHealth = math.huge
  3826. chara.Humanoid.Health = math.huge
  3827.  
  3828. skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(1),0)
  3829. tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  3830. end
  3831. end
  3832.  
  3833. if attack==false then --idle anim
  3834. if idle==1 or idle==2 then
  3835. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
  3836. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.005)
  3837. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.005)
  3838. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.005)
  3839. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.005)
  3840. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
  3841.  
  3842. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.005)
  3843. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.005)
  3844. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.005)
  3845. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
  3846. else
  3847. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
  3848. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,10)*euler(-.2,0,0),.005)
  3849. wld19.C0=wld19.C0:lerp(euler(-.2,.3,0)*cf(94,-47.5,-2.248),.005)
  3850. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,0,0),.005)
  3851. wld24.C0=wld24.C0:lerp(euler(1.2,-.2,0)*cf(0,90.25,0),.005)
  3852. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
  3853.  
  3854. wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.005)
  3855. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,0,0),.005)
  3856. wld38.C0=wld38.C0:lerp(euler(-1.2,-.2,0)*cf(0,-90.25,0),.005)
  3857. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
  3858. end
  3859. end
  3860. if #Effects>0 then
  3861. --table.insert(Effects,{prt,"Block1",delay})
  3862. for e=1,#Effects do
  3863. if Effects[e]~=nil then
  3864. --for j=1,#Effects[e] do
  3865. local Thing=Effects[e]
  3866. if Thing~=nil then
  3867. local Part=Thing[1]
  3868. local Mode=Thing[2]
  3869. local Delay=Thing[3]
  3870. local IncX=Thing[4]
  3871. local IncY=Thing[5]
  3872. local IncZ=Thing[6]
  3873. if Thing[2]=="DecreaseStat" then
  3874. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  3875. Thing[5]=Thing[5]-1
  3876. if Thing[5]<=0 then
  3877. if Thing[1]:findFirstChild("Stats")~=nil then
  3878. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  3879. --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  3880. end
  3881. end
  3882. Thing[6].Parent=nil
  3883. table.remove(Effects,e)
  3884. end
  3885. end
  3886. if Thing[2]=="CylinderClang" then
  3887. if Thing[3]<=1 then
  3888. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3889. Thing[7]=Thing[1].CFrame
  3890. effect("Really red",0,Thing[8],Thing[7])
  3891. Thing[8]=Thing[7]
  3892. Thing[3]=Thing[3]+Thing[4]
  3893. else
  3894. Part.Parent=nil
  3895. table.remove(Effects,e)
  3896. end
  3897. end
  3898. if Thing[2]=="showDamage" then
  3899. if Thing[6]<Thing[5] then
  3900. Thing[6]=Thing[6]+1
  3901. elseif Thing[6]<Thing[7] then
  3902. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3903. Thing[6]=Thing[6]+1
  3904. elseif Thing[6]<Thing[8] then
  3905. Thing[6]=Thing[6]+1
  3906. elseif Thing[6]<Thing[9] then
  3907. Thing[6]=Thing[6]+1
  3908. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3909. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3910. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3911. else
  3912. Thing[1].Parent=nil
  3913. table.remove(Effects,e)
  3914. end
  3915. end
  3916. if Thing[2]=="ShootIce" then
  3917. local Look=Thing[1]
  3918. local hit,pos = rayCast(Thing[4],Look.lookVector,Thing[9],Character)
  3919. local mag=(Thing[4]-pos).magnitude
  3920. --MagicHead(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,.2)
  3921. Thing[8].CFrame=CFrame.new((Thing[4]+pos)/2,pos)*euler(-1.57,0,0)
  3922. Thing[4]=Thing[4]+(Look.lookVector*Thing[9])
  3923. Thing[3]=Thing[3]-1
  3924. Thing[9]=Thing[9]+.2
  3925. if hit~=nil then
  3926. Thing[3]=0
  3927. --DecreaseStat(hit.Parent,"Movement",.02,50,false)
  3928. --Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,3),nil,nil,true)
  3929. ref=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
  3930. ref.Anchored=true
  3931. ref.CFrame=cf(pos)
  3932. --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
  3933. game:GetService("Debris"):AddItem(ref,1)
  3934. ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt(5,5,5))
  3935. ref2.Anchored=true
  3936. ref2.CFrame=cf(pos)
  3937. --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
  3938. so("199146181",ref2,1,1.6)
  3939. game:GetService("Debris"):AddItem(ref2,5)
  3940. --MagicCircle(BrickColor.new("Really red"),ref.CFrame,40,40,40,1,1,1,.05)
  3941. freeze=true
  3942. MagicCircle(BrickColor.new("Really red"),cf(ref.Position),20,20,20,20,20,20,.1)
  3943. MagniDamage(ref,15,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(10,15),nil,nil,true,"Movement",.1,100)
  3944. freeze=false
  3945. for i=1,8 do
  3946. BreakEffect(BrickColor.new("Black"),ref.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),math.random(60,120)/100,math.random(3,20),math.random(60,120)/100)
  3947. end
  3948. end
  3949. if Thing[3]<=0 then
  3950. Thing[8].Transparency=1
  3951. Thing[11].Enabled=false
  3952. Thing[12].Enabled=false
  3953. game:GetService("Debris"):AddItem(Thing[8],5)
  3954. table.remove(Effects,e)
  3955. end
  3956. end
  3957. if Thing[2]=="SatelliteStrike" then
  3958. if Thing[5]<200 then
  3959. Thing[5]=Thing[5]+2
  3960. Thing[4].Scale=vt(Thing[5],5,Thing[5])
  3961. else
  3962. refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3963. refda.Anchored=true
  3964. refda.CFrame=cf(Thing[1].Position)
  3965. game:GetService("Debris"):AddItem(refda,1)
  3966. so("334325056",refda,1,1)
  3967. so("199145739",refda,.8,2)
  3968. MagniDamage(refda,20,8,10,0,"Knockdown2",refda,0,1,math.random(10,12),nil,nil,true,"Movement",.4,100)
  3969. MagicHead(BrickColor.new("Really red"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
  3970. MagicBlock(BrickColor.new("Really red"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
  3971. for i=1,15 do
  3972. local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Really black"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
  3973. freezepart.Anchored=true
  3974. freezepart.CanCollide=true
  3975. freezepart.CFrame=cf(refda.Position)*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3976. game:GetService("Debris"):AddItem(freezepart,5)
  3977. end
  3978. Thing[1].Parent=nil
  3979. --MagicIcicle(BrickColor.new("Really red"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
  3980. table.remove(Effects,e)
  3981. end
  3982. end
  3983. if Thing[2]=="SatelliteStrike2" then
  3984. if Thing[5]<300 then
  3985. Thing[5]=Thing[5]+2
  3986. Thing[4].Scale=vt(Thing[5],5,Thing[5])
  3987. else
  3988. refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3989. refda.Anchored=true
  3990. refda.CFrame=cf(Thing[1].Position)
  3991. game:GetService("Debris"):AddItem(refda,1)
  3992. refda2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3993. refda2.Anchored=true
  3994. refda2.CFrame=refda.CFrame*cf(0,-10,0)
  3995. game:GetService("Debris"):AddItem(refda2,1)
  3996. so("178452221",refda,1,1.2)
  3997. so("334325056",refda,1,1)
  3998. MagniDamage(refda,30,8,10,math.random(40,60),"Knockdown2",refda2,0,1,math.random(15,20),nil,nil,true,"Damage",.4,300)
  3999. --MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
  4000. MagicBlock(BrickColor.new("Really red"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
  4001. MagicWave2(BrickColor.new("Really red"),cf(refda.Position),40,30,40,5,8,5,.07)
  4002. --[[for i=1,15 do
  4003. local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Really red"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
  4004. freezepart.Anchored=true
  4005. freezepart.CanCollide=true
  4006. freezepart.CFrame=cf(refda.Position)*cf(math.random(-1500,1500)/100,0,math.random(-1500,1500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4007. game:GetService("Debris"):AddItem(freezepart,5)
  4008. end]]
  4009. Thing[1].Parent=nil
  4010. --MagicIcicle(BrickColor.new("Really red"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
  4011. table.remove(Effects,e)
  4012. end
  4013. end
  4014. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="ShootIce" and Thing[2]~="SatelliteStrike" and Thing[2]~="SatelliteStrike2" then
  4015. if Thing[1].Transparency<=1 then
  4016. if Thing[2]=="Block1" then
  4017. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4018. Mesh=Thing[7]
  4019. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4020. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4021. elseif Thing[2]=="Block2" then
  4022. Thing[1].CFrame=Thing[1].CFrame
  4023. Mesh=Thing[7]
  4024. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4025. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4026. elseif Thing[2]=="Cylinder" then
  4027. Mesh=Thing[7]
  4028. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4029. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4030. elseif Thing[2]=="Cylinder2" then
  4031. Mesh=Thing[7]
  4032. if Thing[1].Transparency<=.5 then
  4033. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4034. Thing[8]=Thing[8]+.2
  4035. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)*euler(0,Thing[8],0)
  4036. else
  4037. Mesh.Scale=Mesh.Scale+vt(Thing[4]/2,-Thing[5]/1,Thing[6]/2)
  4038. Thing[1].CFrame=Thing[1].CFrame*cf(0,-1,0)
  4039. end
  4040. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4041. elseif Thing[2]=="Shatter" then
  4042. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4043. Thing[4]=Thing[4]*cf(0,Thing[7],0)
  4044. Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
  4045. --Thing[1].CFrame=Thing[1].CFrame
  4046. Thing[6]=Thing[6]+Thing[5]
  4047. elseif Thing[2]=="Blood" then
  4048. Mesh=Thing[7]
  4049. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  4050. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4051. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4052. elseif Thing[2]=="Elec" then
  4053. Mesh=Thing[7]
  4054. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  4055. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4056. elseif Thing[2]=="Disappear" then
  4057. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4058. end
  4059. else
  4060. table.remove(Effects,e)
  4061. end
  4062. end
  4063. end
  4064. --end
  4065. end
  4066. end
  4067. end
  4068. end
  4069. refs.Parent=nil
  4070. effects.Parent=nil
  4071. Humanoid.Parent=nil
  4072. for _,c in pairs(Character:children()) do
  4073. if c.className=="Part" then
  4074. --[[c:BreakJoints()
  4075. c.CanCollide=true
  4076. c.Anchored=false]]
  4077. c.Anchored=true
  4078. end
  4079. end
  4080. for _,c in pairs(armor:children()) do
  4081. if c.className=="Part" then
  4082. --[[c:BreakJoints()
  4083. c.CanCollide=true
  4084. c.Anchored=false]]
  4085. c.Anchored=true
  4086. end
  4087. end
  4088. for _,c in pairs(Character:children()) do
  4089. if c.className=="Part" then
  4090. if c.Name~="Left Arm" then
  4091. swait()
  4092. end
  4093. c:BreakJoints()
  4094. c.CanCollide=false
  4095. c.Anchored=false
  4096. end
  4097. end
  4098. for _,c in pairs(armor:children()) do
  4099. if c.className=="Part" then
  4100. swait()
  4101. c:BreakJoints()
  4102. c.CanCollide=false
  4103. c.Anchored=false
  4104. end
  4105. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement