Advertisement
Guest User

Untitled

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