Advertisement
miissso

d

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