Advertisement
lafur

Untitled

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