Upscalefanatic3

Giant Nelfhim script works as serverside on Voidacity

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