reset234567890

Untitled

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