Advertisement
Toey8415

Hopeless

Oct 6th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 443.36 KB | None | 0 0
  1. local Player = game:GetService("Players").Toey8418
  2.  
  3. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  4. The super switcher.
  5. Velnorum is one of the first wielders.
  6.  
  7. Created, Reworked by NoobyGames12
  8. Edited by GodzPlaysRB
  9. Edited by wanTH092 (Gam_Filano CH)
  10. SpectrumGlitcher Developers ^^^
  11. ]])
  12.  
  13.  
  14. ------------- ORIGINAL WIELDER OC: Velnorum
  15. print([[Icons:
  16. ! = New
  17. ? = Spoilers
  18. * = Exclusivity
  19. C = Changes
  20.  
  21. ]])
  22. warn([[V 4.35 Update Log:
  23. ! - Added Betrayal mode (Chaos M)
  24.  
  25. !? - Added z move to destiny
  26. !c? = Added calamity transition
  27. !? - upcoming transition for some mode..
  28. - Removed some voice sound effects because they didnt sound right
  29. ]])
  30. --- its obs smooth af do not touch
  31. ---- Sources and functions might be taken from others
  32. plr = game:GetService("Players").Toey8418
  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. cam.CameraType = "Custom"
  41. t = char.Torso
  42. h = char.Head
  43. ra = char["Right Arm"]
  44. la = char["Left Arm"]
  45. rl = char["Right Leg"]
  46. ll = char["Left Leg"]
  47. tors = char.Torso
  48. lleg = char["Left Leg"]
  49. root = char.HumanoidRootPart
  50. hed = char.Head
  51. rleg = char["Right Leg"]
  52. rarm = char["Right Arm"]
  53. larm = char["Left Arm"]
  54. radian = math.rad
  55. random = math.random
  56. Vec3 = Vector3.new
  57. Inst = Instance.new
  58. cFrame = CFrame.new
  59. Euler = CFrame.fromEulerAnglesXYZ
  60. vt = Vector3.new
  61. bc = BrickColor.new
  62. br = BrickColor.random
  63. it = Instance.new
  64. cf = CFrame.new
  65. local Player_Size = 0
  66. cam = game.Workspace.CurrentCamera
  67. CF = CFrame.new
  68. angles = CFrame.Angles
  69. attack = false
  70. Euler = CFrame.fromEulerAnglesXYZ
  71. Rad = math.rad
  72. IT = Instance.new
  73. BrickC = BrickColor.new
  74. Cos = math.cos
  75. Acos = math.acos
  76. Sin = math.sin
  77. Asin = math.asin
  78. Abs = math.abs
  79. Mrandom = math.random
  80. Floor = math.floor
  81. IT = Instance.new
  82. CF = CFrame.new
  83. VT = Vector3.new
  84. RAD = math.rad
  85. C3 = Color3.new
  86. UD2 = UDim2.new
  87. BRICKC = BrickColor.new
  88. ANGLES = CFrame.Angles
  89. EULER = CFrame.fromEulerAnglesXYZ
  90. COS = math.cos
  91. ACOS = math.acos
  92. SIN = math.sin
  93. ASIN = math.asin
  94. ABS = math.abs
  95. MRANDOM = math.random
  96. FLOOR = math.floor
  97. local SINE = 0
  98.  
  99. local Booleans = {
  100. CamFollow = true,
  101. GyroUse = true
  102. }
  103.  
  104. function lerp(object, newCFrame, alpha)
  105. return object:lerp(newCFrame, alpha)
  106. end
  107.  
  108. local Directer = Inst("BodyGyro", root)
  109. Directer.MaxTorque = Vec3(0, 0, 0)
  110. Directer.P = 600000
  111. local CPart = Inst("Part")
  112. CPart.Anchored = true
  113. CPart.CanCollide = false
  114. CPart.Locked = true
  115. CPart.Transparency = 1
  116.  
  117. local rainbowmode = false
  118. local chaosmode = false
  119.  
  120. local kan = Instance.new("Sound",tors)
  121. kan.Volume = 0.85
  122. kan.TimePosition = 0
  123. kan.PlaybackSpeed = 1
  124. kan.Pitch = 1
  125. kan.SoundId = "rbxassetid://1255569288"
  126. kan.Name = "wrecked"
  127. kan.Looped = true
  128. kan:Play()
  129.  
  130. local currentThemePlaying = kan.SoundId
  131. local currentPitch = kan.Pitch
  132. local currentVol = kan.Volume
  133. function newTheme(ID,timepos,pitch,vol)
  134. local kanz = kan
  135. --kanz:Stop()
  136. kanz.Volume = vol
  137. --kanz.TimePosition = timepos
  138. kanz.PlaybackSpeed = pitch
  139. kanz.Pitch = pitch
  140. kanz.SoundId = ID
  141. kanz.Name = "wrecked"
  142. kanz.Looped = true
  143. currentThemePlaying = kanz.SoundId
  144. currentVol = kanz.Volume
  145. currentPitch = kanz.Pitch
  146. --kanz:Play()
  147. --coroutine.resume(coroutine.create(function()
  148. --wait(0.05)
  149. --end))
  150. end
  151.  
  152.  
  153. function newThemeCust(ID,timepos,pitch,vol)
  154. local kanz = kan
  155. kanz:Stop()
  156. kanz.Volume = vol
  157. kanz.TimePosition = timepos
  158. kanz.PlaybackSpeed = pitch
  159. kanz.Pitch = pitch
  160. kanz.SoundId = ID
  161. kanz.Name = "wrecked"
  162. kanz.Looped = true
  163. currentThemePlaying = kanz.SoundId
  164. currentVol = kanz.Volume
  165. currentPitch = kanz.Pitch
  166. kanz:Play()
  167. coroutine.resume(coroutine.create(function()
  168. wait(0.05)
  169. end))
  170. end
  171.  
  172. local mutedtog = false
  173.  
  174. function CameraEnshaking(Length,Intensity)
  175. coroutine.resume(coroutine.create(function()
  176. local intensity = 1*Intensity
  177. local rotM = 0.01*Intensity
  178. for i = 0, Length, 0.1 do
  179. swait()
  180. intensity = intensity - 0.05*Intensity/Length
  181. rotM = rotM - 0.0005*Intensity/Length
  182. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  183. 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)
  184. end
  185. Humanoid.CameraOffset = Vec3(0, 0, 0)
  186. end))
  187. end
  188. CamShake=function(Part,Distan,Power,Times)
  189. local de=Part.Position
  190. for i,v in pairs(workspace:children()) do
  191. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  192. for _,c in pairs(v:children()) do
  193. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  194. local Noob=v.Humanoid
  195. if Noob~=nil then
  196. coroutine.resume(coroutine.create(function()
  197. FV = Instance.new("BoolValue", Noob)
  198. FV.Name = "CameraShake"
  199. for ShakeNum=1,Times do
  200. swait()
  201. local ef=Power
  202. if ef>=1 then
  203. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  204. else
  205. ef=Power*10
  206. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  207. end
  208. end
  209. Humanoid.CameraOffset = Vector3.new(0,0,0)
  210. FV:Destroy()
  211. end))
  212. CameraShake(Times, Power, Noob)
  213. end
  214. end
  215. end
  216. end
  217. end
  218. end
  219.  
  220. local toggleTag = true
  221. local bilguit = Instance.new("BillboardGui", hed)
  222. bilguit.Adornee = nil
  223. bilguit.Name = "ModeName"
  224. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  225. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  226. local modet = Instance.new("TextLabel", bilguit)
  227. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  228. modet.FontSize = "Size8"
  229. modet.TextScaled = true
  230. modet.TextTransparency = 0
  231. modet.BackgroundTransparency = 1
  232. modet.TextTransparency = 0
  233. modet.TextStrokeTransparency = 0
  234. modet.Font = "Antique"
  235. modet.TextStrokeColor3 = Color3.new(1,0,0)
  236. modet.TextColor3 = Color3.new(0.25,0,0)
  237. modet.Text = "Hopeless Guest"
  238.  
  239.  
  240. function chatfunc(text,color,typet,font,timeex)
  241. local chat = coroutine.wrap(function()
  242. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  243. Character:FindFirstChild("TalkingBillBoard"):destroy()
  244. end
  245. local naeeym2 = Instance.new("BillboardGui",Character)
  246. naeeym2.Size = UDim2.new(0,100,0,40)
  247. naeeym2.StudsOffset = Vector3.new(0,3,0)
  248. naeeym2.Adornee = Character.Head
  249. naeeym2.Name = "TalkingBillBoard"
  250. local tecks2 = Instance.new("TextLabel",naeeym2)
  251. tecks2.BackgroundTransparency = 1
  252. tecks2.BorderSizePixel = 0
  253. tecks2.Text = ""
  254. tecks2.Font = font
  255. tecks2.TextSize = 30
  256. tecks2.TextStrokeTransparency = 0
  257. tecks2.TextColor3 = color
  258. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  259. tecks2.Size = UDim2.new(1,0,0.5,0)
  260. local tecks3 = Instance.new("TextLabel",naeeym2)
  261. tecks3.BackgroundTransparency = 1
  262. tecks3.BorderSizePixel = 0
  263. tecks3.Text = ""
  264. tecks3.Font = font
  265. tecks3.TextSize = 30
  266. tecks3.TextStrokeTransparency = 0
  267. if typet == "Inverted" then
  268. tecks3.TextColor3 = Color3.new(0,0,0)
  269. tecks3.TextStrokeColor3 = color
  270. elseif typet == "Normal" then
  271. tecks3.TextColor3 = color
  272. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  273. end
  274. tecks3.Size = UDim2.new(1,0,0.5,0)
  275. coroutine.resume(coroutine.create(function()
  276. while true do
  277. swait(1)
  278. if chaosmode == true then
  279. tecks2.TextColor3 = BrickColor.random().Color
  280. tecks3.TextStrokeColor3 = BrickColor.random().Color
  281. end
  282. end
  283. end))
  284. modet.TextTransparency = modet.TextTransparency + 1
  285. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  286. for i = 0, 74*timeex do
  287. swait()
  288. modet.TextTransparency = 1
  289. modet.TextStrokeTransparency = 1
  290. tecks2.Text = text
  291. tecks3.Text = text
  292. end
  293. local randomrot = math.random(1,2)
  294. if randomrot == 1 then
  295. for i = 1, 50 do
  296. swait()
  297. tecks2.Text = text
  298. tecks3.Text = text
  299. modet.TextTransparency = modet.TextTransparency - .02
  300. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  301. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  302. tecks2.TextTransparency = tecks2.TextTransparency + .04
  303. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  304. tecks3.TextTransparency = tecks2.TextTransparency + .04
  305. end
  306. elseif randomrot == 2 then
  307. for i = 1, 50 do
  308. swait()
  309. tecks2.Text = text
  310. tecks3.Text = text
  311. modet.TextTransparency = modet.TextTransparency - .02
  312. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  313. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  314. tecks2.TextTransparency = tecks2.TextTransparency + .04
  315. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  316. tecks3.TextTransparency = tecks2.TextTransparency + .04
  317. end
  318. end
  319. modet.TextTransparency = 0
  320. modet.TextStrokeTransparency = 0
  321. if toggleTag == false then
  322. modet.TextTransparency = 1
  323. modet.TextStrokeTransparency = 1
  324. end
  325. naeeym2:Destroy()
  326. end)
  327. chat()
  328. end
  329.  
  330. function bosschatfunc(text,color,watval)
  331. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  332. coroutine.resume(coroutine.create(function()
  333. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  334. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  335. end
  336. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  337. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  338. scrg.Name = "Dialog"
  339. local txtlb = Instance.new("TextLabel",scrg)
  340. txtlb.Text = ""
  341. txtlb.Font = "Bodoni"
  342. txtlb.TextColor3 = Color3.new(0,0,0)
  343. txtlb.TextStrokeTransparency = 0
  344. txtlb.BackgroundTransparency = 0.75
  345. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  346. txtlb.TextStrokeColor3 = color
  347. txtlb.TextScaled = true
  348. txtlb.Size = UDim2.new(1,0,0.25,0)
  349. txtlb.TextXAlignment = "Left"
  350. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  351. local txtlb2 = Instance.new("TextLabel",scrg)
  352. txtlb2.Text = plr.Name.." The Glitcher:"
  353. txtlb2.Font = "Arcade"
  354. txtlb2.TextColor3 = Color3.new(0,0,0)
  355. txtlb2.TextStrokeTransparency = 0
  356. txtlb2.BackgroundTransparency = 1
  357. txtlb2.TextStrokeColor3 = color
  358. txtlb2.TextSize = 40
  359. txtlb2.Size = UDim2.new(1,0,0.25,0)
  360. txtlb2.TextXAlignment = "Left"
  361. txtlb2.Position = UDim2.new(0,0,1,0)
  362. local fvalen = 0.55
  363. local fval = -0.49
  364. coroutine.resume(coroutine.create(function()
  365. while true do
  366. swait()
  367. if chaosmode == true then
  368. txtlb.Rotation = math.random(-1,1)
  369. txtlb2.Rotation = math.random(-1,1)
  370. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  371. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  372. txtlb.TextStrokeColor3 = BrickColor.random().Color
  373. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  374. end
  375. end
  376. end))
  377. coroutine.resume(coroutine.create(function()
  378. while true do
  379. swait()
  380. if scrg.Parent ~= nil then
  381. fvalen = fvalen - 0.0001
  382. elseif scrg.Parent == nil then
  383. break
  384. end
  385. end
  386. end))
  387. local flol = 1.75
  388. local flil = 1.6
  389. coroutine.resume(coroutine.create(function()
  390. for i = 0, 9 do
  391. swait()
  392. fval = fval + 0.05
  393. flol = flol - 0.1
  394. flil = flil - 0.1
  395. txtlb.Text = ""
  396. txtlb.Position = UDim2.new(0,0,flol,0)
  397. txtlb2.Position = UDim2.new(0,0,flil,0)
  398. end
  399. txtlb.Text = text
  400. wait(watval)
  401. local valinc = 0
  402. for i = 0, 99 do
  403. swait()
  404. valinc = valinc + 0.0001
  405. flol = flol + valinc
  406. flil = flil + valinc
  407. txtlb.Rotation = txtlb.Rotation + valinc*20
  408. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  409. txtlb.Position = UDim2.new(0,0,flol,0)
  410. txtlb2.Position = UDim2.new(0,0,flil,0)
  411. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  412. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  413. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  414. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  415. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  416. end
  417. scrg:Destroy()
  418. end))
  419. end))
  420. end
  421. end
  422.  
  423.  
  424. local Create = LoadLibrary("RbxUtility").Create
  425.  
  426. CFuncs = {
  427. ["Part"] = {
  428. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  429. local Part = Create("Part"){
  430. Parent = Parent,
  431. Reflectance = Reflectance,
  432. Transparency = Transparency,
  433. CanCollide = false,
  434. Locked = true,
  435. BrickColor = BrickColor.new(tostring(BColor)),
  436. Name = Name,
  437. Size = Size,
  438. Material = Material,
  439. }
  440. RemoveOutlines(Part)
  441. return Part
  442. end;
  443. };
  444.  
  445. ["Mesh"] = {
  446. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  447. local Msh = Create(Mesh){
  448. Parent = Part,
  449. Offset = OffSet,
  450. Scale = Scale,
  451. }
  452. if Mesh == "SpecialMesh" then
  453. Msh.MeshType = MeshType
  454. Msh.MeshId = MeshId
  455. end
  456. return Msh
  457. end;
  458. };
  459.  
  460. ["Mesh"] = {
  461. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  462. local Msh = Create(Mesh){
  463. Parent = Part,
  464. Offset = OffSet,
  465. Scale = Scale,
  466. }
  467. if Mesh == "SpecialMesh" then
  468. Msh.MeshType = MeshType
  469. Msh.MeshId = MeshId
  470. end
  471. return Msh
  472. end;
  473. };
  474.  
  475. ["Weld"] = {
  476. Create = function(Parent, Part0, Part1, C0, C1)
  477. local Weld = Create("Weld"){
  478. Parent = Parent,
  479. Part0 = Part0,
  480. Part1 = Part1,
  481. C0 = C0,
  482. C1 = C1,
  483. }
  484. return Weld
  485. end;
  486. };
  487.  
  488. ["Sound"] = {
  489. Create = function(id, par, vol, pit)
  490. coroutine.resume(coroutine.create(function()
  491. local S = Create("Sound"){
  492. Volume = vol,
  493. Name = "EffectSoundo",
  494. Pitch = pit or 1,
  495. SoundId = id,
  496. Parent = par or workspace,
  497. }
  498. wait()
  499. S:play()
  500. game:GetService("Debris"):AddItem(S, 10)
  501. end))
  502. end;
  503. };
  504.  
  505. ["TimeSound"] = {
  506. Create = function(id, par, vol, pit, timepos)
  507. coroutine.resume(coroutine.create(function()
  508. local S = Create("Sound"){
  509. Volume = vol,
  510. Name = "EffectSoundo",
  511. Pitch = pit or 1,
  512. SoundId = id,
  513. TimePosition = timepos,
  514. Parent = par or workspace,
  515. }
  516. wait()
  517. S:play()
  518. game:GetService("Debris"):AddItem(S, 10)
  519. end))
  520. end;
  521. };
  522. ["EchoSound"] = {
  523. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  524. coroutine.resume(coroutine.create(function()
  525. local Sas = Create("Sound"){
  526. Volume = vol,
  527. Name = "EffectSoundo",
  528. Pitch = pit or 1,
  529. SoundId = id,
  530. TimePosition = timepos,
  531. Parent = par or workspace,
  532. }
  533. local E = Create("EchoSoundEffect"){
  534. Delay = echodelay,
  535. Name = "Echo",
  536. Feedback = fedb,
  537. DryLevel = dryl,
  538. Parent = Sas,
  539. }
  540. wait()
  541. Sas:play()
  542. game:GetService("Debris"):AddItem(Sas, delays)
  543. end))
  544. end;
  545. };
  546.  
  547. ["LongSound"] = {
  548. Create = function(id, par, vol, pit)
  549. coroutine.resume(coroutine.create(function()
  550. local S = Create("Sound"){
  551. Volume = vol,
  552. Pitch = pit or 1,
  553. SoundId = id,
  554. Parent = par or workspace,
  555. }
  556. wait()
  557. S:play()
  558. game:GetService("Debris"):AddItem(S, 60)
  559. end))
  560. end;
  561. };
  562.  
  563. ["ParticleEmitter"] = {
  564. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  565. local fp = Create("ParticleEmitter"){
  566. Parent = Parent,
  567. Color = ColorSequence.new(Color1, Color2),
  568. LightEmission = LightEmission,
  569. Size = Size,
  570. Texture = Texture,
  571. Transparency = Transparency,
  572. ZOffset = ZOffset,
  573. Acceleration = Accel,
  574. Drag = Drag,
  575. LockedToPart = LockedToPart,
  576. VelocityInheritance = VelocityInheritance,
  577. EmissionDirection = EmissionDirection,
  578. Enabled = Enabled,
  579. Lifetime = LifeTime,
  580. Rate = Rate,
  581. Rotation = Rotation,
  582. RotSpeed = RotSpeed,
  583. Speed = Speed,
  584. VelocitySpread = VelocitySpread,
  585. }
  586. return fp
  587. end;
  588. };
  589.  
  590. CreateTemplate = {
  591.  
  592. };
  593. }
  594.  
  595.  
  596.  
  597. New = function(Object, Parent, Name, Data)
  598. local Object = Instance.new(Object)
  599. for Index, Value in pairs(Data or {}) do
  600. Object[Index] = Value
  601. end
  602. Object.Parent = Parent
  603. Object.Name = Name
  604. return Object
  605. end
  606. local halocolor = BrickColor.new("Pastel light blue")
  607. local halocolor2 = BrickColor.new("Cool yellow")
  608. local starcolor = BrickColor.new("Bright yellow")
  609. local lunacolor = BrickColor.new("Navy blue")
  610. local lunacolor2 = BrickColor.new("Bright blue")
  611. local wepcolor = BrickColor.new("Really black")
  612. local maincolor = BrickColor.new("Really black")
  613. local m = Instance.new("Model",char)
  614. local m2 = Instance.new("Model",char)
  615. local m3 = Instance.new("Model",char)
  616. local mw1 = Instance.new("Model",char)
  617. local mw2 = Instance.new("Model",char)
  618.  
  619.  
  620. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  621. local gui = it(GuiType)
  622. gui.Parent = parent
  623. gui.Text = text
  624. gui.BackgroundTransparency = backtrans
  625. gui.BackgroundColor3 = backcol
  626. gui.SizeConstraint = "RelativeXY"
  627. gui.TextXAlignment = "Center"
  628. gui.TextYAlignment = "Center"
  629. gui.Position = pos
  630. gui.Size = size
  631. gui.Font = "SourceSans"
  632. gui.FontSize = "Size14"
  633. gui.TextWrapped = false
  634. gui.TextStrokeTransparency = 0
  635. gui.TextColor = BrickColor.new("White")
  636. return gui
  637. end
  638. --------------------------- GUI STUFF
  639. local basgui = it("GuiMain")
  640. basgui.Parent = plr.PlayerGui
  641. basgui.Name = "VISgui"
  642. local fullscreenz = it("Frame")
  643. fullscreenz.Parent = basgui
  644. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  645. fullscreenz.BackgroundTransparency = 1
  646. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  647. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  648. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  649. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  650. imgl2.BackgroundTransparency = 1
  651. imgl2.BorderSizePixel = 0
  652. imgl2.ImageTransparency = 0.5
  653. imgl2.ImageColor3 = Color3.new(1,0,0)
  654. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  655. imgl2.Size = UDim2.new(0,1000,0,1000)
  656. imgl2.Image = "rbxassetid://2325939897"
  657. local techc = imgl2:Clone()
  658. techc.Parent = fullscreenz
  659. techc.ImageTransparency = 0
  660. techc.Size = UDim2.new(0,900,0,900)
  661. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  662. techc.ImageColor3 = Color3.new(1,0,0)
  663. techc.Image = "rbxassetid://2273224484"
  664. local circl = imgl2:Clone()
  665. circl.Parent = fullscreenz
  666. circl.ImageTransparency = 0
  667. circl.Size = UDim2.new(0,550,0,550)
  668. circl.Position = UDim2.new(0.75,25,0.55,25)
  669. circl.ImageColor3 = Color3.new(0,0,0)
  670. circl.Image = "rbxassetid://2312119891"
  671. local circl2 = imgl2:Clone()
  672. circl2.Parent = fullscreenz
  673. circl2.ImageTransparency = 0
  674. circl2.Size = UDim2.new(0,700,0,700)
  675. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  676. circl2.ImageColor3 = Color3.new(1,0,0)
  677. circl2.Image = "rbxassetid://2312119891"
  678. local imgl2b = imgl2:Clone()
  679. imgl2b.Parent = fullscreenz
  680. imgl2b.ImageTransparency = 0
  681. imgl2b.Size = UDim2.new(0,800,0,800)
  682. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  683. imgl2b.ImageColor3 = Color3.new(0,0,0)
  684. local ned = Instance.new("TextLabel",fullscreenz)
  685. ned.ZIndex = 2
  686. ned.Font = "Arcade"
  687. ned.BackgroundTransparency = 1
  688. ned.BorderSizePixel = 0.65
  689. ned.Size = UDim2.new(0.3,0,0.2,0)
  690. ned.Position = UDim2.new(0.7,0,0.8,0)
  691. ned.TextColor3 = BrickColor.new("Really red").Color
  692. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  693. ned.TextScaled = true
  694. ned.TextStrokeTransparency = 0
  695. ned.Text = "Hopeless Guest"
  696. ned.TextSize = 24
  697. ned.Rotation = 1
  698. ned.TextXAlignment = "Right"
  699. ned.TextYAlignment = "Bottom"
  700.  
  701. local extrawingmod1 = Instance.new("Model",char)
  702. local extrawingmod2 = Instance.new("Model",char)
  703.  
  704. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  705. local p = Instance.new("Part")
  706. p.TopSurface = 0
  707. p.BottomSurface = 0
  708. p.Parent = parent
  709. p.Size = Vector3.new(0.1,0.1,0.1)
  710. p.Transparency = transparency
  711. p.Reflectance = reflectance
  712. p.CanCollide = false
  713. p.Locked = true
  714. p.BrickColor = brickcolor
  715. p.Material = material
  716. return p
  717. end
  718.  
  719. function CreateMesh(parent,meshtype,x1,y1,z1)
  720. local mesh = Instance.new("SpecialMesh",parent)
  721. mesh.MeshType = meshtype
  722. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  723. return mesh
  724. end
  725.  
  726. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  727. local mesh = Instance.new("SpecialMesh",parent)
  728. mesh.MeshType = "FileMesh"
  729. mesh.MeshId = meshid
  730. mesh.Scale = Vector3.new(x1,y1,z1)
  731. return mesh
  732. end
  733.  
  734.  
  735. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  736. local mesh = Instance.new("SpecialMesh",parent)
  737. mesh.MeshType = "FileMesh"
  738. mesh.MeshId = meshid
  739. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  740. mesh.Scale = Vector3.new(x1,y1,z1)
  741. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  742. return mesh
  743. end
  744.  
  745. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  746. local weld = Instance.new("Weld")
  747. weld.Parent = parent
  748. weld.Part0 = part0
  749. weld.Part1 = part1
  750. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  751. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  752. return weld
  753. end
  754.  
  755.  
  756. --------------
  757. --------------
  758. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  759. 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))
  760. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  761. 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))
  762.  
  763. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  764. CreateMesh(handle,"Brick",0,0,0)
  765. 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))
  766. local valuaring = 10
  767. for i = 0, 49 do
  768. valuaring = valuaring + 10
  769. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  770. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  771. 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))
  772. end
  773.  
  774. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  775. CreateMesh(handle,"Brick",0,0,0)
  776. 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))
  777. local valuaring = 10
  778. for i = 0, 49 do
  779. valuaring = valuaring + 10
  780. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  781. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  782. 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))
  783. end
  784.  
  785.  
  786. local handle = CreateParta(m,1,1,"Neon",maincolor)
  787. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  788. 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))
  789.  
  790. --- Left wing.
  791.  
  792. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  793. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  794. 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))
  795.  
  796. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  798. 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))
  799. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  801. 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))
  802. A0 = Instance.new('Attachment',wed)
  803. A0.Position = vt(0,0.25,0.25)
  804. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  805. CreateMesh(wed,"Wedge",0.05,0.5,3)
  806. 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))
  807. A1 = Instance.new('Attachment',wed)
  808. A1.Position = vt(0,-0.25,-2)
  809. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  810. CreateMesh(wed,"Wedge",0.05,3,0.5)
  811. 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))
  812.  
  813. tl1 = Instance.new('Trail',wed)
  814. tl1.Attachment0 = A1
  815. tl1.Attachment1 = A0
  816. tl1.Texture = "rbxassetid://2108945559"
  817. tl1.LightEmission = 1
  818. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  819. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  820. tl1.Lifetime = 0.6
  821.  
  822.  
  823. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  824. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  825. 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))
  826.  
  827. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  828. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  829. 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))
  830. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  832. 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))
  833. A0 = Instance.new('Attachment',wed)
  834. A0.Position = vt(0,0.25,0.25)
  835. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,0.5,3)
  837. 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))
  838. A1 = Instance.new('Attachment',wed)
  839. A1.Position = vt(0,-0.25,-2)
  840. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,3,0.5)
  842. 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))
  843.  
  844. tl2 = Instance.new('Trail',wed)
  845. tl2.Attachment0 = A1
  846. tl2.Attachment1 = A0
  847. tl2.Texture = "rbxassetid://2108945559"
  848. tl2.LightEmission = 1
  849. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  850. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  851. tl2.Lifetime = 0.6
  852.  
  853. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  854. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  855. 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))
  856.  
  857. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  858. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  859. 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))
  860. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  861. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  862. 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))
  863. A0 = Instance.new('Attachment',wed)
  864. A0.Position = vt(0,0.25,0.25)
  865. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,3)
  867. 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))
  868. A1 = Instance.new('Attachment',wed)
  869. A1.Position = vt(0,-0.25,-2)
  870. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,3,0.5)
  872. 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))
  873.  
  874. tl3 = Instance.new('Trail',wed)
  875. tl3.Attachment0 = A1
  876. tl3.Attachment1 = A0
  877. tl3.Texture = "rbxassetid://2108945559"
  878. tl3.LightEmission = 1
  879. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  880. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  881. tl3.Lifetime = 0.6
  882.  
  883. tl1.Enabled = false
  884. tl2.Enabled = false
  885. tl3.Enabled = false
  886. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  887. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  888. 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))
  889.  
  890. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  891. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  892. 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))
  893. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  895. 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))
  896. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,3)
  898. 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))
  899. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,3,0.5)
  901. 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))
  902.  
  903. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  904. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  905. 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))
  906.  
  907. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  909. 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))
  910. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. 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))
  913. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,3)
  915. 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))
  916. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,3,0.5)
  918. 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))
  919.  
  920. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  921. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  922. 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))
  923.  
  924. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  926. 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))
  927. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  929. 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))
  930. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,3)
  932. 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))
  933. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05,3,0.5)
  935. 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))
  936.  
  937. -- Right wing.
  938.  
  939. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  940. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  941. 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))
  942.  
  943. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. 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))
  946. A0 = Instance.new('Attachment',wed)
  947. A0.Position = vt(0,0.25,0.25)
  948. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  950. 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))
  951. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  952. CreateMesh(wed,"Wedge",0.05,0.5,3)
  953. 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))
  954. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  955. CreateMesh(wed,"Wedge",0.05,3,0.5)
  956. 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))
  957. A1 = Instance.new('Attachment',wed)
  958. A1.Position = vt(0,2,0.25)
  959.  
  960. tr1 = Instance.new('Trail',wed)
  961. tr1.Attachment0 = A1
  962. tr1.Attachment1 = A0
  963. tr1.Texture = "rbxassetid://2108945559"
  964. tr1.LightEmission = 1
  965. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  966. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  967. tr1.Lifetime = 0.6
  968.  
  969. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  970. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  971. 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))
  972.  
  973. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. 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))
  976. A0 = Instance.new('Attachment',wed)
  977. A0.Position = vt(0,0.25,0.25)
  978. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  980. 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))
  981. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,0.5,3)
  983. 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))
  984. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,3,0.5)
  986. 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))
  987. A1 = Instance.new('Attachment',wed)
  988. A1.Position = vt(0,2,0.25)
  989.  
  990. tr2 = Instance.new('Trail',wed)
  991. tr2.Attachment0 = A1
  992. tr2.Attachment1 = A0
  993. tr2.Texture = "rbxassetid://2108945559"
  994. tr2.LightEmission = 1
  995. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  996. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  997. tr2.Lifetime = 0.6
  998.  
  999. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1000. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1001. 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))
  1002.  
  1003. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1004. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1005. 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))
  1006. A0 = Instance.new('Attachment',wed)
  1007. A0.Position = vt(0,0.25,0.25)
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1010. 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))
  1011. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1013. 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))
  1014. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1015. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1016. 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))
  1017. A1 = Instance.new('Attachment',wed)
  1018. A1.Position = vt(0,2,0.25)
  1019.  
  1020. tr3 = Instance.new('Trail',wed)
  1021. tr3.Attachment0 = A1
  1022. tr3.Attachment1 = A0
  1023. tr3.Texture = "rbxassetid://2108945559"
  1024. tr3.LightEmission = 1
  1025. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1026. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1027. tr3.Lifetime = 0.6
  1028.  
  1029.  
  1030. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1031. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1032. 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))
  1033.  
  1034. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1036. 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))
  1037. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1038. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1039. 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))
  1040. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1042. 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))
  1043. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1045. 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))
  1046.  
  1047. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1048. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1049. 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))
  1050.  
  1051. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1052. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1053. 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))
  1054. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1055. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1056. 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))
  1057. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1058. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1059. 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))
  1060. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1062. 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))
  1063.  
  1064. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1065. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1066. 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))
  1067.  
  1068. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1070. 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))
  1071. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1073. 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))
  1074. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1076. 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))
  1077. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1079. 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))
  1080.  
  1081. --HERES THE RING
  1082.  
  1083.  
  1084. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1085. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1086. 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))
  1087. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1088. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1089. 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))
  1090. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1091. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1092. 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))
  1093.  
  1094.  
  1095. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1096. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1097. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1102.  
  1103.  
  1104.  
  1105. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1106. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1107. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1112.  
  1113. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1114. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1115. 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))
  1116.  
  1117. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1118. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1119. 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))
  1120. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1121. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1122. 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))]]--
  1123.  
  1124. --- second ring
  1125.  
  1126.  
  1127. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1128. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1129. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1134.  
  1135.  
  1136.  
  1137. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1138. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1139. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144.  
  1145. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1146. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1147. 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))
  1148.  
  1149. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1150. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1151. 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))
  1152. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1153. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1154. 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))
  1155.  
  1156.  
  1157.  
  1158. for i, v in pairs(m:GetChildren()) do
  1159. if v:IsA("Part") then
  1160. v.BrickColor = BrickColor.new("Really black")
  1161. v.Material = "Glass"
  1162. end
  1163. end
  1164. for i, v in pairs(m2:GetChildren()) do
  1165. if v:IsA("Part") then
  1166. v.BrickColor = BrickColor.new("Crimson")
  1167. v.Material = "Granite"
  1168. end
  1169. end
  1170. for i, v in pairs(m3:GetChildren()) do
  1171. if v:IsA("Part") then
  1172. v.BrickColor = BrickColor.new("Really red")
  1173. v.Material = "Neon"
  1174. end
  1175. end
  1176. for i, v in pairs(mw2:GetChildren()) do
  1177. if v:IsA("Part") then
  1178. v.BrickColor = BrickColor.new("Really red")
  1179. v.Material = "Neon"
  1180. end
  1181. end
  1182. for i, v in pairs(mw1:GetChildren()) do
  1183. if v:IsA("Part") then
  1184. v.Transparency = 1
  1185. v.BrickColor = BrickColor.new("Really red")
  1186. v.Material = "Neon"
  1187. end
  1188. end
  1189. for i, v in pairs(extrawingmod1:GetChildren()) do
  1190. if v:IsA("Part") then
  1191. v.Transparency = 1
  1192. v.BrickColor = BrickColor.new("White")
  1193. v.Material = "Neon"
  1194. end
  1195. end
  1196. for i, v in pairs(extrawingmod2:GetChildren()) do
  1197. if v:IsA("Part") then
  1198. v.Transparency = 1
  1199. v.BrickColor = BrickColor.new("White")
  1200. v.Material = "Neon"
  1201. end
  1202. end
  1203. local MAINRUINCOLOR = BrickColor.new("Really red")
  1204. ------
  1205.  
  1206.  
  1207. function RemoveOutlines(part)
  1208. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1209. end
  1210. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1211. local Part = Create("Part")({
  1212. Parent = Parent,
  1213. Reflectance = Reflectance,
  1214. Transparency = Transparency,
  1215. CanCollide = false,
  1216. Locked = true,
  1217. BrickColor = BrickColor.new(tostring(BColor)),
  1218. Name = Name,
  1219. Size = Size,
  1220. Material = Material
  1221. })
  1222. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1223. RemoveOutlines(Part)
  1224. return Part
  1225. end
  1226. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1227. local Msh = Create(Mesh)({
  1228. Parent = Part,
  1229. Offset = OffSet,
  1230. Scale = Scale
  1231. })
  1232. if Mesh == "SpecialMesh" then
  1233. Msh.MeshType = MeshType
  1234. Msh.MeshId = MeshId
  1235. end
  1236. return Msh
  1237. end
  1238. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1239. local Weld = Create("Weld")({
  1240. Parent = Parent,
  1241. Part0 = Part0,
  1242. Part1 = Part1,
  1243. C0 = C0,
  1244. C1 = C1
  1245. })
  1246. return Weld
  1247. end
  1248.  
  1249. Player = plr
  1250. Character=Player.Character
  1251. PlayerGui=Player.PlayerGui
  1252. Backpack=Player.Backpack
  1253. Torso=Character.Torso
  1254. Head=Character.Head
  1255. Humanoid=Character.Humanoid
  1256. m=Instance.new('Model',Character)
  1257. LeftArm=Character["Left Arm"]
  1258. LeftLeg=Character["Left Leg"]
  1259. RightArm=Character["Right Arm"]
  1260. RightLeg=Character["Right Leg"]
  1261. LS=Torso["Left Shoulder"]
  1262. LH=Torso["Left Hip"]
  1263. RS=Torso["Right Shoulder"]
  1264. RH=Torso["Right Hip"]
  1265. Face = Head.face
  1266. Neck=Torso.Neck
  1267. it=Instance.new
  1268. attacktype=1
  1269. vt=Vector3.new
  1270. cf=CFrame.new
  1271. euler=CFrame.fromEulerAnglesXYZ
  1272. angles=CFrame.Angles
  1273. cloaked=false
  1274. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1275. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1276. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1277. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1278. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1279. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1280. RootPart=Character.HumanoidRootPart
  1281. RootJoint=RootPart.RootJoint
  1282. RootCF=euler(-1.57,0,3.14)
  1283. attack = false
  1284. attackdebounce = false
  1285. deb=false
  1286. equipped=true
  1287. hand=false
  1288. combo=0
  1289. mana=0
  1290. trispeed=.2
  1291. attackmode='none'
  1292. local idle=0
  1293. local Anim="Idle"
  1294. local Effects={}
  1295. local gun=false
  1296. local shoot=false
  1297. local sine = 0
  1298. local change = 1
  1299.  
  1300. function RecolorTextAndRename(name,col1,col2,font)
  1301. modet.TextStrokeColor3 = col2
  1302. modet.TextColor3 = col1
  1303. modet.Font = font
  1304. modet.Text = name
  1305. techc.ImageColor3 = col2
  1306. circl.ImageColor3 = col2
  1307. circl2.ImageColor3 = col1
  1308. imgl2.ImageColor3 = col1
  1309. imgl2b.ImageColor3 = col2
  1310. ned.Text = name
  1311. ned.TextColor3 = col1
  1312. ned.TextStrokeColor3 = col2
  1313. end
  1314. --save shoulders
  1315. RSH, LSH=nil, nil
  1316. --welds
  1317. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1318. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1319. LH=Torso["Left Hip"]
  1320. RH=Torso["Right Hip"]
  1321. TorsoColor=Torso.BrickColor
  1322. function NoOutline(Part)
  1323. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1324. end
  1325. ch=Character
  1326. RSH=ch.Torso["Right Shoulder"]
  1327. LSH=ch.Torso["Left Shoulder"]
  1328. --
  1329. RSH.Parent=nil
  1330. LSH.Parent=nil
  1331. --
  1332. RW.Name="Right Shoulder"
  1333. RW.Part0=ch.Torso
  1334. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1335. RW.C1=cf(0, 0.5, 0)
  1336. RW.Part1=ch["Right Arm"]
  1337. RW.Parent=ch.Torso
  1338. --
  1339. LW.Name="Left Shoulder"
  1340. LW.Part0=ch.Torso
  1341. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1342. LW.C1=cf(0, 0.5, 0)
  1343. LW.Part1=ch["Left Arm"]
  1344. LW.Parent=ch.Torso
  1345.  
  1346. local Stats=Instance.new("BoolValue")
  1347. Stats.Name="Stats"
  1348. Stats.Parent=Character
  1349. local Atk=Instance.new("NumberValue")
  1350. Atk.Name="Damage"
  1351. Atk.Parent=Stats
  1352. Atk.Value=1
  1353. local Def=Instance.new("NumberValue")
  1354. Def.Name="Defense"
  1355. Def.Parent=Stats
  1356. Def.Value=1
  1357. local Speed=Instance.new("NumberValue")
  1358. Speed.Name="Speed"
  1359. Speed.Parent=Stats
  1360. Speed.Value=1
  1361. local Mvmt=Instance.new("NumberValue")
  1362. Mvmt.Name="Movement"
  1363. Mvmt.Parent=Stats
  1364. Mvmt.Value=1
  1365.  
  1366. local donum=0
  1367. local ast = {744586075,385254610}
  1368.  
  1369. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1370. local fp=it("Part")
  1371. fp.formFactor=formfactor
  1372. fp.Parent=parent
  1373. fp.Reflectance=reflectance
  1374. fp.Transparency=transparency
  1375. fp.CanCollide=false
  1376. fp.Locked=true
  1377. fp.BrickColor=brickcolor
  1378. fp.Name=name
  1379. fp.Size=size
  1380. fp.Position=Torso.Position
  1381. NoOutline(fp)
  1382. fp.Material="SmoothPlastic"
  1383. fp:BreakJoints()
  1384. return fp
  1385. end
  1386.  
  1387. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1388. local mesh=it(Mesh)
  1389. mesh.Parent=part
  1390. if Mesh=="SpecialMesh" then
  1391. mesh.MeshType=meshtype
  1392. if meshid~="nil" then
  1393. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1394. end
  1395. end
  1396. mesh.Offset=offset
  1397. mesh.Scale=scale
  1398. return mesh
  1399. end
  1400.  
  1401. function weld(parent,part0,part1,c0)
  1402. local weld=it("Weld")
  1403. weld.Parent=parent
  1404. weld.Part0=part0
  1405. weld.Part1=part1
  1406. weld.C0=c0
  1407. return weld
  1408. end
  1409.  
  1410. local Color1=Torso.BrickColor
  1411.  
  1412. local bodvel=Instance.new("BodyVelocity")
  1413. local bg=Instance.new("BodyGyro")
  1414.  
  1415. --------- SazEreno's Artificial HB --------------
  1416. ArtificialHB = Instance.new("BindableEvent", script)
  1417. ArtificialHB.Name = "ArtificialHB"
  1418.  
  1419. script:WaitForChild("ArtificialHB")
  1420. Frame_Speed = 1 / 60
  1421. frame = Frame_Speed
  1422. tf = 0
  1423. allowframeloss = false
  1424. tossremainder = false
  1425. lastframe = tick()
  1426. script.ArtificialHB:Fire()
  1427.  
  1428. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1429. tf = tf + s
  1430. if tf >= frame then
  1431. if allowframeloss then
  1432. script.ArtificialHB:Fire()
  1433. lastframe = tick()
  1434. else
  1435. for i = 1, math.floor(tf / frame) do
  1436. script.ArtificialHB:Fire()
  1437. end
  1438. lastframe = tick()
  1439. end
  1440. if tossremainder then
  1441. tf = 0
  1442. else
  1443. tf = tf - frame * math.floor(tf / frame)
  1444. end
  1445. end
  1446. end)
  1447.  
  1448. ------------------
  1449. function swait(num)
  1450. if num == 0 or num == nil then
  1451. ArtificialHB.Event:wait()
  1452. else
  1453. for i = 1, num do
  1454. ArtificialHB.Event:wait()
  1455. end
  1456. end
  1457. end
  1458. -------- RAINBOW LEAVE IT TO ME
  1459. local r = 255
  1460. local g = 0
  1461. local b = 0
  1462. coroutine.resume(coroutine.create(function()
  1463. while wait() do
  1464. for i = 0, 254/5 do
  1465. swait()
  1466. g = g + 5
  1467. end
  1468. for i = 0, 254/5 do
  1469. swait()
  1470. r = r - 5
  1471. end
  1472. for i = 0, 254/5 do
  1473. swait()
  1474. b = b + 5
  1475. end
  1476. for i = 0, 254/5 do
  1477. swait()
  1478. g = g - 5
  1479. end
  1480. for i = 0, 254/5 do
  1481. swait()
  1482. r = r + 5
  1483. end
  1484. for i = 0, 254/5 do
  1485. swait()
  1486. b = b - 5
  1487. end
  1488. end
  1489. end))
  1490.  
  1491.  
  1492. so = function(id,par,vol,pit)
  1493. coroutine.resume(coroutine.create(function()
  1494. local sou = Instance.new("Sound",par or workspace)
  1495. sou.Volume=vol
  1496. sou.Pitch=pit or 1
  1497. sou.SoundId=id
  1498. swait()
  1499. sou:play()
  1500. game:GetService("Debris"):AddItem(sou,6)
  1501. end))
  1502. end
  1503.  
  1504. function clerp(a,b,t)
  1505. local qa = {QuaternionFromCFrame(a)}
  1506. local qb = {QuaternionFromCFrame(b)}
  1507. local ax, ay, az = a.x, a.y, a.z
  1508. local bx, by, bz = b.x, b.y, b.z
  1509. local _t = 1-t
  1510. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1511. end
  1512.  
  1513. function QuaternionFromCFrame(cf)
  1514. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1515. local trace = m00 + m11 + m22
  1516. if trace > 0 then
  1517. local s = math.sqrt(1 + trace)
  1518. local recip = 0.5/s
  1519. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1520. else
  1521. local i = 0
  1522. if m11 > m00 then
  1523. i = 1
  1524. end
  1525. if m22 > (i == 0 and m00 or m11) then
  1526. i = 2
  1527. end
  1528. if i == 0 then
  1529. local s = math.sqrt(m00-m11-m22+1)
  1530. local recip = 0.5/s
  1531. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1532. elseif i == 1 then
  1533. local s = math.sqrt(m11-m22-m00+1)
  1534. local recip = 0.5/s
  1535. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1536. elseif i == 2 then
  1537. local s = math.sqrt(m22-m00-m11+1)
  1538. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1539. end
  1540. end
  1541. end
  1542.  
  1543. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1544. local xs, ys, zs = x + x, y + y, z + z
  1545. local wx, wy, wz = w*xs, w*ys, w*zs
  1546. local xx = x*xs
  1547. local xy = x*ys
  1548. local xz = x*zs
  1549. local yy = y*ys
  1550. local yz = y*zs
  1551. local zz = z*zs
  1552. 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))
  1553. end
  1554.  
  1555. function QuaternionSlerp(a, b, t)
  1556. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1557. local startInterp, finishInterp;
  1558. if cosTheta >= 0.0001 then
  1559. if (1 - cosTheta) > 0.0001 then
  1560. local theta = math.acos(cosTheta)
  1561. local invSinTheta = 1/math.sin(theta)
  1562. startInterp = math.sin((1-t)*theta)*invSinTheta
  1563. finishInterp = math.sin(t*theta)*invSinTheta
  1564. else
  1565. startInterp = 1-t
  1566. finishInterp = t
  1567. end
  1568. else
  1569. if (1+cosTheta) > 0.0001 then
  1570. local theta = math.acos(-cosTheta)
  1571. local invSinTheta = 1/math.sin(theta)
  1572. startInterp = math.sin((t-1)*theta)*invSinTheta
  1573. finishInterp = math.sin(t*theta)*invSinTheta
  1574. else
  1575. startInterp = t-1
  1576. finishInterp = t
  1577. end
  1578. end
  1579. 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
  1580. end
  1581.  
  1582. local function CFrameFromTopBack(at, top, back)
  1583. local right = top:Cross(back)
  1584. return CFrame.new(at.x, at.y, at.z,
  1585. right.x, top.x, back.x,
  1586. right.y, top.y, back.y,
  1587. right.z, top.z, back.z)
  1588. end
  1589.  
  1590. function Triangle(a, b, c)
  1591. local edg1 = (c-a):Dot((b-a).unit)
  1592. local edg2 = (a-b):Dot((c-b).unit)
  1593. local edg3 = (b-c):Dot((a-c).unit)
  1594. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1595. a, b, c = a, b, c
  1596. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1597. a, b, c = b, c, a
  1598. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1599. a, b, c = c, a, b
  1600. else
  1601. assert(false, "unreachable")
  1602. end
  1603.  
  1604. local len1 = (c-a):Dot((b-a).unit)
  1605. local len2 = (b-a).magnitude - len1
  1606. local width = (a + (b-a).unit*len1 - c).magnitude
  1607.  
  1608. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1609.  
  1610. local list = {}
  1611.  
  1612. if len1 > 0.01 then
  1613. local w1 = Instance.new('WedgePart', m)
  1614. game:GetService("Debris"):AddItem(w1,5)
  1615. w1.Material = "SmoothPlastic"
  1616. w1.FormFactor = 'Custom'
  1617. w1.BrickColor = BrickColor.new("Really red")
  1618. w1.Transparency = 0
  1619. w1.Reflectance = 0
  1620. w1.Material = "SmoothPlastic"
  1621. w1.CanCollide = false
  1622. local l1 = Instance.new("PointLight",w1)
  1623. l1.Color = Color3.new(170,0,0)
  1624. NoOutline(w1)
  1625. local sz = Vector3.new(0.2, width, len1)
  1626. w1.Size = sz
  1627. local sp = Instance.new("SpecialMesh",w1)
  1628. sp.MeshType = "Wedge"
  1629. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1630. w1:BreakJoints()
  1631. w1.Anchored = true
  1632. w1.Parent = workspace
  1633. w1.Transparency = 0.7
  1634. table.insert(Effects,{w1,"Disappear",.01})
  1635. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1636. table.insert(list,w1)
  1637. end
  1638.  
  1639. if len2 > 0.01 then
  1640. local w2 = Instance.new('WedgePart', m)
  1641. game:GetService("Debris"):AddItem(w2,5)
  1642. w2.Material = "SmoothPlastic"
  1643. w2.FormFactor = 'Custom'
  1644. w2.BrickColor = BrickColor.new("Really red")
  1645. w2.Transparency = 0
  1646. w2.Reflectance = 0
  1647. w2.Material = "SmoothPlastic"
  1648. w2.CanCollide = false
  1649. local l2 = Instance.new("PointLight",w2)
  1650. l2.Color = Color3.new(170,0,0)
  1651. NoOutline(w2)
  1652. local sz = Vector3.new(0.2, width, len2)
  1653. w2.Size = sz
  1654. local sp = Instance.new("SpecialMesh",w2)
  1655. sp.MeshType = "Wedge"
  1656. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1657. w2:BreakJoints()
  1658. w2.Anchored = true
  1659. w2.Parent = workspace
  1660. w2.Transparency = 0.7
  1661. table.insert(Effects,{w2,"Disappear",.01})
  1662. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1663. table.insert(list,w2)
  1664. end
  1665. return unpack(list)
  1666. end
  1667.  
  1668.  
  1669. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1670. if hit.Parent == nil then
  1671. return
  1672. end
  1673. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1674. for _, v in pairs(hit.Parent:children()) do
  1675. if v:IsA("Humanoid") then
  1676. h = v
  1677. end
  1678. end
  1679. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1680. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1681. return
  1682. end
  1683. local c = Create("ObjectValue")({
  1684. Name = "creator",
  1685. Value = game:GetService("Players").yjw0592,
  1686. Parent = h
  1687. })
  1688. game:GetService("Debris"):AddItem(c, 0.5)
  1689. if HitSound ~= nil and HitPitch ~= nil then
  1690. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1691. end
  1692. local Damage = math.random(minim, maxim)
  1693. local blocked = false
  1694. local block = hit.Parent:findFirstChild("Block")
  1695. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1696. blocked = true
  1697. block.Value = block.Value - 1
  1698. print(block.Value)
  1699. end
  1700. if blocked == false then
  1701. HitHealth = h.Health
  1702. h.MaxHealth = 100
  1703. h.Health = h.Health - Damage
  1704. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1705. print("gained kill")
  1706. dmg(h.Parent)
  1707. end
  1708. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1709. else
  1710. h.Health = h.Health - Damage / 2
  1711. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1712. end
  1713. if Type == "Knockdown" then
  1714. local hum = hit.Parent.Humanoid
  1715. hum.PlatformStand = true
  1716. coroutine.resume(coroutine.create(function(HHumanoid)
  1717. swait(1)
  1718. HHumanoid.PlatformStand = false
  1719. end), hum)
  1720. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1721. local bodvol = Create("BodyVelocity")({
  1722. velocity = angle * knockback,
  1723. P = 5000,
  1724. maxForce = Vector3.new(8000, 8000, 8000),
  1725. Parent = hit
  1726. })
  1727. local rl = Create("BodyAngularVelocity")({
  1728. P = 3000,
  1729. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1730. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1731. Parent = hit
  1732. })
  1733. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1734. game:GetService("Debris"):AddItem(rl, 0.5)
  1735. elseif Type == "Normal" then
  1736. local vp = Create("BodyVelocity")({
  1737. P = 500,
  1738. maxForce = Vector3.new(math.huge, 0, math.huge),
  1739. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1740. })
  1741. if knockback > 0 then
  1742. vp.Parent = hit.Parent.Head
  1743. end
  1744. game:GetService("Debris"):AddItem(vp, 0.5)
  1745. elseif Type == "Up" then
  1746. local bodyVelocity = Create("BodyVelocity")({
  1747. velocity = Vector3.new(0, 20, 0),
  1748. P = 5000,
  1749. maxForce = Vector3.new(8000, 8000, 8000),
  1750. Parent = hit
  1751. })
  1752. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1753. local bodyVelocity = Create("BodyVelocity")({
  1754. velocity = Vector3.new(0, 20, 0),
  1755. P = 5000,
  1756. maxForce = Vector3.new(8000, 8000, 8000),
  1757. Parent = hit
  1758. })
  1759. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1760. elseif Type == "Leech" then
  1761. local hum = hit.Parent.Humanoid
  1762. if hum ~= nil then
  1763. for i = 0, 2 do
  1764. 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)
  1765. end
  1766. Humanoid.Health = Humanoid.Health + 10
  1767. end
  1768. elseif Type == "UpKnock" then
  1769. local hum = hit.Parent.Humanoid
  1770. hum.PlatformStand = true
  1771. if hum ~= nil then
  1772. hitr = true
  1773. end
  1774. coroutine.resume(coroutine.create(function(HHumanoid)
  1775. swait(5)
  1776. HHumanoid.PlatformStand = false
  1777. hitr = false
  1778. end), hum)
  1779. local bodyVelocity = Create("BodyVelocity")({
  1780. velocity = Vector3.new(0, 20, 0),
  1781. P = 5000,
  1782. maxForce = Vector3.new(8000, 8000, 8000),
  1783. Parent = hit
  1784. })
  1785. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1786. local bodyVelocity = Create("BodyVelocity")({
  1787. velocity = Vector3.new(0, 20, 0),
  1788. P = 5000,
  1789. maxForce = Vector3.new(8000, 8000, 8000),
  1790. Parent = hit
  1791. })
  1792. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1793. elseif Type == "Snare" then
  1794. local bp = Create("BodyPosition")({
  1795. P = 2000,
  1796. D = 100,
  1797. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1798. position = hit.Parent.Torso.Position,
  1799. Parent = hit.Parent.Torso
  1800. })
  1801. game:GetService("Debris"):AddItem(bp, 1)
  1802. elseif Type == "Slashnare" then
  1803. 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)
  1804. for i = 1, math.random(4, 5) do
  1805. 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)
  1806. end
  1807. local bp = Create("BodyPosition")({
  1808. P = 2000,
  1809. D = 100,
  1810. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1811. position = hit.Parent.Torso.Position,
  1812. Parent = hit.Parent.Torso
  1813. })
  1814. game:GetService("Debris"):AddItem(bp, 1)
  1815. elseif Type == "Spike" then
  1816. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1817. local bp = Create("BodyPosition")({
  1818. P = 2000,
  1819. D = 100,
  1820. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1821. position = hit.Parent.Torso.Position,
  1822. Parent = hit.Parent.Torso
  1823. })
  1824. game:GetService("Debris"):AddItem(bp, 1)
  1825. elseif Type == "Freeze" then
  1826. local BodPos = Create("BodyPosition")({
  1827. P = 50000,
  1828. D = 1000,
  1829. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1830. position = hit.Parent.Torso.Position,
  1831. Parent = hit.Parent.Torso
  1832. })
  1833. local BodGy = Create("BodyGyro")({
  1834. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1835. P = 20000,
  1836. Parent = hit.Parent.Torso,
  1837. cframe = hit.Parent.Torso.CFrame
  1838. })
  1839. hit.Parent.Torso.Anchored = true
  1840. coroutine.resume(coroutine.create(function(Part)
  1841. swait(1.5)
  1842. Part.Anchored = false
  1843. end), hit.Parent.Torso)
  1844. game:GetService("Debris"):AddItem(BodPos, 3)
  1845. game:GetService("Debris"):AddItem(BodGy, 3)
  1846. end
  1847. local debounce = Create("BoolValue")({
  1848. Name = "DebounceHit",
  1849. Parent = hit.Parent,
  1850. Value = true
  1851. })
  1852. game:GetService("Debris"):AddItem(debounce, Delay)
  1853. c = Instance.new("ObjectValue")
  1854. c.Name = "creator"
  1855. c.Value = Player
  1856. c.Parent = h
  1857. game:GetService("Debris"):AddItem(c, 0.5)
  1858. end
  1859. end
  1860. function ShowDamage(Pos, Text, Time, Color)
  1861. local Rate = 0.03333333333333333
  1862. local Pos = Pos or Vector3.new(0, 0, 0)
  1863. local Text = Text or ""
  1864. local Time = Time or 2
  1865. local Color = Color or Color3.new(1, 0, 1)
  1866. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1867. EffectPart.Anchored = true
  1868. local BillboardGui = Create("BillboardGui")({
  1869. Size = UDim2.new(3, 0, 3, 0),
  1870. Adornee = EffectPart,
  1871. Parent = EffectPart
  1872. })
  1873. local TextLabel = Create("TextLabel")({
  1874. BackgroundTransparency = 1,
  1875. Size = UDim2.new(1, 0, 1, 0),
  1876. Text = Text,
  1877. TextColor3 = Color,
  1878. TextScaled = true,
  1879. Font = Enum.Font.ArialBold,
  1880. Parent = BillboardGui
  1881. })
  1882. game.Debris:AddItem(EffectPart, Time + 0.1)
  1883. EffectPart.Parent = game:GetService("Workspace")
  1884. delay(0, function()
  1885. local Frames = Time / Rate
  1886. for Frame = 1, Frames do
  1887. wait(Rate)
  1888. local Percent = Frame / Frames
  1889. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1890. TextLabel.TextTransparency = Percent
  1891. end
  1892. if EffectPart and EffectPart.Parent then
  1893. EffectPart:Destroy()
  1894. end
  1895. end)
  1896. end
  1897. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1898. for _, c in pairs(workspace:children()) do
  1899. local hum = c:findFirstChildOfClass("Humanoid")
  1900. if hum ~= nil then
  1901. local head = c:findFirstChild("Head")
  1902. if head ~= nil then
  1903. local targ = head.Position - Part.Position
  1904. local mag = targ.magnitude
  1905. if magni >= mag and c.Name ~= Player.Name then
  1906. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1907. end
  1908. end
  1909. end
  1910. end
  1911. end
  1912.  
  1913. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1914. for _, c in pairs(workspace:children()) do
  1915. local hum = c:findFirstChild("Humanoid")
  1916. if hum ~= nil then
  1917. local head = c:findFirstChild("Torso")
  1918. if head ~= nil then
  1919. local targ = head.Position - Part.Position
  1920. local mag = targ.magnitude
  1921. if magni >= mag and c.Name ~= Player.Name then
  1922. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1923. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1924. end
  1925. end
  1926. end
  1927. end
  1928. end
  1929.  
  1930. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1931. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1932. end
  1933.  
  1934. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1935. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1936. prt.Anchored=true
  1937. prt.CFrame=cframe
  1938. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1939. --http://www.roblox.com/asset/?id=4770560
  1940. game:GetService("Debris"):AddItem(prt,2)
  1941. CF=prt.CFrame
  1942. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1943. for i=0,1,0.2 do
  1944. wait()
  1945. Part.CFrame=CF*cf(0,0,-0.4)
  1946. end
  1947. for i=0,1,delay do
  1948. wait()
  1949. --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)
  1950. Mesh.Scale=Mesh.Scale
  1951. end
  1952. for i=0,1,0.1 do
  1953. wait()
  1954. Part.Transparency=i
  1955. end
  1956. Part.Parent=nil
  1957. end),prt,msh,CF)
  1958. end
  1959.  
  1960. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1961. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1962. prt.Anchored=true
  1963. prt.Material = "Neon"
  1964. prt.CFrame=cframe
  1965. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1966. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1967. game:GetService("Debris"):AddItem(prt,5)
  1968. coroutine.resume(coroutine.create(function(Part,Mesh)
  1969. for i=0,1,delay do
  1970. swait()
  1971. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1972. Part.Transparency=i
  1973. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1974. end
  1975. Part.Parent=nil
  1976. end),prt,msh)
  1977. end
  1978.  
  1979. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1980. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1981. prt.Anchored=true
  1982. prt.Material = "Neon"
  1983. prt.CFrame=cframe
  1984. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1985. game:GetService("Debris"):AddItem(prt,5)
  1986. coroutine.resume(coroutine.create(function(Part,Mesh)
  1987. local rtype = rottype
  1988. for i=0,1,delay do
  1989. swait()
  1990. if rtype == 1 then
  1991. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1992. elseif rtype == 2 then
  1993. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1994. end
  1995. Part.Transparency=i
  1996. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1997. end
  1998. Part.Parent=nil
  1999. end),prt,msh)
  2000. end
  2001.  
  2002. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2003. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2004. prt.Anchored=true
  2005. prt.CFrame=cframe
  2006. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2007. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2008. game:GetService("Debris"):AddItem(prt,5)
  2009. coroutine.resume(coroutine.create(function(Part,Mesh)
  2010. for i=0,1,delay do
  2011. wait()
  2012. Part.Transparency=i
  2013. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2014. end
  2015. Part.Parent=nil
  2016. end),prt,msh)
  2017. end
  2018.  
  2019. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2020. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2021. prt.Anchored=true
  2022. prt.Material = "Neon"
  2023. prt.CFrame=cframe
  2024. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2025. game:GetService("Debris"):AddItem(prt,5)
  2026. coroutine.resume(coroutine.create(function(Part,Mesh)
  2027. local rtype = rottype
  2028. for i=0,1,delay do
  2029. swait()
  2030. if rtype == 1 then
  2031. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2032. elseif rtype == 2 then
  2033. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2034. end
  2035. Part.Transparency=i
  2036. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2037. end
  2038. Part.Parent=nil
  2039. end),prt,msh)
  2040. end
  2041.  
  2042. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2043. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2044. prt.Anchored=true
  2045. prt.Material = "Neon"
  2046. prt.CFrame=cframe
  2047. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2048. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2049. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2050. game:GetService("Debris"):AddItem(prt,5)
  2051. coroutine.resume(coroutine.create(function(Part,Mesh)
  2052. local rtype = rottype
  2053. for i=0,1,delay do
  2054. swait()
  2055. if rtype == 1 then
  2056. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2057. elseif rtype == 2 then
  2058. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2059. end
  2060. dec.Transparency=i
  2061. dec2.Transparency=i
  2062. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2063. end
  2064. Part.Parent=nil
  2065. end),prt,msh)
  2066. end
  2067.  
  2068. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2069. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2070. prt.Anchored=true
  2071. prt.Material = "Neon"
  2072. prt.CFrame=cframe
  2073. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2074. game:GetService("Debris"):AddItem(prt,5)
  2075. coroutine.resume(coroutine.create(function(Part,Mesh)
  2076. local rtype = rottype
  2077. for i=0,1,delay do
  2078. swait()
  2079. if rtype == 1 then
  2080. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2081. elseif rtype == 2 then
  2082. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2083. end
  2084. prt.Transparency=i
  2085. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2086. end
  2087. Part.Parent=nil
  2088. end),prt,msh)
  2089. end
  2090.  
  2091. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2092. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2093. prt.Anchored=true
  2094. prt.Material = "Neon"
  2095. prt.CFrame=cframe
  2096. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2097. game:GetService("Debris"):AddItem(prt,5)
  2098. coroutine.resume(coroutine.create(function(Part,Mesh)
  2099. local rtype = rottype
  2100. for i=0,1,delay do
  2101. swait()
  2102. if rtype == 1 then
  2103. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2104. elseif rtype == 2 then
  2105. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2106. end
  2107. prt.Transparency=i
  2108. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2109. end
  2110. Part.Parent=nil
  2111. end),prt,msh)
  2112. end
  2113.  
  2114. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2115. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2116. prt.Anchored=true
  2117. prt.Material = "Neon"
  2118. prt.CFrame=cframe
  2119. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2120. game:GetService("Debris"):AddItem(prt,5)
  2121. coroutine.resume(coroutine.create(function(Part,Mesh)
  2122. local rtype = rottype
  2123. for i=0,1,delay do
  2124. swait()
  2125. if rtype == 1 then
  2126. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2127. elseif rtype == 2 then
  2128. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2129. end
  2130. prt.Transparency=i
  2131. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2132. end
  2133. Part.Parent=nil
  2134. end),prt,msh)
  2135. end
  2136.  
  2137. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2138. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2139. prt.Anchored=true
  2140. prt.Material = "Neon"
  2141. prt.CFrame=cframe
  2142. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2143. game:GetService("Debris"):AddItem(prt,5)
  2144. coroutine.resume(coroutine.create(function(Part,Mesh)
  2145. local rtype = rottype
  2146. for i=0,1,delay do
  2147. swait()
  2148. if rtype == 1 then
  2149. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2150. elseif rtype == 2 then
  2151. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2152. end
  2153. prt.Transparency=i
  2154. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2155. end
  2156. Part.Parent=nil
  2157. end),prt,msh)
  2158. end
  2159.  
  2160. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2161. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2162. prt.Anchored=false
  2163. prt.CFrame=cframe
  2164. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2165. local wld=weld(prt,prt,Parent,cframe)
  2166. game:GetService("Debris"):AddItem(prt,5)
  2167. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2168. for i=0,1,delay do
  2169. wait()
  2170. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2171. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2172. Part.Transparency=i
  2173. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2174. end
  2175. Part.Parent=nil
  2176. end),prt,msh,wld)
  2177. end
  2178.  
  2179. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2180. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2181. prt.Anchored=false
  2182. prt.CFrame=cframe
  2183. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2184. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2185. game:GetService("Debris"):AddItem(prt,5)
  2186. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2187. for i=0,1,delay do
  2188. wait()
  2189. Weld.C0=euler(i*20,0,0)
  2190. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2191. Part.Transparency=i
  2192. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2193. end
  2194. Part.Parent=nil
  2195. end),prt,msh,wld)
  2196. end
  2197.  
  2198. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2199. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2200. prt.Anchored=true
  2201. prt.CFrame=cframe
  2202. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,2)
  2204. coroutine.resume(coroutine.create(function(Part,Mesh)
  2205. for i=0,1,delay do
  2206. wait()
  2207. Part.CFrame=Part.CFrame
  2208. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2209. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2210. prt2.Anchored=true
  2211. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2212. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2213. game:GetService("Debris"):AddItem(prt2,2)
  2214. coroutine.resume(coroutine.create(function(Part,Mesh)
  2215. for i=0,1,0.1 do
  2216. wait()
  2217. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2218. end
  2219. Part.Parent=nil
  2220. end),prt2,msh2)
  2221. end
  2222. for i=0,1,delay*2 do
  2223. wait()
  2224. Part.CFrame=Part.CFrame
  2225. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2226. end
  2227. Part.Parent=nil
  2228. end),prt,msh)
  2229. end
  2230.  
  2231. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2232. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2233. prt.Anchored=true
  2234. prt.CFrame=cframe
  2235. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2236. game:GetService("Debris"):AddItem(prt,2)
  2237. coroutine.resume(coroutine.create(function(Part,Mesh)
  2238. for i=0,1,delay do
  2239. wait()
  2240. Part.CFrame=Part.CFrame
  2241. Part.Transparency=i
  2242. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2243. end
  2244. Part.Parent=nil
  2245. end),prt,msh)
  2246. end
  2247.  
  2248. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2249. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2250. prt.Anchored=true
  2251. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2252. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2253. game:GetService("Debris"):AddItem(prt,2)
  2254. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2255. CF=Part.CFrame
  2256. Numbb=0
  2257. randnumb=math.random()/10
  2258. rand1=math.random()/10
  2259. for i=0,1,rand1 do
  2260. wait()
  2261. CF=CF*cf(0,math.random()/2,0)
  2262. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2263. Part.CFrame=CF*euler(Numbb,0,0)
  2264. Part.Transparency=i
  2265. Numbb=Numbb+randnumb
  2266. end
  2267. Part.Parent=nil
  2268. end),prt,CF,Numbb,randnumb)
  2269. end
  2270.  
  2271. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2272. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2273. prt.Anchored=true
  2274. prt.CFrame=cframe
  2275. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2276. game:GetService("Debris"):AddItem(prt,5)
  2277. coroutine.resume(coroutine.create(function(Part,Mesh)
  2278. for i=0,1,delay do
  2279. wait()
  2280. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2281. Part.Transparency=i
  2282. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2283. end
  2284. Part.Parent=nil
  2285. end),prt,msh)
  2286. end
  2287.  
  2288. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2289. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt.Anchored=true
  2291. prt.CFrame=cframe
  2292. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2293. game:GetService("Debris"):AddItem(prt,2)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. for i=0,1,delay do
  2296. wait()
  2297. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2298. Part.Transparency=i
  2299. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2300. end
  2301. Part.Parent=nil
  2302. end),prt,msh)
  2303. end
  2304.  
  2305. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2306. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2307. prt.Anchored=true
  2308. prt.CFrame=cframe*cf(x,y,z)
  2309. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2310. game:GetService("Debris"):AddItem(prt,5)
  2311. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2312. local num=math.random()
  2313. local num2=math.random(-3,2)+math.random()
  2314. local numm=0
  2315. for i=0,1,delay*2 do
  2316. swait()
  2317. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2318. Part.Transparency=i
  2319. numm=numm+0.01
  2320. end
  2321. Part.Parent=nil
  2322. Mesh.Parent=nil
  2323. end),prt,msh,x,y,z)
  2324. end
  2325.  
  2326. function dmgstart(dmg,what)
  2327. hitcon = what.Touched:connect(function(hit)
  2328. local hum = hit.Parent:FindFirstChild("Humanoid")
  2329. if hum and not hum:IsDescendantOf(Character) then
  2330. hum:TakeDamage(dmg)
  2331. end
  2332. end)
  2333. end
  2334.  
  2335. function dmgstop()
  2336. hitcon:disconnect()
  2337. end
  2338.  
  2339. function Cloak()
  2340. Face.Parent=nil
  2341. cloaked=true
  2342. for _,v in pairs(Torso.Parent:children()) do
  2343. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2344. coroutine.resume(coroutine.create(function()
  2345. for i=0,1,0.2 do
  2346. wait()
  2347. v.Transparency=i
  2348. end
  2349. v.Transparency=1
  2350. end))
  2351. end
  2352. if v.className=="Hat" then
  2353. hatp=v.Handle
  2354. coroutine.resume(coroutine.create(function(derp)
  2355. for i=0,1,0.2 do
  2356. wait()
  2357. derp.Transparency=i
  2358. end
  2359. derp.Transparency=1
  2360. end),hatp)
  2361. end
  2362. end
  2363. for _,v in pairs(m:children()) do
  2364. if v.className=="Part" then
  2365. coroutine.resume(coroutine.create(function()
  2366. for i=0,1,0.2 do
  2367. wait()
  2368. v.Transparency=i
  2369. end
  2370. v.Transparency=1
  2371. end))
  2372. end
  2373. end
  2374. end
  2375.  
  2376. function UnCloak()
  2377. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2378. Face.Parent=Head
  2379. cloaked=false
  2380. for _,v in pairs(Torso.Parent:children()) do
  2381. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2382. coroutine.resume(coroutine.create(function()
  2383. for i=0,1,0.1 do
  2384. wait()
  2385. v.Transparency=v.Transparency-0.1
  2386. end
  2387. v.Transparency=0
  2388. end))
  2389. end
  2390. if v.className=="Hat" then
  2391. hatp=v.Handle
  2392. coroutine.resume(coroutine.create(function(derp)
  2393. for i=0,1,0.1 do
  2394. wait()
  2395. derp.Transparency=derp.Transparency-0.1
  2396. end
  2397. derp.Transparency=0
  2398. end),hatp)
  2399. end
  2400. end
  2401. for _,v in pairs(m:children()) do
  2402. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2403. coroutine.resume(coroutine.create(function()
  2404. for i=0,1,0.1 do
  2405. wait()
  2406. v.Transparency=v.Transparency-0.1
  2407. end
  2408. v.Transparency=0
  2409. end))
  2410. v.Transparency=0
  2411. end
  2412. end
  2413. end
  2414.  
  2415. local origcolor = BrickColor.new("Pastel light blue")
  2416. ---- This section of explosions.
  2417.  
  2418. ----
  2419.  
  2420.  
  2421. function ring(type,pos,scale,value)
  2422. local type = type
  2423. local rng = Instance.new("Part", char)
  2424. rng.Anchored = true
  2425. rng.BrickColor = origcolor
  2426. rng.CanCollide = false
  2427. rng.FormFactor = 3
  2428. rng.Name = "Ring"
  2429. rng.Size = Vector3.new(1, 1, 1)
  2430. rng.Transparency = 0
  2431. rng.TopSurface = 0
  2432. rng.BottomSurface = 0
  2433. rng.CFrame = pos
  2434. local rngm = Instance.new("SpecialMesh", rng)
  2435. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2436. rngm.Scale = scale
  2437. local scaler2 = 1
  2438. if type == "Add" then
  2439. scaler2 = 1*value
  2440. elseif type == "Divide" then
  2441. scaler2 = 1/value
  2442. end
  2443. coroutine.resume(coroutine.create(function()
  2444. for i = 0,10,0.1 do
  2445. swait()
  2446. if type == "Add" then
  2447. scaler2 = scaler2 - 0.01*value
  2448. elseif type == "Divide" then
  2449. scaler2 = scaler2 - 0.01/value
  2450. end
  2451. rng.Transparency = rng.Transparency + 0.01
  2452. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2453. end
  2454. rng:Destroy()
  2455. end))
  2456. end
  2457.  
  2458.  
  2459. function wave(type,pos,scale,value)
  2460. local type = type
  2461. local rng = Instance.new("Part", char)
  2462. rng.Anchored = true
  2463. rng.BrickColor = origcolor
  2464. rng.CanCollide = false
  2465. rng.FormFactor = 3
  2466. rng.Name = "Ring"
  2467. rng.Size = Vector3.new(1, 1, 1)
  2468. rng.Transparency = 0
  2469. rng.TopSurface = 0
  2470. rng.BottomSurface = 0
  2471. rng.CFrame = pos
  2472. local rngm = Instance.new("SpecialMesh", rng)
  2473. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2474. rngm.Scale = scale
  2475. local scaler2 = 1
  2476. if type == "Add" then
  2477. scaler2 = 1*value
  2478. elseif type == "Divide" then
  2479. scaler2 = 1/value
  2480. end
  2481. coroutine.resume(coroutine.create(function()
  2482. for i = 0,10,0.1 do
  2483. swait()
  2484. if type == "Add" then
  2485. scaler2 = scaler2 - 0.01*value
  2486. elseif type == "Divide" then
  2487. scaler2 = scaler2 - 0.01/value
  2488. end
  2489. rng.Transparency = rng.Transparency + 0.01
  2490. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2491. end
  2492. rng:Destroy()
  2493. end))
  2494. end
  2495.  
  2496. function wind(type,pos,scale,value,speed)
  2497. local type = type
  2498. local rng = Instance.new("Part", char)
  2499. rng.Anchored = true
  2500. rng.BrickColor = origcolor
  2501. rng.CanCollide = false
  2502. rng.FormFactor = 3
  2503. rng.Name = "Ring"
  2504. rng.Size = Vector3.new(1, 1, 1)
  2505. rng.Transparency = 0
  2506. rng.TopSurface = 0
  2507. rng.BottomSurface = 0
  2508. rng.CFrame = pos
  2509. local rngm = Instance.new("SpecialMesh", rng)
  2510. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2511. rngm.Scale = scale
  2512. local scaler2 = 1
  2513. if type == "Add" then
  2514. scaler2 = 1*value
  2515. elseif type == "Divide" then
  2516. scaler2 = 1/value
  2517. end
  2518. coroutine.resume(coroutine.create(function()
  2519. for i = 0,10,0.1 do
  2520. swait()
  2521. if type == "Add" then
  2522. scaler2 = scaler2 - 0.01*value
  2523. elseif type == "Divide" then
  2524. scaler2 = scaler2 - 0.01/value
  2525. end
  2526. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2527. rng.Transparency = rng.Transparency + 0.01
  2528. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2529. end
  2530. rng:Destroy()
  2531. end))
  2532. end
  2533.  
  2534. function groundwind(type,pos,scale,value,speed)
  2535. local type = type
  2536. local rng = Instance.new("Part", char)
  2537. rng.Anchored = true
  2538. rng.BrickColor = origcolor
  2539. rng.CanCollide = false
  2540. rng.FormFactor = 3
  2541. rng.Name = "Ring"
  2542. rng.Size = Vector3.new(1, 1, 1)
  2543. rng.Transparency = 0
  2544. rng.TopSurface = 0
  2545. rng.BottomSurface = 0
  2546. rng.CFrame = pos
  2547. local rngm = Instance.new("SpecialMesh", rng)
  2548. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2549. rngm.Scale = scale
  2550. local scaler2 = 1
  2551. if type == "Add" then
  2552. scaler2 = 1*value
  2553. elseif type == "Divide" then
  2554. scaler2 = 1/value
  2555. end
  2556. coroutine.resume(coroutine.create(function()
  2557. for i = 0,10,0.1 do
  2558. swait()
  2559. if type == "Add" then
  2560. scaler2 = scaler2 - 0.01*value
  2561. elseif type == "Divide" then
  2562. scaler2 = scaler2 - 0.01/value
  2563. end
  2564. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2565. rng.Transparency = rng.Transparency + 0.01
  2566. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2567. end
  2568. rng:Destroy()
  2569. end))
  2570. end
  2571.  
  2572. function CameraManager()
  2573. if TwoD and not CamInterrupt then
  2574. if Humanoid.Health > 0 then
  2575. Camera.CameraSubject = Humanoid
  2576. Camera.CameraType = "Scriptable"
  2577. Humanoid.AutoRotate = false
  2578. if Booleans.GyroUse then
  2579. Directer.MaxTorque = Vec3(0, huge, 0)
  2580. else
  2581. Directer.MaxTorque = Vec3(0, 0, 0)
  2582. end
  2583. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2584. if Booleans.CamFollow then
  2585. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2586. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2587. else
  2588. CPart.Position = RootPart.Position
  2589. end
  2590. else
  2591. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2592. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2593. end
  2594. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2595. else
  2596. Camera.CameraSubject = Humanoid
  2597. Camera.CameraType = "Custom"
  2598. Controller.Disabled = false
  2599. end
  2600. end
  2601. end
  2602.  
  2603. function ring(type,pos,scale,value)
  2604. local type = type
  2605. local rng = Instance.new("Part", char)
  2606. rng.Anchored = true
  2607. rng.BrickColor = origcolor
  2608. rng.CanCollide = false
  2609. rng.FormFactor = 3
  2610. rng.Name = "Ring"
  2611. rng.Size = Vector3.new(1, 1, 1)
  2612. rng.Transparency = 0
  2613. rng.TopSurface = 0
  2614. rng.BottomSurface = 0
  2615. rng.CFrame = pos
  2616. local rngm = Instance.new("SpecialMesh", rng)
  2617. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2618. rngm.Scale = scale
  2619. local scaler2 = 1
  2620. if type == "Add" then
  2621. scaler2 = 1*value
  2622. elseif type == "Divide" then
  2623. scaler2 = 1/value
  2624. end
  2625. coroutine.resume(coroutine.create(function()
  2626. for i = 0,10,0.1 do
  2627. swait()
  2628. if type == "Add" then
  2629. scaler2 = scaler2 - 0.01*value
  2630. elseif type == "Divide" then
  2631. scaler2 = scaler2 - 0.01/value
  2632. end
  2633. rng.Transparency = rng.Transparency + 0.01
  2634. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2635. end
  2636. rng:Destroy()
  2637. end))
  2638. end
  2639.  
  2640.  
  2641. function wave(type,pos,scale,value)
  2642. local type = type
  2643. local rng = Instance.new("Part", char)
  2644. rng.Anchored = true
  2645. rng.BrickColor = origcolor
  2646. rng.CanCollide = false
  2647. rng.FormFactor = 3
  2648. rng.Name = "Ring"
  2649. rng.Size = Vector3.new(1, 1, 1)
  2650. rng.Transparency = 0
  2651. rng.TopSurface = 0
  2652. rng.BottomSurface = 0
  2653. rng.CFrame = pos
  2654. local rngm = Instance.new("SpecialMesh", rng)
  2655. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2656. rngm.Scale = scale
  2657. local scaler2 = 1
  2658. if type == "Add" then
  2659. scaler2 = 1*value
  2660. elseif type == "Divide" then
  2661. scaler2 = 1/value
  2662. end
  2663. coroutine.resume(coroutine.create(function()
  2664. for i = 0,10,0.1 do
  2665. swait()
  2666. if type == "Add" then
  2667. scaler2 = scaler2 - 0.01*value
  2668. elseif type == "Divide" then
  2669. scaler2 = scaler2 - 0.01/value
  2670. end
  2671. rng.Transparency = rng.Transparency + 0.01
  2672. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2673. end
  2674. rng:Destroy()
  2675. end))
  2676. end
  2677.  
  2678. function sphere(bonuspeed,type,pos,scale,value,color)
  2679. local type = type
  2680. local rng = Instance.new("Part", char)
  2681. rng.Anchored = true
  2682. if ModeOfGlitch ~= 9 then
  2683. rng.BrickColor = color
  2684. elseif ModeOfGlitch == 9 then
  2685. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2686. end
  2687. rng.CanCollide = false
  2688. rng.FormFactor = 3
  2689. rng.Name = "Ring"
  2690. rng.Material = "Neon"
  2691. rng.Size = Vector3.new(1, 1, 1)
  2692. rng.Transparency = 0
  2693. rng.TopSurface = 0
  2694. rng.BottomSurface = 0
  2695. rng.CFrame = pos
  2696. local rngm = Instance.new("SpecialMesh", rng)
  2697. rngm.MeshType = "Sphere"
  2698. rngm.Scale = scale
  2699. if rainbowmode == true then
  2700. rng.Color = Color3.new(r/255,g/255,b/255)
  2701. end
  2702. if ModeOfGlitch == 9 then
  2703. coroutine.resume(coroutine.create(function()
  2704. while true do
  2705. swait()
  2706. if rng.Parent ~= nil then
  2707. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2708. else
  2709. break
  2710. end
  2711. end
  2712. end))
  2713. end
  2714. local scaler2 = 1
  2715. if type == "Add" then
  2716. scaler2 = 1*value
  2717. elseif type == "Divide" then
  2718. scaler2 = 1/value
  2719. end
  2720. coroutine.resume(coroutine.create(function()
  2721. for i = 0,10/bonuspeed,0.1 do
  2722. swait()
  2723. if rainbowmode == true then
  2724. rng.Color = Color3.new(r/255,g/255,b/255)
  2725. end
  2726. if type == "Add" then
  2727. scaler2 = scaler2 - 0.01*value/bonuspeed
  2728. elseif type == "Divide" then
  2729. scaler2 = scaler2 - 0.01/value*bonuspeed
  2730. end
  2731. if chaosmode == true then
  2732. rng.BrickColor = BrickColor.random()
  2733. end
  2734. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2735. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2736. end
  2737. rng:Destroy()
  2738. end))
  2739. end
  2740.  
  2741. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2742. local type = type
  2743. local rng = Instance.new("Part", char)
  2744. rng.Anchored = true
  2745. if ModeOfGlitch ~= 9 then
  2746. rng.BrickColor = color
  2747. elseif ModeOfGlitch == 9 then
  2748. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2749. end
  2750. rng.CanCollide = false
  2751. rng.FormFactor = 3
  2752. rng.Name = "Ring"
  2753. rng.Material = "Neon"
  2754. rng.Size = Vector3.new(1, 1, 1)
  2755. rng.Transparency = 0
  2756. rng.TopSurface = 0
  2757. rng.BottomSurface = 0
  2758. rng.CFrame = pos
  2759. local rngm = Instance.new("SpecialMesh", rng)
  2760. rngm.MeshType = "Sphere"
  2761. rngm.Scale = scale
  2762. local scaler2 = 1
  2763. local scaler2b = 1
  2764. local scaler2c = 1
  2765. if type == "Add" then
  2766. scaler2 = 1*value
  2767. scaler2b = 1*value2
  2768. scaler2c = 1*value3
  2769. elseif type == "Divide" then
  2770. scaler2 = 1/value
  2771. scaler2b = 1/value2
  2772. scaler2c = 1/value3
  2773. end
  2774. if ModeOfGlitch == 9 then
  2775. coroutine.resume(coroutine.create(function()
  2776. while true do
  2777. swait()
  2778. if rng.Parent ~= nil then
  2779. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2780. else
  2781. break
  2782. end
  2783. end
  2784. end))
  2785. end
  2786. coroutine.resume(coroutine.create(function()
  2787. for i = 0,10/bonuspeed,0.1 do
  2788. swait()
  2789. if type == "Add" then
  2790. scaler2 = scaler2 - 0.01*value/bonuspeed
  2791. scaler2b = scaler2b - 0.01*value/bonuspeed
  2792. scaler2c = scaler2c - 0.01*value/bonuspeed
  2793. elseif type == "Divide" then
  2794. scaler2 = scaler2 - 0.01/value*bonuspeed
  2795. scaler2b = scaler2b - 0.01/value*bonuspeed
  2796. scaler2c = scaler2c - 0.01/value*bonuspeed
  2797. end
  2798. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2799. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2800. end
  2801. rng:Destroy()
  2802. end))
  2803. end
  2804.  
  2805. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2806. local type = type
  2807. local rotenable = rotatingop
  2808. local rng = Instance.new("Part", char)
  2809. rng.Anchored = true
  2810. rng.BrickColor = color
  2811. rng.CanCollide = false
  2812. rng.FormFactor = 3
  2813. rng.Name = "Ring"
  2814. rng.Material = "Neon"
  2815. rng.Size = Vector3.new(1, 1, 1)
  2816. rng.Transparency = 0
  2817. if typeoftrans == "In" then
  2818. rng.Transparency = 1
  2819. end
  2820. rng.TopSurface = 0
  2821. rng.BottomSurface = 0
  2822. rng.CFrame = pos
  2823. local rngm = Instance.new("SpecialMesh", rng)
  2824. rngm.MeshType = "FileMesh"
  2825. if typeofshape == "Normal" then
  2826. rngm.MeshId = "rbxassetid://662586858"
  2827. elseif typeofshape == "Round" then
  2828. rngm.MeshId = "rbxassetid://662585058"
  2829. end
  2830. rngm.Scale = scale
  2831. local scaler2 = 1/10
  2832. if type == "Add" then
  2833. scaler2 = 1*value/10
  2834. elseif type == "Divide" then
  2835. scaler2 = 1/value/10
  2836. end
  2837. local randomrot = math.random(1,2)
  2838. coroutine.resume(coroutine.create(function()
  2839. for i = 0,10/bonuspeed,0.1 do
  2840. swait()
  2841. if type == "Add" then
  2842. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2843. elseif type == "Divide" then
  2844. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2845. end
  2846. if rotenable == true then
  2847. if randomrot == 1 then
  2848. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2849. elseif randomrot == 2 then
  2850. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2851. end
  2852. end
  2853. if typeoftrans == "Out" then
  2854. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2855. elseif typeoftrans == "In" then
  2856. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2857. end
  2858. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2859. end
  2860. rng:Destroy()
  2861. end))
  2862. end
  2863.  
  2864. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2865. local type = type
  2866. local rng = Instance.new("Part", char)
  2867. rng.Anchored = true
  2868. rng.BrickColor = color
  2869. rng.CanCollide = false
  2870. rng.FormFactor = 3
  2871. rng.Name = "Ring"
  2872. rng.Material = "Neon"
  2873. rng.Size = Vector3.new(1, 1, 1)
  2874. rng.Transparency = 0
  2875. rng.TopSurface = 0
  2876. rng.BottomSurface = 0
  2877. rng.CFrame = pos
  2878. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2879. local rngm = Instance.new("SpecialMesh", rng)
  2880. rngm.MeshType = "Brick"
  2881. rngm.Scale = vt(x1,y1,z1)
  2882. if rainbowmode == true then
  2883. rng.Color = Color3.new(r/255,g/255,b/255)
  2884. end
  2885. local scaler2 = 1
  2886. local speeder = FastSpeed/10
  2887. if type == "Add" then
  2888. scaler2 = 1*value
  2889. elseif type == "Divide" then
  2890. scaler2 = 1/value
  2891. end
  2892. coroutine.resume(coroutine.create(function()
  2893. for i = 0,10/bonuspeed,0.1 do
  2894. swait()
  2895. if rainbowmode == true then
  2896. rng.Color = Color3.new(r/255,g/255,b/255)
  2897. end
  2898. if type == "Add" then
  2899. scaler2 = scaler2 - 0.01*value/bonuspeed
  2900. elseif type == "Divide" then
  2901. scaler2 = scaler2 - 0.01/value*bonuspeed
  2902. end
  2903. if chaosmode == true then
  2904. rng.BrickColor = BrickColor.random()
  2905. end
  2906. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2907. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2908. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2909. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2910. end
  2911. rng:Destroy()
  2912. end))
  2913. end
  2914.  
  2915. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2916. local type = type
  2917. local rng = Instance.new("Part", char)
  2918. rng.Anchored = true
  2919. rng.BrickColor = color
  2920. rng.CanCollide = false
  2921. rng.FormFactor = 3
  2922. rng.Name = "Ring"
  2923. rng.Material = "Neon"
  2924. rng.Size = Vector3.new(1, 1, 1)
  2925. rng.Transparency = 0
  2926. rng.TopSurface = 0
  2927. rng.BottomSurface = 0
  2928. rng.CFrame = pos
  2929. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2930. local rngm = Instance.new("SpecialMesh", rng)
  2931. rngm.MeshType = "Brick"
  2932. rngm.Scale = vt(x1,y1,z1)
  2933. if rainbowmode == true then
  2934. rng.Color = Color3.new(r/255,g/255,b/255)
  2935. end
  2936. local scaler2 = 1
  2937. local speeder = FastSpeed/10
  2938. if type == "Add" then
  2939. scaler2 = 1*value
  2940. elseif type == "Divide" then
  2941. scaler2 = 1/value
  2942. end
  2943. coroutine.resume(coroutine.create(function()
  2944. for i = 0,10/bonuspeed,0.1 do
  2945. swait()
  2946. if rainbowmode == true then
  2947. rng.Color = Color3.new(r/255,g/255,b/255)
  2948. end
  2949. if type == "Add" then
  2950. scaler2 = scaler2 - 0.01*value/bonuspeed
  2951. elseif type == "Divide" then
  2952. scaler2 = scaler2 - 0.01/value*bonuspeed
  2953. end
  2954. if chaosmode == true then
  2955. rng.BrickColor = BrickColor.random()
  2956. end
  2957. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2958. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2959. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2960. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2961. end
  2962. rng:Destroy()
  2963. end))
  2964. end
  2965.  
  2966. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2967. local type = type
  2968. local rng = Instance.new("Part", char)
  2969. rng.Anchored = true
  2970. rng.BrickColor = color
  2971. rng.CanCollide = false
  2972. rng.FormFactor = 3
  2973. rng.Name = "Ring"
  2974. rng.Material = "Neon"
  2975. rng.Size = Vector3.new(1, 1, 1)
  2976. rng.Transparency = 0
  2977. rng.TopSurface = 0
  2978. rng.BottomSurface = 0
  2979. rng.CFrame = pos
  2980. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2981. local rngm = Instance.new("SpecialMesh", rng)
  2982. rngm.MeshType = "Brick"
  2983. rngm.Scale = vt(x1,y1,z1)
  2984. if rainbowmode == true then
  2985. rng.Color = Color3.new(r/255,g/255,b/255)
  2986. end
  2987. local scaler2 = 0
  2988. local speeder = FastSpeed/10
  2989. if type == "Add" then
  2990. scaler2 = 1*value
  2991. elseif type == "Divide" then
  2992. scaler2 = 1/value
  2993. end
  2994. coroutine.resume(coroutine.create(function()
  2995. for i = 0,10/bonuspeed,0.1 do
  2996. swait()
  2997. if rainbowmode == true then
  2998. rng.Color = Color3.new(r/255,g/255,b/255)
  2999. end
  3000. if type == "Add" then
  3001. scaler2 = scaler2 - 0.01*value/bonuspeed
  3002. elseif type == "Divide" then
  3003. scaler2 = scaler2 - 0.01/value*bonuspeed
  3004. end
  3005. if chaosmode == true then
  3006. rng.BrickColor = BrickColor.random()
  3007. end
  3008. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3009. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3010. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3011. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3012. end
  3013. rng:Destroy()
  3014. end))
  3015. end
  3016.  
  3017. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3018. local type = type
  3019. local rng = Instance.new("Part", char)
  3020. rng.Anchored = true
  3021. rng.BrickColor = color
  3022. rng.Color = color3
  3023. rng.CanCollide = false
  3024. rng.FormFactor = 3
  3025. rng.Name = "Ring"
  3026. rng.Material = "Neon"
  3027. rng.Size = Vector3.new(1, 1, 1)
  3028. rng.Transparency = 0
  3029. rng.TopSurface = 0
  3030. rng.BottomSurface = 0
  3031. rng.CFrame = pos
  3032. local rngm = Instance.new("SpecialMesh", rng)
  3033. rngm.MeshType = "Brick"
  3034. rngm.Scale = scale
  3035. local scaler2 = 1
  3036. local scaler2b = 1
  3037. local scaler2c = 1
  3038. if type == "Add" then
  3039. scaler2 = 1*value
  3040. scaler2b = 1*value2
  3041. scaler2c = 1*value3
  3042. elseif type == "Divide" then
  3043. scaler2 = 1/value
  3044. scaler2b = 1/value2
  3045. scaler2c = 1/value3
  3046. end
  3047. coroutine.resume(coroutine.create(function()
  3048. for i = 0,10/bonuspeed,0.1 do
  3049. swait()
  3050. if type == "Add" then
  3051. scaler2 = scaler2 - 0.01*value/bonuspeed
  3052. scaler2b = scaler2b - 0.01*value/bonuspeed
  3053. scaler2c = scaler2c - 0.01*value/bonuspeed
  3054. elseif type == "Divide" then
  3055. scaler2 = scaler2 - 0.01/value*bonuspeed
  3056. scaler2b = scaler2b - 0.01/value*bonuspeed
  3057. scaler2c = scaler2c - 0.01/value*bonuspeed
  3058. end
  3059. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3060. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3061. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3062. end
  3063. rng:Destroy()
  3064. end))
  3065. end
  3066.  
  3067. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3068. local type = type
  3069. local rng = Instance.new("Part", char)
  3070. rng.Anchored = true
  3071. if ModeOfGlitch ~= 9 then
  3072. rng.BrickColor = color
  3073. elseif ModeOfGlitch == 9 then
  3074. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3075. end
  3076. rng.CanCollide = false
  3077. rng.FormFactor = 3
  3078. rng.Name = "Ring"
  3079. rng.Material = "Neon"
  3080. rng.Size = Vector3.new(1, 1, 1)
  3081. rng.Transparency = 0
  3082. rng.TopSurface = 0
  3083. rng.BottomSurface = 0
  3084. rng.CFrame = pos
  3085. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3086. local rngm = Instance.new("SpecialMesh", rng)
  3087. rngm.MeshType = "Sphere"
  3088. rngm.Scale = vt(x1,y1,z1)
  3089. if rainbowmode == true then
  3090. rng.Color = Color3.new(r/255,g/255,b/255)
  3091. end
  3092. if ModeOfGlitch == 9 then
  3093. coroutine.resume(coroutine.create(function()
  3094. while true do
  3095. swait()
  3096. if rng.Parent ~= nil then
  3097. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3098. else
  3099. break
  3100. end
  3101. end
  3102. end))
  3103. end
  3104. local scaler2 = 1
  3105. local speeder = FastSpeed
  3106. if type == "Add" then
  3107. scaler2 = 1*value
  3108. elseif type == "Divide" then
  3109. scaler2 = 1/value
  3110. end
  3111. coroutine.resume(coroutine.create(function()
  3112. for i = 0,10/bonuspeed,0.1 do
  3113. swait()
  3114. if rainbowmode == true then
  3115. rng.Color = Color3.new(r/255,g/255,b/255)
  3116. end
  3117. if type == "Add" then
  3118. scaler2 = scaler2 - 0.01*value/bonuspeed
  3119. elseif type == "Divide" then
  3120. scaler2 = scaler2 - 0.01/value*bonuspeed
  3121. end
  3122. if chaosmode == true then
  3123. rng.BrickColor = BrickColor.random()
  3124. end
  3125. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3126. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3127. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3128. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3129. end
  3130. rng:Destroy()
  3131. end))
  3132. end
  3133.  
  3134.  
  3135. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3136. local type = type
  3137. local rng = Instance.new("Part", char)
  3138. rng.Anchored = true
  3139. if ModeOfGlitch ~= 9 then
  3140. rng.BrickColor = color
  3141. elseif ModeOfGlitch == 9 then
  3142. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3143. end
  3144. rng.CanCollide = false
  3145. rng.FormFactor = 3
  3146. rng.Name = "Ring"
  3147. rng.Material = "Neon"
  3148. rng.Size = Vector3.new(1, 1, 1)
  3149. rng.Transparency = 1
  3150. rng.TopSurface = 0
  3151. rng.BottomSurface = 0
  3152. rng.CFrame = pos
  3153. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3154. local rngm = Instance.new("SpecialMesh", rng)
  3155. rngm.MeshType = "Sphere"
  3156. rngm.Scale = vt(x1,y1,z1)
  3157. if rainbowmode == true then
  3158. rng.Color = Color3.new(r/255,g/255,b/255)
  3159. end
  3160. if ModeOfGlitch == 9 then
  3161. coroutine.resume(coroutine.create(function()
  3162. while true do
  3163. swait()
  3164. if rng.Parent ~= nil then
  3165. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3166. else
  3167. break
  3168. end
  3169. end
  3170. end))
  3171. end
  3172. local scaler2 = 1
  3173. local speeder = FastSpeed
  3174. if type == "Add" then
  3175. scaler2 = 1*value
  3176. elseif type == "Divide" then
  3177. scaler2 = 1/value
  3178. end
  3179. coroutine.resume(coroutine.create(function()
  3180. for i = 0,10/bonuspeed,0.1 do
  3181. swait()
  3182. if rainbowmode == true then
  3183. rng.Color = Color3.new(r/255,g/255,b/255)
  3184. end
  3185. if type == "Add" then
  3186. scaler2 = scaler2 - 0.01*value/bonuspeed
  3187. elseif type == "Divide" then
  3188. scaler2 = scaler2 - 0.01/value*bonuspeed
  3189. end
  3190. if chaosmode == true then
  3191. rng.BrickColor = BrickColor.random()
  3192. end
  3193. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3194. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3195. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3196. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3197. end
  3198. rng:Destroy()
  3199. end))
  3200. end
  3201.  
  3202. function dmg(dude)
  3203. if dude.Name ~= Character then
  3204. local keptcolor = MAINRUINCOLOR
  3205. local bgf = Instance.new("BodyGyro",dude.Head)
  3206. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3207. --[[local val = Instance.new("BoolValue",dude)
  3208. val.Name = "IsHit"]]--
  3209. local ds = coroutine.wrap(function()
  3210. dude:WaitForChild("Head"):BreakJoints()
  3211. for i, v in pairs(dude:GetChildren()) do
  3212. if v:IsA("Part") or v:IsA("MeshPart") then
  3213. v.Name = "DEMINISHED"
  3214. end
  3215. end
  3216. wait(0.5)
  3217. targetted = nil
  3218. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3219. coroutine.resume(coroutine.create(function()
  3220. for i, v in pairs(dude:GetChildren()) do
  3221. if v:IsA("Accessory") then
  3222. v:Destroy()
  3223. end
  3224. if v:IsA("Humanoid") then
  3225. v:Destroy()
  3226. end
  3227. if v:IsA("CharacterMesh") then
  3228. v:Destroy()
  3229. end
  3230. if v:IsA("Model") then
  3231. v:Destroy()
  3232. end
  3233. if v:IsA("Part") or v:IsA("MeshPart") then
  3234. for x, o in pairs(v:GetChildren()) do
  3235. if o:IsA("Decal") then
  3236. o:Destroy()
  3237. end
  3238. end
  3239. coroutine.resume(coroutine.create(function()
  3240. v.Material = "Neon"
  3241. v.CanCollide = false
  3242. v.Anchored = false
  3243. local bld = Instance.new("ParticleEmitter",v)
  3244. bld.LightEmission = 0.75
  3245. bld.Texture = "rbxassetid://363275192" ---284205403
  3246. bld.Color = ColorSequence.new(keptcolor.Color)
  3247. bld.Rate = 500
  3248. bld.Lifetime = NumberRange.new(1)
  3249. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3250. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3251. bld.Speed = NumberRange.new(2,5)
  3252. bld.VelocitySpread = 50000
  3253. bld.Rotation = NumberRange.new(-500,500)
  3254. bld.RotSpeed = NumberRange.new(-500,500)
  3255. local sbs = Instance.new("BodyPosition", v)
  3256. sbs.P = 3000
  3257. sbs.D = 1000
  3258. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3259. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3260. v.Color = keptcolor.Color
  3261. coroutine.resume(coroutine.create(function()
  3262. for i = 0, 49 do
  3263. swait(1)
  3264. v:BreakJoints()
  3265. v.Transparency = v.Transparency + 0.02
  3266. end
  3267. v:BreakJoints()
  3268. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3269. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3270. bld.Speed = NumberRange.new(10,25)
  3271. bld.Drag = 5
  3272. bld.Acceleration = vt(0,2,0)
  3273. wait(0.5)
  3274. bld.Enabled = false
  3275. wait(8)
  3276. v:Destroy()
  3277. dude:Destroy()
  3278. end))
  3279. end))
  3280. end
  3281. end
  3282. end))
  3283. end)
  3284. ds()
  3285. end
  3286. end
  3287.  
  3288.  
  3289. function FindNearestHead(Position, Distance, SinglePlayer)
  3290. if SinglePlayer then
  3291. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3292. end
  3293. local List = {}
  3294. for i, v in pairs(workspace:GetChildren()) do
  3295. if v:IsA("Model") then
  3296. if v:findFirstChild("Head") then
  3297. if v ~= Character then
  3298. if (v.Head.Position - Position).magnitude <= Distance then
  3299. table.insert(List, v)
  3300. end
  3301. end
  3302. end
  3303. end
  3304. end
  3305. return List
  3306. end
  3307.  
  3308. function FaceMouse()
  3309. Cam = workspace.CurrentCamera
  3310. return {
  3311. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3312. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3313. }
  3314. end
  3315.  
  3316. function FaceMouse2()
  3317. Cam = workspace.CurrentCamera
  3318. return {
  3319. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3320. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3321. }
  3322. end
  3323.  
  3324. local ModeOfGlitch = 1
  3325. -- Functions are ready.
  3326. local storehumanoidWS = 16
  3327.  
  3328. function CorruptBlink()
  3329. for i = 0, 14 do
  3330. 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)
  3331. end
  3332. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3333. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3334. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3335. CameraEnshaking(2,10)
  3336. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3337. if v:FindFirstChild('Head') then
  3338. dmg(v)
  3339. end
  3340. end
  3341. for i = 0, 14 do
  3342. 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)
  3343. end
  3344. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3345. end
  3346. function PureBomb()
  3347. attack = true
  3348. hum.WalkSpeed = 0
  3349. local orb = Instance.new("Part", char)
  3350. orb.Anchored = true
  3351. orb.BrickColor = BrickColor.new("Toothpaste")
  3352. orb.CanCollide = false
  3353. orb.FormFactor = 3
  3354. orb.Name = "Ring"
  3355. orb.Material = "Neon"
  3356. orb.Size = Vector3.new(1, 1, 1)
  3357. orb.Transparency = 0
  3358. orb.TopSurface = 0
  3359. orb.BottomSurface = 0
  3360. local orbm = Instance.new("SpecialMesh", orb)
  3361. orbm.MeshType = "Sphere"
  3362. orbm.Name = "SizeMesh"
  3363. orbm.Scale = vt(0,0,0)
  3364. local scaled = 0.1
  3365. local posid = 0
  3366. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3367. for i = 0, 5, 0.1 do
  3368. swait()
  3369. scaled = scaled - 0.001
  3370. posid = posid - scaled
  3371. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3372. local scaled = 0.1
  3373. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3374. 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)
  3375. 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)
  3376. 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)
  3377. 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)
  3378. 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)
  3379. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3380. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3381. 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)
  3382. end
  3383. for i = 0, 2, 0.1 do
  3384. swait()
  3385. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3386. 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)
  3387. 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)
  3388. 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)
  3389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3390. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3391. 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)
  3392. end
  3393. coroutine.resume(coroutine.create(function()
  3394. orb.Anchored = false
  3395. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3396. local a = Instance.new("Part",workspace)
  3397. a.Name = "Direction"
  3398. a.Anchored = true
  3399. a.BrickColor = bc("Bright red")
  3400. a.Material = "Neon"
  3401. a.Transparency = 1
  3402. a.CanCollide = false
  3403. local ray = Ray.new(
  3404. orb.CFrame.p, -- origin
  3405. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3406. )
  3407. local ignore = orb
  3408. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3409. a.BottomSurface = 10
  3410. a.TopSurface = 10
  3411. local distance = (orb.CFrame.p - position).magnitude
  3412. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3413. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3414. orb.CFrame = a.CFrame
  3415. a:Destroy()
  3416. local bv = Instance.new("BodyVelocity")
  3417. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3418. bv.velocity = orb.CFrame.lookVector*125
  3419. bv.Parent = orb
  3420. local hitted = false
  3421. game:GetService("Debris"):AddItem(orb, 15)
  3422. wait()
  3423. local hit =orb.Touched:connect(function(hit)
  3424. if hitted == false then
  3425. hitted = true
  3426. CameraEnshaking(10,2.5)
  3427. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3428. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3429. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3430. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3431. for i = 0, 49 do
  3432. 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)
  3433. end
  3434. for i = 0, 9 do
  3435. 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)
  3436. 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)
  3437. end
  3438. orb.Anchored = true
  3439. orb.Transparency = 1
  3440. wait(8)
  3441. orb:Destroy()
  3442. end
  3443. end)
  3444. end))
  3445. for i = 0, 1, 0.1 do
  3446. swait()
  3447. 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)
  3448. 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)
  3449. 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)
  3450. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3451. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3452. 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)
  3453. end
  3454. hum.WalkSpeed = storehumanoidWS
  3455. attack = false
  3456. end
  3457.  
  3458. function BanishingOrb()
  3459. attack = true
  3460. hum.WalkSpeed = 0
  3461. local radm = math.random(1,3)
  3462. if radm == 1 then
  3463. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3464. elseif radm == 2 then
  3465. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3466. elseif radm == 3 then
  3467. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3468. end
  3469. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3470. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3471. local orb = Instance.new("Part", char)
  3472. orb.Anchored = true
  3473. orb.BrickColor = BrickColor.new("Lime green")
  3474. orb.CanCollide = false
  3475. orb.FormFactor = 3
  3476. orb.Name = "Ring"
  3477. orb.Material = "Neon"
  3478. orb.Size = Vector3.new(1, 1, 1)
  3479. orb.Transparency = 0
  3480. orb.TopSurface = 0
  3481. orb.BottomSurface = 0
  3482. local orbm = Instance.new("SpecialMesh", orb)
  3483. orbm.MeshType = "Sphere"
  3484. orbm.Name = "SizeMesh"
  3485. orbm.Scale = vt(0,0,0)
  3486. local scaled = 0.1
  3487. local posid = 0
  3488. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3489. for i = 0, 5, 0.1 do
  3490. swait()
  3491. scaled = scaled - 0.001
  3492. posid = posid - scaled
  3493. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3494. local scaled = 0.1
  3495. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3496. 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)
  3497. 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)
  3498. 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)
  3499. 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)
  3500. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3501. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3502. 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)
  3503. end
  3504. for i = 0, 2, 0.1 do
  3505. swait()
  3506. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3507. 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)
  3508. 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)
  3509. 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)
  3510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3511. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3512. 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)
  3513. end
  3514. coroutine.resume(coroutine.create(function()
  3515. orb.Anchored = false
  3516. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3517. local a = Instance.new("Part",workspace)
  3518. a.Name = "Direction"
  3519. a.Anchored = true
  3520. a.BrickColor = bc("Lime green")
  3521. a.Material = "Neon"
  3522. a.Transparency = 1
  3523. a.CanCollide = false
  3524. local ray = Ray.new(
  3525. orb.CFrame.p, -- origin
  3526. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3527. )
  3528. local ignore = orb
  3529. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3530. a.BottomSurface = 10
  3531. a.TopSurface = 10
  3532. local distance = (orb.CFrame.p - position).magnitude
  3533. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3534. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3535. orb.CFrame = a.CFrame
  3536. a:Destroy()
  3537. local bv = Instance.new("BodyVelocity")
  3538. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3539. bv.velocity = orb.CFrame.lookVector*0
  3540. bv.Parent = orb
  3541. local hitted = false
  3542. local rate = 0
  3543. coroutine.resume(coroutine.create(function()
  3544. for i = 0, 24 do
  3545. wait(0.1)
  3546. rate = rate + 0.25
  3547. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3548. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3549. if v:FindFirstChild('Head') then
  3550. dmg(v)
  3551. end
  3552. end
  3553. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3554. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3555. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3556. end
  3557. orb.Anchored = true
  3558. orb.Transparency = 1
  3559. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3560. if v:FindFirstChild('Head') then
  3561. dmg(v)
  3562. end
  3563. end
  3564. local eff = Instance.new("ParticleEmitter",orb)
  3565. eff.Texture = "rbxassetid://296874871"
  3566. eff.LightEmission = 0.95
  3567. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3568. eff.Rate = 1000000000
  3569. eff.Lifetime = NumberRange.new(3)
  3570. 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)})
  3571. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3572. eff.Speed = NumberRange.new(30)
  3573. eff.Acceleration = vt(0,-15,0)
  3574. eff.Rotation = NumberRange.new(-500,500)
  3575. eff.VelocitySpread = 100000
  3576. eff.RotSpeed = NumberRange.new(-500,500)
  3577. coroutine.resume(coroutine.create(function()
  3578. wait(0.6)
  3579. eff.Enabled = false
  3580. end))
  3581. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3582. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3583. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3584. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3585. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3586. game:GetService("Debris"):AddItem(orb, 15)
  3587. end))
  3588. end))
  3589. for i = 0, 1, 0.1 do
  3590. swait()
  3591. 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)
  3592. 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)
  3593. 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)
  3594. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3595. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3596. 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)
  3597. end
  3598. hum.WalkSpeed = storehumanoidWS
  3599. attack = false
  3600. end
  3601.  
  3602.  
  3603. function ChaosGroundStrike()
  3604. attack = true
  3605. for i = 0, 2, 0.1 do
  3606. swait()
  3607. 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)
  3608. 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)
  3609. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3611. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3612. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3613. end
  3614. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3615. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3616. CameraEnshaking(4,12)
  3617. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3618. if v:FindFirstChild('Head') then
  3619. dmg(v)
  3620. end
  3621. end
  3622. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3623. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3624. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3625. for i = 0, 2, 0.1 do
  3626. swait()
  3627. 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)
  3628. 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)
  3629. 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)
  3630. 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)
  3631. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3632. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3633. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3634. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3635. end
  3636. attack = false
  3637. end
  3638.  
  3639.  
  3640.  
  3641. function Starfall()
  3642. attack = true
  3643. hum.WalkSpeed = 0
  3644. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3645. for i = 0, 5, 0.1 do
  3646. swait()
  3647. 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)
  3648. 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)
  3649. 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)
  3650. 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)
  3651. 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)
  3652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3653. 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)
  3654. 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)
  3655. end
  3656. local Overed = false
  3657. CameraEnshaking(2,20)
  3658. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3659. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3660. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3661. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3662. local orb = Instance.new("Part", char)
  3663. orb.Anchored = true
  3664. orb.BrickColor = BrickColor.new("Toothpaste")
  3665. orb.CanCollide = false
  3666. orb.FormFactor = 3
  3667. orb.Name = "Remenant"
  3668. orb.Material = "Neon"
  3669. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3670. orb.Size = Vector3.new(1, 1, 1)
  3671. orb.Transparency = 1
  3672. orb.TopSurface = 0
  3673. orb.BottomSurface = 0
  3674. hum.WalkSpeed = storehumanoidWS
  3675. coroutine.resume(coroutine.create(function()
  3676. for i = 0, 9 do
  3677. swait(10)
  3678. local lb = Instance.new("Part")
  3679. lb.Color = MAINRUINCOLOR.Color
  3680. lb.CanCollide = false
  3681. lb.Material = "Neon"
  3682. lb.Anchored = true
  3683. lb.TopSurface = 0
  3684. lb.BottomSurface = 0
  3685. lb.Transparency = 0
  3686. lb.Size = vt(1,1,1)
  3687. 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)))
  3688. lb.Anchored = false
  3689. lb.Parent = char
  3690. local thingery = Instance.new("SpecialMesh",lb)
  3691. thingery.MeshType = "Sphere"
  3692. thingery.Scale = vt(20,20,20)
  3693. game:GetService("Debris"):AddItem(lb, 10)
  3694. local bv = Instance.new("BodyVelocity")
  3695. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3696. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3697. bv.Parent = lb
  3698. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3699. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3700. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3701. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3702. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3703. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3704. local hitted = false
  3705. coroutine.resume(coroutine.create(function()
  3706. while true do
  3707. swait(1)
  3708. if lb.Parent ~= nil and hitted == false then
  3709. 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)
  3710. elseif lb.Parent == nil then
  3711. break
  3712. end
  3713. end
  3714. end))
  3715.  
  3716. game:GetService("Debris"):AddItem(a, 0.1)
  3717.  
  3718. coroutine.resume(coroutine.create(function()
  3719. swait(1)
  3720. lb.Touched:connect(function(hit)
  3721. if hitted == false then
  3722. hitted = true
  3723. lb.Transparency = 1
  3724. lb.Anchored = true
  3725. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3726. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3727. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3728. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3729. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3730. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3731. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3732. CameraEnshaking(1,5)
  3733. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3734. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3735. for i = 0, 9 do
  3736. 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)
  3737. end
  3738. for i = 0, 49 do
  3739. swait()
  3740. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3741. 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)
  3742. end
  3743. end
  3744. end)
  3745. end))
  3746. end
  3747. Overed = true
  3748. orb:Destroy()
  3749. end))
  3750.  
  3751. attack = false
  3752. end
  3753.  
  3754. function StarfallEX()
  3755. attack = true
  3756. hum.WalkSpeed = 0
  3757. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3758. for i = 0, 10, 0.1 do
  3759. swait()
  3760. 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)
  3761. 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)
  3762. 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)
  3763. 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)
  3764. 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)
  3765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3766. 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)
  3767. 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)
  3768. end
  3769. local Overed = false
  3770. CameraEnshaking(2,20)
  3771. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3772. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3773. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3774. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3775. local orb = Instance.new("Part", char)
  3776. orb.Anchored = true
  3777. orb.BrickColor = BrickColor.new("Toothpaste")
  3778. orb.CanCollide = false
  3779. orb.FormFactor = 3
  3780. orb.Name = "Remenant"
  3781. orb.Material = "Neon"
  3782. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3783. orb.Size = Vector3.new(1, 1, 1)
  3784. orb.Transparency = 1
  3785. orb.TopSurface = 0
  3786. orb.BottomSurface = 0
  3787. hum.WalkSpeed = storehumanoidWS
  3788. coroutine.resume(coroutine.create(function()
  3789. for i = 0, 4 do
  3790. swait(15)
  3791. local lb = Instance.new("Part")
  3792. lb.Color = MAINRUINCOLOR.Color
  3793. lb.CanCollide = false
  3794. lb.Material = "Neon"
  3795. lb.Anchored = true
  3796. lb.TopSurface = 0
  3797. lb.BottomSurface = 0
  3798. lb.Transparency = 0
  3799. lb.Size = vt(1,1,1)
  3800. 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)))
  3801. lb.Anchored = false
  3802. lb.Parent = char
  3803. local thingery = Instance.new("SpecialMesh",lb)
  3804. thingery.MeshType = "Sphere"
  3805. thingery.Scale = vt(50,50,50)
  3806. game:GetService("Debris"):AddItem(lb, 10)
  3807. local bv = Instance.new("BodyVelocity")
  3808. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3809. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3810. bv.Parent = lb
  3811. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3812. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3813. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3814. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3815. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3816. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3817. local hitted = false
  3818. coroutine.resume(coroutine.create(function()
  3819. while true do
  3820. swait(1)
  3821. if lb.Parent ~= nil and hitted == false then
  3822. 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)
  3823. elseif lb.Parent == nil then
  3824. break
  3825. end
  3826. end
  3827. end))
  3828.  
  3829. game:GetService("Debris"):AddItem(a, 0.1)
  3830.  
  3831. coroutine.resume(coroutine.create(function()
  3832. swait(1)
  3833. lb.Touched:connect(function(hit)
  3834. if hitted == false then
  3835. hitted = true
  3836. lb.Transparency = 1
  3837. lb.Anchored = true
  3838. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3839. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3840. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3841. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3842. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3843. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3844. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3845. CameraEnshaking(1,5)
  3846. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3847. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3848. for i = 0, 9 do
  3849. 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)
  3850. end
  3851. for i = 0, 99 do
  3852. swait()
  3853. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3854. 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)
  3855. end
  3856. end
  3857. end)
  3858. end))
  3859. end
  3860. Overed = true
  3861. orb:Destroy()
  3862. end))
  3863.  
  3864. attack = false
  3865. end
  3866.  
  3867. function DivineBlast()
  3868. attack = true
  3869. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3870. hum.WalkSpeed = 0
  3871. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3872. elocacenter.Anchored = true
  3873. elocacenter.CFrame = sorb.CFrame
  3874. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3875. eloca1.Anchored = true
  3876. eloca1.CFrame = elocacenter.CFrame
  3877. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3878. eloca2.Anchored = true
  3879. eloca2.CFrame = elocacenter.CFrame
  3880. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3881. eloca3.Anchored = true
  3882. eloca3.CFrame = elocacenter.CFrame
  3883. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3884. eloca4.Anchored = true
  3885. eloca4.CFrame = elocacenter.CFrame
  3886. local lookavec = 0
  3887. local speeds = 0
  3888. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3889. for i = 0, 3, 0.1 do
  3890. swait()
  3891. ---
  3892. lookavec = lookavec + 0.1
  3893. speeds = speeds + 10
  3894. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3895. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3896. 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)
  3897.  
  3898. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3899. 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)
  3900.  
  3901. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3902. 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)
  3903.  
  3904. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3905. 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)
  3906. ---
  3907. root.CFrame = FaceMouse()[1]
  3908. 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)
  3909. 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)
  3910. 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)
  3911. 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)
  3912. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3913. 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)
  3914. end
  3915. for i = 0, 3, 0.1 do
  3916. swait()
  3917. ---
  3918. speeds = speeds + 10
  3919. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3920. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3921. 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)
  3922.  
  3923. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3924. 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)
  3925.  
  3926. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3927. 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)
  3928.  
  3929. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3930. 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)
  3931. ---
  3932. root.CFrame = FaceMouse()[1]
  3933. 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)
  3934. 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)
  3935. 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)
  3936. 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)
  3937. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3938. 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)
  3939. end
  3940. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3941. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3942. for i = 0, 3, 0.1 do
  3943. swait()
  3944. ---
  3945. speeds = speeds + 10
  3946. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3947. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3948. 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)
  3949.  
  3950. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3951. 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)
  3952.  
  3953. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3954. 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)
  3955.  
  3956. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3957. 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)
  3958. ---
  3959. root.CFrame = FaceMouse()[1]
  3960. 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)
  3961. 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)
  3962. 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)
  3963. 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)
  3964. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3965. 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)
  3966. end
  3967. coroutine.resume(coroutine.create(function()
  3968. local a = Instance.new("Part",Character)
  3969. a.Name = "Direction"
  3970. a.Anchored = true
  3971. a.BrickColor = bc("White")
  3972. a.Material = "Neon"
  3973. a.Transparency = 0
  3974. a.Shape = "Cylinder"
  3975. a.CanCollide = false
  3976. local a2 = Instance.new("Part",Character)
  3977. a2.Name = "Direction"
  3978. a2.Anchored = true
  3979. a2.BrickColor = bc("Bright yellow")
  3980. a2.Material = "Neon"
  3981. a2.Transparency = 0
  3982. a2.Shape = "Cylinder"
  3983. a2.CanCollide = false
  3984. local b = Instance.new("Part",Character)
  3985. b.Name = "HitDirect"
  3986. b.Anchored = true
  3987. b.BrickColor = bc("Cool yellow")
  3988. b.Material = "Neon"
  3989. b.Transparency = 1
  3990. b.CanCollide = false
  3991. local ray = Ray.new(
  3992. elocacenter.CFrame.p, -- origin
  3993. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3994. )
  3995. local ignore = Character
  3996. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3997. a.BottomSurface = 10
  3998. a.TopSurface = 10
  3999. a2.BottomSurface = 10
  4000. a2.TopSurface = 10
  4001. local distance = (elocacenter.CFrame.p - position).magnitude
  4002. a.Size = Vector3.new(distance, 1, 1)
  4003. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4004. a2.Size = Vector3.new(distance, 1, 1)
  4005. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4006. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4007. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4008. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4009. game:GetService("Debris"):AddItem(a, 10)
  4010. game:GetService("Debris"):AddItem(a2, 10)
  4011. game:GetService("Debris"):AddItem(b, 10)
  4012. local eff = Instance.new("ParticleEmitter",b)
  4013. eff.Texture = "rbxassetid://2273224484"
  4014. eff.LightEmission = 1
  4015. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4016. eff.Rate = 500000
  4017. eff.Lifetime = NumberRange.new(0.5,2)
  4018. 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)})
  4019. 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)})
  4020. eff.Speed = NumberRange.new(20,250)
  4021. eff.Drag = 5
  4022. eff.Rotation = NumberRange.new(-500,500)
  4023. eff.VelocitySpread = 9000
  4024. eff.RotSpeed = NumberRange.new(-50,50)
  4025. coroutine.resume(coroutine.create(function()
  4026. wait(0.25)
  4027. eff.Enabled = false
  4028. end))
  4029. local msh = Instance.new("SpecialMesh",a)
  4030. msh.MeshType = "Cylinder"
  4031. msh.Scale = vt(1,2,2)
  4032. local msh2 = Instance.new("SpecialMesh",a2)
  4033. msh2.MeshType = "Cylinder"
  4034. msh2.Scale = vt(1,2.5,2.5)
  4035. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4036. coroutine.resume(coroutine.create(function()
  4037. for i = 0,10,0.1 do
  4038. swait()
  4039. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4040. a.Transparency = a.Transparency + 0.025
  4041. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4042. a2.Transparency = a2.Transparency + 0.05
  4043. end
  4044. a:Destroy()
  4045. a2:Destroy()
  4046. end))
  4047. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4048. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4049. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4050. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4051. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4052. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4053. MagniDamage(b, 25, 40,65, 0, "Normal")
  4054. for i = 0, 49 do
  4055. 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)
  4056. 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)
  4057. end
  4058. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4059. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4060. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4061. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4062. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4063. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4064. end))
  4065. game:GetService("Debris"):AddItem(elocacenter, 5)
  4066. hum.WalkSpeed = storehumanoidWS
  4067. attack = false
  4068. end
  4069.  
  4070. function StarDivision()
  4071. attack = true
  4072. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4073. for i = 0, 2, 0.1 do
  4074. swait()
  4075. 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)
  4076. 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)
  4077. 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)
  4078. 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)
  4079. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4080. 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)
  4081. end
  4082. local orb = Instance.new("Part", char)
  4083. orb.BrickColor = MAINRUINCOLOR
  4084. orb.CanCollide = false
  4085. orb.FormFactor = 3
  4086. orb.Name = "Ring"
  4087. orb.Material = "Neon"
  4088. orb.Size = Vector3.new(1, 1, 1)
  4089. orb.Transparency = 0
  4090. orb.TopSurface = 0
  4091. orb.BottomSurface = 0
  4092. local orbm = Instance.new("SpecialMesh", orb)
  4093. orbm.MeshType = "Sphere"
  4094. orbm.Name = "SizeMesh"
  4095. orbm.Scale = vt(2,2,2)
  4096. local a = Instance.new("Part",workspace)
  4097. a.Name = "Direction"
  4098. a.Anchored = true
  4099. a.BrickColor = bc("Bright red")
  4100. a.Material = "Neon"
  4101. a.Transparency = 1
  4102. a.CanCollide = false
  4103. local ray = Ray.new(
  4104. sorb.CFrame.p, -- origin
  4105. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4106. )
  4107. local ignore = sorb
  4108. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4109. a.BottomSurface = 10
  4110. a.TopSurface = 10
  4111. local distance = (sorb.CFrame.p - position).magnitude
  4112. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4113. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4114. orb.CFrame = a.CFrame
  4115. a:Destroy()
  4116. local bv = Instance.new("BodyVelocity")
  4117. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4118. bv.velocity = orb.CFrame.lookVector*100
  4119. bv.Parent = orb
  4120. local hitted = false
  4121. game:GetService("Debris"):AddItem(orb, 10)
  4122. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4123. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4124. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4125. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4126. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4127. coroutine.resume(coroutine.create(function()
  4128. while true do
  4129. swait(1)
  4130. if orb.Parent ~= nil and hitted == false then
  4131. 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)
  4132. elseif orb.Parent == nil then
  4133. break
  4134. end
  4135. end
  4136. end))
  4137. coroutine.resume(coroutine.create(function()
  4138. swait(1)
  4139. orb.Touched:connect(function(hit)
  4140. if hitted == false then
  4141. hitted = true
  4142. game:GetService("Debris"):AddItem(orb, 5)
  4143. orb.Transparency = 1
  4144. orb.Anchored = true
  4145. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4146. elocacenter.Anchored = true
  4147. elocacenter.CFrame = orb.CFrame
  4148. elocacenter.Orientation = vt(0,0,0)
  4149. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4150. eloca1.Anchored = true
  4151. eloca1.CFrame = elocacenter.CFrame
  4152. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4153. eloca2.Anchored = true
  4154. eloca2.CFrame = elocacenter.CFrame
  4155. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4156. eloca3.Anchored = true
  4157. eloca3.CFrame = elocacenter.CFrame
  4158. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4159. eloca4.Anchored = true
  4160. eloca4.CFrame = elocacenter.CFrame
  4161. local lookavec = 0
  4162. local speeds = 0
  4163. CameraEnshaking(1,1)
  4164. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4165. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4166. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4167. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4168. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4169. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4170. for i = 0, 99 do
  4171. swait()
  4172. lookavec = lookavec + 1
  4173. speeds = speeds + 0.1
  4174. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4175. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4176. 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)
  4177.  
  4178. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4179. 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)
  4180.  
  4181. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4182. 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)
  4183.  
  4184. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4185. 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)
  4186. end
  4187.  
  4188. for i = 0, 149 do
  4189. swait()
  4190. speeds = speeds + 0.1
  4191. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4192. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4193. 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)
  4194.  
  4195. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4196. 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)
  4197.  
  4198. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4199. 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)
  4200.  
  4201. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4202. 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)
  4203. end
  4204. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4205. if v:FindFirstChild('Head') then
  4206. dmg(v)
  4207. end
  4208. end
  4209. CameraEnshaking(7,30)
  4210. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4211. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4212. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4213. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4214. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4215. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4216. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4217. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4218. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4219. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4220. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4221. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4222. for i = 0, 24 do
  4223. 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)
  4224. 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)
  4225. 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)
  4226. 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)
  4227. end
  4228. coroutine.resume(coroutine.create(function()
  4229. for i = 0, 499 do
  4230. swait(1)
  4231. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4232. 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)
  4233. end
  4234. elocacenter:Destroy()
  4235. eloca1:Destroy()
  4236. eloca2:Destroy()
  4237. eloca3:Destroy()
  4238. eloca4:Destroy()
  4239. end))
  4240. end
  4241. end)
  4242. end))
  4243. attack = false
  4244. end
  4245.  
  4246.  
  4247. function THE_TRUE_POWER_OF_VIOLENCE()
  4248. attack = true
  4249. hum.WalkSpeed = 0
  4250. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4251. for i = 0, 10, 0.1 do
  4252. swait()
  4253. 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)
  4254. 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)
  4255. 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)
  4256. 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)
  4257. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4258. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4259. 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)
  4260. end
  4261. local orb = Instance.new("Part", char)
  4262. orb.BrickColor = MAINRUINCOLOR
  4263. orb.CanCollide = false
  4264. orb.FormFactor = 3
  4265. orb.Name = "Ring"
  4266. orb.Material = "Neon"
  4267. orb.Size = Vector3.new(1, 1, 1)
  4268. orb.Transparency = 0
  4269. orb.TopSurface = 0
  4270. orb.BottomSurface = 0
  4271. orb.CFrame = sorb.CFrame
  4272. local orbm = Instance.new("SpecialMesh", orb)
  4273. orbm.MeshType = "Sphere"
  4274. orbm.Name = "SizeMesh"
  4275. orbm.Scale = vt(0,0,0)
  4276. local sbs = Instance.new("BodyPosition", orb)
  4277. sbs.P = 3000
  4278. sbs.D = 1000
  4279. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4280. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4281. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4282. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4283. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4284. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4285. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4286. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4287. for i = 0, 10, 0.1 do
  4288. swait()
  4289. 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)
  4290. 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)
  4291. 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)
  4292. 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)
  4293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4294. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4295. 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)
  4296. end
  4297. orb.Anchored = true
  4298. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4299. elocacenter.Anchored = true
  4300. elocacenter.CFrame = orb.CFrame
  4301. elocacenter.Orientation = vt(0,0,0)
  4302. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4303. eloca1.Anchored = true
  4304. eloca1.CFrame = elocacenter.CFrame
  4305. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4306. eloca2.Anchored = true
  4307. eloca2.CFrame = elocacenter.CFrame
  4308. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4309. eloca3.Anchored = true
  4310. eloca3.CFrame = elocacenter.CFrame
  4311. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4312. eloca4.Anchored = true
  4313. eloca4.CFrame = elocacenter.CFrame
  4314. local lookavec = 0
  4315. local speeds = 0
  4316. CameraEnshaking(1,1)
  4317. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4318. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4319. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4320. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4321. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4322. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4323. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4324. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4325. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4326. for i = 0, 99 do
  4327. swait()
  4328. lookavec = lookavec + 2.5
  4329. speeds = speeds + 0.25
  4330. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4331. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4332. 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)
  4333.  
  4334. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4335. 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)
  4336.  
  4337. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4338. 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)
  4339.  
  4340. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4341. 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)
  4342. end
  4343.  
  4344. for i = 0, 149 do
  4345. swait()
  4346. speeds = speeds + 0.25
  4347. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4348. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4349. 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)
  4350.  
  4351. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4352. 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)
  4353.  
  4354. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4355. 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)
  4356.  
  4357. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4358. 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)
  4359. end
  4360. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4361. for i = 0, 99 do
  4362. swait()
  4363. lookavec = lookavec - 2.5
  4364. speeds = speeds + 0.25
  4365. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4366. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4367. 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)
  4368.  
  4369. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4370. 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)
  4371.  
  4372. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4373. 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)
  4374.  
  4375. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4376. 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)
  4377. end
  4378. local scaled = 0.1*75
  4379. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4380. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4381. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4382. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4383. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4384. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4385. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4386. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4387. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4388. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4389. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4390.  
  4391. for i = 0, 10, 0.1 do
  4392. swait()
  4393. scaled = scaled - 0.001*75
  4394. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4395. 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)
  4396. 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)
  4397. 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)
  4398. 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)
  4399. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4400. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4401. 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)
  4402. end
  4403. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4404. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4405. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4406. for x = 0, 4 do
  4407. for i = 0, 9 do
  4408. 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)
  4409. end
  4410. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4411. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4412. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4413. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4414. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4415. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4416. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4417. for i = 0, 5, 0.1 do
  4418. swait()
  4419. 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)
  4420. 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)
  4421. 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)
  4422. 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)
  4423. 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)
  4424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4425. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4426. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4427. end
  4428. end
  4429. local speedearn = 0
  4430. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4431. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4432. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4433. for i = 0, 30, 0.1 do
  4434. swait()
  4435. scaled = scaled - 0.001*75/10
  4436. speedearn = speedearn + 0.5
  4437. for i = 0, 4 do
  4438. 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)
  4439. end
  4440. 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)
  4441. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4442. 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)
  4443. 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)
  4444. 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)
  4445. 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)
  4446. 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)
  4447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4448. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4449. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4450. end
  4451. orb.Transparency = 1
  4452. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4453. if v:FindFirstChild('Head') then
  4454. dmg(v)
  4455. end
  4456. end
  4457. CameraEnshaking(7,30)
  4458. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4459. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4460. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4461. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4462. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4463. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4464. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4465. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4466. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4467. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4468. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4469. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4470. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4471. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4472. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4474. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4475. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4476. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4477. for i = 0, 99 do
  4478. 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)
  4479. 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)
  4480. end
  4481. for i = 0, 24 do
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. 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)
  4487. end
  4488. game:GetService("Debris"):AddItem(orb, 10)
  4489. hum.WalkSpeed = storehumanoidWS
  4490. attack = false
  4491. end
  4492.  
  4493.  
  4494. function ViolentRing()
  4495. attack = true
  4496. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4497. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4498. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4499. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4500. for i = 0, 2, 0.1 do
  4501. swait()
  4502. local snap = math.random(1,10)
  4503. if snap == 1 then
  4504. 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)
  4505. end
  4506. 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)
  4507. 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)
  4508. 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)
  4509. 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)
  4510. 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)
  4511. 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)
  4512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4514. 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)
  4515. RootPart.CFrame = FaceMouse()[1]
  4516. end
  4517. local orb = Instance.new("Part", char)
  4518. orb.BrickColor = MAINRUINCOLOR
  4519. orb.CanCollide = false
  4520. orb.FormFactor = 3
  4521. orb.Name = "Ring"
  4522. orb.Material = "Neon"
  4523. orb.Size = Vector3.new(1, 1, 1)
  4524. orb.Transparency = 0
  4525. orb.TopSurface = 0
  4526. orb.BottomSurface = 0
  4527. local orbm = Instance.new("SpecialMesh", orb)
  4528. orbm.MeshType = "Sphere"
  4529. orbm.Name = "SizeMesh"
  4530. orbm.Scale = vt(2,2,2)
  4531. orb.CFrame = mouse.Hit
  4532. local bv = Instance.new("BodyVelocity")
  4533. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4534. bv.velocity = orb.CFrame.lookVector*100
  4535. bv.Parent = orb
  4536. local hitted = false
  4537. coroutine.resume(coroutine.create(function()
  4538. game:GetService("Debris"):AddItem(orb, 5)
  4539. orb.Transparency = 1
  4540. orb.Anchored = true
  4541. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4542. elocacenter.Anchored = true
  4543. elocacenter.CFrame = orb.CFrame
  4544. elocacenter.Orientation = vt(0,0,0)
  4545. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4546. eloca1.Anchored = true
  4547. eloca1.CFrame = elocacenter.CFrame
  4548. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4549. eloca2.Anchored = true
  4550. eloca2.CFrame = elocacenter.CFrame
  4551. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4552. eloca3.Anchored = true
  4553. eloca3.CFrame = elocacenter.CFrame
  4554. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4555. eloca4.Anchored = true
  4556. eloca4.CFrame = elocacenter.CFrame
  4557. local lookavec = 0
  4558. local speeds = 0
  4559. CameraEnshaking(1,1)
  4560. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4561. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4562. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4563. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4564. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4565. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4566. for i = 0, 24 do
  4567. swait()
  4568. lookavec = lookavec + 3.5
  4569. speeds = speeds + 1
  4570. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4571. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4572. 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)
  4573.  
  4574. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4575. 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)
  4576.  
  4577. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4578. 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)
  4579.  
  4580. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4581. 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)
  4582. end
  4583.  
  4584. local risen = 0
  4585. for i = 0, 49 do
  4586. swait()
  4587. risen = risen + 0.05
  4588. speeds = speeds + 0.1
  4589. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4590. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4591. 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)
  4592.  
  4593. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4594. 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)
  4595.  
  4596. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4597. 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)
  4598.  
  4599. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4600. 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)
  4601. end
  4602. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4603. if v:FindFirstChild('Head') then
  4604. dmg(v)
  4605. end
  4606. end
  4607. CameraEnshaking(4,10)
  4608. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4609. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4610. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4611. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4612. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4613. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4614. local eff = Instance.new("ParticleEmitter",elocacenter)
  4615. eff.Texture = "rbxassetid://2273224484"
  4616. eff.LightEmission = 1
  4617. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4618. eff.Rate = 1000000
  4619. eff.Lifetime = NumberRange.new(0.5,2)
  4620. 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)})
  4621. 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)})
  4622. eff.Speed = NumberRange.new(20,250)
  4623. eff.Drag = 5
  4624. eff.Rotation = NumberRange.new(-500,500)
  4625. eff.VelocitySpread = 5000000
  4626. eff.RotSpeed = NumberRange.new(-50,50)
  4627. coroutine.resume(coroutine.create(function()
  4628. wait(1)
  4629. eff.Enabled = false
  4630. end))
  4631. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4632. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4633. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4634. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4635. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4636. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4637. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4638. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4639. for i = 0, 24 do
  4640. 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)
  4641. 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)
  4642. 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)
  4643. 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)
  4644. end
  4645. coroutine.resume(coroutine.create(function()
  4646. wait(10)
  4647. elocacenter:Destroy()
  4648. eloca1:Destroy()
  4649. eloca2:Destroy()
  4650. eloca3:Destroy()
  4651. eloca4:Destroy()
  4652. end))
  4653. end))
  4654. attack = false
  4655. end
  4656.  
  4657. function UniversalCollapse()
  4658. attack = true
  4659. local speedearn = 0
  4660. hum.WalkSpeed = 0
  4661. local sbs = Instance.new("BodyPosition", root)
  4662. sbs.P = 3000
  4663. sbs.D = 1000
  4664. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4665. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4666. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4667. for i = 0, 85, 0.1 do
  4668. swait()
  4669. speedearn = speedearn + 0.1
  4670. 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)
  4671. 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)
  4672. 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)
  4673. 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)
  4674. 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)
  4675. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4676. 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)
  4677. 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)
  4678. 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)
  4679. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4680. 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)
  4681. 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)
  4682. end
  4683. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4684. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4685. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4686. for i = 0, 25, 0.1 do
  4687. swait()
  4688. speedearn = speedearn + 0.1
  4689. 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)
  4690. 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)
  4691. 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)
  4692. 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)
  4693. 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)
  4694. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4695. 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)
  4696. 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)
  4697. 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)
  4698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4699. 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)
  4700. 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)
  4701. end
  4702. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4703. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4704. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4705. CameraEnshaking(5,50)
  4706. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4707. for i = 0, 2 do
  4708. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4709. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4710. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4711. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4712. end
  4713. for i = 0, 49 do
  4714. 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)
  4715. 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)
  4716. 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)
  4717. 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)
  4718. end
  4719. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4720. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4721. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4722. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4723. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4724. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4725. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4726. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4727. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4728. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4729. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4730. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4731. for i = 0, 99 do
  4732. 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)
  4733. 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)
  4734. end
  4735. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4736. if v:FindFirstChild('Head') then
  4737. dmg(v)
  4738. end
  4739. end
  4740. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4741. sbs:Destroy()
  4742. hum.WalkSpeed = storehumanoidWS
  4743. attack = false
  4744. end
  4745.  
  4746.  
  4747. function ChaosEND()
  4748. attack = true
  4749. local speedearn = 0
  4750. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4751. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4752. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4753. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4754. for i = 0, 15, 0.1 do
  4755. swait()
  4756. speedearn = speedearn + 0.25
  4757. 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)
  4758. 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)
  4759. 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)
  4760. 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)
  4761. 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)
  4762. 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)
  4763. 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)
  4764. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4766. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4767. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4768. end
  4769. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4770. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4771. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4772. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4773. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4774. CameraEnshaking(5,25)
  4775. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4776. if v:FindFirstChild('Head') then
  4777. dmg(v)
  4778. end
  4779. end
  4780. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4781. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4782. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4783. for i = 0, 3, 0.1 do
  4784. swait()
  4785. 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)
  4786. 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)
  4787. 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)
  4788. 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)
  4789. 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)
  4790. 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)
  4791. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4792. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4793. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4794. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4795. end
  4796. attack = false
  4797. end
  4798.  
  4799. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4800. local orb = Instance.new("Part", char)
  4801. orb.Anchored = true
  4802. orb.BrickColor = color
  4803. orb.CanCollide = false
  4804. orb.FormFactor = 3
  4805. orb.Name = "Ring"
  4806. orb.Material = "Neon"
  4807. orb.Size = Vector3.new(1, 1, 1)
  4808. orb.Transparency = 0
  4809. orb.TopSurface = 0
  4810. orb.BottomSurface = 0
  4811. local orbm = Instance.new("SpecialMesh", orb)
  4812. orbm.MeshType = "Sphere"
  4813. orb.CFrame = positted
  4814. orbm.Name = "SizeMesh"
  4815. orbm.Scale = vt(1,1,1)
  4816. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4817. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4818. --[[for i = 0, 2 do
  4819. 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)
  4820. end]]--
  4821. coroutine.resume(coroutine.create(function()
  4822. wait(timer)
  4823. CameraEnshaking(3,ShakePower)
  4824. orb.Transparency = 1
  4825. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4826. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4827. --[[for i = 0, 4 do
  4828. 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)
  4829. end]]--
  4830. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4831. wait(3)
  4832. orb:Destroy()
  4833. end))
  4834. end
  4835.  
  4836. function orb_spawn(positted,timer)
  4837. local randomcol = math.random(1,2)
  4838. local orb = Instance.new("Part", char)
  4839. orb.Anchored = true
  4840. if randomcol == 1 then
  4841. orb.BrickColor = BrickColor.new("White")
  4842. elseif randomcol == 2 then
  4843. orb.BrickColor = BrickColor.new("Really black")
  4844. end
  4845. orb.CanCollide = false
  4846. orb.FormFactor = 3
  4847. orb.Name = "Ring"
  4848. orb.Material = "Neon"
  4849. orb.Size = Vector3.new(1, 1, 1)
  4850. orb.Transparency = 0
  4851. orb.TopSurface = 0
  4852. orb.BottomSurface = 0
  4853. local orbm = Instance.new("SpecialMesh", orb)
  4854. orbm.MeshType = "Sphere"
  4855. orb.CFrame = positted
  4856. orbm.Name = "SizeMesh"
  4857. orbm.Scale = vt(1,1,1)
  4858. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4859. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4860. for i = 0, 2 do
  4861. 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)
  4862. end
  4863. coroutine.resume(coroutine.create(function()
  4864. wait(timer)
  4865. CameraEnshaking(3,2)
  4866. orb.Transparency = 1
  4867. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4868. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4869. for i = 0, 4 do
  4870. 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)
  4871. end
  4872. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4873. wait(3)
  4874. orb:Destroy()
  4875. end))
  4876. end
  4877.  
  4878. function scattercorrupt()
  4879. attack = true
  4880. hum.WalkSpeed = 0
  4881. for i = 0, 2, 0.1 do
  4882. swait()
  4883. 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)
  4884. 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)
  4885. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4886. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4887. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4888. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4889. end
  4890. local rot = 0
  4891. local randomrotations = math.random(1,2)
  4892. local lookv = 2.5
  4893. local power = 7
  4894. local radm = math.random(1,3)
  4895. if radm == 1 then
  4896. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4897. elseif radm == 2 then
  4898. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4899. elseif radm == 3 then
  4900. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4901. end
  4902. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4903. for i = 0, 1, 0.1 do
  4904. swait()
  4905. 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)
  4906. 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)
  4907. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4908. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4909. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4910. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4911. end
  4912. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4913. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4914. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4915. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4916. for i = 0, 9 do
  4917. 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)
  4918. end
  4919. local hite = Instance.new("Part", char)
  4920. hite.Anchored = true
  4921. hite.CanCollide = false
  4922. hite.FormFactor = 3
  4923. hite.Name = "Ring"
  4924. hite.Material = "Neon"
  4925. hite.Size = Vector3.new(1, 1, 1)
  4926. hite.Transparency = 1
  4927. hite.TopSurface = 0
  4928. hite.BottomSurface = 0
  4929. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4930. local rem = Instance.new("Part", char)
  4931. rem.Anchored = true
  4932. rem.CanCollide = false
  4933. rem.FormFactor = 3
  4934. rem.Name = "Ring"
  4935. rem.Material = "Neon"
  4936. rem.Size = Vector3.new(1, 1, 1)
  4937. rem.Transparency = 1
  4938. rem.TopSurface = 0
  4939. rem.BottomSurface = 0
  4940. rem.CFrame = hite.CFrame
  4941. local rem2 = rem:Clone()
  4942. rem2.Parent = char
  4943. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4944. local rem3 = rem:Clone()
  4945. rem3.Parent = char
  4946. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4947. local rem4 = rem:Clone()
  4948. rem4.Parent = char
  4949. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4950. hite:Destroy()
  4951. coroutine.resume(coroutine.create(function()
  4952. for i = 0, 24 do
  4953. swait(1)
  4954. if randomrotations == 1 then
  4955. rot = rot + 1
  4956. elseif randomrotations == 2 then
  4957. rot = rot - 1
  4958. end
  4959. power = power + 0.5
  4960. lookv = lookv + 7.5
  4961. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4962. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4963. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4964. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4965. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4966. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4967. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4968. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4969. end
  4970. end))
  4971. wait(2)
  4972. hum.WalkSpeed = storehumanoidWS
  4973. attack = false
  4974. end
  4975. function yinyangi()
  4976. attack = true
  4977. for i = 0, 2, 0.1 do
  4978. swait()
  4979. 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)
  4980. 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)
  4981. 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)
  4982. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4983. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4984. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4985. end
  4986. local bv = Instance.new("BodyVelocity")
  4987. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4988. bv.velocity = root.CFrame.lookVector*175
  4989. bv.Parent = root
  4990. for Rotations = 0, 9 do
  4991. for i = 0, 1, 0.5 do
  4992. swait()
  4993. bv.velocity = root.CFrame.lookVector*175
  4994. 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)
  4995. 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)
  4996. 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)
  4997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4998. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4999. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5000. end
  5001. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5002. for i = 0, 1, 0.5 do
  5003. swait()
  5004. bv.velocity = root.CFrame.lookVector*175
  5005. 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)
  5006. 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)
  5007. 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)
  5008. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5009. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5010. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5011. end
  5012. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5013. for i = 0, 1, 0.5 do
  5014. swait()
  5015. bv.velocity = root.CFrame.lookVector*175
  5016. 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)
  5017. 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)
  5018. 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)
  5019. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5021. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5022. end
  5023. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5024. for i = 0, 1, 0.5 do
  5025. swait()
  5026. bv.velocity = root.CFrame.lookVector*175
  5027. 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)
  5028. 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)
  5029. 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)
  5030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5032. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5033. end
  5034. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5035. end
  5036. bv:Destroy()
  5037. attack = false
  5038. end
  5039.  
  5040. function createBGCircle(size,parent,color)
  5041. local bgui = Instance.new("BillboardGui",parent)
  5042. bgui.Size = UDim2.new(size, 0, size, 0)
  5043. local imgc = Instance.new("ImageLabel",bgui)
  5044. imgc.BackgroundTransparency = 1
  5045. imgc.ImageTransparency = 0
  5046. imgc.Size = UDim2.new(1,0,1,0)
  5047. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5048. imgc.ImageColor3 = color
  5049. return bgui,imgc
  5050. end
  5051.  
  5052. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5053. local bgui,imgc = createBGCircle(size,guipar,color)
  5054. bgui.AlwaysOnTop = true
  5055. imgc.Image = "rbxassetid://" ..img
  5056. local rrot = math.random(1,2)
  5057. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5058. coroutine.resume(coroutine.create(function()
  5059. for i = 0, 24*delay do
  5060. swait()
  5061. if rotationenabled == true then
  5062. if rrot == 1 then
  5063. imgc.Rotation = imgc.Rotation + rotsp
  5064. elseif rrot == 2 then
  5065. imgc.Rotation = imgc.Rotation - rotsp
  5066. end
  5067. end
  5068. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5069. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5070. end
  5071. bgui:Destroy()
  5072. end))
  5073. end
  5074. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5075. for i, v in pairs(mw2:GetChildren()) do
  5076. if v:IsA("Part") then
  5077. v.BrickColor = one
  5078. v.Material = "Neon"
  5079. end
  5080. end
  5081. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5082. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5083. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5084. tr1.Color = ColorSequence.new(one.Color)
  5085. tr2.Color = ColorSequence.new(one.Color)
  5086. tr3.Color = ColorSequence.new(one.Color)
  5087. for i, v in pairs(mw1:GetChildren()) do
  5088. if v:IsA("Part") then
  5089. if secondaryenabled == false then
  5090. v.Transparency = 1
  5091. elseif secondaryenabled == true then
  5092. v.Transparency = 0
  5093. end
  5094. v.BrickColor = two
  5095. v.Material = "Neon"
  5096. end
  5097. end
  5098. if secondaryenabled == false then
  5099. tl1.Enabled = false
  5100. tl2.Enabled = false
  5101. tl3.Enabled = false
  5102. elseif secondaryenabled == true then
  5103. tl1.Enabled = true
  5104. tl2.Enabled = true
  5105. tl3.Enabled = true
  5106. end
  5107. tl1.Color = ColorSequence.new(two.Color)
  5108. tl2.Color = ColorSequence.new(two.Color)
  5109. tl3.Color = ColorSequence.new(two.Color)
  5110. for i, v in pairs(m:GetChildren()) do
  5111. if v:IsA("Part") then
  5112. v.BrickColor = three
  5113. v.Material = "Ice"
  5114. end
  5115. end
  5116. for i, v in pairs(m2:GetChildren()) do
  5117. if v:IsA("Part") then
  5118. v.BrickColor = four
  5119. v.Material = "Ice"
  5120. end
  5121. end
  5122. for i, v in pairs(m3:GetChildren()) do
  5123. if v:IsA("Part") then
  5124. v.BrickColor = five
  5125. v.Material = "Neon"
  5126. end
  5127. end
  5128. for i, v in pairs(extrawingmod1:GetChildren()) do
  5129. if v:IsA("Part") then
  5130. v.Transparency = exonetran
  5131. v.BrickColor = exone
  5132. v.Material = "Neon"
  5133. end
  5134. end
  5135. for i, v in pairs(extrawingmod2:GetChildren()) do
  5136. if v:IsA("Part") then
  5137. v.Transparency = extwotran
  5138. v.BrickColor = extwo
  5139. v.Material = "Neon"
  5140. end
  5141. end
  5142. end
  5143.  
  5144.  
  5145. function normalmog()
  5146. attack = true
  5147. hum.WalkSpeed = 0
  5148. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5149. for i = 0,6,0.1 do
  5150. swait()
  5151. 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)
  5152. 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)
  5153. 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)
  5154. 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)
  5155. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5156. 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)
  5157. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5158. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5159. end
  5160. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5161. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5162. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5163. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5164. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5165. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5166. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5167. rainbowmode = false
  5168. chaosmode = false
  5169. ModeOfGlitch = 1
  5170. storehumanoidWS = 16
  5171. newTheme("rbxassetid://723652641",48.6,1,1.25)
  5172. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5173. CameraEnshaking(5,2.5)
  5174. MAINRUINCOLOR = BrickColor.new("Really red")
  5175. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5176. for i = 0, 49 do
  5177. 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)
  5178. end
  5179. for i = 0, 24 do
  5180. 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)
  5181. 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"))
  5182. end
  5183. for i = 0,3,0.1 do
  5184. 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)
  5185. end
  5186. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5187. for i = 0,2,0.1 do
  5188. swait()
  5189. 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)
  5190. 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)
  5191. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5192. 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)
  5193. 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)
  5194. 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)
  5195. end
  5196. hum.WalkSpeed = storehumanoidWS
  5197. attack = false
  5198. end
  5199.  
  5200. function attackone()
  5201. attack = true
  5202. local keptcolor = MAINRUINCOLOR
  5203. for i = 0,1,0.1 do
  5204. swait()
  5205. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5206. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5207. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5208. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5209. 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)
  5210. 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)
  5211. end
  5212. local distlook = 5
  5213. coroutine.resume(coroutine.create(function()
  5214. for i = 0, 4 do
  5215. swait(2)
  5216. CameraEnshaking(2,3)
  5217. local hite = Instance.new("Part", char)
  5218. hite.Anchored = true
  5219. hite.CanCollide = false
  5220. hite.FormFactor = 3
  5221. hite.Name = "Ring"
  5222. hite.Material = "Neon"
  5223. hite.Size = Vector3.new(1, 1, 1)
  5224. hite.Transparency = 1
  5225. hite.TopSurface = 0
  5226. hite.BottomSurface = 0
  5227. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5228. 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)
  5229. 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)
  5230. 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)
  5231. 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)
  5232. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5233. for i = 0, 14 do
  5234. local rsiz = math.random(5,20)
  5235. 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)
  5236. end
  5237. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5238. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5239. game:GetService("Debris"):AddItem(hite, 5)
  5240. distlook = distlook + 10
  5241. end
  5242. end))
  5243. for i = 0,1,0.1 do
  5244. swait()
  5245. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5246. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5247. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5248. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5249. 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)
  5250. 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)
  5251. end
  5252. attack = false
  5253. end
  5254.  
  5255. function attacktwo()
  5256. attack = true
  5257. hum.WalkSpeed = 2
  5258. local keptcolor = MAINRUINCOLOR
  5259. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5260. 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)
  5261. 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)
  5262. for i = 0, 14 do
  5263. 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)
  5264. end
  5265. for i = 0,1,0.1 do
  5266. swait()
  5267. 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)
  5268. 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)
  5269. 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)
  5270. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5271. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5272. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5273. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5274. end
  5275. for i = 0, 1 do
  5276. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5277. for i = 0,1,0.6 do
  5278. swait()
  5279. 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)
  5280. 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"))
  5281. 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)
  5282. 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)
  5283. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5284. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5285. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5286. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5287. end
  5288. for i = 0,1,0.6 do
  5289. swait()
  5290. 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)
  5291. 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"))
  5292. 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)
  5293. 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)
  5294. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5296. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5297. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5298. end
  5299. for i = 0,1,0.6 do
  5300. swait()
  5301. 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)
  5302. 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"))
  5303. 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)
  5304. 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)
  5305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5307. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5308. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5309. end
  5310. for i = 0,1,0.6 do
  5311. swait()
  5312. 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)
  5313. 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"))
  5314. 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)
  5315. 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)
  5316. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5318. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5319. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5320. end
  5321. local rot = 0
  5322. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5323. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5324. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5325. CreateMesh(dis,"Sphere",10,1,10)
  5326. local at1 = Instance.new("Attachment",dis)
  5327. at1.Position = vt(-5,0,0)
  5328. local at2 = Instance.new("Attachment",dis)
  5329. at2.Position = vt(5,0,0)
  5330. local trl = Instance.new('Trail',wed)
  5331. trl.Attachment0 = at1
  5332. trl.Attachment1 = at2
  5333. trl.Texture = "rbxassetid://1049219073"
  5334. trl.LightEmission = 1
  5335. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5336. trl.Color = ColorSequence.new(dis.Color)
  5337. trl.Lifetime = 0.6
  5338. local a = Instance.new("Part",workspace)
  5339. a.Name = "Direction"
  5340. a.Anchored = true
  5341. a.BrickColor = bc("Bright red")
  5342. a.Material = "Neon"
  5343. a.Transparency = 1
  5344. a.CanCollide = false
  5345. local ray = Ray.new(
  5346. dis.CFrame.p, -- origin
  5347. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5348. )
  5349. local ignore = dis
  5350. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5351. a.BottomSurface = 10
  5352. a.TopSurface = 10
  5353. local distance = (dis.CFrame.p - position).magnitude
  5354. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5355. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5356. dis.CFrame = a.CFrame
  5357. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5358. a:Destroy()
  5359. local bv = Instance.new("BodyVelocity")
  5360. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5361. bv.velocity = dis.CFrame.lookVector*250
  5362. bv.Parent = dis
  5363. game:GetService("Debris"):AddItem(dis, 5)
  5364. local hitted = false
  5365. coroutine.resume(coroutine.create(function()
  5366. dis.Touched:connect(function(hit)
  5367. if hitted == false and hit.Parent ~= char then
  5368. hitted = true
  5369. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5370. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5371. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5372. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5373. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5374. coroutine.resume(coroutine.create(function()
  5375. for i = 0, 9 do
  5376. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5377. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5378. local at1 = Instance.new("Attachment",disr)
  5379. at1.Position = vt(-5,0,0)
  5380. local at2 = Instance.new("Attachment",disr)
  5381. at2.Position = vt(5,0,0)
  5382. local trl = Instance.new('Trail',disr)
  5383. trl.Attachment0 = at1
  5384. trl.FaceCamera = true
  5385. trl.Attachment1 = at2
  5386. trl.Texture = "rbxassetid://2342682798"
  5387. trl.LightEmission = 1
  5388. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5389. trl.Color = ColorSequence.new(keptcolor.Color)
  5390. trl.Lifetime = 0.5
  5391. local bv = Instance.new("BodyVelocity")
  5392. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5393. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5394. bv.Parent = disr
  5395. local val = 0
  5396. coroutine.resume(coroutine.create(function()
  5397. swait(30)
  5398. for i = 0, 9 do
  5399. swait()
  5400. val = val + 0.1
  5401. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5402. end
  5403. game:GetService("Debris"):AddItem(disr, 3)
  5404. end))
  5405. end
  5406. local eff = Instance.new("ParticleEmitter",dis)
  5407. eff.Texture = "rbxassetid://2273224484"
  5408. eff.LightEmission = 1
  5409. eff.Color = ColorSequence.new(keptcolor.Color)
  5410. eff.Rate = 500000
  5411. eff.Lifetime = NumberRange.new(0.5,2)
  5412. 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)})
  5413. 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)})
  5414. eff.Speed = NumberRange.new(20,250)
  5415. eff.Drag = 5
  5416. eff.Rotation = NumberRange.new(-500,500)
  5417. eff.VelocitySpread = 9000
  5418. eff.RotSpeed = NumberRange.new(-50,50)
  5419. wait(0.25)
  5420. eff.Enabled = false
  5421. end))
  5422. for i = 0, 9 do
  5423. 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"))
  5424. end
  5425. for i = 0, 19 do
  5426. 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)
  5427. end
  5428. coroutine.resume(coroutine.create(function()
  5429. for i = 0, 19 do
  5430. swait()
  5431. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5432. end
  5433. hum.CameraOffset = vt(0,0,0)
  5434. end))
  5435. dis.Anchored = true
  5436. dis.Transparency = 1
  5437. wait(8)
  5438. dis:Destroy()
  5439. end
  5440. end)
  5441. end))
  5442. rot = rot - 15
  5443. end
  5444. for i = 0,2,0.1 do
  5445. swait()
  5446. 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)
  5447. 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)
  5448. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5449. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5450. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5451. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5452. end
  5453. attack = false
  5454. hum.WalkSpeed = storehumanoidWS
  5455. end
  5456.  
  5457. function attackthree()
  5458. attack = true
  5459. local keptcolor = MAINRUINCOLOR
  5460. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5461. for i = 0,2,0.1 do
  5462. swait()
  5463. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5464. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5465. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5466. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5467. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5468. 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)
  5469. 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)
  5470. end
  5471. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5472. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5473. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5474. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5475. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5476. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5477. for i = 0, 24 do
  5478. 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"))
  5479. end
  5480. for i = 0,4,0.1 do
  5481. swait()
  5482. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5483. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5484. CreateMesh(dis,"Sphere",1,1,1)
  5485. dis.Anchored = true
  5486. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5487. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5488. coroutine.resume(coroutine.create(function()
  5489. swait(30)
  5490. dis.Transparency = 1
  5491. coroutine.resume(coroutine.create(function()
  5492. for i = 0, 19 do
  5493. swait()
  5494. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5495. end
  5496. hum.CameraOffset = vt(0,0,0)
  5497. end))
  5498. coroutine.resume(coroutine.create(function()
  5499. local eff = Instance.new("ParticleEmitter",dis)
  5500. eff.Texture = "rbxassetid://2273224484"
  5501. eff.LightEmission = 1
  5502. eff.Color = ColorSequence.new(dis.Color)
  5503. eff.Rate = 500000
  5504. eff.Lifetime = NumberRange.new(0.5,2)
  5505. 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)})
  5506. 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)})
  5507. eff.Speed = NumberRange.new(50,450)
  5508. eff.Drag = 5
  5509. eff.Rotation = NumberRange.new(-500,500)
  5510. eff.VelocitySpread = 9000
  5511. eff.RotSpeed = NumberRange.new(-50,50)
  5512. wait(0.125)
  5513. eff.Enabled = false
  5514. end))
  5515. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5516. for i = 0, 2 do
  5517. 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)
  5518. end
  5519. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5520. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5521. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5522. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5523. end))
  5524. game:GetService("Debris"):AddItem(dis, 5)
  5525. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5526. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5529. 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)
  5530. 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)
  5531. end
  5532. attack = false
  5533. end
  5534. ----------------------------------- Abilities
  5535.  
  5536. function ExtinctiveHeartbreak()
  5537. local targetted = nil
  5538. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5539. targetted = mouse.Target.Parent
  5540. end
  5541. if targetted ~= nil then
  5542. attack = true
  5543. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5544. for i = 0, 9 do
  5545. 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("Really red"),0)
  5546. end
  5547. for i = 0, 24 do
  5548. 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 red"),0)
  5549. end
  5550. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5551. local originalpos = root.CFrame
  5552. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5553. for i = 0, 9 do
  5554. 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("Really red"),0)
  5555. end
  5556. for i = 0, 24 do
  5557. 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 red"),0)
  5558. end
  5559. hum.WalkSpeed = 0
  5560. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5561. local radm = math.random(1,3)
  5562. if radm == 1 then
  5563. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5564. elseif radm == 2 then
  5565. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5566. elseif radm == 3 then
  5567. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5568. end
  5569. for i = 0,2,0.1 do
  5570. swait()
  5571. 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)
  5572. 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)
  5573. 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)
  5574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5575. 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)
  5576. 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)
  5577. end
  5578. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5579. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5580. for i = 0,2,0.1 do
  5581. swait()
  5582. coroutine.resume(coroutine.create(function()
  5583. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5584. for i,v in pairs(targetted:GetChildren()) do
  5585. if v:IsA("Part") or v:IsA("MeshPart") then
  5586. v.Velocity = vt(0,0,0)
  5587. end
  5588. end
  5589. end))
  5590. 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)
  5591. 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)
  5592. 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)
  5593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5594. 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)
  5595. 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)
  5596. end
  5597. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5598. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5599. for i = 0, 1 do
  5600. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5601. end
  5602. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5603. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5604. for i = 0,4,0.1 do
  5605. swait()
  5606. coroutine.resume(coroutine.create(function()
  5607. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5608. 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)))
  5609. local at1 = Instance.new("Attachment",dis)
  5610. at1.Position = vt(-25000,0,0)
  5611. local at2 = Instance.new("Attachment",dis)
  5612. at2.Position = vt(25000,0,0)
  5613. local trl = Instance.new('Trail',dis)
  5614. trl.Attachment0 = at1
  5615. trl.FaceCamera = true
  5616. trl.Attachment1 = at2
  5617. trl.Texture = "rbxassetid://1049219073"
  5618. trl.LightEmission = 1
  5619. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5620. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5621. trl.Lifetime = 5
  5622. local bv = Instance.new("BodyVelocity")
  5623. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5624. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5625. bv.Parent = dis
  5626. game:GetService("Debris"):AddItem(dis, 5)
  5627. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5628. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5629. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5630. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5631. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5632. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5633. 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)
  5634. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5635. for i = 0, 2 do
  5636. 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("Crimson"))
  5637. end
  5638. 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)
  5639. for i,v in pairs(targetted:GetChildren()) do
  5640. if v:IsA("Part") or v:IsA("MeshPart") then
  5641. v.Velocity = vt(0,0,0)
  5642. end
  5643. end
  5644. end))
  5645. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5646. 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)
  5647. 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)
  5648. 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)
  5649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5650. 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)
  5651. 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)
  5652. end
  5653. hum.CameraOffset = vt(0,0,0)
  5654. for i = 0, 49 do
  5655. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5656. 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)))
  5657. local at1 = Instance.new("Attachment",dis)
  5658. at1.Position = vt(-50000,0,0)
  5659. local at2 = Instance.new("Attachment",dis)
  5660. at2.Position = vt(50000,0,0)
  5661. local trl = Instance.new('Trail',dis)
  5662. trl.Attachment0 = at1
  5663. trl.FaceCamera = true
  5664. trl.Attachment1 = at2
  5665. trl.Texture = "rbxassetid://1049219073"
  5666. trl.LightEmission = 1
  5667. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5668. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5669. trl.Lifetime = 5
  5670. local bv = Instance.new("BodyVelocity")
  5671. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5672. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5673. bv.Parent = dis
  5674. game:GetService("Debris"):AddItem(dis, 5)
  5675. end
  5676. for i = 0, 49 do
  5677. 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)
  5678. 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 red"))
  5679. end
  5680. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5681. for i = 0, 1 do
  5682. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5683. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5684. end
  5685. for i = 0, 4 do
  5686. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5687. end
  5688. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5689. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5690. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5691. dmg(targetted)
  5692. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5693. for i = 0, 9 do
  5694. 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("Really red"),0)
  5695. end
  5696. for i = 0, 24 do
  5697. 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 red"),0)
  5698. end
  5699. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5700. root.CFrame = originalpos
  5701. for i = 0, 9 do
  5702. 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("Really red"),0)
  5703. end
  5704. for i = 0, 24 do
  5705. 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 red"),0)
  5706. end
  5707. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5708. attack = false
  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
  5824. bosschatfunc("THIS IS IT!",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,keptcolor,keptcolor.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,keptcolor,keptcolor.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.  
  6127. function RapidBurst()
  6128. attack = true
  6129. hum.WalkSpeed = 0
  6130. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6131. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6132. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6133. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6134. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6135. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6136. local keptcolor = MAINRUINCOLOR
  6137. for i = 0,8,0.1 do
  6138. swait()
  6139. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6140. 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())
  6141. 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)
  6142. 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)
  6143. 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)
  6144. 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)
  6145. 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)
  6146. 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)
  6147. 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)
  6148. end
  6149. for i = 0, 99 do
  6150. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6151. 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)))
  6152. local at1 = Instance.new("Attachment",dis)
  6153. at1.Position = vt(-25000,0,0)
  6154. local at2 = Instance.new("Attachment",dis)
  6155. at2.Position = vt(25000,0,0)
  6156. local trl = Instance.new('Trail',dis)
  6157. trl.Attachment0 = at1
  6158. trl.FaceCamera = true
  6159. trl.Attachment1 = at2
  6160. trl.Texture = "rbxassetid://1049219073"
  6161. trl.LightEmission = 1
  6162. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6163. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6164. trl.Lifetime = 5
  6165. local bv = Instance.new("BodyVelocity")
  6166. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6167. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6168. bv.Parent = dis
  6169. game:GetService("Debris"):AddItem(dis, 5)
  6170. end
  6171. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6172. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6173. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6174. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6175. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6176. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6177. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6178. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6179. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6180. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6181. hum.CameraOffset = vt(0,0,0)
  6182. for i = 0, 24 do
  6183. 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())
  6184. end
  6185. local distam = 0
  6186. coroutine.resume(coroutine.create(function()
  6187. for i = 0, 99 do
  6188. wait()
  6189. distam = distam + 1
  6190. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6191. xa.Anchored = true
  6192. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6193. game:GetService("Debris"):AddItem(xa, 5)
  6194. for i = 0, 4 do
  6195. 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())
  6196. end
  6197. coroutine.resume(coroutine.create(function()
  6198. local eff = Instance.new("ParticleEmitter",xa)
  6199. eff.Texture = "rbxassetid://2273224484"
  6200. eff.LightEmission = 1
  6201. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6202. eff.Rate = 500000
  6203. eff.Lifetime = NumberRange.new(1,3)
  6204. 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)})
  6205. 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)})
  6206. eff.Speed = NumberRange.new(50,500)
  6207. eff.Drag = 5
  6208. eff.Rotation = NumberRange.new(-500,500)
  6209. eff.VelocitySpread = 9000
  6210. eff.RotSpeed = NumberRange.new(-50,50)
  6211. wait(0.25)
  6212. eff.Enabled = false
  6213. end))
  6214. coroutine.resume(coroutine.create(function()
  6215. for i = 0, 19 do
  6216. swait()
  6217. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6218. end
  6219. hum.CameraOffset = vt(0,0,0)
  6220. end))
  6221. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6222. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6223. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6224. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6225. end
  6226. end))
  6227. attack = false
  6228. hum.WalkSpeed = storehumanoidWS
  6229. end
  6230.  
  6231.  
  6232. function FallenOrbs()
  6233. attack = true
  6234. hum.WalkSpeed = 2
  6235. local keptcolor = MAINRUINCOLOR
  6236. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6237. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6238. local radm = math.random(1,3)
  6239. if radm == 1 then
  6240. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6241. elseif radm == 2 then
  6242. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6243. elseif radm == 3 then
  6244. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6245. end
  6246. coroutine.resume(coroutine.create(function()
  6247. for i = 0, 29 do
  6248. swait(2)
  6249. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6250. dis.Anchored = true
  6251. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6252. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6253. CreateMesh(dis,"Sphere",2,2,2)
  6254. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6255. 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"))
  6256. coroutine.resume(coroutine.create(function()
  6257. wait(0.5)
  6258. dis.Anchored = false
  6259. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6260. local at1 = Instance.new("Attachment",dis)
  6261. at1.Position = vt(-1,0,0)
  6262. local at2 = Instance.new("Attachment",dis)
  6263. at2.Position = vt(1,0,0)
  6264. local trl = Instance.new('Trail',dis)
  6265. trl.Attachment0 = at1
  6266. trl.FaceCamera = true
  6267. trl.Attachment1 = at2
  6268. trl.Texture = "rbxassetid://1049219073"
  6269. trl.LightEmission = 1
  6270. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6271. trl.Color = ColorSequence.new(dis.Color)
  6272. trl.Lifetime = 0.6
  6273. local a = Instance.new("Part",workspace)
  6274. a.Name = "Direction"
  6275. a.Anchored = true
  6276. a.BrickColor = bc("Bright red")
  6277. a.Material = "Neon"
  6278. a.Transparency = 1
  6279. a.CanCollide = false
  6280. local ray = Ray.new(
  6281. dis.CFrame.p, -- origin
  6282. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6283. )
  6284. local ignore = dis
  6285. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6286. a.BottomSurface = 10
  6287. a.TopSurface = 10
  6288. local distance = (dis.CFrame.p - position).magnitude
  6289. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6290. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6291. dis.CFrame = a.CFrame
  6292. a:Destroy()
  6293. local bv = Instance.new("BodyVelocity")
  6294. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6295. bv.velocity = dis.CFrame.lookVector*500
  6296. bv.Parent = dis
  6297. game:GetService("Debris"):AddItem(dis, 5)
  6298. local hitted = false
  6299. coroutine.resume(coroutine.create(function()
  6300. dis.Touched:connect(function(hit)
  6301. if hitted == false and hit.Parent ~= char then
  6302. hitted = true
  6303. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6304. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6305. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6306. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6307. coroutine.resume(coroutine.create(function()
  6308. for i = 0, 4 do
  6309. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6310. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6311. local at1 = Instance.new("Attachment",disr)
  6312. at1.Position = vt(-10,0,0)
  6313. local at2 = Instance.new("Attachment",disr)
  6314. at2.Position = vt(10,0,0)
  6315. local trl = Instance.new('Trail',disr)
  6316. trl.Attachment0 = at1
  6317. trl.FaceCamera = true
  6318. trl.Attachment1 = at2
  6319. trl.Texture = "rbxassetid://2342682798"
  6320. trl.LightEmission = 1
  6321. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6322. trl.Color = ColorSequence.new(disr.Color)
  6323. trl.Lifetime = 0.5
  6324. local bv = Instance.new("BodyVelocity")
  6325. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6326. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6327. bv.Parent = disr
  6328. local val = 0
  6329. coroutine.resume(coroutine.create(function()
  6330. swait(30)
  6331. for i = 0, 9 do
  6332. swait()
  6333. val = val + 0.1
  6334. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6335. end
  6336. game:GetService("Debris"):AddItem(disr, 3)
  6337. end))
  6338. end
  6339. local eff = Instance.new("ParticleEmitter",dis)
  6340. eff.Texture = "rbxassetid://1049219073"
  6341. eff.LightEmission = 1
  6342. eff.Color = ColorSequence.new(dis.Color)
  6343. eff.Rate = 500000
  6344. eff.Lifetime = NumberRange.new(0.5,2)
  6345. 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)})
  6346. 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)})
  6347. eff.Speed = NumberRange.new(20,250)
  6348. eff.Drag = 5
  6349. eff.Rotation = NumberRange.new(-500,500)
  6350. eff.VelocitySpread = 9000
  6351. eff.RotSpeed = NumberRange.new(-50,50)
  6352. wait(0.5)
  6353. eff.Enabled = false
  6354. end))
  6355. for i = 0, 4 do
  6356. 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"))
  6357. end
  6358. coroutine.resume(coroutine.create(function()
  6359. for i = 0, 19 do
  6360. swait()
  6361. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6362. end
  6363. hum.CameraOffset = vt(0,0,0)
  6364. end))
  6365. dis.Anchored = true
  6366. dis.Transparency = 1
  6367. wait(8)
  6368. dis:Destroy()
  6369. end
  6370. end)
  6371. end))
  6372. end))
  6373. end
  6374. end))
  6375. for i = 0,9,0.1 do
  6376. swait()
  6377. 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)
  6378. 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)
  6379. 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)
  6380. 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)
  6381. 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)
  6382. 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)
  6383. 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)
  6384. end
  6385. attack = false
  6386. hum.WalkSpeed = storehumanoidWS
  6387. end
  6388.  
  6389. function CyberSlash()
  6390. local posit = -2
  6391. attack = true
  6392. hum.WalkSpeed = 5
  6393. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6394. local radm = math.random(1,3)
  6395. if radm == 1 then
  6396. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6397. elseif radm == 2 then
  6398. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6399. elseif radm == 3 then
  6400. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6401. end
  6402. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6403. for i = 0,2,0.1 do
  6404. swait()
  6405. 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)
  6406. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6407. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6408. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6409. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6410. 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)
  6411. 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)
  6412. end
  6413. for i = 0, 2 do
  6414. CameraEnshaking(1,2)
  6415. local hite = Instance.new("Part", char)
  6416. hite.Anchored = true
  6417. hite.CanCollide = false
  6418. hite.FormFactor = 3
  6419. hite.Name = "Ring"
  6420. hite.Material = "Neon"
  6421. hite.Size = Vector3.new(1, 1, 1)
  6422. hite.Transparency = 1
  6423. hite.TopSurface = 0
  6424. hite.BottomSurface = 0
  6425. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6426. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6427. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6428. coroutine.resume(coroutine.create(function()
  6429. for i = 0, 1 do
  6430. swait()
  6431. 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)
  6432. 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)
  6433. 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)
  6434. end
  6435. end))
  6436. 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)
  6437. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6438. game:GetService("Debris"):AddItem(hite, 5)
  6439. posit = posit + 2
  6440. end
  6441. for i = 0,1,0.1 do
  6442. swait()
  6443. 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)
  6444. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6445. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6446. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6447. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6448. 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)
  6449. 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)
  6450. end
  6451. for i = 0,1,0.1 do
  6452. swait()
  6453. 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)
  6454. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6455. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6456. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6457. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6458. 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)
  6459. 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)
  6460. end
  6461. posit = -6
  6462. for i = 0, 6 do
  6463. CameraEnshaking(1,3)
  6464. local hite = Instance.new("Part", char)
  6465. hite.Anchored = true
  6466. hite.CanCollide = false
  6467. hite.FormFactor = 3
  6468. hite.Name = "Ring"
  6469. hite.Material = "Neon"
  6470. hite.Size = Vector3.new(1, 1, 1)
  6471. hite.Transparency = 1
  6472. hite.TopSurface = 0
  6473. hite.BottomSurface = 0
  6474. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6475. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6476. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6477. 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)
  6478. coroutine.resume(coroutine.create(function()
  6479. for i = 0, 2 do
  6480. swait()
  6481. 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)
  6482. 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)
  6483. 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)
  6484. end
  6485. end))
  6486. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6487. game:GetService("Debris"):AddItem(hite, 5)
  6488. posit = posit + 2
  6489. end
  6490. for i = 0,1,0.1 do
  6491. swait()
  6492. 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)
  6493. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6494. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6495. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6496. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6497. 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)
  6498. 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)
  6499. end
  6500. hum.WalkSpeed = storehumanoidWS
  6501. attack = false
  6502. end
  6503.  
  6504. function EquinoxOrbs()
  6505. hum.WalkSpeed = 0
  6506. attack = true
  6507. local radm = math.random(1,3)
  6508. if radm == 1 then
  6509. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6510. elseif radm == 2 then
  6511. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6512. elseif radm == 3 then
  6513. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6514. end
  6515. for i = 0,1,0.1 do
  6516. swait()
  6517. 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)
  6518. 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)
  6519. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6522. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6523. end
  6524. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6525. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6526. for i = 0, 24 do
  6527. 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"))
  6528. end
  6529. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6530. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6531. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6532. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6533. for i = 0,4,0.1 do
  6534. swait()
  6535. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6536. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6537. CreateMesh(dis,"Sphere",1,1,1)
  6538. dis.Anchored = true
  6539. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6540. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6541. CreateMesh(dis2,"Sphere",1,1,1)
  6542. dis2.Anchored = true
  6543. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6544. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6545. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6546. coroutine.resume(coroutine.create(function()
  6547. swait(60)
  6548. dis.Transparency = 1
  6549. dis2.Transparency = 1
  6550. coroutine.resume(coroutine.create(function()
  6551. for i = 0, 19 do
  6552. swait()
  6553. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6554. end
  6555. hum.CameraOffset = vt(0,0,0)
  6556. end))
  6557. coroutine.resume(coroutine.create(function()
  6558. local eff = Instance.new("ParticleEmitter",dis)
  6559. eff.Texture = "rbxassetid://2273224484"
  6560. eff.LightEmission = 1
  6561. eff.Color = ColorSequence.new(dis.Color)
  6562. eff.Rate = 500000
  6563. eff.Lifetime = NumberRange.new(0.5,2)
  6564. 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)})
  6565. 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)})
  6566. eff.Speed = NumberRange.new(50,450)
  6567. eff.Drag = 5
  6568. eff.Rotation = NumberRange.new(-500,500)
  6569. eff.VelocitySpread = 9000
  6570. eff.RotSpeed = NumberRange.new(-50,50)
  6571. local eff2 = eff:Clone()
  6572. eff2.Parent = dis2
  6573. eff2.LightEmission = 0
  6574. eff2.Color = ColorSequence.new(dis2.Color)
  6575. wait(0.25)
  6576. eff.Enabled = false
  6577. eff2.Enabled = false
  6578. end))
  6579. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6580. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6581. for i = 0, 2 do
  6582. 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)
  6583. 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)
  6584. end
  6585. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6586. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6587. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6588. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6589. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6590. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6591. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6592. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6593. end))
  6594. game:GetService("Debris"):AddItem(dis, 5)
  6595. game:GetService("Debris"):AddItem(dis2, 5)
  6596. 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)
  6597. 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)
  6598. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6600. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6601. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6602. end
  6603. attack = false
  6604. hum.WalkSpeed = storehumanoidWS
  6605. end
  6606. function FallenDEMISE()
  6607. attack = true
  6608. hum.WalkSpeed = 0
  6609. local keptcolor = MAINRUINCOLOR
  6610. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6611. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6612. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6613. for i = 0, 15, 0.1 do
  6614. swait()
  6615. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6616. 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)))
  6617. local at1 = Instance.new("Attachment",dis)
  6618. at1.Position = vt(-25000,0,0)
  6619. local at2 = Instance.new("Attachment",dis)
  6620. at2.Position = vt(25000,0,0)
  6621. local trl = Instance.new('Trail',dis)
  6622. trl.Attachment0 = at1
  6623. trl.FaceCamera = true
  6624. trl.Attachment1 = at2
  6625. trl.Texture = "rbxassetid://1049219073"
  6626. trl.LightEmission = 1
  6627. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6628. trl.Color = ColorSequence.new(dis.Color)
  6629. trl.Lifetime = 5
  6630. local bv = Instance.new("BodyVelocity")
  6631. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6632. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6633. bv.Parent = dis
  6634. game:GetService("Debris"):AddItem(dis, 1)
  6635. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6636. 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"))
  6637. 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"))
  6638. 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)
  6639. 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)
  6640. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6641. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6642. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6643. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6644. end
  6645. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6646. for i = 0, 30, 0.1 do
  6647. swait()
  6648. coroutine.resume(coroutine.create(function()
  6649. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6650. if v:FindFirstChild('Head') then
  6651. dmg(v)
  6652. end
  6653. end
  6654. end))
  6655. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6656. 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)))
  6657. local at1 = Instance.new("Attachment",dis)
  6658. at1.Position = vt(-50000,0,0)
  6659. local at2 = Instance.new("Attachment",dis)
  6660. at2.Position = vt(50000,0,0)
  6661. local trl = Instance.new('Trail',dis)
  6662. trl.Attachment0 = at1
  6663. trl.FaceCamera = true
  6664. trl.Attachment1 = at2
  6665. trl.Texture = "rbxassetid://1049219073"
  6666. trl.LightEmission = 1
  6667. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6668. trl.Color = ColorSequence.new(dis.Color)
  6669. trl.Lifetime = 10
  6670. local bv = Instance.new("BodyVelocity")
  6671. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6672. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6673. bv.Parent = dis
  6674. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6675. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6676. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6677. 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"))
  6678. 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"))
  6679. 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"))
  6680. 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"))
  6681. for i = 0, 2 do
  6682. 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)
  6683. end
  6684. 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)
  6685. 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)
  6686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6688. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6689. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6690. end
  6691. attack = false
  6692. hum.WalkSpeed = storehumanoidWS
  6693. end
  6694.  
  6695. function SpeedDrop()
  6696. attack = true
  6697. hum.WalkSpeed = 0
  6698. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6699. local poste = 3
  6700. local rotation = 0
  6701. local rate = 0
  6702. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6703. for i = 0, 124 do
  6704. swait()
  6705. rotation = rotation + rate
  6706. poste = poste + 0.1
  6707. rate = rate + 0.1
  6708. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6709. 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)
  6710. 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)
  6711. 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)
  6712. 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)
  6713. 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)
  6714. 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)
  6715. 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)
  6716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6718. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6719. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6720. end
  6721. CameraEnshaking(3,7)
  6722. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6723. local loc = Instance.new("Part", char)
  6724. loc.BrickColor = MAINRUINCOLOR
  6725. loc.CanCollide = false
  6726. loc.FormFactor = 3
  6727. loc.Name = "Ring"
  6728. loc.Material = "Neon"
  6729. loc.Size = Vector3.new(1, 1, 1)
  6730. loc.Transparency = 1
  6731. loc.TopSurface = 0
  6732. loc.BottomSurface = 0
  6733. loc.Anchored = true
  6734. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6735. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6736. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6737. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6738. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6739. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6740. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6741. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6742. coroutine.resume(coroutine.create(function()
  6743. local eff = Instance.new("ParticleEmitter",loc)
  6744. eff.Texture = "rbxassetid://363275192"
  6745. eff.LightEmission = 0.95
  6746. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6747. eff.Rate = 10000
  6748. eff.Lifetime = NumberRange.new(1)
  6749. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6750. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6751. eff.Speed = NumberRange.new(100,500)
  6752. eff.Drag = 5
  6753. eff.Rotation = NumberRange.new(-500,500)
  6754. eff.VelocitySpread = 9000
  6755. eff.RotSpeed = NumberRange.new(-50,50)
  6756. wait(0.5)
  6757. eff.Enabled = false
  6758. end))
  6759. for i = 0, 49 do
  6760. 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)
  6761. end
  6762. for i = 0, 9 do
  6763. 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)
  6764. end
  6765. game:GetService("Debris"):AddItem(loc, 5)
  6766. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6767. hum.WalkSpeed = storehumanoidWS
  6768. attack = false
  6769. end
  6770.  
  6771. function cutesigh()
  6772. attack = true
  6773. hum.WalkSpeed = 0
  6774. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6775. local blush = Instance.new("Decal",hed)
  6776. blush.Texture = "rbxassetid://898404027"
  6777. blush.Face = "Front"
  6778. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6779. for i = 0, 9, 0.1 do
  6780. swait()
  6781. 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)
  6782. 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)
  6783. 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)
  6784. 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)
  6785. 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)
  6786. 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)
  6787. end
  6788. coroutine.resume(coroutine.create(function()
  6789. for i = 0, 49 do
  6790. swait()
  6791. blush.Transparency = blush.Transparency + 0.02
  6792. end
  6793. blush:Destroy()
  6794. end))
  6795. hum.WalkSpeed = storehumanoidWS
  6796. attack = false
  6797. end
  6798.  
  6799. function smiter()
  6800. local targetted = nil
  6801. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6802. targetted = mouse.Target.Parent
  6803. end
  6804. if targetted ~= nil then
  6805. RootPart.CFrame = FaceMouse()[1]
  6806. attack = true
  6807. local radm = math.random(1,3)
  6808. if radm == 1 then
  6809. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6810. elseif radm == 2 then
  6811. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6812. elseif radm == 3 then
  6813. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6814. end
  6815. hum.WalkSpeed = 0
  6816. coroutine.resume(coroutine.create(function()
  6817. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6818. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6819. local vel = Instance.new("BodyPosition", targetted.Head)
  6820. vel.P = 12500
  6821. vel.D = 1000
  6822. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6823. vel.position = targetted.Head.CFrame.p
  6824. end))
  6825. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6826. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6827. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6828. for i = 0,4,0.1 do
  6829. swait()
  6830. 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)
  6831. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6832. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6833. 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)
  6834. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6835. 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)
  6836. 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)
  6837. end
  6838. coroutine.resume(coroutine.create(function()
  6839. CameraEnshaking(6,5)
  6840. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  6841. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  6842. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  6843. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  6844. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6845. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6846. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6847. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6848. coroutine.resume(coroutine.create(function()
  6849. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6850. eff.Texture = "rbxassetid://2273224484"
  6851. eff.LightEmission = 1
  6852. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6853. eff.Rate = 500000
  6854. eff.Lifetime = NumberRange.new(0.5,2)
  6855. 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)})
  6856. 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)})
  6857. eff.Speed = NumberRange.new(20,250)
  6858. eff.Drag = 5
  6859. eff.Rotation = NumberRange.new(-500,500)
  6860. eff.VelocitySpread = 9000
  6861. eff.RotSpeed = NumberRange.new(-50,50)
  6862. wait(0.25)
  6863. eff.Enabled = false
  6864. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6865. eff.Texture = "rbxassetid://363275192"
  6866. eff.LightEmission = 0.95
  6867. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6868. eff.Rate = 10000
  6869. eff.Lifetime = NumberRange.new(1.5)
  6870. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6871. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6872. eff.Speed = NumberRange.new(25,150)
  6873. eff.Drag = 5
  6874. eff.Rotation = NumberRange.new(-500,500)
  6875. eff.VelocitySpread = 9000
  6876. eff.RotSpeed = NumberRange.new(-50,50)
  6877. local eff2 = eff:Clone()
  6878. eff2.Parent = targetted.Head
  6879. eff2.Texture = "rbxassetid://284205403"
  6880. eff2.Rate = 10000
  6881. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6882. eff2.Drag = 5
  6883. eff2.Rotation = NumberRange.new(-500,500)
  6884. eff2.VelocitySpread = 9000
  6885. wait(0.5)
  6886. eff2.Enabled = false
  6887. eff.Enabled = false
  6888. end))
  6889. for i = 0, 9 do
  6890. 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)
  6891. end
  6892. for i = 0, 49 do
  6893. local rsiz = math.random(10,50)
  6894. 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)
  6895. end
  6896. game:GetService("Debris"):AddItem(vel,1)
  6897. dmg(targetted)
  6898. end))
  6899. for i = 0,1,0.1 do
  6900. swait()
  6901. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  6902. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  6903. 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)
  6904. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6905. 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)
  6906. 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)
  6907. end
  6908. attack = false
  6909. hum.WalkSpeed = storehumanoidWS
  6910. end
  6911. end
  6912.  
  6913. function shytaunty()
  6914. attack = true
  6915. hum.WalkSpeed = 0
  6916. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  6917. local blush = Instance.new("Decal",hed)
  6918. blush.Texture = "rbxassetid://898404027"
  6919. blush.Face = "Front"
  6920. for i = 0, 13, 0.1 do
  6921. swait()
  6922. 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)
  6923. 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)
  6924. 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)
  6925. 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)
  6926. 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)
  6927. 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)
  6928. end
  6929. coroutine.resume(coroutine.create(function()
  6930. for i = 0, 49 do
  6931. swait()
  6932. blush.Transparency = blush.Transparency + 0.02
  6933. end
  6934. blush:Destroy()
  6935. end))
  6936. hum.WalkSpeed = storehumanoidWS
  6937. attack = false
  6938. end
  6939.  
  6940. function PureBomb()
  6941. attack = true
  6942. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  6943. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  6944. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  6945. local orb = Instance.new("Part", char)
  6946. orb.Anchored = true
  6947. orb.BrickColor = BrickColor.new("Toothpaste")
  6948. orb.CanCollide = false
  6949. orb.FormFactor = 3
  6950. orb.Name = "Ring"
  6951. orb.Material = "Neon"
  6952. orb.Size = Vector3.new(1, 1, 1)
  6953. orb.Transparency = 0
  6954. orb.TopSurface = 0
  6955. orb.BottomSurface = 0
  6956. local orbm = Instance.new("SpecialMesh", orb)
  6957. orbm.MeshType = "Sphere"
  6958. orbm.Name = "SizeMesh"
  6959. orbm.Scale = vt(0,0,0)
  6960. local scaled = 0.1
  6961. local posid = 0
  6962. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  6963. for i = 0, 5, 0.1 do
  6964. swait()
  6965. scaled = scaled - 0.001
  6966. posid = posid - scaled
  6967. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6968. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  6969. 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)
  6970. 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)
  6971. 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)
  6972. 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)
  6973. 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)
  6974. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6975. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  6976. 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)
  6977. end
  6978. for i = 0, 2, 0.1 do
  6979. swait()
  6980. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6981. 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)
  6982. 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)
  6983. 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)
  6984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  6985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  6986. 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)
  6987. end
  6988. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  6989. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  6990. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  6991. coroutine.resume(coroutine.create(function()
  6992. orb.Anchored = false
  6993. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  6994. local a = Instance.new("Part",workspace)
  6995. a.Name = "Direction"
  6996. a.Anchored = true
  6997. a.BrickColor = bc("Bright red")
  6998. a.Material = "Neon"
  6999. a.Transparency = 1
  7000. a.CanCollide = false
  7001. local ray = Ray.new(
  7002. orb.CFrame.p, -- origin
  7003. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7004. )
  7005. local ignore = orb
  7006. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7007. a.BottomSurface = 10
  7008. a.TopSurface = 10
  7009. local distance = (orb.CFrame.p - position).magnitude
  7010. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7011. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7012. orb.CFrame = a.CFrame
  7013. a:Destroy()
  7014. local bv = Instance.new("BodyVelocity")
  7015. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7016. bv.velocity = orb.CFrame.lookVector*125
  7017. bv.Parent = orb
  7018. local hitted = false
  7019. game:GetService("Debris"):AddItem(orb, 15)
  7020. wait()
  7021. local hit =orb.Touched:connect(function(hit)
  7022. if hitted == false then
  7023. hitted = true
  7024. CameraEnshaking(10,2.5)
  7025. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7026. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7027. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7028. for i = 0, 49 do
  7029. 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)
  7030. end
  7031. local eff = Instance.new("ParticleEmitter",orb)
  7032. eff.Texture = "rbxassetid://2273224484"
  7033. eff.LightEmission = 1
  7034. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7035. eff.Rate = 500000
  7036. eff.Lifetime = NumberRange.new(0.5,2)
  7037. 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)})
  7038. 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)})
  7039. eff.Speed = NumberRange.new(20,250)
  7040. eff.Drag = 5
  7041. eff.Rotation = NumberRange.new(-500,500)
  7042. eff.VelocitySpread = 9000
  7043. eff.RotSpeed = NumberRange.new(-50,50)
  7044. coroutine.resume(coroutine.create(function()
  7045. wait(0.25)
  7046. eff.Enabled = false
  7047. end))
  7048. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7049. for i = 0, 9 do
  7050. 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)
  7051. 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)
  7052. end
  7053. orb.Anchored = true
  7054. orb.Transparency = 1
  7055. local eff = Instance.new("ParticleEmitter",orb)
  7056. eff.Texture = "rbxassetid://2273224484"
  7057. eff.LightEmission = 1
  7058. eff.Color = ColorSequence.new(Color3.new(M))
  7059. eff.Rate = 500000
  7060. eff.Lifetime = NumberRange.new(0.5,2)
  7061. 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)})
  7062. 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)})
  7063. eff.Speed = NumberRange.new(20,250)
  7064. eff.Drag = 5
  7065. eff.Rotation = NumberRange.new(-500,500)
  7066. eff.VelocitySpread = 9000
  7067. eff.RotSpeed = NumberRange.new(-50,50)
  7068. coroutine.resume(coroutine.create(function()
  7069. wait(1)
  7070. eff.Enabled = false
  7071. end))
  7072. wait(8)
  7073. orb:Destroy()
  7074. end
  7075. end)
  7076. end))
  7077. for i = 0, 1, 0.1 do
  7078. swait()
  7079. 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)
  7080. 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)
  7081. 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)
  7082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7084. 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)
  7085. end
  7086. attack = false
  7087. end
  7088.  
  7089.  
  7090. function BeamOfDeath()
  7091. coroutine.resume(coroutine.create(function()
  7092. attack = true
  7093. hum.WalkSpeed = 0
  7094. for i = 0, 11, 0.1 do
  7095. swait()
  7096. 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)
  7097. 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)
  7098. 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(-16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7099. 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)
  7100. 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)
  7101. 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)
  7102. end
  7103. for i = 0, 1, 0.1 do
  7104. swait()
  7105. 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)
  7106. 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)
  7107. 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(16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7108. 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)
  7109. 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)
  7110. 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)
  7111. end
  7112. hum.WalkSpeed = storehumanoidWS
  7113. attack = false
  7114. end))
  7115. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7116. local radm = math.random(1,3)
  7117. if radm == 1 then
  7118. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7119. elseif radm == 2 then
  7120. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7121. elseif radm == 3 then
  7122. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7123. end
  7124. local keptcolor = MAINRUINCOLOR
  7125. local orb = Instance.new("Part", char)
  7126. orb.BrickColor = keptcolor
  7127. orb.CanCollide = false
  7128. orb.FormFactor = 3
  7129. orb.Name = "Ring"
  7130. orb.Material = "Neon"
  7131. orb.Size = Vector3.new(1, 1, 1)
  7132. orb.Transparency = 1
  7133. orb.TopSurface = 0
  7134. orb.BottomSurface = 0
  7135. local orbm = Instance.new("SpecialMesh", orb)
  7136. orbm.MeshType = "Sphere"
  7137. orbm.Name = "SizeMesh"
  7138. orbm.Scale = vt(22.5,10000,22.5)
  7139. orb.CFrame = mouse.Hit
  7140. orb.Anchored = true
  7141. orb.Orientation = vt(0,0,0)
  7142. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7143. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7144. coroutine.resume(coroutine.create(function()
  7145. coroutine.resume(coroutine.create(function()
  7146. for i = 0, 175 do
  7147. swait()
  7148. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7149. orb.Transparency = orb.Transparency - 0.005
  7150. end
  7151. end))
  7152. wait(2)
  7153. coroutine.resume(coroutine.create(function()
  7154. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7155. if hfr ~= nil then
  7156. for i = 0, 24.5 do
  7157. local deb = Instance.new("Part", char)
  7158. deb.Anchored = true
  7159. deb.CanCollide = false
  7160. deb.FormFactor = 3
  7161. deb.Name = "Ring"
  7162. deb.Material = hitfloor.Material
  7163. deb.Color = hitfloor.Color
  7164. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7165. deb.Transparency = 0
  7166. deb.TopSurface = 0
  7167. deb.BottomSurface = 0
  7168. 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)))
  7169. local deb2 = Instance.new("Part", char)
  7170. deb2.CanCollide = false
  7171. deb2.FormFactor = 3
  7172. deb2.Name = "Ring"
  7173. deb2.Material = hitfloor.Material
  7174. deb2.Color = hitfloor.Color
  7175. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7176. deb2.Transparency = 0
  7177. deb2.TopSurface = 0
  7178. deb2.BottomSurface = 0
  7179. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7180. 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)))
  7181. local eff = Instance.new("ParticleEmitter",deb)
  7182. eff.Texture = "rbxassetid://363275192"
  7183. eff.LightEmission = 0.95
  7184. eff.Color = ColorSequence.new(keptcolor.Color)
  7185. eff.Rate = 100
  7186. eff.Lifetime = NumberRange.new(1)
  7187. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7188. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7189. eff.Speed = NumberRange.new(0,5)
  7190. eff.Rotation = NumberRange.new(-500,500)
  7191. eff.VelocitySpread = 9000
  7192. eff.RotSpeed = NumberRange.new(-10,10)
  7193. local at1 = Instance.new('Attachment',deb2)
  7194. at1.Position = vt(0,15,0)
  7195. local at2 = Instance.new('Attachment',deb2)
  7196. at2.Position = vt(0,-15,0)
  7197. local tl = Instance.new('Trail',deb2)
  7198. tl.Attachment0 = at1
  7199. tl.Attachment1 = at2
  7200. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7201. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7202. tl.Lifetime = 1
  7203. game:GetService("Debris"):AddItem(deb,30)
  7204. game:GetService("Debris"):AddItem(deb2,30)
  7205. coroutine.resume(coroutine.create(function()
  7206. wait(15)
  7207. eff.Enabled = false
  7208. for i = 0, 49 do
  7209. swait()
  7210. deb.Transparency = deb.Transparency + 0.02
  7211. end
  7212. wait(1)
  7213. deb:Destroy()
  7214. end))
  7215. end
  7216. end
  7217. end))
  7218. for i = 0, 199 do
  7219. swait(1.5)
  7220. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7221. if v:FindFirstChild('Head') then
  7222. dmg(v)
  7223. end
  7224. end
  7225. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7226. 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)
  7227. 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)
  7228. 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)
  7229. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7230. end
  7231. orb:Destroy()
  7232. end))
  7233. end
  7234.  
  7235. function Beams()
  7236. attack = true
  7237. hum.WalkSpeed = 0
  7238. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7239. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7240. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7241. local keptcolor = MAINRUINCOLOR
  7242. coroutine.resume(coroutine.create(function()
  7243. for i = 0, 96 do
  7244. swait(5)
  7245. local orb = Instance.new("Part", char)
  7246. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7247. orb.BrickColor = keptcolor
  7248. orb.CanCollide = false
  7249. orb.FormFactor = 3
  7250. orb.Name = "Ring"
  7251. orb.Material = "Neon"
  7252. orb.Size = Vector3.new(1, 1, 1)
  7253. orb.Transparency = 0
  7254. orb.TopSurface = 0
  7255. orb.BottomSurface = 0
  7256. orb.Anchored = true
  7257. local orbm = Instance.new("SpecialMesh", orb)
  7258. orbm.MeshType = "Sphere"
  7259. orbm.Name = "SizeMesh"
  7260. orbm.Scale = vt(1.25,1.25,1.25)
  7261. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7262. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7263. coroutine.resume(coroutine.create(function()
  7264. wait(0.5)
  7265. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7266. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7267. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7268. orb.Transparency = 1
  7269. local a = Instance.new("Part",char)
  7270. a.Name = "Direction"
  7271. a.Anchored = true
  7272. a.BrickColor = keptcolor
  7273. a.Material = "Neon"
  7274. a.Transparency = 0.25
  7275. a.Shape = "Cylinder"
  7276. local ht = Instance.new("Part",char)
  7277. ht.Name = "DirectionHit"
  7278. ht.Anchored = true
  7279. ht.BrickColor = keptcolor
  7280. ht.CanCollide = false
  7281. ht.Transparency = 1
  7282. ht.Size = vt(0.1,0.1,0.1)
  7283. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7284. a.CanCollide = false
  7285. local ray = Ray.new(
  7286. orb.CFrame.p, -- origin
  7287. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7288. )
  7289. local ignore = char
  7290. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7291. a.BottomSurface = 10
  7292. a.TopSurface = 10
  7293. local distance = (orb.CFrame.p - position).magnitude
  7294. a.Size = Vector3.new(distance,1,1)
  7295. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7296. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7297. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7298. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7299. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7300. coroutine.resume(coroutine.create(function()
  7301. local eff = Instance.new("ParticleEmitter",ht)
  7302. eff.Texture = "rbxassetid://284205403"
  7303. eff.LightEmission = 0.95
  7304. eff.Color = ColorSequence.new(keptcolor.Color)
  7305. eff.Rate = 500
  7306. eff.Lifetime = NumberRange.new(0.5)
  7307. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7308. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7309. eff.Speed = NumberRange.new(10,50)
  7310. eff.Drag = 5
  7311. eff.Rotation = NumberRange.new(-500,500)
  7312. eff.VelocitySpread = 9000
  7313. eff.RotSpeed = NumberRange.new(-500,500)
  7314. wait(0.25)
  7315. eff.Enabled = false
  7316. end))
  7317. for i = 0, 4 do
  7318. 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)
  7319. 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)
  7320. local rsiz = math.random(10,30)
  7321. 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)
  7322. end
  7323. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7324. local msh = Instance.new("SpecialMesh",a)
  7325. msh.MeshType = "Cylinder"
  7326. msh.Scale = vt(1,1,1)
  7327. for i = 0, 49 do
  7328. swait()
  7329. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7330. a.Transparency = a.Transparency + 0.02
  7331. end
  7332. orb:Destroy()
  7333. a:Destroy()
  7334. ht:Destroy()
  7335. end))
  7336. game:GetService("Debris"):AddItem(orb, 10)
  7337. end
  7338. end))
  7339. for i = 0,6,0.1 do
  7340. swait()
  7341. 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)
  7342. 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)
  7343. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7344. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7345. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7346. 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)
  7347. 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)
  7348. end
  7349. hum.WalkSpeed = storehumanoidWS
  7350. attack = false
  7351. end
  7352.  
  7353. function CalamityTrans()
  7354. attack = true
  7355. rainbowmode = false
  7356. chaosmode = false
  7357. ModeOfGlitch = 8889
  7358. hum.WalkSpeed = 0
  7359. newThemeCust("rbxassetid://919231299",0,1,1.25)
  7360. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7361. elocacenter.Anchored = true
  7362. elocacenter.CFrame = root.CFrame
  7363. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7364. eloca1.Anchored = true
  7365. eloca1.CFrame = elocacenter.CFrame
  7366. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7367. eloca2.Anchored = true
  7368. eloca2.CFrame = elocacenter.CFrame
  7369. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7370. eloca3.Anchored = true
  7371. eloca3.CFrame = elocacenter.CFrame
  7372. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7373. eloca4.Anchored = true
  7374. eloca4.CFrame = elocacenter.CFrame
  7375. local lookavec = 0
  7376. local speeds = 0
  7377. CameraEnshaking(3,2.5)
  7378. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7379. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7380. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7381. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7382. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7383. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7384. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7385. for i = 0, 5, 0.1 do
  7386. swait()
  7387. ---
  7388. lookavec = lookavec + 1
  7389. speeds = speeds + 10
  7390. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7391. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7392. 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)
  7393. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7394. 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)
  7395. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7396. 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)
  7397. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7398. 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)
  7399. ---
  7400. 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)
  7401. 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)
  7402. 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)
  7403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7404. 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)
  7405. 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)
  7406. end
  7407. for i = 0, 5, 0.1 do
  7408. swait()
  7409. ---
  7410. speeds = speeds + 10
  7411. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7412. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7413. 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)
  7414. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7415. 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)
  7416. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7417. 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)
  7418. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7419. 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)
  7420. ---
  7421. 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)
  7422. 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)
  7423. 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)
  7424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7425. 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)
  7426. 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)
  7427. end
  7428. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7429. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7430. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7431. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7432. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7433. CameraEnshaking(1,3)
  7434. for i = 0, 24 do
  7435. 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)
  7436. 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)
  7437. 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)
  7438. 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)
  7439. end
  7440. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7441. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7442. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7443. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7444. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7445. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7446. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7447. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7448. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7449. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7450. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7451. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7452. for i = 0, 5, 0.1 do
  7453. swait()
  7454. ---
  7455. lookavec = lookavec - 1
  7456. speeds = speeds + 10
  7457. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7458. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7459. 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)
  7460. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7461. 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)
  7462. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7463. 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)
  7464. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7465. 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)
  7466. ---
  7467. 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)
  7468. 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)
  7469. 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)
  7470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7471. 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)
  7472. 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)
  7473. end
  7474. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7475. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7476. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7477. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7478. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7479. for i = 0, 49 do
  7480. 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)
  7481. 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)
  7482. end
  7483. CameraEnshaking(5,6)
  7484. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7485. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7486. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7487. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7488. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7489. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7490. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7491. storehumanoidWS = 100
  7492. hum.WalkSpeed = 100
  7493. rainbowmode = false
  7494. chaosmode = false
  7495. tl1.Enabled = true
  7496. tl2.Enabled = true
  7497. tl3.Enabled = true
  7498. RecolorTextAndRename("The Last Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7499. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7500. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7501. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7502. for i, v in pairs(mw2:GetChildren()) do
  7503. if v:IsA("Part") then
  7504. v.BrickColor = MAINRUINCOLOR
  7505. v.Material = "Neon"
  7506. end
  7507. end
  7508. for i, v in pairs(mw1:GetChildren()) do
  7509. if v:IsA("Part") then
  7510. v.Transparency = 0
  7511. v.BrickColor = MAINRUINCOLOR
  7512. v.Material = "Neon"
  7513. end
  7514. end
  7515. for i, v in pairs(m:GetChildren()) do
  7516. if v:IsA("Part") then
  7517. v.Color = Color3.new(0.5,0,1)
  7518. v.Material = "Neon"
  7519. end
  7520. end
  7521. for i, v in pairs(m2:GetChildren()) do
  7522. if v:IsA("Part") then
  7523. v.Color = Color3.new(0.25,0,1)
  7524. v.Material = "Neon"
  7525. end
  7526. end
  7527. for i, v in pairs(m3:GetChildren()) do
  7528. if v:IsA("Part") then
  7529. v.Color = Color3.new(0.45,0,1)
  7530. v.Material = "Neon"
  7531. end
  7532. end
  7533. for i, v in pairs(extrawingmod1:GetChildren()) do
  7534. if v:IsA("Part") then
  7535. v.Transparency = 0.75
  7536. v.Color = Color3.new(0.25,0,1)
  7537. v.Material = "Neon"
  7538. end
  7539. end
  7540. for i, v in pairs(extrawingmod2:GetChildren()) do
  7541. if v:IsA("Part") then
  7542. v.Transparency = 0.75
  7543. v.Color = Color3.new(0.5,0,1)
  7544. v.Material = "Neon"
  7545. end
  7546. end
  7547. attack = false
  7548. end
  7549.  
  7550. function GleamingBeam()
  7551. attack = true
  7552. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7553. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7554. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7555. local rsiz = math.random(1,15)
  7556. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7557. hb.Anchored = true
  7558. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7559. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7560. for i = 0, 16, 0.1 do
  7561. swait()
  7562. rsiz = math.random(5,15)
  7563. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7564. 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)
  7565. 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)
  7566. 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)
  7567. 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)
  7568. 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)
  7569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7570. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7571. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7572. end
  7573. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7574. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7575. for i = 0, 2 do
  7576. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7577. end
  7578. 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)
  7579. 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)
  7580. 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)
  7581. for i = 0, 49 do
  7582. local rsiza = math.random(1,15)
  7583. 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)
  7584. end
  7585. local a = Instance.new("Part",Character)
  7586. a.Name = "Direction"
  7587. a.Anchored = true
  7588. a.BrickColor = MAINRUINCOLOR
  7589. a.Material = "Neon"
  7590. a.Transparency = 0
  7591. a.Shape = "Cylinder"
  7592. a.CanCollide = false
  7593. local ba = Instance.new("Part",Character)
  7594. ba.Name = "HitDirect"
  7595. ba.Anchored = true
  7596. ba.BrickColor = bc("Cool yellow")
  7597. ba.Material = "Neon"
  7598. ba.Transparency = 1
  7599. ba.CanCollide = false
  7600. local ray = Ray.new(
  7601. hb.CFrame.p, -- origin
  7602. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7603. )
  7604. local ignore = Character
  7605. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7606. a.BottomSurface = 10
  7607. a.TopSurface = 10
  7608. local distance = (hb.CFrame.p - position).magnitude
  7609. a.Size = Vector3.new(distance, 1, 1)
  7610. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7611. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7612. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7613. local msh = Instance.new("SpecialMesh",a)
  7614. msh.MeshType = "Cylinder"
  7615. msh.Scale = vt(1,4,4)
  7616. game:GetService("Debris"):AddItem(a, 30)
  7617. game:GetService("Debris"):AddItem(ba, 30)
  7618. for i = 0, 25, 0.1 do
  7619. swait()
  7620. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7621. ray = Ray.new(
  7622. hb.CFrame.p, -- origin
  7623. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7624. )
  7625. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7626. distance = (hb.CFrame.p - position).magnitude
  7627. a.Size = Vector3.new(distance, 1, 1)
  7628. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7629. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7630. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7631. rsiz = math.random(5,25)
  7632. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7633. 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)
  7634. for c = 0, 2 do
  7635. 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)
  7636. end
  7637. 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)
  7638. 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)
  7639. 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)
  7640. 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)
  7641. 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)
  7642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7643. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7644. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7645. end
  7646. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7647. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7648. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7649. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7650. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7651. 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)
  7652. 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)
  7653. 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)
  7654. 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)
  7655. 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)
  7656. 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)
  7657. for i = 0, 49 do
  7658. local rsiza = math.random(1,15)
  7659. 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)
  7660. end
  7661. for i = 0, 49 do
  7662. rsiz = math.random(1,8)
  7663. 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)
  7664. end
  7665. coroutine.resume(coroutine.create(function()
  7666. for i = 0, 99 do
  7667. swait()
  7668. a.Transparency = a.Transparency + 0.01
  7669. end
  7670. a:Destroy()
  7671. ba:Destroy()
  7672. end))
  7673. hb:Destroy()
  7674. attack = false
  7675. end
  7676.  
  7677. function DualGleamingBeam()
  7678. attack = true
  7679. hum.WalkSpeed = 0
  7680. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7681. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7682. local radm = math.random(1,3)
  7683. if radm == 1 then
  7684. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7685. elseif radm == 2 then
  7686. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7687. elseif radm == 3 then
  7688. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7689. end
  7690. local rsiz = math.random(1,15)
  7691. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7692. hb.Anchored = true
  7693. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7694. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7695. hb2.Anchored = true
  7696. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7697. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7698. for i = 0, 14, 0.1 do
  7699. swait()
  7700. rsiz = math.random(5,15)
  7701. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7702. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7703. 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)
  7704. 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)
  7705. 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)
  7706. 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"))
  7707. 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)
  7708. 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)
  7709. 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)
  7710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7711. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7712. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7713. end
  7714. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7715. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7716. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7717. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7718. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7719. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7720. 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)
  7721. 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)
  7722. 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)
  7723. 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"))
  7724. 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"))
  7725. 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"))
  7726. for i = 0, 49 do
  7727. local rsiza = math.random(1,15)
  7728. 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)
  7729. 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)
  7730. end
  7731. local a = Instance.new("Part",Character)
  7732. a.Name = "Direction"
  7733. a.Anchored = true
  7734. a.BrickColor = MAINRUINCOLOR
  7735. a.Material = "Neon"
  7736. a.Transparency = 0
  7737. a.Shape = "Cylinder"
  7738. a.CanCollide = false
  7739. local a2 = Instance.new("Part",Character)
  7740. a2.Name = "Direction"
  7741. a2.Anchored = true
  7742. a2.BrickColor = MAINRUINCOLOR
  7743. a2.Material = "Neon"
  7744. a2.Transparency = 0
  7745. a2.Shape = "Cylinder"
  7746. a2.CanCollide = false
  7747. local ba = Instance.new("Part",Character)
  7748. ba.Name = "HitDirect"
  7749. ba.Anchored = true
  7750. ba.BrickColor = MAINRUINCOLOR
  7751. ba.Material = "Neon"
  7752. ba.Transparency = 1
  7753. ba.CanCollide = false
  7754. local ba2 = Instance.new("Part",Character)
  7755. ba2.Name = "HitDirect"
  7756. ba2.Anchored = true
  7757. ba2.BrickColor = MAINRUINCOLOR
  7758. ba2.Material = "Neon"
  7759. ba2.Transparency = 1
  7760. ba2.CanCollide = false
  7761. local ray = Ray.new(
  7762. hb.CFrame.p, -- origin
  7763. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7764. )
  7765. local ignore = Character
  7766. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7767. local ray2 = Ray.new(
  7768. hb2.CFrame.p, -- origin
  7769. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7770. )
  7771. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7772. local distance2 = (hb2.CFrame.p - position).magnitude
  7773.  
  7774. a.BottomSurface = 10
  7775. a.TopSurface = 10
  7776. local distance = (hb.CFrame.p - position).magnitude
  7777. a.Size = Vector3.new(distance, 1, 1)
  7778. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7779. a2.BottomSurface = 10
  7780. a2.TopSurface = 10
  7781. a2.Size = Vector3.new(distance2, 1, 1)
  7782. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7783. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7784. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7785. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7786. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7787. local msh = Instance.new("SpecialMesh",a)
  7788. msh.MeshType = "Cylinder"
  7789. msh.Scale = vt(1,4,4)
  7790. local msh2 = Instance.new("SpecialMesh",a2)
  7791. msh2.MeshType = "Cylinder"
  7792. msh2.Scale = vt(1,4,4)
  7793. game:GetService("Debris"):AddItem(a, 30)
  7794. game:GetService("Debris"):AddItem(a2, 30)
  7795. game:GetService("Debris"):AddItem(ba, 30)
  7796. game:GetService("Debris"):AddItem(ba2, 30)
  7797. for i = 0, 20, 0.1 do
  7798. swait()
  7799. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7800. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7801. ray = Ray.new(
  7802. hb.CFrame.p, -- origin
  7803. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7804. )
  7805. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7806. distance = (hb.CFrame.p - position).magnitude
  7807. ray2 = Ray.new(
  7808. hb2.CFrame.p, -- origin
  7809. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7810. )
  7811. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7812. distance2 = (hb2.CFrame.p - position).magnitude
  7813. a.Size = Vector3.new(distance, 1, 1)
  7814. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7815. a2.Size = Vector3.new(distance2, 1, 1)
  7816. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7817. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7818. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7819. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7820. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7821. rsiz = math.random(5,25)
  7822. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  7823. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  7824. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  7825. if v:FindFirstChild('Head') then
  7826. dmg(v)
  7827. end
  7828. end
  7829. coroutine.resume(coroutine.create(function()
  7830. local bx = Instance.new("Part",Character)
  7831. bx.Name = "Location"
  7832. bx.Anchored = true
  7833. bx.BrickColor = MAINRUINCOLOR
  7834. bx.Material = "Neon"
  7835. bx.Transparency = 1
  7836. bx.CanCollide = false
  7837. bx.Position = ba.Position
  7838. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  7839. wait(math.random(1,2))
  7840. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  7841. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  7842. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  7843. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  7844. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  7845. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  7846. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  7847. if v:FindFirstChild('Head') then
  7848. dmg(v)
  7849. end
  7850. end
  7851. wait(5)
  7852. bx:Destroy()
  7853. end))
  7854. 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)
  7855. 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)
  7856. for c = 0, 2 do
  7857. 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)
  7858. end
  7859. 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)
  7860. 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)
  7861. 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)
  7862. 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)
  7863. 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)
  7864. 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)
  7865. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  7866. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  7867. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  7868. end
  7869. for i = 0, 1 do
  7870. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7871. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7872. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7873. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7874. end
  7875. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  7876. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  7877. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  7878. if v:FindFirstChild('Head') then
  7879. dmg(v)
  7880. end
  7881. end
  7882. 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)
  7883. 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)
  7884. 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)
  7885. 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)
  7886. 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)
  7887. 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)
  7888. 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"))
  7889. 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"))
  7890. 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"))
  7891. for i = 0, 49 do
  7892. local rsiza = math.random(1,15)
  7893. 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)
  7894. 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)
  7895. end
  7896. for i = 0, 49 do
  7897. rsiz = math.random(1,8)
  7898. 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)
  7899. end
  7900. coroutine.resume(coroutine.create(function()
  7901. for i = 0, 99 do
  7902. swait()
  7903. a.Transparency = a.Transparency + 0.01
  7904. a2.Transparency = a2.Transparency + 0.01
  7905. end
  7906. a:Destroy()
  7907. ba:Destroy()
  7908. a2:Destroy()
  7909. ba2:Destroy()
  7910. end))
  7911. hum.WalkSpeed = storehumanoidWS
  7912. hb:Destroy()
  7913. hb2:Destroy()
  7914. attack = false
  7915. end
  7916.  
  7917. function dragin()
  7918. local targetted = nil
  7919. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7920. targetted = mouse.Target.Parent
  7921. end
  7922. if targetted ~= nil then
  7923. RootPart.CFrame = FaceMouse()[1]
  7924. attack = true
  7925. hum.WalkSpeed = 0
  7926. for x = 0, 1 do
  7927. for i = 0,1,0.5 do
  7928. swait()
  7929. 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)
  7930. 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)
  7931. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7933. 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)
  7934. 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)
  7935. end
  7936. for i = 0,1,0.5 do
  7937. swait()
  7938. 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)
  7939. 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)
  7940. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  7941. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7942. 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)
  7943. 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)
  7944. end
  7945. for i = 0,1,0.5 do
  7946. swait()
  7947. 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)
  7948. 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)
  7949. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  7950. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7951. 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)
  7952. 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)
  7953. end
  7954. for i = 0,1,0.5 do
  7955. swait()
  7956. 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)
  7957. 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)
  7958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7960. 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)
  7961. 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)
  7962. end
  7963. end
  7964. coroutine.resume(coroutine.create(function()
  7965. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  7966. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  7967. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  7968. end))
  7969. local A1 = Instance.new("Attachment",targetted.Head)
  7970. local A2 = Instance.new("Attachment",sorb)
  7971. local Beem = Instance.new("Beam",tors)
  7972. Beem.Attachment0 = A1
  7973. Beem.Attachment1 = A2
  7974. Beem.Texture = "rbxassetid://897585362"
  7975. Beem.LightEmission = 0.75
  7976. Beem.FaceCamera = true
  7977. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  7978. Beem.Width0 = 1
  7979. Beem.Width1 = 1
  7980. Beem.TextureMode = "Wrap"
  7981. Beem.TextureLength = 1
  7982. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7983. 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)
  7984. 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)
  7985. for x = 0, 24 do
  7986. local rsiz = math.random(5,15)
  7987. 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)
  7988. end
  7989.  
  7990. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  7991. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  7992. local radm = math.random(1,2)
  7993. if radm == 1 then
  7994. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  7995. elseif radm == 2 then
  7996. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  7997. end
  7998. for i = 0,3,0.1 do
  7999. swait()
  8000. coroutine.resume(coroutine.create(function()
  8001. local rsiz = math.random(5,15)
  8002. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8003. 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)
  8004. end))
  8005. 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)
  8006. 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)
  8007. 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)
  8008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8010. 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)
  8011. 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)
  8012. end
  8013. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8014. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8015. local vel = Instance.new("BodyPosition", targetted.Head)
  8016. vel.P = 12500
  8017. vel.D = 1000
  8018. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8019. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8020. for i = 0,4,0.1 do
  8021. swait()
  8022. coroutine.resume(coroutine.create(function()
  8023. local rsiz = math.random(5,15)
  8024. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8025. 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)
  8026. end))
  8027. 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)
  8028. 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)
  8029. 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)
  8030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8032. 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)
  8033. 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)
  8034. end
  8035. local visibility = 0
  8036. coroutine.resume(coroutine.create(function()
  8037. for i = 0, 49 do
  8038. swait()
  8039. visibility = visibility + 0.02
  8040. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8041. end
  8042. Beem:Destroy()
  8043. A1:Destroy()
  8044. A2:Destroy()
  8045. end))
  8046. game:GetService("Debris"):AddItem(vel,0.75)
  8047. attack = false
  8048. hum.WalkSpeed = storehumanoidWS
  8049.  
  8050. end
  8051. end
  8052.  
  8053. function hugg()
  8054. attack = true
  8055. hum.WalkSpeed = 5
  8056. local rsiz = math.random(5,15)
  8057. for i = 0, 2, 0.1 do
  8058. swait()
  8059. 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)
  8060. 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)
  8061. 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)
  8062. 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)
  8063. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8065. end
  8066. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8067. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8068. hb.Anchored = true
  8069. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8070. local huggedperson = nil
  8071. local act = false
  8072. local alreadydid = false
  8073. for i = 0, 3, 0.1 do
  8074. swait()
  8075. if act == false then
  8076. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8077. if v:FindFirstChild('Head') then
  8078. if alreadydid == false then
  8079. huggedperson = v
  8080. hum.WalkSpeed = 0
  8081. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8082. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8083. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8084. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8085. local radm = math.random(1,3)
  8086. if radm == 1 then
  8087. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8088. elseif radm == 2 then
  8089. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8090. elseif radm == 3 then
  8091. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8092. end
  8093. root.Anchored = true
  8094. coroutine.resume(coroutine.create(function()
  8095. huggedperson.Humanoid.WalkSpeed = 0
  8096. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8097. end))
  8098. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8099. alreadydid = true
  8100. act = true
  8101. print(huggedperson.Name)
  8102. end
  8103. end
  8104. end
  8105. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8106. 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)
  8107. elseif act == true then
  8108. coroutine.resume(coroutine.create(function()
  8109. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8110. end))
  8111. rsiz = math.random(5,15)
  8112. 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)
  8113. 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)
  8114. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8115. end
  8116. 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)
  8117. 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)
  8118. 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)
  8119. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8120. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8121. end
  8122. hb:Destroy()
  8123. if act == true then
  8124. for x = 0, 2 do
  8125. for i = 0, 2, 0.1 do
  8126. swait()
  8127. coroutine.resume(coroutine.create(function()
  8128. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8129. end))
  8130. rsiz = math.random(5,15)
  8131. 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)
  8132. 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)
  8133. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8134. 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)
  8135. 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)
  8136. 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)
  8137. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8138. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8139. end
  8140. for i = 0, 2, 0.1 do
  8141. swait()
  8142. coroutine.resume(coroutine.create(function()
  8143. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8144. end))
  8145. rsiz = math.random(5,15)
  8146. 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)
  8147. 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)
  8148. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8149. 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)
  8150. 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)
  8151. 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)
  8152. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8153. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8154. end
  8155. end
  8156. end
  8157. hum.WalkSpeed = storehumanoidWS
  8158. root.Anchored = false
  8159. if act == true then
  8160. coroutine.resume(coroutine.create(function()
  8161. huggedperson.Humanoid.WalkSpeed = 16
  8162. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8163. end))
  8164. end
  8165. hum.WalkSpeed = storehumanoidWS
  8166. attack = false
  8167. end
  8168.  
  8169. function Counter()
  8170. hum.WalkSpeed = 0
  8171. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8172. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8173. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8174. attack = true
  8175. for i = 0,1,0.1 do
  8176. swait()
  8177. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8178. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8179. 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)
  8180. 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)
  8181. 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)
  8182. 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)
  8183. end
  8184. CameraEnshaking(3,4)
  8185. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8186. 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)
  8187. 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)
  8188. 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)
  8189. coroutine.resume(coroutine.create(function()
  8190. local eff = Instance.new("ParticleEmitter",root)
  8191. eff.Texture = "rbxassetid://363275192"
  8192. eff.LightEmission = 0.95
  8193. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8194. eff.Rate = 10000
  8195. eff.Lifetime = NumberRange.new(1)
  8196. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8197. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8198. eff.Speed = NumberRange.new(10,125)
  8199. eff.Drag = 5
  8200. eff.Rotation = NumberRange.new(-500,500)
  8201. eff.VelocitySpread = 9000
  8202. eff.RotSpeed = NumberRange.new(-50,50)
  8203. local eff2 = eff:Clone()
  8204. eff2.Parent = root
  8205. eff2.Texture = "rbxassetid://284205403"
  8206. eff2.Rate = 10000
  8207. 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)})
  8208. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8209. eff2.Drag = 5
  8210. eff2.Speed = NumberRange.new(10,50)
  8211. eff2.Rotation = NumberRange.new(-500,500)
  8212. eff2.VelocitySpread = 9000
  8213. wait(0.25)
  8214. eff2.Enabled = false
  8215. eff.Enabled = false
  8216. wait(3)
  8217. eff2:Destroy()
  8218. eff:Destroy()
  8219. end))
  8220. for i = 0, 9 do
  8221. 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)
  8222. end
  8223. for i = 0, 24 do
  8224. local rsiz = math.random(5,20)
  8225. 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)
  8226. end
  8227. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8228. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8229. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8230. for i = 0,2,0.1 do
  8231. swait()
  8232. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8233. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8234. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8235. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8236. 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)
  8237. 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)
  8238. end
  8239. hum.WalkSpeed = storehumanoidWS
  8240. attack = false
  8241. end
  8242.  
  8243. function superjump()
  8244. attack = true
  8245. hum.WalkSpeed = 0
  8246. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8247. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8248. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8249. for i = 0, 2, 0.1 do
  8250. swait()
  8251. root.Velocity = vt(0,0,0)
  8252. 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"))
  8253. 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)
  8254. 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)
  8255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8257. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8258. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8259. end
  8260. MagniDamage(root, 28, 25,50, 25, "Normal")
  8261. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8262. hum.Jump = true
  8263. swait()
  8264. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8265. 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)
  8266. 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)
  8267. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8268. for i = 0, 3, 0.1 do
  8269. swait()
  8270. 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)
  8271. 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)
  8272. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8273. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8274. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8275. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8276. end
  8277. attack = false
  8278. if equipped == false then
  8279. hum.WalkSpeed = 16
  8280. else
  8281. hum.WalkSpeed = 24
  8282. end
  8283. end
  8284.  
  8285.  
  8286. -------------------------------------
  8287.  
  8288.  
  8289.  
  8290. Humanoid.Animator.Parent = nil
  8291.  
  8292.  
  8293.  
  8294. -------------------------------------
  8295.  
  8296. local attacktype = 1
  8297. mouse.Button1Down:connect(function()
  8298. if attack == false and attacktype == 1 then
  8299. attacktype = 2
  8300. attackone()
  8301. elseif attack == false and attacktype == 2 then
  8302. attacktype = 3
  8303. attacktwo()
  8304. elseif attack == false and attacktype == 3 then
  8305. attacktype = 1
  8306. attackthree()
  8307. elseif attack == false and attacktype == 4 then
  8308. attacktype = 1
  8309. --attackfour()
  8310. end
  8311. end)
  8312. mouse.KeyDown:connect(function(k)
  8313. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8314. --normalmog()
  8315. ModeOfGlitch = 1
  8316. storehumanoidWS = 16
  8317. hum.WalkSpeed = 16
  8318. rainbowmode = false
  8319. chaosmode = false
  8320. newTheme("rbxassetid://723652641",48.6,1,0.85)
  8321. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8322. MAINRUINCOLOR = BrickColor.new("Really red")
  8323. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8324. end
  8325. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8326. ModeOfGlitch = 2
  8327. storehumanoidWS = 16
  8328. hum.WalkSpeed = 16
  8329. rainbowmode = false
  8330. chaosmode = false
  8331. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8332. newTheme("rbxassetid://1539245059",0,1,0.85)
  8333. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8334. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8335. end
  8336. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8337. ModeOfGlitch = 3
  8338. storehumanoidWS = 14
  8339. hum.WalkSpeed = 14
  8340. rainbowmode = false
  8341. chaosmode = false
  8342. RecolorTextAndRename("Royal Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8343. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8344. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8345. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8346. end
  8347. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8348. ModeOfGlitch = 4
  8349. storehumanoidWS = 14
  8350. hum.WalkSpeed = 14
  8351. rainbowmode = false
  8352. chaosmode = true
  8353. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8354. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8355. MAINRUINCOLOR = BrickColor.new("Black")
  8356. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8357. end
  8358. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8359. ModeOfGlitch = 5
  8360. storehumanoidWS = 14
  8361. hum.WalkSpeed = 14
  8362. rainbowmode = false
  8363. chaosmode = false
  8364. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8365. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8366. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8367. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8368. end
  8369. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8370. ModeOfGlitch = 6
  8371. storehumanoidWS = 65
  8372. hum.WalkSpeed = 65
  8373. rainbowmode = false
  8374. chaosmode = false
  8375. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8376. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8377. MAINRUINCOLOR = BrickColor.new("White")
  8378. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8379. end
  8380. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8381. ModeOfGlitch = 8
  8382. storehumanoidWS = 100
  8383. hum.WalkSpeed = 100
  8384. rainbowmode = false
  8385. chaosmode = false
  8386. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8387. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8388. MAINRUINCOLOR = BrickColor.new("Alder")
  8389. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8390. end
  8391. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8392. ModeOfGlitch = 9
  8393. storehumanoidWS = 85
  8394. hum.WalkSpeed = 85
  8395. rainbowmode = false
  8396. chaosmode = false
  8397. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8398. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8399. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8400. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8401. end
  8402. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8403. ModeOfGlitch = 5555
  8404. storehumanoidWS = 30
  8405. hum.WalkSpeed = 30
  8406. rainbowmode = false
  8407. chaosmode = false
  8408. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8409. newTheme("rbxassetid://736003449",0,1,1.25)
  8410. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8411. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8412. end
  8413. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8414. CalamityTrans()
  8415. end
  8416. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8417. ModeOfGlitch = 55469696922
  8418. storehumanoidWS = 95
  8419. hum.WalkSpeed = 95
  8420. rainbowmode = false
  8421. chaosmode = false
  8422. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8423. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8424. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8425. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8426. end
  8427. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8428. ModeOfGlitch = 4367677813
  8429. storehumanoidWS = 75
  8430. hum.WalkSpeed = 75
  8431. rainbowmode = false
  8432. chaosmode = false
  8433. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8434. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8435. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8436. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8437. end
  8438. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8439. ModeOfGlitch = 9999999921111
  8440. storehumanoidWS = 145
  8441. hum.WalkSpeed = 145
  8442. rainbowmode = false
  8443. chaosmode = false
  8444. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8445. newTheme("rbxassetid://643309199",0,1.01,1)
  8446. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8447. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8448. end
  8449. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8450. ModeOfGlitch = 999999999556
  8451. storehumanoidWS = 115
  8452. hum.WalkSpeed = 115
  8453. rainbowmode = false
  8454. chaosmode = false
  8455. RecolorTextAndRename("Crazy Guest",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8456. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8457. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8458. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8459. end
  8460. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8461. ModeOfGlitch = 12
  8462. storehumanoidWS = 19
  8463. hum.WalkSpeed = 19
  8464. rainbowmode = false
  8465. chaosmode = false
  8466. print'Mode was meant for Vengeful Program or those other fans out there'
  8467. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8468. newTheme("rbxassetid://1873219898",0,1,1.7)
  8469. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8470. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8471. end
  8472.  
  8473. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8474. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8475. for i = 0, 49 do
  8476. 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)
  8477. end
  8478. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8479. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8480. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8481. hum.WalkSpeed = storehumanoidWS
  8482. attack = false
  8483. ModeOfGlitch = 50
  8484. storehumanoidWS = 18
  8485. hum.WalkSpeed = 18
  8486. rainbowmode = false
  8487. chaosmode = false
  8488. RecolorTextAndRename("Enbelieved Guest",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8489. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8490. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8491. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8492. end
  8493.  
  8494. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8495. hum.WalkSpeed = 0
  8496. attack = true
  8497. for i = 0,1,0.1 do
  8498. swait()
  8499. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8500. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8501. 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)
  8502. 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)
  8503. 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)
  8504. 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)
  8505. end
  8506. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8507. for i = 0, 148 do
  8508. 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)
  8509. end
  8510. for i = 0,3,0.1 do
  8511. 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)
  8512. end
  8513. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8514. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8515. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8516. hum.WalkSpeed = storehumanoidWS
  8517. attack = false
  8518. ModeOfGlitch = 66
  8519. storehumanoidWS = 16
  8520. hum.WalkSpeed = 16
  8521. rainbowmode = false
  8522. chaosmode = false
  8523. newTheme("rbxassetid://723652641"..ast[Mrandom(1,2)],0,1,1.35)
  8524. MAINRUINCOLOR = BrickColor.new("Really black")
  8525. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8526. for i = 0,2,0.1 do
  8527. swait()
  8528. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8529. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8530. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8531. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8532. 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)
  8533. 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)
  8534. end
  8535. end
  8536.  
  8537. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8538. hum.WalkSpeed = 0
  8539. attack = true
  8540. for i = 0,1,0.1 do
  8541. swait()
  8542. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8543. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8544. 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)
  8545. 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)
  8546. 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)
  8547. 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)
  8548. end
  8549. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8550. for i = 0, 49 do
  8551. 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)
  8552. end
  8553. for i = 0,3,0.1 do
  8554. 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)
  8555. end
  8556. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8557. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8558. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8559. hum.WalkSpeed = storehumanoidWS
  8560. attack = false
  8561. ModeOfGlitch = 13
  8562. storehumanoidWS = 45
  8563. hum.WalkSpeed = 45
  8564. rainbowmode = false
  8565. chaosmode = false
  8566. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8567. newTheme("rbxassetid://190845741",0,1,1.35)
  8568. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8569. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8570. for i = 0,2,0.1 do
  8571. swait()
  8572. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8573. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8574. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8575. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8576. 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)
  8577. 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)
  8578. end
  8579. end
  8580. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8581. ModeOfGlitch = 1002
  8582. storehumanoidWS = 45
  8583. hum.WalkSpeed = 45
  8584. rainbowmode = false
  8585. chaosmode = false
  8586. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8587. newTheme("rbxassetid://2027652726",0,1,0.85)
  8588. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8589. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8590. end
  8591. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8592. ModeOfGlitch = 1003
  8593. storehumanoidWS = 90
  8594. hum.WalkSpeed = 90
  8595. rainbowmode = false
  8596. chaosmode = false
  8597. RecolorTextAndRename("Ascended Guest",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8598. newTheme("rbxassetid://257453119",0,1,0.85)
  8599. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8600. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8601. end
  8602. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8603. ModeOfGlitch = 1264532489
  8604. storehumanoidWS = 175
  8605. hum.WalkSpeed = 175
  8606. rainbowmode = false
  8607. chaosmode = false
  8608. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8609. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8610. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8611. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8612. end
  8613. if k == "l" and mutedtog == false then
  8614. mutedtog = true
  8615. kan.Volume = 0.85
  8616. elseif k == "l" and mutedtog == true then
  8617. mutedtog = false
  8618. kan.Volume = 0.85
  8619. end
  8620. if k == "p" and toggleTag == false then
  8621. toggleTag = true
  8622. modet.TextTransparency = 0
  8623. modet.TextStrokeTransparency = 0
  8624. elseif k == "p" and toggleTag == true then
  8625. toggleTag = false
  8626. modet.TextTransparency = 1
  8627. modet.TextStrokeTransparency = 1
  8628. end
  8629. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8630. ExtinctiveHeartbreak()
  8631. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8632. HeavenlyDisk()
  8633. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8634. DualGleamingBeam()
  8635. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8636. BanishingOrb()
  8637. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8638. hugg()
  8639. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8640. cutesigh()
  8641. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8642. Counter()
  8643. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8644. superjump()
  8645. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8646. dragin()
  8647. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8648. UniversalCollapse()
  8649. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8650. PureBomb()
  8651. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8652. Beams()
  8653. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8654. BeamOfDeath()
  8655. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8656. THE_TRUE_POWER_OF_VIOLENCE()
  8657. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8658. GleamingBeam()
  8659. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8660. ViolentRing()
  8661. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8662. CorruptionEvent()
  8663. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8664. CorruptBlink()
  8665. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8666. scattercorrupt()
  8667. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8668. shytaunty()
  8669. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8670. RapidBurst()
  8671. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8672. ChaosEND()
  8673. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8674. CyberSlash()
  8675. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8676. smiter()
  8677. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8678. SpeedDrop()
  8679. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8680. --DivineLights()
  8681. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8682. DivineBlast()
  8683. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8684. EquinoxOrbs()
  8685. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8686. yinyangi()
  8687. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8688. FallenOrbs()
  8689. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8690. StarfallEX()
  8691. end
  8692. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8693. FallenDEMISE()
  8694. end
  8695. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8696. EndGROUND()
  8697. end
  8698. end)
  8699.  
  8700. coroutine.resume(coroutine.create(function()
  8701. while true do
  8702. swait()
  8703. 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
  8704. 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)
  8705. end
  8706. if ModeOfGlitch == 5555 then
  8707. 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)
  8708. end
  8709. end
  8710. end))
  8711. --[[coroutine.resume(coroutine.create(function()
  8712. while true do
  8713. swait(2)
  8714. if chaosmode == true then
  8715. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8716. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8717. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8718. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8719. for i, v in pairs(mw1:GetChildren()) do
  8720. if v:IsA("Part") then
  8721. v.Transparency = 0.75
  8722. v.BrickColor = BrickColor.random()
  8723. v.Material = "Neon"
  8724. end
  8725. end
  8726. for i, v in pairs(m2:GetChildren()) do
  8727. if v:IsA("Part") then
  8728. v.BrickColor = BrickColor.random()
  8729. v.Material = "Neon"
  8730. end
  8731. end
  8732. end
  8733. end
  8734. end))]]
  8735.  
  8736.  
  8737.  
  8738. ff = Instance.new("ForceField",char)
  8739. ff.Visible = false
  8740. hum.Name = "Base"
  8741. hum.MaxHealth = 1.0E298
  8742. hum.Health = 1.0E298
  8743. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  8744. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  8745. hum.MaxHealth = 1.0E298
  8746. hum.Health = 1.0E298
  8747. end
  8748. end)
  8749.  
  8750. local Hair = Instance.new("Part", char)
  8751. Hair.Name = "Hair"
  8752. Hair.CanCollide = false
  8753. Hair.BrickColor = BrickColor.new("Institutional white")
  8754. Hair.Transparency = 0
  8755. Hair.Material = "Plastic"
  8756. Hair.Size = Vector3.new(1, 1, 2)
  8757. Hair.TopSurface = Enum.SurfaceType.Smooth
  8758. Hair.BottomSurface = Enum.SurfaceType.Smooth
  8759.  
  8760.  
  8761. local bguis = Instance.new("BillboardGui",tors)
  8762. bguis.Size = UDim2.new(25, 0, 25, 0)
  8763. local imgca = Instance.new("ImageLabel",bguis)
  8764. imgca.BackgroundTransparency = 1
  8765. imgca.ImageTransparency = 1
  8766. imgca.Size = UDim2.new(1,0,1,0)
  8767. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  8768. imgca.ImageColor3 = Color3.new(0,0,0)
  8769.  
  8770.  
  8771. local bguis2 = Instance.new("BillboardGui",tors)
  8772. bguis2.Size = UDim2.new(25, 0, 25, 0)
  8773. local imgca2 = Instance.new("ImageLabel",bguis)
  8774. imgca2.BackgroundTransparency = 1
  8775. imgca2.ImageTransparency = 1
  8776. imgca2.Size = UDim2.new(1,0,1,0)
  8777. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  8778. imgca2.ImageColor3 = Color3.new(0,0,0)
  8779.  
  8780.  
  8781.  
  8782. idleanim=.4
  8783. while true do
  8784. if mutedtog == false then
  8785. kan.Volume = currentVol
  8786. elseif mutedtog == true then
  8787. kan.Volume = 0
  8788. end
  8789. kan.PlaybackSpeed = currentPitch
  8790. kan.Pitch = currentPitch
  8791. kan.SoundId = currentThemePlaying
  8792. kan.Looped = true
  8793. kan.Parent = char
  8794. kan:Resume()
  8795. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  8796. imgca.ImageTransparency = 1
  8797. imgca2.ImageTransparency = 1
  8798. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  8799. imgca.ImageColor3 = MAINRUINCOLOR.Color
  8800. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8801. elseif ModeOfGlitch == 13 then
  8802. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  8803. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8804. end
  8805. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  8806. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  8807. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  8808. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  8809. coroutine.resume(coroutine.create(function()
  8810. if chaosmode == true then
  8811. for i, v in pairs(mw1:GetChildren()) do
  8812. if v:IsA("Part") then
  8813. v.Transparency = 0
  8814. v.BrickColor = BrickColor.random()
  8815. v.Material = "Neon"
  8816. end
  8817. end
  8818. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8819. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8820. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8821. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  8822. end
  8823. end))
  8824. coroutine.resume(coroutine.create(function()
  8825. if ModeOfGlitch == 66 then
  8826. for i, v in pairs(m:GetChildren()) do
  8827. if v:IsA("Part") then
  8828. v.Transparency = 1
  8829. v.BrickColor = BrickColor.random()
  8830. v.Material = "Neon"
  8831. end
  8832. end
  8833. for i, v in pairs(m2:GetChildren()) do
  8834. if v:IsA("Part") then
  8835. v.Transparency = 1
  8836. v.BrickColor = BrickColor.random()
  8837. v.Material = "Neon"
  8838. end
  8839. end
  8840. for i, v in pairs(mw1:GetChildren()) do
  8841. if v:IsA("Part") then
  8842. v.Transparency = 1
  8843. v.BrickColor = BrickColor.random()
  8844. v.Material = "Neon"
  8845. end
  8846. end
  8847. for i, v in pairs(extrawingmod1:GetChildren()) do
  8848. if v:IsA("Part") then
  8849. v.Transparency = 0
  8850. v.BrickColor = BrickColor.random()
  8851. v.Material = "Neon"
  8852. end
  8853. end
  8854. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8855. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8856. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8857. gane.Color = ColorSequence.new(BrickColor.random().Color)
  8858. gan.Color = ColorSequence.new(BrickColor.random().Color)
  8859. end
  8860. end))
  8861.  
  8862. coroutine.resume(coroutine.create(function()
  8863. if ModeOfGlitch == 66 then
  8864. RecolorTextAndRename("Snapped Guest",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  8865. end
  8866. end))
  8867.  
  8868. if chaosmode == false then
  8869. modet.Position = UDim2.new(0,0,0,0)
  8870. modet.Rotation = -5 * math.cos(sine / 32)
  8871. techc.Rotation = techc.Rotation + 1
  8872. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  8873. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  8874. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  8875. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  8876. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  8877. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  8878. else
  8879. techc.Rotation = techc.Rotation + 1
  8880. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  8881. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  8882. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  8883. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  8884. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  8885. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  8886. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  8887. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  8888. end
  8889. CameraManager()
  8890. swait()
  8891. 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)
  8892. 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)
  8893. 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)
  8894. 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)
  8895. 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)
  8896. 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)
  8897. 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)
  8898. 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)
  8899. 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)
  8900. 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)
  8901. 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)
  8902. 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)
  8903. sine = sine + change
  8904. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  8905. local velderp=RootPart.Velocity.y
  8906. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  8907. coroutine.resume(coroutine.create(function()
  8908. 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
  8909. if hitfloor ~= nil then
  8910. 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"))
  8911. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  8912. 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)
  8913. end
  8914. end
  8915. end
  8916. end))
  8917. if equipped==true or equipped==false then
  8918. if attack==false then
  8919. idle=idle+1
  8920. else
  8921. idle=0
  8922. end
  8923. if idle>=500 then
  8924. if attack==false then
  8925. --Sheath()
  8926. end
  8927. end
  8928. if RootPart.Velocity.y > 1 and hitfloor==nil then
  8929. Anim="Jump"
  8930. if attack==false then
  8931. 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)
  8932. 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)
  8933. 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)
  8934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  8935. 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)
  8936. 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)
  8937. end
  8938. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  8939. Anim="Fall"
  8940. if attack==false then
  8941. 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)
  8942. 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)
  8943. 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)
  8944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  8945. 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)
  8946. 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)
  8947. end
  8948. elseif torvel<1 and hitfloor~=nil then
  8949. Anim="Idle"
  8950. if attack==false then
  8951. if ModeOfGlitch == 1 then
  8952. local snap = math.random(1,10)
  8953. if snap == 1 then
  8954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  8955. end
  8956. 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(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  8957. 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(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  8958. 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(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  8959. 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(22 - 2 * math.cos(sine / 56))),.1)
  8960. 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)
  8961. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  8962. elseif ModeOfGlitch == 2 then
  8963. 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(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  8964. 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(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  8965. 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)
  8966. 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)
  8967. 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)
  8968. 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)
  8969. elseif ModeOfGlitch == 2 then
  8970. 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)
  8971. 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)
  8972. 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)
  8973. 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)
  8974. 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)
  8975. 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)
  8976. elseif ModeOfGlitch == 50 then
  8977. 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)
  8978. 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)
  8979. 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)
  8980. 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)
  8981. 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)
  8982. 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)
  8983. elseif ModeOfGlitch == 5555 then --5555
  8984. 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)
  8985. 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)
  8986. 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)
  8987. 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)
  8988. 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)
  8989. 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)
  8990. elseif ModeOfGlitch == 1002 then
  8991. 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)
  8992. 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)
  8993. 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)
  8994. 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)
  8995. 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)
  8996. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  8997. elseif ModeOfGlitch == 12 then
  8998. 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)
  8999. 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)
  9000. 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)
  9001. 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)
  9002. 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)
  9003. 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)
  9004. elseif ModeOfGlitch == 3 then
  9005. local snap = math.random(1,32)
  9006. if snap == 1 then
  9007. 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)
  9008. end
  9009. 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(1 - 2 * math.cos(sine / 32))),.1)
  9010. 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(-1 + 2 * math.cos(sine / 32))),.1)
  9011. 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)
  9012. 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)
  9013. 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)
  9014. 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)
  9015. elseif ModeOfGlitch == 4 then
  9016. local snap = math.random(1,5)
  9017. if snap == 1 then
  9018. 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)
  9019. 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)
  9020. 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)
  9021. end
  9022. 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)
  9023. 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)
  9024. 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)
  9025. 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)
  9026. 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)
  9027. 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)
  9028. elseif ModeOfGlitch == 66 then
  9029. local snap = math.random(1,2)
  9030. if snap == 1 then
  9031. 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)
  9032. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  9033. 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)
  9034. end
  9035. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),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)
  9036. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),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)
  9037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9038. 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)
  9039. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9040. 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)
  9041. elseif ModeOfGlitch == 5 then
  9042. 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)
  9043. 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)
  9044. 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)
  9045. 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)
  9046. 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(8 + 3 * math.cos(sine / 45))),.1)
  9047. 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 - 3 * math.cos(sine / 45))),.1)
  9048. elseif ModeOfGlitch == 6 then
  9049. 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)
  9050. 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)
  9051. 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)
  9052. 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)
  9053. 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)
  9054. 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)
  9055. elseif ModeOfGlitch == 13 then
  9056. 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)
  9057. 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)
  9058. 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)
  9059. 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)
  9060. 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)
  9061. 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)
  9062. elseif ModeOfGlitch == 8 then
  9063. 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)
  9064. 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)
  9065. 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)
  9066. 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)
  9067. 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)
  9068. 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)
  9069. elseif ModeOfGlitch == 9 then
  9070. 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)
  9071. 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))
  9072. 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)
  9073. 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)
  9074. 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)
  9075. 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)
  9076. 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)
  9077. 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)
  9078. elseif ModeOfGlitch == 1003 then
  9079. 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)
  9080. 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)
  9081. 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)
  9082. 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)
  9083. 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)
  9084. 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)
  9085.  
  9086. elseif ModeOfGlitch == 8889 then
  9087. 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)
  9088. 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)
  9089. 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)
  9090. 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)
  9091. 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)
  9092. 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)
  9093. elseif ModeOfGlitch == 1264532489 then
  9094. 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)
  9095. 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)
  9096. 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)
  9097. 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)
  9098. 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)
  9099. 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)
  9100. 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)
  9101. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9102. 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)
  9103. 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)
  9104. 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)
  9105. 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)
  9106. 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)
  9107. 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)
  9108. elseif ModeOfGlitch == 4367677813 then
  9109. 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)
  9110. 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)
  9111. 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)
  9112. 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)
  9113. 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)
  9114. 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)
  9115. elseif ModeOfGlitch == 55469696922 then --5555
  9116. 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)
  9117. 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)
  9118. 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)
  9119. 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)
  9120. 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 + 14 * math.cos(sine / 45))),.1)
  9121. 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)
  9122. elseif ModeOfGlitch == 999999999556 then
  9123. 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)
  9124. 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)
  9125. 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)
  9126. 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)
  9127. 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)
  9128. 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)
  9129. end
  9130. end
  9131. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9132. Anim="Walk"
  9133. if attack==false and ModeOfGlitch ~= 66 then
  9134. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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)
  9135. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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)
  9136. 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)
  9137. 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)
  9138. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9139. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9140. elseif attack==false and ModeOfGlitch == 66 then
  9141. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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)
  9142. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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)
  9143. 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)
  9144. 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)
  9145. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  9146. 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)
  9147. end
  9148. elseif torvel>=22 and hitfloor~=nil then
  9149. Anim="Run"
  9150. if attack==false then
  9151. 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
  9152. 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)
  9153. 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)
  9154. 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)
  9155. 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)
  9156. 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)
  9157. 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)
  9158. if ModeOfGlitch == 12 then
  9159. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 45 * math.cos(sine / 8))),.1)
  9160. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 45 * math.cos(sine / 8))),.1)
  9161. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(1.5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  9162. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 8))),.1)
  9163. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9164. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9165. end
  9166. if ModeOfGlitch == 9 then
  9167. 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)
  9168. 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))
  9169. 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)
  9170. end
  9171. 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
  9172. 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)
  9173. 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)
  9174. 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)
  9175. 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)
  9176. 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)
  9177. 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)
  9178. elseif ModeOfGlitch == 13 then
  9179. 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)
  9180. 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)
  9181. 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)
  9182. 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)
  9183. 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)
  9184. 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)
  9185. end
  9186. end
  9187. end
  9188. end
  9189. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement