Advertisement
DontAskme

C:

Jun 21st, 2017
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.38 KB | None | 0 0
  1. --Leaked by i forgot
  2. --Converted to local by definite not me
  3. --Edited by yapjingwei
  4. --[[
  5. Made by Fenrier.
  6. ]]
  7. script.Name = "nigga srsly"
  8. ArtificialHB = Instance.new("BindableEvent", script)
  9. ArtificialHB.Name = "Heartbeat"
  10. script:WaitForChild("Heartbeat")
  11. Player = game:GetService("Players").LocalPlayer
  12. Character = Player.Character
  13. PlayerGui = Player.PlayerGui
  14. script.Parent = PlayerGui
  15. Backpack = Player.Backpack
  16. Torso = Character.Torso
  17. Head = Character.Head
  18. Humanoid = Character.Humanoid
  19. LeftArm = Character["Left Arm"]
  20. LeftLeg = Character["Left Leg"]
  21. RightArm = Character["Right Arm"]
  22. RightLeg = Character["Right Leg"]
  23. ch = Character
  24. RootPart = Character.HumanoidRootPart
  25. RootJoint = RootPart.RootJoint
  26. it=Instance.new
  27. vt=Vector3.new
  28. cf=CFrame.new
  29. euler=CFrame.fromEulerAnglesXYZ
  30. angles=CFrame.Angles
  31. local decreaseatk=0
  32. local decreasedef=0
  33. local decreasemvmt=0
  34. local Anim="Idle"
  35. local Effects={}
  36. local armorparts={}
  37. local armorwelds={}
  38. local weaponparts={}
  39. local weaponwelds={}
  40. local necko=euler(0,0,0)*cf(0,3,0)
  41. local attack=false
  42. local jump=false
  43. local hitfloor,posfloor=nil,nil
  44. local target,distance=nil,nil
  45. local meleecooldown=0
  46. local mcdadd=1
  47. local summoncrystals=0
  48. local crystals=false
  49. local stunanim=false
  50.  
  51. if workspace:findFirstChild("Neflhelm",true) ~= nil then
  52. workspace:findFirstChild("Neflhelm",true).Parent = nil
  53. end
  54.  
  55. c = script:Clone()
  56. c.Parent = game.Lighting
  57. s = Instance.new("Sky")
  58. s.Name = "Dark Sky"
  59. s.SkyboxBk = "http://www.roblox.com/asset/?id=13943307"
  60. s.SkyboxDn = "http://www.roblox.com/asset/?id=13943307"
  61. s.SkyboxFt = "http://www.roblox.com/asset/?id=13943307"
  62. s.SkyboxLf = "http://www.roblox.com/asset/?id=13943307"
  63. s.SkyboxRt = "http://www.roblox.com/asset/?id=13943307"
  64. s.SkyboxUp = "http://www.roblox.com/asset/?id=13943307"
  65. s.Parent = game.Lighting
  66.  
  67. game.Lighting.Ambient = Color3.new(-1,-1,-1)
  68.  
  69. music = Instance.new("Sound", Character)
  70. music.SoundId = "http://www.roblox.com/asset/?id=763799656"
  71. music.Volume = 10
  72. music.Looped = true
  73. wait(0.1)
  74. music:Play()
  75.  
  76. function NoOutline(Part)
  77. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  78. end
  79.  
  80. function swait(num)
  81. if num==0 or num==nil then
  82. --if Stagger.Value==false or Stun.Value<=100 then
  83. script.Heartbeat.Event:wait()
  84. --end
  85. else
  86. for i=0,num do
  87. script.Heartbeat.Event:wait()
  88. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  89. break
  90. end]]
  91. end
  92. end
  93. end
  94.  
  95. --30hz Pacemaker
  96.  
  97. frame = 1/30
  98. tf = 0
  99. 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.
  100. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  101. lastframe = tick()
  102. script.Heartbeat:Fire() --ayy lmao
  103.  
  104. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  105. tf = tf + s
  106. if tf >= frame then
  107. if allowframeloss then
  108. script.Heartbeat:Fire()
  109. lastframe=tick()
  110. else
  111. ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  112. for i=1, math.floor(tf/frame) do
  113. script.Heartbeat:Fire()
  114. end
  115. lastframe=tick()
  116. end
  117. if tossremainder then
  118. tf = 0
  119. else
  120. tf = tf - frame * math.floor(tf/frame)
  121. end
  122. end
  123. end)
  124.  
  125. function clerp(a,b,t)
  126. local qa = {QuaternionFromCFrame(a)}
  127. local qb = {QuaternionFromCFrame(b)}
  128. local ax, ay, az = a.x, a.y, a.z
  129. local bx, by, bz = b.x, b.y, b.z
  130. local _t = 1-t
  131. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  132. end
  133.  
  134. function QuaternionFromCFrame(cf)
  135. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  136. local trace = m00 + m11 + m22
  137. if trace > 0 then
  138. local s = math.sqrt(1 + trace)
  139. local recip = 0.5/s
  140. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  141. else
  142. local i = 0
  143. if m11 > m00 then
  144. i = 1
  145. end
  146. if m22 > (i == 0 and m00 or m11) then
  147. i = 2
  148. end
  149. if i == 0 then
  150. local s = math.sqrt(m00-m11-m22+1)
  151. local recip = 0.5/s
  152. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  153. elseif i == 1 then
  154. local s = math.sqrt(m11-m22-m00+1)
  155. local recip = 0.5/s
  156. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  157. elseif i == 2 then
  158. local s = math.sqrt(m22-m00-m11+1)
  159. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  160. end
  161. end
  162. end
  163.  
  164. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  165. local xs, ys, zs = x + x, y + y, z + z
  166. local wx, wy, wz = w*xs, w*ys, w*zs
  167. local xx = x*xs
  168. local xy = x*ys
  169. local xz = x*zs
  170. local yy = y*ys
  171. local yz = y*zs
  172. local zz = z*zs
  173. 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))
  174. end
  175.  
  176. function QuaternionSlerp(a, b, t)
  177. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  178. local startInterp, finishInterp;
  179. if cosTheta >= 0.0001 then
  180. if (1 - cosTheta) > 0.0001 then
  181. local theta = math.acos(cosTheta)
  182. local invSinTheta = 1/math.sin(theta)
  183. startInterp = math.sin((1-t)*theta)*invSinTheta
  184. finishInterp = math.sin(t*theta)*invSinTheta
  185. else
  186. startInterp = 1-t
  187. finishInterp = t
  188. end
  189. else
  190. if (1+cosTheta) > 0.0001 then
  191. local theta = math.acos(-cosTheta)
  192. local invSinTheta = 1/math.sin(theta)
  193. startInterp = math.sin((t-1)*theta)*invSinTheta
  194. finishInterp = math.sin(t*theta)*invSinTheta
  195. else
  196. startInterp = t-1
  197. finishInterp = t
  198. end
  199. end
  200. 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
  201. end
  202.  
  203. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  204. local fp=it("Part")
  205. fp.formFactor=formfactor
  206. fp.Parent=parent
  207. fp.Reflectance=reflectance
  208. fp.Transparency=transparency
  209. fp.CanCollide=false
  210. fp.Locked=true
  211. fp.BrickColor=brickcolor
  212. fp.Name=name
  213. fp.Size=size
  214. NoOutline(fp)
  215. fp.Material="SmoothPlastic"
  216. fp:BreakJoints()
  217. return fp
  218. end
  219.  
  220. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  221. local mesh=it(Mesh)
  222. mesh.Parent=part
  223. if Mesh=="SpecialMesh" then
  224. mesh.MeshType=meshtype
  225. if meshid~="nil" then
  226. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  227. end
  228. end
  229. mesh.Offset=offset
  230. mesh.Scale=scale
  231. return mesh
  232. end
  233.  
  234. function weld(parent,part0,part1,c0)
  235. local weld=it("Motor")
  236. weld.Parent=parent
  237. weld.Part0=part0
  238. weld.Part1=part1
  239. weld.C0=c0
  240. return weld
  241. end
  242.  
  243. function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
  244. local gui=it(GuiType)
  245. gui.Parent=parent
  246. gui.BackgroundTransparency=backtrans
  247. gui.BackgroundColor3=backcol
  248. gui.SizeConstraint="RelativeXY"
  249. gui.Position=pos
  250. gui.Size=size
  251. if GuiType=="TextLabel" then
  252. gui.Text=text
  253. gui.TextXAlignment="Center"
  254. gui.TextYAlignment="Center"
  255. gui.Font="SourceSans"
  256. gui.FontSize="Size14"
  257. gui.TextWrapped=false
  258. gui.TextStrokeTransparency=0
  259. gui.TextColor=BrickColor.new("Really black")
  260. elseif GuiType=="ImageLabel" then
  261. gui.Image="rbxassetid://"..image
  262. gui.ImageColor3=backcol
  263. end
  264. return gui
  265. end
  266.  
  267. local nr=NumberRange.new
  268. local ns=NumberSequence.new
  269. local cs=ColorSequence.new
  270. local nsk=NumberSequenceKeypoint.new
  271.  
  272. function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
  273. local fp=it("ParticleEmitter")
  274. fp.Parent=parent
  275. fp.Color=cs(col1,col2)
  276. fp.LightEmission=lightemis
  277. fp.Size=size
  278. fp.Texture=texture
  279. fp.Transparency=transparency
  280. fp.ZOffset=zoffset
  281. fp.Acceleration=accel
  282. fp.Drag=drag
  283. fp.LockedToPart=ltp
  284. fp.VelocityInheritance=velinher
  285. fp.EmissionDirection=emisdir
  286. fp.Enabled=enabled
  287. fp.Lifetime=lifetime
  288. fp.Rate=rate
  289. fp.Rotation=rotation
  290. fp.RotSpeed=rotspeed
  291. fp.Speed=speed
  292. fp.VelocitySpread=velspread
  293. return fp
  294. end
  295.  
  296. --[[local Head=part(0,Character,0,0,BrickColor.new("Really black"),"Head",vt(2,2,2)) Head.Material="Sand"
  297. local Torso=part(0,Character,0,0,BrickColor.new("Really black"),"Torso",vt(2,2,2)) Torso.Material="Sand"]]
  298. Head.Size = vt(2,2,2)
  299. Torso.Size = vt(2,2,2)
  300. Head.BrickColor = BrickColor.new("Really black")
  301. Torso.BrickColor = BrickColor.new("Really black")
  302. Head.Material = "Sand"
  303. Torso.Material = "Sand"
  304. Head.face:Destroy()
  305. workspace.CurrentCamera.CameraSubject = Torso
  306. local Back=part(0,Character,0,0,BrickColor.new("Really black"),"Back",vt(2,2,2)) Back.Material="Sand"
  307. local Lower1=part(0,Character,0,0,BrickColor.new("Really black"),"Lower1",vt(2,2,2)) Lower1.Material="Sand"
  308. local Lower2=part(0,Character,0,0,BrickColor.new("Really black"),"Lower2",vt(2,2,2)) Lower2.Material="Sand"
  309.  
  310. --local RootPart=part(0,Character,0,0,BrickColor.new("Really black"),"HumanoidRootPart",vt(2,2,1))
  311. --RootPart.CanCollide=false
  312.  
  313. local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
  314. local TMesh=mesh("SpecialMesh",Torso,"Sphere","nil",vt(0,0,0),vt(105,105,105))
  315. local BMesh=mesh("SpecialMesh",Back,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  316. local L1Mesh=mesh("SpecialMesh",Lower1,"Sphere","nil",vt(0,0,0),vt(90,90,90))
  317. local L2Mesh=mesh("SpecialMesh",Lower2,"Sphere","nil",vt(0,0,0),vt(90,90,90))
  318.  
  319. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  320. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  321. local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
  322. --Neck.C1=cf(0,-1.5,0)
  323. Neck.C1=cf(0,-80,0)
  324. --Neck.C0=clerp(Neck.C0,euler(0,0,0)*cf(0,115,0)*euler(-.3,0,0),.3)
  325. local RootJoint=weld(Torso,Torso,RootPart,cf(-1.749,-200,0))
  326. local BackJoint=weld(Torso,Torso,Back,cf(0,51,-87.75))
  327. local L1Joint=weld(Torso,Torso,Lower1,cf(0,-42,-7.75))
  328. local L2Joint=weld(Torso,Torso,Lower2,cf(0,-54.75,-16.749))
  329. --Torso.CFrame=cf(0,20,0)
  330. RootPart.Anchored=true
  331. for d=10,180,10 do
  332. for i=10,360,10 do
  333. local Hitbox1=part(0,Character,0,1,BrickColor.new("Black"),"Left Arm",vt(1,1,1)) Hitbox1.Material="Sand"
  334. local HbMesh=mesh("SpecialMesh",Hitbox1,"Sphere","nil",vt(0,0,0),vt(1,1,1))
  335. --local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60/(d/30),d,0)*euler(0,math.rad(i),0))
  336. local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60,0,0)*euler(0,math.rad(i),math.rad(d)))
  337. end
  338. end
  339.  
  340. Humanoid.Animator:Destroy()
  341. Character.Animate:Destroy()
  342.  
  343. local armor=Instance.new("Model")
  344. armor.Parent=Character
  345. armor.Name="Body"
  346. --RootPart.Parent=armor
  347.  
  348. prt1=part(3,armor,0,0,BrickColor.new("Really black"),"Part01",vt(2,2,2)) prt1.Material="Sand"
  349. prt2=part(3,armor,0,0,BrickColor.new("Really black"),"Part02",vt(2,2,2))
  350. prt3=part(3,armor,0,0,BrickColor.new("Really red"),"Part03",vt(2,2,2)) prt3.Material="Neon"
  351. prt4=part(3,armor,0,0,BrickColor.new("Really black"),"Part04",vt(2,2,2))
  352. prt5=part(3,armor,0,0,BrickColor.new("Cyan"),"Part05",vt(2,2,2)) prt5.Material="Neon"
  353. prt6=part(3,armor,0,0,BrickColor.new("Really black"),"Part06",vt(2,2,2)) prt6.Material="Sand"
  354. prt7=part(3,armor,0,0,BrickColor.new("Really black"),"Part07",vt(2,2,2)) prt7.Material="Sand"
  355. prt8=part(3,armor,0,0,BrickColor.new("Really black"),"Part08",vt(2,2,2)) prt8.Material="Sand"
  356. prt9=part(3,armor,0,0,BrickColor.new("Really black"),"Part09",vt(2,2,2)) prt9.Material="Sand"
  357. prt10=part(3,armor,0,0,BrickColor.new("Really black"),"Part10",vt(2,2,2)) prt10.Material="Sand"
  358. prt11=part(3,armor,.4,0,BrickColor.new("Really black"),"Part11",vt(2,2,2))
  359. prt12=part(3,armor,.4,0,BrickColor.new("Really red"),"Part12",vt(2,2,2))
  360. prt13=part(3,armor,.4,0,BrickColor.new("Really black"),"Part13",vt(2,2,2))
  361. prt14=part(3,armor,.4,0,BrickColor.new("Really black"),"Part14",vt(2,2,2))
  362. prt15=part(3,armor,.4,0,BrickColor.new("Really black"),"Part15",vt(2,2,2))
  363. prt16=part(3,armor,.4,0,BrickColor.new("Really black"),"Part16",vt(2,2,2))
  364. prt17=part(3,armor,.4,0,BrickColor.new("Really black"),"Part17",vt(2,2,2))
  365. prt18=part(3,armor,.4,0,BrickColor.new("Really black"),"Part18",vt(2,2,2))
  366. prt19=part(3,armor,0,0,BrickColor.new("Really black"),"Part19",vt(2,2,2)) prt19.Material="Sand" --main right arm
  367. prt20=part(3,armor,0,0,BrickColor.new("Really black"),"Part20",vt(2,2,2)) prt20.Material="Sand"
  368. prt21=part(3,armor,0,0,BrickColor.new("Really black"),"Part21",vt(2,2,2)) prt21.Material="Sand" --second right arm point
  369. prt22=part(3,armor,0,0,BrickColor.new("Really black"),"Part22",vt(2,2,2)) prt22.Material="Sand"
  370. prt23=part(3,armor,0,0,BrickColor.new("Really black"),"Part23",vt(2,2,2)) prt23.Material="Sand"
  371. prt24=part(3,armor,0,0,BrickColor.new("Really black"),"Part24",vt(2,2,2)) prt24.Material="Sand" --third right arm point
  372. prt25=part(3,armor,0,0,BrickColor.new("Really black"),"Part25",vt(2,2,2)) prt25.Material="Sand"
  373. prt26=part(3,armor,0,0,BrickColor.new("Really black"),"Part26",vt(2,2,2)) prt26.Material="Sand"
  374. prt27=part(3,armor,0,0,BrickColor.new("Really black"),"Part27",vt(2,2,2)) prt27.Material="Sand"
  375. prt28=part(3,armor,0,0,BrickColor.new("Really black"),"Part28",vt(2,2,2)) prt28.Material="Sand"
  376. prt29=part(3,armor,0,0,BrickColor.new("Really black"),"Part29",vt(2,2,2)) prt29.Material="Sand" --fourth right arm point
  377. prt30=part(3,armor,0,0,BrickColor.new("Really black"),"Part30",vt(2,2,2)) prt30.Material="Sand"
  378. prt31=part(3,armor,0,0,BrickColor.new("Really black"),"Part31",vt(2,2,2)) prt31.Material="Sand"
  379. prt32=part(3,armor,0,0,BrickColor.new("Really black"),"Part32",vt(2,2,2)) prt32.Material="Sand"
  380. prt33=part(3,armor,0,0,BrickColor.new("Really black"),"Part33",vt(2,2,2)) prt33.Material="Sand" --main left arm
  381. prt34=part(3,armor,0,0,BrickColor.new("Really black"),"Part34",vt(2,2,2)) prt34.Material="Sand"
  382. prt35=part(3,armor,0,0,BrickColor.new("Really black"),"Part35",vt(2,2,2)) prt35.Material="Sand" --second right arm point
  383. prt36=part(3,armor,0,0,BrickColor.new("Really black"),"Part36",vt(2,2,2)) prt36.Material="Sand"
  384. prt37=part(3,armor,0,0,BrickColor.new("Really black"),"Part37",vt(2,2,2)) prt37.Material="Sand"
  385. prt38=part(3,armor,0,0,BrickColor.new("Really black"),"Part38",vt(2,2,2)) prt38.Material="Sand" --third right arm point
  386. prt39=part(3,armor,0,0,BrickColor.new("Really black"),"Part39",vt(2,2,2)) prt39.Material="Sand"
  387. prt40=part(3,armor,0,0,BrickColor.new("Really black"),"Part40",vt(2,2,2)) prt40.Material="Sand"
  388. prt41=part(3,armor,0,0,BrickColor.new("Really black"),"Part41",vt(2,2,2)) prt41.Material="Sand"
  389. prt42=part(3,armor,0,0,BrickColor.new("Really black"),"Part42",vt(2,2,2)) prt42.Material="Sand"
  390. prt43=part(3,armor,0,0,BrickColor.new("Really black"),"Part43",vt(2,2,2)) prt43.Material="Sand" --fourth right arm point
  391. prt44=part(3,armor,0,0,BrickColor.new("Really black"),"Part44",vt(2,2,2)) prt44.Material="Sand"
  392. prt45=part(3,armor,0,0,BrickColor.new("Really black"),"Part45",vt(2,2,2)) prt45.Material="Sand"
  393. prt46=part(3,armor,0,0,BrickColor.new("Really black"),"Part46",vt(2,2,2)) prt46.Material="Sand"
  394.  
  395. msh1=mesh("SpecialMesh",prt1,"FileMesh","62740878",vt(0,0,0),vt(80,50,80))
  396. msh2=mesh("SpecialMesh",prt2,"Sphere","nil",vt(0,0,0),vt(5,10,10))
  397. msh3=mesh("SpecialMesh",prt3,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
  398. msh4=mesh("SpecialMesh",prt4,"Sphere","nil",vt(0,0,0),vt(5,10,10))
  399. msh5=mesh("SpecialMesh",prt5,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
  400. msh6=mesh("SpecialMesh",prt6,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  401. msh7=mesh("SpecialMesh",prt7,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  402. msh8=mesh("SpecialMesh",prt8,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  403. msh9=mesh("SpecialMesh",prt9,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  404. msh10=mesh("SpecialMesh",prt10,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  405. msh11=mesh("SpecialMesh",prt11,"FileMesh","9756362",vt(0,0,0),vt(20,90,20))
  406. msh12=mesh("SpecialMesh",prt12,"FileMesh","9756362",vt(0,0,0),vt(20,100,27.5))
  407. msh13=mesh("SpecialMesh",prt13,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  408. msh14=mesh("SpecialMesh",prt14,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  409. msh15=mesh("SpecialMesh",prt15,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  410. msh16=mesh("SpecialMesh",prt16,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  411. msh17=mesh("SpecialMesh",prt17,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  412. msh18=mesh("SpecialMesh",prt18,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
  413. msh19=mesh("SpecialMesh",prt19,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  414. msh20=mesh("SpecialMesh",prt20,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  415. msh21=mesh("CylinderMesh",prt21,"nil","nil",vt(0,0,0),vt(50,30,50))
  416. msh22=mesh("SpecialMesh",prt22,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  417. msh23=mesh("SpecialMesh",prt23,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  418. msh24=mesh("CylinderMesh",prt24,"nil","nil",vt(0,0,0),vt(65,10,65))
  419. msh25=mesh("SpecialMesh",prt25,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  420. msh26=mesh("SpecialMesh",prt26,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  421. msh27=mesh("SpecialMesh",prt27,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  422. msh28=mesh("SpecialMesh",prt28,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  423. msh29=mesh("CylinderMesh",prt29,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
  424. msh30=mesh("SpecialMesh",prt30,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
  425. msh31=mesh("SpecialMesh",prt31,"Sphere","nil",vt(0,0,0),vt(85,85,85))
  426. msh32=mesh("SpecialMesh",prt32,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
  427. msh33=mesh("SpecialMesh",prt33,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  428. msh34=mesh("SpecialMesh",prt34,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
  429. msh35=mesh("CylinderMesh",prt35,"nil","nil",vt(0,0,0),vt(50,30,50))
  430. msh36=mesh("SpecialMesh",prt36,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  431. msh37=mesh("SpecialMesh",prt37,"Sphere","nil",vt(0,0,0),vt(50,50,50))
  432. msh38=mesh("CylinderMesh",prt38,"nil","nil",vt(0,0,0),vt(65,10,65))
  433. msh39=mesh("SpecialMesh",prt39,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  434. msh40=mesh("SpecialMesh",prt40,"Sphere","nil",vt(0,0,0),vt(65,65,65))
  435. msh41=mesh("SpecialMesh",prt41,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  436. msh42=mesh("SpecialMesh",prt42,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
  437. msh43=mesh("CylinderMesh",prt43,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
  438. msh44=mesh("SpecialMesh",prt44,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
  439. msh45=mesh("SpecialMesh",prt45,"Sphere","nil",vt(0,0,0),vt(85,85,85))
  440. msh46=mesh("SpecialMesh",prt46,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
  441.  
  442. local wld1=weld(prt1,prt1,Head,euler(0,math.rad(180),0)*cf(-4.597,-46.367,0))
  443. local wld2=weld(prt1,prt2,Head,euler(0,math.rad(90+(90-65)),0)*cf(23.772,0,-50.979))
  444. local wld3=weld(prt1,prt3,Head,euler(0,math.rad(90+(90-65)),0)*cf(24.406,0,-52.339))
  445. local wld4=weld(prt1,prt4,Head,euler(0,math.rad(65),0)*cf(-23.772,0,-50.979))
  446. local wld5=weld(prt1,prt5,Head,euler(0,math.rad(65),0)*cf(-24.406,0,-52.339))
  447. local wld6=weld(prt1,prt6,Torso,euler(math.rad(63.644),0,0)*cf(0,-118.531,124.184))
  448. local wld7=weld(prt1,prt7,Torso,euler(math.rad(-90-165.516),0,0)*cf(0,-1.816,157.992))
  449. local wld8=weld(prt1,prt8,Torso,euler(math.rad(171.785),0,0)*cf(-3.372,67.659,3.285))
  450. local wld9=weld(prt1,prt9,Torso,euler(math.rad(-90-55),math.rad(-90-65),0)*cf(-32.5,66.459,35.483))
  451. local wld10=weld(prt1,prt10,Torso,euler(math.rad(-90-60),math.rad(-90-115),0)*cf(32.5,66.459,35.483))
  452. local wld11=weld(prt1,prt11,Torso,euler(0,math.rad(45),0)*cf(0,0,-104.75))
  453. local wld12=weld(prt1,prt12,Torso,euler(0,math.rad(90),0)*cf(0,0,-104.75))
  454. local wld13=weld(prt1,prt13,Torso,euler(0,math.rad(90),math.rad(-35))*cf(32.009,-22.413,-88.007))
  455. local wld14=weld(prt1,prt14,Torso,euler(0,math.rad(90),math.rad(35))*cf(-32.009,-22.413,-88.007))
  456. local wld15=weld(prt1,prt15,Torso,euler(0,math.rad(90),math.rad(90))*cf(32.075,0,-88.007))
  457. local wld16=weld(prt1,prt16,Torso,euler(0,math.rad(90),math.rad(-90))*cf(-32.075,0,-88.007))
  458. local wld17=weld(prt1,prt17,Torso,euler(0,math.rad(90),math.rad(90-35))*cf(32.009,22.413,-88.007))
  459. local wld18=weld(prt1,prt18,Torso,euler(0,math.rad(90),math.rad(-90+35))*cf(-32.009,22.413,-88.007))
  460. local wld19=weld(prt1,prt19,Torso,euler(0,0,0)*cf(94,-47.5,-2.248))
  461. local wld20=weld(prt1,prt20,prt19,euler(math.rad(90),math.rad(-90+75),0)*cf(21.417,0,79.93))
  462. local wld21=weld(prt1,prt21,prt19,euler(0,0,math.rad(90))*cf(74.25,0,0))
  463. local wld22=weld(prt1,prt22,prt21,euler(0,0,0)*cf(0,-30,0))
  464. local wld23=weld(prt1,prt23,prt21,euler(0,0,0)*cf(0,30,0))
  465. local wld24=weld(prt1,prt24,prt21,euler(0,0,0)*cf(0,90.25,0))
  466. local wld25=weld(prt1,prt25,prt24,euler(0,0,0)*cf(0,10,0))
  467. local wld26=weld(prt1,prt26,prt24,euler(0,0,0)*cf(0,-10,0))
  468. local wld27=weld(prt1,prt27,prt24,euler(0,0,math.rad(-90))*cf(88.5,0,0))
  469. local wld28=weld(prt1,prt28,prt24,euler(0,0,math.rad(90))*cf(-88.5,0,0))
  470. local wld29=weld(prt1,prt29,prt24,euler(0,0,0)*cf(0,125,0))
  471. local wld30=weld(prt1,prt30,prt29,euler(0,0,0)*cf(0,-60,0))
  472. local wld31=weld(prt1,prt31,prt29,euler(0,0,0)*cf(0,130,0))
  473. local wld32=weld(prt1,prt32,prt29,euler(0,0,0)*cf(0,130,0))
  474. local wld33=weld(prt1,prt33,Torso,euler(0,0,0)*cf(-94,-47.5,-2.248))
  475. local wld34=weld(prt1,prt34,prt33,euler(math.rad(-90),math.rad(-90-75),0)*cf(-21.417,0,79.93))
  476. local wld35=weld(prt1,prt35,prt33,euler(0,0,math.rad(90))*cf(-74.25,0,0))
  477. local wld36=weld(prt1,prt36,prt35,euler(0,0,0)*cf(0,30,0))
  478. local wld37=weld(prt1,prt37,prt35,euler(0,0,0)*cf(0,-30,0))
  479. local wld38=weld(prt1,prt38,prt35,euler(0,0,0)*cf(0,-90.25,0))
  480. local wld39=weld(prt1,prt39,prt38,euler(0,0,0)*cf(0,-10,0))
  481. local wld40=weld(prt1,prt40,prt38,euler(0,0,0)*cf(0,10,0))
  482. local wld41=weld(prt1,prt41,prt38,euler(0,0,math.rad(-90))*cf(88.5,0,0))
  483. local wld42=weld(prt1,prt42,prt38,euler(0,0,math.rad(90))*cf(-88.5,0,0))
  484. local wld43=weld(prt1,prt43,prt38,euler(0,0,0)*cf(0,-125,0))
  485. local wld44=weld(prt1,prt44,prt43,euler(0,0,0)*cf(0,60,0))
  486. local wld45=weld(prt1,prt45,prt43,euler(0,0,0)*cf(0,-130,0))
  487. local wld46=weld(prt1,prt46,prt43,euler(0,0,0)*cf(0,-130,0))
  488.  
  489. --[[wld19.C0=clerp(wld19.C0,euler(0,0,0)*cf(94,-47.5,-2.248),.3)
  490. wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0),.3)
  491. wld24.C0=clerp(wld24.C0,euler(0,0,0)*cf(0,90.25,0),.3)
  492. wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),.3)
  493.  
  494. wld33.C0=clerp(wld33.C0,euler(0,0,0)*cf(-94,-47.5,-2.248),.3)
  495. wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0),.3)
  496. wld38.C0=clerp(wld38.C0,euler(0,0,0)*cf(0,-90.25,0),.3)
  497. wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),.3)]]
  498.  
  499. local effects=it("Model",Character)
  500. effects.Name="Effects"
  501.  
  502. local refs2={}
  503. local createref=true
  504. if workspace:findFirstChild("SnowfRef",true) ~= nil then
  505. createref=false
  506. end
  507. local refs=it("Model",nil)
  508. refs.Name="SnowfRef"
  509.  
  510. --circle size 170,170,170
  511.  
  512. Ref1=part(0,refs,0,1,BrickColor.new("Black"),"Ref1",vt(210,210,210)) Ref1.CanCollide=true Ref1.Anchored=true Ref1.Shape="Ball"
  513. Ref2=part(0,refs,0,1,BrickColor.new("Black"),"Ref2",vt(119,119,119)) Ref2.CanCollide=true Ref2.Anchored=true Ref2.Shape="Ball"
  514. Ref3=part(0,refs,0,1,BrickColor.new("Black"),"Ref3",vt(130,130,130)) Ref3.CanCollide=true Ref3.Anchored=true Ref3.Shape="Ball"
  515. Ref4=part(0,refs,0,1,BrickColor.new("Black"),"Ref4",vt(130,100,100)) Ref4.CanCollide=true Ref4.Anchored=true Ref4.Shape="Cylinder"
  516. Ref5=part(0,refs,0,1,BrickColor.new("Black"),"Ref5",vt(130,130,130)) Ref5.CanCollide=true Ref5.Anchored=true Ref5.Shape="Ball"
  517. Ref6=part(0,refs,0,1,BrickColor.new("Black"),"Ref6",vt(160,105,105)) Ref6.CanCollide=true Ref6.Anchored=true Ref6.Shape="Cylinder"
  518. Ref7=part(0,refs,0,1,BrickColor.new("Black"),"Ref7",vt(170,170,170)) Ref7.CanCollide=true Ref7.Anchored=true Ref7.Shape="Ball"
  519. Ref8=part(0,refs,0,1,BrickColor.new("Black"),"Ref8",vt(130,130,130)) Ref8.CanCollide=true Ref8.Anchored=true Ref8.Shape="Ball"
  520. Ref9=part(0,refs,0,1,BrickColor.new("Black"),"Ref9",vt(130,100,100)) Ref9.CanCollide=true Ref9.Anchored=true Ref9.Shape="Cylinder"
  521. Ref10=part(0,refs,0,1,BrickColor.new("Black"),"Ref10",vt(130,130,130)) Ref10.CanCollide=true Ref10.Anchored=true Ref10.Shape="Ball"
  522. Ref11=part(0,refs,0,1,BrickColor.new("Black"),"Ref11",vt(160,105,105)) Ref11.CanCollide=true Ref11.Anchored=true Ref11.Shape="Cylinder"
  523. Ref12=part(0,refs,0,1,BrickColor.new("Black"),"Ref12",vt(170,170,170)) Ref12.CanCollide=true Ref12.Anchored=true Ref12.Shape="Ball"
  524.  
  525. if createref==false then
  526. refs=workspace.SnowfRef
  527. Ref1=refs.Ref1
  528. Ref2=refs.Ref2
  529. Ref3=refs.Ref3
  530. Ref4=refs.Ref4
  531. Ref5=refs.Ref5
  532. Ref6=refs.Ref6
  533. Ref7=refs.Ref7
  534. Ref8=refs.Ref8
  535. Ref9=refs.Ref9
  536. Ref10=refs.Ref10
  537. Ref11=refs.Ref11
  538. Ref12=refs.Ref12
  539. else
  540. --refs.Parent=workspace
  541. end
  542.  
  543. --[[R1wld=weld(Ref1,Ref1,Torso,euler(0,0,0)*cf(0,0,0))
  544. R2wld=weld(Ref2,Ref2,Head,euler(0,0,0)*cf(0,0,0))
  545. R3wld=weld(Ref3,Ref3,prt19,euler(0,0,0)*cf(0,0,0))
  546. R4wld=weld(Ref4,Ref4,prt21,euler(0,0,0)*cf(0,0,0))
  547. R5wld=weld(Ref5,Ref5,prt24,euler(0,0,0)*cf(0,0,0))
  548. R6wld=weld(Ref6,Ref6,prt29,euler(0,0,0)*cf(0,0,0))
  549. R7wld=weld(Ref7,Ref7,prt31,euler(0,0,0)*cf(0,0,0))
  550. R8wld=weld(Ref8,Ref8,prt33,euler(0,0,0)*cf(0,0,0))
  551. R9wld=weld(Ref9,Ref9,prt35,euler(0,0,0)*cf(0,0,0))
  552. R10wld=weld(Ref10,Ref10,prt38,euler(0,0,0)*cf(0,0,0))
  553. R11wld=weld(Ref11,Ref11,prt43,euler(0,0,0)*cf(0,0,0))
  554. R12wld=weld(Ref12,Ref12,prt45,euler(0,0,0)*cf(0,0,0))]]
  555. table.insert(refs2,{Ref1,Torso,cf(0,0,0)})
  556. table.insert(refs2,{Ref2,Head,cf(0,0,0)})
  557. table.insert(refs2,{Ref3,prt19,cf(0,0,0)})
  558. table.insert(refs2,{Ref4,prt21,euler(0,0,math.rad(90))})
  559. table.insert(refs2,{Ref5,prt24,cf(0,0,0)})
  560. table.insert(refs2,{Ref6,prt29,euler(0,0,math.rad(90))})
  561. table.insert(refs2,{Ref7,prt31,cf(0,0,0)})
  562. table.insert(refs2,{Ref8,prt33,cf(0,0,0)})
  563. table.insert(refs2,{Ref9,prt35,euler(0,0,math.rad(90))})
  564. table.insert(refs2,{Ref10,prt38,cf(0,0,0)})
  565. table.insert(refs2,{Ref11,prt43,euler(0,0,math.rad(90))})
  566. table.insert(refs2,{Ref12,prt45,cf(0,0,0)})
  567.  
  568. for _,c in pairs(armor:children()) do
  569. table.insert(armorparts,c)
  570. end
  571. --[[for _,c in pairs(modelzorz:children()) do
  572. table.insert(weaponparts,c)
  573. end]]
  574. for _,c in pairs(prt1:children()) do
  575. table.insert(weaponwelds,c)
  576. end
  577. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  578. --hitbox.Anchored=true
  579. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  580. hitbox2.Anchored=true
  581. local hitboxCF=cf(0,0,0)
  582.  
  583. --TehHealth=500+(#game.Players:GetChildren()*20)
  584. local CurrentHealth=math.huge
  585. Humanoid.MaxHealth=CurrentHealth
  586. Humanoid.Health=CurrentHealth
  587. local Stats=Instance.new("BoolValue")
  588. Stats.Name="Stats"
  589. Stats.Parent=Character
  590. local Alive=Instance.new("BoolValue")
  591. Alive.Name="Alive"
  592. Alive.Parent=Character
  593. Alive.Value=true
  594. local Atk=Instance.new("NumberValue")
  595. Atk.Name="Damage"
  596. Atk.Parent=Stats
  597. Atk.Value=1
  598. local Def=Instance.new("NumberValue")
  599. Def.Name="Defense"
  600. Def.Parent=Stats
  601. Def.Value=1
  602. local Mvmt=Instance.new("NumberValue")
  603. Mvmt.Name="Movement"
  604. Mvmt.Parent=Stats
  605. Mvmt.Value=1
  606. local Block=Instance.new("BoolValue")
  607. Block.Name="Block"
  608. Block.Parent=Stats
  609. Block.Value=false
  610. local Stun=Instance.new("NumberValue")
  611. Stun.Name="Stun"
  612. Stun.Parent=Stats
  613. Stun.Value=0
  614. local StunT=Instance.new("NumberValue")
  615. StunT.Name="StunThreshold"
  616. StunT.Parent=Stats
  617. StunT.Value=800
  618. local Rooted=Instance.new("BoolValue")
  619. Rooted.Name="Rooted"
  620. Rooted.Parent=Stats
  621. Rooted.Value=false
  622. local Stunned=Instance.new("BoolValue")
  623. Stunned.Name="Stunned"
  624. Stunned.Parent=Stats
  625. Stunned.Value=false
  626. local Stagger=Instance.new("BoolValue")
  627. Stagger.Name="Stagger"
  628. Stagger.Parent=Stats
  629. Stagger.Value=false
  630. local StaggerHit=Instance.new("BoolValue")
  631. StaggerHit.Name="StaggerHit"
  632. StaggerHit.Parent=Stats
  633. StaggerHit.Value=false
  634. local Decrease=Instance.new("BoolValue")
  635. Decrease.Name="Decrease"
  636. Decrease.Parent=Stats
  637. Decrease.Value=false
  638. local mana=Instance.new("NumberValue")
  639. mana.Name="Mana"
  640. mana.Parent=Stats
  641. mana.Value=0
  642. local boss=Instance.new("BoolValue")
  643. boss.Name="Boss"
  644. boss.Parent=Stats
  645. boss.Value=true
  646. local ungrab=Instance.new("BoolValue")
  647. ungrab.Name="Ungrabbable"
  648. ungrab.Parent=Stats
  649. ungrab.Value=true
  650.  
  651. local Cryst1=it("Model",nil)
  652. Cryst1.Name="Crystal"
  653. local C1Head=part(0,Cryst1,0,0,BrickColor.new("Really red"),"Head",vt(5,10,5)) C1Head.Anchored=true
  654. local C1msh=mesh("SpecialMesh",C1Head,"FileMesh","9756362",vt(0,0,0),vt(10,20,10))
  655. local C1Torso=part(0,Cryst1,0,.5,BrickColor.new("Really red"),"Torso",vt()) C1Torso.Anchored=true
  656. local C1msh=mesh("SpecialMesh",C1Torso,"FileMesh","9756362",vt(0,0,0),vt(-20,-50,-20))
  657. local C1S=Stats:Clone() C1S.Parent=Cryst1
  658. local Cryst2=it("Model",nil) Cryst2.Name="Crystal"
  659. local C2Head=C1Head:Clone() C2Head.Parent=Cryst2
  660. local C2Torso=C1Torso:Clone() C2Torso.Parent=Cryst2
  661. local C2S=Stats:Clone() C2S.Parent=Cryst2
  662. local Cryst3=it("Model",nil) Cryst3.Name="Crystal"
  663. local C3Head=C1Head:Clone() C3Head.Parent=Cryst3
  664. local C3Torso=C1Torso:Clone() C3Torso.Parent=Cryst3
  665. local C3S=Stats:Clone() C3S.Parent=Cryst3
  666. local Cryst4=it("Model",nil) Cryst4.Name="Crystal"
  667. local C4Head=C1Head:Clone() C4Head.Parent=Cryst4
  668. local C4Torso=C1Torso:Clone() C4Torso.Parent=Cryst4
  669. local C4S=Stats:Clone() C4S.Parent=Cryst4
  670. local C1Neck=weld(C1Torso,C1Torso,C1Head,euler(0,0,0)*cf(0,0,0))
  671. local C2Neck=weld(C2Torso,C2Torso,C2Head,euler(0,0,0)*cf(0,0,0))
  672. local C3Neck=weld(C3Torso,C3Torso,C3Head,euler(0,0,0)*cf(0,0,0))
  673. local C4Neck=weld(C4Torso,C4Torso,C4Head,euler(0,0,0)*cf(0,0,0))
  674. local C1Hum=it("Humanoid")
  675. local C2Hum=it("Humanoid")
  676. local C3Hum=it("Humanoid")
  677. local C4Hum=it("Humanoid")
  678. local C1a=false
  679. local C2a=false
  680. local C3a=false
  681. local C4a=false
  682.  
  683. so = function(id,par,vol,pit)
  684. local sou = Instance.new("Sound",par or workspace)
  685. sou.Volume=vol
  686. sou.Pitch=pit or 1
  687. sou.SoundId="http://www.roblox.com/asset/?id="..id
  688. --swait()
  689. sou:play()
  690. game:GetService("Debris"):AddItem(sou,6)
  691. end
  692.  
  693. local function CFrameFromTopBack(at, top, back)
  694. local right = top:Cross(back)
  695. return CFrame.new(at.x, at.y, at.z,
  696. right.x, top.x, back.x,
  697. right.y, top.y, back.y,
  698. right.z, top.z, back.z)
  699. end
  700.  
  701. function Triangle(a, b, c)
  702. local edg1 = (c-a):Dot((b-a).unit)
  703. local edg2 = (a-b):Dot((c-b).unit)
  704. local edg3 = (b-c):Dot((a-c).unit)
  705. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  706. a, b, c = a, b, c
  707. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  708. a, b, c = b, c, a
  709. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  710. a, b, c = c, a, b
  711. else
  712. assert(false, "unreachable")
  713. end
  714.  
  715. local len1 = (c-a):Dot((b-a).unit)
  716. local len2 = (b-a).magnitude - len1
  717. local width = (a + (b-a).unit*len1 - c).magnitude
  718.  
  719. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  720.  
  721. local list = {}
  722.  
  723. if len1 > 0.01 then
  724. local w1 = Instance.new('WedgePart', m)
  725. w1.Name = "Triangle"
  726. game:GetService("Debris"):AddItem(w1,5)
  727. w1.Material = "SmoothPlastic"
  728. w1.FormFactor = 'Custom'
  729. w1.BrickColor = BrickColor.new("Really red")
  730. w1.Transparency = 0
  731. w1.Reflectance = 0
  732. w1.Material = "SmoothPlastic"
  733. w1.CanCollide = false
  734. NoOutline(w1)
  735. local sz = Vector3.new(0.2, width, len1)
  736. w1.Size = sz
  737. local sp = Instance.new("SpecialMesh",w1)
  738. sp.MeshType = "Wedge"
  739. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  740. w1:BreakJoints()
  741. w1.Anchored = true
  742. w1.Parent = workspace
  743. w1.Transparency = 0.7
  744. table.insert(Effects,{w1,"Disappear",.05})
  745. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  746. table.insert(list,w1)
  747. end
  748.  
  749. if len2 > 0.01 then
  750. local w2 = Instance.new('WedgePart', m)
  751. w2.Name = "Triangle"
  752. game:GetService("Debris"):AddItem(w2,5)
  753. w2.Material = "SmoothPlastic"
  754. w2.FormFactor = 'Custom'
  755. w2.BrickColor = BrickColor.new("Really red")
  756. w2.Transparency = 0
  757. w2.Reflectance = 0
  758. w2.Material = "SmoothPlastic"
  759. w2.CanCollide = false
  760. NoOutline(w2)
  761. local sz = Vector3.new(0.2, width, len2)
  762. w2.Size = sz
  763. local sp = Instance.new("SpecialMesh",w2)
  764. sp.MeshType = "Wedge"
  765. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  766. w2:BreakJoints()
  767. w2.Anchored = true
  768. w2.Parent = workspace
  769. w2.Transparency = 0.7
  770. table.insert(Effects,{w2,"Disappear",.05})
  771. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  772. table.insert(list,w2)
  773. end
  774. return unpack(list)
  775. end
  776.  
  777. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  778. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  779. prt.Anchored=true
  780. prt.CFrame=cframe
  781. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  782. game:GetService("Debris"):AddItem(prt,10)
  783. if Type==1 or Type==nil then
  784. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  785. elseif Type==2 then
  786. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  787. end
  788. end
  789.  
  790. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  791. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  792. prt.Anchored=true
  793. prt.CFrame=cframe
  794. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  795. game:GetService("Debris"):AddItem(prt,10)
  796. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  797. end
  798.  
  799. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
  800. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  801. prt.Anchored=true
  802. prt.CFrame=cframe
  803. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  804. game:GetService("Debris"):AddItem(prt,10)
  805. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
  806. end
  807.  
  808. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  809. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  810. prt.Anchored=true
  811. prt.CFrame=cframe*cf(x2,y2,z2)
  812. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  813. game:GetService("Debris"):AddItem(prt,10)
  814. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  815. end
  816.  
  817. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  818. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  819. prt.Anchored=true
  820. prt.CFrame=cframe
  821. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  822. game:GetService("Debris"):AddItem(prt,10)
  823. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  824. end
  825.  
  826. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  827. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  828. prt.Anchored=true
  829. prt.CFrame=cframe
  830. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  831. game:GetService("Debris"):AddItem(prt,10)
  832. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  833. end
  834.  
  835. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  836. local prt=part(3,effects,0,1,brickcolor,"Effect",vt())
  837. prt.Anchored=true
  838. prt.CFrame=cframe
  839. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  840. game:GetService("Debris"):AddItem(prt,10)
  841. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  842. end
  843.  
  844. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  845. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  846. prt.Anchored=true
  847. prt.CFrame=cframe
  848. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  849. game:GetService("Debris"):AddItem(prt,10)
  850. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  851. end
  852.  
  853. function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  854. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  855. prt.Anchored=true
  856. prt.CFrame=cframe
  857. local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  858. game:GetService("Debris"):AddItem(prt,10)
  859. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,0})
  860. end
  861.  
  862. function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  863. local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
  864. prt.Anchored=true
  865. prt.CFrame=cframe
  866. local msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
  867. game:GetService("Debris"):AddItem(prt,10)
  868. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  869. end
  870.  
  871. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  872. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  873. prt.Anchored=true
  874. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  875. game:GetService("Debris"):AddItem(prt,10)
  876. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  877. local num=math.random(10,50)/1000
  878. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  879. --table.insert(Effects,{prt,"Shatter",.02,msh})
  880. --[[
  881. 1=prt
  882. 2=Shatter
  883. 3=.02
  884. 4=Thing[1].CFrame
  885. 5=randnum
  886. 6=Numbb
  887. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  888. CF=Part.CFrame
  889. Numbb=0
  890. randnumb=math.random()-math.random()
  891. for i=0,1,0.05 do
  892. wait()
  893. CF=CF*cf(0,1,0)
  894. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  895. Part.CFrame=CF*euler(Numbb,0,0)
  896. Part.Transparency=i
  897. Numbb=Numbb+randnumb
  898. end
  899. Part.Parent=nil
  900. end),prt,CF,Numbb,randnumb)]]
  901. end
  902.  
  903. function BreakEffect2(brickcolor,cframe,x1,y1,z1)
  904. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  905. prt.Anchored=true
  906. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  907. game:GetService("Debris"):AddItem(prt,10)
  908. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  909. local num=math.random(10,50)/1000
  910. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(300,1000)/100})
  911. end
  912.  
  913.  
  914. --Break effect. Credits to whoever made it
  915. local MaxPieces = 10
  916. local Explode = true
  917. local Connection = nil
  918. function IsWhole(Number)
  919. return math.ceil(Number) == Number
  920. end
  921. function ChangeAxis(Vector,Axis,Value)
  922. if(Axis == "x")then
  923. return Vector3.new(Value,Vector.y,Vector.z)
  924. end
  925. if(Axis == "y")then
  926. return Vector3.new(Vector.x,Value,Vector.z)
  927. end
  928. if(Axis == "z")then
  929. return Vector3.new(Vector.x,Vector.y,Value)
  930. end
  931. end
  932. function Break(mouse)
  933. local Targ = mouse
  934. local oldParent = mouse.Parent
  935. local FF = 1
  936. if(Targ.formFactor == Enum.FormFactor.Symmetric)then
  937. FF = 1
  938. end
  939. if(Targ.formFactor == Enum.FormFactor.Brick)then
  940. FF = 1.2
  941. end
  942. if(Targ.formFactor == Enum.FormFactor.Plate)then
  943. FF = 0.4
  944. end
  945. local New = Targ:Clone()
  946. local Rotation = Targ.CFrame - Targ.CFrame.p
  947. local SizeFactorX = 1
  948. local SizeFactorY = FF
  949. local SizeFactorZ = 1
  950. local Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
  951. while Extra > 1 do
  952. SizeFactorX = SizeFactorX * 2
  953. SizeFactorY = SizeFactorY * 2
  954. SizeFactorZ = SizeFactorZ * 2
  955. if(SizeFactorX > Targ.Size.x)then
  956. SizeFactorX = Targ.Size.x
  957. end
  958. if(SizeFactorY > Targ.Size.y)then
  959. SizeFactorY = Targ.Size.y
  960. end
  961. if(SizeFactorZ > Targ.Size.z)then
  962. SizeFactorZ = Targ.Size.z
  963. end
  964. Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
  965. end
  966. 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)))
  967. New.Size = Vector3.new(SizeFactorX,SizeFactorY,SizeFactorZ)
  968. New.Anchored = false
  969. local OverShootZ = (Targ.Size.z/SizeFactorZ) - math.floor(Targ.Size.z/SizeFactorZ)
  970. local OverShootX = (Targ.Size.x/SizeFactorX) - math.floor(Targ.Size.x/SizeFactorX)
  971. local OverShootY = (Targ.Size.y/SizeFactorY) - math.floor(Targ.Size.y/SizeFactorY)
  972. ----print("SizeFactor",SizeFactorX,SizeFactorY,SizeFactorZ)
  973. ----print("OverShoot",OverShootX,OverShootY,OverShootZ)
  974. for z = 1,math.ceil(Targ.Size.z/SizeFactorZ) do
  975. if(OverShootZ > 0)then
  976. if(z == math.ceil(Targ.Size.z/SizeFactorZ))then
  977. z = z - ((1 - OverShootZ) / 2)
  978. New.Size = ChangeAxis(New.Size,"z",OverShootZ * SizeFactorZ)
  979. else
  980. New.Size = ChangeAxis(New.Size,"z",SizeFactorZ)
  981. end
  982. end
  983. for y = 1,math.ceil(Targ.Size.y/SizeFactorY) do
  984. if(OverShootY > 0)then
  985. if(y == math.ceil(Targ.Size.y/SizeFactorY))then
  986. y = y - ((1 - OverShootY) / 2)
  987. New.Size = ChangeAxis(New.Size,"y",OverShootY * SizeFactorY)
  988. else
  989. New.Size = ChangeAxis(New.Size,"y",SizeFactorY)
  990. end
  991. end
  992. for x = 1,math.ceil(Targ.Size.x/SizeFactorX) do
  993. if(OverShootX > 0)then
  994. if(x == math.ceil(Targ.Size.x/SizeFactorX))then
  995. x = x - ((1 - OverShootX) / 2)
  996. New.Size = ChangeAxis(New.Size,"x",OverShootX * SizeFactorX)
  997. else
  998. New.Size = ChangeAxis(New.Size,"x",SizeFactorX)
  999. end
  1000. end
  1001. local N = New:Clone()
  1002. 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
  1003. --N.Parent = oldParent
  1004. N.Parent = workspace
  1005. N.CanCollide = false
  1006. N.Velocity = vt(math.random(-300,300),math.random(-20,40),math.random(-300,300))
  1007. N.RotVelocity = vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1008. game:GetService("Debris"):AddItem(N,5)
  1009. end
  1010. end
  1011. end
  1012. Targ:Remove()
  1013. end
  1014.  
  1015.  
  1016.  
  1017. local BodGy=Instance.new("BodyGyro")
  1018. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  1019. BodGy.P=2000
  1020. BodGy.D=100
  1021. BodGy.Name="SiegmundGyro"
  1022. CF=RootPart.CFrame
  1023. BodGy.Parent=RootPart
  1024. BodGy.cframe=CF
  1025.  
  1026. sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
  1027. transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
  1028. 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)
  1029. sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
  1030. transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
  1031. 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)
  1032. sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
  1033. transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
  1034.  
  1035. --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
  1036. RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
  1037. RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
  1038. RW.C1=cf(0,1.5,0)*euler(0,0,0)
  1039. LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
  1040. LW.C1=cf(0,1.5,0)*euler(0,0,0)
  1041. RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
  1042. RH.C1=cf(0,3,0)*euler(0,0,0)
  1043. LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
  1044. LH.C1=cf(0,3,0)*euler(0,0,0)]]
  1045. -- idle pose
  1046. --[[Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1047. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
  1048. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1049. 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)
  1050. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),1)
  1051. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1052.  
  1053. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1054. 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)
  1055. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),1)
  1056. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)]]
  1057.  
  1058. --[[ old idle
  1059. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
  1060. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1061. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
  1062. wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),1)
  1063. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1064.  
  1065. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1066. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
  1067. wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
  1068. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
  1069. ]]
  1070.  
  1071. --[[RootJoint.C0=clerp(RootJoint.C0,cf(-1.749,-200,0),1)
  1072. wld19.C0=clerp(wld19.C0,euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1073. wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
  1074. wld24.C0=clerp(wld24.C0,euler(1.4,-.2,0)*cf(0,90.25,0),1)
  1075. wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),1)
  1076.  
  1077. wld33.C0=clerp(wld33.C0,euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1078. wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
  1079. wld38.C0=clerp(wld38.C0,euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
  1080. wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),1)]]
  1081. msh3.Scale=vt(4,0,8.5)
  1082. msh5.Scale=vt(4,0,8.5)
  1083. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1084. RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,.1)*cf(-1.749,-60,-30),1)
  1085. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
  1086. 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)
  1087. wld24.C0=wld24.C0:lerp(euler(1.4,.5,0)*cf(0,90.25,0),1)
  1088. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
  1089.  
  1090. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
  1091. 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)
  1092. wld38.C0=wld38.C0:lerp(euler(-.6,1,0)*cf(0,-90.25,0),1)
  1093. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
  1094. --[[local Ice1=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(57.75,136.17,57.77))
  1095. Ice1.Material="Ice"
  1096. Ice1.Anchored=true
  1097. Ice1.CFrame=workspace.BossSpawn.CFrame*cf(144.341,286.773,15.162)
  1098. local Ice2=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(89.99,35.13,77.57)) Ice2.Material="Ice" Ice2.Anchored=true
  1099. Ice2.CFrame=workspace.BossSpawn.CFrame*cf(-53.887,-10.726,-155.145)
  1100. local Ice3=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(164.4,63.01,89.76)) Ice3.Material="Ice" Ice3.Anchored=true
  1101. Ice3.CFrame=workspace.BossSpawn.CFrame*cf(-107.848,12.137,-93.992)
  1102. local Ice4=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(25.2,179.13,34.57))
  1103. Ice4.Material="Ice"
  1104. Ice4.Anchored=true
  1105. Ice4.CFrame=workspace.BossSpawn.CFrame*cf(319.875,454.041,179.418)]]
  1106. --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(144.341,286.773,15.162))
  1107. --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(15.162,286.773))
  1108. --local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
  1109.  
  1110. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  1111. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  1112. --local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
  1113. for i=0,1,0.05 do
  1114. swait()
  1115. msh3.Scale=vt(4,1+7.5*i,8.5)
  1116. msh5.Scale=vt(4,1+7.5*i,8.5)
  1117. end
  1118. msh3.Scale=vt(4,8.5,8.5)
  1119. msh5.Scale=vt(4,8.5,8.5)
  1120. stunanim=true
  1121. attack=true
  1122. stunanim=false
  1123. attack=false
  1124. --[[for i=0,1,0.02 do
  1125. swait()
  1126. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.1)
  1127. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.1)
  1128. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
  1129. 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)
  1130. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
  1131. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  1132.  
  1133. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
  1134. 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)
  1135. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
  1136. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)
  1137. end]]
  1138. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
  1139. --print("START BOSS BATTLE")
  1140.  
  1141. function TriIceShards()
  1142. --for i=1,math.random(1,4) do
  1143. local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1144. local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1145. local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1146. local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1147. local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
  1148. i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1149. icepart1.CFrame=dacf
  1150. local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
  1151. i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1152. icepart2.CFrame=dacf2
  1153. local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
  1154. i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1155. icepart3.CFrame=dacf3
  1156. local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1157. local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
  1158. local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1159. local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
  1160. local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1161. local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
  1162. for i=0,1,0.1 do
  1163. swait()
  1164. icepart1.CFrame=dacf
  1165. icepart2.CFrame=dacf2
  1166. icepart3.CFrame=dacf3
  1167. dacf=dacf*cf(0,math.random(500,1000)/10,0)
  1168. dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
  1169. dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
  1170. end
  1171. local target1,distance1=findRandomTorso(icepart1.Position)
  1172. local target2,distance2=findRandomTorso(icepart2.Position)
  1173. local target3,distance3=findRandomTorso(icepart3.Position)
  1174. MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
  1175. MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
  1176. MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
  1177. if target1~=nil then
  1178. so("333475957",icepart1,1,.9)
  1179. 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))
  1180. table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
  1181. else
  1182. icepart1.Parent=nil
  1183. end
  1184. if target2~=nil then
  1185. so("333475957",icepart2,1,.9)
  1186. 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))
  1187. table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
  1188. else
  1189. icepart2.Parent=nil
  1190. end
  1191. if target3~=nil then
  1192. so("333475957",icepart3,1,.9)
  1193. 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))
  1194. table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
  1195. else
  1196. icepart3.Parent=nil
  1197. end
  1198. --end
  1199. end
  1200.  
  1201. function TriIceShards2()
  1202. --for i=1,math.random(1,4) do
  1203. local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1204. --[[eul1=math.random(0,800)/1000 eul2=math.random(400,1200)/1000
  1205. eul3=math.random(200,1000)/1000
  1206. eul4=math.random(0,800)/1000 eul5=math.random(400,1200)/1000
  1207. local dacf=Torso.CFrame*euler(-eul1,0,eul2)
  1208. local dacf2=Torso.CFrame*euler(-eul3,0,0)
  1209. local dacf3=Torso.CFrame*euler(-eul4,0,-eul5)]]
  1210. local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1211. local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1212. local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
  1213. local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
  1214. i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1215. icepart1.CFrame=dacf
  1216. local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
  1217. i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1218. icepart2.CFrame=dacf2
  1219. local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
  1220. i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
  1221. icepart3.CFrame=dacf3
  1222. local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1223. local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
  1224. local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1225. local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
  1226. local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1227. local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
  1228. for i=0,1,0.1 do
  1229. swait()
  1230. icepart1.CFrame=dacf
  1231. icepart2.CFrame=dacf2
  1232. icepart3.CFrame=dacf3
  1233. dacf=dacf*cf(0,math.random(500,1000)/10,0)
  1234. dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
  1235. dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
  1236. end
  1237. local target1,distance1=findNearestTorso(Head.Position)
  1238. local target2,distance2=findNearestTorso(Head.Position)
  1239. local target3,distance3=findNearestTorso(Head.Position)
  1240. MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
  1241. MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
  1242. MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
  1243. if target1~=nil then
  1244. so("333475957",icepart1,1,.9)
  1245. 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))
  1246. table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
  1247. else
  1248. icepart1.Parent=nil
  1249. end
  1250. if target2~=nil then
  1251. so("333475957",icepart2,1,.9)
  1252. 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))
  1253. table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
  1254. else
  1255. icepart2.Parent=nil
  1256. end
  1257. if target3~=nil then
  1258. so("333475957",icepart3,1,.9)
  1259. 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))
  1260. table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
  1261. else
  1262. icepart3.Parent=nil
  1263. end
  1264. --end
  1265. end
  1266.  
  1267. function TriOrbs()
  1268. --for i=1,math.random(1,4) do
  1269. local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1270. local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1271. local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1272. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1273. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1274. icepart1.CFrame=dacf
  1275. local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
  1276. i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1277. icepart2.CFrame=dacf2
  1278. local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
  1279. i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1280. icepart3.CFrame=dacf3
  1281. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1282. local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1283. local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1284. for i=0,1,0.1 do
  1285. swait()
  1286. icepart1.CFrame=dacf
  1287. icepart2.CFrame=dacf2
  1288. icepart3.CFrame=dacf3
  1289. dacf=dacf*cf(0,math.random(400,800)/10,0)
  1290. dacf2=dacf2*cf(0,math.random(400,800)/10,0)
  1291. dacf3=dacf3*cf(0,math.random(400,800)/10,0)
  1292. end
  1293. local target1,distance1=findRandomTorso(icepart1.Position)
  1294. local target2,distance2=findRandomTorso(icepart2.Position)
  1295. local target3,distance3=findRandomTorso(icepart3.Position)
  1296. local test1,dist1=findNearestTorso(Head.Position)
  1297. local pos1,pos2,pos3=nil,nil,nil
  1298. local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
  1299. local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
  1300. local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
  1301. if target1~=nil then
  1302. pos1=target1.Position
  1303. refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1304. end
  1305. if target2~=nil then
  1306. pos2=target2.Position
  1307. refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1308. end
  1309. if target3~=nil then
  1310. pos3=target3.Position
  1311. refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1312. end
  1313. local move=40
  1314. for i=0,1,0.1 do
  1315. swait()
  1316. move=40-40*i
  1317. if target1~=nil then
  1318. refpart1.CFrame=cf(refpart1.Position,target1.Position)
  1319. 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)
  1320. icepart1.CFrame=dacf
  1321. dacf=dacf*cf(0,move,0)
  1322. end
  1323. if target2~=nil then
  1324. refpart2.CFrame=cf(refpart2.Position,target2.Position)
  1325. 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)
  1326. icepart2.CFrame=dacf2
  1327. dacf2=dacf2*cf(0,move,0)
  1328. end
  1329. if target3~=nil then
  1330. refpart3.CFrame=cf(refpart3.Position,target3.Position)
  1331. 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)
  1332. icepart3.CFrame=dacf3
  1333. dacf3=dacf3*cf(0,move,0)
  1334. end
  1335. end
  1336. local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
  1337. local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
  1338. local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
  1339. local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
  1340. local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
  1341. local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
  1342. local ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1343. ref.Anchored=true
  1344. ref.CFrame=cf(0,0,0)
  1345. game:GetService("Debris"):AddItem(ref,1)
  1346. local ref1=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1347. ref1.Anchored=true
  1348. ref1.CFrame=cf(0,0,0)
  1349. game:GetService("Debris"):AddItem(ref1,5)
  1350. local ice1=0
  1351. local ref2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1352. ref2.Anchored=true
  1353. ref2.CFrame=cf(0,0,0)
  1354. game:GetService("Debris"):AddItem(ref2,5)
  1355. local ice2=2
  1356. local ref3=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1357. ref3.Anchored=true
  1358. ref3.CFrame=cf(0,0,0)
  1359. game:GetService("Debris"):AddItem(ref3,5)
  1360. local ice3=4
  1361. for i=0,3,0.05 do
  1362. swait()
  1363. ice1=ice1+1
  1364. ice2=ice2+1
  1365. ice3=ice3+1
  1366. if target1~=nil then
  1367. if i>1 then
  1368. refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
  1369. end
  1370. local cfnew=cf(icepart1.Position,refpart1.Position)
  1371. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  1372. local mag1=(icepart1.Position-pos1).magnitude
  1373. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  1374. lmsh1.Scale=vt(10,mag1*5,10)
  1375. MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
  1376. ref.CFrame=cf(pos1)
  1377. MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1378. ref1.CFrame=cf(ref.Position)
  1379. if ice1%2==0 then
  1380. so("333476017",ref1,.3,1.4)
  1381. end
  1382. end
  1383. if target2~=nil then
  1384. if i>1 then
  1385. refpart2.CFrame=refpart2.CFrame*cf(0,0,-1.5)
  1386. end
  1387. local cfnew=cf(icepart2.Position,refpart2.Position)
  1388. local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
  1389. local mag2=(icepart2.Position-pos2).magnitude
  1390. laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
  1391. lmsh2.Scale=vt(10,mag2*5,10)
  1392. MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
  1393. ref.CFrame=cf(pos2)
  1394. MagniDamage(ref,2000000000,2000000000,2000000000,2000000000,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1395. ref2.CFrame=cf(ref.Position)
  1396. if ice2%2==0 then
  1397. so("333476017",ref2,.3,1.4)
  1398. end
  1399. end
  1400. if target3~=nil then
  1401. if i>1 then
  1402. refpart3.CFrame=refpart3.CFrame*cf(0,0,-1.5)
  1403. end
  1404. local cfnew=cf(icepart3.Position,refpart3.Position)
  1405. local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
  1406. local mag3=(icepart3.Position-pos3).magnitude
  1407. laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
  1408. lmsh3.Scale=vt(10,mag3*5,10)
  1409. MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
  1410. ref.CFrame=cf(pos3)
  1411. MagniDamage(ref,2000000000,2000000000,2000000000,2000000000,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1412. ref3.CFrame=cf(ref.Position)
  1413. if ice3%2==0 then
  1414. so("333476017",ref3,.3,1.4)
  1415. end
  1416. end
  1417. end
  1418. if target1~=nil then
  1419. local pos1=laser1.CFrame
  1420. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  1421. MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
  1422. end
  1423. if target2~=nil then
  1424. local pos2=laser2.CFrame
  1425. local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
  1426. MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
  1427. end
  1428. if target3~=nil then
  1429. local pos3=laser3.CFrame
  1430. local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
  1431. MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
  1432. end
  1433. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  1434. MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
  1435. MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
  1436. icepart1.Parent=nil
  1437. icepart2.Parent=nil
  1438. icepart3.Parent=nil
  1439. refpart1.Parent=nil
  1440. refpart2.Parent=nil
  1441. refpart3.Parent=nil
  1442. laser1.Parent=nil
  1443. laser2.Parent=nil
  1444. laser3.Parent=nil
  1445. ref.Parent=nil
  1446. end
  1447.  
  1448. function TriOrbs2()
  1449. --for i=1,math.random(1,4) do
  1450. local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1451. local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1452. local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1453. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1454. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1455. icepart1.CFrame=dacf
  1456. local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
  1457. i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1458. icepart2.CFrame=dacf2
  1459. local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
  1460. i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1461. icepart3.CFrame=dacf3
  1462. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1463. local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
  1464. local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
  1465. for i=0,1,0.1 do
  1466. swait()
  1467. icepart1.CFrame=dacf
  1468. icepart2.CFrame=dacf2
  1469. icepart3.CFrame=dacf3
  1470. dacf=dacf*cf(0,math.random(400,800)/10,0)
  1471. dacf2=dacf2*cf(0,math.random(400,800)/10,0)
  1472. dacf3=dacf3*cf(0,math.random(400,800)/10,0)
  1473. end
  1474. local target1,distance1=findNearestTorso(Head.Position)
  1475. local target2,distance2=findNearestTorso(Head.Position)
  1476. local target3,distance3=findNearestTorso(Head.Position)
  1477. local test1,dist1=findNearestTorso(Head.Position)
  1478. local pos1,pos2,pos3=nil,nil,nil
  1479. local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
  1480. local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
  1481. local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
  1482. if target1~=nil then
  1483. pos1=target1.Position
  1484. refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1485. end
  1486. if target2~=nil then
  1487. pos2=target2.Position
  1488. refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1489. end
  1490. if target3~=nil then
  1491. pos3=target3.Position
  1492. refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
  1493. end
  1494. local move=40
  1495. for i=0,1,0.1 do
  1496. swait()
  1497. move=40-40*i
  1498. if target1~=nil then
  1499. refpart1.CFrame=cf(refpart1.Position,target1.Position)
  1500. 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)
  1501. icepart1.CFrame=dacf
  1502. dacf=dacf*cf(0,move,0)
  1503. end
  1504. if target2~=nil then
  1505. refpart2.CFrame=cf(refpart2.Position,target2.Position)
  1506. 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)
  1507. icepart2.CFrame=dacf2
  1508. dacf2=dacf2*cf(0,move,0)
  1509. end
  1510. if target3~=nil then
  1511. refpart3.CFrame=cf(refpart3.Position,target3.Position)
  1512. 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)
  1513. icepart3.CFrame=dacf3
  1514. dacf3=dacf3*cf(0,move,0)
  1515. end
  1516. end
  1517. local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
  1518. local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
  1519. local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
  1520. local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
  1521. local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
  1522. local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
  1523. local ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1524. ref.Anchored=true
  1525. ref.CFrame=cf(0,0,0)
  1526. game:GetService("Debris"):AddItem(ref,1)
  1527. local ref1=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1528. ref1.Anchored=true
  1529. ref1.CFrame=cf(0,0,0)
  1530. game:GetService("Debris"):AddItem(ref1,5)
  1531. local ice1=0
  1532. local ref2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1533. ref2.Anchored=true
  1534. ref2.CFrame=cf(0,0,0)
  1535. game:GetService("Debris"):AddItem(ref2,5)
  1536. local ice2=2
  1537. local ref3=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1538. ref3.Anchored=true
  1539. ref3.CFrame=cf(0,0,0)
  1540. game:GetService("Debris"):AddItem(ref3,5)
  1541. local ice3=4
  1542. for i=0,3,0.1 do
  1543. swait()
  1544. ice1=ice1+1
  1545. ice2=ice2+1
  1546. ice3=ice3+1
  1547. if target1~=nil then
  1548. if i>1 then
  1549. refpart1.CFrame=refpart1.CFrame*cf(0,0,-2)
  1550. end
  1551. local cfnew=cf(icepart1.Position,refpart1.Position)
  1552. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  1553. local mag1=(icepart1.Position-pos1).magnitude
  1554. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  1555. lmsh1.Scale=vt(10,mag1*5,10)
  1556. MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
  1557. ref.CFrame=cf(pos1)
  1558. MagniDamage(ref,2000000000,2000000000,2000000000,2000000000,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1559. ref1.CFrame=cf(ref.Position)
  1560. if ice1%2==0 then
  1561. so("333476017",ref1,.3,1.4)
  1562. end
  1563. end
  1564. if target2~=nil then
  1565. if i>1 then
  1566. refpart2.CFrame=refpart2.CFrame*cf(0,0,-2)
  1567. end
  1568. local cfnew=cf(icepart2.Position,refpart2.Position)
  1569. local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
  1570. local mag2=(icepart2.Position-pos2).magnitude
  1571. laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
  1572. lmsh2.Scale=vt(10,mag2*5,10)
  1573. MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
  1574. ref.CFrame=cf(pos2)
  1575. MagniDamage(ref,2000000000,2000000000,2000000000,2000000000,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1576. ref2.CFrame=cf(ref.Position)
  1577. if ice2%2==0 then
  1578. so("333476017",ref2,.3,1.4)
  1579. end
  1580. end
  1581. if target3~=nil then
  1582. if i>1 then
  1583. refpart3.CFrame=refpart3.CFrame*cf(0,0,-2)
  1584. end
  1585. local cfnew=cf(icepart3.Position,refpart3.Position)
  1586. local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
  1587. local mag3=(icepart3.Position-pos3).magnitude
  1588. laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
  1589. lmsh3.Scale=vt(10,mag3*5,10)
  1590. MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
  1591. ref.CFrame=cf(pos3)
  1592. MagniDamage(ref,2000000000,2000000000,2000000000,2000000000,"Normal",RootPart,.2,1,math.random(2000000000,2000000000),nil,nil,true)
  1593. ref3.CFrame=cf(ref.Position)
  1594. if ice3%2==0 then
  1595. so("333476017",ref3,.3,1.4)
  1596. end
  1597. end
  1598. end
  1599. if target1~=nil then
  1600. local pos1=laser1.CFrame
  1601. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  1602. MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
  1603. end
  1604. if target2~=nil then
  1605. local pos2=laser2.CFrame
  1606. local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
  1607. MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
  1608. end
  1609. if target3~=nil then
  1610. local pos3=laser3.CFrame
  1611. local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
  1612. MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
  1613. end
  1614. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  1615. MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
  1616. MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
  1617. icepart1.Parent=nil
  1618. icepart2.Parent=nil
  1619. icepart3.Parent=nil
  1620. refpart1.Parent=nil
  1621. refpart2.Parent=nil
  1622. refpart3.Parent=nil
  1623. laser1.Parent=nil
  1624. laser2.Parent=nil
  1625. laser3.Parent=nil
  1626. ref.Parent=nil
  1627. end
  1628.  
  1629. function IceMortar()
  1630. for i=1,math.random(2,3) do
  1631. local dacf=Torso.CFrame*euler(-1.57+math.random(40,80)/100,0,math.random(-80,80)/100)
  1632. local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
  1633. i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(200,200,200))
  1634. icepart1.CFrame=dacf
  1635. local inc=100
  1636. for i=0,1,0.1 do
  1637. swait()
  1638. icepart1.CFrame=dacf
  1639. dacf=dacf*cf(0,inc,0)
  1640. inc=100-100*i
  1641. end
  1642. local cfinc=99999
  1643. MagicHead(BrickColor.new("Really red"),cf(icepart1.Position)*cf(0,cfinc/10,0),200,cfinc,200,-10,1,-10,.1)
  1644. MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),200,200,200,-10,0,-10,.1)
  1645. icepart1.Transparency=1
  1646. so("334325056",icepart1,1,1)
  1647. game:GetService("Debris"):AddItem(icepart1,1)
  1648. local target1,distance1=findRandomTorso(icepart1.Position)
  1649. local test1,dist1=findNearestTorso(Head.Position)
  1650. if target1~=nil then
  1651. cfda=target1.Position+vt(math.random(-3000,3000)/100,0,math.random(-3000,3000)/100)
  1652. local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
  1653. local d1=part(3,effects,0,.5,BrickColor.new("Medium blue"),"Effect",vt())
  1654. d1.Anchored=true
  1655. d1.CFrame=cf(pos2)
  1656. msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(200,5,200))
  1657. d2=d1:Clone()
  1658. d2.Parent=d1
  1659. d2.CFrame=cf(d1.Position)
  1660. d2.BrickColor=BrickColor.new("Really black")
  1661. d2.Mesh.Scale=vt(0,5,0)
  1662. table.insert(Effects,{d1,"SatelliteStrike",d2,d2.Mesh,0})
  1663. end
  1664. end
  1665. end
  1666.  
  1667. function TurnSlam()
  1668. attack=true
  1669. local target,distance=findRandomTorso(RootPart.Position)
  1670. if target~=nil or target==nil then
  1671. local x,y,z = 0,0,0
  1672. for i=0,1,0.02 do
  1673. swait()
  1674. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
  1675. wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),.01)
  1676. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.4,-.6),.01)
  1677. wld24.C0=wld24.C0:lerp(euler(2.4,.2,0)*cf(0,90.25,0),.01)
  1678. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.01)
  1679.  
  1680. wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),.01)
  1681. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.4,.6),.01)
  1682. wld38.C0=wld38.C0:lerp(euler(-2.4,.2,0)*cf(0,-90.25,0),.01)
  1683. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.01)
  1684. if Stun.Value>=StunT.Value then
  1685. break
  1686. end
  1687. end
  1688. for i=0,1,0.01 do
  1689. swait()
  1690. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.2,0,0),.02)
  1691. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
  1692. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.02)
  1693. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),.02)
  1694. wld24.C0=wld24.C0:lerp(euler(2,-1,0)*cf(0,90.25,0),.02)
  1695. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(.5,0,1),.02)
  1696.  
  1697. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.02)
  1698. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),.02)
  1699. wld38.C0=wld38.C0:lerp(euler(-2,-1,0)*cf(0,-90.25,0),.02)
  1700. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(-.5,0,-1),.02)
  1701. if Stun.Value>=StunT.Value then
  1702. break
  1703. end
  1704. end
  1705. shockwave=false
  1706. ref1a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1707. ref1a.Anchored=true
  1708. ref1a.CFrame=cf(0,-50,0)
  1709. game:GetService("Debris"):AddItem(ref1a,3)
  1710. ref2a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1711. ref2a.Anchored=true
  1712. ref2a.CFrame=cf(0,-50,0)
  1713. game:GetService("Debris"):AddItem(ref2a,3)
  1714. incda=80
  1715. for i=0,3,0.03 do
  1716. swait()
  1717. dan=.1
  1718. if shockwave==true then
  1719. incda=incda+10
  1720. if i<1.5 then
  1721. MagniDamage(ref1a,incda,2000000000,2000000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(2000000000,2000000000),nil,nil,false,"Movement",.1,300)
  1722. MagniDamage(ref2a,incda,2000000000,2000000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(2000000000,2000000000),nil,nil,false,"Movement",.1,300)
  1723. end
  1724. end
  1725. if i>1 then
  1726. dan=.05
  1727. if shockwave==false then
  1728. for i=1,2 do
  1729. so("157878578",ref1a,1,0.4)
  1730. so("2101148",ref1a,1,0.6)
  1731. end
  1732. for i=1,2 do
  1733. so("157878578",ref2a,1,0.4)
  1734. so("2101148",ref2a,1,0.6)
  1735. end
  1736. shockwave=true
  1737. refcam=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1738. refcam.Anchored=true
  1739. refcam.CFrame=cf(prt31.Position)
  1740. refcam.CFrame=refcam.CFrame:lerp(cf(prt45.Position),.5)
  1741. game:GetService("Debris"):AddItem(refcam,1)
  1742. hitfl1,posfl1=rayCast(prt31.Position,(CFrame.new(prt31.Position,prt31.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1743. MagicRing(BrickColor.new("Really black"),cf(posfl1)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  1744. ref1a.CFrame=cf(posfl1)
  1745. hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1746. MagicRing(BrickColor.new("Really black"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  1747. ref2a.CFrame=cf(posfl2)
  1748. end
  1749. else
  1750. MagniDamage(prt31,90,50,70,math.random(2000000000,2000000000),"Knockdown2",RootPart,2,1,math.random(2000000000,2000000000),nil,nil,false)
  1751. MagniDamage(prt45,90,50,70,math.random(2000000000,2000000000),"Knockdown2",RootPart,2,1,math.random(2000000000,2000000000),nil,nil,false)
  1752. end
  1753. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),dan)
  1754. wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),dan)
  1755. wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),dan)
  1756. wld24.C0=wld24.C0:lerp(euler(1.2,-1,0)*cf(0,90.25,0),dan)
  1757. 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)
  1758.  
  1759. wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),dan)
  1760. wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),dan)
  1761. wld38.C0=wld38.C0:lerp(euler(-1.2,-1,0)*cf(0,-90.25,0),dan)
  1762. 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)
  1763. if Stun.Value>=StunT.Value then
  1764. break
  1765. end
  1766. end
  1767. meleecooldown=0
  1768. mcdadd=.05
  1769. if CurrentHealth<=1500 then
  1770. mcdadd=1
  1771. end
  1772. --mcdadd=1
  1773. end
  1774. attack=false
  1775. end
  1776.  
  1777. function GrandPunch()
  1778. attack=true
  1779. local target,distance=findRandomTorso(RootPart.Position)
  1780. if target~=nil or target==nil then
  1781. local x,y,z = 0,0,0
  1782. for i=0,1,0.01 do
  1783. swait()
  1784. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,.5,0),.02)
  1785. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.5,0),.02)
  1786. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.02)
  1787. 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)
  1788. wld24.C0=wld24.C0:lerp(euler(2,0,0)*euler(0,0,0)*cf(0,90.25,0),.02)
  1789. wld29.C0=wld29.C0:lerp(euler(0,.5,0)*cf(0,125,0),.02)
  1790.  
  1791. wld33.C0=wld33.C0:lerp(euler(-.4,-.8,0)*cf(-94,-47.5,-2.248),.02)
  1792. 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)
  1793. wld38.C0=wld38.C0:lerp(euler(-1,-.4,0)*cf(0,-90.25,0),.02)
  1794. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.02)
  1795. if Stun.Value>=StunT.Value then
  1796. break
  1797. end
  1798. end
  1799. da=0
  1800. local oldpos=prt31.Position
  1801. for i=0,1.5,0.01 do
  1802. swait()
  1803. da=da+1
  1804. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,-.5,0),.04)
  1805. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,-.5,0),.04)
  1806. wld19.C0=wld19.C0:lerp(euler(-.8,.6,0)*cf(94,-47.5,-2.248),.04)
  1807. 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)
  1808. --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)
  1809. wld24.C0=wld24.C0:lerp(euler(.8,0,0)*euler(0,0,0)*cf(0,90.25,0),.04)
  1810. wld29.C0=wld29.C0:lerp(euler(0,3,0)*cf(0,125,0),.04)
  1811.  
  1812. wld33.C0=wld33.C0:lerp(euler(-.4,-.1,0)*cf(-94,-47.5,-2.248),.04)
  1813. 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)
  1814. wld38.C0=wld38.C0:lerp(euler(-1.8,-.4,0)*cf(0,-90.25,0),.04)
  1815. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.04)
  1816. if i<.5 then
  1817. if da%4==0 then
  1818. MagniDamage(prt31,95,15,20,math.random(2000000000,2000000000),"Knockdown2",prt31,.5,1,math.random(2000000000,2000000000),nil,nil,false)
  1819. MagicWave(BrickColor.new("Really red"),cf(prt31.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
  1820. oldpos=prt31.Position
  1821. end
  1822. end
  1823. if Stun.Value>=StunT.Value then
  1824. break
  1825. end
  1826. end
  1827. meleecooldown=0
  1828. mcdadd=.1
  1829. if CurrentHealth<=1500 then
  1830. mcdadd=1
  1831. end
  1832. --mcdadd=50
  1833. end
  1834. attack=false
  1835. end
  1836.  
  1837. --[[ punch
  1838. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.1)
  1839. 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)
  1840. wld24.C0=wld24.C0:lerp(euler(1.2,.8,0)*cf(0,90.25,0),.1)
  1841. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  1842. ]]
  1843.  
  1844. function FrostSlam()
  1845. attack=true
  1846. local target,distance=findRandomTorso(RootPart.Position)
  1847. if target~=nil or target==nil then
  1848. local x,y,z = 0,0,0
  1849. for i=0,1,0.008 do
  1850. swait()
  1851. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.015)
  1852. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.3,0),.015)
  1853. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.015)
  1854. 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)
  1855. wld24.C0=wld24.C0:lerp(euler(.8,.8,0)*euler(0,-.2,0)*cf(0,90.25,0),.015)
  1856. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.015)
  1857.  
  1858. wld33.C0=wld33.C0:lerp(euler(.4,-.3,0)*cf(-94,-47.5,-2.248),.015)
  1859. 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)
  1860. wld38.C0=wld38.C0:lerp(euler(-1,-.2,0)*cf(0,-90.25,0),.015)
  1861. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.015)
  1862. if Stun.Value>=StunT.Value then
  1863. break
  1864. end
  1865. end
  1866. da=0
  1867. local oldpos=prt45.Position
  1868. shockwave=false
  1869. ref2a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1870. ref2a.Anchored=true
  1871. ref2a.CFrame=cf(0,-50,0)
  1872. game:GetService("Debris"):AddItem(ref2a,3)
  1873. incda=80
  1874. for i=0,10,0.02 do
  1875. swait()
  1876. da=da+1
  1877. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.025)
  1878. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-190,0)*euler(0,.3,0)*euler(-.1,0,0),.025)
  1879. wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.025)
  1880. 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)
  1881. wld24.C0=wld24.C0:lerp(euler(1,0,0)*euler(0,.3,0)*cf(0,90.25,0),.025)
  1882. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.025)
  1883.  
  1884. wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.025)
  1885. 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)
  1886. wld38.C0=wld38.C0:lerp(euler(-.5,0,0)*euler(0,0,-.2)*cf(0,-90.25,0),.025)
  1887. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.025)
  1888. if i>1 and i<8 then
  1889. if da%10==0 then
  1890. local do1=0
  1891. local do2=0
  1892. local rand1=math.random(1,2)
  1893. if rand1==1 then do1=math.random(5000,15000)/100
  1894. elseif rand1==2 then do1=math.random(-15000,-5000)/100 end
  1895. local rand2=math.random(1,2)
  1896. if rand2==1 then do2=math.random(5000,15000)/100
  1897. elseif rand2==2 then do2=math.random(-15000,-5000)/100 end
  1898. cfda=ref2a.Position+vt(do1,10,do2)
  1899. local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
  1900. local d1=part(3,effects,0,.5,BrickColor.new("Really red"),"Effect",vt())
  1901. d1.Anchored=true
  1902. d1.CFrame=cf(pos2)
  1903. msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(300,5,300))
  1904. d2=d1:Clone()
  1905. d2.Parent=d1
  1906. d2.CFrame=cf(d1.Position)
  1907. d2.BrickColor=BrickColor.new("Really black")
  1908. d2.Mesh.Scale=vt(0,5,0)
  1909. table.insert(Effects,{d1,"SatelliteStrike2",d2,d2.Mesh,0})
  1910. end
  1911. end
  1912. if i>1 and i<1.3 then
  1913. incda=incda+10
  1914. MagniDamage(ref2a,incda,6,8,math.random(2000000000,2000000000),"Knockdown2",RootPart,1.5,1,math.random(2000000000,2000000000),nil,nil,false,"Movement",.1,300)
  1915. end
  1916. if i<1 then
  1917. if da%4==0 then
  1918. MagniDamage(prt45,95,15,20,math.random(2000000000,2000000000),"Knockdown2",prt45,.5,1,math.random(2000000000,2000000000),nil,nil,false)
  1919. MagicWave(BrickColor.new("Really red"),cf(prt45.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
  1920. oldpos=prt45.Position
  1921. end
  1922. else
  1923. if shockwave==false then
  1924. shockwave=true
  1925. so("157878578",ref2a,1,0.4)
  1926. so("2101148",ref2a,1,0.6)
  1927. hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1928. refaa=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  1929. refaa.Anchored=true
  1930. refaa.CFrame=cf(posfl2)
  1931. game:GetService("Debris"):AddItem(refaa,1)
  1932. MagicRing(BrickColor.new("Really black"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
  1933. ref2a.CFrame=cf(posfl2)
  1934. end
  1935. end
  1936. if Stun.Value>=StunT.Value then
  1937. break
  1938. end
  1939. end
  1940. --print(incda)
  1941. meleecooldown=0
  1942. mcdadd=.08
  1943. if CurrentHealth<=1500 then
  1944. mcdadd=1
  1945. end
  1946. end
  1947. attack=false
  1948. end
  1949.  
  1950. function StunAnim()
  1951. attack=true
  1952. for i=0,1,0.06 do
  1953. swait()
  1954. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.7,0,0),.06)
  1955. RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,0)*cf(-1.749,-180,0),.06)
  1956. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.06)
  1957. 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)
  1958. wld24.C0=wld24.C0:lerp(euler(1,.1,0)*cf(0,90.25,0),.06)
  1959. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  1960.  
  1961. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.06)
  1962. 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)
  1963. wld38.C0=wld38.C0:lerp(euler(-1,.1,0)*cf(0,-90.25,0),.06)
  1964. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  1965. if Humanoid.Health<=0 then
  1966. break
  1967. end
  1968. end
  1969. for i=0,1,0.04 do
  1970. swait()
  1971. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.2,0,0)*euler(0,0,.2),.07)
  1972. RootJoint.C0=RootJoint.C0:lerp(euler(-.5,.2,0)*cf(-1.749,-140,0),.07)
  1973. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.07)
  1974. 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)
  1975. wld24.C0=wld24.C0:lerp(euler(1.2,.3,0)*cf(0,90.25,0),.07)
  1976. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.07)
  1977.  
  1978. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.07)
  1979. 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)
  1980. wld38.C0=wld38.C0:lerp(euler(-1.4,.1,0)*cf(0,-90.25,0),.07)
  1981. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.07)
  1982. if Humanoid.Health<=0 then
  1983. break
  1984. end
  1985. end
  1986. for i=0,1,0.01 do
  1987. swait()
  1988. msh3.Scale=vt(4,8.5-8*i,8.5)
  1989. msh5.Scale=vt(4,8.5-8*i,8.5)
  1990. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,1.5,0),.02)
  1991. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
  1992. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  1993. 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)
  1994. wld24.C0=wld24.C0:lerp(euler(.5,2.2,0)*cf(0,90.25,0),.05)
  1995. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  1996.  
  1997. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  1998. 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)
  1999. wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
  2000. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2001. if Humanoid.Health<=0 then
  2002. break
  2003. end
  2004. end
  2005. msh3.Scale=vt(4,.5,8.5)
  2006. msh5.Scale=vt(4,.5,8.5)
  2007. --swait(100)
  2008. local numb=1300
  2009. if CurrentHealth<=1500 then
  2010. numb=1000
  2011. end
  2012. local removedeb=8
  2013. for i=0,numb do
  2014. swait()
  2015. removedeb=removedeb+1
  2016. if removedeb>8 then
  2017. removedeb=0
  2018. for _,c in pairs(Character:children()) do
  2019. if c.Name=="DebounceHit" then c.Parent=nil end
  2020. end
  2021. end
  2022. if Humanoid.Health<=0 then
  2023. break
  2024. end
  2025. end
  2026. for i=0,1,0.1 do
  2027. swait()
  2028. msh3.Scale=vt(4,.5+8*i,8.5)
  2029. msh5.Scale=vt(4,.5+8*i,8.5)
  2030. end
  2031. msh3.Scale=vt(4,8.5,8.5)
  2032. msh5.Scale=vt(4,8.5,8.5)
  2033. for i=0,1,0.02 do
  2034. swait()
  2035. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
  2036. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2037. 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)
  2038. wld24.C0=wld24.C0:lerp(euler(1.6,.1,0)*cf(0,90.25,0),.05)
  2039. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2040.  
  2041. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2042. 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)
  2043. wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
  2044. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2045. if Humanoid.Health<=0 then
  2046. break
  2047. end
  2048. end
  2049. for i=0,1,0.03 do
  2050. swait()
  2051. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,0)*euler(-.6,0,0),.06)
  2052. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
  2053. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
  2054. 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)
  2055. wld24.C0=wld24.C0:lerp(euler(1.2,.1,0)*cf(0,90.25,0),.06)
  2056. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  2057.  
  2058. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
  2059. 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)
  2060. wld38.C0=wld38.C0:lerp(euler(-1.2,.1,0)*cf(0,-90.25,0),.06)
  2061. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  2062. if Humanoid.Health<=0 then
  2063. break
  2064. end
  2065. end
  2066. for i=0,1,0.008 do
  2067. swait()
  2068. if i<.4 then
  2069. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.1,0,0),.06)
  2070. else
  2071. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
  2072. end
  2073. RootJoint.C0=RootJoint.C0:lerp(cf(5,-210,0)*euler(.1,0,0),.06)
  2074. wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
  2075. 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)
  2076. wld24.C0=wld24.C0:lerp(euler(.6,.3,0)*cf(0,90.25,0),.06)
  2077. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
  2078.  
  2079. wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
  2080. 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)
  2081. wld38.C0=wld38.C0:lerp(euler(-.6,.3,0)*cf(0,-90.25,0),.06)
  2082. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
  2083. if Humanoid.Health<=0 then
  2084. break
  2085. end
  2086. end
  2087. attack=false
  2088. end
  2089.  
  2090. function SummonCrystals()
  2091. attack=true
  2092. for i=0,1,0.01 do
  2093. swait()
  2094. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
  2095. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
  2096. --[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
  2097. 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)
  2098. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
  2099. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
  2100.  
  2101. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
  2102. 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)
  2103. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
  2104. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
  2105. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
  2106. 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)
  2107. wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
  2108. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
  2109.  
  2110. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
  2111. 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)
  2112. wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
  2113. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
  2114. end
  2115. for i=0,1,0.04 do
  2116. swait()
  2117. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
  2118. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
  2119. wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
  2120. 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)
  2121. wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
  2122. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
  2123.  
  2124. wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
  2125. 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)
  2126. wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
  2127. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
  2128. end
  2129. Cryst1.Parent=workspace
  2130. C1Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2131. C1Torso.CFrame=C1Head.CFrame
  2132. C1Neck.Parent=C1Head
  2133. C1S.Parent=Cryst1
  2134. C1Hum.Parent=Cryst1
  2135. C1Hum.MaxHealth=200
  2136. C1Hum.Health=200
  2137. C1Hum.Parent=Cryst1
  2138. C1Hum:TakeDamage(1)
  2139. C1a=true
  2140. for _,c in pairs(Cryst1:children()) do
  2141. if c.Name=="DebounceHit" then c.Parent=nil end
  2142. end
  2143. Cryst2.Parent=workspace
  2144. C2Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2145. C2Torso.CFrame=C2Head.CFrame
  2146. C2Neck.Parent=C2Head
  2147. C2S.Parent=Cryst2
  2148. C2Hum.Parent=Cryst2
  2149. C2Hum.MaxHealth=200
  2150. C2Hum.Health=200
  2151. C2Hum.Parent=Cryst2
  2152. C2Hum:TakeDamage(1)
  2153. C2a=true
  2154. for _,c in pairs(Cryst2:children()) do
  2155. if c.Name=="DebounceHit" then c.Parent=nil end
  2156. end
  2157. Cryst3.Parent=workspace
  2158. C3Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2159. C3Torso.CFrame=C3Head.CFrame
  2160. C3Neck.Parent=C3Head
  2161. C3S.Parent=Cryst3
  2162. C3Hum.Parent=Cryst3
  2163. C3Hum.MaxHealth=200
  2164. C3Hum.Health=200
  2165. C3Hum.Parent=Cryst3
  2166. C3Hum:TakeDamage(1)
  2167. C3a=true
  2168. for _,c in pairs(Cryst3:children()) do
  2169. if c.Name=="DebounceHit" then c.Parent=nil end
  2170. end
  2171. Cryst4.Parent=workspace
  2172. C4Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  2173. C4Torso.CFrame=C4Head.CFrame
  2174. C4Neck.Parent=C4Head
  2175. C4S.Parent=Cryst4
  2176. C4Hum.Parent=Cryst4
  2177. C4Hum.MaxHealth=200
  2178. C4Hum.Health=200
  2179. C4Hum.Parent=Cryst4
  2180. C4Hum:TakeDamage(1)
  2181. C4a=true
  2182. for _,c in pairs(Cryst4:children()) do
  2183. if c.Name=="DebounceHit" then c.Parent=nil end
  2184. end
  2185. MagicCircle(BrickColor.new("Really red"),cf(C1Head.Position),150,400,150,5,10,5,.05)
  2186. MagicCircle(BrickColor.new("Really red"),cf(C2Head.Position),150,400,150,5,10,5,.05)
  2187. MagicCircle(BrickColor.new("Really red"),cf(C3Head.Position),150,400,150,5,10,5,.05)
  2188. MagicCircle(BrickColor.new("Really red"),cf(C4Head.Position),150,400,150,5,10,5,.05)
  2189. crystals=true
  2190. if CurrentHealth>1500 then
  2191. else
  2192. end
  2193. swait(50)
  2194. attack=false
  2195. end
  2196.  
  2197. function HeavySlam()
  2198. attack=true
  2199. for i=0,1,0.05 do
  2200. swait()
  2201. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,3,0),.1)
  2202. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
  2203. Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.3,0,0),.1)
  2204. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,1,0),.1)
  2205. RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(2,0,.3),.1)
  2206. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  2207. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.2,0,-.6),.1)
  2208. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  2209. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,1,0)*euler(.1,0,0),.1)
  2210. RH.C0=clerp(RH.C0,cf(1.5,-3,0)*euler(0,-1,0)*euler(.1,0,0),.1)
  2211. end
  2212. for i=0,1,0.04 do
  2213. swait()
  2214. wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,3,0),.1)
  2215. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
  2216. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.4,0,0),.1)
  2217. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,-.2,0),.1)
  2218. RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(3.5,0,0)*euler(0,.2,0),.1)
  2219. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  2220. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.4,0,-.6),.1)
  2221. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
  2222. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-.3,0,0),.1)
  2223. RH.C0=clerp(RH.C0,cf(1.5,-3,-1)*euler(0,0,0)*euler(-.1,0,0),.1)
  2224. end
  2225. so("161006212",prt9,1,.6)
  2226. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,2000000000,2000000000,math.random(2000000000,2000000000),"Knockdown2",RootPart,2,1,math.random(2000000000,2000000000),nil,true) end)
  2227. hitbox.Parent=modelzorz
  2228. hitbox.Size=vt(2,20,8)
  2229. hitboxCF=prt9.CFrame*cf(0,0,0)
  2230. hitbox.CFrame=hitboxCF
  2231. blcf=nil
  2232. scfr=nil
  2233. for i=0,1,0.02 do
  2234. swait()
  2235. --[[local blcf = prt9.CFrame*cf(0,0,0)
  2236. if scfr and (prt9.Position-scfr.p).magnitude > .1 then
  2237. local h = 14
  2238. 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)
  2239. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2240. 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)
  2241. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2242. scfr = blcf
  2243. elseif not scfr then
  2244. scfr = blcf
  2245. end]]
  2246. hitboxCF=prt9.CFrame*cf(0,0,0)
  2247. hitbox.CFrame=hitboxCF
  2248. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,3,0),.4)
  2249. wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.4)
  2250. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.6,0,0),.2)
  2251. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(0,0,0),.2)
  2252. RW.C0=clerp(RW.C0,cf(2.5,1.5,-1)*euler(.5,0,-.2)*euler(0,0,0),.4)
  2253. RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
  2254. LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.8,0,-.6),.2)
  2255. LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
  2256. LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-1,0,0),.2)
  2257. RH.C0=clerp(RH.C0,cf(1.5,-1,-1.5)*euler(0,0,0)*euler(-.1,0,0),.2)
  2258. if i>=.16 and i<=.17 then
  2259. hit,pos=rayCast(prt9.Position,(CFrame.new(prt9.Position,prt9.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  2260. if hit~=nil then
  2261. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2262. ref.Anchored=true
  2263. ref.CFrame=cf(pos)
  2264. so("199145477",prt9,1,.8)
  2265. game:GetService("Debris"):AddItem(ref,1)
  2266. --MagniDamage(ref,2000000000,2000000000,2000000000,math.random(2000000000,2000000000),"Knockdown2",false,"Movement",.2,400,math.random(2000000000,2000000000))
  2267. MagniDamage(ref,2000000000,2000000000,2000000000,math.random(2000000000,2000000000),"Knockdown2",false,"Movement",.2,200,math.random(2000000000,2000000000))
  2268. MagicWave(BrickColor.new("Really black"),cf(ref.Position),1,1,1,2,2,2,.05)
  2269. end
  2270. end
  2271. end
  2272. con1:disconnect()
  2273. hitbox.Parent=nil
  2274. attack=false
  2275. end
  2276.  
  2277. local magref=part(3,effects,0,.5,BrickColor.new("Black"),"Effect",vt())
  2278. magref.Anchored=true
  2279. magref.CFrame=cf(0,0,0)
  2280. magref.Parent=nil
  2281. local mrmsh=mesh("SpecialMesh",magref,"Sphere","nil",vt(0,0,0),vt(1,1,1))
  2282.  
  2283. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2284. --magref.CFrame=cf(Part.Position)
  2285. --mrmsh.Scale=vt(magni*10,magni*10,magni*10)
  2286. for _,c in pairs(workspace:children()) do
  2287. local hum=c:findFirstChild("Humanoid")
  2288. if hum~=nil then
  2289. local head=nil
  2290. for _,d in pairs(c:children()) do
  2291. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2292. if d.className=="Part" then
  2293. head=d
  2294. if head~=nil then
  2295. local targ=head.Position-Part.Position
  2296. local mag=targ.magnitude
  2297. if mag<=magni and c.Name~=Character.Name and c.Name~="Crystal" then
  2298. if stun==nil then
  2299. stun=math.random(5,10)
  2300. end
  2301. local Rang=nil
  2302. if Ranged==false then
  2303. Rang=true
  2304. end
  2305. local stag=nil
  2306. if shbash==true then
  2307. stag=true
  2308. end
  2309. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2310. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2311. end
  2312. end
  2313. end
  2314. end
  2315. end
  2316. end
  2317. end
  2318.  
  2319. function DecreaseStat(Model,Stat,Amount,Duration)
  2320. if Model:findFirstChild("Stats")~=nil then
  2321. if Model.Stats[Stat]~=nil then
  2322. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2323. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2324. dur=Instance.new("NumberValue",d)
  2325. dur.Name="Duration"
  2326. dur.Value=Duration
  2327. game:GetService("Debris"):AddItem(d,40)
  2328. if Stat=="Damage" then
  2329. d.Name="DecreaseAtk"
  2330. elseif Stat=="Defense" then
  2331. d.Name="DecreaseDef"
  2332. elseif Stat=="Movement" then
  2333. d.Name="DecreaseMvmt"
  2334. end
  2335. if Model:findFirstChild("Torso")~=nil then
  2336. display=""
  2337. if Stat=="Damage" then
  2338. if Amount>0 then
  2339. display="-Damage"
  2340. else
  2341. display="+Damage"
  2342. end
  2343. elseif Stat=="Defense" then
  2344. if Amount>0 then
  2345. display="-Defense"
  2346. else
  2347. display="+Defense"
  2348. end
  2349. elseif Stat=="Movement" then
  2350. if Amount>0 then
  2351. display="-Movement"
  2352. else
  2353. display="+Movement"
  2354. end
  2355. end
  2356. showDamage(Model,display,"Debuff")
  2357. end
  2358. d.Value=Amount
  2359. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  2360. end
  2361. end
  2362. end
  2363.  
  2364. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2365. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2366. end
  2367.  
  2368. function findNearestTorso(pos)
  2369. local list = game.Workspace:children()
  2370. local torso = nil
  2371. local dist = 10000
  2372. local temp = nil
  2373. local human = nil
  2374. local temp2 = nil
  2375. for x = 1, #list do
  2376. temp2 = list[x]
  2377. if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
  2378. temp = temp2:findFirstChild("Torso")
  2379. human = temp2:findFirstChild("Humanoid")
  2380. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2381. if (temp.Position - pos).magnitude < dist then
  2382. local dohit=true
  2383. 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
  2384. if temp2:findFirstChild("Alive")==nil then dohit=false end
  2385. if dohit==true then
  2386. torso = temp
  2387. dist = (temp.Position - pos).magnitude
  2388. end
  2389. end
  2390. end
  2391. end
  2392. end
  2393. return torso,dist
  2394. end
  2395.  
  2396. function findRandomTorso(pos)
  2397. local list = game.Workspace:children()
  2398. local torso = nil
  2399. local dist = 10000
  2400. local temp = nil
  2401. local human = nil
  2402. local temp2 = nil
  2403. local list2 = {}
  2404. for x = 1, #list do
  2405. temp2 = list[x]
  2406. if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
  2407. temp = temp2:findFirstChild("Torso")
  2408. human = temp2:findFirstChild("Humanoid")
  2409. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2410. if pos.magnitude < dist then
  2411. local dohit=true
  2412. 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
  2413. if temp2:findFirstChild("Alive")==nil then dohit=false end
  2414. if dohit==true then
  2415. torso = temp
  2416. table.insert(list2,temp)
  2417. end
  2418. end
  2419. end
  2420. end
  2421. end
  2422. if #list2>0 then
  2423. rand=math.random(1,#list2)
  2424. return list2[rand],dist
  2425. else
  2426. return nil,dist
  2427. end
  2428. end
  2429.  
  2430. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  2431. if hit.Parent==nil then
  2432. return
  2433. end
  2434. h=hit.Parent:FindFirstChild("Humanoid")
  2435. --[[for _,v in pairs(hit.Parent:children()) do
  2436. if v:IsA("Humanoid") then
  2437. h=v
  2438. end
  2439. end]]
  2440. --[[if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2441. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2442. end]]
  2443. if hit.Parent.className=="Hat" then
  2444. hit=hit.Parent.Parent:findFirstChild("Head")
  2445. end
  2446. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
  2447. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2448. if Sound=="GreatHit" then
  2449. so("200632875",hit,1,1)
  2450. end
  2451. game:GetService("Debris"):AddItem(c,.5)
  2452. minim=minim*Atk.Value
  2453. maxim=maxim*Atk.Value
  2454. Damage=0
  2455. if minim==maxim or minim>maxim then
  2456. Damage=maxim
  2457. else
  2458. Damage=math.random(minim,maxim)
  2459. end
  2460. blocked=false
  2461. enblock=nil
  2462. Stats=hit.Parent:findFirstChild("Stats")
  2463. if Stats~=nil then
  2464. enblock=Stats:findFirstChild("Block")
  2465. if enblock~=nil then
  2466. if enblock.Value==true then
  2467. blocked=true
  2468. end
  2469. end
  2470. if Stats:findFirstChild("Defense")~=nil then
  2471. Damage=Damage/(Stats.Defense.Value)
  2472. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  2473. hitnum=math.random(1,5)
  2474. if hitnum==1 then so("199149321",hit,1,.7)
  2475. elseif hitnum==2 then so("199149338",hit,1,.7)
  2476. elseif hitnum==3 then so("199149367",hit,1,.7)
  2477. elseif hitnum==4 then so("199149409",hit,1,.7)
  2478. elseif hitnum==5 then so("199149452",hit,1,.7)
  2479. end
  2480. elseif ranged==false or ranged==nil and blocked~=true then
  2481. hitnum=math.random(1,6)
  2482. if hitnum==1 then so("199149137",hit,1,.7)
  2483. elseif hitnum==2 then so("199149186",hit,1,.7)
  2484. elseif hitnum==3 then so("199149221",hit,1,.7)
  2485. elseif hitnum==4 then so("199149235",hit,1,.7)
  2486. elseif hitnum==5 then so("199149269",hit,1,.7)
  2487. elseif hitnum==6 then so("199149297",hit,1,.7)
  2488. end
  2489. end
  2490. end
  2491. if Stats:findFirstChild("Stun")~=nil then
  2492. if blocked==true then
  2493. incstun=math.floor(incstun/2)
  2494. end
  2495. Stats.Stun.Value=Stats.Stun.Value+incstun
  2496. end
  2497. if Stats:findFirstChild("Stagger")~=nil then
  2498. if stagger==true then
  2499. Stats.Stagger.Value=true
  2500. end
  2501. end
  2502. end
  2503. if blocked==true then
  2504. showDamage(hit.Parent,"Block","Damage")
  2505. hitnum=math.random(1,2)
  2506. if hitnum==1 then so("199148933",hit,1,1)
  2507. elseif hitnum==2 then so("199148947",hit,1,1)
  2508. end
  2509. enblock.Value=false
  2510. else
  2511. Damage=math.floor(Damage)
  2512. h:TakeDamage(Damage)
  2513. --[[coroutine.resume(coroutine.create(function(Hum,Dam)
  2514. damageFunc:InvokeServer(nil,h,Damage)
  2515. --print(Dam)
  2516. end),h,Damage)]]
  2517. showDamage(hit.Parent,Damage,"Damage")
  2518. if DecreaseState~=nil then
  2519. if DecreaseState=="Shatter" then
  2520. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  2521. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  2522. else
  2523. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2524. end
  2525. end
  2526. if Type=="Knockdown" then
  2527. hum=hit.Parent.Humanoid
  2528. hum.PlatformStand=true
  2529. coroutine.resume(coroutine.create(function(HHumanoid)
  2530. swait(1)
  2531. HHumanoid.PlatformStand=false
  2532. end),hum)
  2533. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2534. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2535. local bodvol=Instance.new("BodyVelocity")
  2536. bodvol.velocity=angle*knockback
  2537. bodvol.P=5000
  2538. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2539. bodvol.Parent=hit
  2540. rl=Instance.new("BodyAngularVelocity")
  2541. rl.P=3000
  2542. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2543. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2544. rl.Parent=hit
  2545. game:GetService("Debris"):AddItem(bodvol,.5)
  2546. game:GetService("Debris"):AddItem(rl,.5)
  2547. elseif Type=="Shatter" then
  2548. for i=1,10 do
  2549. BreakEffect(BrickColor.new("Really red"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  2550. end
  2551. elseif Type=="Knockdown2" then
  2552. hum=hit.Parent.Humanoid
  2553. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2554. local bodvol=Instance.new("BodyVelocity")
  2555. bodvol.velocity=angle*knockback
  2556. bodvol.P=5000
  2557. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2558. bodvol.Parent=hit
  2559. game:GetService("Debris"):AddItem(bodvol,.5)
  2560. elseif Type=="Normal" then
  2561. vp=Instance.new("BodyVelocity")
  2562. vp.P=500
  2563. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2564. if KnockbackType==1 then
  2565. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2566. elseif KnockbackType==2 then
  2567. vp.velocity=Property.CFrame.lookVector*knockback
  2568. end
  2569. game:GetService("Debris"):AddItem(vp,.5)
  2570. if knockback>0 then
  2571. vp.Parent=hit.Parent.Torso
  2572. end
  2573. end
  2574. end
  2575. debounce=Instance.new("BoolValue")
  2576. debounce.Name="DebounceHit"
  2577. debounce.Parent=hit.Parent
  2578. debounce.Value=true
  2579. game:GetService("Debris"):AddItem(debounce,Delay)
  2580. CRIT=false
  2581. end
  2582. end
  2583.  
  2584. showDamage=function(Char,Dealt,Type)
  2585. m=Instance.new("Model")
  2586. m.Name="Effect"
  2587. c=Instance.new("Part")
  2588. c.Transparency=1
  2589. c.Name="Head"
  2590. c.TopSurface=0
  2591. c.BottomSurface=0
  2592. c.formFactor="Plate"
  2593. c.Size=Vector3.new(1,.4,1)
  2594. b=Instance.new("BillboardGui",c)
  2595. b.Size=UDim2.new(5,0,5,0)
  2596. b.AlwaysOnTop=true
  2597. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  2598. if Type=="Damage" then
  2599. damgui.Font="SourceSans"
  2600. if Dealt=="Block" then
  2601. damgui.TextColor3=BrickColor.new("Really red").Color
  2602. elseif Dealt<3 then
  2603. damgui.TextColor3=BrickColor.new("Really black").Color
  2604. elseif Dealt>=3 and Dealt<20 then
  2605. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  2606. else
  2607. damgui.TextColor3=BrickColor.new("Really red").Color
  2608. damgui.Font="SourceSansBold"
  2609. end
  2610. elseif Type=="Debuff" then
  2611. damgui.TextColor3=BrickColor.new("Really black").Color
  2612. elseif Type=="Interrupt" then
  2613. damgui.TextColor3=BrickColor.new("New Yeller").Color
  2614. end
  2615. --damgui.FontSize="Size48"
  2616. damgui.TextScaled=true
  2617. ms=Instance.new("CylinderMesh")
  2618. ms.Scale=Vector3.new(.8,.8,.8)
  2619. ms.Parent=c
  2620. c.Reflectance=0
  2621. Instance.new("BodyGyro").Parent=c
  2622. c.Parent=m
  2623. if Char:findFirstChild("Head")~=nil then
  2624. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2625. elseif Char.Parent:findFirstChild("Head")~=nil then
  2626. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2627. end
  2628. f=Instance.new("BodyPosition")
  2629. f.P=2000
  2630. f.D=100
  2631. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2632. if Type=="Damage" then
  2633. f.position=c.Position+Vector3.new(0,3,0)
  2634. elseif Type=="Debuff" or Type=="Interrupt" then
  2635. f.position=c.Position+Vector3.new(0,5,0)
  2636. end
  2637. f.Parent=c
  2638. game:GetService("Debris"):AddItem(m,5)
  2639. table.insert(Effects,{m,"showDamage",damgui,f,2000000000,2000000000,2000000000,2000000000,2000000000})
  2640. c.CanCollide=false
  2641. m.Parent=effects
  2642. c.CanCollide=false
  2643. end
  2644.  
  2645. Player:GetMouse().KeyDown:connect(function(kek)
  2646. kek = kek:lower()
  2647. if kek == "z" then
  2648. TurnSlam()
  2649. end
  2650. if kek == "x" then
  2651. GrandPunch()
  2652. end
  2653. if kek == "c" then
  2654. FrostSlam()
  2655. end
  2656. if kek == "v" then
  2657. TriIceShards()
  2658. end
  2659. if kek == "q" then
  2660. TriOrbs()
  2661. end
  2662. if kek == "e" then
  2663. IceMortar()
  2664. end
  2665. if kek == "r" then
  2666. TriIceShards2()
  2667. end
  2668. if kek == "f" then
  2669. TriOrbs2()
  2670. end
  2671. end)
  2672.  
  2673. local stunnum=0
  2674. local animnum=0
  2675. local idle=1
  2676. local animlimit=120
  2677. local attacking=false
  2678. while Humanoid.Health>0 do
  2679. swait()
  2680. for _,c in pairs(C1S:children()) do
  2681. if c.Name=="Defense" then c.Value=1 end
  2682. if c.Name=="Decrease" then
  2683. for _,d in pairs(c:children()) do
  2684. d.Parent=nil
  2685. end
  2686. end
  2687. end
  2688. for _,c in pairs(C2S:children()) do
  2689. if c.Name=="Defense" then c.Value=1 end
  2690. if c.Name=="Decrease" then
  2691. for _,d in pairs(c:children()) do
  2692. d.Parent=nil
  2693. end
  2694. end
  2695. end
  2696. for _,c in pairs(C3S:children()) do
  2697. if c.Name=="Defense" then c.Value=1 end
  2698. if c.Name=="Decrease" then
  2699. for _,d in pairs(c:children()) do
  2700. d.Parent=nil
  2701. end
  2702. end
  2703. end
  2704. for _,c in pairs(C4S:children()) do
  2705. if c.Name=="Defense" then c.Value=1 end
  2706. if c.Name=="Decrease" then
  2707. for _,d in pairs(c:children()) do
  2708. d.Parent=nil
  2709. end
  2710. end
  2711. end
  2712. if stunanim==false then
  2713. Humanoid.Health=CurrentHealth
  2714. else
  2715. CurrentHealth=Humanoid.Health
  2716. end
  2717. for i=1,#refs2 do
  2718. refs2[i][1].CFrame=refs2[i][2].CFrame*refs2[i][3]
  2719. end
  2720. if meleecooldown<100 then
  2721. meleecooldown=meleecooldown+mcdadd
  2722. end
  2723. hitbox2.Parent=hitbox.Parent
  2724. hitbox2.Size=hitbox.Size
  2725. hitbox2.CFrame=hitboxCF
  2726. --[[target,distance=findNearestTorso(Torso.Position)
  2727. if target~=nil then
  2728. local test1,dist1=findNearestTorso(Head.Position)
  2729. if dist1<200 then
  2730. if math.random(1,50)==1 and stunanim==false then --close projectile attack
  2731. coroutine.resume(coroutine.create(function()
  2732. atktype=math.random(1,4)
  2733. if atktype==1 then
  2734. TriIceShards2()
  2735. elseif atktype==2 then
  2736. TriIceShards2()
  2737. elseif atktype==3 then
  2738. TriIceShards2()
  2739. elseif atktype==4 then
  2740. TriOrbs2()
  2741. end
  2742. end))
  2743. end
  2744. end
  2745. local rand=math.random(1,30)
  2746. if CurrentHealth<1500 then
  2747. rand=math.random(1,20)
  2748. end
  2749. if rand==1 and stunanim==false then --projectile attack
  2750. coroutine.resume(coroutine.create(function()
  2751. atktype=math.random(1,4)
  2752. if atktype==1 then
  2753. TriIceShards()
  2754. elseif atktype==2 then
  2755. TriIceShards()
  2756. elseif atktype==3 then
  2757. TriOrbs()
  2758. elseif atktype==4 then
  2759. IceMortar()
  2760. end
  2761. end))
  2762. end
  2763. if math.random(1,50)==1 and attack==false and meleecooldown>=100 and stunanim==false then --melee attack
  2764. coroutine.resume(coroutine.create(function()
  2765. atktype=math.random(1,3)
  2766. if atktype==1 then
  2767. TurnSlam()
  2768. elseif atktype==2 then
  2769. GrandPunch()
  2770. elseif atktype==3 then
  2771. FrostSlam()
  2772. end
  2773. end))
  2774. end
  2775. end
  2776. if C1a==true then
  2777. if C1Hum.Health<=0 then
  2778. C1a=false
  2779. summoncrystals=0
  2780. Stun.Value=Stun.Value+160
  2781. MagicCrystal(BrickColor.new("Really red"),cf(C1Head.Position),10,20,10,3,3,3,.1)
  2782. Cryst1.Parent=nil
  2783. end
  2784. end
  2785. if C2a==true then
  2786. if C2Hum.Health<=0 then
  2787. C2a=false
  2788. summoncrystals=0
  2789. Stun.Value=Stun.Value+160
  2790. MagicCrystal(BrickColor.new("Really red"),cf(C2Head.Position),10,20,10,3,3,3,.1)
  2791. Cryst2.Parent=nil
  2792. end
  2793. end
  2794. if C3a==true then
  2795. if C3Hum.Health<=0 then
  2796. C3a=false
  2797. summoncrystals=0
  2798. Stun.Value=Stun.Value+160
  2799. MagicCrystal(BrickColor.new("Really red"),cf(C3Head.Position),10,20,10,3,3,3,.1)
  2800. Cryst3.Parent=nil
  2801. end
  2802. end
  2803. if C4a==true then
  2804. if C4Hum.Health<=0 then
  2805. C4a=false
  2806. summoncrystals=0
  2807. Stun.Value=Stun.Value+160
  2808. MagicCrystal(BrickColor.new("Really red"),cf(C4Head.Position),10,20,10,3,3,3,.1)
  2809. Cryst4.Parent=nil
  2810. end
  2811. end
  2812. if C1a==false and C2a==false and C3a==false and C4a==false then
  2813. if CurrentHealth>1500 then
  2814. else
  2815. end
  2816. crystals=false
  2817. end
  2818. if CurrentHealth<=1500 then
  2819. end
  2820. summoncrystals=summoncrystals+.1
  2821. if summoncrystals>100 and crystals==false and attack==false then
  2822. coroutine.resume(coroutine.create(function()
  2823. while attack==true do
  2824. swait()
  2825. end
  2826. SummonCrystals()
  2827. end))
  2828. end]]
  2829. Humanoid.WalkSpeed=0
  2830. if Stun.Value>=StunT.Value and stunanim==false and attack==false then
  2831. coroutine.resume(coroutine.create(function()
  2832. stunanim=true
  2833. while attack==true do
  2834. swait()
  2835. Stun.Value=StunT.Value
  2836. end
  2837. summoncrystals=0
  2838. StunAnim()
  2839. Stun.Value=0
  2840. stunanim=false
  2841. end))
  2842. end
  2843. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2844. local velderp=RootPart.Velocity.y
  2845. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  2846. for _,c in pairs(Decrease:children()) do
  2847. c.Parent=nil
  2848. if c:findFirstChild("Duration")~=nil then
  2849. c.Duration.Value=c.Duration.Value-9999
  2850. if c.Duration.Value<=0 then
  2851. c.Parent=nil
  2852. end
  2853. end
  2854. if c.Name=="DecreaseAtk" then
  2855. decreaseatk=decreaseatk+c.Value
  2856. elseif c.Name=="DecreaseDef" then
  2857. decreasedef=decreasedef+c.Value
  2858. elseif c.Name=="DecreaseMvmt" then
  2859. decreasemvmt=decreasemvmt+c.Value
  2860. end
  2861. end
  2862. Atk.Value=2-decreaseatk
  2863. if Atk.Value<=0 then
  2864. Atk.Value=0
  2865. end
  2866. Def.Value=2-decreasedef
  2867. if Def.Value<=0 then
  2868. Def.Value=0.01
  2869. end
  2870. Mvmt.Value=0-decreasemvmt
  2871. if Mvmt.Value<=0 then
  2872. Mvmt.Value=0
  2873. end
  2874. decreaseatk=0
  2875. decreasedef=0
  2876. decreasemvmt=0
  2877. AtkVal=Atk.Value*100
  2878. AtkVal=math.floor(AtkVal)
  2879. AtkVal=AtkVal/100
  2880. DefVal=Def.Value*100
  2881. DefVal=math.floor(DefVal)
  2882. DefVal=DefVal/100
  2883. MvmtVal=Mvmt.Value*100
  2884. MvmtVal=math.floor(MvmtVal)
  2885. MvmtVal=MvmtVal/100
  2886. if MvmtVal<=0 then
  2887. MvmtVal=0
  2888. end
  2889. animnum=animnum+1
  2890. if animnum>=animlimit*5 then
  2891. idle=1
  2892. animnum=0
  2893. elseif animnum>=animlimit*4 then
  2894. idle=1
  2895. animnum=0
  2896. elseif animnum>=animlimit*3 then
  2897. idle=4
  2898. elseif animnum>=animlimit*2 then
  2899. idle=3
  2900. elseif animnum>=animlimit*1 then
  2901. idle=2
  2902. end
  2903. if attack==false then --idle anim
  2904. if idle==1 or idle==2 then
  2905. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
  2906. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.005)
  2907. wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.005)
  2908. 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)
  2909. wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.005)
  2910. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
  2911.  
  2912. wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.005)
  2913. 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)
  2914. wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.005)
  2915. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
  2916. else
  2917. Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
  2918. RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,10)*euler(-.2,0,0),.005)
  2919. wld19.C0=wld19.C0:lerp(euler(-.2,.3,0)*cf(94,-47.5,-2.248),.005)
  2920. 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)
  2921. wld24.C0=wld24.C0:lerp(euler(1.2,-.2,0)*cf(0,90.25,0),.005)
  2922. wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
  2923.  
  2924. wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.005)
  2925. 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)
  2926. wld38.C0=wld38.C0:lerp(euler(-1.2,-.2,0)*cf(0,-90.25,0),.005)
  2927. wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
  2928. end
  2929. end
  2930. if #Effects>0 then
  2931. --table.insert(Effects,{prt,"Block1",delay})
  2932. for e=1,#Effects do
  2933. if Effects[e]~=nil then
  2934. --for j=1,#Effects[e] do
  2935. local Thing=Effects[e]
  2936. if Thing~=nil then
  2937. local Part=Thing[1]
  2938. local Mode=Thing[2]
  2939. local Delay=Thing[3]
  2940. local IncX=Thing[4]
  2941. local IncY=Thing[5]
  2942. local IncZ=Thing[6]
  2943. if Thing[2]=="DecreaseStat" then
  2944. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  2945. Thing[5]=Thing[5]-1
  2946. if Thing[5]<=0 then
  2947. if Thing[1]:findFirstChild("Stats")~=nil then
  2948. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  2949. --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  2950. end
  2951. end
  2952. Thing[6].Parent=nil
  2953. table.remove(Effects,e)
  2954. end
  2955. end
  2956. if Thing[2]=="CylinderClang" then
  2957. if Thing[3]<=1 then
  2958. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2959. Thing[7]=Thing[1].CFrame
  2960. effect("New Yeller",0,Thing[8],Thing[7])
  2961. Thing[8]=Thing[7]
  2962. Thing[3]=Thing[3]+Thing[4]
  2963. else
  2964. Part.Parent=nil
  2965. table.remove(Effects,e)
  2966. end
  2967. end
  2968. if Thing[2]=="showDamage" then
  2969. if Thing[6]<Thing[5] then
  2970. Thing[6]=Thing[6]+1
  2971. elseif Thing[6]<Thing[7] then
  2972. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2973. Thing[6]=Thing[6]+1
  2974. elseif Thing[6]<Thing[8] then
  2975. Thing[6]=Thing[6]+1
  2976. elseif Thing[6]<Thing[9] then
  2977. Thing[6]=Thing[6]+1
  2978. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2979. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2980. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2981. else
  2982. Thing[1].Parent=nil
  2983. table.remove(Effects,e)
  2984. end
  2985. end
  2986. if Thing[2]=="ShootIce" then
  2987. local Look=Thing[1]
  2988. local hit,pos = rayCast(Thing[4],Look.lookVector,Thing[9],Character)
  2989. local mag=(Thing[4]-pos).magnitude
  2990. --MagicHead(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,.2)
  2991. Thing[8].CFrame=CFrame.new((Thing[4]+pos)/2,pos)*euler(-1.57,0,0)
  2992. Thing[4]=Thing[4]+(Look.lookVector*Thing[9])
  2993. Thing[3]=Thing[3]-1
  2994. Thing[9]=Thing[9]+.2
  2995. if hit~=nil then
  2996. Thing[3]=0
  2997. --DecreaseStat(hit.Parent,"Movement",.02,50,false)
  2998. --Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,3),nil,nil,true)
  2999. ref=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
  3000. ref.Anchored=true
  3001. ref.CFrame=cf(pos)
  3002. --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
  3003. game:GetService("Debris"):AddItem(ref,1)
  3004. ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt(5,5,5))
  3005. ref2.Anchored=true
  3006. ref2.CFrame=cf(pos)
  3007. --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
  3008. so("199146181",ref2,1,1.6)
  3009. game:GetService("Debris"):AddItem(ref2,5)
  3010. --MagicCircle(BrickColor.new("Really red"),ref.CFrame,40,40,40,1,1,1,.05)
  3011. freeze=true
  3012. MagicCircle(BrickColor.new("Really red"),cf(ref.Position),20,20,20,20,20,20,.1)
  3013. MagniDamage(ref,15,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(10,15),nil,nil,true,"Movement",.1,100)
  3014. freeze=false
  3015. for i=1,8 do
  3016. BreakEffect(BrickColor.new("Really 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)
  3017. end
  3018. end
  3019. if Thing[3]<=0 then
  3020. Thing[8].Transparency=1
  3021. Thing[11].Enabled=false
  3022. Thing[12].Enabled=false
  3023. game:GetService("Debris"):AddItem(Thing[8],5)
  3024. table.remove(Effects,e)
  3025. end
  3026. end
  3027. if Thing[2]=="SatelliteStrike" then
  3028. if Thing[5]<200 then
  3029. Thing[5]=Thing[5]+2
  3030. Thing[4].Scale=vt(Thing[5],5,Thing[5])
  3031. else
  3032. refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3033. refda.Anchored=true
  3034. refda.CFrame=cf(Thing[1].Position)
  3035. game:GetService("Debris"):AddItem(refda,1)
  3036. so("334325056",refda,1,1)
  3037. so("199145739",refda,.8,2)
  3038. MagniDamage(refda,2000000000,2000000000,2000000000,2000000000,"Knockdown2",refda,0,1,math.random(2000000000,2000000000),nil,nil,true,"Movement",.2000000000,2000000000)
  3039. MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
  3040. MagicBlock(BrickColor.new("Medium blue"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
  3041. for i=1,15 do
  3042. 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))
  3043. freezepart.Anchored=true
  3044. freezepart.CanCollide=true
  3045. 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))
  3046. game:GetService("Debris"):AddItem(freezepart,5)
  3047. end
  3048. Thing[1].Parent=nil
  3049. --MagicIcicle(BrickColor.new("Bright green"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
  3050. table.remove(Effects,e)
  3051. end
  3052. end
  3053. if Thing[2]=="SatelliteStrike2" then
  3054. if Thing[5]<300 then
  3055. Thing[5]=Thing[5]+2
  3056. Thing[4].Scale=vt(Thing[5],5,Thing[5])
  3057. else
  3058. refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3059. refda.Anchored=true
  3060. refda.CFrame=cf(Thing[1].Position)
  3061. game:GetService("Debris"):AddItem(refda,1)
  3062. refda2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
  3063. refda2.Anchored=true
  3064. refda2.CFrame=refda.CFrame*cf(0,-10,0)
  3065. game:GetService("Debris"):AddItem(refda2,1)
  3066. so("178452221",refda,1,1.2)
  3067. so("334325056",refda,1,1)
  3068. MagniDamage(refda,2000000000,2000000000,2000000000,math.random(2000000000,2000000000),"Knockdown2",refda2,0,1,math.random(2000000000,2000000000),nil,nil,true,"Damage",.2000000000,2000000000)
  3069. --MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
  3070. MagicBlock(BrickColor.new("Medium blue"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
  3071. MagicWave2(BrickColor.new("Really red"),cf(refda.Position),40,30,40,5,8,5,.07)
  3072. --[[for i=1,15 do
  3073. 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))
  3074. freezepart.Anchored=true
  3075. freezepart.CanCollide=true
  3076. 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))
  3077. game:GetService("Debris"):AddItem(freezepart,5)
  3078. end]]
  3079. Thing[1].Parent=nil
  3080. --MagicIcicle(BrickColor.new("Bright green"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
  3081. table.remove(Effects,e)
  3082. end
  3083. end
  3084. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="ShootIce" and Thing[2]~="SatelliteStrike" and Thing[2]~="SatelliteStrike2" then
  3085. if Thing[1].Transparency<=1 then
  3086. if Thing[2]=="Block1" then
  3087. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3088. Mesh=Thing[7]
  3089. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3090. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3091. elseif Thing[2]=="Block2" then
  3092. Thing[1].CFrame=Thing[1].CFrame
  3093. Mesh=Thing[7]
  3094. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3095. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3096. elseif Thing[2]=="Cylinder" then
  3097. Mesh=Thing[7]
  3098. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3099. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3100. elseif Thing[2]=="Cylinder2" then
  3101. Mesh=Thing[7]
  3102. if Thing[1].Transparency<=.5 then
  3103. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3104. Thing[8]=Thing[8]+.2
  3105. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)*euler(0,Thing[8],0)
  3106. else
  3107. Mesh.Scale=Mesh.Scale+vt(Thing[4]/2,-Thing[5]/1,Thing[6]/2)
  3108. Thing[1].CFrame=Thing[1].CFrame*cf(0,-1,0)
  3109. end
  3110. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3111. elseif Thing[2]=="Shatter" then
  3112. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3113. Thing[4]=Thing[4]*cf(0,Thing[7],0)
  3114. Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
  3115. --Thing[1].CFrame=Thing[1].CFrame
  3116. Thing[6]=Thing[6]+Thing[5]
  3117. elseif Thing[2]=="Blood" then
  3118. Mesh=Thing[7]
  3119. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  3120. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3121. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3122. elseif Thing[2]=="Elec" then
  3123. Mesh=Thing[7]
  3124. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3125. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3126. elseif Thing[2]=="Disappear" then
  3127. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3128. end
  3129. else
  3130. table.remove(Effects,e)
  3131. end
  3132. end
  3133. end
  3134. --end
  3135. end
  3136. end
  3137. end
  3138. end
  3139. refs.Parent=nil
  3140. effects.Parent=nil
  3141. Humanoid.Parent=nil
  3142. for _,c in pairs(Character:children()) do
  3143. if c.className=="Part" then
  3144. --[[c:BreakJoints()
  3145. c.CanCollide=true
  3146. c.Anchored=false]]
  3147. c.Anchored=true
  3148. end
  3149. end
  3150. for _,c in pairs(armor:children()) do
  3151. if c.className=="Part" then
  3152. --[[c:BreakJoints()
  3153. c.CanCollide=true
  3154. c.Anchored=false]]
  3155. c.Anchored=true
  3156. end
  3157. end
  3158. for _,c in pairs(Character:children()) do
  3159. if c.className=="Part" then
  3160. if c.Name~="Left Arm" then
  3161. swait()
  3162. end
  3163. c:BreakJoints()
  3164. c.CanCollide=false
  3165. c.Anchored=false
  3166. end
  3167. end
  3168. for _,c in pairs(armor:children()) do
  3169. if c.className=="Part" then
  3170. swait()
  3171. c:BreakJoints()
  3172. c.CanCollide=false
  3173. c.Anchored=false
  3174. wait(6)
  3175. game.Lighting.Ambient = Color3.new(0,0,0)
  3176.  
  3177. end
  3178. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement