Advertisement
Robloxian_Scripter

Untitled

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