Advertisement
loleristhegoat

Untitled

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