Advertisement
Guest User

Untitled

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