Advertisement
okban

Untitled

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