Advertisement
loleristhegoat

Untitled

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