Advertisement
AgentVK

Untitled

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