Advertisement
CerealK

boss

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