Advertisement
Guest User

Spectrum Glitcher edit (WIP)

a guest
Jul 19th, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 457.84 KB | None | 0 0
  1.  
  2. wait(0.2)
  3.  
  4.  
  5. warn([[MemeGlitcher v5 AWAKENED Loaded.
  6. The super switcher.
  7. Velnorum is one of the first wielders.
  8.  
  9. Created, Reworked by NoobyGames12
  10. Edited by GodzPlaysRB
  11. Edited by wanTH092 (Gam_Filano CH)
  12. SpectrumGlitcher Developers ^^^
  13. ]])
  14.  
  15.  
  16. ------------- ORIGINAL WIELDER OC: Velnorum
  17. print([[Icons:
  18. ! = New
  19. ? = Spoilers
  20. * = Exclusivity
  21. C = Changes
  22.  
  23. ]])
  24. warn([[V 4.35 Update Log:
  25. ! - Renamed Betrayal mode to Insanity mode ()
  26.  
  27. ! - Added a ChildLock for the R#$pe move.
  28. ! - Changed some mode's animations.
  29. ]])
  30. --- its obs smooth af do not touch
  31. ---- Sources and functions might be taken from others
  32. plr = game:service'Players'.LocalPlayer
  33. char = plr.Character
  34. hum = char.Humanoid
  35. local cam = game.Workspace.CurrentCamera
  36. Camera = cam
  37. local CamInterrupt = false
  38. local TwoD = false
  39. local TargetInfo = {nil, nil}
  40.  
  41. local KiddoLocko = true --Determines whether or not the r$#e move will work.
  42.  
  43. cam.CameraType = "Custom"
  44. t = char.Torso
  45. h = char.Head
  46. ra = char["Right Arm"]
  47. la = char["Left Arm"]
  48. rl = char["Right Leg"]
  49. ll = char["Left Leg"]
  50. tors = char.Torso
  51. lleg = char["Left Leg"]
  52. root = char.HumanoidRootPart
  53. local mouse = plr:GetMouse()
  54. hed = char.Head
  55. rleg = char["Right Leg"]
  56. rarm = char["Right Arm"]
  57. larm = char["Left Arm"]
  58. radian = math.rad
  59. random = math.random
  60. Vec3 = Vector3.new
  61. Inst = Instance.new
  62. cFrame = CFrame.new
  63. Euler = CFrame.fromEulerAnglesXYZ
  64. vt = Vector3.new
  65. bc = BrickColor.new
  66. br = BrickColor.random
  67. it = Instance.new
  68. cf = CFrame.new
  69. local Player_Size = 0
  70. cam = game.Workspace.CurrentCamera
  71. CF = CFrame.new
  72. angles = CFrame.Angles
  73. attack = false
  74. Euler = CFrame.fromEulerAnglesXYZ
  75. Rad = math.rad
  76. IT = Instance.new
  77. BrickC = BrickColor.new
  78. Cos = math.cos
  79. Acos = math.acos
  80. Sin = math.sin
  81. Asin = math.asin
  82. Abs = math.abs
  83. Mrandom = math.random
  84. Floor = math.floor
  85. IT = Instance.new
  86. CF = CFrame.new
  87. VT = Vector3.new
  88. RAD = math.rad
  89. C3 = Color3.new
  90. UD2 = UDim2.new
  91. BRICKC = BrickColor.new
  92. ANGLES = CFrame.Angles
  93. EULER = CFrame.fromEulerAnglesXYZ
  94. COS = math.cos
  95. ACOS = math.acos
  96. SIN = math.sin
  97. ASIN = math.asin
  98. ABS = math.abs
  99. MRANDOM = math.random
  100. FLOOR = math.floor
  101. local SINE = 0
  102.  
  103. local Booleans = {
  104. CamFollow = true,
  105. GyroUse = true
  106. }
  107.  
  108. function lerp(object, newCFrame, alpha)
  109. return object:lerp(newCFrame, alpha)
  110. end
  111.  
  112. local Directer = Inst("BodyGyro", root)
  113. Directer.MaxTorque = Vec3(0, 0, 0)
  114. Directer.P = 600000
  115. local CPart = Inst("Part")
  116. CPart.Anchored = true
  117. CPart.CanCollide = false
  118. CPart.Locked = true
  119. CPart.Transparency = 1
  120.  
  121. local rainbowmode = false
  122. local chaosmode = false
  123.  
  124. local kan = Instance.new("Sound",tors)
  125. kan.Volume = 0.85
  126. kan.TimePosition = 0
  127. kan.PlaybackSpeed = 1
  128. kan.Pitch = 1
  129. kan.SoundId = "rbxassetid://1564523997"
  130. kan.Name = "wrecked"
  131. kan.Looped = true
  132. kan:Play()
  133.  
  134. local currentThemePlaying = kan.SoundId
  135. local currentPitch = kan.Pitch
  136. local currentVol = kan.Volume
  137. function newTheme(ID,timepos,pitch,vol)
  138. local kanz = kan
  139. --kanz:Stop()
  140. kanz.Volume = vol
  141. --kanz.TimePosition = timepos
  142. kanz.PlaybackSpeed = pitch
  143. kanz.Pitch = pitch
  144. kanz.SoundId = ID
  145. kanz.Name = "wrecked"
  146. kanz.Looped = true
  147. currentThemePlaying = kanz.SoundId
  148. currentVol = kanz.Volume
  149. currentPitch = kanz.Pitch
  150. --kanz:Play()
  151. --coroutine.resume(coroutine.create(function()
  152. --wait(0.05)
  153. --end))
  154. end
  155.  
  156.  
  157. function newThemeCust(ID,timepos,pitch,vol)
  158. local kanz = kan
  159. kanz:Stop()
  160. kanz.Volume = vol
  161. kanz.TimePosition = timepos
  162. kanz.PlaybackSpeed = pitch
  163. kanz.Pitch = pitch
  164. kanz.SoundId = ID
  165. kanz.Name = "wrecked"
  166. kanz.Looped = true
  167. currentThemePlaying = kanz.SoundId
  168. currentVol = kanz.Volume
  169. currentPitch = kanz.Pitch
  170. kanz:Play()
  171. coroutine.resume(coroutine.create(function()
  172. wait(0.05)
  173. end))
  174. end
  175.  
  176. local mutedtog = false
  177.  
  178. function CameraEnshaking(Length,Intensity)
  179. coroutine.resume(coroutine.create(function()
  180. local intensity = 1*Intensity
  181. local rotM = 0.01*Intensity
  182. for i = 0, Length, 0.1 do
  183. swait()
  184. intensity = intensity - 0.05*Intensity/Length
  185. rotM = rotM - 0.0005*Intensity/Length
  186. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  187. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  188. end
  189. Humanoid.CameraOffset = Vec3(0, 0, 0)
  190. end))
  191. end
  192. CamShake=function(Part,Distan,Power,Times)
  193. local de=Part.Position
  194. for i,v in pairs(workspace:children()) do
  195. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  196. for _,c in pairs(v:children()) do
  197. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  198. local Noob=v.Humanoid
  199. if Noob~=nil then
  200. coroutine.resume(coroutine.create(function()
  201. FV = Instance.new("BoolValue", Noob)
  202. FV.Name = "CameraShake"
  203. for ShakeNum=1,Times do
  204. swait()
  205. local ef=Power
  206. if ef>=1 then
  207. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  208. else
  209. ef=Power*10
  210. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  211. end
  212. end
  213. Humanoid.CameraOffset = Vector3.new(0,0,0)
  214. FV:Destroy()
  215. end))
  216. CameraShake(Times, Power, Noob)
  217. end
  218. end
  219. end
  220. end
  221. end
  222. end
  223.  
  224. local toggleTag = true
  225. local bilguit = Instance.new("BillboardGui", hed)
  226. bilguit.Adornee = nil
  227. bilguit.Name = "ModeName"
  228. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  229. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  230. local modet = Instance.new("TextLabel", bilguit)
  231. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  232. modet.FontSize = "Size8"
  233. modet.TextScaled = true
  234. modet.TextTransparency = 0
  235. modet.BackgroundTransparency = 1
  236. modet.TextTransparency = 0
  237. modet.TextStrokeTransparency = 0
  238. modet.Font = "Antique"
  239. modet.TextStrokeColor3 = Color3.new(0,0,0)
  240. modet.TextColor3 = Color3.new(0,0,0)
  241. modet.Text = "Mr. Lonely"
  242.  
  243.  
  244. function chatfunc(text,color,typet,font,timeex)
  245. local chat = coroutine.wrap(function()
  246. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  247. Character:FindFirstChild("TalkingBillBoard"):destroy()
  248. end
  249. local naeeym2 = Instance.new("BillboardGui",Character)
  250. naeeym2.Size = UDim2.new(0,100,0,40)
  251. naeeym2.StudsOffset = Vector3.new(0,3,0)
  252. naeeym2.Adornee = Character.Head
  253. naeeym2.Name = "TalkingBillBoard"
  254. local tecks2 = Instance.new("TextLabel",naeeym2)
  255. tecks2.BackgroundTransparency = 1
  256. tecks2.BorderSizePixel = 0
  257. tecks2.Text = ""
  258. tecks2.Font = font
  259. tecks2.TextSize = 30
  260. tecks2.TextStrokeTransparency = 0
  261. tecks2.TextColor3 = color
  262. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  263. tecks2.Size = UDim2.new(1,0,0.5,0)
  264. local tecks3 = Instance.new("TextLabel",naeeym2)
  265. tecks3.BackgroundTransparency = 1
  266. tecks3.BorderSizePixel = 0
  267. tecks3.Text = ""
  268. tecks3.Font = font
  269. tecks3.TextSize = 30
  270. tecks3.TextStrokeTransparency = 0
  271. if typet == "Inverted" then
  272. tecks3.TextColor3 = Color3.new(0,0,0)
  273. tecks3.TextStrokeColor3 = color
  274. elseif typet == "Normal" then
  275. tecks3.TextColor3 = color
  276. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  277. end
  278. tecks3.Size = UDim2.new(1,0,0.5,0)
  279. coroutine.resume(coroutine.create(function()
  280. while true do
  281. swait(1)
  282. if chaosmode == true then
  283. tecks2.TextColor3 = BrickColor.random().Color
  284. tecks3.TextStrokeColor3 = BrickColor.random().Color
  285. end
  286. end
  287. end))
  288. modet.TextTransparency = modet.TextTransparency + 1
  289. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  290. for i = 0, 74*timeex do
  291. swait()
  292. modet.TextTransparency = 1
  293. modet.TextStrokeTransparency = 1
  294. tecks2.Text = text
  295. tecks3.Text = text
  296. end
  297. local randomrot = math.random(1,2)
  298. if randomrot == 1 then
  299. for i = 1, 50 do
  300. swait()
  301. tecks2.Text = text
  302. tecks3.Text = text
  303. modet.TextTransparency = modet.TextTransparency - .02
  304. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  305. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  306. tecks2.TextTransparency = tecks2.TextTransparency + .04
  307. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  308. tecks3.TextTransparency = tecks2.TextTransparency + .04
  309. end
  310. elseif randomrot == 2 then
  311. for i = 1, 50 do
  312. swait()
  313. tecks2.Text = text
  314. tecks3.Text = text
  315. modet.TextTransparency = modet.TextTransparency - .02
  316. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  317. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  318. tecks2.TextTransparency = tecks2.TextTransparency + .04
  319. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  320. tecks3.TextTransparency = tecks2.TextTransparency + .04
  321. end
  322. end
  323. modet.TextTransparency = 0
  324. modet.TextStrokeTransparency = 0
  325. if toggleTag == false then
  326. modet.TextTransparency = 1
  327. modet.TextStrokeTransparency = 1
  328. end
  329. naeeym2:Destroy()
  330. end)
  331. chat()
  332. end
  333.  
  334. function bosschatfunc(text,color,watval)
  335. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  336. coroutine.resume(coroutine.create(function()
  337. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  338. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  339. end
  340. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  341. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  342. scrg.Name = "Dialog"
  343. local txtlb = Instance.new("TextLabel",scrg)
  344. txtlb.Text = ""
  345. txtlb.Font = "Bodoni"
  346. txtlb.TextColor3 = Color3.new(0,0,0)
  347. txtlb.TextStrokeTransparency = 0
  348. txtlb.BackgroundTransparency = 0.75
  349. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  350. txtlb.TextStrokeColor3 = color
  351. txtlb.TextScaled = true
  352. txtlb.Size = UDim2.new(1,0,0.25,0)
  353. txtlb.TextXAlignment = "Left"
  354. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  355. local txtlb2 = Instance.new("TextLabel",scrg)
  356. txtlb2.Text = plr.Name
  357. txtlb2.Font = "Arcade"
  358. txtlb2.TextColor3 = Color3.new(0,0,0)
  359. txtlb2.TextStrokeTransparency = 0
  360. txtlb2.BackgroundTransparency = 1
  361. txtlb2.TextStrokeColor3 = color
  362. txtlb2.TextSize = 40
  363. txtlb2.Size = UDim2.new(1,0,0.25,0)
  364. txtlb2.TextXAlignment = "Left"
  365. txtlb2.Position = UDim2.new(0,0,1,0)
  366. local fvalen = 0.55
  367. local fval = -0.49
  368. coroutine.resume(coroutine.create(function()
  369. while true do
  370. swait()
  371. if chaosmode == true then
  372. txtlb.Rotation = math.random(-1,1)
  373. txtlb2.Rotation = math.random(-1,1)
  374. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  375. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  376. txtlb.TextStrokeColor3 = BrickColor.random().Color
  377. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  378. end
  379. end
  380. end))
  381. coroutine.resume(coroutine.create(function()
  382. while true do
  383. swait()
  384. if scrg.Parent ~= nil then
  385. fvalen = fvalen - 0.0001
  386. elseif scrg.Parent == nil then
  387. break
  388. end
  389. end
  390. end))
  391. local flol = 1.75
  392. local flil = 1.6
  393. coroutine.resume(coroutine.create(function()
  394. for i = 0, 9 do
  395. swait()
  396. fval = fval + 0.05
  397. flol = flol - 0.1
  398. flil = flil - 0.1
  399. txtlb.Text = ""
  400. txtlb.Position = UDim2.new(0,0,flol,0)
  401. txtlb2.Position = UDim2.new(0,0,flil,0)
  402. end
  403. txtlb.Text = text
  404. wait(watval)
  405. local valinc = 0
  406. for i = 0, 99 do
  407. swait()
  408. valinc = valinc + 0.0001
  409. flol = flol + valinc
  410. flil = flil + valinc
  411. txtlb.Rotation = txtlb.Rotation + valinc*20
  412. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  413. txtlb.Position = UDim2.new(0,0,flol,0)
  414. txtlb2.Position = UDim2.new(0,0,flil,0)
  415. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  416. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  417. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  418. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  419. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  420. end
  421. scrg:Destroy()
  422. end))
  423. end))
  424. end
  425. end
  426.  
  427.  
  428. local Create = LoadLibrary("RbxUtility").Create
  429.  
  430. CFuncs = {
  431. ["Part"] = {
  432. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  433. local Part = Create("Part"){
  434. Parent = Parent,
  435. Reflectance = Reflectance,
  436. Transparency = Transparency,
  437. CanCollide = false,
  438. Locked = true,
  439. BrickColor = BrickColor.new(tostring(BColor)),
  440. Name = Name,
  441. Size = Size,
  442. Material = Material,
  443. }
  444. RemoveOutlines(Part)
  445. return Part
  446. end;
  447. };
  448.  
  449. ["Mesh"] = {
  450. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  451. local Msh = Create(Mesh){
  452. Parent = Part,
  453. Offset = OffSet,
  454. Scale = Scale,
  455. }
  456. if Mesh == "SpecialMesh" then
  457. Msh.MeshType = MeshType
  458. Msh.MeshId = MeshId
  459. end
  460. return Msh
  461. end;
  462. };
  463.  
  464. ["Mesh"] = {
  465. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  466. local Msh = Create(Mesh){
  467. Parent = Part,
  468. Offset = OffSet,
  469. Scale = Scale,
  470. }
  471. if Mesh == "SpecialMesh" then
  472. Msh.MeshType = MeshType
  473. Msh.MeshId = MeshId
  474. end
  475. return Msh
  476. end;
  477. };
  478.  
  479. ["Weld"] = {
  480. Create = function(Parent, Part0, Part1, C0, C1)
  481. local Weld = Create("Weld"){
  482. Parent = Parent,
  483. Part0 = Part0,
  484. Part1 = Part1,
  485. C0 = C0,
  486. C1 = C1,
  487. }
  488. return Weld
  489. end;
  490. };
  491.  
  492. ["Sound"] = {
  493. Create = function(id, par, vol, pit)
  494. coroutine.resume(coroutine.create(function()
  495. local S = Create("Sound"){
  496. Volume = vol,
  497. Name = "EffectSoundo",
  498. Pitch = pit or 1,
  499. SoundId = id,
  500. Parent = par or workspace,
  501. }
  502. wait()
  503. S:play()
  504. game:GetService("Debris"):AddItem(S, 10)
  505. end))
  506. end;
  507. };
  508.  
  509. ["TimeSound"] = {
  510. Create = function(id, par, vol, pit, timepos)
  511. coroutine.resume(coroutine.create(function()
  512. local S = Create("Sound"){
  513. Volume = vol,
  514. Name = "EffectSoundo",
  515. Pitch = pit or 1,
  516. SoundId = id,
  517. TimePosition = timepos,
  518. Parent = par or workspace,
  519. }
  520. wait()
  521. S:play()
  522. game:GetService("Debris"):AddItem(S, 10)
  523. end))
  524. end;
  525. };
  526. ["EchoSound"] = {
  527. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  528. coroutine.resume(coroutine.create(function()
  529. local Sas = Create("Sound"){
  530. Volume = vol,
  531. Name = "EffectSoundo",
  532. Pitch = pit or 1,
  533. SoundId = id,
  534. TimePosition = timepos,
  535. Parent = par or workspace,
  536. }
  537. local E = Create("EchoSoundEffect"){
  538. Delay = echodelay,
  539. Name = "Echo",
  540. Feedback = fedb,
  541. DryLevel = dryl,
  542. Parent = Sas,
  543. }
  544. wait()
  545. Sas:play()
  546. game:GetService("Debris"):AddItem(Sas, delays)
  547. end))
  548. end;
  549. };
  550.  
  551. ["LongSound"] = {
  552. Create = function(id, par, vol, pit)
  553. coroutine.resume(coroutine.create(function()
  554. local S = Create("Sound"){
  555. Volume = vol,
  556. Pitch = pit or 1,
  557. SoundId = id,
  558. Parent = par or workspace,
  559. }
  560. wait()
  561. S:play()
  562. game:GetService("Debris"):AddItem(S, 60)
  563. end))
  564. end;
  565. };
  566.  
  567. ["ParticleEmitter"] = {
  568. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  569. local fp = Create("ParticleEmitter"){
  570. Parent = Parent,
  571. Color = ColorSequence.new(Color1, Color2),
  572. LightEmission = LightEmission,
  573. Size = Size,
  574. Texture = Texture,
  575. Transparency = Transparency,
  576. ZOffset = ZOffset,
  577. Acceleration = Accel,
  578. Drag = Drag,
  579. LockedToPart = LockedToPart,
  580. VelocityInheritance = VelocityInheritance,
  581. EmissionDirection = EmissionDirection,
  582. Enabled = Enabled,
  583. Lifetime = LifeTime,
  584. Rate = Rate,
  585. Rotation = Rotation,
  586. RotSpeed = RotSpeed,
  587. Speed = Speed,
  588. VelocitySpread = VelocitySpread,
  589. }
  590. return fp
  591. end;
  592. };
  593.  
  594. CreateTemplate = {
  595.  
  596. };
  597. }
  598.  
  599.  
  600.  
  601. New = function(Object, Parent, Name, Data)
  602. local Object = Instance.new(Object)
  603. for Index, Value in pairs(Data or {}) do
  604. Object[Index] = Value
  605. end
  606. Object.Parent = Parent
  607. Object.Name = Name
  608. return Object
  609. end
  610. local halocolor = BrickColor.new("Pastel light blue")
  611. local halocolor2 = BrickColor.new("Cool yellow")
  612. local starcolor = BrickColor.new("Bright yellow")
  613. local lunacolor = BrickColor.new("Navy blue")
  614. local lunacolor2 = BrickColor.new("Bright blue")
  615. local wepcolor = BrickColor.new("Really black")
  616. local maincolor = BrickColor.new("Really black")
  617. local m = Instance.new("Model",char)
  618. local m2 = Instance.new("Model",char)
  619. local m3 = Instance.new("Model",char)
  620. local mw1 = Instance.new("Model",char)
  621. local mw2 = Instance.new("Model",char)
  622.  
  623.  
  624. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  625. local gui = it(GuiType)
  626. gui.Parent = parent
  627. gui.Text = text
  628. gui.BackgroundTransparency = backtrans
  629. gui.BackgroundColor3 = backcol
  630. gui.SizeConstraint = "RelativeXY"
  631. gui.TextXAlignment = "Center"
  632. gui.TextYAlignment = "Center"
  633. gui.Position = pos
  634. gui.Size = size
  635. gui.Font = "SourceSans"
  636. gui.FontSize = "Size14"
  637. gui.TextWrapped = false
  638. gui.TextStrokeTransparency = 0
  639. gui.TextColor = BrickColor.new("White")
  640. return gui
  641. end
  642. --------------------------- GUI STUFF
  643. local basgui = it("GuiMain")
  644. basgui.Parent = plr.PlayerGui
  645. basgui.Name = "VISgui"
  646. local fullscreenz = it("Frame")
  647. fullscreenz.Parent = basgui
  648. fullscreenz.BackgroundColor3 = Color3.new(0,0,0)
  649. fullscreenz.BackgroundTransparency = 1
  650. fullscreenz.BorderColor3 = Color3.new(0,0,0)
  651. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  652. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  653. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  654. imgl2.BackgroundTransparency = 1
  655. imgl2.BorderSizePixel = 0
  656. imgl2.ImageTransparency = 0.5
  657. imgl2.ImageColor3 = Color3.new(0,0,0)
  658. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  659. imgl2.Size = UDim2.new(0,1000,0,1000)
  660. imgl2.Image = "rbxassetid://2325939897"
  661. local techc = imgl2:Clone()
  662. techc.Parent = fullscreenz
  663. techc.ImageTransparency = 0
  664. techc.Size = UDim2.new(0,900,0,900)
  665. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  666. techc.ImageColor3 = Color3.new(0,0,0)
  667. techc.Image = "rbxassetid://2273224484"
  668. local circl = imgl2:Clone()
  669. circl.Parent = fullscreenz
  670. circl.ImageTransparency = 0
  671. circl.Size = UDim2.new(0,550,0,550)
  672. circl.Position = UDim2.new(0.75,25,0.55,25)
  673. circl.ImageColor3 = Color3.new(0,0,0)
  674. circl.Image = "rbxassetid://2312119891"
  675. local circl2 = imgl2:Clone()
  676. circl2.Parent = fullscreenz
  677. circl2.ImageTransparency = 0
  678. circl2.Size = UDim2.new(0,700,0,700)
  679. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  680. circl2.ImageColor3 = Color3.new(0,0,0)
  681. circl2.Image = "rbxassetid://2312119891"
  682. local imgl2b = imgl2:Clone()
  683. imgl2b.Parent = fullscreenz
  684. imgl2b.ImageTransparency = 0
  685. imgl2b.Size = UDim2.new(0,800,0,800)
  686. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  687. imgl2b.ImageColor3 = Color3.new(0,0,0)
  688. local ned = Instance.new("TextLabel",fullscreenz)
  689. ned.ZIndex = 2
  690. ned.Font = "Arcade"
  691. ned.BackgroundTransparency = 1
  692. ned.BorderSizePixel = 0.65
  693. ned.Size = UDim2.new(0.3,0,0.2,0)
  694. ned.Position = UDim2.new(0.7,0,0.8,0)
  695. ned.TextColor3 = BrickColor.new("Black").Color
  696. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  697. ned.TextScaled = true
  698. ned.TextStrokeTransparency = 0
  699. ned.Text = "Mr. Lonely"
  700. ned.TextSize = 24
  701. ned.Rotation = 1
  702. ned.TextXAlignment = "Right"
  703. ned.TextYAlignment = "Bottom"
  704.  
  705. local extrawingmod1 = Instance.new("Model",char)
  706. local extrawingmod2 = Instance.new("Model",char)
  707.  
  708. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  709. local p = Instance.new("Part")
  710. p.TopSurface = 0
  711. p.BottomSurface = 0
  712. p.Parent = parent
  713. p.Size = Vector3.new(0.1,0.1,0.1)
  714. p.Transparency = transparency
  715. p.Reflectance = reflectance
  716. p.CanCollide = false
  717. p.Locked = true
  718. p.BrickColor = brickcolor
  719. p.Material = material
  720. return p
  721. end
  722.  
  723. function CreateMesh(parent,meshtype,x1,y1,z1)
  724. local mesh = Instance.new("SpecialMesh",parent)
  725. mesh.MeshType = meshtype
  726. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  727. return mesh
  728. end
  729.  
  730. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  731. local mesh = Instance.new("SpecialMesh",parent)
  732. mesh.MeshType = "FileMesh"
  733. mesh.MeshId = meshid
  734. mesh.Scale = Vector3.new(x1,y1,z1)
  735. return mesh
  736. end
  737.  
  738.  
  739. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  740. local mesh = Instance.new("SpecialMesh",parent)
  741. mesh.MeshType = "FileMesh"
  742. mesh.MeshId = meshid
  743. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  744. mesh.Scale = Vector3.new(x1,y1,z1)
  745. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  746. return mesh
  747. end
  748.  
  749. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  750. local weld = Instance.new("Weld")
  751. weld.Parent = parent
  752. weld.Part0 = part0
  753. weld.Part1 = part1
  754. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  755. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  756. return weld
  757. end
  758.  
  759.  
  760. --------------
  761. --------------
  762. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  763. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  764. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  765. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  766.  
  767. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  768. CreateMesh(handle,"Brick",0,0,0)
  769. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  770. local valuaring = 10
  771. for i = 0, 49 do
  772. valuaring = valuaring + 10
  773. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  774. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  775. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  776. end
  777.  
  778. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  779. CreateMesh(handle,"Brick",0,0,0)
  780. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  781. local valuaring = 10
  782. for i = 0, 49 do
  783. valuaring = valuaring + 10
  784. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  785. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  786. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  787. end
  788.  
  789.  
  790. local handle = CreateParta(m,1,1,"Neon",maincolor)
  791. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  792. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  793.  
  794. --- Left wing.
  795.  
  796. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  797. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  798. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  799.  
  800. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  801. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  802. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  803. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  804. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  805. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  806. A0 = Instance.new('Attachment',wed)
  807. A0.Position = vt(0,0.25,0.25)
  808. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,0.5,3)
  810. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  811. A1 = Instance.new('Attachment',wed)
  812. A1.Position = vt(0,-0.25,-2)
  813. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,3,0.5)
  815. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  816.  
  817. tl1 = Instance.new('Trail',wed)
  818. tl1.Attachment0 = A1
  819. tl1.Attachment1 = A0
  820. tl1.Texture = "rbxassetid://2108945559"
  821. tl1.LightEmission = 1
  822. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  823. tl1.Color = ColorSequence.new(BrickColor.new('Black').Color)
  824. tl1.Lifetime = 0.6
  825.  
  826.  
  827. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  828. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  829. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  830.  
  831. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  832. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  833. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  834. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  835. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  836. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  837. A0 = Instance.new('Attachment',wed)
  838. A0.Position = vt(0,0.25,0.25)
  839. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.5,3)
  841. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. A1 = Instance.new('Attachment',wed)
  843. A1.Position = vt(0,-0.25,-2)
  844. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  845. CreateMesh(wed,"Wedge",0.05,3,0.5)
  846. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  847.  
  848. tl2 = Instance.new('Trail',wed)
  849. tl2.Attachment0 = A1
  850. tl2.Attachment1 = A0
  851. tl2.Texture = "rbxassetid://2108945559"
  852. tl2.LightEmission = 1
  853. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  854. tl2.Color = ColorSequence.new(BrickColor.new('Black').Color)
  855. tl2.Lifetime = 0.6
  856.  
  857. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  860.  
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. A0 = Instance.new('Attachment',wed)
  868. A0.Position = vt(0,0.25,0.25)
  869. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,3)
  871. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  872. A1 = Instance.new('Attachment',wed)
  873. A1.Position = vt(0,-0.25,-2)
  874. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,3,0.5)
  876. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  877.  
  878. tl3 = Instance.new('Trail',wed)
  879. tl3.Attachment0 = A1
  880. tl3.Attachment1 = A0
  881. tl3.Texture = "rbxassetid://2108945559"
  882. tl3.LightEmission = 1
  883. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  884. tl3.Color = ColorSequence.new(BrickColor.new('Black').Color)
  885. tl3.Lifetime = 0.6
  886.  
  887. tl1.Enabled = false
  888. tl2.Enabled = false
  889. tl3.Enabled = false
  890. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  891. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  892. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  893.  
  894. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  897. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  899. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,3)
  902. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  903. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,3,0.5)
  905. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906.  
  907. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  908. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  909. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  910.  
  911. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  913. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  914. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  917. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,3)
  919. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,3,0.5)
  922. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  923.  
  924. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  925. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  926. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  927.  
  928. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  930. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  931. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  933. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  934. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  935. CreateMesh(wed,"Wedge",0.05,0.5,3)
  936. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  937. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,3,0.5)
  939. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  940.  
  941. -- Right wing.
  942.  
  943. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946.  
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  950. A0 = Instance.new('Attachment',wed)
  951. A0.Position = vt(0,0.25,0.25)
  952. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,3)
  957. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  958. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,3,0.5)
  960. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  961. A1 = Instance.new('Attachment',wed)
  962. A1.Position = vt(0,2,0.25)
  963.  
  964. tr1 = Instance.new('Trail',wed)
  965. tr1.Attachment0 = A1
  966. tr1.Attachment1 = A0
  967. tr1.Texture = "rbxassetid://2108945559"
  968. tr1.LightEmission = 1
  969. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  970. tr1.Color = ColorSequence.new(BrickColor.new('Black').Color)
  971. tr1.Lifetime = 0.6
  972.  
  973. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  974. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  975. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976.  
  977. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980. A0 = Instance.new('Attachment',wed)
  981. A0.Position = vt(0,0.25,0.25)
  982. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  984. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  985. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,3)
  987. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,3,0.5)
  990. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991. A1 = Instance.new('Attachment',wed)
  992. A1.Position = vt(0,2,0.25)
  993.  
  994. tr2 = Instance.new('Trail',wed)
  995. tr2.Attachment0 = A1
  996. tr2.Attachment1 = A0
  997. tr2.Texture = "rbxassetid://2108945559"
  998. tr2.LightEmission = 1
  999. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1000. tr2.Color = ColorSequence.new(BrickColor.new('Black').Color)
  1001. tr2.Lifetime = 0.6
  1002.  
  1003. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1004. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1005. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1006.  
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1010. A0 = Instance.new('Attachment',wed)
  1011. A0.Position = vt(0,0.25,0.25)
  1012. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1013. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1014. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1015. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1016. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1017. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1018. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1019. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1020. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1021. A1 = Instance.new('Attachment',wed)
  1022. A1.Position = vt(0,2,0.25)
  1023.  
  1024. tr3 = Instance.new('Trail',wed)
  1025. tr3.Attachment0 = A1
  1026. tr3.Attachment1 = A0
  1027. tr3.Texture = "rbxassetid://2108945559"
  1028. tr3.LightEmission = 1
  1029. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1030. tr3.Color = ColorSequence.new(BrickColor.new('Black').Color)
  1031. tr3.Lifetime = 0.6
  1032.  
  1033.  
  1034. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1035. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1036. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1037.  
  1038. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1040. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1041. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1043. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1044. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1045. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1046. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1047. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1049. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1050.  
  1051. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1052. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1053. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1054.  
  1055. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1056. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1057. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1058. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1059. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1060. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1061. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1063. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1064. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1066. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067.  
  1068. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1069. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1070. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1071.  
  1072. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1074. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1075. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1076. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1077. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1078. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1079. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1080. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1081. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1082. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1083. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1084.  
  1085. --HERES THE RING
  1086.  
  1087.  
  1088. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1089. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1090. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1091. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1092. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1093. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1094. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1095. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1096. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1097.  
  1098.  
  1099. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1100. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1101. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1102.  
  1103. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1104. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1105. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1106.  
  1107.  
  1108.  
  1109. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1110. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1111. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1112.  
  1113. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1114. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1115. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1116.  
  1117. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1118. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1119. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1120.  
  1121. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1122. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1123. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1124. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1125. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1126. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1127.  
  1128. --- second ring
  1129.  
  1130.  
  1131. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1132. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1133. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1134.  
  1135. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1136. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1137. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1138.  
  1139.  
  1140.  
  1141. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1142. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1143. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144.  
  1145. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1146. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1147. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1148.  
  1149. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1150. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1151. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1152.  
  1153. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1154. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1155. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1156. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1157. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1158. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1159.  
  1160.  
  1161.  
  1162. for i, v in pairs(m:GetChildren()) do
  1163. if v:IsA("Part") then
  1164. v.BrickColor = BrickColor.new("Black")
  1165. v.Material = "Glass"
  1166. end
  1167. end
  1168. for i, v in pairs(m2:GetChildren()) do
  1169. if v:IsA("Part") then
  1170. v.BrickColor = BrickColor.new("Black")
  1171. v.Material = "Granite"
  1172. end
  1173. end
  1174. for i, v in pairs(m3:GetChildren()) do
  1175. if v:IsA("Part") then
  1176. v.BrickColor = BrickColor.new("Black")
  1177. v.Material = "Neon"
  1178. end
  1179. end
  1180. for i, v in pairs(mw2:GetChildren()) do
  1181. if v:IsA("Part") then
  1182. v.BrickColor = BrickColor.new("Black")
  1183. v.Material = "Neon"
  1184. end
  1185. end
  1186. for i, v in pairs(mw1:GetChildren()) do
  1187. if v:IsA("Part") then
  1188. v.Transparency = 1
  1189. v.BrickColor = BrickColor.new("Black")
  1190. v.Material = "Neon"
  1191. end
  1192. end
  1193. for i, v in pairs(extrawingmod1:GetChildren()) do
  1194. if v:IsA("Part") then
  1195. v.Transparency = 1
  1196. v.BrickColor = BrickColor.new("White")
  1197. v.Material = "Neon"
  1198. end
  1199. end
  1200. for i, v in pairs(extrawingmod2:GetChildren()) do
  1201. if v:IsA("Part") then
  1202. v.Transparency = 1
  1203. v.BrickColor = BrickColor.new("White")
  1204. v.Material = "Neon"
  1205. end
  1206. end
  1207. local MAINRUINCOLOR = BrickColor.new("Black")
  1208. ------
  1209.  
  1210.  
  1211. function RemoveOutlines(part)
  1212. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1213. end
  1214. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1215. local Part = Create("Part")({
  1216. Parent = Parent,
  1217. Reflectance = Reflectance,
  1218. Transparency = Transparency,
  1219. CanCollide = false,
  1220. Locked = true,
  1221. BrickColor = BrickColor.new(tostring(BColor)),
  1222. Name = Name,
  1223. Size = Size,
  1224. Material = Material
  1225. })
  1226. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1227. RemoveOutlines(Part)
  1228. return Part
  1229. end
  1230. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1231. local Msh = Create(Mesh)({
  1232. Parent = Part,
  1233. Offset = OffSet,
  1234. Scale = Scale
  1235. })
  1236. if Mesh == "SpecialMesh" then
  1237. Msh.MeshType = MeshType
  1238. Msh.MeshId = MeshId
  1239. end
  1240. return Msh
  1241. end
  1242. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1243. local Weld = Create("Weld")({
  1244. Parent = Parent,
  1245. Part0 = Part0,
  1246. Part1 = Part1,
  1247. C0 = C0,
  1248. C1 = C1
  1249. })
  1250. return Weld
  1251. end
  1252.  
  1253. Player = plr
  1254. Character=Player.Character
  1255. PlayerGui=Player.PlayerGui
  1256. Backpack=Player.Backpack
  1257. Torso=Character.Torso
  1258. Head=Character.Head
  1259. Humanoid=Character.Humanoid
  1260. m=Instance.new('Model',Character)
  1261. LeftArm=Character["Left Arm"]
  1262. LeftLeg=Character["Left Leg"]
  1263. RightArm=Character["Right Arm"]
  1264. RightLeg=Character["Right Leg"]
  1265. LS=Torso["Left Shoulder"]
  1266. LH=Torso["Left Hip"]
  1267. RS=Torso["Right Shoulder"]
  1268. RH=Torso["Right Hip"]
  1269. Face = Head.face
  1270. Neck=Torso.Neck
  1271. it=Instance.new
  1272. attacktype=1
  1273. vt=Vector3.new
  1274. cf=CFrame.new
  1275. euler=CFrame.fromEulerAnglesXYZ
  1276. angles=CFrame.Angles
  1277. cloaked=false
  1278. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1279. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1280. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1281. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1282. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1283. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1284. RootPart=Character.HumanoidRootPart
  1285. RootJoint=RootPart.RootJoint
  1286. RootCF=euler(-1.57,0,3.14)
  1287. attack = false
  1288. attackdebounce = false
  1289. deb=false
  1290. equipped=true
  1291. hand=false
  1292. combo=0
  1293. mana=0
  1294. trispeed=.2
  1295. attackmode='none'
  1296. local idle=0
  1297. local Anim="Idle"
  1298. local Effects={}
  1299. local gun=false
  1300. local shoot=false
  1301. local sine = 0
  1302. local change = 1
  1303.  
  1304. function RecolorTextAndRename(name,col1,col2,font)
  1305. modet.TextStrokeColor3 = col2
  1306. modet.TextColor3 = col1
  1307. modet.Font = font
  1308. modet.Text = name
  1309. techc.ImageColor3 = col2
  1310. circl.ImageColor3 = col2
  1311. circl2.ImageColor3 = col1
  1312. imgl2.ImageColor3 = col1
  1313. imgl2b.ImageColor3 = col2
  1314. ned.Text = name
  1315. ned.TextColor3 = col1
  1316. ned.TextStrokeColor3 = col2
  1317. end
  1318. --save shoulders
  1319. RSH, LSH=nil, nil
  1320. --welds
  1321. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1322. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1323. LH=Torso["Left Hip"]
  1324. RH=Torso["Right Hip"]
  1325. TorsoColor=Torso.BrickColor
  1326. function NoOutline(Part)
  1327. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1328. end
  1329. ch=Character
  1330. RSH=ch.Torso["Right Shoulder"]
  1331. LSH=ch.Torso["Left Shoulder"]
  1332. --
  1333. RSH.Parent=nil
  1334. LSH.Parent=nil
  1335. --
  1336. RW.Name="Right Shoulder"
  1337. RW.Part0=ch.Torso
  1338. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1339. RW.C1=cf(0, 0.5, 0)
  1340. RW.Part1=ch["Right Arm"]
  1341. RW.Parent=ch.Torso
  1342. --
  1343. LW.Name="Left Shoulder"
  1344. LW.Part0=ch.Torso
  1345. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1346. LW.C1=cf(0, 0.5, 0)
  1347. LW.Part1=ch["Left Arm"]
  1348. LW.Parent=ch.Torso
  1349.  
  1350. local Stats=Instance.new("BoolValue")
  1351. Stats.Name="Stats"
  1352. Stats.Parent=Character
  1353. local Atk=Instance.new("NumberValue")
  1354. Atk.Name="Damage"
  1355. Atk.Parent=Stats
  1356. Atk.Value=1
  1357. local Def=Instance.new("NumberValue")
  1358. Def.Name="Defense"
  1359. Def.Parent=Stats
  1360. Def.Value=1
  1361. local Speed=Instance.new("NumberValue")
  1362. Speed.Name="Speed"
  1363. Speed.Parent=Stats
  1364. Speed.Value=1
  1365. local Mvmt=Instance.new("NumberValue")
  1366. Mvmt.Name="Movement"
  1367. Mvmt.Parent=Stats
  1368. Mvmt.Value=1
  1369.  
  1370. local donum=0
  1371. local ast = {744586075,385254610}
  1372.  
  1373. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1374. local fp=it("Part")
  1375. fp.formFactor=formfactor
  1376. fp.Parent=parent
  1377. fp.Reflectance=reflectance
  1378. fp.Transparency=transparency
  1379. fp.CanCollide=false
  1380. fp.Locked=true
  1381. fp.BrickColor=brickcolor
  1382. fp.Name=name
  1383. fp.Size=size
  1384. fp.Position=Torso.Position
  1385. NoOutline(fp)
  1386. fp.Material="SmoothPlastic"
  1387. fp:BreakJoints()
  1388. return fp
  1389. end
  1390.  
  1391. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1392. local mesh=it(Mesh)
  1393. mesh.Parent=part
  1394. if Mesh=="SpecialMesh" then
  1395. mesh.MeshType=meshtype
  1396. if meshid~="nil" then
  1397. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1398. end
  1399. end
  1400. mesh.Offset=offset
  1401. mesh.Scale=scale
  1402. return mesh
  1403. end
  1404.  
  1405. function weld(parent,part0,part1,c0)
  1406. local weld=it("Weld")
  1407. weld.Parent=parent
  1408. weld.Part0=part0
  1409. weld.Part1=part1
  1410. weld.C0=c0
  1411. return weld
  1412. end
  1413.  
  1414. local Color1=Torso.BrickColor
  1415.  
  1416. local bodvel=Instance.new("BodyVelocity")
  1417. local bg=Instance.new("BodyGyro")
  1418.  
  1419. --------- SazEreno's Artificial HB --------------
  1420. ArtificialHB = Instance.new("BindableEvent", script)
  1421. ArtificialHB.Name = "ArtificialHB"
  1422.  
  1423. script:WaitForChild("ArtificialHB")
  1424. Frame_Speed = 1 / 60
  1425. frame = Frame_Speed
  1426. tf = 0
  1427. allowframeloss = false
  1428. tossremainder = false
  1429. lastframe = tick()
  1430. script.ArtificialHB:Fire()
  1431.  
  1432. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1433. tf = tf + s
  1434. if tf >= frame then
  1435. if allowframeloss then
  1436. script.ArtificialHB:Fire()
  1437. lastframe = tick()
  1438. else
  1439. for i = 1, math.floor(tf / frame) do
  1440. script.ArtificialHB:Fire()
  1441. end
  1442. lastframe = tick()
  1443. end
  1444. if tossremainder then
  1445. tf = 0
  1446. else
  1447. tf = tf - frame * math.floor(tf / frame)
  1448. end
  1449. end
  1450. end)
  1451.  
  1452. ------------------
  1453. function swait(num)
  1454. if num == 0 or num == nil then
  1455. ArtificialHB.Event:wait()
  1456. else
  1457. for i = 1, num do
  1458. ArtificialHB.Event:wait()
  1459. end
  1460. end
  1461. end
  1462. -------- RAINBOW LEAVE IT TO ME
  1463. local r = 255
  1464. local g = 0
  1465. local b = 0
  1466. coroutine.resume(coroutine.create(function()
  1467. while wait() do
  1468. for i = 0, 254/5 do
  1469. swait()
  1470. g = g + 5
  1471. end
  1472. for i = 0, 254/5 do
  1473. swait()
  1474. r = r - 5
  1475. end
  1476. for i = 0, 254/5 do
  1477. swait()
  1478. b = b + 5
  1479. end
  1480. for i = 0, 254/5 do
  1481. swait()
  1482. g = g - 5
  1483. end
  1484. for i = 0, 254/5 do
  1485. swait()
  1486. r = r + 5
  1487. end
  1488. for i = 0, 254/5 do
  1489. swait()
  1490. b = b - 5
  1491. end
  1492. end
  1493. end))
  1494.  
  1495.  
  1496. so = function(id,par,vol,pit)
  1497. coroutine.resume(coroutine.create(function()
  1498. local sou = Instance.new("Sound",par or workspace)
  1499. sou.Volume=vol
  1500. sou.Pitch=pit or 1
  1501. sou.SoundId=id
  1502. swait()
  1503. sou:play()
  1504. game:GetService("Debris"):AddItem(sou,6)
  1505. end))
  1506. end
  1507.  
  1508. function clerp(a,b,t)
  1509. local qa = {QuaternionFromCFrame(a)}
  1510. local qb = {QuaternionFromCFrame(b)}
  1511. local ax, ay, az = a.x, a.y, a.z
  1512. local bx, by, bz = b.x, b.y, b.z
  1513. local _t = 1-t
  1514. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1515. end
  1516.  
  1517. function QuaternionFromCFrame(cf)
  1518. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1519. local trace = m00 + m11 + m22
  1520. if trace > 0 then
  1521. local s = math.sqrt(1 + trace)
  1522. local recip = 0.5/s
  1523. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1524. else
  1525. local i = 0
  1526. if m11 > m00 then
  1527. i = 1
  1528. end
  1529. if m22 > (i == 0 and m00 or m11) then
  1530. i = 2
  1531. end
  1532. if i == 0 then
  1533. local s = math.sqrt(m00-m11-m22+1)
  1534. local recip = 0.5/s
  1535. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1536. elseif i == 1 then
  1537. local s = math.sqrt(m11-m22-m00+1)
  1538. local recip = 0.5/s
  1539. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1540. elseif i == 2 then
  1541. local s = math.sqrt(m22-m00-m11+1)
  1542. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1543. end
  1544. end
  1545. end
  1546.  
  1547. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1548. local xs, ys, zs = x + x, y + y, z + z
  1549. local wx, wy, wz = w*xs, w*ys, w*zs
  1550. local xx = x*xs
  1551. local xy = x*ys
  1552. local xz = x*zs
  1553. local yy = y*ys
  1554. local yz = y*zs
  1555. local zz = z*zs
  1556. 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))
  1557. end
  1558.  
  1559. function QuaternionSlerp(a, b, t)
  1560. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1561. local startInterp, finishInterp;
  1562. if cosTheta >= 0.0001 then
  1563. if (1 - cosTheta) > 0.0001 then
  1564. local theta = math.acos(cosTheta)
  1565. local invSinTheta = 1/math.sin(theta)
  1566. startInterp = math.sin((1-t)*theta)*invSinTheta
  1567. finishInterp = math.sin(t*theta)*invSinTheta
  1568. else
  1569. startInterp = 1-t
  1570. finishInterp = t
  1571. end
  1572. else
  1573. if (1+cosTheta) > 0.0001 then
  1574. local theta = math.acos(-cosTheta)
  1575. local invSinTheta = 1/math.sin(theta)
  1576. startInterp = math.sin((t-1)*theta)*invSinTheta
  1577. finishInterp = math.sin(t*theta)*invSinTheta
  1578. else
  1579. startInterp = t-1
  1580. finishInterp = t
  1581. end
  1582. end
  1583. 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
  1584. end
  1585.  
  1586. local function CFrameFromTopBack(at, top, back)
  1587. local right = top:Cross(back)
  1588. return CFrame.new(at.x, at.y, at.z,
  1589. right.x, top.x, back.x,
  1590. right.y, top.y, back.y,
  1591. right.z, top.z, back.z)
  1592. end
  1593.  
  1594. function Triangle(a, b, c)
  1595. local edg1 = (c-a):Dot((b-a).unit)
  1596. local edg2 = (a-b):Dot((c-b).unit)
  1597. local edg3 = (b-c):Dot((a-c).unit)
  1598. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1599. a, b, c = a, b, c
  1600. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1601. a, b, c = b, c, a
  1602. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1603. a, b, c = c, a, b
  1604. else
  1605. assert(false, "unreachable")
  1606. end
  1607.  
  1608. local len1 = (c-a):Dot((b-a).unit)
  1609. local len2 = (b-a).magnitude - len1
  1610. local width = (a + (b-a).unit*len1 - c).magnitude
  1611.  
  1612. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1613.  
  1614. local list = {}
  1615.  
  1616. if len1 > 0.01 then
  1617. local w1 = Instance.new('WedgePart', m)
  1618. game:GetService("Debris"):AddItem(w1,5)
  1619. w1.Material = "SmoothPlastic"
  1620. w1.FormFactor = 'Custom'
  1621. w1.BrickColor = BrickColor.new("Really red")
  1622. w1.Transparency = 0
  1623. w1.Reflectance = 0
  1624. w1.Material = "SmoothPlastic"
  1625. w1.CanCollide = false
  1626. local l1 = Instance.new("PointLight",w1)
  1627. l1.Color = Color3.new(170,0,0)
  1628. NoOutline(w1)
  1629. local sz = Vector3.new(0.2, width, len1)
  1630. w1.Size = sz
  1631. local sp = Instance.new("SpecialMesh",w1)
  1632. sp.MeshType = "Wedge"
  1633. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1634. w1:BreakJoints()
  1635. w1.Anchored = true
  1636. w1.Parent = workspace
  1637. w1.Transparency = 0.7
  1638. table.insert(Effects,{w1,"Disappear",.01})
  1639. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1640. table.insert(list,w1)
  1641. end
  1642.  
  1643. if len2 > 0.01 then
  1644. local w2 = Instance.new('WedgePart', m)
  1645. game:GetService("Debris"):AddItem(w2,5)
  1646. w2.Material = "SmoothPlastic"
  1647. w2.FormFactor = 'Custom'
  1648. w2.BrickColor = BrickColor.new("Really red")
  1649. w2.Transparency = 0
  1650. w2.Reflectance = 0
  1651. w2.Material = "SmoothPlastic"
  1652. w2.CanCollide = false
  1653. local l2 = Instance.new("PointLight",w2)
  1654. l2.Color = Color3.new(170,0,0)
  1655. NoOutline(w2)
  1656. local sz = Vector3.new(0.2, width, len2)
  1657. w2.Size = sz
  1658. local sp = Instance.new("SpecialMesh",w2)
  1659. sp.MeshType = "Wedge"
  1660. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1661. w2:BreakJoints()
  1662. w2.Anchored = true
  1663. w2.Parent = workspace
  1664. w2.Transparency = 0.7
  1665. table.insert(Effects,{w2,"Disappear",.01})
  1666. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1667. table.insert(list,w2)
  1668. end
  1669. return unpack(list)
  1670. end
  1671.  
  1672.  
  1673. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1674. if hit.Parent == nil then
  1675. return
  1676. end
  1677. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1678. for _, v in pairs(hit.Parent:children()) do
  1679. if v:IsA("Humanoid") then
  1680. h = v
  1681. end
  1682. end
  1683. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1684. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1685. return
  1686. end
  1687. local c = Create("ObjectValue")({
  1688. Name = "Editor",
  1689. Value = game:GetService("Players").ArtistBase,
  1690. Parent = h
  1691. })
  1692. game:GetService("Debris"):AddItem(c, 0.5)
  1693. if HitSound ~= nil and HitPitch ~= nil then
  1694. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1695. end
  1696. local Damage = math.random(minim, maxim)
  1697. local blocked = false
  1698. local block = hit.Parent:findFirstChild("Block")
  1699. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1700. blocked = true
  1701. block.Value = block.Value - 1
  1702. print(block.Value)
  1703. end
  1704. if blocked == false then
  1705. HitHealth = h.Health
  1706. h.MaxHealth = 100
  1707. h.Health = h.Health - Damage
  1708. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1709. print("gained kill")
  1710. dmg(h.Parent)
  1711. end
  1712. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1713. else
  1714. h.Health = h.Health - Damage / 2
  1715. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1716. end
  1717. if Type == "Knockdown" then
  1718. local hum = hit.Parent.Humanoid
  1719. hum.PlatformStand = true
  1720. coroutine.resume(coroutine.create(function(HHumanoid)
  1721. swait(1)
  1722. HHumanoid.PlatformStand = false
  1723. end), hum)
  1724. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1725. local bodvol = Create("BodyVelocity")({
  1726. velocity = angle * knockback,
  1727. P = 5000,
  1728. maxForce = Vector3.new(8000, 8000, 8000),
  1729. Parent = hit
  1730. })
  1731. local rl = Create("BodyAngularVelocity")({
  1732. P = 3000,
  1733. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1734. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1735. Parent = hit
  1736. })
  1737. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1738. game:GetService("Debris"):AddItem(rl, 0.5)
  1739. elseif Type == "Normal" then
  1740. local vp = Create("BodyVelocity")({
  1741. P = 500,
  1742. maxForce = Vector3.new(math.huge, 0, math.huge),
  1743. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1744. })
  1745. if knockback > 0 then
  1746. vp.Parent = hit.Parent.Head
  1747. end
  1748. game:GetService("Debris"):AddItem(vp, 0.5)
  1749. elseif Type == "Up" then
  1750. local bodyVelocity = Create("BodyVelocity")({
  1751. velocity = Vector3.new(0, 20, 0),
  1752. P = 5000,
  1753. maxForce = Vector3.new(8000, 8000, 8000),
  1754. Parent = hit
  1755. })
  1756. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1757. local bodyVelocity = Create("BodyVelocity")({
  1758. velocity = Vector3.new(0, 20, 0),
  1759. P = 5000,
  1760. maxForce = Vector3.new(8000, 8000, 8000),
  1761. Parent = hit
  1762. })
  1763. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1764. elseif Type == "Leech" then
  1765. local hum = hit.Parent.Humanoid
  1766. if hum ~= nil then
  1767. for i = 0, 2 do
  1768. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1769. end
  1770. Humanoid.Health = Humanoid.Health + 10
  1771. end
  1772. elseif Type == "UpKnock" then
  1773. local hum = hit.Parent.Humanoid
  1774. hum.PlatformStand = true
  1775. if hum ~= nil then
  1776. hitr = true
  1777. end
  1778. coroutine.resume(coroutine.create(function(HHumanoid)
  1779. swait(5)
  1780. HHumanoid.PlatformStand = false
  1781. hitr = false
  1782. end), hum)
  1783. local bodyVelocity = Create("BodyVelocity")({
  1784. velocity = Vector3.new(0, 20, 0),
  1785. P = 5000,
  1786. maxForce = Vector3.new(8000, 8000, 8000),
  1787. Parent = hit
  1788. })
  1789. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1790. local bodyVelocity = Create("BodyVelocity")({
  1791. velocity = Vector3.new(0, 20, 0),
  1792. P = 5000,
  1793. maxForce = Vector3.new(8000, 8000, 8000),
  1794. Parent = hit
  1795. })
  1796. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1797. elseif Type == "Snare" then
  1798. local bp = Create("BodyPosition")({
  1799. P = 2000,
  1800. D = 100,
  1801. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1802. position = hit.Parent.Torso.Position,
  1803. Parent = hit.Parent.Torso
  1804. })
  1805. game:GetService("Debris"):AddItem(bp, 1)
  1806. elseif Type == "Slashnare" then
  1807. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1808. for i = 1, math.random(4, 5) do
  1809. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1810. end
  1811. local bp = Create("BodyPosition")({
  1812. P = 2000,
  1813. D = 100,
  1814. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1815. position = hit.Parent.Torso.Position,
  1816. Parent = hit.Parent.Torso
  1817. })
  1818. game:GetService("Debris"):AddItem(bp, 1)
  1819. elseif Type == "Spike" then
  1820. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1821. local bp = Create("BodyPosition")({
  1822. P = 2000,
  1823. D = 100,
  1824. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1825. position = hit.Parent.Torso.Position,
  1826. Parent = hit.Parent.Torso
  1827. })
  1828. game:GetService("Debris"):AddItem(bp, 1)
  1829. elseif Type == "Freeze" then
  1830. local BodPos = Create("BodyPosition")({
  1831. P = 50000,
  1832. D = 1000,
  1833. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1834. position = hit.Parent.Torso.Position,
  1835. Parent = hit.Parent.Torso
  1836. })
  1837. local BodGy = Create("BodyGyro")({
  1838. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1839. P = 20000,
  1840. Parent = hit.Parent.Torso,
  1841. cframe = hit.Parent.Torso.CFrame
  1842. })
  1843. hit.Parent.Torso.Anchored = true
  1844. coroutine.resume(coroutine.create(function(Part)
  1845. swait(1.5)
  1846. Part.Anchored = false
  1847. end), hit.Parent.Torso)
  1848. game:GetService("Debris"):AddItem(BodPos, 3)
  1849. game:GetService("Debris"):AddItem(BodGy, 3)
  1850. end
  1851. local debounce = Create("BoolValue")({
  1852. Name = "DebounceHit",
  1853. Parent = hit.Parent,
  1854. Value = true
  1855. })
  1856. game:GetService("Debris"):AddItem(debounce, Delay)
  1857. c = Instance.new("ObjectValue")
  1858. c.Name = "Editor"
  1859. c.Value = Player
  1860. c.Parent = h
  1861. game:GetService("Debris"):AddItem(c, 0.5)
  1862. end
  1863. end
  1864. function ShowDamage(Pos, Text, Time, Color)
  1865. local Rate = 0.03333333333333333
  1866. local Pos = Pos or Vector3.new(0, 0, 0)
  1867. local Text = Text or ""
  1868. local Time = Time or 2
  1869. local Color = Color or Color3.new(1, 0, 1)
  1870. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1871. EffectPart.Anchored = true
  1872. local BillboardGui = Create("BillboardGui")({
  1873. Size = UDim2.new(3, 0, 3, 0),
  1874. Adornee = EffectPart,
  1875. Parent = EffectPart
  1876. })
  1877. local TextLabel = Create("TextLabel")({
  1878. BackgroundTransparency = 1,
  1879. Size = UDim2.new(1, 0, 1, 0),
  1880. Text = Text,
  1881. TextColor3 = Color,
  1882. TextScaled = true,
  1883. Font = Enum.Font.ArialBold,
  1884. Parent = BillboardGui
  1885. })
  1886. game.Debris:AddItem(EffectPart, Time + 0.1)
  1887. EffectPart.Parent = game:GetService("Workspace")
  1888. delay(0, function()
  1889. local Frames = Time / Rate
  1890. for Frame = 1, Frames do
  1891. wait(Rate)
  1892. local Percent = Frame / Frames
  1893. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1894. TextLabel.TextTransparency = Percent
  1895. end
  1896. if EffectPart and EffectPart.Parent then
  1897. EffectPart:Destroy()
  1898. end
  1899. end)
  1900. end
  1901. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1902. for _, c in pairs(workspace:children()) do
  1903. local hum = c:findFirstChildOfClass("Humanoid")
  1904. if hum ~= nil then
  1905. local head = c:findFirstChild("Head")
  1906. if head ~= nil then
  1907. local targ = head.Position - Part.Position
  1908. local mag = targ.magnitude
  1909. if magni >= mag and c.Name ~= Player.Name then
  1910. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1911. end
  1912. end
  1913. end
  1914. end
  1915. end
  1916.  
  1917. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1918. for _, c in pairs(workspace:children()) do
  1919. local hum = c:findFirstChild("Humanoid")
  1920. if hum ~= nil then
  1921. local head = c:findFirstChild("Torso")
  1922. if head ~= nil then
  1923. local targ = head.Position - Part.Position
  1924. local mag = targ.magnitude
  1925. if magni >= mag and c.Name ~= Player.Name then
  1926. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1927. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1928. end
  1929. end
  1930. end
  1931. end
  1932. end
  1933.  
  1934. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1935. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1936. end
  1937.  
  1938. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1939. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1940. prt.Anchored=true
  1941. prt.CFrame=cframe
  1942. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1943. --http://www.roblox.com/asset/?id=4770560
  1944. game:GetService("Debris"):AddItem(prt,2)
  1945. CF=prt.CFrame
  1946. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1947. for i=0,1,0.2 do
  1948. wait()
  1949. Part.CFrame=CF*cf(0,0,-0.4)
  1950. end
  1951. for i=0,1,delay do
  1952. wait()
  1953. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1954. Mesh.Scale=Mesh.Scale
  1955. end
  1956. for i=0,1,0.1 do
  1957. wait()
  1958. Part.Transparency=i
  1959. end
  1960. Part.Parent=nil
  1961. end),prt,msh,CF)
  1962. end
  1963.  
  1964. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1965. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1966. prt.Anchored=true
  1967. prt.Material = "Neon"
  1968. prt.CFrame=cframe
  1969. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1970. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1971. game:GetService("Debris"):AddItem(prt,5)
  1972. coroutine.resume(coroutine.create(function(Part,Mesh)
  1973. for i=0,1,delay do
  1974. swait()
  1975. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1976. Part.Transparency=i
  1977. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1978. end
  1979. Part.Parent=nil
  1980. end),prt,msh)
  1981. end
  1982.  
  1983. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1984. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1985. prt.Anchored=true
  1986. prt.Material = "Neon"
  1987. prt.CFrame=cframe
  1988. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1989. game:GetService("Debris"):AddItem(prt,5)
  1990. coroutine.resume(coroutine.create(function(Part,Mesh)
  1991. local rtype = rottype
  1992. for i=0,1,delay do
  1993. swait()
  1994. if rtype == 1 then
  1995. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1996. elseif rtype == 2 then
  1997. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1998. end
  1999. Part.Transparency=i
  2000. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2001. end
  2002. Part.Parent=nil
  2003. end),prt,msh)
  2004. end
  2005.  
  2006. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2007. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2008. prt.Anchored=true
  2009. prt.CFrame=cframe
  2010. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2011. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2012. game:GetService("Debris"):AddItem(prt,5)
  2013. coroutine.resume(coroutine.create(function(Part,Mesh)
  2014. for i=0,1,delay do
  2015. wait()
  2016. Part.Transparency=i
  2017. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2018. end
  2019. Part.Parent=nil
  2020. end),prt,msh)
  2021. end
  2022.  
  2023. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2024. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2025. prt.Anchored=true
  2026. prt.Material = "Neon"
  2027. prt.CFrame=cframe
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh)
  2031. local rtype = rottype
  2032. for i=0,1,delay do
  2033. swait()
  2034. if rtype == 1 then
  2035. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2036. elseif rtype == 2 then
  2037. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2038. end
  2039. Part.Transparency=i
  2040. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2041. end
  2042. Part.Parent=nil
  2043. end),prt,msh)
  2044. end
  2045.  
  2046. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2047. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2048. prt.Anchored=true
  2049. prt.Material = "Neon"
  2050. prt.CFrame=cframe
  2051. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2052. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2053. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2054. game:GetService("Debris"):AddItem(prt,5)
  2055. coroutine.resume(coroutine.create(function(Part,Mesh)
  2056. local rtype = rottype
  2057. for i=0,1,delay do
  2058. swait()
  2059. if rtype == 1 then
  2060. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2061. elseif rtype == 2 then
  2062. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2063. end
  2064. dec.Transparency=i
  2065. dec2.Transparency=i
  2066. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2067. end
  2068. Part.Parent=nil
  2069. end),prt,msh)
  2070. end
  2071.  
  2072. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2073. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2074. prt.Anchored=true
  2075. prt.Material = "Neon"
  2076. prt.CFrame=cframe
  2077. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2078. game:GetService("Debris"):AddItem(prt,5)
  2079. coroutine.resume(coroutine.create(function(Part,Mesh)
  2080. local rtype = rottype
  2081. for i=0,1,delay do
  2082. swait()
  2083. if rtype == 1 then
  2084. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2085. elseif rtype == 2 then
  2086. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2087. end
  2088. prt.Transparency=i
  2089. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2090. end
  2091. Part.Parent=nil
  2092. end),prt,msh)
  2093. end
  2094.  
  2095. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2096. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2097. prt.Anchored=true
  2098. prt.Material = "Neon"
  2099. prt.CFrame=cframe
  2100. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2101. game:GetService("Debris"):AddItem(prt,5)
  2102. coroutine.resume(coroutine.create(function(Part,Mesh)
  2103. local rtype = rottype
  2104. for i=0,1,delay do
  2105. swait()
  2106. if rtype == 1 then
  2107. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2108. elseif rtype == 2 then
  2109. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2110. end
  2111. prt.Transparency=i
  2112. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2113. end
  2114. Part.Parent=nil
  2115. end),prt,msh)
  2116. end
  2117.  
  2118. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2119. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt.Anchored=true
  2121. prt.Material = "Neon"
  2122. prt.CFrame=cframe
  2123. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2124. game:GetService("Debris"):AddItem(prt,5)
  2125. coroutine.resume(coroutine.create(function(Part,Mesh)
  2126. local rtype = rottype
  2127. for i=0,1,delay do
  2128. swait()
  2129. if rtype == 1 then
  2130. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2131. elseif rtype == 2 then
  2132. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2133. end
  2134. prt.Transparency=i
  2135. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2136. end
  2137. Part.Parent=nil
  2138. end),prt,msh)
  2139. end
  2140.  
  2141. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2142. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2143. prt.Anchored=true
  2144. prt.Material = "Neon"
  2145. prt.CFrame=cframe
  2146. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2147. game:GetService("Debris"):AddItem(prt,5)
  2148. coroutine.resume(coroutine.create(function(Part,Mesh)
  2149. local rtype = rottype
  2150. for i=0,1,delay do
  2151. swait()
  2152. if rtype == 1 then
  2153. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2154. elseif rtype == 2 then
  2155. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2156. end
  2157. prt.Transparency=i
  2158. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2159. end
  2160. Part.Parent=nil
  2161. end),prt,msh)
  2162. end
  2163.  
  2164. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2165. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2166. prt.Anchored=false
  2167. prt.CFrame=cframe
  2168. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2169. local wld=weld(prt,prt,Parent,cframe)
  2170. game:GetService("Debris"):AddItem(prt,5)
  2171. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2172. for i=0,1,delay do
  2173. wait()
  2174. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2175. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2176. Part.Transparency=i
  2177. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2178. end
  2179. Part.Parent=nil
  2180. end),prt,msh,wld)
  2181. end
  2182.  
  2183. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2184. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2185. prt.Anchored=false
  2186. prt.CFrame=cframe
  2187. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2188. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2189. game:GetService("Debris"):AddItem(prt,5)
  2190. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2191. for i=0,1,delay do
  2192. wait()
  2193. Weld.C0=euler(i*20,0,0)
  2194. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2195. Part.Transparency=i
  2196. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2197. end
  2198. Part.Parent=nil
  2199. end),prt,msh,wld)
  2200. end
  2201.  
  2202. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2203. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2204. prt.Anchored=true
  2205. prt.CFrame=cframe
  2206. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2207. game:GetService("Debris"):AddItem(prt,2)
  2208. coroutine.resume(coroutine.create(function(Part,Mesh)
  2209. for i=0,1,delay do
  2210. wait()
  2211. Part.CFrame=Part.CFrame
  2212. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2213. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2214. prt2.Anchored=true
  2215. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2216. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2217. game:GetService("Debris"):AddItem(prt2,2)
  2218. coroutine.resume(coroutine.create(function(Part,Mesh)
  2219. for i=0,1,0.1 do
  2220. wait()
  2221. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2222. end
  2223. Part.Parent=nil
  2224. end),prt2,msh2)
  2225. end
  2226. for i=0,1,delay*2 do
  2227. wait()
  2228. Part.CFrame=Part.CFrame
  2229. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2230. end
  2231. Part.Parent=nil
  2232. end),prt,msh)
  2233. end
  2234.  
  2235. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2236. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2237. prt.Anchored=true
  2238. prt.CFrame=cframe
  2239. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2240. game:GetService("Debris"):AddItem(prt,2)
  2241. coroutine.resume(coroutine.create(function(Part,Mesh)
  2242. for i=0,1,delay do
  2243. wait()
  2244. Part.CFrame=Part.CFrame
  2245. Part.Transparency=i
  2246. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2247. end
  2248. Part.Parent=nil
  2249. end),prt,msh)
  2250. end
  2251.  
  2252. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2253. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2254. prt.Anchored=true
  2255. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2256. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2257. game:GetService("Debris"):AddItem(prt,2)
  2258. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2259. CF=Part.CFrame
  2260. Numbb=0
  2261. randnumb=math.random()/10
  2262. rand1=math.random()/10
  2263. for i=0,1,rand1 do
  2264. wait()
  2265. CF=CF*cf(0,math.random()/2,0)
  2266. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2267. Part.CFrame=CF*euler(Numbb,0,0)
  2268. Part.Transparency=i
  2269. Numbb=Numbb+randnumb
  2270. end
  2271. Part.Parent=nil
  2272. end),prt,CF,Numbb,randnumb)
  2273. end
  2274.  
  2275. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2276. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2277. prt.Anchored=true
  2278. prt.CFrame=cframe
  2279. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2280. game:GetService("Debris"):AddItem(prt,5)
  2281. coroutine.resume(coroutine.create(function(Part,Mesh)
  2282. for i=0,1,delay do
  2283. wait()
  2284. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2285. Part.Transparency=i
  2286. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2287. end
  2288. Part.Parent=nil
  2289. end),prt,msh)
  2290. end
  2291.  
  2292. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2293. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2294. prt.Anchored=true
  2295. prt.CFrame=cframe
  2296. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2297. game:GetService("Debris"):AddItem(prt,2)
  2298. coroutine.resume(coroutine.create(function(Part,Mesh)
  2299. for i=0,1,delay do
  2300. wait()
  2301. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2302. Part.Transparency=i
  2303. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2304. end
  2305. Part.Parent=nil
  2306. end),prt,msh)
  2307. end
  2308.  
  2309. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2310. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2311. prt.Anchored=true
  2312. prt.CFrame=cframe*cf(x,y,z)
  2313. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2314. game:GetService("Debris"):AddItem(prt,5)
  2315. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2316. local num=math.random()
  2317. local num2=math.random(-3,2)+math.random()
  2318. local numm=0
  2319. for i=0,1,delay*2 do
  2320. swait()
  2321. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2322. Part.Transparency=i
  2323. numm=numm+0.01
  2324. end
  2325. Part.Parent=nil
  2326. Mesh.Parent=nil
  2327. end),prt,msh,x,y,z)
  2328. end
  2329.  
  2330. function dmgstart(dmg,what)
  2331. hitcon = what.Touched:connect(function(hit)
  2332. local hum = hit.Parent:FindFirstChild("Humanoid")
  2333. if hum and not hum:IsDescendantOf(Character) then
  2334. hum:TakeDamage(dmg)
  2335. end
  2336. end)
  2337. end
  2338.  
  2339. function dmgstop()
  2340. hitcon:disconnect()
  2341. end
  2342.  
  2343. function Cloak()
  2344. Face.Parent=nil
  2345. cloaked=true
  2346. for _,v in pairs(Torso.Parent:children()) do
  2347. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2348. coroutine.resume(coroutine.create(function()
  2349. for i=0,1,0.2 do
  2350. wait()
  2351. v.Transparency=i
  2352. end
  2353. v.Transparency=1
  2354. end))
  2355. end
  2356. if v.className=="Hat" then
  2357. hatp=v.Handle
  2358. coroutine.resume(coroutine.create(function(derp)
  2359. for i=0,1,0.2 do
  2360. wait()
  2361. derp.Transparency=i
  2362. end
  2363. derp.Transparency=1
  2364. end),hatp)
  2365. end
  2366. end
  2367. for _,v in pairs(m:children()) do
  2368. if v.className=="Part" then
  2369. coroutine.resume(coroutine.create(function()
  2370. for i=0,1,0.2 do
  2371. wait()
  2372. v.Transparency=i
  2373. end
  2374. v.Transparency=1
  2375. end))
  2376. end
  2377. end
  2378. end
  2379.  
  2380. function UnCloak()
  2381. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2382. Face.Parent=Head
  2383. cloaked=false
  2384. for _,v in pairs(Torso.Parent:children()) do
  2385. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2386. coroutine.resume(coroutine.create(function()
  2387. for i=0,1,0.1 do
  2388. wait()
  2389. v.Transparency=v.Transparency-0.1
  2390. end
  2391. v.Transparency=0
  2392. end))
  2393. end
  2394. if v.className=="Hat" then
  2395. hatp=v.Handle
  2396. coroutine.resume(coroutine.create(function(derp)
  2397. for i=0,1,0.1 do
  2398. wait()
  2399. derp.Transparency=derp.Transparency-0.1
  2400. end
  2401. derp.Transparency=0
  2402. end),hatp)
  2403. end
  2404. end
  2405. for _,v in pairs(m:children()) do
  2406. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2407. coroutine.resume(coroutine.create(function()
  2408. for i=0,1,0.1 do
  2409. wait()
  2410. v.Transparency=v.Transparency-0.1
  2411. end
  2412. v.Transparency=0
  2413. end))
  2414. v.Transparency=0
  2415. end
  2416. end
  2417. end
  2418.  
  2419. local origcolor = BrickColor.new("Pastel light blue")
  2420. ---- This section of explosions.
  2421.  
  2422. ----
  2423.  
  2424.  
  2425. function ring(type,pos,scale,value)
  2426. local type = type
  2427. local rng = Instance.new("Part", char)
  2428. rng.Anchored = true
  2429. rng.BrickColor = origcolor
  2430. rng.CanCollide = false
  2431. rng.FormFactor = 3
  2432. rng.Name = "Ring"
  2433. rng.Size = Vector3.new(1, 1, 1)
  2434. rng.Transparency = 0
  2435. rng.TopSurface = 0
  2436. rng.BottomSurface = 0
  2437. rng.CFrame = pos
  2438. local rngm = Instance.new("SpecialMesh", rng)
  2439. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2440. rngm.Scale = scale
  2441. local scaler2 = 1
  2442. if type == "Add" then
  2443. scaler2 = 1*value
  2444. elseif type == "Divide" then
  2445. scaler2 = 1/value
  2446. end
  2447. coroutine.resume(coroutine.create(function()
  2448. for i = 0,10,0.1 do
  2449. swait()
  2450. if type == "Add" then
  2451. scaler2 = scaler2 - 0.01*value
  2452. elseif type == "Divide" then
  2453. scaler2 = scaler2 - 0.01/value
  2454. end
  2455. rng.Transparency = rng.Transparency + 0.01
  2456. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2457. end
  2458. rng:Destroy()
  2459. end))
  2460. end
  2461.  
  2462.  
  2463. function wave(type,pos,scale,value)
  2464. local type = type
  2465. local rng = Instance.new("Part", char)
  2466. rng.Anchored = true
  2467. rng.BrickColor = origcolor
  2468. rng.CanCollide = false
  2469. rng.FormFactor = 3
  2470. rng.Name = "Ring"
  2471. rng.Size = Vector3.new(1, 1, 1)
  2472. rng.Transparency = 0
  2473. rng.TopSurface = 0
  2474. rng.BottomSurface = 0
  2475. rng.CFrame = pos
  2476. local rngm = Instance.new("SpecialMesh", rng)
  2477. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2478. rngm.Scale = scale
  2479. local scaler2 = 1
  2480. if type == "Add" then
  2481. scaler2 = 1*value
  2482. elseif type == "Divide" then
  2483. scaler2 = 1/value
  2484. end
  2485. coroutine.resume(coroutine.create(function()
  2486. for i = 0,10,0.1 do
  2487. swait()
  2488. if type == "Add" then
  2489. scaler2 = scaler2 - 0.01*value
  2490. elseif type == "Divide" then
  2491. scaler2 = scaler2 - 0.01/value
  2492. end
  2493. rng.Transparency = rng.Transparency + 0.01
  2494. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2495. end
  2496. rng:Destroy()
  2497. end))
  2498. end
  2499.  
  2500. function wind(type,pos,scale,value,speed)
  2501. local type = type
  2502. local rng = Instance.new("Part", char)
  2503. rng.Anchored = true
  2504. rng.BrickColor = origcolor
  2505. rng.CanCollide = false
  2506. rng.FormFactor = 3
  2507. rng.Name = "Ring"
  2508. rng.Size = Vector3.new(1, 1, 1)
  2509. rng.Transparency = 0
  2510. rng.TopSurface = 0
  2511. rng.BottomSurface = 0
  2512. rng.CFrame = pos
  2513. local rngm = Instance.new("SpecialMesh", rng)
  2514. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2515. rngm.Scale = scale
  2516. local scaler2 = 1
  2517. if type == "Add" then
  2518. scaler2 = 1*value
  2519. elseif type == "Divide" then
  2520. scaler2 = 1/value
  2521. end
  2522. coroutine.resume(coroutine.create(function()
  2523. for i = 0,10,0.1 do
  2524. swait()
  2525. if type == "Add" then
  2526. scaler2 = scaler2 - 0.01*value
  2527. elseif type == "Divide" then
  2528. scaler2 = scaler2 - 0.01/value
  2529. end
  2530. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2531. rng.Transparency = rng.Transparency + 0.01
  2532. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2533. end
  2534. rng:Destroy()
  2535. end))
  2536. end
  2537.  
  2538. function groundwind(type,pos,scale,value,speed)
  2539. local type = type
  2540. local rng = Instance.new("Part", char)
  2541. rng.Anchored = true
  2542. rng.BrickColor = origcolor
  2543. rng.CanCollide = false
  2544. rng.FormFactor = 3
  2545. rng.Name = "Ring"
  2546. rng.Size = Vector3.new(1, 1, 1)
  2547. rng.Transparency = 0
  2548. rng.TopSurface = 0
  2549. rng.BottomSurface = 0
  2550. rng.CFrame = pos
  2551. local rngm = Instance.new("SpecialMesh", rng)
  2552. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2553. rngm.Scale = scale
  2554. local scaler2 = 1
  2555. if type == "Add" then
  2556. scaler2 = 1*value
  2557. elseif type == "Divide" then
  2558. scaler2 = 1/value
  2559. end
  2560. coroutine.resume(coroutine.create(function()
  2561. for i = 0,10,0.1 do
  2562. swait()
  2563. if type == "Add" then
  2564. scaler2 = scaler2 - 0.01*value
  2565. elseif type == "Divide" then
  2566. scaler2 = scaler2 - 0.01/value
  2567. end
  2568. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2569. rng.Transparency = rng.Transparency + 0.01
  2570. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2571. end
  2572. rng:Destroy()
  2573. end))
  2574. end
  2575.  
  2576. function CameraManager()
  2577. if TwoD and not CamInterrupt then
  2578. if Humanoid.Health > 0 then
  2579. Camera.CameraSubject = Humanoid
  2580. Camera.CameraType = "Scriptable"
  2581. Humanoid.AutoRotate = false
  2582. if Booleans.GyroUse then
  2583. Directer.MaxTorque = Vec3(0, huge, 0)
  2584. else
  2585. Directer.MaxTorque = Vec3(0, 0, 0)
  2586. end
  2587. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2588. if Booleans.CamFollow then
  2589. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2590. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2591. else
  2592. CPart.Position = RootPart.Position
  2593. end
  2594. else
  2595. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2596. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2597. end
  2598. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2599. else
  2600. Camera.CameraSubject = Humanoid
  2601. Camera.CameraType = "Custom"
  2602. Controller.Disabled = false
  2603. end
  2604. end
  2605. end
  2606.  
  2607. function ring(type,pos,scale,value)
  2608. local type = type
  2609. local rng = Instance.new("Part", char)
  2610. rng.Anchored = true
  2611. rng.BrickColor = origcolor
  2612. rng.CanCollide = false
  2613. rng.FormFactor = 3
  2614. rng.Name = "Ring"
  2615. rng.Size = Vector3.new(1, 1, 1)
  2616. rng.Transparency = 0
  2617. rng.TopSurface = 0
  2618. rng.BottomSurface = 0
  2619. rng.CFrame = pos
  2620. local rngm = Instance.new("SpecialMesh", rng)
  2621. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2622. rngm.Scale = scale
  2623. local scaler2 = 1
  2624. if type == "Add" then
  2625. scaler2 = 1*value
  2626. elseif type == "Divide" then
  2627. scaler2 = 1/value
  2628. end
  2629. coroutine.resume(coroutine.create(function()
  2630. for i = 0,10,0.1 do
  2631. swait()
  2632. if type == "Add" then
  2633. scaler2 = scaler2 - 0.01*value
  2634. elseif type == "Divide" then
  2635. scaler2 = scaler2 - 0.01/value
  2636. end
  2637. rng.Transparency = rng.Transparency + 0.01
  2638. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2639. end
  2640. rng:Destroy()
  2641. end))
  2642. end
  2643.  
  2644.  
  2645. function wave(type,pos,scale,value)
  2646. local type = type
  2647. local rng = Instance.new("Part", char)
  2648. rng.Anchored = true
  2649. rng.BrickColor = origcolor
  2650. rng.CanCollide = false
  2651. rng.FormFactor = 3
  2652. rng.Name = "Ring"
  2653. rng.Size = Vector3.new(1, 1, 1)
  2654. rng.Transparency = 0
  2655. rng.TopSurface = 0
  2656. rng.BottomSurface = 0
  2657. rng.CFrame = pos
  2658. local rngm = Instance.new("SpecialMesh", rng)
  2659. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2660. rngm.Scale = scale
  2661. local scaler2 = 1
  2662. if type == "Add" then
  2663. scaler2 = 1*value
  2664. elseif type == "Divide" then
  2665. scaler2 = 1/value
  2666. end
  2667. coroutine.resume(coroutine.create(function()
  2668. for i = 0,10,0.1 do
  2669. swait()
  2670. if type == "Add" then
  2671. scaler2 = scaler2 - 0.01*value
  2672. elseif type == "Divide" then
  2673. scaler2 = scaler2 - 0.01/value
  2674. end
  2675. rng.Transparency = rng.Transparency + 0.01
  2676. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2677. end
  2678. rng:Destroy()
  2679. end))
  2680. end
  2681.  
  2682. function sphere(bonuspeed,type,pos,scale,value,color)
  2683. local type = type
  2684. local rng = Instance.new("Part", char)
  2685. rng.Anchored = true
  2686. if ModeOfGlitch ~= 9 then
  2687. rng.BrickColor = color
  2688. elseif ModeOfGlitch == 9 then
  2689. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2690. end
  2691. rng.CanCollide = false
  2692. rng.FormFactor = 3
  2693. rng.Name = "Ring"
  2694. rng.Material = "Neon"
  2695. rng.Size = Vector3.new(1, 1, 1)
  2696. rng.Transparency = 0
  2697. rng.TopSurface = 0
  2698. rng.BottomSurface = 0
  2699. rng.CFrame = pos
  2700. local rngm = Instance.new("SpecialMesh", rng)
  2701. rngm.MeshType = "Sphere"
  2702. rngm.Scale = scale
  2703. if rainbowmode == true then
  2704. rng.Color = Color3.new(r/255,g/255,b/255)
  2705. end
  2706. if ModeOfGlitch == 9 then
  2707. coroutine.resume(coroutine.create(function()
  2708. while true do
  2709. swait()
  2710. if rng.Parent ~= nil then
  2711. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2712. else
  2713. break
  2714. end
  2715. end
  2716. end))
  2717. end
  2718. local scaler2 = 1
  2719. if type == "Add" then
  2720. scaler2 = 1*value
  2721. elseif type == "Divide" then
  2722. scaler2 = 1/value
  2723. end
  2724. coroutine.resume(coroutine.create(function()
  2725. for i = 0,10/bonuspeed,0.1 do
  2726. swait()
  2727. if rainbowmode == true then
  2728. rng.Color = Color3.new(r/255,g/255,b/255)
  2729. end
  2730. if type == "Add" then
  2731. scaler2 = scaler2 - 0.01*value/bonuspeed
  2732. elseif type == "Divide" then
  2733. scaler2 = scaler2 - 0.01/value*bonuspeed
  2734. end
  2735. if chaosmode == true then
  2736. rng.BrickColor = BrickColor.random()
  2737. end
  2738. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2739. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2740. end
  2741. rng:Destroy()
  2742. end))
  2743. end
  2744.  
  2745. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2746. local type = type
  2747. local rng = Instance.new("Part", char)
  2748. rng.Anchored = true
  2749. if ModeOfGlitch ~= 9 then
  2750. rng.BrickColor = color
  2751. elseif ModeOfGlitch == 9 then
  2752. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2753. end
  2754. rng.CanCollide = false
  2755. rng.FormFactor = 3
  2756. rng.Name = "Ring"
  2757. rng.Material = "Neon"
  2758. rng.Size = Vector3.new(1, 1, 1)
  2759. rng.Transparency = 0
  2760. rng.TopSurface = 0
  2761. rng.BottomSurface = 0
  2762. rng.CFrame = pos
  2763. local rngm = Instance.new("SpecialMesh", rng)
  2764. rngm.MeshType = "Sphere"
  2765. rngm.Scale = scale
  2766. local scaler2 = 1
  2767. local scaler2b = 1
  2768. local scaler2c = 1
  2769. if type == "Add" then
  2770. scaler2 = 1*value
  2771. scaler2b = 1*value2
  2772. scaler2c = 1*value3
  2773. elseif type == "Divide" then
  2774. scaler2 = 1/value
  2775. scaler2b = 1/value2
  2776. scaler2c = 1/value3
  2777. end
  2778. if ModeOfGlitch == 9 then
  2779. coroutine.resume(coroutine.create(function()
  2780. while true do
  2781. swait()
  2782. if rng.Parent ~= nil then
  2783. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2784. else
  2785. break
  2786. end
  2787. end
  2788. end))
  2789. end
  2790. coroutine.resume(coroutine.create(function()
  2791. for i = 0,10/bonuspeed,0.1 do
  2792. swait()
  2793. if type == "Add" then
  2794. scaler2 = scaler2 - 0.01*value/bonuspeed
  2795. scaler2b = scaler2b - 0.01*value/bonuspeed
  2796. scaler2c = scaler2c - 0.01*value/bonuspeed
  2797. elseif type == "Divide" then
  2798. scaler2 = scaler2 - 0.01/value*bonuspeed
  2799. scaler2b = scaler2b - 0.01/value*bonuspeed
  2800. scaler2c = scaler2c - 0.01/value*bonuspeed
  2801. end
  2802. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2803. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2810. local type = type
  2811. local rotenable = rotatingop
  2812. local rng = Instance.new("Part", char)
  2813. rng.Anchored = true
  2814. rng.BrickColor = color
  2815. rng.CanCollide = false
  2816. rng.FormFactor = 3
  2817. rng.Name = "Ring"
  2818. rng.Material = "Neon"
  2819. rng.Size = Vector3.new(1, 1, 1)
  2820. rng.Transparency = 0
  2821. if typeoftrans == "In" then
  2822. rng.Transparency = 1
  2823. end
  2824. rng.TopSurface = 0
  2825. rng.BottomSurface = 0
  2826. rng.CFrame = pos
  2827. local rngm = Instance.new("SpecialMesh", rng)
  2828. rngm.MeshType = "FileMesh"
  2829. if typeofshape == "Normal" then
  2830. rngm.MeshId = "rbxassetid://662586858"
  2831. elseif typeofshape == "Round" then
  2832. rngm.MeshId = "rbxassetid://662585058"
  2833. end
  2834. rngm.Scale = scale
  2835. local scaler2 = 1/10
  2836. if type == "Add" then
  2837. scaler2 = 1*value/10
  2838. elseif type == "Divide" then
  2839. scaler2 = 1/value/10
  2840. end
  2841. local randomrot = math.random(1,2)
  2842. coroutine.resume(coroutine.create(function()
  2843. for i = 0,10/bonuspeed,0.1 do
  2844. swait()
  2845. if type == "Add" then
  2846. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2847. elseif type == "Divide" then
  2848. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2849. end
  2850. if rotenable == true then
  2851. if randomrot == 1 then
  2852. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2853. elseif randomrot == 2 then
  2854. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2855. end
  2856. end
  2857. if typeoftrans == "Out" then
  2858. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2859. elseif typeoftrans == "In" then
  2860. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2861. end
  2862. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2863. end
  2864. rng:Destroy()
  2865. end))
  2866. end
  2867.  
  2868. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2869. local type = type
  2870. local rng = Instance.new("Part", char)
  2871. rng.Anchored = true
  2872. rng.BrickColor = color
  2873. rng.CanCollide = false
  2874. rng.FormFactor = 3
  2875. rng.Name = "Ring"
  2876. rng.Material = "Neon"
  2877. rng.Size = Vector3.new(1, 1, 1)
  2878. rng.Transparency = 0
  2879. rng.TopSurface = 0
  2880. rng.BottomSurface = 0
  2881. rng.CFrame = pos
  2882. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2883. local rngm = Instance.new("SpecialMesh", rng)
  2884. rngm.MeshType = "Brick"
  2885. rngm.Scale = vt(x1,y1,z1)
  2886. if rainbowmode == true then
  2887. rng.Color = Color3.new(r/255,g/255,b/255)
  2888. end
  2889. local scaler2 = 1
  2890. local speeder = FastSpeed/10
  2891. if type == "Add" then
  2892. scaler2 = 1*value
  2893. elseif type == "Divide" then
  2894. scaler2 = 1/value
  2895. end
  2896. coroutine.resume(coroutine.create(function()
  2897. for i = 0,10/bonuspeed,0.1 do
  2898. swait()
  2899. if rainbowmode == true then
  2900. rng.Color = Color3.new(r/255,g/255,b/255)
  2901. end
  2902. if type == "Add" then
  2903. scaler2 = scaler2 - 0.01*value/bonuspeed
  2904. elseif type == "Divide" then
  2905. scaler2 = scaler2 - 0.01/value*bonuspeed
  2906. end
  2907. if chaosmode == true then
  2908. rng.BrickColor = BrickColor.random()
  2909. end
  2910. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2911. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2912. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2913. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2914. end
  2915. rng:Destroy()
  2916. end))
  2917. end
  2918.  
  2919. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2920. local type = type
  2921. local rng = Instance.new("Part", char)
  2922. rng.Anchored = true
  2923. rng.BrickColor = color
  2924. rng.CanCollide = false
  2925. rng.FormFactor = 3
  2926. rng.Name = "Ring"
  2927. rng.Material = "Neon"
  2928. rng.Size = Vector3.new(1, 1, 1)
  2929. rng.Transparency = 0
  2930. rng.TopSurface = 0
  2931. rng.BottomSurface = 0
  2932. rng.CFrame = pos
  2933. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2934. local rngm = Instance.new("SpecialMesh", rng)
  2935. rngm.MeshType = "Brick"
  2936. rngm.Scale = vt(x1,y1,z1)
  2937. if rainbowmode == true then
  2938. rng.Color = Color3.new(r/255,g/255,b/255)
  2939. end
  2940. local scaler2 = 1
  2941. local speeder = FastSpeed/10
  2942. if type == "Add" then
  2943. scaler2 = 1*value
  2944. elseif type == "Divide" then
  2945. scaler2 = 1/value
  2946. end
  2947. coroutine.resume(coroutine.create(function()
  2948. for i = 0,10/bonuspeed,0.1 do
  2949. swait()
  2950. if rainbowmode == true then
  2951. rng.Color = Color3.new(r/255,g/255,b/255)
  2952. end
  2953. if type == "Add" then
  2954. scaler2 = scaler2 - 0.01*value/bonuspeed
  2955. elseif type == "Divide" then
  2956. scaler2 = scaler2 - 0.01/value*bonuspeed
  2957. end
  2958. if chaosmode == true then
  2959. rng.BrickColor = BrickColor.random()
  2960. end
  2961. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2962. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2963. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2964. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2965. end
  2966. rng:Destroy()
  2967. end))
  2968. end
  2969.  
  2970. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2971. local type = type
  2972. local rng = Instance.new("Part", char)
  2973. rng.Anchored = true
  2974. rng.BrickColor = color
  2975. rng.CanCollide = false
  2976. rng.FormFactor = 3
  2977. rng.Name = "Ring"
  2978. rng.Material = "Neon"
  2979. rng.Size = Vector3.new(1, 1, 1)
  2980. rng.Transparency = 0
  2981. rng.TopSurface = 0
  2982. rng.BottomSurface = 0
  2983. rng.CFrame = pos
  2984. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2985. local rngm = Instance.new("SpecialMesh", rng)
  2986. rngm.MeshType = "Brick"
  2987. rngm.Scale = vt(x1,y1,z1)
  2988. if rainbowmode == true then
  2989. rng.Color = Color3.new(r/255,g/255,b/255)
  2990. end
  2991. local scaler2 = 0
  2992. local speeder = FastSpeed/10
  2993. if type == "Add" then
  2994. scaler2 = 1*value
  2995. elseif type == "Divide" then
  2996. scaler2 = 1/value
  2997. end
  2998. coroutine.resume(coroutine.create(function()
  2999. for i = 0,10/bonuspeed,0.1 do
  3000. swait()
  3001. if rainbowmode == true then
  3002. rng.Color = Color3.new(r/255,g/255,b/255)
  3003. end
  3004. if type == "Add" then
  3005. scaler2 = scaler2 - 0.01*value/bonuspeed
  3006. elseif type == "Divide" then
  3007. scaler2 = scaler2 - 0.01/value*bonuspeed
  3008. end
  3009. if chaosmode == true then
  3010. rng.BrickColor = BrickColor.random()
  3011. end
  3012. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3013. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3014. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3015. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3016. end
  3017. rng:Destroy()
  3018. end))
  3019. end
  3020.  
  3021. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3022. local type = type
  3023. local rng = Instance.new("Part", char)
  3024. rng.Anchored = true
  3025. rng.BrickColor = color
  3026. rng.Color = color3
  3027. rng.CanCollide = false
  3028. rng.FormFactor = 3
  3029. rng.Name = "Ring"
  3030. rng.Material = "Neon"
  3031. rng.Size = Vector3.new(1, 1, 1)
  3032. rng.Transparency = 0
  3033. rng.TopSurface = 0
  3034. rng.BottomSurface = 0
  3035. rng.CFrame = pos
  3036. local rngm = Instance.new("SpecialMesh", rng)
  3037. rngm.MeshType = "Brick"
  3038. rngm.Scale = scale
  3039. local scaler2 = 1
  3040. local scaler2b = 1
  3041. local scaler2c = 1
  3042. if type == "Add" then
  3043. scaler2 = 1*value
  3044. scaler2b = 1*value2
  3045. scaler2c = 1*value3
  3046. elseif type == "Divide" then
  3047. scaler2 = 1/value
  3048. scaler2b = 1/value2
  3049. scaler2c = 1/value3
  3050. end
  3051. coroutine.resume(coroutine.create(function()
  3052. for i = 0,10/bonuspeed,0.1 do
  3053. swait()
  3054. if type == "Add" then
  3055. scaler2 = scaler2 - 0.01*value/bonuspeed
  3056. scaler2b = scaler2b - 0.01*value/bonuspeed
  3057. scaler2c = scaler2c - 0.01*value/bonuspeed
  3058. elseif type == "Divide" then
  3059. scaler2 = scaler2 - 0.01/value*bonuspeed
  3060. scaler2b = scaler2b - 0.01/value*bonuspeed
  3061. scaler2c = scaler2c - 0.01/value*bonuspeed
  3062. end
  3063. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3064. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3065. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3066. end
  3067. rng:Destroy()
  3068. end))
  3069. end
  3070.  
  3071. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3072. local type = type
  3073. local rng = Instance.new("Part", char)
  3074. rng.Anchored = true
  3075. if ModeOfGlitch ~= 9 then
  3076. rng.BrickColor = color
  3077. elseif ModeOfGlitch == 9 then
  3078. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3079. end
  3080. rng.CanCollide = false
  3081. rng.FormFactor = 3
  3082. rng.Name = "Ring"
  3083. rng.Material = "Neon"
  3084. rng.Size = Vector3.new(1, 1, 1)
  3085. rng.Transparency = 0
  3086. rng.TopSurface = 0
  3087. rng.BottomSurface = 0
  3088. rng.CFrame = pos
  3089. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3090. local rngm = Instance.new("SpecialMesh", rng)
  3091. rngm.MeshType = "Sphere"
  3092. rngm.Scale = vt(x1,y1,z1)
  3093. if rainbowmode == true then
  3094. rng.Color = Color3.new(r/255,g/255,b/255)
  3095. end
  3096. if ModeOfGlitch == 9 then
  3097. coroutine.resume(coroutine.create(function()
  3098. while true do
  3099. swait()
  3100. if rng.Parent ~= nil then
  3101. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3102. else
  3103. break
  3104. end
  3105. end
  3106. end))
  3107. end
  3108. local scaler2 = 1
  3109. local speeder = FastSpeed
  3110. if type == "Add" then
  3111. scaler2 = 1*value
  3112. elseif type == "Divide" then
  3113. scaler2 = 1/value
  3114. end
  3115. coroutine.resume(coroutine.create(function()
  3116. for i = 0,10/bonuspeed,0.1 do
  3117. swait()
  3118. if rainbowmode == true then
  3119. rng.Color = Color3.new(r/255,g/255,b/255)
  3120. end
  3121. if type == "Add" then
  3122. scaler2 = scaler2 - 0.01*value/bonuspeed
  3123. elseif type == "Divide" then
  3124. scaler2 = scaler2 - 0.01/value*bonuspeed
  3125. end
  3126. if chaosmode == true then
  3127. rng.BrickColor = BrickColor.random()
  3128. end
  3129. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3130. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3131. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3132. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3133. end
  3134. rng:Destroy()
  3135. end))
  3136. end
  3137.  
  3138.  
  3139. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3140. local type = type
  3141. local rng = Instance.new("Part", char)
  3142. rng.Anchored = true
  3143. if ModeOfGlitch ~= 9 then
  3144. rng.BrickColor = color
  3145. elseif ModeOfGlitch == 9 then
  3146. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3147. end
  3148. rng.CanCollide = false
  3149. rng.FormFactor = 3
  3150. rng.Name = "Ring"
  3151. rng.Material = "Neon"
  3152. rng.Size = Vector3.new(1, 1, 1)
  3153. rng.Transparency = 1
  3154. rng.TopSurface = 0
  3155. rng.BottomSurface = 0
  3156. rng.CFrame = pos
  3157. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3158. local rngm = Instance.new("SpecialMesh", rng)
  3159. rngm.MeshType = "Sphere"
  3160. rngm.Scale = vt(x1,y1,z1)
  3161. if rainbowmode == true then
  3162. rng.Color = Color3.new(r/255,g/255,b/255)
  3163. end
  3164. if ModeOfGlitch == 9 then
  3165. coroutine.resume(coroutine.create(function()
  3166. while true do
  3167. swait()
  3168. if rng.Parent ~= nil then
  3169. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3170. else
  3171. break
  3172. end
  3173. end
  3174. end))
  3175. end
  3176. local scaler2 = 1
  3177. local speeder = FastSpeed
  3178. if type == "Add" then
  3179. scaler2 = 1*value
  3180. elseif type == "Divide" then
  3181. scaler2 = 1/value
  3182. end
  3183. coroutine.resume(coroutine.create(function()
  3184. for i = 0,10/bonuspeed,0.1 do
  3185. swait()
  3186. if rainbowmode == true then
  3187. rng.Color = Color3.new(r/255,g/255,b/255)
  3188. end
  3189. if type == "Add" then
  3190. scaler2 = scaler2 - 0.01*value/bonuspeed
  3191. elseif type == "Divide" then
  3192. scaler2 = scaler2 - 0.01/value*bonuspeed
  3193. end
  3194. if chaosmode == true then
  3195. rng.BrickColor = BrickColor.random()
  3196. end
  3197. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3198. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3199. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3200. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3201. end
  3202. rng:Destroy()
  3203. end))
  3204. end
  3205.  
  3206. function dmg(dude)
  3207. if dude.Name ~= Character then
  3208. local keptcolor = MAINRUINCOLOR
  3209. local bgf = Instance.new("BodyGyro",dude.Head)
  3210. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3211. --[[local val = Instance.new("BoolValue",dude)
  3212. val.Name = "IsHit"]]--
  3213. local ds = coroutine.wrap(function()
  3214. dude:WaitForChild("Head"):BreakJoints()
  3215. for i, v in pairs(dude:GetChildren()) do
  3216. if v:IsA("Part") or v:IsA("MeshPart") then
  3217. v.Name = "DEMINISHED"
  3218. end
  3219. end
  3220. wait(0.5)
  3221. targetted = nil
  3222. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3223. coroutine.resume(coroutine.create(function()
  3224. for i, v in pairs(dude:GetChildren()) do
  3225. if v:IsA("Accessory") then
  3226. v:Destroy()
  3227. end
  3228. if v:IsA("Humanoid") then
  3229. v:Destroy()
  3230. end
  3231. if v:IsA("CharacterMesh") then
  3232. v:Destroy()
  3233. end
  3234. if v:IsA("Model") then
  3235. v:Destroy()
  3236. end
  3237. if v:IsA("Part") or v:IsA("MeshPart") then
  3238. for x, o in pairs(v:GetChildren()) do
  3239. if o:IsA("Decal") then
  3240. o:Destroy()
  3241. end
  3242. end
  3243. coroutine.resume(coroutine.create(function()
  3244. v.Material = "Neon"
  3245. v.CanCollide = false
  3246. v.Anchored = false
  3247. local bld = Instance.new("ParticleEmitter",v)
  3248. bld.LightEmission = 0.75
  3249. bld.Texture = "rbxassetid://363275192" ---284205403
  3250. bld.Color = ColorSequence.new(keptcolor.Color)
  3251. bld.Rate = 500
  3252. bld.Lifetime = NumberRange.new(1)
  3253. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3254. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3255. bld.Speed = NumberRange.new(2,5)
  3256. bld.VelocitySpread = 50000
  3257. bld.Rotation = NumberRange.new(-500,500)
  3258. bld.RotSpeed = NumberRange.new(-500,500)
  3259. local sbs = Instance.new("BodyPosition", v)
  3260. sbs.P = 3000
  3261. sbs.D = 1000
  3262. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3263. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3264. v.Color = keptcolor.Color
  3265. coroutine.resume(coroutine.create(function()
  3266. for i = 0, 49 do
  3267. swait(1)
  3268. v:BreakJoints()
  3269. v.Transparency = v.Transparency + 0.02
  3270. end
  3271. v:BreakJoints()
  3272. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3273. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3274. bld.Speed = NumberRange.new(10,25)
  3275. bld.Drag = 5
  3276. bld.Acceleration = vt(0,2,0)
  3277. wait(0.5)
  3278. bld.Enabled = false
  3279. wait(8)
  3280. v:Destroy()
  3281. dude:Destroy()
  3282. end))
  3283. end))
  3284. end
  3285. end
  3286. end))
  3287. end)
  3288. ds()
  3289. end
  3290. end
  3291.  
  3292.  
  3293. function FindNearestHead(Position, Distance, SinglePlayer)
  3294. if SinglePlayer then
  3295. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3296. end
  3297. local List = {}
  3298. for i, v in pairs(workspace:GetChildren()) do
  3299. if v:IsA("Model") then
  3300. if v:findFirstChild("Head") then
  3301. if v ~= Character then
  3302. if (v.Head.Position - Position).magnitude <= Distance then
  3303. table.insert(List, v)
  3304. end
  3305. end
  3306. end
  3307. end
  3308. end
  3309. return List
  3310. end
  3311.  
  3312. function FaceMouse()
  3313. Cam = workspace.CurrentCamera
  3314. return {
  3315. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3316. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3317. }
  3318. end
  3319.  
  3320. function FaceMouse2()
  3321. Cam = workspace.CurrentCamera
  3322. return {
  3323. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3324. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3325. }
  3326. end
  3327.  
  3328. local ModeOfGlitch = 1
  3329. -- Functions are ready.
  3330. local storehumanoidWS = 12
  3331.  
  3332. function CorruptBlink()
  3333. for i = 0, 14 do
  3334. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3335. end
  3336. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3337. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3338. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3339. CameraEnshaking(2,10)
  3340. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3341. if v:FindFirstChild('Head') then
  3342. dmg(v)
  3343. end
  3344. end
  3345. for i = 0, 14 do
  3346. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3347. end
  3348. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3349. end
  3350. function PureBomb()
  3351. attack = true
  3352. hum.WalkSpeed = 0
  3353. local orb = Instance.new("Part", char)
  3354. orb.Anchored = true
  3355. orb.BrickColor = BrickColor.new("Toothpaste")
  3356. orb.CanCollide = false
  3357. orb.FormFactor = 3
  3358. orb.Name = "Ring"
  3359. orb.Material = "Neon"
  3360. orb.Size = Vector3.new(1, 1, 1)
  3361. orb.Transparency = 0
  3362. orb.TopSurface = 0
  3363. orb.BottomSurface = 0
  3364. local orbm = Instance.new("SpecialMesh", orb)
  3365. orbm.MeshType = "Sphere"
  3366. orbm.Name = "SizeMesh"
  3367. orbm.Scale = vt(0,0,0)
  3368. local scaled = 0.1
  3369. local posid = 0
  3370. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3371. for i = 0, 5, 0.1 do
  3372. swait()
  3373. scaled = scaled - 0.001
  3374. posid = posid - scaled
  3375. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3376. local scaled = 0.1
  3377. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3378. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3379. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3380. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3381. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3382. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3385. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3386. end
  3387. for i = 0, 2, 0.1 do
  3388. swait()
  3389. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3390. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3391. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3392. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3394. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3395. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3396. end
  3397. coroutine.resume(coroutine.create(function()
  3398. orb.Anchored = false
  3399. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3400. local a = Instance.new("Part",workspace)
  3401. a.Name = "Direction"
  3402. a.Anchored = true
  3403. a.BrickColor = bc("Bright red")
  3404. a.Material = "Neon"
  3405. a.Transparency = 1
  3406. a.CanCollide = false
  3407. local ray = Ray.new(
  3408. orb.CFrame.p, -- origin
  3409. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3410. )
  3411. local ignore = orb
  3412. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3413. a.BottomSurface = 10
  3414. a.TopSurface = 10
  3415. local distance = (orb.CFrame.p - position).magnitude
  3416. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3417. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3418. orb.CFrame = a.CFrame
  3419. a:Destroy()
  3420. local bv = Instance.new("BodyVelocity")
  3421. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3422. bv.velocity = orb.CFrame.lookVector*125
  3423. bv.Parent = orb
  3424. local hitted = false
  3425. game:GetService("Debris"):AddItem(orb, 15)
  3426. wait()
  3427. local hit =orb.Touched:connect(function(hit)
  3428. if hitted == false then
  3429. hitted = true
  3430. CameraEnshaking(10,2.5)
  3431. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3432. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3433. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3434. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3435. for i = 0, 49 do
  3436. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3437. end
  3438. for i = 0, 9 do
  3439. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3440. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3441. end
  3442. orb.Anchored = true
  3443. orb.Transparency = 1
  3444. wait(8)
  3445. orb:Destroy()
  3446. end
  3447. end)
  3448. end))
  3449. for i = 0, 1, 0.1 do
  3450. swait()
  3451. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3452. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3453. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3455. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3456. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3457. end
  3458. hum.WalkSpeed = storehumanoidWS
  3459. attack = false
  3460. end
  3461.  
  3462. function BanishingOrb()
  3463. attack = true
  3464. hum.WalkSpeed = 0
  3465. local radm = math.random(1,3)
  3466. if radm == 1 then
  3467. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3468. elseif radm == 2 then
  3469. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3470. elseif radm == 3 then
  3471. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3472. end
  3473. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3474. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3475. local orb = Instance.new("Part", char)
  3476. orb.Anchored = true
  3477. orb.BrickColor = BrickColor.new("Lime green")
  3478. orb.CanCollide = false
  3479. orb.FormFactor = 3
  3480. orb.Name = "Ring"
  3481. orb.Material = "Neon"
  3482. orb.Size = Vector3.new(1, 1, 1)
  3483. orb.Transparency = 0
  3484. orb.TopSurface = 0
  3485. orb.BottomSurface = 0
  3486. local orbm = Instance.new("SpecialMesh", orb)
  3487. orbm.MeshType = "Sphere"
  3488. orbm.Name = "SizeMesh"
  3489. orbm.Scale = vt(0,0,0)
  3490. local scaled = 0.1
  3491. local posid = 0
  3492. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3493. for i = 0, 5, 0.1 do
  3494. swait()
  3495. scaled = scaled - 0.001
  3496. posid = posid - scaled
  3497. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3498. local scaled = 0.1
  3499. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3500. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Cool yellow"),10)
  3501. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3502. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3503. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3506. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3507. end
  3508. for i = 0, 2, 0.1 do
  3509. swait()
  3510. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3511. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3512. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3515. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3516. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3517. end
  3518. coroutine.resume(coroutine.create(function()
  3519. orb.Anchored = false
  3520. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3521. local a = Instance.new("Part",workspace)
  3522. a.Name = "Direction"
  3523. a.Anchored = true
  3524. a.BrickColor = bc("Lime green")
  3525. a.Material = "Neon"
  3526. a.Transparency = 1
  3527. a.CanCollide = false
  3528. local ray = Ray.new(
  3529. orb.CFrame.p, -- origin
  3530. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3531. )
  3532. local ignore = orb
  3533. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3534. a.BottomSurface = 10
  3535. a.TopSurface = 10
  3536. local distance = (orb.CFrame.p - position).magnitude
  3537. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3538. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3539. orb.CFrame = a.CFrame
  3540. a:Destroy()
  3541. local bv = Instance.new("BodyVelocity")
  3542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3543. bv.velocity = orb.CFrame.lookVector*0
  3544. bv.Parent = orb
  3545. local hitted = false
  3546. local rate = 0
  3547. coroutine.resume(coroutine.create(function()
  3548. for i = 0, 24 do
  3549. wait(0.1)
  3550. rate = rate + 0.25
  3551. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3552. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3553. if v:FindFirstChild('Head') then
  3554. dmg(v)
  3555. end
  3556. end
  3557. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3558. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3559. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3560. end
  3561. orb.Anchored = true
  3562. orb.Transparency = 1
  3563. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3564. if v:FindFirstChild('Head') then
  3565. dmg(v)
  3566. end
  3567. end
  3568. local eff = Instance.new("ParticleEmitter",orb)
  3569. eff.Texture = "rbxassetid://296874871"
  3570. eff.LightEmission = 0.95
  3571. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3572. eff.Rate = 1000000000
  3573. eff.Lifetime = NumberRange.new(3)
  3574. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3575. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3576. eff.Speed = NumberRange.new(30)
  3577. eff.Acceleration = vt(0,-15,0)
  3578. eff.Rotation = NumberRange.new(-500,500)
  3579. eff.VelocitySpread = 100000
  3580. eff.RotSpeed = NumberRange.new(-500,500)
  3581. coroutine.resume(coroutine.create(function()
  3582. wait(0.6)
  3583. eff.Enabled = false
  3584. end))
  3585. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3586. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3587. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3588. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3589. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3590. game:GetService("Debris"):AddItem(orb, 15)
  3591. end))
  3592. end))
  3593. for i = 0, 1, 0.1 do
  3594. swait()
  3595. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3596. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3599. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3600. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3601. end
  3602. hum.WalkSpeed = storehumanoidWS
  3603. attack = false
  3604. end
  3605.  
  3606.  
  3607. function ChaosGroundStrike()
  3608. attack = true
  3609. for i = 0, 2, 0.1 do
  3610. swait()
  3611. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3612. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3613. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3614. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3615. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3616. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3617. end
  3618. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3619. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3620. CameraEnshaking(4,12)
  3621. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3622. if v:FindFirstChild('Head') then
  3623. dmg(v)
  3624. end
  3625. end
  3626. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3627. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3628. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3629. for i = 0, 2, 0.1 do
  3630. swait()
  3631. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3632. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3633. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3634. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3638. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3639. end
  3640. attack = false
  3641. end
  3642.  
  3643.  
  3644.  
  3645. function Starfall()
  3646. attack = true
  3647. hum.WalkSpeed = 0
  3648. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3649. for i = 0, 5, 0.1 do
  3650. swait()
  3651. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3652. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3653. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3654. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3658. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3659. end
  3660. local Overed = false
  3661. CameraEnshaking(2,20)
  3662. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3663. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3664. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3665. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3666. local orb = Instance.new("Part", char)
  3667. orb.Anchored = true
  3668. orb.BrickColor = BrickColor.new("Toothpaste")
  3669. orb.CanCollide = false
  3670. orb.FormFactor = 3
  3671. orb.Name = "Remenant"
  3672. orb.Material = "Neon"
  3673. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3674. orb.Size = Vector3.new(1, 1, 1)
  3675. orb.Transparency = 1
  3676. orb.TopSurface = 0
  3677. orb.BottomSurface = 0
  3678. hum.WalkSpeed = storehumanoidWS
  3679. coroutine.resume(coroutine.create(function()
  3680. for i = 0, 9 do
  3681. swait(10)
  3682. local lb = Instance.new("Part")
  3683. lb.Color = MAINRUINCOLOR.Color
  3684. lb.CanCollide = false
  3685. lb.Material = "Neon"
  3686. lb.Anchored = true
  3687. lb.TopSurface = 0
  3688. lb.BottomSurface = 0
  3689. lb.Transparency = 0
  3690. lb.Size = vt(1,1,1)
  3691. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3692. lb.Anchored = false
  3693. lb.Parent = char
  3694. local thingery = Instance.new("SpecialMesh",lb)
  3695. thingery.MeshType = "Sphere"
  3696. thingery.Scale = vt(20,20,20)
  3697. game:GetService("Debris"):AddItem(lb, 10)
  3698. local bv = Instance.new("BodyVelocity")
  3699. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3700. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3701. bv.Parent = lb
  3702. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3703. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3704. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3705. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3706. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3707. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3708. local hitted = false
  3709. coroutine.resume(coroutine.create(function()
  3710. while true do
  3711. swait(1)
  3712. if lb.Parent ~= nil and hitted == false then
  3713. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3714. elseif lb.Parent == nil then
  3715. break
  3716. end
  3717. end
  3718. end))
  3719.  
  3720. game:GetService("Debris"):AddItem(a, 0.1)
  3721.  
  3722. coroutine.resume(coroutine.create(function()
  3723. swait(1)
  3724. lb.Touched:connect(function(hit)
  3725. if hitted == false then
  3726. hitted = true
  3727. lb.Transparency = 1
  3728. lb.Anchored = true
  3729. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3730. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3731. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3732. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3733. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3734. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3735. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3736. CameraEnshaking(1,5)
  3737. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3738. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3739. for i = 0, 9 do
  3740. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3741. end
  3742. for i = 0, 49 do
  3743. swait()
  3744. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3745. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3746. end
  3747. end
  3748. end)
  3749. end))
  3750. end
  3751. Overed = true
  3752. orb:Destroy()
  3753. end))
  3754.  
  3755. attack = false
  3756. end
  3757.  
  3758. function StarfallEX()
  3759. attack = true
  3760. hum.WalkSpeed = 0
  3761. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3762. CFuncs["EchoSound"].Create("rbxassetid://907332997", char, 5, 1,0,10,0.15,0.5,1)
  3763. bosschatfunc("Your interference has ended.",MAINRUINCOLOR.Color,0.7)
  3764. for i = 0, 10, 0.1 do
  3765. swait()
  3766. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3767. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3768. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3769. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3772. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3773. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3774. end
  3775. local Overed = false
  3776. CameraEnshaking(2,20)
  3777. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3778. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3779. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3780. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3781. local orb = Instance.new("Part", char)
  3782. orb.Anchored = true
  3783. orb.BrickColor = BrickColor.new("Toothpaste")
  3784. orb.CanCollide = false
  3785. orb.FormFactor = 3
  3786. orb.Name = "Remenant"
  3787. orb.Material = "Neon"
  3788. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3789. orb.Size = Vector3.new(1, 1, 1)
  3790. orb.Transparency = 1
  3791. orb.TopSurface = 0
  3792. orb.BottomSurface = 0
  3793. hum.WalkSpeed = storehumanoidWS
  3794. coroutine.resume(coroutine.create(function()
  3795. for i = 0, 25 do
  3796. swait(15)
  3797. local lb = Instance.new("Part")
  3798. lb.Color = MAINRUINCOLOR.Color
  3799. lb.CanCollide = false
  3800. lb.Material = "Neon"
  3801. lb.Anchored = true
  3802. lb.TopSurface = 0
  3803. lb.BottomSurface = 0
  3804. lb.Transparency = 0
  3805. lb.Size = vt(1,1,1)
  3806. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3807. lb.Anchored = false
  3808. lb.Parent = char
  3809. local thingery = Instance.new("SpecialMesh",lb)
  3810. thingery.MeshType = "Sphere"
  3811. thingery.Scale = vt(50,50,50)
  3812. game:GetService("Debris"):AddItem(lb, 10)
  3813. local bv = Instance.new("BodyVelocity")
  3814. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3815. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3816. bv.Parent = lb
  3817. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3818. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3819. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3820. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3821. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3822. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3823. local hitted = false
  3824. coroutine.resume(coroutine.create(function()
  3825. while true do
  3826. swait(1)
  3827. if lb.Parent ~= nil and hitted == false then
  3828. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3829. elseif lb.Parent == nil then
  3830. break
  3831. end
  3832. end
  3833. end))
  3834.  
  3835. game:GetService("Debris"):AddItem(a, 0.1)
  3836.  
  3837. coroutine.resume(coroutine.create(function()
  3838. swait(1)
  3839. lb.Touched:connect(function(hit)
  3840. if hitted == false then
  3841. hitted = true
  3842. lb.Transparency = 1
  3843. lb.Anchored = true
  3844. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3845. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3846. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3847. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3848. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3849. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3850. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3851. CameraEnshaking(1,5)
  3852. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3853. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3854. for i = 0, 9 do
  3855. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  3856. end
  3857. for i = 0, 99 do
  3858. swait()
  3859. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3860. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  3861. end
  3862. end
  3863. end)
  3864. end))
  3865. end
  3866. Overed = true
  3867. orb:Destroy()
  3868. end))
  3869.  
  3870. attack = false
  3871. end
  3872.  
  3873. function DivineBlast()
  3874. attack = true
  3875. bosschatfunc("Justice Beam!!!",MAINRUINCOLOR.Color,0.7)
  3876. hum.WalkSpeed = 0
  3877. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3878. elocacenter.Anchored = true
  3879. elocacenter.CFrame = sorb.CFrame
  3880. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3881. eloca1.Anchored = true
  3882. eloca1.CFrame = elocacenter.CFrame
  3883. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3884. eloca2.Anchored = true
  3885. eloca2.CFrame = elocacenter.CFrame
  3886. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3887. eloca3.Anchored = true
  3888. eloca3.CFrame = elocacenter.CFrame
  3889. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3890. eloca4.Anchored = true
  3891. eloca4.CFrame = elocacenter.CFrame
  3892. local lookavec = 0
  3893. local speeds = 0
  3894. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3895. for i = 0, 3, 0.1 do
  3896. swait()
  3897. ---
  3898. lookavec = lookavec + 0.1
  3899. speeds = speeds + 10
  3900. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3901. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3902. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3903.  
  3904. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3905. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3906.  
  3907. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3908. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3909.  
  3910. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3911. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3912. ---
  3913. root.CFrame = FaceMouse()[1]
  3914. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3915. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3918. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3919. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3920. end
  3921. for i = 0, 3, 0.1 do
  3922. swait()
  3923. ---
  3924. speeds = speeds + 10
  3925. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3926. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3927. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3928.  
  3929. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3930. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3931.  
  3932. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3933. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3934.  
  3935. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3936. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3937. ---
  3938. root.CFrame = FaceMouse()[1]
  3939. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3940. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3943. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3944. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3945. end
  3946. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3947. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3948. for i = 0, 3, 0.1 do
  3949. swait()
  3950. ---
  3951. speeds = speeds + 10
  3952. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3953. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3954. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3955.  
  3956. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3957. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3958.  
  3959. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3960. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3961.  
  3962. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3963. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3964. ---
  3965. root.CFrame = FaceMouse()[1]
  3966. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3967. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  3969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  3970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3971. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3972. end
  3973. coroutine.resume(coroutine.create(function()
  3974. local a = Instance.new("Part",Character)
  3975. a.Name = "Direction"
  3976. a.Anchored = true
  3977. a.BrickColor = bc("White")
  3978. a.Material = "Neon"
  3979. a.Transparency = 0
  3980. a.Shape = "Cylinder"
  3981. a.CanCollide = false
  3982. local a2 = Instance.new("Part",Character)
  3983. a2.Name = "Direction"
  3984. a2.Anchored = true
  3985. a2.BrickColor = bc("Bright yellow")
  3986. a2.Material = "Neon"
  3987. a2.Transparency = 0
  3988. a2.Shape = "Cylinder"
  3989. a2.CanCollide = false
  3990. local b = Instance.new("Part",Character)
  3991. b.Name = "HitDirect"
  3992. b.Anchored = true
  3993. b.BrickColor = bc("Cool yellow")
  3994. b.Material = "Neon"
  3995. b.Transparency = 1
  3996. b.CanCollide = false
  3997. local ray = Ray.new(
  3998. elocacenter.CFrame.p, -- origin
  3999. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4000. )
  4001. local ignore = Character
  4002. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4003. a.BottomSurface = 10
  4004. a.TopSurface = 10
  4005. a2.BottomSurface = 10
  4006. a2.TopSurface = 10
  4007. local distance = (elocacenter.CFrame.p - position).magnitude
  4008. a.Size = Vector3.new(distance, 1, 1)
  4009. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4010. a2.Size = Vector3.new(distance, 1, 1)
  4011. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4012. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4013. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4014. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4015. game:GetService("Debris"):AddItem(a, 10)
  4016. game:GetService("Debris"):AddItem(a2, 10)
  4017. game:GetService("Debris"):AddItem(b, 10)
  4018. local eff = Instance.new("ParticleEmitter",b)
  4019. eff.Texture = "rbxassetid://2273224484"
  4020. eff.LightEmission = 1
  4021. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4022. eff.Rate = 500000
  4023. eff.Lifetime = NumberRange.new(0.5,2)
  4024. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4025. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4026. eff.Speed = NumberRange.new(20,250)
  4027. eff.Drag = 5
  4028. eff.Rotation = NumberRange.new(-500,500)
  4029. eff.VelocitySpread = 9000
  4030. eff.RotSpeed = NumberRange.new(-50,50)
  4031. coroutine.resume(coroutine.create(function()
  4032. wait(0.25)
  4033. eff.Enabled = false
  4034. end))
  4035. local msh = Instance.new("SpecialMesh",a)
  4036. msh.MeshType = "Cylinder"
  4037. msh.Scale = vt(1,2,2)
  4038. local msh2 = Instance.new("SpecialMesh",a2)
  4039. msh2.MeshType = "Cylinder"
  4040. msh2.Scale = vt(1,2.5,2.5)
  4041. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4042. coroutine.resume(coroutine.create(function()
  4043. for i = 0,10,0.1 do
  4044. swait()
  4045. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4046. a.Transparency = a.Transparency + 0.025
  4047. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4048. a2.Transparency = a2.Transparency + 0.05
  4049. end
  4050. a:Destroy()
  4051. a2:Destroy()
  4052. end))
  4053. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4054. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4055. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4056. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4057. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4058. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4059. MagniDamage(b, 25, 40,65, 0, "Normal")
  4060. for i = 0, 49 do
  4061. PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
  4062. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  4063. end
  4064. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4065. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4066. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4067. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4068. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4069. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4070. end))
  4071. game:GetService("Debris"):AddItem(elocacenter, 5)
  4072. hum.WalkSpeed = storehumanoidWS
  4073. attack = false
  4074. end
  4075.  
  4076. function StarDivision()
  4077. attack = true
  4078. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4079. for i = 0, 2, 0.1 do
  4080. swait()
  4081. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4082. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4083. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4085. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4086. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4087. end
  4088. local orb = Instance.new("Part", char)
  4089. orb.BrickColor = MAINRUINCOLOR
  4090. orb.CanCollide = false
  4091. orb.FormFactor = 3
  4092. orb.Name = "Ring"
  4093. orb.Material = "Neon"
  4094. orb.Size = Vector3.new(1, 1, 1)
  4095. orb.Transparency = 0
  4096. orb.TopSurface = 0
  4097. orb.BottomSurface = 0
  4098. local orbm = Instance.new("SpecialMesh", orb)
  4099. orbm.MeshType = "Sphere"
  4100. orbm.Name = "SizeMesh"
  4101. orbm.Scale = vt(2,2,2)
  4102. local a = Instance.new("Part",workspace)
  4103. a.Name = "Direction"
  4104. a.Anchored = true
  4105. a.BrickColor = bc("Bright red")
  4106. a.Material = "Neon"
  4107. a.Transparency = 1
  4108. a.CanCollide = false
  4109. local ray = Ray.new(
  4110. sorb.CFrame.p, -- origin
  4111. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4112. )
  4113. local ignore = sorb
  4114. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4115. a.BottomSurface = 10
  4116. a.TopSurface = 10
  4117. local distance = (sorb.CFrame.p - position).magnitude
  4118. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4119. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4120. orb.CFrame = a.CFrame
  4121. a:Destroy()
  4122. local bv = Instance.new("BodyVelocity")
  4123. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4124. bv.velocity = orb.CFrame.lookVector*100
  4125. bv.Parent = orb
  4126. local hitted = false
  4127. game:GetService("Debris"):AddItem(orb, 10)
  4128. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4129. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4130. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4131. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4132. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4133. coroutine.resume(coroutine.create(function()
  4134. while true do
  4135. swait(1)
  4136. if orb.Parent ~= nil and hitted == false then
  4137. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4138. elseif orb.Parent == nil then
  4139. break
  4140. end
  4141. end
  4142. end))
  4143. coroutine.resume(coroutine.create(function()
  4144. swait(1)
  4145. orb.Touched:connect(function(hit)
  4146. if hitted == false then
  4147. hitted = true
  4148. game:GetService("Debris"):AddItem(orb, 5)
  4149. orb.Transparency = 1
  4150. orb.Anchored = true
  4151. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4152. elocacenter.Anchored = true
  4153. elocacenter.CFrame = orb.CFrame
  4154. elocacenter.Orientation = vt(0,0,0)
  4155. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4156. eloca1.Anchored = true
  4157. eloca1.CFrame = elocacenter.CFrame
  4158. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4159. eloca2.Anchored = true
  4160. eloca2.CFrame = elocacenter.CFrame
  4161. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4162. eloca3.Anchored = true
  4163. eloca3.CFrame = elocacenter.CFrame
  4164. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4165. eloca4.Anchored = true
  4166. eloca4.CFrame = elocacenter.CFrame
  4167. local lookavec = 0
  4168. local speeds = 0
  4169. CameraEnshaking(1,1)
  4170. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4171. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4172. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4173. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4174. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4175. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4176. for i = 0, 99 do
  4177. swait()
  4178. lookavec = lookavec + 1
  4179. speeds = speeds + 0.1
  4180. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4181. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4182. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4183.  
  4184. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4185. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4186.  
  4187. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4188. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4189.  
  4190. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4191. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4192. end
  4193.  
  4194. for i = 0, 149 do
  4195. swait()
  4196. speeds = speeds + 0.1
  4197. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4198. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4199. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4200.  
  4201. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4202. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4203.  
  4204. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4205. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4206.  
  4207. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4208. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4209. end
  4210. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4211. if v:FindFirstChild('Head') then
  4212. dmg(v)
  4213. end
  4214. end
  4215. CameraEnshaking(7,30)
  4216. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4217. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4218. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4219. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4220. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4221. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4222. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4223. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4224. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4225. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4226. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4227. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4228. for i = 0, 24 do
  4229. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4230. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4231. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4232. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4233. end
  4234. coroutine.resume(coroutine.create(function()
  4235. for i = 0, 499 do
  4236. swait(1)
  4237. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4238. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4239. end
  4240. elocacenter:Destroy()
  4241. eloca1:Destroy()
  4242. eloca2:Destroy()
  4243. eloca3:Destroy()
  4244. eloca4:Destroy()
  4245. end))
  4246. end
  4247. end)
  4248. end))
  4249. attack = false
  4250. end
  4251.  
  4252.  
  4253. function THE_TRUE_POWER_OF_VIOLENCE()
  4254. attack = true
  4255. hum.WalkSpeed = 0
  4256. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4257. for i = 0, 10, 0.1 do
  4258. swait()
  4259. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4260. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4261. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4266. end
  4267. local orb = Instance.new("Part", char)
  4268. orb.BrickColor = MAINRUINCOLOR
  4269. orb.CanCollide = false
  4270. orb.FormFactor = 3
  4271. orb.Name = "Ring"
  4272. orb.Material = "Neon"
  4273. orb.Size = Vector3.new(1, 1, 1)
  4274. orb.Transparency = 0
  4275. orb.TopSurface = 0
  4276. orb.BottomSurface = 0
  4277. orb.CFrame = sorb.CFrame
  4278. local orbm = Instance.new("SpecialMesh", orb)
  4279. orbm.MeshType = "Sphere"
  4280. orbm.Name = "SizeMesh"
  4281. orbm.Scale = vt(0,0,0)
  4282. local sbs = Instance.new("BodyPosition", orb)
  4283. sbs.P = 3000
  4284. sbs.D = 1000
  4285. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4286. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4287. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4288. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4289. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4290. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4291. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4292. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4293. for i = 0, 10, 0.1 do
  4294. swait()
  4295. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4296. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4297. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4301. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4302. end
  4303. orb.Anchored = true
  4304. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4305. elocacenter.Anchored = true
  4306. elocacenter.CFrame = orb.CFrame
  4307. elocacenter.Orientation = vt(0,0,0)
  4308. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4309. eloca1.Anchored = true
  4310. eloca1.CFrame = elocacenter.CFrame
  4311. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4312. eloca2.Anchored = true
  4313. eloca2.CFrame = elocacenter.CFrame
  4314. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4315. eloca3.Anchored = true
  4316. eloca3.CFrame = elocacenter.CFrame
  4317. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4318. eloca4.Anchored = true
  4319. eloca4.CFrame = elocacenter.CFrame
  4320. local lookavec = 0
  4321. local speeds = 0
  4322. CameraEnshaking(1,1)
  4323. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4324. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4325. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4326. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4327. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4328. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4329. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4330. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4331. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4332. for i = 0, 99 do
  4333. swait()
  4334. lookavec = lookavec + 2.5
  4335. speeds = speeds + 0.25
  4336. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4337. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4338. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4339.  
  4340. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4341. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4342.  
  4343. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4344. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4345.  
  4346. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4347. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4348. end
  4349.  
  4350. for i = 0, 149 do
  4351. swait()
  4352. speeds = speeds + 0.25
  4353. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4354. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4355. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4356.  
  4357. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4358. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4359.  
  4360. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4361. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4362.  
  4363. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4364. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4365. end
  4366. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4367. for i = 0, 99 do
  4368. swait()
  4369. lookavec = lookavec - 2.5
  4370. speeds = speeds + 0.25
  4371. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4372. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4373. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4374.  
  4375. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4376. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4377.  
  4378. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4379. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4380.  
  4381. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4382. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4383. end
  4384. local scaled = 0.1*75
  4385. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4386. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4387. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4388. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4389. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4390. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4391. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4392. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4393. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4394. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4395. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4396.  
  4397. for i = 0, 10, 0.1 do
  4398. swait()
  4399. scaled = scaled - 0.001*75
  4400. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4401. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4402. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4403. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4404. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4406. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4407. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4408. end
  4409. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4410. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4411. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4412. for x = 0, 4 do
  4413. for i = 0, 9 do
  4414. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4415. end
  4416. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4417. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4418. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4419. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4420. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4421. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4422. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4423. for i = 0, 5, 0.1 do
  4424. swait()
  4425. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4426. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4427. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4428. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4429. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4430. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4431. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4432. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4433. end
  4434. end
  4435. local speedearn = 0
  4436. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4437. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4438. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4439. for i = 0, 30, 0.1 do
  4440. swait()
  4441. scaled = scaled - 0.001*75/10
  4442. speedearn = speedearn + 0.5
  4443. for i = 0, 4 do
  4444. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4445. end
  4446. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4447. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4448. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4449. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4450. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4451. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4452. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4454. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4455. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4456. end
  4457. orb.Transparency = 1
  4458. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4459. if v:FindFirstChild('Head') then
  4460. dmg(v)
  4461. end
  4462. end
  4463. CameraEnshaking(7,30)
  4464. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4465. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4466. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4467. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4468. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4469. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4470. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4471. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4472. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4473. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4474. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4475. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4476. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4477. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4478. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4480. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4481. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4482. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4483. for i = 0, 99 do
  4484. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4485. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4486. end
  4487. for i = 0, 24 do
  4488. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4489. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4490. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4491. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4492. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4493. end
  4494. game:GetService("Debris"):AddItem(orb, 10)
  4495. hum.WalkSpeed = storehumanoidWS
  4496. attack = false
  4497. end
  4498.  
  4499.  
  4500. function ViolentRing()
  4501. attack = true
  4502. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4503. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4504. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4505. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4506. for i = 0, 2, 0.1 do
  4507. swait()
  4508. local snap = math.random(1,10)
  4509. if snap == 1 then
  4510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4511. end
  4512. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4513. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4514. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4515. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4516. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4517. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  4518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4519. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4520. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4521. RootPart.CFrame = FaceMouse()[1]
  4522. end
  4523. local orb = Instance.new("Part", char)
  4524. orb.BrickColor = MAINRUINCOLOR
  4525. orb.CanCollide = false
  4526. orb.FormFactor = 3
  4527. orb.Name = "Ring"
  4528. orb.Material = "Neon"
  4529. orb.Size = Vector3.new(1, 1, 1)
  4530. orb.Transparency = 0
  4531. orb.TopSurface = 0
  4532. orb.BottomSurface = 0
  4533. local orbm = Instance.new("SpecialMesh", orb)
  4534. orbm.MeshType = "Sphere"
  4535. orbm.Name = "SizeMesh"
  4536. orbm.Scale = vt(2,2,2)
  4537. orb.CFrame = mouse.Hit
  4538. local bv = Instance.new("BodyVelocity")
  4539. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4540. bv.velocity = orb.CFrame.lookVector*100
  4541. bv.Parent = orb
  4542. local hitted = false
  4543. coroutine.resume(coroutine.create(function()
  4544. game:GetService("Debris"):AddItem(orb, 5)
  4545. orb.Transparency = 1
  4546. orb.Anchored = true
  4547. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4548. elocacenter.Anchored = true
  4549. elocacenter.CFrame = orb.CFrame
  4550. elocacenter.Orientation = vt(0,0,0)
  4551. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4552. eloca1.Anchored = true
  4553. eloca1.CFrame = elocacenter.CFrame
  4554. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4555. eloca2.Anchored = true
  4556. eloca2.CFrame = elocacenter.CFrame
  4557. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4558. eloca3.Anchored = true
  4559. eloca3.CFrame = elocacenter.CFrame
  4560. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4561. eloca4.Anchored = true
  4562. eloca4.CFrame = elocacenter.CFrame
  4563. local lookavec = 0
  4564. local speeds = 0
  4565. CameraEnshaking(1,1)
  4566. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4567. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4568. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4569. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4570. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4571. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4572. for i = 0, 24 do
  4573. swait()
  4574. lookavec = lookavec + 3.5
  4575. speeds = speeds + 1
  4576. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4577. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4578. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4579.  
  4580. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4581. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4582.  
  4583. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4584. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4585.  
  4586. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4587. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4588. end
  4589.  
  4590. local risen = 0
  4591. for i = 0, 49 do
  4592. swait()
  4593. risen = risen + 0.05
  4594. speeds = speeds + 0.1
  4595. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4596. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4597. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4598.  
  4599. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4600. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4601.  
  4602. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4603. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4604.  
  4605. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4606. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4607. end
  4608. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4609. if v:FindFirstChild('Head') then
  4610. dmg(v)
  4611. end
  4612. end
  4613. CameraEnshaking(4,10)
  4614. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4615. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4616. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4617. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4618. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4619. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4620. local eff = Instance.new("ParticleEmitter",elocacenter)
  4621. eff.Texture = "rbxassetid://2273224484"
  4622. eff.LightEmission = 1
  4623. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4624. eff.Rate = 1000000
  4625. eff.Lifetime = NumberRange.new(0.5,2)
  4626. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4627. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4628. eff.Speed = NumberRange.new(20,250)
  4629. eff.Drag = 5
  4630. eff.Rotation = NumberRange.new(-500,500)
  4631. eff.VelocitySpread = 5000000
  4632. eff.RotSpeed = NumberRange.new(-50,50)
  4633. coroutine.resume(coroutine.create(function()
  4634. wait(1)
  4635. eff.Enabled = false
  4636. end))
  4637. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4638. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4639. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4640. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4641. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4642. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4643. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4644. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4645. for i = 0, 24 do
  4646. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  4647. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4648. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4649. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4650. end
  4651. coroutine.resume(coroutine.create(function()
  4652. wait(10)
  4653. elocacenter:Destroy()
  4654. eloca1:Destroy()
  4655. eloca2:Destroy()
  4656. eloca3:Destroy()
  4657. eloca4:Destroy()
  4658. end))
  4659. end))
  4660. attack = false
  4661. end
  4662.  
  4663. function UniversalCollapse()
  4664. attack = true
  4665. local speedearn = 0
  4666. hum.WalkSpeed = 0
  4667. local sbs = Instance.new("BodyPosition", root)
  4668. sbs.P = 3000
  4669. sbs.D = 1000
  4670. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4671. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4672. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4673. for i = 0, 85, 0.1 do
  4674. swait()
  4675. speedearn = speedearn + 0.1
  4676. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4677. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4678. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4679. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4680. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4681. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4682. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4683. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4684. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4685. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4686. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4687. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4688. end
  4689. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4690. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4691. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4692. for i = 0, 25, 0.1 do
  4693. swait()
  4694. speedearn = speedearn + 0.1
  4695. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4696. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4697. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4698. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4699. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4700. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4701. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4702. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4703. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4704. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4705. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4706. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4707. end
  4708. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4709. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4710. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4711. CameraEnshaking(5,50)
  4712. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4713. for i = 0, 2 do
  4714. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4715. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4716. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4717. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4718. end
  4719. for i = 0, 49 do
  4720. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4721. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4722. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4723. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4724. end
  4725. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4726. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4727. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4728. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4729. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4730. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4731. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4732. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4733. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4734. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4735. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4736. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4737. for i = 0, 99 do
  4738. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4739. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4740. end
  4741. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4742. if v:FindFirstChild('Head') then
  4743. dmg(v)
  4744. end
  4745. end
  4746. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4747. sbs:Destroy()
  4748. hum.WalkSpeed = storehumanoidWS
  4749. attack = false
  4750. end
  4751.  
  4752.  
  4753. function ChaosEND()
  4754. attack = true
  4755. local speedearn = 0
  4756. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4757. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4758. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4759. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4760. for i = 0, 15, 0.1 do
  4761. swait()
  4762. speedearn = speedearn + 0.25
  4763. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4764. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4765. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4766. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4767. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4768. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4769. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4772. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4773. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4774. end
  4775. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4776. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4777. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4778. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4779. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4780. CameraEnshaking(5,25)
  4781. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4782. if v:FindFirstChild('Head') then
  4783. dmg(v)
  4784. end
  4785. end
  4786. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4787. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4788. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4789. for i = 0, 3, 0.1 do
  4790. swait()
  4791. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4792. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4793. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4794. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4795. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4796. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4797. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4798. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4799. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4800. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4801. end
  4802. attack = false
  4803. end
  4804.  
  4805. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4806. local orb = Instance.new("Part", char)
  4807. orb.Anchored = true
  4808. orb.BrickColor = color
  4809. orb.CanCollide = false
  4810. orb.FormFactor = 3
  4811. orb.Name = "Ring"
  4812. orb.Material = "Neon"
  4813. orb.Size = Vector3.new(1, 1, 1)
  4814. orb.Transparency = 0
  4815. orb.TopSurface = 0
  4816. orb.BottomSurface = 0
  4817. local orbm = Instance.new("SpecialMesh", orb)
  4818. orbm.MeshType = "Sphere"
  4819. orb.CFrame = positted
  4820. orbm.Name = "SizeMesh"
  4821. orbm.Scale = vt(1,1,1)
  4822. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4823. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4824. --[[for i = 0, 2 do
  4825. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4826. end]]--
  4827. coroutine.resume(coroutine.create(function()
  4828. wait(timer)
  4829. CameraEnshaking(3,ShakePower)
  4830. orb.Transparency = 1
  4831. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4832. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4833. --[[for i = 0, 4 do
  4834. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4835. end]]--
  4836. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4837. wait(3)
  4838. orb:Destroy()
  4839. end))
  4840. end
  4841.  
  4842. function orb_spawn(positted,timer)
  4843. local randomcol = math.random(1,2)
  4844. local orb = Instance.new("Part", char)
  4845. orb.Anchored = true
  4846. if randomcol == 1 then
  4847. orb.BrickColor = BrickColor.new("White")
  4848. elseif randomcol == 2 then
  4849. orb.BrickColor = BrickColor.new("Really black")
  4850. end
  4851. orb.CanCollide = false
  4852. orb.FormFactor = 3
  4853. orb.Name = "Ring"
  4854. orb.Material = "Neon"
  4855. orb.Size = Vector3.new(1, 1, 1)
  4856. orb.Transparency = 0
  4857. orb.TopSurface = 0
  4858. orb.BottomSurface = 0
  4859. local orbm = Instance.new("SpecialMesh", orb)
  4860. orbm.MeshType = "Sphere"
  4861. orb.CFrame = positted
  4862. orbm.Name = "SizeMesh"
  4863. orbm.Scale = vt(1,1,1)
  4864. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4865. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4866. for i = 0, 2 do
  4867. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4868. end
  4869. coroutine.resume(coroutine.create(function()
  4870. wait(timer)
  4871. CameraEnshaking(3,2)
  4872. orb.Transparency = 1
  4873. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4874. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4875. for i = 0, 4 do
  4876. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4877. end
  4878. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4879. wait(3)
  4880. orb:Destroy()
  4881. end))
  4882. end
  4883.  
  4884. function scattercorrupt()
  4885. attack = true
  4886. hum.WalkSpeed = 0
  4887. for i = 0, 2, 0.1 do
  4888. swait()
  4889. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4890. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4891. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4892. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4893. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4894. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4895. end
  4896. local rot = 0
  4897. local randomrotations = math.random(1,2)
  4898. local lookv = 2.5
  4899. local power = 7
  4900. bosschatfunc("I'll take you on again.",MAINRUINCOLOR.Color,1)
  4901. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4902. for i = 0, 1, 0.1 do
  4903. swait()
  4904. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4905. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4906. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4908. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4909. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4910. end
  4911. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4912. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4913. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4914. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4915. for i = 0, 9 do
  4916. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4917. end
  4918. local hite = Instance.new("Part", char)
  4919. hite.Anchored = true
  4920. hite.CanCollide = false
  4921. hite.FormFactor = 3
  4922. hite.Name = "Ring"
  4923. hite.Material = "Neon"
  4924. hite.Size = Vector3.new(1, 1, 1)
  4925. hite.Transparency = 1
  4926. hite.TopSurface = 0
  4927. hite.BottomSurface = 0
  4928. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4929. local rem = Instance.new("Part", char)
  4930. rem.Anchored = true
  4931. rem.CanCollide = false
  4932. rem.FormFactor = 3
  4933. rem.Name = "Ring"
  4934. rem.Material = "Neon"
  4935. rem.Size = Vector3.new(1, 1, 1)
  4936. rem.Transparency = 1
  4937. rem.TopSurface = 0
  4938. rem.BottomSurface = 0
  4939. rem.CFrame = hite.CFrame
  4940. local rem2 = rem:Clone()
  4941. rem2.Parent = char
  4942. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4943. local rem3 = rem:Clone()
  4944. rem3.Parent = char
  4945. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4946. local rem4 = rem:Clone()
  4947. rem4.Parent = char
  4948. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4949. hite:Destroy()
  4950. coroutine.resume(coroutine.create(function()
  4951. for i = 0, 24 do
  4952. swait(1)
  4953. if randomrotations == 1 then
  4954. rot = rot + 1
  4955. elseif randomrotations == 2 then
  4956. rot = rot - 1
  4957. end
  4958. power = power + 0.5
  4959. lookv = lookv + 7.5
  4960. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4961. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4962. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4963. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4964. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4965. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4966. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4967. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4968. end
  4969. end))
  4970. wait(2)
  4971. hum.WalkSpeed = storehumanoidWS
  4972. attack = false
  4973. end
  4974. function yinyangi()
  4975. attack = true
  4976. for i = 0, 2, 0.1 do
  4977. swait()
  4978. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4984. end
  4985. local bv = Instance.new("BodyVelocity")
  4986. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4987. bv.velocity = root.CFrame.lookVector*175
  4988. bv.Parent = root
  4989. for Rotations = 0, 9 do
  4990. for i = 0, 1, 0.5 do
  4991. swait()
  4992. bv.velocity = root.CFrame.lookVector*175
  4993. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4994. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4999. end
  5000. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5001. for i = 0, 1, 0.5 do
  5002. swait()
  5003. bv.velocity = root.CFrame.lookVector*175
  5004. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5005. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5006. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5008. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5009. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5010. end
  5011. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5012. for i = 0, 1, 0.5 do
  5013. swait()
  5014. bv.velocity = root.CFrame.lookVector*175
  5015. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5016. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5017. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5020. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5021. end
  5022. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5023. for i = 0, 1, 0.5 do
  5024. swait()
  5025. bv.velocity = root.CFrame.lookVector*175
  5026. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5027. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5028. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5030. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5031. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5032. end
  5033. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5034. end
  5035. bv:Destroy()
  5036. attack = false
  5037. end
  5038.  
  5039. function createBGCircle(size,parent,color)
  5040. local bgui = Instance.new("BillboardGui",parent)
  5041. bgui.Size = UDim2.new(size, 0, size, 0)
  5042. local imgc = Instance.new("ImageLabel",bgui)
  5043. imgc.BackgroundTransparency = 1
  5044. imgc.ImageTransparency = 0
  5045. imgc.Size = UDim2.new(1,0,1,0)
  5046. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5047. imgc.ImageColor3 = color
  5048. return bgui,imgc
  5049. end
  5050.  
  5051. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5052. local bgui,imgc = createBGCircle(size,guipar,color)
  5053. bgui.AlwaysOnTop = true
  5054. imgc.Image = "rbxassetid://" ..img
  5055. local rrot = math.random(1,2)
  5056. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5057. coroutine.resume(coroutine.create(function()
  5058. for i = 0, 24*delay do
  5059. swait()
  5060. if rotationenabled == true then
  5061. if rrot == 1 then
  5062. imgc.Rotation = imgc.Rotation + rotsp
  5063. elseif rrot == 2 then
  5064. imgc.Rotation = imgc.Rotation - rotsp
  5065. end
  5066. end
  5067. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5068. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5069. end
  5070. bgui:Destroy()
  5071. end))
  5072. end
  5073. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5074. for i, v in pairs(mw2:GetChildren()) do
  5075. if v:IsA("Part") then
  5076. v.BrickColor = one
  5077. v.Material = "Neon"
  5078. end
  5079. end
  5080. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5081. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5082. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5083. tr1.Color = ColorSequence.new(one.Color)
  5084. tr2.Color = ColorSequence.new(one.Color)
  5085. tr3.Color = ColorSequence.new(one.Color)
  5086. for i, v in pairs(mw1:GetChildren()) do
  5087. if v:IsA("Part") then
  5088. if secondaryenabled == false then
  5089. v.Transparency = 1
  5090. elseif secondaryenabled == true then
  5091. v.Transparency = 0
  5092. end
  5093. v.BrickColor = two
  5094. v.Material = "Neon"
  5095. end
  5096. end
  5097. if secondaryenabled == false then
  5098. tl1.Enabled = false
  5099. tl2.Enabled = false
  5100. tl3.Enabled = false
  5101. elseif secondaryenabled == true then
  5102. tl1.Enabled = true
  5103. tl2.Enabled = true
  5104. tl3.Enabled = true
  5105. end
  5106. tl1.Color = ColorSequence.new(two.Color)
  5107. tl2.Color = ColorSequence.new(two.Color)
  5108. tl3.Color = ColorSequence.new(two.Color)
  5109. for i, v in pairs(m:GetChildren()) do
  5110. if v:IsA("Part") then
  5111. v.BrickColor = three
  5112. v.Material = "Ice"
  5113. end
  5114. end
  5115. for i, v in pairs(m2:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = four
  5118. v.Material = "Ice"
  5119. end
  5120. end
  5121. for i, v in pairs(m3:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.BrickColor = five
  5124. v.Material = "Neon"
  5125. end
  5126. end
  5127. for i, v in pairs(extrawingmod1:GetChildren()) do
  5128. if v:IsA("Part") then
  5129. v.Transparency = exonetran
  5130. v.BrickColor = exone
  5131. v.Material = "Neon"
  5132. end
  5133. end
  5134. for i, v in pairs(extrawingmod2:GetChildren()) do
  5135. if v:IsA("Part") then
  5136. v.Transparency = extwotran
  5137. v.BrickColor = extwo
  5138. v.Material = "Neon"
  5139. end
  5140. end
  5141. end
  5142.  
  5143.  
  5144. function normalmog()
  5145. attack = true
  5146. hum.WalkSpeed = 0
  5147. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5148. for i = 0,6,0.1 do
  5149. swait()
  5150. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5151. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5152. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  5153. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  5154. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5155. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5156. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5157. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5158. end
  5159. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5160. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5161. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5162. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5163. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5164. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5165. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5166. rainbowmode = false
  5167. chaosmode = false
  5168. ModeOfGlitch = 1
  5169. storehumanoidWS = 12
  5170. newTheme("rbxassetid://723652641",48.6,1,1.25)
  5171. RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(0,0,0),"Antique")
  5172. CameraEnshaking(5,2.5)
  5173. MAINRUINCOLOR = BrickColor.new("Black")
  5174. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5175. for i = 0, 49 do
  5176. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5177. end
  5178. for i = 0, 24 do
  5179. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  5180. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  5181. end
  5182. for i = 0,3,0.1 do
  5183. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5184. end
  5185. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5186. for i = 0,2,0.1 do
  5187. swait()
  5188. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5189. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5190. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5192. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5193. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5194. end
  5195. hum.WalkSpeed = storehumanoidWS
  5196. attack = false
  5197. end
  5198.  
  5199. function attackone()
  5200. attack = true
  5201. local keptcolor = MAINRUINCOLOR
  5202. for i = 0,1,0.1 do
  5203. swait()
  5204. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5206. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5207. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5208. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5209. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5210. end
  5211. local distlook = 5
  5212. coroutine.resume(coroutine.create(function()
  5213. for i = 0, 4 do
  5214. swait(2)
  5215. CameraEnshaking(2,3)
  5216. local hite = Instance.new("Part", char)
  5217. hite.Anchored = true
  5218. hite.CanCollide = false
  5219. hite.FormFactor = 3
  5220. hite.Name = "Ring"
  5221. hite.Material = "Neon"
  5222. hite.Size = Vector3.new(1, 1, 1)
  5223. hite.Transparency = 1
  5224. hite.TopSurface = 0
  5225. hite.BottomSurface = 0
  5226. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5227. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5228. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5229. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5230. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5231. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5232. for i = 0, 14 do
  5233. local rsiz = math.random(5,20)
  5234. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5235. end
  5236. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5237. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5238. game:GetService("Debris"):AddItem(hite, 5)
  5239. distlook = distlook + 10
  5240. end
  5241. end))
  5242. for i = 0,1,0.1 do
  5243. swait()
  5244. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5245. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5246. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5247. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5248. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5249. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5250. end
  5251. attack = false
  5252. end
  5253.  
  5254. function attacktwo()
  5255. attack = true
  5256. hum.WalkSpeed = 2
  5257. local keptcolor = MAINRUINCOLOR
  5258. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5259. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5260. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5261. for i = 0, 14 do
  5262. PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,keptcolor,0)
  5263. end
  5264. for i = 0,1,0.1 do
  5265. swait()
  5266. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5267. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5268. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5271. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5272. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5273. end
  5274. for i = 0, 1 do
  5275. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5276. for i = 0,1,0.6 do
  5277. swait()
  5278. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5279. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5280. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5281. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5282. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5283. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5284. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5285. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5286. end
  5287. for i = 0,1,0.6 do
  5288. swait()
  5289. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5290. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5291. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5292. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5295. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5296. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5297. end
  5298. for i = 0,1,0.6 do
  5299. swait()
  5300. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5301. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5302. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5303. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5306. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5307. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5308. end
  5309. for i = 0,1,0.6 do
  5310. swait()
  5311. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5312. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5313. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5314. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5315. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5316. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5317. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5318. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5319. end
  5320. local rot = 0
  5321. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5322. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5323. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5324. CreateMesh(dis,"Sphere",10,1,10)
  5325. local at1 = Instance.new("Attachment",dis)
  5326. at1.Position = vt(-5,0,0)
  5327. local at2 = Instance.new("Attachment",dis)
  5328. at2.Position = vt(5,0,0)
  5329. local trl = Instance.new('Trail',wed)
  5330. trl.Attachment0 = at1
  5331. trl.Attachment1 = at2
  5332. trl.Texture = "rbxassetid://1049219073"
  5333. trl.LightEmission = 1
  5334. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5335. trl.Color = ColorSequence.new(dis.Color)
  5336. trl.Lifetime = 0.6
  5337. local a = Instance.new("Part",workspace)
  5338. a.Name = "Direction"
  5339. a.Anchored = true
  5340. a.BrickColor = bc("Bright red")
  5341. a.Material = "Neon"
  5342. a.Transparency = 1
  5343. a.CanCollide = false
  5344. local ray = Ray.new(
  5345. dis.CFrame.p, -- origin
  5346. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5347. )
  5348. local ignore = dis
  5349. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5350. a.BottomSurface = 10
  5351. a.TopSurface = 10
  5352. local distance = (dis.CFrame.p - position).magnitude
  5353. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5354. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5355. dis.CFrame = a.CFrame
  5356. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5357. a:Destroy()
  5358. local bv = Instance.new("BodyVelocity")
  5359. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5360. bv.velocity = dis.CFrame.lookVector*250
  5361. bv.Parent = dis
  5362. game:GetService("Debris"):AddItem(dis, 5)
  5363. local hitted = false
  5364. coroutine.resume(coroutine.create(function()
  5365. dis.Touched:connect(function(hit)
  5366. if hitted == false and hit.Parent ~= char then
  5367. hitted = true
  5368. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5369. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5370. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5371. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5372. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5373. coroutine.resume(coroutine.create(function()
  5374. for i = 0, 9 do
  5375. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5376. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5377. local at1 = Instance.new("Attachment",disr)
  5378. at1.Position = vt(-5,0,0)
  5379. local at2 = Instance.new("Attachment",disr)
  5380. at2.Position = vt(5,0,0)
  5381. local trl = Instance.new('Trail',disr)
  5382. trl.Attachment0 = at1
  5383. trl.FaceCamera = true
  5384. trl.Attachment1 = at2
  5385. trl.Texture = "rbxassetid://2342682798"
  5386. trl.LightEmission = 1
  5387. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5388. trl.Color = ColorSequence.new(keptcolor.Color)
  5389. trl.Lifetime = 0.5
  5390. local bv = Instance.new("BodyVelocity")
  5391. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5392. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5393. bv.Parent = disr
  5394. local val = 0
  5395. coroutine.resume(coroutine.create(function()
  5396. swait(30)
  5397. for i = 0, 9 do
  5398. swait()
  5399. val = val + 0.1
  5400. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5401. end
  5402. game:GetService("Debris"):AddItem(disr, 3)
  5403. end))
  5404. end
  5405. local eff = Instance.new("ParticleEmitter",dis)
  5406. eff.Texture = "rbxassetid://2273224484"
  5407. eff.LightEmission = 1
  5408. eff.Color = ColorSequence.new(keptcolor.Color)
  5409. eff.Rate = 500000
  5410. eff.Lifetime = NumberRange.new(0.5,2)
  5411. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5412. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5413. eff.Speed = NumberRange.new(20,250)
  5414. eff.Drag = 5
  5415. eff.Rotation = NumberRange.new(-500,500)
  5416. eff.VelocitySpread = 9000
  5417. eff.RotSpeed = NumberRange.new(-50,50)
  5418. wait(0.25)
  5419. eff.Enabled = false
  5420. end))
  5421. for i = 0, 9 do
  5422. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  5423. end
  5424. for i = 0, 19 do
  5425. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,keptcolor,0)
  5426. end
  5427. coroutine.resume(coroutine.create(function()
  5428. for i = 0, 19 do
  5429. swait()
  5430. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5431. end
  5432. hum.CameraOffset = vt(0,0,0)
  5433. end))
  5434. dis.Anchored = true
  5435. dis.Transparency = 1
  5436. wait(8)
  5437. dis:Destroy()
  5438. end
  5439. end)
  5440. end))
  5441. rot = rot - 15
  5442. end
  5443. for i = 0,2,0.1 do
  5444. swait()
  5445. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5446. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5447. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5449. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5450. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5451. end
  5452. attack = false
  5453. hum.WalkSpeed = storehumanoidWS
  5454. end
  5455.  
  5456. function attackthree()
  5457. attack = true
  5458. local keptcolor = MAINRUINCOLOR
  5459. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5460. for i = 0,2,0.1 do
  5461. swait()
  5462. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5463. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5464. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5466. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5467. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5468. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5469. end
  5470. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5471. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5472. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5473. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5474. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5475. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5476. for i = 0, 24 do
  5477. slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
  5478. end
  5479. for i = 0,4,0.1 do
  5480. swait()
  5481. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5482. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5483. CreateMesh(dis,"Sphere",1,1,1)
  5484. dis.Anchored = true
  5485. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5486. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5487. coroutine.resume(coroutine.create(function()
  5488. swait(30)
  5489. dis.Transparency = 1
  5490. coroutine.resume(coroutine.create(function()
  5491. for i = 0, 19 do
  5492. swait()
  5493. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5494. end
  5495. hum.CameraOffset = vt(0,0,0)
  5496. end))
  5497. coroutine.resume(coroutine.create(function()
  5498. local eff = Instance.new("ParticleEmitter",dis)
  5499. eff.Texture = "rbxassetid://2273224484"
  5500. eff.LightEmission = 1
  5501. eff.Color = ColorSequence.new(dis.Color)
  5502. eff.Rate = 500000
  5503. eff.Lifetime = NumberRange.new(0.5,2)
  5504. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5505. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5506. eff.Speed = NumberRange.new(50,450)
  5507. eff.Drag = 5
  5508. eff.Rotation = NumberRange.new(-500,500)
  5509. eff.VelocitySpread = 9000
  5510. eff.RotSpeed = NumberRange.new(-50,50)
  5511. wait(0.125)
  5512. eff.Enabled = false
  5513. end))
  5514. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5515. for i = 0, 2 do
  5516. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5517. end
  5518. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5519. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5520. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5521. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5522. end))
  5523. game:GetService("Debris"):AddItem(dis, 5)
  5524. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5525. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5526. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5527. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5528. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5529. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5530. end
  5531. attack = false
  5532. end
  5533. ----------------------------------- Abilities
  5534.  
  5535. function ExtinctiveHeartbreak()
  5536. local targetted = nil
  5537. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5538. targetted = mouse.Target.Parent
  5539. end
  5540. if targetted ~= nil then
  5541. attack = true
  5542. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5543. for i = 0, 9 do
  5544. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0)
  5545. end
  5546. for i = 0, 24 do
  5547. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0)
  5548. end
  5549. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Black"))
  5550. local originalpos = root.CFrame
  5551. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5552. for i = 0, 9 do
  5553. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0)
  5554. end
  5555. for i = 0, 24 do
  5556. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0)
  5557. end
  5558. hum.WalkSpeed = 0
  5559. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  5560. local radm = math.random(1,3)
  5561. if radm == 1 then
  5562. bosschatfunc("LEAVE ME ALONE!!!",MAINRUINCOLOR.Color,2)
  5563. elseif radm == 2 then
  5564. bosschatfunc("STOP IT!!!",MAINRUINCOLOR.Color,2)
  5565. elseif radm == 3 then
  5566. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5567. end
  5568. for i = 0,2,0.1 do
  5569. swait()
  5570. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  5571. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  5572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  5573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5574. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5575. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  5576. end
  5577. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5578. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5579. for i = 0,2,0.1 do
  5580. swait()
  5581. coroutine.resume(coroutine.create(function()
  5582. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5583. for i,v in pairs(targetted:GetChildren()) do
  5584. if v:IsA("Part") or v:IsA("MeshPart") then
  5585. v.Velocity = vt(0,0,0)
  5586. end
  5587. end
  5588. end))
  5589. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5590. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5591. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5593. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5594. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  5595. end
  5596. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5597. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5598. for i = 0, 1 do
  5599. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5600. end
  5601. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5602. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5603. for i = 0,4,0.1 do
  5604. swait()
  5605. coroutine.resume(coroutine.create(function()
  5606. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5607. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5608. local at1 = Instance.new("Attachment",dis)
  5609. at1.Position = vt(-25000,0,0)
  5610. local at2 = Instance.new("Attachment",dis)
  5611. at2.Position = vt(25000,0,0)
  5612. local trl = Instance.new('Trail',dis)
  5613. trl.Attachment0 = at1
  5614. trl.FaceCamera = true
  5615. trl.Attachment1 = at2
  5616. trl.Texture = "rbxassetid://1049219073"
  5617. trl.LightEmission = 1
  5618. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5619. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5620. trl.Lifetime = 5
  5621. local bv = Instance.new("BodyVelocity")
  5622. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5623. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5624. bv.Parent = dis
  5625. game:GetService("Debris"):AddItem(dis, 5)
  5626. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5627. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5628. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5629. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5630. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5631. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5632. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5633. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5634. for i = 0, 2 do
  5635. slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Really black"))
  5636. end
  5637. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5638. for i,v in pairs(targetted:GetChildren()) do
  5639. if v:IsA("Part") or v:IsA("MeshPart") then
  5640. v.Velocity = vt(0,0,0)
  5641. end
  5642. end
  5643. end))
  5644. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5645. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5646. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5649. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  5650. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5651. end
  5652. hum.CameraOffset = vt(0,0,0)
  5653. for i = 0, 49 do
  5654. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5655. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5656. local at1 = Instance.new("Attachment",dis)
  5657. at1.Position = vt(-50000,0,0)
  5658. local at2 = Instance.new("Attachment",dis)
  5659. at2.Position = vt(50000,0,0)
  5660. local trl = Instance.new('Trail',dis)
  5661. trl.Attachment0 = at1
  5662. trl.FaceCamera = true
  5663. trl.Attachment1 = at2
  5664. trl.Texture = "rbxassetid://1049219073"
  5665. trl.LightEmission = 1
  5666. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5667. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5668. trl.Lifetime = 5
  5669. local bv = Instance.new("BodyVelocity")
  5670. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5671. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5672. bv.Parent = dis
  5673. game:GetService("Debris"):AddItem(dis, 5)
  5674. end
  5675. for i = 0, 49 do
  5676. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5677. slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really black"))
  5678. end
  5679. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5680. for i = 0, 1 do
  5681. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5682. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5683. end
  5684. for i = 0, 4 do
  5685. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5686. end
  5687. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5688. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5689. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5690. dmg(targetted)
  5691. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5692. for i = 0, 9 do
  5693. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0)
  5694. end
  5695. for i = 0, 24 do
  5696. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Black"),0)
  5697. end
  5698. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5699. root.CFrame = originalpos
  5700. for i = 0, 9 do
  5701. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Black"),0)
  5702. end
  5703. for i = 0, 24 do
  5704. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Black"),0)
  5705. end
  5706. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  5707. attack = false
  5708. kan:Resume()
  5709. hum.WalkSpeed = storehumanoidWS
  5710. end
  5711. end
  5712.  
  5713. function CorruptionEvent()
  5714. attack = true
  5715. hum.WalkSpeed = 0
  5716. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5717. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5718. local keptcolor = MAINRUINCOLOR
  5719. for i = 0,4,0.1 do
  5720. swait()
  5721. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5722. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5723. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5724. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5725. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5726. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5727. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5728. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5729. end
  5730. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5731. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5732. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5733. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5734. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5735. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5736. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5737. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5738. hum.CameraOffset = vt(0,0,0)
  5739. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5740. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5741. for i = 0, 24 do
  5742. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5743. end
  5744. local rrot = 0
  5745. coroutine.resume(coroutine.create(function()
  5746. for i = 0, 4 do
  5747. rrot = rrot + 45
  5748. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5749. xa.Anchored = true
  5750. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5751. xb.Anchored = true
  5752. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5753. xc.Anchored = true
  5754. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5755. xd.Anchored = true
  5756. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5757. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5758. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5759. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5760. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5761. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5762. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5763. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5764. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5765. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5766. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5767. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5768. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5769. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5770. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5771. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5772. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5773. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5774. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5775. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5776. for i = 0, 9 do
  5777. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5778. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5779. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5780. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5781. end
  5782. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5783. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5784. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5785. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5786. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5787. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5788. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5789. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5790. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5791. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5792. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5793. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5794. game:GetService("Debris"):AddItem(xa, 5)
  5795. game:GetService("Debris"):AddItem(xb, 5)
  5796. game:GetService("Debris"):AddItem(xc, 5)
  5797. game:GetService("Debris"):AddItem(xd, 5)
  5798. coroutine.resume(coroutine.create(function()
  5799. for i = 0, 19 do
  5800. swait()
  5801. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5802. end
  5803. hum.CameraOffset = vt(0,0,0)
  5804. end))
  5805. swait(9)
  5806. end
  5807. end))
  5808. for i = 0,2,0.1 do
  5809. swait()
  5810. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5811. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  5812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5814. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5815. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5816. end
  5817. attack = false
  5818. hum.WalkSpeed = storehumanoidWS
  5819. end
  5820.  
  5821. function EndGROUND()
  5822. attack = true
  5823. hum.WalkSpeed = 0.5
  5824. bosschatfunc("i've had... ENOUGH!!!",MAINRUINCOLOR.Color,1)
  5825. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5826. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5827. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5828. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5829. local keptcolor = MAINRUINCOLOR
  5830. for i = 0,4,0.1 do
  5831. swait()
  5832. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5833. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5834. slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5835. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5836. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5839. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5840. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5841. end
  5842. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5843. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5844. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5845. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5846. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5847. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5848. coroutine.resume(coroutine.create(function()
  5849. local shval = 10
  5850. for i = 0, 99 do
  5851. swait()
  5852. shval = shval - 0.1
  5853. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5854. end
  5855. hum.CameraOffset = vt(0,0,0)
  5856. end))
  5857. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5858. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5859. for i = 0, 24 do
  5860. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5861. end
  5862. local rrot = 0
  5863. local xam = 1
  5864. coroutine.resume(coroutine.create(function()
  5865. for i = 0, 14 do
  5866. --swait()
  5867. rrot = rrot + 40*xam
  5868. xam = xam + 0.25
  5869. local bonus = xam
  5870. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5871. xa.Anchored = true
  5872. xa.Color = Color3.new(0,0,0)
  5873. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5874. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5875. local xc = 0
  5876. coroutine.resume(coroutine.create(function()
  5877. for i = 0, 99 do
  5878. swait()
  5879. xc = xc + 0.01
  5880. xa.Color = Color3.new(xc,0,0)
  5881. end
  5882. xa.Transparency = 1
  5883. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5884. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5885. for i = 0, 9 do
  5886. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5887. end
  5888. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5889. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5890. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5891. game:GetService("Debris"):AddItem(xa, 5)
  5892. coroutine.resume(coroutine.create(function()
  5893. for i = 0, 19 do
  5894. swait()
  5895. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5896. end
  5897. hum.CameraOffset = vt(0,0,0)
  5898. end))
  5899. end))
  5900. end
  5901. end))
  5902. for i = 0,2,0.1 do
  5903. swait()
  5904. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5905. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
  5906. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5908. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5909. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5910. end
  5911. attack = false
  5912. hum.WalkSpeed = storehumanoidWS
  5913. end
  5914.  
  5915. function HeavenlyDisk()
  5916. attack = true
  5917. hum.WalkSpeed = 2
  5918. local keptcolor = MAINRUINCOLOR
  5919. local radm = math.random(1,3)
  5920. if radm == 1 then
  5921. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5922. elseif radm == 2 then
  5923. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5924. elseif radm == 3 then
  5925. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5926. end
  5927. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5928. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5929. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5930. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5931. for i = 0, 14 do
  5932. PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Toothpaste"),0)
  5933. end
  5934. for i = 0,2,0.1 do
  5935. swait()
  5936. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5937. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5942. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5943. end
  5944. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5945. for i = 0,1,0.6 do
  5946. swait()
  5947. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5948. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5949. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5950. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5951. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5952. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5953. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5954. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5955. end
  5956. for i = 0,1,0.6 do
  5957. swait()
  5958. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5959. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5960. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5961. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5964. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5965. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5966. end
  5967. for i = 0,1,0.6 do
  5968. swait()
  5969. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5970. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5971. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5973. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5974. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5975. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5976. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5977. end
  5978. for i = 0,1,0.6 do
  5979. swait()
  5980. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5981. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5982. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5983. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5984. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5986. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5987. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5988. end
  5989. local rot = 15
  5990. for i = 0, 2 do
  5991. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5992. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5993. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5994. CreateMesh(dis,"Sphere",10,1,10)
  5995. local at1 = Instance.new("Attachment",dis)
  5996. at1.Position = vt(-5,0,0)
  5997. local at2 = Instance.new("Attachment",dis)
  5998. at2.Position = vt(5,0,0)
  5999. local trl = Instance.new('Trail',wed)
  6000. trl.Attachment0 = at1
  6001. trl.Attachment1 = at2
  6002. trl.Texture = "rbxassetid://1049219073"
  6003. trl.LightEmission = 1
  6004. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6005. trl.Color = ColorSequence.new(dis.Color)
  6006. trl.Lifetime = 0.6
  6007. local a = Instance.new("Part",workspace)
  6008. a.Name = "Direction"
  6009. a.Anchored = true
  6010. a.BrickColor = bc("Bright red")
  6011. a.Material = "Neon"
  6012. a.Transparency = 1
  6013. a.CanCollide = false
  6014. local ray = Ray.new(
  6015. dis.CFrame.p, -- origin
  6016. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6017. )
  6018. local ignore = dis
  6019. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6020. a.BottomSurface = 10
  6021. a.TopSurface = 10
  6022. local distance = (dis.CFrame.p - position).magnitude
  6023. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6024. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6025. dis.CFrame = a.CFrame
  6026. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6027. a:Destroy()
  6028. local bv = Instance.new("BodyVelocity")
  6029. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6030. bv.velocity = dis.CFrame.lookVector*250
  6031. bv.Parent = dis
  6032. game:GetService("Debris"):AddItem(dis, 5)
  6033. local hitted = false
  6034. coroutine.resume(coroutine.create(function()
  6035. dis.Touched:connect(function(hit)
  6036. if hitted == false and hit.Parent ~= char then
  6037. hitted = true
  6038. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6039. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6040. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6041. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6042. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6043. coroutine.resume(coroutine.create(function()
  6044. for i = 0, 9 do
  6045. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6046. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6047. local at1 = Instance.new("Attachment",disr)
  6048. at1.Position = vt(-2,0,0)
  6049. local at2 = Instance.new("Attachment",disr)
  6050. at2.Position = vt(2,0,0)
  6051. local trl = Instance.new('Trail',disr)
  6052. trl.Attachment0 = at1
  6053. trl.FaceCamera = true
  6054. trl.Attachment1 = at2
  6055. trl.Texture = "rbxassetid://2342682798"
  6056. trl.LightEmission = 1
  6057. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6058. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6059. trl.Lifetime = 0.5
  6060. local bv = Instance.new("BodyVelocity")
  6061. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6062. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6063. bv.Parent = disr
  6064. local val = 0
  6065. coroutine.resume(coroutine.create(function()
  6066. swait(30)
  6067. for i = 0, 9 do
  6068. swait()
  6069. val = val + 0.1
  6070. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6071. end
  6072. game:GetService("Debris"):AddItem(disr, 3)
  6073. end))
  6074. end
  6075. local eff = Instance.new("ParticleEmitter",dis)
  6076. eff.Texture = "rbxassetid://2273224484"
  6077. eff.LightEmission = 1
  6078. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6079. eff.Rate = 500000
  6080. eff.Lifetime = NumberRange.new(0.5,2)
  6081. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6082. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6083. eff.Speed = NumberRange.new(20,250)
  6084. eff.Drag = 5
  6085. eff.Rotation = NumberRange.new(-500,500)
  6086. eff.VelocitySpread = 9000
  6087. eff.RotSpeed = NumberRange.new(-50,50)
  6088. wait(0.25)
  6089. eff.Enabled = false
  6090. end))
  6091. for i = 0, 9 do
  6092. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6093. end
  6094. for i = 0, 19 do
  6095. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  6096. end
  6097. coroutine.resume(coroutine.create(function()
  6098. for i = 0, 19 do
  6099. swait()
  6100. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6101. end
  6102. hum.CameraOffset = vt(0,0,0)
  6103. end))
  6104. dis.Anchored = true
  6105. dis.Transparency = 1
  6106. wait(8)
  6107. dis:Destroy()
  6108. end
  6109. end)
  6110. end))
  6111. rot = rot - 15
  6112. end
  6113. for i = 0,2,0.1 do
  6114. swait()
  6115. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  6116. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  6117. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6118. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6120. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6121. end
  6122. attack = false
  6123. hum.WalkSpeed = storehumanoidWS
  6124. end
  6125.  
  6126. function notonmychristianminecraftserver()
  6127. warn'not in my christian minecraft server'
  6128. bosschatfunc("Access denied",MAINRUINCOLOR.Color,0.5)
  6129. CFuncs["Sound"].Create("rbxassetid://2347643831",char,2,1)
  6130. CFuncs["Sound"].Create("rbxassetid://970428619",char,2,1)
  6131.  
  6132. end
  6133. function fugg()
  6134. local whom = (mouse.Target and mouse.Target.Parent)
  6135. --[[local fuckThisBoi = false
  6136. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6137. for _,v in next, ODers do
  6138. if(v == whom)then
  6139. fuckThisBoi = false
  6140. end
  6141. end
  6142. end
  6143. if(not fuckThisBoi)then
  6144. attack = false
  6145. warn'to fuck that boi you need to target them with z'
  6146. else]]
  6147. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6148. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6149. local hum = whom:FindFirstChildOfClass'Humanoid'
  6150. local ocf = RootPart.CFrame
  6151. hum.WalkSpeed = 0
  6152.  
  6153. hed.Anchored = true
  6154. RootPart.Anchored = true
  6155. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6156. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6157. for i = 0, 9 do
  6158. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6159. end
  6160. for i = 0, 24 do
  6161. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6162. end
  6163. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6164. attack = true
  6165. bosschatfunc("fucc u",MAINRUINCOLOR.Color,1)
  6166. local speed = 1
  6167. local heck;
  6168. local stopitlol = false;
  6169. heck = mouse.KeyUp:connect(function(k)
  6170. if(k:lower() == 'x')then
  6171. stopitlol = true
  6172. heck:disconnect()
  6173. end
  6174. end)
  6175. local times = 0
  6176. repeat swait()
  6177. speed = speed - .01
  6178. times = times + 1
  6179. if(speed < .1)then
  6180. speed = .1
  6181. end
  6182. for i = 0, speed, .05 do
  6183. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6184. swait()
  6185. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6186. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6187. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6188. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6189. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6190. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6191. end
  6192. CameraEnshaking(5,5)
  6193.  
  6194. CFuncs["Sound"].Create("rbxassetid://2150821806", Torso, 10,1)
  6195.  
  6196. for i = 0, speed, .05 do
  6197. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6198. swait()
  6199. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6200. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6201. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6203. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6204. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6205. end
  6206. until stopitlol and times >= 3
  6207. for i = 1, 3 do
  6208. for i = 0, 1.5, .05 do
  6209. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6210. swait()
  6211. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6212. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6213. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6214. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6215. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6216. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6217. end
  6218. CameraEnshaking(5,25)
  6219.  
  6220. CFuncs["Sound"].Create("rbxassetid://2150821806", Torso, 10,1.2)
  6221.  
  6222.  
  6223. coroutine.resume(coroutine.create(function()
  6224. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6225. bld.LightEmission = 0.1
  6226. bld.Texture = "rbxassetid://284205403"
  6227. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6228. bld.Rate = 500
  6229. bld.Lifetime = NumberRange.new(1)
  6230. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6231. bld.Acceleration = vt(0,-25,0)
  6232. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6233. bld.Speed = NumberRange.new(10,50)
  6234. bld.EmissionDirection = "Back"
  6235. bld.VelocitySpread = 25
  6236. bld.Rotation = NumberRange.new(-500,500)
  6237. bld.RotSpeed = NumberRange.new(-500,500)
  6238. bld.Enabled = false
  6239. bld:Emit(250)
  6240. end))
  6241. coroutine.resume(coroutine.create(function()
  6242. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6243. bld.LightEmission = 0.1
  6244. bld.Texture = "rbxassetid://284205403"
  6245. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6246. bld.Rate = 500
  6247. bld.Lifetime = NumberRange.new(1)
  6248. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6249. bld.Acceleration = vt(0,-25,0)
  6250. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6251. bld.Speed = NumberRange.new(10,50)
  6252. bld.EmissionDirection = "Back"
  6253. bld.VelocitySpread = 25
  6254. bld.Rotation = NumberRange.new(-500,500)
  6255. bld.RotSpeed = NumberRange.new(-500,500)
  6256. bld.Enabled = false
  6257. bld:Emit(250)
  6258. end))
  6259. for i = 0, 1.5, .05 do
  6260. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6261. swait()
  6262. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6263. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6264. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6266. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6267. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6268. end
  6269. end
  6270. for i = 0, 4, .05 do
  6271. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6272. swait()
  6273. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6274. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6275. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6277. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6279. end
  6280. CameraEnshaking(5,25)
  6281. CFuncs["Sound"].Create("rbxassetid://2050481695", Torso,10,1)
  6282. dmg(whom)
  6283. coroutine.resume(coroutine.create(function()
  6284. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6285. bld.LightEmission = 0.1
  6286. bld.Texture = "rbxassetid://284205403"
  6287. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6288. bld.Rate = 500
  6289. bld.Lifetime = NumberRange.new(1)
  6290. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6291. bld.Acceleration = vt(0,-25,0)
  6292. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6293. bld.Speed = NumberRange.new(10,50)
  6294. bld.EmissionDirection = "Back"
  6295. bld.VelocitySpread = 25
  6296. bld.Rotation = NumberRange.new(-500,500)
  6297. bld.RotSpeed = NumberRange.new(-500,500)
  6298. bld.Enabled = true
  6299. end))
  6300. coroutine.resume(coroutine.create(function()
  6301. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6302. bld.LightEmission = 0.1
  6303. bld.Texture = "rbxassetid://284205403"
  6304. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6305. bld.Rate = 500
  6306. bld.Lifetime = NumberRange.new(1)
  6307. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6308. bld.Acceleration = vt(0,-25,0)
  6309. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6310. bld.Speed = NumberRange.new(10,50)
  6311. bld.EmissionDirection = "Back"
  6312. bld.VelocitySpread = 25
  6313. bld.Rotation = NumberRange.new(-500,500)
  6314. bld.RotSpeed = NumberRange.new(-500,500)
  6315. bld.Enabled = true
  6316. end))
  6317. for i = 0, 3, .05 do
  6318. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6319. swait()
  6320. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6322. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6324. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6325. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6326. end
  6327.  
  6328. RootPart.CFrame = ocf
  6329. for i = 0, 9 do
  6330. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6331. end
  6332. for i = 0, 24 do
  6333. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6334. end
  6335. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6336. RootPart.Anchored = false
  6337. Humanoid.WalkSpeed = storehumanoidWS
  6338. bosschatfunc("that felt horrible",MAINRUINCOLOR.Color,0.5)
  6339. attack = false
  6340. end
  6341. end
  6342.  
  6343.  
  6344. function RapidBurst()
  6345. attack = true
  6346. hum.WalkSpeed = 0
  6347. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6348. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6349. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6350. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6351. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6352. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6353. local keptcolor = MAINRUINCOLOR
  6354. for i = 0,8,0.1 do
  6355. swait()
  6356. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6357. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  6358. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6359. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  6360. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  6361. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6362. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6363. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6364. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6365. end
  6366. for i = 0, 99 do
  6367. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6368. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6369. local at1 = Instance.new("Attachment",dis)
  6370. at1.Position = vt(-25000,0,0)
  6371. local at2 = Instance.new("Attachment",dis)
  6372. at2.Position = vt(25000,0,0)
  6373. local trl = Instance.new('Trail',dis)
  6374. trl.Attachment0 = at1
  6375. trl.FaceCamera = true
  6376. trl.Attachment1 = at2
  6377. trl.Texture = "rbxassetid://1049219073"
  6378. trl.LightEmission = 1
  6379. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6380. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6381. trl.Lifetime = 5
  6382. local bv = Instance.new("BodyVelocity")
  6383. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6384. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6385. bv.Parent = dis
  6386. game:GetService("Debris"):AddItem(dis, 5)
  6387. end
  6388. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6389. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6390. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6391. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6392. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6393. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6394. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6395. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6396. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6397. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6398. hum.CameraOffset = vt(0,0,0)
  6399. for i = 0, 24 do
  6400. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  6401. end
  6402. local distam = 0
  6403. coroutine.resume(coroutine.create(function()
  6404. for i = 0, 99 do
  6405. wait()
  6406. distam = distam + 1
  6407. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6408. xa.Anchored = true
  6409. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6410. game:GetService("Debris"):AddItem(xa, 5)
  6411. for i = 0, 4 do
  6412. slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  6413. end
  6414. coroutine.resume(coroutine.create(function()
  6415. local eff = Instance.new("ParticleEmitter",xa)
  6416. eff.Texture = "rbxassetid://2273224484"
  6417. eff.LightEmission = 1
  6418. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6419. eff.Rate = 500000
  6420. eff.Lifetime = NumberRange.new(1,3)
  6421. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6422. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6423. eff.Speed = NumberRange.new(50,500)
  6424. eff.Drag = 5
  6425. eff.Rotation = NumberRange.new(-500,500)
  6426. eff.VelocitySpread = 9000
  6427. eff.RotSpeed = NumberRange.new(-50,50)
  6428. wait(0.25)
  6429. eff.Enabled = false
  6430. end))
  6431. coroutine.resume(coroutine.create(function()
  6432. for i = 0, 19 do
  6433. swait()
  6434. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6435. end
  6436. hum.CameraOffset = vt(0,0,0)
  6437. end))
  6438. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6439. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6440. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6441. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6442. end
  6443. end))
  6444. attack = false
  6445. hum.WalkSpeed = storehumanoidWS
  6446. end
  6447.  
  6448. function RapidBurst()
  6449. attack = true
  6450. hum.WalkSpeed = 0
  6451. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6452. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6453. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6454. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6455. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6456. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6457. local keptcolor = MAINRUINCOLOR
  6458. for i = 0,8,0.1 do
  6459. swait()
  6460. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6461. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  6462. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6463. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  6464. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  6465. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6466. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6467. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6468. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6469. end
  6470. for i = 0, 99 do
  6471. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6472. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6473. local at1 = Instance.new("Attachment",dis)
  6474. at1.Position = vt(-25000,0,0)
  6475. local at2 = Instance.new("Attachment",dis)
  6476. at2.Position = vt(25000,0,0)
  6477. local trl = Instance.new('Trail',dis)
  6478. trl.Attachment0 = at1
  6479. trl.FaceCamera = true
  6480. trl.Attachment1 = at2
  6481. trl.Texture = "rbxassetid://1049219073"
  6482. trl.LightEmission = 1
  6483. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6484. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6485. trl.Lifetime = 5
  6486. local bv = Instance.new("BodyVelocity")
  6487. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6488. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6489. bv.Parent = dis
  6490. game:GetService("Debris"):AddItem(dis, 5)
  6491. end
  6492. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6493. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6494. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6495. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6496. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6497. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6498. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6499. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6500. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6501. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6502. hum.CameraOffset = vt(0,0,0)
  6503. for i = 0, 24 do
  6504. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  6505. end
  6506. local distam = 0
  6507. coroutine.resume(coroutine.create(function()
  6508. for i = 0, 99 do
  6509. wait()
  6510. distam = distam + 1
  6511. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6512. xa.Anchored = true
  6513. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6514. game:GetService("Debris"):AddItem(xa, 5)
  6515. for i = 0, 4 do
  6516. slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  6517. end
  6518. coroutine.resume(coroutine.create(function()
  6519. local eff = Instance.new("ParticleEmitter",xa)
  6520. eff.Texture = "rbxassetid://2273224484"
  6521. eff.LightEmission = 1
  6522. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6523. eff.Rate = 500000
  6524. eff.Lifetime = NumberRange.new(1,3)
  6525. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6526. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6527. eff.Speed = NumberRange.new(50,500)
  6528. eff.Drag = 5
  6529. eff.Rotation = NumberRange.new(-500,500)
  6530. eff.VelocitySpread = 9000
  6531. eff.RotSpeed = NumberRange.new(-50,50)
  6532. wait(0.25)
  6533. eff.Enabled = false
  6534. end))
  6535. coroutine.resume(coroutine.create(function()
  6536. for i = 0, 19 do
  6537. swait()
  6538. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6539. end
  6540. hum.CameraOffset = vt(0,0,0)
  6541. end))
  6542. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6543. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6544. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6545. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6546. end
  6547. end))
  6548. attack = false
  6549. hum.WalkSpeed = storehumanoidWS
  6550. end
  6551.  
  6552.  
  6553. function FallenOrbs()
  6554. attack = true
  6555. hum.WalkSpeed = 2
  6556. local keptcolor = MAINRUINCOLOR
  6557. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6558. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6559. local radm = math.random(1,3)
  6560. if radm == 1 then
  6561. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6562. elseif radm == 2 then
  6563. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6564. elseif radm == 3 then
  6565. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6566. end
  6567. coroutine.resume(coroutine.create(function()
  6568. for i = 0, 29 do
  6569. swait(2)
  6570. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6571. dis.Anchored = true
  6572. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6573. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6574. CreateMesh(dis,"Sphere",2,2,2)
  6575. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6576. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White"))
  6577. coroutine.resume(coroutine.create(function()
  6578. wait(0.5)
  6579. dis.Anchored = false
  6580. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6581. local at1 = Instance.new("Attachment",dis)
  6582. at1.Position = vt(-1,0,0)
  6583. local at2 = Instance.new("Attachment",dis)
  6584. at2.Position = vt(1,0,0)
  6585. local trl = Instance.new('Trail',dis)
  6586. trl.Attachment0 = at1
  6587. trl.FaceCamera = true
  6588. trl.Attachment1 = at2
  6589. trl.Texture = "rbxassetid://1049219073"
  6590. trl.LightEmission = 1
  6591. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6592. trl.Color = ColorSequence.new(dis.Color)
  6593. trl.Lifetime = 0.6
  6594. local a = Instance.new("Part",workspace)
  6595. a.Name = "Direction"
  6596. a.Anchored = true
  6597. a.BrickColor = bc("Bright red")
  6598. a.Material = "Neon"
  6599. a.Transparency = 1
  6600. a.CanCollide = false
  6601. local ray = Ray.new(
  6602. dis.CFrame.p, -- origin
  6603. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6604. )
  6605. local ignore = dis
  6606. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6607. a.BottomSurface = 10
  6608. a.TopSurface = 10
  6609. local distance = (dis.CFrame.p - position).magnitude
  6610. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6611. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6612. dis.CFrame = a.CFrame
  6613. a:Destroy()
  6614. local bv = Instance.new("BodyVelocity")
  6615. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6616. bv.velocity = dis.CFrame.lookVector*500
  6617. bv.Parent = dis
  6618. game:GetService("Debris"):AddItem(dis, 5)
  6619. local hitted = false
  6620. coroutine.resume(coroutine.create(function()
  6621. dis.Touched:connect(function(hit)
  6622. if hitted == false and hit.Parent ~= char then
  6623. hitted = true
  6624. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6625. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6626. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6627. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6628. coroutine.resume(coroutine.create(function()
  6629. for i = 0, 4 do
  6630. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6631. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6632. local at1 = Instance.new("Attachment",disr)
  6633. at1.Position = vt(-10,0,0)
  6634. local at2 = Instance.new("Attachment",disr)
  6635. at2.Position = vt(10,0,0)
  6636. local trl = Instance.new('Trail',disr)
  6637. trl.Attachment0 = at1
  6638. trl.FaceCamera = true
  6639. trl.Attachment1 = at2
  6640. trl.Texture = "rbxassetid://2342682798"
  6641. trl.LightEmission = 1
  6642. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6643. trl.Color = ColorSequence.new(disr.Color)
  6644. trl.Lifetime = 0.5
  6645. local bv = Instance.new("BodyVelocity")
  6646. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6647. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6648. bv.Parent = disr
  6649. local val = 0
  6650. coroutine.resume(coroutine.create(function()
  6651. swait(30)
  6652. for i = 0, 9 do
  6653. swait()
  6654. val = val + 0.1
  6655. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6656. end
  6657. game:GetService("Debris"):AddItem(disr, 3)
  6658. end))
  6659. end
  6660. local eff = Instance.new("ParticleEmitter",dis)
  6661. eff.Texture = "rbxassetid://1049219073"
  6662. eff.LightEmission = 1
  6663. eff.Color = ColorSequence.new(dis.Color)
  6664. eff.Rate = 500000
  6665. eff.Lifetime = NumberRange.new(0.5,2)
  6666. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6667. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6668. eff.Speed = NumberRange.new(20,250)
  6669. eff.Drag = 5
  6670. eff.Rotation = NumberRange.new(-500,500)
  6671. eff.VelocitySpread = 9000
  6672. eff.RotSpeed = NumberRange.new(-50,50)
  6673. wait(0.5)
  6674. eff.Enabled = false
  6675. end))
  6676. for i = 0, 4 do
  6677. slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6678. end
  6679. coroutine.resume(coroutine.create(function()
  6680. for i = 0, 19 do
  6681. swait()
  6682. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6683. end
  6684. hum.CameraOffset = vt(0,0,0)
  6685. end))
  6686. dis.Anchored = true
  6687. dis.Transparency = 1
  6688. wait(8)
  6689. dis:Destroy()
  6690. end
  6691. end)
  6692. end))
  6693. end))
  6694. end
  6695. end))
  6696. for i = 0,9,0.1 do
  6697. swait()
  6698. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6699. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
  6700. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
  6701. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  6702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  6703. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  6704. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6705. end
  6706. attack = false
  6707. hum.WalkSpeed = storehumanoidWS
  6708. end
  6709.  
  6710. function CyberSlash()
  6711. local posit = -2
  6712. attack = true
  6713. hum.WalkSpeed = 5
  6714. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6715. local radm = math.random(1,3)
  6716. if radm == 1 then
  6717. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6718. elseif radm == 2 then
  6719. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6720. elseif radm == 3 then
  6721. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6722. end
  6723. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6724. for i = 0,2,0.1 do
  6725. swait()
  6726. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6727. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6728. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6729. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6730. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6731. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  6732. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  6733. end
  6734. for i = 0, 2 do
  6735. CameraEnshaking(1,2)
  6736. local hite = Instance.new("Part", char)
  6737. hite.Anchored = true
  6738. hite.CanCollide = false
  6739. hite.FormFactor = 3
  6740. hite.Name = "Ring"
  6741. hite.Material = "Neon"
  6742. hite.Size = Vector3.new(1, 1, 1)
  6743. hite.Transparency = 1
  6744. hite.TopSurface = 0
  6745. hite.BottomSurface = 0
  6746. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6747. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6748. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6749. coroutine.resume(coroutine.create(function()
  6750. for i = 0, 1 do
  6751. swait()
  6752. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6753. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6754. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6755. end
  6756. end))
  6757. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  6758. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6759. game:GetService("Debris"):AddItem(hite, 5)
  6760. posit = posit + 2
  6761. end
  6762. for i = 0,1,0.1 do
  6763. swait()
  6764. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6765. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6766. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6767. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6768. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6769. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  6770. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  6771. end
  6772. for i = 0,1,0.1 do
  6773. swait()
  6774. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6775. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6776. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6777. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6778. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6779. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  6780. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  6781. end
  6782. posit = -6
  6783. for i = 0, 6 do
  6784. CameraEnshaking(1,3)
  6785. local hite = Instance.new("Part", char)
  6786. hite.Anchored = true
  6787. hite.CanCollide = false
  6788. hite.FormFactor = 3
  6789. hite.Name = "Ring"
  6790. hite.Material = "Neon"
  6791. hite.Size = Vector3.new(1, 1, 1)
  6792. hite.Transparency = 1
  6793. hite.TopSurface = 0
  6794. hite.BottomSurface = 0
  6795. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6796. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6797. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6798. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  6799. coroutine.resume(coroutine.create(function()
  6800. for i = 0, 2 do
  6801. swait()
  6802. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6803. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6804. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6805. end
  6806. end))
  6807. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6808. game:GetService("Debris"):AddItem(hite, 5)
  6809. posit = posit + 2
  6810. end
  6811. for i = 0,1,0.1 do
  6812. swait()
  6813. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6814. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6815. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6816. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6817. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6818. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  6819. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  6820. end
  6821. hum.WalkSpeed = storehumanoidWS
  6822. attack = false
  6823. end
  6824.  
  6825. function EquinoxOrbs()
  6826. hum.WalkSpeed = 0
  6827. attack = true
  6828. local radm = math.random(1,3)
  6829. if radm == 1 then
  6830. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6831. elseif radm == 2 then
  6832. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6833. elseif radm == 3 then
  6834. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6835. end
  6836. for i = 0,1,0.1 do
  6837. swait()
  6838. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  6839. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6840. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6841. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6842. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6843. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6844. end
  6845. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6846. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6847. for i = 0, 24 do
  6848. slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
  6849. end
  6850. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6851. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6852. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6853. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6854. for i = 0,4,0.1 do
  6855. swait()
  6856. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6857. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6858. CreateMesh(dis,"Sphere",1,1,1)
  6859. dis.Anchored = true
  6860. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6861. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6862. CreateMesh(dis2,"Sphere",1,1,1)
  6863. dis2.Anchored = true
  6864. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6865. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6866. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6867. coroutine.resume(coroutine.create(function()
  6868. swait(60)
  6869. dis.Transparency = 1
  6870. dis2.Transparency = 1
  6871. coroutine.resume(coroutine.create(function()
  6872. for i = 0, 19 do
  6873. swait()
  6874. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6875. end
  6876. hum.CameraOffset = vt(0,0,0)
  6877. end))
  6878. coroutine.resume(coroutine.create(function()
  6879. local eff = Instance.new("ParticleEmitter",dis)
  6880. eff.Texture = "rbxassetid://2273224484"
  6881. eff.LightEmission = 1
  6882. eff.Color = ColorSequence.new(dis.Color)
  6883. eff.Rate = 500000
  6884. eff.Lifetime = NumberRange.new(0.5,2)
  6885. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6886. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6887. eff.Speed = NumberRange.new(50,450)
  6888. eff.Drag = 5
  6889. eff.Rotation = NumberRange.new(-500,500)
  6890. eff.VelocitySpread = 9000
  6891. eff.RotSpeed = NumberRange.new(-50,50)
  6892. local eff2 = eff:Clone()
  6893. eff2.Parent = dis2
  6894. eff2.LightEmission = 0
  6895. eff2.Color = ColorSequence.new(dis2.Color)
  6896. wait(0.25)
  6897. eff.Enabled = false
  6898. eff2.Enabled = false
  6899. end))
  6900. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6901. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6902. for i = 0, 2 do
  6903. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis.BrickColor)
  6904. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis2.BrickColor)
  6905. end
  6906. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6907. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6908. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6909. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6910. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6911. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6912. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6913. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6914. end))
  6915. game:GetService("Debris"):AddItem(dis, 5)
  6916. game:GetService("Debris"):AddItem(dis2, 5)
  6917. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  6918. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6919. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6920. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6921. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6922. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6923. end
  6924. attack = false
  6925. hum.WalkSpeed = storehumanoidWS
  6926. end
  6927. function FallenDEMISE()
  6928. attack = true
  6929. hum.WalkSpeed = 0
  6930. local keptcolor = MAINRUINCOLOR
  6931. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6932. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6933. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6934. for i = 0, 15, 0.1 do
  6935. swait()
  6936. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6937. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6938. local at1 = Instance.new("Attachment",dis)
  6939. at1.Position = vt(-25000,0,0)
  6940. local at2 = Instance.new("Attachment",dis)
  6941. at2.Position = vt(25000,0,0)
  6942. local trl = Instance.new('Trail',dis)
  6943. trl.Attachment0 = at1
  6944. trl.FaceCamera = true
  6945. trl.Attachment1 = at2
  6946. trl.Texture = "rbxassetid://1049219073"
  6947. trl.LightEmission = 1
  6948. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6949. trl.Color = ColorSequence.new(dis.Color)
  6950. trl.Lifetime = 5
  6951. local bv = Instance.new("BodyVelocity")
  6952. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6953. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6954. bv.Parent = dis
  6955. game:GetService("Debris"):AddItem(dis, 1)
  6956. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6957. slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6958. slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6959. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6960. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6963. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6964. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6965. end
  6966. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6967. for i = 0, 30, 0.1 do
  6968. swait()
  6969. coroutine.resume(coroutine.create(function()
  6970. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6971. if v:FindFirstChild('Head') then
  6972. dmg(v)
  6973. end
  6974. end
  6975. end))
  6976. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6977. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6978. local at1 = Instance.new("Attachment",dis)
  6979. at1.Position = vt(-50000,0,0)
  6980. local at2 = Instance.new("Attachment",dis)
  6981. at2.Position = vt(50000,0,0)
  6982. local trl = Instance.new('Trail',dis)
  6983. trl.Attachment0 = at1
  6984. trl.FaceCamera = true
  6985. trl.Attachment1 = at2
  6986. trl.Texture = "rbxassetid://1049219073"
  6987. trl.LightEmission = 1
  6988. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6989. trl.Color = ColorSequence.new(dis.Color)
  6990. trl.Lifetime = 10
  6991. local bv = Instance.new("BodyVelocity")
  6992. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6993. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6994. bv.Parent = dis
  6995. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6996. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6997. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6998. sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  6999. sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  7000. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  7001. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  7002. for i = 0, 2 do
  7003. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  7004. end
  7005. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  7006. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  7007. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7008. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7009. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7010. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7011. end
  7012. attack = false
  7013. hum.WalkSpeed = storehumanoidWS
  7014. end
  7015.  
  7016. function SpeedDrop()
  7017. attack = true
  7018. hum.WalkSpeed = 0
  7019. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7020. CFuncs["EchoSound"].Create("rbxassetid://907332670", char, 5, 1,0,10,0.15,0.5,1)
  7021. local poste = 3
  7022. local rotation = 0
  7023. local rate = 0
  7024. bosschatfunc("Your death is assured.",MAINRUINCOLOR.Color,2)
  7025. for i = 0, 124 do
  7026. swait()
  7027. rotation = rotation + rate
  7028. poste = poste + 0.1
  7029. rate = rate + 0.1
  7030. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7031. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  7032. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7033. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7034. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7035. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  7036. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  7037. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
  7038. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7039. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7040. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7041. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7042. end
  7043. CameraEnshaking(3,7)
  7044. bosschatfunc("Speed Drop!!!",MAINRUINCOLOR.Color,2)
  7045. local loc = Instance.new("Part", char)
  7046. loc.BrickColor = MAINRUINCOLOR
  7047. loc.CanCollide = false
  7048. loc.FormFactor = 3
  7049. loc.Name = "Ring"
  7050. loc.Material = "Neon"
  7051. loc.Size = Vector3.new(1, 1, 1)
  7052. loc.Transparency = 1
  7053. loc.TopSurface = 0
  7054. loc.BottomSurface = 0
  7055. loc.Anchored = true
  7056. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7057. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7058. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7059. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7060. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7061. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7062. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7063. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7064. coroutine.resume(coroutine.create(function()
  7065. local eff = Instance.new("ParticleEmitter",loc)
  7066. eff.Texture = "rbxassetid://363275192"
  7067. eff.LightEmission = 0.95
  7068. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7069. eff.Rate = 10000
  7070. eff.Lifetime = NumberRange.new(1)
  7071. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7072. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7073. eff.Speed = NumberRange.new(100,500)
  7074. eff.Drag = 5
  7075. eff.Rotation = NumberRange.new(-500,500)
  7076. eff.VelocitySpread = 9000
  7077. eff.RotSpeed = NumberRange.new(-50,50)
  7078. wait(0.5)
  7079. eff.Enabled = false
  7080. end))
  7081. for i = 0, 49 do
  7082. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7083. end
  7084. for i = 0, 9 do
  7085. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  7086. end
  7087. game:GetService("Debris"):AddItem(loc, 5)
  7088. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7089. hum.WalkSpeed = storehumanoidWS
  7090. attack = false
  7091. end
  7092.  
  7093. function cutesigh()
  7094. attack = true
  7095. hum.WalkSpeed = 0
  7096. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7097. local blush = Instance.new("Decal",hed)
  7098. blush.Texture = "rbxassetid://898404027"
  7099. blush.Face = "Front"
  7100. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7101. for i = 0, 9, 0.1 do
  7102. swait()
  7103. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7104. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7105. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7106. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7107. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 5 * math.cos(sine / 51))),.1)
  7108. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 73)),math.rad(2 - 3 * math.cos(sine / 53)),math.rad(-33 - 5 * math.cos(sine / 51))),.1)
  7109. end
  7110. coroutine.resume(coroutine.create(function()
  7111. for i = 0, 49 do
  7112. swait()
  7113. blush.Transparency = blush.Transparency + 0.02
  7114. end
  7115. blush:Destroy()
  7116. end))
  7117. hum.WalkSpeed = storehumanoidWS
  7118. attack = false
  7119. end
  7120.  
  7121. function smiter()
  7122. local targetted = nil
  7123. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7124. targetted = mouse.Target.Parent
  7125. end
  7126. if targetted ~= nil then
  7127. RootPart.CFrame = FaceMouse()[1]
  7128. attack = true
  7129. local radm = math.random(1,3)
  7130. if radm == 1 then
  7131. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7132. elseif radm == 2 then
  7133. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7134. elseif radm == 3 then
  7135. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7136. end
  7137. hum.WalkSpeed = 0
  7138. coroutine.resume(coroutine.create(function()
  7139. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7140. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7141. local vel = Instance.new("BodyPosition", targetted.Head)
  7142. vel.P = 12500
  7143. vel.D = 1000
  7144. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7145. vel.position = targetted.Head.CFrame.p
  7146. end))
  7147. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7148. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7149. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7150. for i = 0,4,0.1 do
  7151. swait()
  7152. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  7153. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7154. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7155. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7156. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7157. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  7158. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  7159. end
  7160. coroutine.resume(coroutine.create(function()
  7161. CameraEnshaking(6,5)
  7162. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7163. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7164. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7165. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7166. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7167. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7168. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7169. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7170. coroutine.resume(coroutine.create(function()
  7171. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7172. eff.Texture = "rbxassetid://2273224484"
  7173. eff.LightEmission = 1
  7174. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7175. eff.Rate = 500000
  7176. eff.Lifetime = NumberRange.new(0.5,2)
  7177. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  7178. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7179. eff.Speed = NumberRange.new(20,250)
  7180. eff.Drag = 5
  7181. eff.Rotation = NumberRange.new(-500,500)
  7182. eff.VelocitySpread = 9000
  7183. eff.RotSpeed = NumberRange.new(-50,50)
  7184. wait(0.25)
  7185. eff.Enabled = false
  7186. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7187. eff.Texture = "rbxassetid://363275192"
  7188. eff.LightEmission = 0.95
  7189. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7190. eff.Rate = 10000
  7191. eff.Lifetime = NumberRange.new(1.5)
  7192. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7193. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7194. eff.Speed = NumberRange.new(25,150)
  7195. eff.Drag = 5
  7196. eff.Rotation = NumberRange.new(-500,500)
  7197. eff.VelocitySpread = 9000
  7198. eff.RotSpeed = NumberRange.new(-50,50)
  7199. local eff2 = eff:Clone()
  7200. eff2.Parent = targetted.Head
  7201. eff2.Texture = "rbxassetid://284205403"
  7202. eff2.Rate = 10000
  7203. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7204. eff2.Drag = 5
  7205. eff2.Rotation = NumberRange.new(-500,500)
  7206. eff2.VelocitySpread = 9000
  7207. wait(0.5)
  7208. eff2.Enabled = false
  7209. eff.Enabled = false
  7210. end))
  7211. for i = 0, 9 do
  7212. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  7213. end
  7214. for i = 0, 49 do
  7215. local rsiz = math.random(10,50)
  7216. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7217. end
  7218. game:GetService("Debris"):AddItem(vel,1)
  7219. dmg(targetted)
  7220. end))
  7221. for i = 0,1,0.1 do
  7222. swait()
  7223. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7224. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7225. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  7226. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7227. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  7228. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  7229. end
  7230. attack = false
  7231. hum.WalkSpeed = storehumanoidWS
  7232. end
  7233. end
  7234.  
  7235. function shytaunty()
  7236. attack = true
  7237. hum.WalkSpeed = 0
  7238. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7239. local blush = Instance.new("Decal",hed)
  7240. blush.Texture = "rbxassetid://898404027"
  7241. blush.Face = "Front"
  7242. for i = 0, 13, 0.1 do
  7243. swait()
  7244. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  7245. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  7246. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  7247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  7248. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  7249. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  7250. end
  7251. coroutine.resume(coroutine.create(function()
  7252. for i = 0, 49 do
  7253. swait()
  7254. blush.Transparency = blush.Transparency + 0.02
  7255. end
  7256. blush:Destroy()
  7257. end))
  7258. hum.WalkSpeed = storehumanoidWS
  7259. attack = false
  7260. end
  7261.  
  7262. function PureBomb()
  7263. attack = true
  7264. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7265. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7266. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7267. local orb = Instance.new("Part", char)
  7268. orb.Anchored = true
  7269. orb.BrickColor = BrickColor.new("Toothpaste")
  7270. orb.CanCollide = false
  7271. orb.FormFactor = 3
  7272. orb.Name = "Ring"
  7273. orb.Material = "Neon"
  7274. orb.Size = Vector3.new(1, 1, 1)
  7275. orb.Transparency = 0
  7276. orb.TopSurface = 0
  7277. orb.BottomSurface = 0
  7278. local orbm = Instance.new("SpecialMesh", orb)
  7279. orbm.MeshType = "Sphere"
  7280. orbm.Name = "SizeMesh"
  7281. orbm.Scale = vt(0,0,0)
  7282. local scaled = 0.1
  7283. local posid = 0
  7284. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7285. for i = 0, 5, 0.1 do
  7286. swait()
  7287. scaled = scaled - 0.001
  7288. posid = posid - scaled
  7289. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7290. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7291. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  7292. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  7293. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  7294. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  7295. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7296. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7297. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7298. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  7299. end
  7300. for i = 0, 2, 0.1 do
  7301. swait()
  7302. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7303. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  7304. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  7305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  7306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7307. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7308. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  7309. end
  7310. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7311. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7312. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7313. coroutine.resume(coroutine.create(function()
  7314. orb.Anchored = false
  7315. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7316. local a = Instance.new("Part",workspace)
  7317. a.Name = "Direction"
  7318. a.Anchored = true
  7319. a.BrickColor = bc("Bright red")
  7320. a.Material = "Neon"
  7321. a.Transparency = 1
  7322. a.CanCollide = false
  7323. local ray = Ray.new(
  7324. orb.CFrame.p, -- origin
  7325. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7326. )
  7327. local ignore = orb
  7328. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7329. a.BottomSurface = 10
  7330. a.TopSurface = 10
  7331. local distance = (orb.CFrame.p - position).magnitude
  7332. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7333. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7334. orb.CFrame = a.CFrame
  7335. a:Destroy()
  7336. local bv = Instance.new("BodyVelocity")
  7337. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7338. bv.velocity = orb.CFrame.lookVector*125
  7339. bv.Parent = orb
  7340. local hitted = false
  7341. game:GetService("Debris"):AddItem(orb, 15)
  7342. wait()
  7343. local hit =orb.Touched:connect(function(hit)
  7344. if hitted == false then
  7345. hitted = true
  7346. CameraEnshaking(10,2.5)
  7347. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7348. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7349. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7350. for i = 0, 49 do
  7351. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  7352. end
  7353. local eff = Instance.new("ParticleEmitter",orb)
  7354. eff.Texture = "rbxassetid://2273224484"
  7355. eff.LightEmission = 1
  7356. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7357. eff.Rate = 500000
  7358. eff.Lifetime = NumberRange.new(0.5,2)
  7359. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  7360. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7361. eff.Speed = NumberRange.new(20,250)
  7362. eff.Drag = 5
  7363. eff.Rotation = NumberRange.new(-500,500)
  7364. eff.VelocitySpread = 9000
  7365. eff.RotSpeed = NumberRange.new(-50,50)
  7366. coroutine.resume(coroutine.create(function()
  7367. wait(0.25)
  7368. eff.Enabled = false
  7369. end))
  7370. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7371. for i = 0, 9 do
  7372. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  7373. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  7374. end
  7375. orb.Anchored = true
  7376. orb.Transparency = 1
  7377. local eff = Instance.new("ParticleEmitter",orb)
  7378. eff.Texture = "rbxassetid://2273224484"
  7379. eff.LightEmission = 1
  7380. eff.Color = ColorSequence.new(Color3.new(M))
  7381. eff.Rate = 500000
  7382. eff.Lifetime = NumberRange.new(0.5,2)
  7383. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  7384. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7385. eff.Speed = NumberRange.new(20,250)
  7386. eff.Drag = 5
  7387. eff.Rotation = NumberRange.new(-500,500)
  7388. eff.VelocitySpread = 9000
  7389. eff.RotSpeed = NumberRange.new(-50,50)
  7390. coroutine.resume(coroutine.create(function()
  7391. wait(1)
  7392. eff.Enabled = false
  7393. end))
  7394. wait(8)
  7395. orb:Destroy()
  7396. end
  7397. end)
  7398. end))
  7399. for i = 0, 1, 0.1 do
  7400. swait()
  7401. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  7402. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  7403. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  7404. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7405. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7406. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  7407. end
  7408. attack = false
  7409. end
  7410.  
  7411.  
  7412. function BeamOfDeath()
  7413. coroutine.resume(coroutine.create(function()
  7414. attack = true
  7415. hum.WalkSpeed = 0
  7416. for i = 0, 11, 0.1 do
  7417. swait()
  7418. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  7419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  7420. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  7421. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  7422. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(125 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7423. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7424. end
  7425. for i = 0, 1, 0.1 do
  7426. swait()
  7427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  7428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  7429. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  7430. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  7431. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(-5 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
  7432. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7433. end
  7434. hum.WalkSpeed = storehumanoidWS
  7435. attack = false
  7436. end))
  7437. CFuncs["Sound"].Create("rbxassetid://137473066", char, 5, 1,0,10,0.10,0.25,1)
  7438. bosschatfunc("Hahahahahah.",MAINRUINCOLOR.Color,1)
  7439. local keptcolor = MAINRUINCOLOR
  7440. local orb = Instance.new("Part", char)
  7441. orb.BrickColor = keptcolor
  7442. orb.CanCollide = false
  7443. orb.FormFactor = 3
  7444. orb.Name = "Ring"
  7445. orb.Material = "Neon"
  7446. orb.Size = Vector3.new(1, 1, 1)
  7447. orb.Transparency = 1
  7448. orb.TopSurface = 0
  7449. orb.BottomSurface = 0
  7450. local orbm = Instance.new("SpecialMesh", orb)
  7451. orbm.MeshType = "Sphere"
  7452. orbm.Name = "SizeMesh"
  7453. orbm.Scale = vt(22.5,10000,22.5)
  7454. orb.CFrame = mouse.Hit
  7455. orb.Anchored = true
  7456. orb.Orientation = vt(0,0,0)
  7457. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7458. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7459. coroutine.resume(coroutine.create(function()
  7460. coroutine.resume(coroutine.create(function()
  7461. for i = 0, 175 do
  7462. swait()
  7463. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7464. orb.Transparency = orb.Transparency - 0.005
  7465. end
  7466. end))
  7467. wait(2)
  7468. coroutine.resume(coroutine.create(function()
  7469. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7470. if hfr ~= nil then
  7471. for i = 0, 24.5 do
  7472. local deb = Instance.new("Part", char)
  7473. deb.Anchored = true
  7474. deb.CanCollide = false
  7475. deb.FormFactor = 3
  7476. deb.Name = "Ring"
  7477. deb.Material = hitfloor.Material
  7478. deb.Color = hitfloor.Color
  7479. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7480. deb.Transparency = 0
  7481. deb.TopSurface = 0
  7482. deb.BottomSurface = 0
  7483. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7484. local deb2 = Instance.new("Part", char)
  7485. deb2.CanCollide = false
  7486. deb2.FormFactor = 3
  7487. deb2.Name = "Ring"
  7488. deb2.Material = hitfloor.Material
  7489. deb2.Color = hitfloor.Color
  7490. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7491. deb2.Transparency = 0
  7492. deb2.TopSurface = 0
  7493. deb2.BottomSurface = 0
  7494. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7495. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  7496. local eff = Instance.new("ParticleEmitter",deb)
  7497. eff.Texture = "rbxassetid://363275192"
  7498. eff.LightEmission = 0.95
  7499. eff.Color = ColorSequence.new(keptcolor.Color)
  7500. eff.Rate = 100
  7501. eff.Lifetime = NumberRange.new(1)
  7502. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7503. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7504. eff.Speed = NumberRange.new(0,5)
  7505. eff.Rotation = NumberRange.new(-500,500)
  7506. eff.VelocitySpread = 9000
  7507. eff.RotSpeed = NumberRange.new(-10,10)
  7508. local at1 = Instance.new('Attachment',deb2)
  7509. at1.Position = vt(0,15,0)
  7510. local at2 = Instance.new('Attachment',deb2)
  7511. at2.Position = vt(0,-15,0)
  7512. local tl = Instance.new('Trail',deb2)
  7513. tl.Attachment0 = at1
  7514. tl.Attachment1 = at2
  7515. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7516. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7517. tl.Lifetime = 1
  7518. game:GetService("Debris"):AddItem(deb,30)
  7519. game:GetService("Debris"):AddItem(deb2,30)
  7520. coroutine.resume(coroutine.create(function()
  7521. wait(15)
  7522. eff.Enabled = false
  7523. for i = 0, 49 do
  7524. swait()
  7525. deb.Transparency = deb.Transparency + 0.02
  7526. end
  7527. wait(1)
  7528. deb:Destroy()
  7529. end))
  7530. end
  7531. end
  7532. end))
  7533. for i = 0, 199 do
  7534. swait(1.5)
  7535. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7536. if v:FindFirstChild('Head') then
  7537. dmg(v)
  7538. end
  7539. end
  7540. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7541. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  7542. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  7543. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  7544. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7545. end
  7546. orb:Destroy()
  7547. end))
  7548. end
  7549.  
  7550. function Beams()
  7551. attack = true
  7552. hum.WalkSpeed = 0
  7553. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7554. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7555. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7556. local keptcolor = MAINRUINCOLOR
  7557. coroutine.resume(coroutine.create(function()
  7558. for i = 0, 96 do
  7559. swait(5)
  7560. local orb = Instance.new("Part", char)
  7561. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7562. orb.BrickColor = keptcolor
  7563. orb.CanCollide = false
  7564. orb.FormFactor = 3
  7565. orb.Name = "Ring"
  7566. orb.Material = "Neon"
  7567. orb.Size = Vector3.new(1, 1, 1)
  7568. orb.Transparency = 0
  7569. orb.TopSurface = 0
  7570. orb.BottomSurface = 0
  7571. orb.Anchored = true
  7572. local orbm = Instance.new("SpecialMesh", orb)
  7573. orbm.MeshType = "Sphere"
  7574. orbm.Name = "SizeMesh"
  7575. orbm.Scale = vt(1.25,1.25,1.25)
  7576. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7577. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7578. coroutine.resume(coroutine.create(function()
  7579. wait(0.5)
  7580. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7581. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7582. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7583. orb.Transparency = 1
  7584. local a = Instance.new("Part",char)
  7585. a.Name = "Direction"
  7586. a.Anchored = true
  7587. a.BrickColor = keptcolor
  7588. a.Material = "Neon"
  7589. a.Transparency = 0.25
  7590. a.Shape = "Cylinder"
  7591. local ht = Instance.new("Part",char)
  7592. ht.Name = "DirectionHit"
  7593. ht.Anchored = true
  7594. ht.BrickColor = keptcolor
  7595. ht.CanCollide = false
  7596. ht.Transparency = 1
  7597. ht.Size = vt(0.1,0.1,0.1)
  7598. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7599. a.CanCollide = false
  7600. local ray = Ray.new(
  7601. orb.CFrame.p, -- origin
  7602. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7603. )
  7604. local ignore = char
  7605. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7606. a.BottomSurface = 10
  7607. a.TopSurface = 10
  7608. local distance = (orb.CFrame.p - position).magnitude
  7609. a.Size = Vector3.new(distance,1,1)
  7610. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7611. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7612. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7613. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7614. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7615. coroutine.resume(coroutine.create(function()
  7616. local eff = Instance.new("ParticleEmitter",ht)
  7617. eff.Texture = "rbxassetid://284205403"
  7618. eff.LightEmission = 0.95
  7619. eff.Color = ColorSequence.new(keptcolor.Color)
  7620. eff.Rate = 500
  7621. eff.Lifetime = NumberRange.new(0.5)
  7622. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7623. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7624. eff.Speed = NumberRange.new(10,50)
  7625. eff.Drag = 5
  7626. eff.Rotation = NumberRange.new(-500,500)
  7627. eff.VelocitySpread = 9000
  7628. eff.RotSpeed = NumberRange.new(-500,500)
  7629. wait(0.25)
  7630. eff.Enabled = false
  7631. end))
  7632. for i = 0, 4 do
  7633. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  7634. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  7635. local rsiz = math.random(10,30)
  7636. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  7637. end
  7638. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7639. local msh = Instance.new("SpecialMesh",a)
  7640. msh.MeshType = "Cylinder"
  7641. msh.Scale = vt(1,1,1)
  7642. for i = 0, 49 do
  7643. swait()
  7644. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7645. a.Transparency = a.Transparency + 0.02
  7646. end
  7647. orb:Destroy()
  7648. a:Destroy()
  7649. ht:Destroy()
  7650. end))
  7651. game:GetService("Debris"):AddItem(orb, 10)
  7652. end
  7653. end))
  7654. for i = 0,6,0.1 do
  7655. swait()
  7656. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  7657. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  7658. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7659. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7660. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7661. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  7662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  7663. end
  7664. hum.WalkSpeed = storehumanoidWS
  7665. attack = false
  7666. end
  7667.  
  7668. function CalamityTrans()
  7669. attack = true
  7670. rainbowmode = false
  7671. chaosmode = false
  7672. ModeOfGlitch = 8889
  7673. hum.WalkSpeed = 0
  7674. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7675. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7676. elocacenter.Anchored = true
  7677. elocacenter.CFrame = root.CFrame
  7678. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7679. eloca1.Anchored = true
  7680. eloca1.CFrame = elocacenter.CFrame
  7681. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7682. eloca2.Anchored = true
  7683. eloca2.CFrame = elocacenter.CFrame
  7684. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7685. eloca3.Anchored = true
  7686. eloca3.CFrame = elocacenter.CFrame
  7687. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7688. eloca4.Anchored = true
  7689. eloca4.CFrame = elocacenter.CFrame
  7690. local lookavec = 0
  7691. local speeds = 0
  7692. CameraEnshaking(3,2.5)
  7693. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7694. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7695. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7696. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7697. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7698. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7699. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7700. for i = 0, 5, 0.1 do
  7701. swait()
  7702. ---
  7703. lookavec = lookavec + 1
  7704. speeds = speeds + 10
  7705. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7706. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7707. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7708. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7709. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7710. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7711. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7712. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7713. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7714. ---
  7715. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7716. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7717. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7718. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7719. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7720. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7721. end
  7722. for i = 0, 5, 0.1 do
  7723. swait()
  7724. ---
  7725. speeds = speeds + 10
  7726. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7727. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7728. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7729. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7730. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7731. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7732. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7733. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7734. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7735. ---
  7736. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7737. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7738. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7739. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7740. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7741. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7742. end
  7743. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7744. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7745. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7746. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7747. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7748. CameraEnshaking(1,3)
  7749. for i = 0, 24 do
  7750. PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7751. PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7752. PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7753. PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
  7754. end
  7755. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7756. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7757. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7758. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7759. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7760. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7761. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7762. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7763. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7764. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7765. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7766. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7767. for i = 0, 5, 0.1 do
  7768. swait()
  7769. ---
  7770. lookavec = lookavec - 1
  7771. speeds = speeds + 10
  7772. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7773. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7774. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7775. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7776. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7777. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7778. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7779. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7780. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7781. ---
  7782. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7783. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7786. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7787. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7788. end
  7789. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7790. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7791. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7792. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7793. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7794. for i = 0, 49 do
  7795. PixelBlock(1,math.random(8,16),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  7796. PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0)
  7797. end
  7798. CameraEnshaking(5,6)
  7799. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7800. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7801. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7802. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7803. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7804. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7805. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7806. storehumanoidWS = 100
  7807. hum.WalkSpeed = 100
  7808. rainbowmode = false
  7809. chaosmode = false
  7810. tl1.Enabled = true
  7811. tl2.Enabled = true
  7812. tl3.Enabled = true
  7813. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7814. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7815. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7816. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7817. for i, v in pairs(mw2:GetChildren()) do
  7818. if v:IsA("Part") then
  7819. v.BrickColor = MAINRUINCOLOR
  7820. v.Material = "Neon"
  7821. end
  7822. end
  7823. for i, v in pairs(mw1:GetChildren()) do
  7824. if v:IsA("Part") then
  7825. v.Transparency = 0
  7826. v.BrickColor = MAINRUINCOLOR
  7827. v.Material = "Neon"
  7828. end
  7829. end
  7830. for i, v in pairs(m:GetChildren()) do
  7831. if v:IsA("Part") then
  7832. v.Color = Color3.new(0.5,0,1)
  7833. v.Material = "Neon"
  7834. end
  7835. end
  7836. for i, v in pairs(m2:GetChildren()) do
  7837. if v:IsA("Part") then
  7838. v.Color = Color3.new(0.25,0,1)
  7839. v.Material = "Neon"
  7840. end
  7841. end
  7842. for i, v in pairs(m3:GetChildren()) do
  7843. if v:IsA("Part") then
  7844. v.Color = Color3.new(0.45,0,1)
  7845. v.Material = "Neon"
  7846. end
  7847. end
  7848. for i, v in pairs(extrawingmod1:GetChildren()) do
  7849. if v:IsA("Part") then
  7850. v.Transparency = 0.75
  7851. v.Color = Color3.new(0.25,0,1)
  7852. v.Material = "Neon"
  7853. end
  7854. end
  7855. for i, v in pairs(extrawingmod2:GetChildren()) do
  7856. if v:IsA("Part") then
  7857. v.Transparency = 0.75
  7858. v.Color = Color3.new(0.5,0,1)
  7859. v.Material = "Neon"
  7860. end
  7861. end
  7862. attack = false
  7863. end
  7864.  
  7865. function GleamingBeam()
  7866. attack = true
  7867. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7868. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7869. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7870. local rsiz = math.random(1,15)
  7871. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7872. hb.Anchored = true
  7873. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7874. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7875. for i = 0, 16, 0.1 do
  7876. swait()
  7877. rsiz = math.random(5,15)
  7878. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7879. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  7880. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  7881. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7882. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  7884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7886. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7887. end
  7888. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7889. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7890. for i = 0, 2 do
  7891. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7892. end
  7893. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7894. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7895. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7896. for i = 0, 49 do
  7897. local rsiza = math.random(1,15)
  7898. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  7899. end
  7900. local a = Instance.new("Part",Character)
  7901. a.Name = "Direction"
  7902. a.Anchored = true
  7903. a.BrickColor = MAINRUINCOLOR
  7904. a.Material = "Neon"
  7905. a.Transparency = 0
  7906. a.Shape = "Cylinder"
  7907. a.CanCollide = false
  7908. local ba = Instance.new("Part",Character)
  7909. ba.Name = "HitDirect"
  7910. ba.Anchored = true
  7911. ba.BrickColor = bc("Cool yellow")
  7912. ba.Material = "Neon"
  7913. ba.Transparency = 1
  7914. ba.CanCollide = false
  7915. local ray = Ray.new(
  7916. hb.CFrame.p, -- origin
  7917. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7918. )
  7919. local ignore = Character
  7920. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7921. a.BottomSurface = 10
  7922. a.TopSurface = 10
  7923. local distance = (hb.CFrame.p - position).magnitude
  7924. a.Size = Vector3.new(distance, 1, 1)
  7925. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7926. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7927. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7928. local msh = Instance.new("SpecialMesh",a)
  7929. msh.MeshType = "Cylinder"
  7930. msh.Scale = vt(1,4,4)
  7931. game:GetService("Debris"):AddItem(a, 30)
  7932. game:GetService("Debris"):AddItem(ba, 30)
  7933. for i = 0, 25, 0.1 do
  7934. swait()
  7935. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7936. ray = Ray.new(
  7937. hb.CFrame.p, -- origin
  7938. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7939. )
  7940. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7941. distance = (hb.CFrame.p - position).magnitude
  7942. a.Size = Vector3.new(distance, 1, 1)
  7943. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7944. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7945. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7946. rsiz = math.random(5,25)
  7947. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7948. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
  7949. for c = 0, 2 do
  7950. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
  7951. end
  7952. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  7953. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  7954. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  7955. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  7956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
  7957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7959. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7960. end
  7961. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7962. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7963. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7964. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7965. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7966. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7967. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7968. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  7969. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7970. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7971. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  7972. for i = 0, 49 do
  7973. local rsiza = math.random(1,15)
  7974. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  7975. end
  7976. for i = 0, 49 do
  7977. rsiz = math.random(1,8)
  7978. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
  7979. end
  7980. coroutine.resume(coroutine.create(function()
  7981. for i = 0, 99 do
  7982. swait()
  7983. a.Transparency = a.Transparency + 0.01
  7984. end
  7985. a:Destroy()
  7986. ba:Destroy()
  7987. end))
  7988. hb:Destroy()
  7989. attack = false
  7990. end
  7991.  
  7992. function DualGleamingBeam()
  7993. attack = true
  7994. hum.WalkSpeed = 0
  7995. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7996. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7997. local radm = math.random(1,3)
  7998. if radm == 1 then
  7999. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8000. elseif radm == 2 then
  8001. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8002. elseif radm == 3 then
  8003. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8004. end
  8005. local rsiz = math.random(1,15)
  8006. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8007. hb.Anchored = true
  8008. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8009. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8010. hb2.Anchored = true
  8011. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8012. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8013. for i = 0, 14, 0.1 do
  8014. swait()
  8015. rsiz = math.random(5,15)
  8016. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8017. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8018. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  8019. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  8020. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)
  8021. sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
  8022. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  8023. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  8024. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  8025. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8027. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8028. end
  8029. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8030. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8031. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8032. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8033. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8034. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8035. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8036. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8037. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8038. sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8039. sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8040. sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
  8041. for i = 0, 49 do
  8042. local rsiza = math.random(1,15)
  8043. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  8044. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  8045. end
  8046. local a = Instance.new("Part",Character)
  8047. a.Name = "Direction"
  8048. a.Anchored = true
  8049. a.BrickColor = MAINRUINCOLOR
  8050. a.Material = "Neon"
  8051. a.Transparency = 0
  8052. a.Shape = "Cylinder"
  8053. a.CanCollide = false
  8054. local a2 = Instance.new("Part",Character)
  8055. a2.Name = "Direction"
  8056. a2.Anchored = true
  8057. a2.BrickColor = MAINRUINCOLOR
  8058. a2.Material = "Neon"
  8059. a2.Transparency = 0
  8060. a2.Shape = "Cylinder"
  8061. a2.CanCollide = false
  8062. local ba = Instance.new("Part",Character)
  8063. ba.Name = "HitDirect"
  8064. ba.Anchored = true
  8065. ba.BrickColor = MAINRUINCOLOR
  8066. ba.Material = "Neon"
  8067. ba.Transparency = 1
  8068. ba.CanCollide = false
  8069. local ba2 = Instance.new("Part",Character)
  8070. ba2.Name = "HitDirect"
  8071. ba2.Anchored = true
  8072. ba2.BrickColor = MAINRUINCOLOR
  8073. ba2.Material = "Neon"
  8074. ba2.Transparency = 1
  8075. ba2.CanCollide = false
  8076. local ray = Ray.new(
  8077. hb.CFrame.p, -- origin
  8078. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8079. )
  8080. local ignore = Character
  8081. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8082. local ray2 = Ray.new(
  8083. hb2.CFrame.p, -- origin
  8084. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8085. )
  8086. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8087. local distance2 = (hb2.CFrame.p - position).magnitude
  8088.  
  8089. a.BottomSurface = 10
  8090. a.TopSurface = 10
  8091. local distance = (hb.CFrame.p - position).magnitude
  8092. a.Size = Vector3.new(distance, 1, 1)
  8093. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8094. a2.BottomSurface = 10
  8095. a2.TopSurface = 10
  8096. a2.Size = Vector3.new(distance2, 1, 1)
  8097. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8098. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8099. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8100. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8101. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8102. local msh = Instance.new("SpecialMesh",a)
  8103. msh.MeshType = "Cylinder"
  8104. msh.Scale = vt(1,4,4)
  8105. local msh2 = Instance.new("SpecialMesh",a2)
  8106. msh2.MeshType = "Cylinder"
  8107. msh2.Scale = vt(1,4,4)
  8108. game:GetService("Debris"):AddItem(a, 30)
  8109. game:GetService("Debris"):AddItem(a2, 30)
  8110. game:GetService("Debris"):AddItem(ba, 30)
  8111. game:GetService("Debris"):AddItem(ba2, 30)
  8112. for i = 0, 20, 0.1 do
  8113. swait()
  8114. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8115. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8116. ray = Ray.new(
  8117. hb.CFrame.p, -- origin
  8118. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8119. )
  8120. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8121. distance = (hb.CFrame.p - position).magnitude
  8122. ray2 = Ray.new(
  8123. hb2.CFrame.p, -- origin
  8124. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8125. )
  8126. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8127. distance2 = (hb2.CFrame.p - position).magnitude
  8128. a.Size = Vector3.new(distance, 1, 1)
  8129. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8130. a2.Size = Vector3.new(distance2, 1, 1)
  8131. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8132. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8133. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8134. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8135. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8136. rsiz = math.random(5,25)
  8137. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8138. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8139. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8140. if v:FindFirstChild('Head') then
  8141. dmg(v)
  8142. end
  8143. end
  8144. coroutine.resume(coroutine.create(function()
  8145. local bx = Instance.new("Part",Character)
  8146. bx.Name = "Location"
  8147. bx.Anchored = true
  8148. bx.BrickColor = MAINRUINCOLOR
  8149. bx.Material = "Neon"
  8150. bx.Transparency = 1
  8151. bx.CanCollide = false
  8152. bx.Position = ba.Position
  8153. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8154. wait(math.random(1,2))
  8155. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8156. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8157. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8158. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8159. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8160. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8161. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8162. if v:FindFirstChild('Head') then
  8163. dmg(v)
  8164. end
  8165. end
  8166. wait(5)
  8167. bx:Destroy()
  8168. end))
  8169. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8170. sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
  8171. for c = 0, 2 do
  8172. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
  8173. end
  8174. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  8175. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  8176. sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  8177. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  8178. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  8179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05)
  8180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8181. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8182. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8183. end
  8184. for i = 0, 1 do
  8185. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8186. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8187. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8188. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8189. end
  8190. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8191. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8192. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8193. if v:FindFirstChild('Head') then
  8194. dmg(v)
  8195. end
  8196. end
  8197. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8198. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8199. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  8200. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8201. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8202. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8203. sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8204. sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8205. sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
  8206. for i = 0, 49 do
  8207. local rsiza = math.random(1,15)
  8208. sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8209. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
  8210. end
  8211. for i = 0, 49 do
  8212. rsiz = math.random(1,8)
  8213. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
  8214. end
  8215. coroutine.resume(coroutine.create(function()
  8216. for i = 0, 99 do
  8217. swait()
  8218. a.Transparency = a.Transparency + 0.01
  8219. a2.Transparency = a2.Transparency + 0.01
  8220. end
  8221. a:Destroy()
  8222. ba:Destroy()
  8223. a2:Destroy()
  8224. ba2:Destroy()
  8225. end))
  8226. hum.WalkSpeed = storehumanoidWS
  8227. hb:Destroy()
  8228. hb2:Destroy()
  8229. attack = false
  8230. end
  8231.  
  8232. function dragin()
  8233. local targetted = nil
  8234. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8235. targetted = mouse.Target.Parent
  8236. end
  8237. if targetted ~= nil then
  8238. RootPart.CFrame = FaceMouse()[1]
  8239. attack = true
  8240. hum.WalkSpeed = 0
  8241. for x = 0, 1 do
  8242. for i = 0,1,0.5 do
  8243. swait()
  8244. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  8245. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  8246. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8248. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8249. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8250. end
  8251. for i = 0,1,0.5 do
  8252. swait()
  8253. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8254. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8257. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8258. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8259. end
  8260. for i = 0,1,0.5 do
  8261. swait()
  8262. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8263. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8264. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8266. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8267. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8268. end
  8269. for i = 0,1,0.5 do
  8270. swait()
  8271. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8272. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8273. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8274. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8275. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  8276. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  8277. end
  8278. end
  8279. coroutine.resume(coroutine.create(function()
  8280. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8281. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8282. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8283. end))
  8284. local A1 = Instance.new("Attachment",targetted.Head)
  8285. local A2 = Instance.new("Attachment",sorb)
  8286. local Beem = Instance.new("Beam",tors)
  8287. Beem.Attachment0 = A1
  8288. Beem.Attachment1 = A2
  8289. Beem.Texture = "rbxassetid://897585362"
  8290. Beem.LightEmission = 0.75
  8291. Beem.FaceCamera = true
  8292. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8293. Beem.Width0 = 1
  8294. Beem.Width1 = 1
  8295. Beem.TextureMode = "Wrap"
  8296. Beem.TextureLength = 1
  8297. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8298. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR)
  8299. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR)
  8300. for x = 0, 24 do
  8301. local rsiz = math.random(5,15)
  8302. sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8303. end
  8304.  
  8305. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8306. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8307. local radm = math.random(1,2)
  8308. if radm == 1 then
  8309. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8310. elseif radm == 2 then
  8311. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8312. end
  8313. for i = 0,3,0.1 do
  8314. swait()
  8315. coroutine.resume(coroutine.create(function()
  8316. local rsiz = math.random(5,15)
  8317. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8318. sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8319. end))
  8320. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8321. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  8322. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  8323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8325. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
  8326. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
  8327. end
  8328. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8329. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8330. local vel = Instance.new("BodyPosition", targetted.Head)
  8331. vel.P = 12500
  8332. vel.D = 1000
  8333. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8334. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8335. for i = 0,4,0.1 do
  8336. swait()
  8337. coroutine.resume(coroutine.create(function()
  8338. local rsiz = math.random(5,15)
  8339. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8340. sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8341. end))
  8342. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8343. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8344. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
  8345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8347. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  8348. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  8349. end
  8350. local visibility = 0
  8351. coroutine.resume(coroutine.create(function()
  8352. for i = 0, 49 do
  8353. swait()
  8354. visibility = visibility + 0.02
  8355. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8356. end
  8357. Beem:Destroy()
  8358. A1:Destroy()
  8359. A2:Destroy()
  8360. end))
  8361. game:GetService("Debris"):AddItem(vel,0.75)
  8362. attack = false
  8363. hum.WalkSpeed = storehumanoidWS
  8364.  
  8365. end
  8366. end
  8367.  
  8368. function hugg()
  8369. attack = true
  8370. hum.WalkSpeed = 5
  8371. local rsiz = math.random(5,15)
  8372. for i = 0, 2, 0.1 do
  8373. swait()
  8374. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8375. LH.C0=clerp(LH.C0,cf(-1,-0.8 - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8376. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0 + 2 * math.cos(sine / 44))),.1)
  8377. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  8378. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8379. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8380. end
  8381. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8382. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8383. hb.Anchored = true
  8384. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8385. local huggedperson = nil
  8386. local act = false
  8387. local alreadydid = false
  8388. for i = 0, 3, 0.1 do
  8389. swait()
  8390. if act == false then
  8391. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8392. if v:FindFirstChild('Head') then
  8393. if alreadydid == false then
  8394. huggedperson = v
  8395. hum.WalkSpeed = 0
  8396. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8397. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8398. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8399. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8400. local radm = math.random(1,3)
  8401. if radm == 1 then
  8402. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8403. elseif radm == 2 then
  8404. bosschatfunc("I..I apoligize for anything I have done wrong to you.",MAINRUINCOLOR.Color,1)
  8405. elseif radm == 3 then
  8406. bosschatfunc("Don't worry.. I'm with you...",MAINRUINCOLOR.Color,1)
  8407. end
  8408. root.Anchored = true
  8409. coroutine.resume(coroutine.create(function()
  8410. huggedperson.Humanoid.WalkSpeed = 0
  8411. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8412. end))
  8413. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8414. alreadydid = true
  8415. act = true
  8416. print(huggedperson.Name)
  8417. end
  8418. end
  8419. end
  8420. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  8422. elseif act == true then
  8423. coroutine.resume(coroutine.create(function()
  8424. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8425. end))
  8426. rsiz = math.random(5,15)
  8427. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
  8429. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8430. print'whats this OwO'
  8431. end
  8432. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8433. LH.C0=clerp(LH.C0,cf(-1,-0.8 - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8434. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0 + 2 * math.cos(sine / 44))),.1)
  8435. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8436. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8437. end
  8438. hb:Destroy()
  8439. if act == true then
  8440. for x = 0, 2 do
  8441. for i = 0, 2, 0.1 do
  8442. swait()
  8443. coroutine.resume(coroutine.create(function()
  8444. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8445. end))
  8446. rsiz = math.random(5,15)
  8447. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  8449. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8450. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8451. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8452. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8453. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8454. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8455. end
  8456. for i = 0, 2, 0.1 do
  8457. swait()
  8458. coroutine.resume(coroutine.create(function()
  8459. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8460. end))
  8461. rsiz = math.random(5,15)
  8462. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8463. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
  8464. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8465. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8466. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8467. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8468. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8469. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8470. end
  8471. end
  8472. end
  8473. hum.WalkSpeed = storehumanoidWS
  8474. root.Anchored = false
  8475. if act == true then
  8476. coroutine.resume(coroutine.create(function()
  8477. huggedperson.Humanoid.WalkSpeed = 16
  8478. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8479. end))
  8480. end
  8481. hum.WalkSpeed = storehumanoidWS
  8482. attack = false
  8483. end
  8484.  
  8485. function Counter()
  8486. hum.WalkSpeed = 0
  8487. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8488. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8489. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8490. attack = true
  8491. for i = 0,1,0.1 do
  8492. swait()
  8493. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8494. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8495. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8496. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8497. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3)
  8498. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.3)
  8499. end
  8500. CameraEnshaking(3,4)
  8501. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8502. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8503. sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8504. sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  8505. coroutine.resume(coroutine.create(function()
  8506. local eff = Instance.new("ParticleEmitter",root)
  8507. eff.Texture = "rbxassetid://363275192"
  8508. eff.LightEmission = 0.95
  8509. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8510. eff.Rate = 10000
  8511. eff.Lifetime = NumberRange.new(1)
  8512. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8513. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8514. eff.Speed = NumberRange.new(10,125)
  8515. eff.Drag = 5
  8516. eff.Rotation = NumberRange.new(-500,500)
  8517. eff.VelocitySpread = 9000
  8518. eff.RotSpeed = NumberRange.new(-50,50)
  8519. local eff2 = eff:Clone()
  8520. eff2.Parent = root
  8521. eff2.Texture = "rbxassetid://284205403"
  8522. eff2.Rate = 10000
  8523. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)})
  8524. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8525. eff2.Drag = 5
  8526. eff2.Speed = NumberRange.new(10,50)
  8527. eff2.Rotation = NumberRange.new(-500,500)
  8528. eff2.VelocitySpread = 9000
  8529. wait(0.25)
  8530. eff2.Enabled = false
  8531. eff.Enabled = false
  8532. wait(3)
  8533. eff2:Destroy()
  8534. eff:Destroy()
  8535. end))
  8536. for i = 0, 9 do
  8537. sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  8538. end
  8539. for i = 0, 24 do
  8540. local rsiz = math.random(5,20)
  8541. sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  8542. end
  8543. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8544. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8545. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8546. for i = 0,2,0.1 do
  8547. swait()
  8548. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8549. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8550. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8551. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8552. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
  8553. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
  8554. end
  8555. hum.WalkSpeed = storehumanoidWS
  8556. attack = false
  8557. end
  8558. hum.WalkSpeed = 12
  8559. function superjump()
  8560. attack = true
  8561. hum.WalkSpeed = 0
  8562. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8563. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8564. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8565. for i = 0, 2, 0.1 do
  8566. swait()
  8567. root.Velocity = vt(0,0,0)
  8568. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White"))
  8569. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  8570. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4)
  8571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8573. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8574. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8575. end
  8576. MagniDamage(root, 28, 25,50, 25, "Normal")
  8577. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8578. hum.Jump = true
  8579. swait()
  8580. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8581. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8582. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8583. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8584. for i = 0, 3, 0.1 do
  8585. swait()
  8586. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  8587. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4)
  8588. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8590. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8591. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8592. end
  8593. attack = false
  8594. hum.WalkSpeed = 24
  8595. end
  8596.  
  8597.  
  8598. -------------------------------------
  8599.  
  8600.  
  8601.  
  8602. Humanoid.Animator.Parent = nil
  8603.  
  8604.  
  8605.  
  8606. -------------------------------------
  8607.  
  8608. local attacktype = 1
  8609. mouse.Button1Down:connect(function()
  8610. if attack == false and attacktype == 1 then
  8611. attacktype = 2
  8612. attackone()
  8613. elseif attack == false and attacktype == 2 then
  8614. attacktype = 3
  8615. attacktwo()
  8616. elseif attack == false and attacktype == 3 then
  8617. attacktype = 1
  8618. attackthree()
  8619. elseif attack == false and attacktype == 4 then
  8620. attacktype = 1
  8621. --attackfour()
  8622. end
  8623. end)
  8624. mouse.KeyDown:connect(function(k)
  8625. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8626. --normalmog()
  8627. ModeOfGlitch = 1
  8628. storehumanoidWS = 12
  8629. hum.WalkSpeed = 12
  8630. rainbowmode = false
  8631. chaosmode = false
  8632. newTheme("rbxassetid://1564523997",48.6,1,0.85)
  8633. RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(0,0,0),"Antique")
  8634. MAINRUINCOLOR = BrickColor.new("Black")
  8635. ned.TextColor3 = BrickColor.new("Black").Color
  8636. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  8637. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8638. end
  8639. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8640. ModeOfGlitch = 2
  8641. storehumanoidWS = 16
  8642. hum.WalkSpeed = 16
  8643. rainbowmode = false
  8644. chaosmode = false
  8645. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8646. newTheme("rbxassetid://1539245059",0,1,0.85)
  8647. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8648. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8649. end
  8650. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8651. ModeOfGlitch = 3
  8652. storehumanoidWS = 14
  8653. hum.WalkSpeed = 14
  8654. rainbowmode = false
  8655. chaosmode = false
  8656. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8657. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8658. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8659. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8660. end
  8661. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8662. ModeOfGlitch = 4
  8663. storehumanoidWS = 14
  8664. hum.WalkSpeed = 14
  8665. rainbowmode = false
  8666. chaosmode = true
  8667. RecolorTextAndRename("HAVOC",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8668. newTheme("rbxassetid://342274063",0,1.01,0.85)
  8669. MAINRUINCOLOR = BrickColor.new("Black")
  8670. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8671. end
  8672. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8673. ModeOfGlitch = 5
  8674. storehumanoidWS = 14
  8675. hum.WalkSpeed = 14
  8676. rainbowmode = false
  8677. chaosmode = false
  8678. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8679. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8680. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8681. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8682. end
  8683. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8684. ModeOfGlitch = 6
  8685. storehumanoidWS = 65
  8686. hum.WalkSpeed = 65
  8687. rainbowmode = false
  8688. chaosmode = false
  8689. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8690. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8691. MAINRUINCOLOR = BrickColor.new("White")
  8692. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8693. end
  8694. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8695. ModeOfGlitch = 8
  8696. storehumanoidWS = 100
  8697. hum.WalkSpeed = 100
  8698. rainbowmode = false
  8699. chaosmode = false
  8700. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8701. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8702. MAINRUINCOLOR = BrickColor.new("Alder")
  8703. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8704. end
  8705. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8706. ModeOfGlitch = 9
  8707. storehumanoidWS = 85
  8708. hum.WalkSpeed = 85
  8709. rainbowmode = false
  8710. chaosmode = false
  8711. RecolorTextAndRename("POISON",Color3.new(170, 0, 170),Color3.new(123, 0, 123),"Bodoni")
  8712. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8713. MAINRUINCOLOR = BrickColor.new("Magenta")
  8714. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8715. end
  8716. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8717. ModeOfGlitch = 5555
  8718. storehumanoidWS = 30
  8719. hum.WalkSpeed = 30
  8720. rainbowmode = false
  8721. chaosmode = false
  8722. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8723. newTheme("rbxassetid://736003449",0,1,1.25)
  8724. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8725. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8726. end
  8727. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8728. CalamityTrans()
  8729. end
  8730. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8731. ModeOfGlitch = 55469696922
  8732. storehumanoidWS = 95
  8733. hum.WalkSpeed = 95
  8734. rainbowmode = false
  8735. chaosmode = false
  8736. RecolorTextAndRename("The big Black",Color3.new(0,0,0),BrickColor.new("Black").Color,"Antique")
  8737. newTheme("rbxassetid://183142252",0,1.005,0.9)
  8738. MAINRUINCOLOR = BrickColor.new("Black")
  8739. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8740. end
  8741. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8742. ModeOfGlitch = 4367677813
  8743. storehumanoidWS = 75
  8744. hum.WalkSpeed = 75
  8745. rainbowmode = false
  8746. chaosmode = false
  8747. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8748. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8749. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8750. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8751. end
  8752. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8753. ModeOfGlitch = 9999999921111
  8754. storehumanoidWS = 145
  8755. hum.WalkSpeed = 145
  8756. rainbowmode = false
  8757. chaosmode = false
  8758. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8759. newTheme("rbxassetid://643309199",0,1.01,1)
  8760. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8761. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8762. end
  8763. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8764. ModeOfGlitch = 999999999556
  8765. storehumanoidWS = 115
  8766. hum.WalkSpeed = 115
  8767. rainbowmode = false
  8768. chaosmode = false
  8769. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8770. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8771. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8772. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8773. end
  8774. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8775. ModeOfGlitch = 12
  8776. storehumanoidWS = 24
  8777. hum.WalkSpeed = 24
  8778. rainbowmode = false
  8779. chaosmode = false
  8780. print'Mode was meant for Vengeful Program or those other fans out there.'
  8781. warn'oof this mode does literally nothing'
  8782. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8783. newTheme("rbxassetid://1873219898",0,1,1.7)
  8784. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8785. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8786. end
  8787.  
  8788. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8789. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8790. for i = 0, 49 do
  8791. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Institutional white"),0)
  8792. end
  8793. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8794. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8795. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8796. hum.WalkSpeed = storehumanoidWS
  8797. attack = false
  8798. ModeOfGlitch = 50
  8799. storehumanoidWS = 18
  8800. hum.WalkSpeed = 18
  8801. rainbowmode = false
  8802. chaosmode = false
  8803. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8804. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8805. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8806. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8807. end
  8808.  
  8809. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8810. hum.WalkSpeed = 0
  8811. attack = true
  8812. for i = 0,1,0.1 do
  8813. swait()
  8814. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8815. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8816. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8817. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8818. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8819. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8820. end
  8821. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8822. for i = 0, 148 do
  8823. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  8824. end
  8825. for i = 0,3,0.1 do
  8826. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  8827. end
  8828. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8829. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8830. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8831. hum.WalkSpeed = storehumanoidWS
  8832. attack = false
  8833. ModeOfGlitch = 66
  8834. storehumanoidWS = 16
  8835. hum.WalkSpeed = 16
  8836. rainbowmode = false
  8837. chaosmode = false
  8838. newTheme("rbxassetid://803373182",0,1,1.35)
  8839. MAINRUINCOLOR = BrickColor.new("Really black")
  8840. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8841. for i = 0,2,0.1 do
  8842. swait()
  8843. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8844. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8845. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8846. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8847. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8848. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8849. end
  8850. end
  8851.  
  8852. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8853. hum.WalkSpeed = 0
  8854. attack = true
  8855. for i = 0,1,0.1 do
  8856. swait()
  8857. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8858. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8859. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8860. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8861. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8862. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8863. end
  8864. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8865. for i = 0, 49 do
  8866. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  8867. end
  8868. for i = 0,3,0.1 do
  8869. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  8870. end
  8871. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8872. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8873. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8874. hum.WalkSpeed = storehumanoidWS
  8875. attack = false
  8876. ModeOfGlitch = 13
  8877. storehumanoidWS = 45
  8878. hum.WalkSpeed = 45
  8879. rainbowmode = false
  8880. chaosmode = false
  8881. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8882. newTheme("rbxassetid://190845741",0,1,1.35)
  8883. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8884. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8885. for i = 0,2,0.1 do
  8886. swait()
  8887. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8888. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8889. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8890. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8891. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8892. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8893. end
  8894. end
  8895. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8896. ModeOfGlitch = 1002
  8897. storehumanoidWS = 45
  8898. hum.WalkSpeed = 45
  8899. rainbowmode = false
  8900. chaosmode = false
  8901. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8902. newTheme("rbxassetid://1244332148",0,1,1.8)
  8903. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8904. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8905. end
  8906. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8907. ModeOfGlitch = 1003
  8908. storehumanoidWS = 90
  8909. hum.WalkSpeed = 90
  8910. rainbowmode = false
  8911. chaosmode = false
  8912. RecolorTextAndRename("ControlledBR",BrickColor.new("Bright red").Color,BrickColor.new("Black").Color,"Code")
  8913. newTheme("rbxassetid://407749940",0,1,0.85)
  8914. MAINRUINCOLOR = BrickColor.new("Bright red")
  8915. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8916. end
  8917. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8918. ModeOfGlitch = 1264532489
  8919. storehumanoidWS = 175
  8920. hum.WalkSpeed = 175
  8921. rainbowmode = false
  8922. chaosmode = false
  8923. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8924. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8925. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8926. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8927. end
  8928. if k == "l" and mutedtog == false then
  8929. mutedtog = true
  8930. kan.Volume = 0.85
  8931. elseif k == "l" and mutedtog == true then
  8932. mutedtog = false
  8933. kan.Volume = 0.85
  8934. end
  8935. if k == "p" and toggleTag == false then
  8936. toggleTag = true
  8937. modet.TextTransparency = 0
  8938. modet.TextStrokeTransparency = 0
  8939. elseif k == "p" and toggleTag == true then
  8940. toggleTag = false
  8941. modet.TextTransparency = 1
  8942. modet.TextStrokeTransparency = 1
  8943. end
  8944. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8945. ExtinctiveHeartbreak()
  8946. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8947. HeavenlyDisk()
  8948. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8949. DualGleamingBeam()
  8950. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8951. BanishingOrb()
  8952. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8953. hugg()
  8954. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8955. cutesigh()
  8956. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8957. Counter()
  8958. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8959. superjump()
  8960. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8961. dragin()
  8962. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8963. UniversalCollapse()
  8964. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8965. PureBomb()
  8966. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8967. Beams()
  8968. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8969. BeamOfDeath()
  8970. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8971. THE_TRUE_POWER_OF_VIOLENCE()
  8972. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8973. GleamingBeam()
  8974. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8975. ViolentRing()
  8976. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8977. CorruptionEvent()
  8978. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8979. CorruptBlink()
  8980. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8981. scattercorrupt()
  8982. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8983. shytaunty()
  8984. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8985. RapidBurst()
  8986. elseif k == "z" and attack == false and ModeOfGlitch == 66 then
  8987. RapidBurst()
  8988. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8989. ChaosEND()
  8990. elseif k == "x" and attack == false and ModeOfGlitch == 66 then
  8991. ChaosEND()
  8992. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8993. CyberSlash()
  8994. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8995. smiter()
  8996. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8997. SpeedDrop()
  8998. elseif k == "x" and attack == false and ModeOfGlitch == 5555 and KiddoLocko == true then
  8999. notonmychristianminecraftserver()
  9000. elseif k == "x" and attack == false and ModeOfGlitch == 5555 and KiddoLocko == false then
  9001. fugg()
  9002. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9003. --DivineLights()
  9004. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9005. DivineBlast()
  9006. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9007. EquinoxOrbs()
  9008. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9009. yinyangi()
  9010. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9011. FallenOrbs()
  9012. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9013. StarfallEX()
  9014. end
  9015. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9016. FallenDEMISE()
  9017. end
  9018. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9019. EndGROUND()
  9020. end
  9021. end)
  9022.  
  9023. coroutine.resume(coroutine.create(function()
  9024. while true do
  9025. swait()
  9026. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9027. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
  9028. end
  9029. if ModeOfGlitch == 5555 then
  9030. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  9031. end
  9032. end
  9033. end))
  9034. --[[coroutine.resume(coroutine.create(function()
  9035. while true do
  9036. swait(2)
  9037. if chaosmode == true then
  9038. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9039. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9040. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9041. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9042. for i, v in pairs(mw1:GetChildren()) do
  9043. if v:IsA("Part") then
  9044. v.Transparency = 0.75
  9045. v.BrickColor = BrickColor.random()
  9046. v.Material = "Neon"
  9047. end
  9048. end
  9049. for i, v in pairs(m2:GetChildren()) do
  9050. if v:IsA("Part") then
  9051. v.BrickColor = BrickColor.random()
  9052. v.Material = "Neon"
  9053. end
  9054. end
  9055. end
  9056. end
  9057. end))]]
  9058.  
  9059.  
  9060.  
  9061. ff = Instance.new("ForceField",char)
  9062. ff.Visible = false
  9063. hum.Name = "Base"
  9064. hum.MaxHealth = 1.0E298
  9065. hum.Health = 1.0E298
  9066. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9067. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9068. hum.MaxHealth = 1.0E298
  9069. hum.Health = 1.0E298
  9070. end
  9071. end)
  9072.  
  9073. local Hair = Instance.new("Part", char)
  9074. Hair.Name = "Hair"
  9075. Hair.CanCollide = false
  9076. Hair.BrickColor = BrickColor.new("Institutional white")
  9077. Hair.Transparency = 0
  9078. Hair.Material = "Plastic"
  9079. Hair.Size = Vector3.new(1, 1, 2)
  9080. Hair.TopSurface = Enum.SurfaceType.Smooth
  9081. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9082.  
  9083.  
  9084. local bguis = Instance.new("BillboardGui",tors)
  9085. bguis.Size = UDim2.new(25, 0, 25, 0)
  9086. local imgca = Instance.new("ImageLabel",bguis)
  9087. imgca.BackgroundTransparency = 1
  9088. imgca.ImageTransparency = 1
  9089. imgca.Size = UDim2.new(1,0,1,0)
  9090. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9091. imgca.ImageColor3 = Color3.new(0,0,0)
  9092.  
  9093.  
  9094. local bguis2 = Instance.new("BillboardGui",tors)
  9095. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9096. local imgca2 = Instance.new("ImageLabel",bguis)
  9097. imgca2.BackgroundTransparency = 1
  9098. imgca2.ImageTransparency = 1
  9099. imgca2.Size = UDim2.new(1,0,1,0)
  9100. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9101. imgca2.ImageColor3 = Color3.new(0,0,0)
  9102.  
  9103.  
  9104.  
  9105. idleanim=.4
  9106. while true do
  9107. if mutedtog == false then
  9108. kan.Volume = currentVol
  9109. elseif mutedtog == true then
  9110. kan.Volume = 0
  9111. end
  9112. kan.PlaybackSpeed = currentPitch
  9113. kan.Pitch = currentPitch
  9114. kan.SoundId = currentThemePlaying
  9115. kan.Looped = true
  9116. kan.Parent = char
  9117. kan:Resume()
  9118. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9119. imgca.ImageTransparency = 1
  9120. imgca2.ImageTransparency = 1
  9121. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9122. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9123. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9124. elseif ModeOfGlitch == 13 then
  9125. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9126. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9127. end
  9128. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9129. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9130. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9131. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9132. coroutine.resume(coroutine.create(function()
  9133. if chaosmode == true then
  9134. for i, v in pairs(mw1:GetChildren()) do
  9135. if v:IsA("Part") then
  9136. v.Transparency = 0
  9137. v.BrickColor = BrickColor.random()
  9138. v.Material = "Neon"
  9139. end
  9140. end
  9141. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9142. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9143. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9144. RecolorTextAndRename("H A V O C",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9145. end
  9146. end))
  9147. coroutine.resume(coroutine.create(function()
  9148. if ModeOfGlitch == 66 then
  9149. for i, v in pairs(m:GetChildren()) do
  9150. if v:IsA("Part") then
  9151. v.Transparency = 0
  9152. v.BrickColor = BrickColor.random()
  9153. v.Material = "Neon"
  9154. end
  9155. end
  9156. for i, v in pairs(m2:GetChildren()) do
  9157. if v:IsA("Part") then
  9158. v.Transparency = 0
  9159. v.BrickColor = BrickColor.random()
  9160. v.Material = "Neon"
  9161. end
  9162. end
  9163. for i, v in pairs(mw1:GetChildren()) do
  9164. if v:IsA("Part") then
  9165. v.Transparency = 0
  9166. v.BrickColor = BrickColor.random()
  9167. v.Material = "Neon"
  9168. end
  9169. end
  9170. for i, v in pairs(extrawingmod1:GetChildren()) do
  9171. if v:IsA("Part") then
  9172. v.Transparency = 0.5
  9173. v.BrickColor = BrickColor.random()
  9174. v.Material = "Neon"
  9175. end
  9176. end
  9177. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9178. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9179. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9180. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9181. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9182. end
  9183. end))
  9184.  
  9185. coroutine.resume(coroutine.create(function()
  9186. if ModeOfGlitch == 66 then
  9187. RecolorTextAndRename("I N S A N I T Y",BrickColor.random().Color,Color3.new(0,0,0),"SourceSans")
  9188. hum.WalkSpeed = 12
  9189. storehumanoidWS = 12
  9190. end
  9191. end))
  9192.  
  9193. if chaosmode == false then
  9194. modet.Position = UDim2.new(0,0,0,0)
  9195. modet.Rotation = -5 * math.cos(sine / 32)
  9196. techc.Rotation = techc.Rotation + 1
  9197. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9198. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9199. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9200. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9201. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9202. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9203. else
  9204. techc.Rotation = techc.Rotation + 1
  9205. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9206. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9207. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9208. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9209. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9210. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9211. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9212. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9213. end
  9214. CameraManager()
  9215. swait()
  9216. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  9217. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  9218. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  9219. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  9220. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  9221. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  9222. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  9223. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  9224. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  9225. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  9226. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  9227. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  9228. sine = sine + change
  9229. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9230. local velderp=RootPart.Velocity.y
  9231. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9232. coroutine.resume(coroutine.create(function()
  9233. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then
  9234. if hitfloor ~= nil then
  9235. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("White"))
  9236. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9237. slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,150)/250,MAINRUINCOLOR)
  9238. end
  9239. end
  9240. end
  9241. end))
  9242. if equipped==true or equipped==false then
  9243. if attack==false then
  9244. idle=idle+1
  9245. else
  9246. idle=0
  9247. end
  9248. if idle>=500 then
  9249. if attack==false then
  9250. --Sheath()
  9251. end
  9252. end
  9253. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9254. Anim="Jump"
  9255. if attack==false then
  9256. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  9257. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  9258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  9259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9260. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  9261. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  9262. end
  9263. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9264. Anim="Fall"
  9265. if attack==false then
  9266. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  9267. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  9268. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  9269. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9270. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  9271. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  9272. end
  9273. elseif torvel<1 and hitfloor~=nil then
  9274. Anim="Idle"
  9275. if attack==false then
  9276. if ModeOfGlitch == 1 then
  9277. local snap = math.random(1,10)
  9278. if snap == 1 then
  9279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(-23.4 + math.random(-5,5))),1)
  9280. end
  9281. RH.C0=clerp(RH.C0,cf(1,-0.95 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(40),math.rad(83 + 2.24 *Cos(sine / 52.3)),math.rad(-24.2))*angles(math.rad(-6.37),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(3.46 - 2 * math.cos(sine / 32))),.1)
  9282. LH.C0=clerp(LH.C0,cf(-1,-1.15 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(40),math.rad(-78 + 2 *Cos(sine / 52)),math.rad(20))*angles(math.rad(0),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9283. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(20 - 2 * math.cos(sine / 32)),math.rad(4),math.rad(20 + 2 * math.cos(sine / 56))),.1)
  9284. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-23.4 - 2 * math.cos(sine / 56))),.1)
  9285. RW.C0=clerp(RW.C0,cf(1.5,0.35 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(20 + 6 * math.cos(sine / 72)),math.rad(3 - 25.4 * math.cos(sine / .2)),math.rad(20 + 20 * math.cos(sine / 45))),.1)
  9286. LW.C0=clerp(LW.C0,cf(-1,0.43 + 0.025 * math.cos(sine / 45),-0.26)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 15.64 * math.cos(sine / .2))),.1)
  9287. elseif ModeOfGlitch == 2 then
  9288. RH.C0=clerp(RH.C0,cf(1,-1.062 - 0.05 * math.cos(sine / 32),0.2)*angles(math.rad(-20),math.rad(76 + 3 *Cos(sine / 56)),math.rad(0))*angles(math.rad(0),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9289. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80 + 3.43 *Cos(sine / 56.2)),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  9291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  9292. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9293. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9294. elseif ModeOfGlitch == 2 then
  9295. RH.C0=clerp(RH.C0,cf(1,-0.5 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9296. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),-1 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  9298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  9299. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9300. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9301. elseif ModeOfGlitch == 50 then
  9302. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  9303. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  9304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  9305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  9306. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  9307. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  9308. elseif ModeOfGlitch == 5555 then --5555
  9309. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.5 *Cos(sine / 56),0,1 + 0.45 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9311. RH.C0=clerp(RH.C0,cf(1,-1 + 0.1 *Cos(sine / 20),0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9312. LH.C0=clerp(LH.C0,cf(-1,-0.8 + 0.1 *Cos(sine / 20),-0.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9313. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  9314. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  9315. elseif ModeOfGlitch == 1002 then
  9316. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  9317. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9318. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9320. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  9321. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9322. elseif ModeOfGlitch == 12 then
  9323. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  9324. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  9325. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  9326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  9327. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  9328. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  9329. elseif ModeOfGlitch == 3 then
  9330. local snap = math.random(1,32)
  9331. if snap == 1 then
  9332. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  9333. end
  9334. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9335. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  9337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9338. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  9339. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  9340. elseif ModeOfGlitch == 4 then
  9341. local snap = math.random(1,5)
  9342. if snap == 1 then
  9343. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  9344. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9345. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9346. end
  9347. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  9348. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  9349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9351. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  9352. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  9353. elseif ModeOfGlitch == 66 then
  9354. local snap = math.random(1,2)
  9355. if snap == 1 then
  9356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  9357. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9358. end
  9359. RH.C0=clerp(RH.C0,cf(1,-0.95 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(7.5),math.rad(80),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  9360. LH.C0=clerp(LH.C0,cf(-1,-0.95 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(7.5),math.rad(-80),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  9361. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9362. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9363. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(15 + 3 * math.cos(sine / 45))),.1)
  9364. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(25 - 3 * math.cos(sine / 45))),.1)
  9365. elseif ModeOfGlitch == 5 then
  9366. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  9367. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  9368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  9369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  9370. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-22 + 5 * math.cos(sine / 74)),math.rad(5 - 3 * math.cos(sine / 53)),math.rad(-44 + 3 * math.cos(sine / 45))),.1)
  9371. LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(6 - 1 * math.cos(sine / 55)),math.rad(45 - 3 * math.cos(sine / 45))),.1)
  9372. elseif ModeOfGlitch == 6 then
  9373. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9374. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9375. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9376. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9377. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  9378. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  9379. elseif ModeOfGlitch == 13 then
  9380. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9381. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9382. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9384. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 1 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9385. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9386. elseif ModeOfGlitch == 8 then
  9387. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  9388. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  9389. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  9390. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  9391. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9392. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9393. elseif ModeOfGlitch == 9 then
  9394. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9395. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  9396. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  9397. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  9398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
  9399. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9400. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  9401. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  9402. elseif ModeOfGlitch == 1003 then
  9403. local snap = math.random(1,10)
  9404. if snap == 1 then
  9405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(26 + math.random(-5,5))),1)
  9406. end
  9407. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9408. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9409. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9410. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9411. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(176 + 7 * math.cos(sine / 79)),math.rad(12 - 3 * math.cos(sine / 53)),math.rad(-33 + 2 * math.cos(sine / 73))),.1)
  9412. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  9413.  
  9414. elseif ModeOfGlitch == 8889 then
  9415. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  9416. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  9417. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9418. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  9419. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  9420. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  9421. elseif ModeOfGlitch == 1264532489 then
  9422. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9423. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  9424. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  9425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9426. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9427. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  9428. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9429. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9430. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  9431. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  9432. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  9433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9434. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  9435. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  9436. elseif ModeOfGlitch == 4367677813 then
  9437. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  9438. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  9439. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
  9440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  9441. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  9442. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  9443. elseif ModeOfGlitch == 55469696922 then --5555
  9444. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9446. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9447. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9448. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-22 + 5 * math.cos(sine / 74)),math.rad(5 - 3 * math.cos(sine / 53)),math.rad(-44 + 3 * math.cos(sine / 45))),.1)
  9449. LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.025 * math.cos(sine / 45),.2)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(6 - 1 * math.cos(sine / 55)),math.rad(45 - 3 * math.cos(sine / 45))),.1)
  9450. elseif ModeOfGlitch == 999999999556 then
  9451. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  9452. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  9453. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  9454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  9455. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  9456. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9457. end
  9458. end
  9459. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9460. Anim="Walk"
  9461. if attack==false and ModeOfGlitch ~= 66 then
  9462. RH.C0=clerp(RH.C0,cf(1,-1 + 0.2 * math.cos(sine / 4),-0.2 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9463. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.2 * math.cos(sine / 4),0.2 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9464. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  9465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  9466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9467. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9468.  
  9469. elseif attack==false and ModeOfGlitch == 66 then
  9470. RH.C0=clerp(RH.C0,cf(1,-1 + 0.2 * math.cos(sine / 4),-0.45 * math.cos(sine / 8))*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9471. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.2 * math.cos(sine / 4),0.45 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  9472. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(15 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  9473. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9474. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(15 + 3 * math.cos(sine / 45))),.1)
  9475. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1)
  9476. end
  9477. elseif torvel>=22 and hitfloor~=nil then
  9478. Anim="Run"
  9479. if attack==false then
  9480. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 5555 and ModeOfGlitch ~= 1003 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  9481. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  9482. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  9483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  9484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  9485. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  9486. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  9487. if ModeOfGlitch == 9 then
  9488. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9489. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
  9490. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  9491. end
  9492. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  9493. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  9494. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  9495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  9496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  9497. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  9498. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  9499. elseif ModeOfGlitch == 13 or ModeOfGlitch == 12 then
  9500. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  9501. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  9502. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(40),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  9503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  9504. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 3 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
  9505. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 5 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
  9506. end
  9507. end
  9508. end
  9509. end
  9510. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement