Advertisement
zMustacheSheepYT

Wither Storm.Sound+

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