Advertisement
StrikerAndDai

Untitled

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