Advertisement
AxeuerAlt

Untitled

Feb 28th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 460.63 KB | None | 0 0
  1.  
  2. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  3. The super switcher.
  4. Velnorum is one of the first wielders.
  5.  
  6. Created, Reworked by NoobyGames12
  7. Edited by GodzPlaysRB
  8. Edited by wanTH092 (Gam_Filano CH)
  9. SpectrumGlitcher Developers ^^^
  10. ]])
  11.  
  12.  
  13. ------------- ORIGINAL WIELDER OC: Velnorum
  14. print([[Icons:
  15. ! = New
  16. ? = Spoilers
  17. * = Exclusivity
  18. C = Changes
  19.  
  20. ]])
  21. warn([[V 7.5 Update Log:
  22. C: Changed everything to guest xd
  23. ]])
  24. --- its obs smooth af do not touch
  25. ---- Sources and functions might be taken from others
  26. plr = owner,
  27. char = plr.Character
  28. hum = char.Humanoid
  29. local cam = game.Workspace.CurrentCamera
  30. Camera = cam
  31. local CamInterrupt = false
  32. local TwoD = false
  33. local TargetInfo = {nil, nil}
  34. cam.CameraType = "Custom"
  35. t = char.Torso
  36. h = char.Head
  37. ra = char["Right Arm"]
  38. la = char["Left Arm"]
  39. rl = char["Right Leg"]
  40. ll = char["Left Leg"]
  41. tors = char.Torso
  42. lleg = char["Left Leg"]
  43. root = char.HumanoidRootPart
  44. hed = char.Head
  45. rleg = char["Right Leg"]
  46. rarm = char["Right Arm"]
  47. larm = char["Left Arm"]
  48. radian = math.rad
  49. random = math.random
  50. Vec3 = Vector3.new
  51. Inst = Instance.new
  52. cFrame = CFrame.new
  53. Euler = CFrame.fromEulerAnglesXYZ
  54. vt = Vector3.new
  55. bc = BrickColor.new
  56. br = BrickColor.random
  57. it = Instance.new
  58. cf = CFrame.new
  59. local Player_Size = 0
  60. cam = game.Workspace.CurrentCamera
  61. CF = CFrame.new
  62. angles = CFrame.Angles
  63. attack = false
  64. Euler = CFrame.fromEulerAnglesXYZ
  65. Rad = math.rad
  66. IT = Instance.new
  67. BrickC = BrickColor.new
  68. Cos = math.cos
  69. Acos = math.acos
  70. Sin = math.sin
  71. Asin = math.asin
  72. Abs = math.abs
  73. Mrandom = math.random
  74. Floor = math.floor
  75. IT = Instance.new
  76. CF = CFrame.new
  77. VT = Vector3.new
  78. RAD = math.rad
  79. C3 = Color3.new
  80. UD2 = UDim2.new
  81. BRICKC = BrickColor.new
  82. ANGLES = CFrame.Angles
  83. EULER = CFrame.fromEulerAnglesXYZ
  84. COS = math.cos
  85. ACOS = math.acos
  86. SIN = math.sin
  87. ASIN = math.asin
  88. ABS = math.abs
  89. MRANDOM = math.random
  90. FLOOR = math.floor
  91. local SINE = 0
  92.  
  93. local Booleans = {
  94. CamFollow = true,
  95. GyroUse = true
  96. }
  97.  
  98. function lerp(object, newCFrame, alpha)
  99. return object:lerp(newCFrame, alpha)
  100. end
  101.  
  102. local Directer = Inst("BodyGyro", root)
  103. Directer.MaxTorque = Vec3(0, 0, 0)
  104. Directer.P = 600000
  105. local CPart = Inst("Part")
  106. CPart.Anchored = true
  107. CPart.CanCollide = false
  108. CPart.Locked = true
  109. CPart.Transparency = 1
  110.  
  111. local rainbowmode = false
  112. local chaosmode = false
  113.  
  114. local kan = Instance.new("Sound",tors)
  115. kan.Volume = 0.85
  116. kan.TimePosition = 0
  117. kan.PlaybackSpeed = 1
  118. kan.Pitch = 1
  119. kan.SoundId = "rbxassetid://1255569288"
  120. kan.Name = "wrecked"
  121. kan.Looped = true
  122. kan:Play()
  123.  
  124. local currentThemePlaying = kan.SoundId
  125. local currentPitch = kan.Pitch
  126. local currentVol = kan.Volume
  127. function newTheme(ID,timepos,pitch,vol)
  128. local kanz = kan
  129. --kanz:Stop()
  130. kanz.Volume = vol
  131. --kanz.TimePosition = timepos
  132. kanz.PlaybackSpeed = pitch
  133. kanz.Pitch = pitch
  134. kanz.SoundId = ID
  135. kanz.Name = "wrecked"
  136. kanz.Looped = true
  137. currentThemePlaying = kanz.SoundId
  138. currentVol = kanz.Volume
  139. currentPitch = kanz.Pitch
  140. --kanz:Play()
  141. --coroutine.resume(coroutine.create(function()
  142. --wait(0.05)
  143. --end))
  144. end
  145.  
  146. function newThemeCust(ID,timepos,pitch,vol)
  147. local kanz = kan
  148. kanz:Stop()
  149. kanz.Volume = vol
  150. kanz.TimePosition = timepos
  151. kanz.PlaybackSpeed = pitch
  152. kanz.Pitch = pitch
  153. kanz.SoundId = ID
  154. kanz.Name = "wrecked"
  155. kanz.Looped = true
  156. currentThemePlaying = kanz.SoundId
  157. currentVol = kanz.Volume
  158. currentPitch = kanz.Pitch
  159. kanz:Play()
  160. coroutine.resume(coroutine.create(function()
  161. wait(0.05)
  162. end))
  163. end
  164.  
  165. local mutedtog = false
  166.  
  167. function CameraEnshaking(Length,Intensity)
  168. coroutine.resume(coroutine.create(function()
  169. local intensity = 1*Intensity
  170. local rotM = 0.01*Intensity
  171. for i = 0, Length, 0.1 do
  172. swait()
  173. intensity = intensity - 0.05*Intensity/Length
  174. rotM = rotM - 0.0005*Intensity/Length
  175. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  176. 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)
  177. end
  178. Humanoid.CameraOffset = Vec3(0, 0, 0)
  179. end))
  180. end
  181. CamShake=function(Part,Distan,Power,Times)
  182. local de=Part.Position
  183. for i,v in pairs(workspace:children()) do
  184. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  185. for _,c in pairs(v:children()) do
  186. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  187. local Noob=v.Humanoid
  188. if Noob~=nil then
  189. coroutine.resume(coroutine.create(function()
  190. FV = Instance.new("BoolValue", Noob)
  191. FV.Name = "CameraShake"
  192. for ShakeNum=1,Times do
  193. swait()
  194. local ef=Power
  195. if ef>=1 then
  196. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  197. else
  198. ef=Power*10
  199. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  200. end
  201. end
  202. Humanoid.CameraOffset = Vector3.new(0,0,0)
  203. FV:Destroy()
  204. end))
  205. CameraShake(Times, Power, Noob)
  206. end
  207. end
  208. end
  209. end
  210. end
  211. end
  212.  
  213. local toggleTag = true
  214. local bilguit = Instance.new("BillboardGui", hed)
  215. bilguit.Adornee = nil
  216. bilguit.Name = "ModeName"
  217. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  218. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  219. local modet = Instance.new("TextLabel", bilguit)
  220. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  221. modet.FontSize = "Size8"
  222. modet.TextScaled = true
  223. modet.TextTransparency = 0
  224. modet.BackgroundTransparency = 1
  225. modet.TextTransparency = 0
  226. modet.TextStrokeTransparency = 0
  227. modet.Font = "Antique"
  228. modet.TextStrokeColor3 = Color3.new(1,0,0)
  229. modet.TextColor3 = Color3.new(0.25,0,0)
  230. modet.Text = "Hopeless Guest"
  231.  
  232.  
  233. function chatfunc(text,color,typet,font,timeex)
  234. local chat = coroutine.wrap(function()
  235. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  236. Character:FindFirstChild("TalkingBillBoard"):destroy()
  237. end
  238. local naeeym2 = Instance.new("BillboardGui",Character)
  239. naeeym2.Size = UDim2.new(0,100,0,40)
  240. naeeym2.StudsOffset = Vector3.new(0,3,0)
  241. naeeym2.Adornee = Character.Head
  242. naeeym2.Name = "TalkingBillBoard"
  243. local tecks2 = Instance.new("TextLabel",naeeym2)
  244. tecks2.BackgroundTransparency = 1
  245. tecks2.BorderSizePixel = 0
  246. tecks2.Text = ""
  247. tecks2.Font = font
  248. tecks2.TextSize = 30
  249. tecks2.TextStrokeTransparency = 0
  250. tecks2.TextColor3 = color
  251. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  252. tecks2.Size = UDim2.new(1,0,0.5,0)
  253. local tecks3 = Instance.new("TextLabel",naeeym2)
  254. tecks3.BackgroundTransparency = 1
  255. tecks3.BorderSizePixel = 0
  256. tecks3.Text = ""
  257. tecks3.Font = font
  258. tecks3.TextSize = 30
  259. tecks3.TextStrokeTransparency = 0
  260. if typet == "Inverted" then
  261. tecks3.TextColor3 = Color3.new(0,0,0)
  262. tecks3.TextStrokeColor3 = color
  263. elseif typet == "Normal" then
  264. tecks3.TextColor3 = color
  265. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  266. end
  267. tecks3.Size = UDim2.new(1,0,0.5,0)
  268. coroutine.resume(coroutine.create(function()
  269. while true do
  270. swait(1)
  271. if chaosmode == true then
  272. tecks2.TextColor3 = BrickColor.random().Color
  273. tecks3.TextStrokeColor3 = BrickColor.random().Color
  274. end
  275. end
  276. end))
  277. modet.TextTransparency = modet.TextTransparency + 1
  278. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  279. for i = 0, 74*timeex do
  280. swait()
  281. modet.TextTransparency = 1
  282. modet.TextStrokeTransparency = 1
  283. tecks2.Text = text
  284. tecks3.Text = text
  285. end
  286. local randomrot = math.random(1,2)
  287. if randomrot == 1 then
  288. for i = 1, 50 do
  289. swait()
  290. tecks2.Text = text
  291. tecks3.Text = text
  292. modet.TextTransparency = modet.TextTransparency - .02
  293. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  294. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  295. tecks2.TextTransparency = tecks2.TextTransparency + .04
  296. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  297. tecks3.TextTransparency = tecks2.TextTransparency + .04
  298. end
  299. elseif randomrot == 2 then
  300. for i = 1, 50 do
  301. swait()
  302. tecks2.Text = text
  303. tecks3.Text = text
  304. modet.TextTransparency = modet.TextTransparency - .02
  305. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  306. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  307. tecks2.TextTransparency = tecks2.TextTransparency + .04
  308. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  309. tecks3.TextTransparency = tecks2.TextTransparency + .04
  310. end
  311. end
  312. modet.TextTransparency = 0
  313. modet.TextStrokeTransparency = 0
  314. if toggleTag == false then
  315. modet.TextTransparency = 1
  316. modet.TextStrokeTransparency = 1
  317. end
  318. naeeym2:Destroy()
  319. end)
  320. chat()
  321. end
  322.  
  323. function bosschatfunc(text,color,watval)
  324. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  325. coroutine.resume(coroutine.create(function()
  326. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  327. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  328. end
  329. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  330. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  331. scrg.Name = "Dialog"
  332. local txtlb = Instance.new("TextLabel",scrg)
  333. txtlb.Text = ""
  334. txtlb.Font = "Bodoni"
  335. txtlb.TextColor3 = Color3.new(0,0,0)
  336. txtlb.TextStrokeTransparency = 0
  337. txtlb.BackgroundTransparency = 0.75
  338. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  339. txtlb.TextStrokeColor3 = color
  340. txtlb.TextScaled = true
  341. txtlb.Size = UDim2.new(1,0,0.25,0)
  342. txtlb.TextXAlignment = "Left"
  343. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  344. local txtlb2 = Instance.new("TextLabel",scrg)
  345. txtlb2.Text = plr.Name.." The Guest:"
  346. txtlb2.Font = "Antique"
  347. txtlb2.TextColor3 = Color3.new(0,0,0)
  348. txtlb2.TextStrokeTransparency = 0
  349. txtlb2.BackgroundTransparency = 1
  350. txtlb2.TextStrokeColor3 = color
  351. txtlb2.TextSize = 40
  352. txtlb2.Size = UDim2.new(1,0,0.25,0)
  353. txtlb2.TextXAlignment = "Left"
  354. txtlb2.Position = UDim2.new(0,0,1,0)
  355. local fvalen = 0.55
  356. local fval = -0.49
  357. coroutine.resume(coroutine.create(function()
  358. while true do
  359. swait()
  360. if chaosmode == true then
  361. txtlb.Rotation = math.random(-1,1)
  362. txtlb2.Rotation = math.random(-1,1)
  363. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  364. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  365. txtlb.TextStrokeColor3 = BrickColor.random().Color
  366. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  367. end
  368. end
  369. end))
  370. coroutine.resume(coroutine.create(function()
  371. while true do
  372. swait()
  373. if scrg.Parent ~= nil then
  374. fvalen = fvalen - 0.0001
  375. elseif scrg.Parent == nil then
  376. break
  377. end
  378. end
  379. end))
  380. local flol = 1.75
  381. local flil = 1.6
  382. coroutine.resume(coroutine.create(function()
  383. for i = 0, 9 do
  384. swait()
  385. fval = fval + 0.05
  386. flol = flol - 0.1
  387. flil = flil - 0.1
  388. txtlb.Text = ""
  389. txtlb.Position = UDim2.new(0,0,flol,0)
  390. txtlb2.Position = UDim2.new(0,0,flil,0)
  391. end
  392. txtlb.Text = text
  393. wait(watval)
  394. local valinc = 0
  395. for i = 0, 99 do
  396. swait()
  397. valinc = valinc + 0.0001
  398. flol = flol + valinc
  399. flil = flil + valinc
  400. txtlb.Rotation = txtlb.Rotation + valinc*20
  401. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  402. txtlb.Position = UDim2.new(0,0,flol,0)
  403. txtlb2.Position = UDim2.new(0,0,flil,0)
  404. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  405. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  406. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  407. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  408. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  409. end
  410. scrg:Destroy()
  411. end))
  412. end))
  413. end
  414. end
  415.  
  416.  
  417. local Create = LoadLibrary("RbxUtility").Create
  418.  
  419. CFuncs = {
  420. ["Part"] = {
  421. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  422. local Part = Create("Part"){
  423. Parent = Parent,
  424. Reflectance = Reflectance,
  425. Transparency = Transparency,
  426. CanCollide = false,
  427. Locked = true,
  428. BrickColor = BrickColor.new(tostring(BColor)),
  429. Name = Name,
  430. Size = Size,
  431. Material = Material,
  432. }
  433. RemoveOutlines(Part)
  434. return Part
  435. end;
  436. };
  437.  
  438. ["Mesh"] = {
  439. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  440. local Msh = Create(Mesh){
  441. Parent = Part,
  442. Offset = OffSet,
  443. Scale = Scale,
  444. }
  445. if Mesh == "SpecialMesh" then
  446. Msh.MeshType = MeshType
  447. Msh.MeshId = MeshId
  448. end
  449. return Msh
  450. end;
  451. };
  452.  
  453. ["Mesh"] = {
  454. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  455. local Msh = Create(Mesh){
  456. Parent = Part,
  457. Offset = OffSet,
  458. Scale = Scale,
  459. }
  460. if Mesh == "SpecialMesh" then
  461. Msh.MeshType = MeshType
  462. Msh.MeshId = MeshId
  463. end
  464. return Msh
  465. end;
  466. };
  467.  
  468. ["Weld"] = {
  469. Create = function(Parent, Part0, Part1, C0, C1)
  470. local Weld = Create("Weld"){
  471. Parent = Parent,
  472. Part0 = Part0,
  473. Part1 = Part1,
  474. C0 = C0,
  475. C1 = C1,
  476. }
  477. return Weld
  478. end;
  479. };
  480.  
  481. ["Sound"] = {
  482. Create = function(id, par, vol, pit)
  483. coroutine.resume(coroutine.create(function()
  484. local S = Create("Sound"){
  485. Volume = vol,
  486. Name = "EffectSoundo",
  487. Pitch = pit or 1,
  488. SoundId = id,
  489. Parent = par or workspace,
  490. }
  491. wait()
  492. S:play()
  493. game:GetService("Debris"):AddItem(S, 10)
  494. end))
  495. end;
  496. };
  497.  
  498. ["TimeSound"] = {
  499. Create = function(id, par, vol, pit, timepos)
  500. coroutine.resume(coroutine.create(function()
  501. local S = Create("Sound"){
  502. Volume = vol,
  503. Name = "EffectSoundo",
  504. Pitch = pit or 1,
  505. SoundId = id,
  506. TimePosition = timepos,
  507. Parent = par or workspace,
  508. }
  509. wait()
  510. S:play()
  511. game:GetService("Debris"):AddItem(S, 10)
  512. end))
  513. end;
  514. };
  515. ["EchoSound"] = {
  516. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  517. coroutine.resume(coroutine.create(function()
  518. local Sas = Create("Sound"){
  519. Volume = vol,
  520. Name = "EffectSoundo",
  521. Pitch = pit or 1,
  522. SoundId = id,
  523. TimePosition = timepos,
  524. Parent = par or workspace,
  525. }
  526. local E = Create("EchoSoundEffect"){
  527. Delay = echodelay,
  528. Name = "Echo",
  529. Feedback = fedb,
  530. DryLevel = dryl,
  531. Parent = Sas,
  532. }
  533. wait()
  534. Sas:play()
  535. game:GetService("Debris"):AddItem(Sas, delays)
  536. end))
  537. end;
  538. };
  539.  
  540. ["LongSound"] = {
  541. Create = function(id, par, vol, pit)
  542. coroutine.resume(coroutine.create(function()
  543. local S = Create("Sound"){
  544. Volume = vol,
  545. Pitch = pit or 1,
  546. SoundId = id,
  547. Parent = par or workspace,
  548. }
  549. wait()
  550. S:play()
  551. game:GetService("Debris"):AddItem(S, 60)
  552. end))
  553. end;
  554. };
  555.  
  556. ["ParticleEmitter"] = {
  557. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  558. local fp = Create("ParticleEmitter"){
  559. Parent = Parent,
  560. Color = ColorSequence.new(Color1, Color2),
  561. LightEmission = LightEmission,
  562. Size = Size,
  563. Texture = Texture,
  564. Transparency = Transparency,
  565. ZOffset = ZOffset,
  566. Acceleration = Accel,
  567. Drag = Drag,
  568. LockedToPart = LockedToPart,
  569. VelocityInheritance = VelocityInheritance,
  570. EmissionDirection = EmissionDirection,
  571. Enabled = Enabled,
  572. Lifetime = LifeTime,
  573. Rate = Rate,
  574. Rotation = Rotation,
  575. RotSpeed = RotSpeed,
  576. Speed = Speed,
  577. VelocitySpread = VelocitySpread,
  578. }
  579. return fp
  580. end;
  581. };
  582.  
  583. CreateTemplate = {
  584.  
  585. };
  586. }
  587.  
  588.  
  589.  
  590. New = function(Object, Parent, Name, Data)
  591. local Object = Instance.new(Object)
  592. for Index, Value in pairs(Data or {}) do
  593. Object[Index] = Value
  594. end
  595. Object.Parent = Parent
  596. Object.Name = Name
  597. return Object
  598. end
  599. local halocolor = BrickColor.new("Pastel light blue")
  600. local halocolor2 = BrickColor.new("Cool yellow")
  601. local starcolor = BrickColor.new("Bright yellow")
  602. local lunacolor = BrickColor.new("Navy blue")
  603. local lunacolor2 = BrickColor.new("Bright blue")
  604. local wepcolor = BrickColor.new("Really black")
  605. local maincolor = BrickColor.new("Really black")
  606. local m = Instance.new("Model",char)
  607. local m2 = Instance.new("Model",char)
  608. local m3 = Instance.new("Model",char)
  609. local mw1 = Instance.new("Model",char)
  610. local mw2 = Instance.new("Model",char)
  611.  
  612.  
  613. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  614. local gui = it(GuiType)
  615. gui.Parent = parent
  616. gui.Text = text
  617. gui.BackgroundTransparency = backtrans
  618. gui.BackgroundColor3 = backcol
  619. gui.SizeConstraint = "RelativeXY"
  620. gui.TextXAlignment = "Center"
  621. gui.TextYAlignment = "Center"
  622. gui.Position = pos
  623. gui.Size = size
  624. gui.Font = "SourceSans"
  625. gui.FontSize = "Size14"
  626. gui.TextWrapped = false
  627. gui.TextStrokeTransparency = 0
  628. gui.TextColor = BrickColor.new("White")
  629. return gui
  630. end
  631. --------------------------- GUI STUFF
  632. local basgui = it("GuiMain")
  633. basgui.Parent = plr.PlayerGui
  634. basgui.Name = "VISgui"
  635. local fullscreenz = it("Frame")
  636. fullscreenz.Parent = basgui
  637. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  638. fullscreenz.BackgroundTransparency = 1
  639. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  640. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  641. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  642. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  643. imgl2.BackgroundTransparency = 1
  644. imgl2.BorderSizePixel = 0
  645. imgl2.ImageTransparency = 0.5
  646. imgl2.ImageColor3 = Color3.new(1,0,0)
  647. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  648. imgl2.Size = UDim2.new(0,1000,0,1000)
  649. imgl2.Image = "rbxassetid://2325939897"
  650. local techc = imgl2:Clone()
  651. techc.Parent = fullscreenz
  652. techc.ImageTransparency = 0
  653. techc.Size = UDim2.new(0,900,0,900)
  654. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  655. techc.ImageColor3 = Color3.new(1,0,0)
  656. techc.Image = "rbxassetid://2273224484"
  657. local circl = imgl2:Clone()
  658. circl.Parent = fullscreenz
  659. circl.ImageTransparency = 0
  660. circl.Size = UDim2.new(0,550,0,550)
  661. circl.Position = UDim2.new(0.75,25,0.55,25)
  662. circl.ImageColor3 = Color3.new(0,0,0)
  663. circl.Image = "rbxassetid://2312119891"
  664. local circl2 = imgl2:Clone()
  665. circl2.Parent = fullscreenz
  666. circl2.ImageTransparency = 0
  667. circl2.Size = UDim2.new(0,700,0,700)
  668. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  669. circl2.ImageColor3 = Color3.new(1,0,0)
  670. circl2.Image = "rbxassetid://2312119891"
  671. local imgl2b = imgl2:Clone()
  672. imgl2b.Parent = fullscreenz
  673. imgl2b.ImageTransparency = 0
  674. imgl2b.Size = UDim2.new(0,800,0,800)
  675. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  676. imgl2b.ImageColor3 = Color3.new(0,0,0)
  677. local ned = Instance.new("TextLabel",fullscreenz)
  678. ned.ZIndex = 2
  679. ned.Font = "Arcade"
  680. ned.BackgroundTransparency = 1
  681. ned.BorderSizePixel = 0.65
  682. ned.Size = UDim2.new(0.3,0,0.2,0)
  683. ned.Position = UDim2.new(0.7,0,0.8,0)
  684. ned.TextColor3 = BrickColor.new("Really red").Color
  685. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  686. ned.TextScaled = true
  687. ned.TextStrokeTransparency = 0
  688. ned.Text = "Hopeless Guest"
  689. ned.TextSize = 24
  690. ned.Rotation = 1
  691. ned.TextXAlignment = "Right"
  692. ned.TextYAlignment = "Bottom"
  693.  
  694. local extrawingmod1 = Instance.new("Model",char)
  695. local extrawingmod2 = Instance.new("Model",char)
  696.  
  697. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  698. local p = Instance.new("Part")
  699. p.TopSurface = 0
  700. p.BottomSurface = 0
  701. p.Parent = parent
  702. p.Size = Vector3.new(0.1,0.1,0.1)
  703. p.Transparency = transparency
  704. p.Reflectance = reflectance
  705. p.CanCollide = false
  706. p.Locked = true
  707. p.BrickColor = brickcolor
  708. p.Material = material
  709. return p
  710. end
  711.  
  712. function CreateMesh(parent,meshtype,x1,y1,z1)
  713. local mesh = Instance.new("SpecialMesh",parent)
  714. mesh.MeshType = meshtype
  715. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  716. return mesh
  717. end
  718.  
  719. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  720. local mesh = Instance.new("SpecialMesh",parent)
  721. mesh.MeshType = "FileMesh"
  722. mesh.MeshId = meshid
  723. mesh.Scale = Vector3.new(x1,y1,z1)
  724. return mesh
  725. end
  726.  
  727.  
  728. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  729. local mesh = Instance.new("SpecialMesh",parent)
  730. mesh.MeshType = "FileMesh"
  731. mesh.MeshId = meshid
  732. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  733. mesh.Scale = Vector3.new(x1,y1,z1)
  734. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  735. return mesh
  736. end
  737.  
  738. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  739. local weld = Instance.new("Weld")
  740. weld.Parent = parent
  741. weld.Part0 = part0
  742. weld.Part1 = part1
  743. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  744. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  745. return weld
  746. end
  747.  
  748.  
  749. --------------
  750. --------------
  751. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  752. 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))
  753. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  754. 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))
  755.  
  756. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  757. CreateMesh(handle,"Brick",0,0,0)
  758. 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))
  759. local valuaring = 10
  760. for i = 0, 49 do
  761. valuaring = valuaring + 10
  762. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  763. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  764. 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))
  765. end
  766.  
  767. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  768. CreateMesh(handle,"Brick",0,0,0)
  769. 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))
  770. local valuaring = 10
  771. for i = 0, 49 do
  772. valuaring = valuaring + 10
  773. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  774. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  775. 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))
  776. end
  777.  
  778.  
  779. local handle = CreateParta(m,1,1,"Neon",maincolor)
  780. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  781. 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))
  782.  
  783. --- Left wing.
  784.  
  785. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  786. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  787. 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))
  788.  
  789. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  790. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  791. 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))
  792. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  794. 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))
  795. A0 = Instance.new('Attachment',wed)
  796. A0.Position = vt(0,0.25,0.25)
  797. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  798. CreateMesh(wed,"Wedge",0.05,0.5,3)
  799. 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))
  800. A1 = Instance.new('Attachment',wed)
  801. A1.Position = vt(0,-0.25,-2)
  802. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,3,0.5)
  804. 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))
  805.  
  806. tl1 = Instance.new('Trail',wed)
  807. tl1.Attachment0 = A1
  808. tl1.Attachment1 = A0
  809. tl1.Texture = "rbxassetid://2108945559"
  810. tl1.LightEmission = 1
  811. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  812. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  813. tl1.Lifetime = 0.6
  814.  
  815.  
  816. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  817. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  818. 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))
  819.  
  820. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  821. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  822. 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))
  823. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  825. 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))
  826. A0 = Instance.new('Attachment',wed)
  827. A0.Position = vt(0,0.25,0.25)
  828. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  829. CreateMesh(wed,"Wedge",0.05,0.5,3)
  830. 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))
  831. A1 = Instance.new('Attachment',wed)
  832. A1.Position = vt(0,-0.25,-2)
  833. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,3,0.5)
  835. 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))
  836.  
  837. tl2 = Instance.new('Trail',wed)
  838. tl2.Attachment0 = A1
  839. tl2.Attachment1 = A0
  840. tl2.Texture = "rbxassetid://2108945559"
  841. tl2.LightEmission = 1
  842. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  843. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  844. tl2.Lifetime = 0.6
  845.  
  846. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  847. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  848. 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))
  849.  
  850. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  852. 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))
  853. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. 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))
  856. A0 = Instance.new('Attachment',wed)
  857. A0.Position = vt(0,0.25,0.25)
  858. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,3)
  860. 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))
  861. A1 = Instance.new('Attachment',wed)
  862. A1.Position = vt(0,-0.25,-2)
  863. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  864. CreateMesh(wed,"Wedge",0.05,3,0.5)
  865. 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))
  866.  
  867. tl3 = Instance.new('Trail',wed)
  868. tl3.Attachment0 = A1
  869. tl3.Attachment1 = A0
  870. tl3.Texture = "rbxassetid://2108945559"
  871. tl3.LightEmission = 1
  872. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  873. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  874. tl3.Lifetime = 0.6
  875.  
  876. tl1.Enabled = false
  877. tl2.Enabled = false
  878. tl3.Enabled = false
  879. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  880. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  881. 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))
  882.  
  883. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  884. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  885. 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))
  886. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  888. 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))
  889. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,3)
  891. 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))
  892. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,3,0.5)
  894. 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))
  895.  
  896. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  897. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  898. 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))
  899.  
  900. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  902. 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))
  903. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. 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))
  906. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,3)
  908. 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))
  909. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,3,0.5)
  911. 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))
  912.  
  913. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  914. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  915. 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))
  916.  
  917. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. 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))
  920. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  922. 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))
  923. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,3)
  925. 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))
  926. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,3,0.5)
  928. 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))
  929.  
  930. -- Right wing.
  931.  
  932. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  933. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  934. 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))
  935.  
  936. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  938. 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))
  939. A0 = Instance.new('Attachment',wed)
  940. A0.Position = vt(0,0.25,0.25)
  941. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  942. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  943. 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))
  944. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,3)
  946. 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))
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,3,0.5)
  949. 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))
  950. A1 = Instance.new('Attachment',wed)
  951. A1.Position = vt(0,2,0.25)
  952.  
  953. tr1 = Instance.new('Trail',wed)
  954. tr1.Attachment0 = A1
  955. tr1.Attachment1 = A0
  956. tr1.Texture = "rbxassetid://2108945559"
  957. tr1.LightEmission = 1
  958. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  959. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  960. tr1.Lifetime = 0.6
  961.  
  962. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  963. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  964. 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))
  965.  
  966. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  967. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  968. 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))
  969. A0 = Instance.new('Attachment',wed)
  970. A0.Position = vt(0,0.25,0.25)
  971. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  973. 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))
  974. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  975. CreateMesh(wed,"Wedge",0.05,0.5,3)
  976. 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))
  977. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,3,0.5)
  979. 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))
  980. A1 = Instance.new('Attachment',wed)
  981. A1.Position = vt(0,2,0.25)
  982.  
  983. tr2 = Instance.new('Trail',wed)
  984. tr2.Attachment0 = A1
  985. tr2.Attachment1 = A0
  986. tr2.Texture = "rbxassetid://2108945559"
  987. tr2.LightEmission = 1
  988. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  989. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  990. tr2.Lifetime = 0.6
  991.  
  992. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  993. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  994. 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))
  995.  
  996. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  998. 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))
  999. A0 = Instance.new('Attachment',wed)
  1000. A0.Position = vt(0,0.25,0.25)
  1001. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1002. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1003. 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))
  1004. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1006. 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))
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1009. 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))
  1010. A1 = Instance.new('Attachment',wed)
  1011. A1.Position = vt(0,2,0.25)
  1012.  
  1013. tr3 = Instance.new('Trail',wed)
  1014. tr3.Attachment0 = A1
  1015. tr3.Attachment1 = A0
  1016. tr3.Texture = "rbxassetid://2108945559"
  1017. tr3.LightEmission = 1
  1018. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1019. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1020. tr3.Lifetime = 0.6
  1021.  
  1022.  
  1023. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1024. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1025. 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))
  1026.  
  1027. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1028. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1029. 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))
  1030. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. 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))
  1033. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1035. 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))
  1036. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1038. 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))
  1039.  
  1040. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1041. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1042. 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))
  1043.  
  1044. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1045. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1046. 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))
  1047. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1049. 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))
  1050. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1052. 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))
  1053. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1055. 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))
  1056.  
  1057. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1058. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1059. 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))
  1060.  
  1061. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1063. 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))
  1064. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1066. 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))
  1067. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1069. 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))
  1070. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1072. 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))
  1073.  
  1074. --HERES THE RING
  1075.  
  1076.  
  1077. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1078. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1079. 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))
  1080. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1081. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1082. 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))
  1083. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1084. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1085. 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))
  1086.  
  1087.  
  1088. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1089. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1090. 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))
  1091.  
  1092. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1093. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1094. 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))
  1095.  
  1096.  
  1097.  
  1098. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1099. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1100. 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))
  1101.  
  1102. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1103. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1104. 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))
  1105.  
  1106. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1107. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1108. 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))
  1109.  
  1110. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1111. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1112. 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))
  1113. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1114. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1115. 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))]]--
  1116.  
  1117. --- second ring
  1118.  
  1119.  
  1120. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1121. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1122. 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))
  1123.  
  1124. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1125. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1126. 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))
  1127.  
  1128.  
  1129.  
  1130. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1131. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1132. 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))
  1133.  
  1134. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1135. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1136. 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))
  1137.  
  1138. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1139. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1140. 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))
  1141.  
  1142. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1143. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1144. 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))
  1145. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1146. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1147. 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))
  1148.  
  1149.  
  1150.  
  1151. for i, v in pairs(m:GetChildren()) do
  1152. if v:IsA("Part") then
  1153. v.BrickColor = BrickColor.new("Really black")
  1154. v.Material = "Glass"
  1155. end
  1156. end
  1157. for i, v in pairs(m2:GetChildren()) do
  1158. if v:IsA("Part") then
  1159. v.BrickColor = BrickColor.new("Crimson")
  1160. v.Material = "Granite"
  1161. end
  1162. end
  1163. for i, v in pairs(m3:GetChildren()) do
  1164. if v:IsA("Part") then
  1165. v.BrickColor = BrickColor.new("Really red")
  1166. v.Material = "Neon"
  1167. end
  1168. end
  1169. for i, v in pairs(mw2:GetChildren()) do
  1170. if v:IsA("Part") then
  1171. v.BrickColor = BrickColor.new("Really red")
  1172. v.Material = "Neon"
  1173. end
  1174. end
  1175. for i, v in pairs(mw1:GetChildren()) do
  1176. if v:IsA("Part") then
  1177. v.Transparency = 1
  1178. v.BrickColor = BrickColor.new("Really red")
  1179. v.Material = "Neon"
  1180. end
  1181. end
  1182. for i, v in pairs(extrawingmod1:GetChildren()) do
  1183. if v:IsA("Part") then
  1184. v.Transparency = 1
  1185. v.BrickColor = BrickColor.new("White")
  1186. v.Material = "Neon"
  1187. end
  1188. end
  1189. for i, v in pairs(extrawingmod2: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. local MAINRUINCOLOR = BrickColor.new("Really red")
  1197. ------
  1198.  
  1199.  
  1200. function RemoveOutlines(part)
  1201. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1202. end
  1203. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1204. local Part = Create("Part")({
  1205. Parent = Parent,
  1206. Reflectance = Reflectance,
  1207. Transparency = Transparency,
  1208. CanCollide = false,
  1209. Locked = true,
  1210. BrickColor = BrickColor.new(tostring(BColor)),
  1211. Name = Name,
  1212. Size = Size,
  1213. Material = Material
  1214. })
  1215. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1216. RemoveOutlines(Part)
  1217. return Part
  1218. end
  1219. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1220. local Msh = Create(Mesh)({
  1221. Parent = Part,
  1222. Offset = OffSet,
  1223. Scale = Scale
  1224. })
  1225. if Mesh == "SpecialMesh" then
  1226. Msh.MeshType = MeshType
  1227. Msh.MeshId = MeshId
  1228. end
  1229. return Msh
  1230. end
  1231. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1232. local Weld = Create("Weld")({
  1233. Parent = Parent,
  1234. Part0 = Part0,
  1235. Part1 = Part1,
  1236. C0 = C0,
  1237. C1 = C1
  1238. })
  1239. return Weld
  1240. end
  1241.  
  1242. Player = plr
  1243. Character=Player.Character
  1244. PlayerGui=Player.PlayerGui
  1245. Backpack=Player.Backpack
  1246. Torso=Character.Torso
  1247. Head=Character.Head
  1248. Humanoid=Character.Humanoid
  1249. m=Instance.new('Model',Character)
  1250. LeftArm=Character["Left Arm"]
  1251. LeftLeg=Character["Left Leg"]
  1252. RightArm=Character["Right Arm"]
  1253. RightLeg=Character["Right Leg"]
  1254. LS=Torso["Left Shoulder"]
  1255. LH=Torso["Left Hip"]
  1256. RS=Torso["Right Shoulder"]
  1257. RH=Torso["Right Hip"]
  1258. Face = Head.face
  1259. Neck=Torso.Neck
  1260. it=Instance.new
  1261. attacktype=1
  1262. vt=Vector3.new
  1263. cf=CFrame.new
  1264. euler=CFrame.fromEulerAnglesXYZ
  1265. angles=CFrame.Angles
  1266. cloaked=false
  1267. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1268. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1269. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1270. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1271. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1272. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1273. RootPart=Character.HumanoidRootPart
  1274. RootJoint=RootPart.RootJoint
  1275. RootCF=euler(-1.57,0,3.14)
  1276. attack = false
  1277. attackdebounce = false
  1278. deb=false
  1279. equipped=true
  1280. hand=false
  1281. combo=0
  1282. mana=0
  1283. trispeed=.2
  1284. attackmode='none'
  1285. local idle=0
  1286. local Anim="Idle"
  1287. local Effects={}
  1288. local gun=false
  1289. local shoot=false
  1290. local sine = 0
  1291. local change = 1
  1292.  
  1293. function RecolorTextAndRename(name,col1,col2,font)
  1294. modet.TextStrokeColor3 = col2
  1295. modet.TextColor3 = col1
  1296. modet.Font = font
  1297. modet.Text = name
  1298. techc.ImageColor3 = col2
  1299. circl.ImageColor3 = col2
  1300. circl2.ImageColor3 = col1
  1301. imgl2.ImageColor3 = col1
  1302. imgl2b.ImageColor3 = col2
  1303. ned.Text = name
  1304. ned.TextColor3 = col1
  1305. ned.TextStrokeColor3 = col2
  1306. end
  1307. --save shoulders
  1308. RSH, LSH=nil, nil
  1309. --welds
  1310. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1311. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1312. LH=Torso["Left Hip"]
  1313. RH=Torso["Right Hip"]
  1314. TorsoColor=Torso.BrickColor
  1315. function NoOutline(Part)
  1316. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1317. end
  1318. ch=Character
  1319. RSH=ch.Torso["Right Shoulder"]
  1320. LSH=ch.Torso["Left Shoulder"]
  1321. --
  1322. RSH.Parent=nil
  1323. LSH.Parent=nil
  1324. --
  1325. RW.Name="Right Shoulder"
  1326. RW.Part0=ch.Torso
  1327. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1328. RW.C1=cf(0, 0.5, 0)
  1329. RW.Part1=ch["Right Arm"]
  1330. RW.Parent=ch.Torso
  1331. --
  1332. LW.Name="Left Shoulder"
  1333. LW.Part0=ch.Torso
  1334. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1335. LW.C1=cf(0, 0.5, 0)
  1336. LW.Part1=ch["Left Arm"]
  1337. LW.Parent=ch.Torso
  1338.  
  1339. local Stats=Instance.new("BoolValue")
  1340. Stats.Name="Stats"
  1341. Stats.Parent=Character
  1342. local Atk=Instance.new("NumberValue")
  1343. Atk.Name="Damage"
  1344. Atk.Parent=Stats
  1345. Atk.Value=1
  1346. local Def=Instance.new("NumberValue")
  1347. Def.Name="Defense"
  1348. Def.Parent=Stats
  1349. Def.Value=1
  1350. local Speed=Instance.new("NumberValue")
  1351. Speed.Name="Speed"
  1352. Speed.Parent=Stats
  1353. Speed.Value=1
  1354. local Mvmt=Instance.new("NumberValue")
  1355. Mvmt.Name="Movement"
  1356. Mvmt.Parent=Stats
  1357. Mvmt.Value=1
  1358.  
  1359. local donum=0
  1360. local ast = {744586075,385254610}
  1361.  
  1362. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1363. local fp=it("Part")
  1364. fp.formFactor=formfactor
  1365. fp.Parent=parent
  1366. fp.Reflectance=reflectance
  1367. fp.Transparency=transparency
  1368. fp.CanCollide=false
  1369. fp.Locked=true
  1370. fp.BrickColor=brickcolor
  1371. fp.Name=name
  1372. fp.Size=size
  1373. fp.Position=Torso.Position
  1374. NoOutline(fp)
  1375. fp.Material="SmoothPlastic"
  1376. fp:BreakJoints()
  1377. return fp
  1378. end
  1379.  
  1380. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1381. local mesh=it(Mesh)
  1382. mesh.Parent=part
  1383. if Mesh=="SpecialMesh" then
  1384. mesh.MeshType=meshtype
  1385. if meshid~="nil" then
  1386. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1387. end
  1388. end
  1389. mesh.Offset=offset
  1390. mesh.Scale=scale
  1391. return mesh
  1392. end
  1393.  
  1394. function weld(parent,part0,part1,c0)
  1395. local weld=it("Weld")
  1396. weld.Parent=parent
  1397. weld.Part0=part0
  1398. weld.Part1=part1
  1399. weld.C0=c0
  1400. return weld
  1401. end
  1402.  
  1403. local Color1=Torso.BrickColor
  1404.  
  1405. local bodvel=Instance.new("BodyVelocity")
  1406. local bg=Instance.new("BodyGyro")
  1407.  
  1408. --------- SazEreno's Artificial HB --------------
  1409. ArtificialHB = Instance.new("BindableEvent", script)
  1410. ArtificialHB.Name = "ArtificialHB"
  1411.  
  1412. script:WaitForChild("ArtificialHB")
  1413. Frame_Speed = 1 / 60
  1414. frame = Frame_Speed
  1415. tf = 0
  1416. allowframeloss = false
  1417. tossremainder = false
  1418. lastframe = tick()
  1419. script.ArtificialHB:Fire()
  1420.  
  1421. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1422. tf = tf + s
  1423. if tf >= frame then
  1424. if allowframeloss then
  1425. script.ArtificialHB:Fire()
  1426. lastframe = tick()
  1427. else
  1428. for i = 1, math.floor(tf / frame) do
  1429. script.ArtificialHB:Fire()
  1430. end
  1431. lastframe = tick()
  1432. end
  1433. if tossremainder then
  1434. tf = 0
  1435. else
  1436. tf = tf - frame * math.floor(tf / frame)
  1437. end
  1438. end
  1439. end)
  1440.  
  1441. ------------------
  1442. function swait(num)
  1443. if num == 0 or num == nil then
  1444. ArtificialHB.Event:wait()
  1445. else
  1446. for i = 1, num do
  1447. ArtificialHB.Event:wait()
  1448. end
  1449. end
  1450. end
  1451. -------- RAINBOW LEAVE IT TO ME
  1452. local r = 255
  1453. local g = 0
  1454. local b = 0
  1455. coroutine.resume(coroutine.create(function()
  1456. while wait() do
  1457. for i = 0, 254/5 do
  1458. swait()
  1459. g = g + 5
  1460. end
  1461. for i = 0, 254/5 do
  1462. swait()
  1463. r = r - 5
  1464. end
  1465. for i = 0, 254/5 do
  1466. swait()
  1467. b = b + 5
  1468. end
  1469. for i = 0, 254/5 do
  1470. swait()
  1471. g = g - 5
  1472. end
  1473. for i = 0, 254/5 do
  1474. swait()
  1475. r = r + 5
  1476. end
  1477. for i = 0, 254/5 do
  1478. swait()
  1479. b = b - 5
  1480. end
  1481. end
  1482. end))
  1483.  
  1484.  
  1485. so = function(id,par,vol,pit)
  1486. coroutine.resume(coroutine.create(function()
  1487. local sou = Instance.new("Sound",par or workspace)
  1488. sou.Volume=vol
  1489. sou.Pitch=pit or 1
  1490. sou.SoundId=id
  1491. swait()
  1492. sou:play()
  1493. game:GetService("Debris"):AddItem(sou,6)
  1494. end))
  1495. end
  1496.  
  1497. function clerp(a,b,t)
  1498. local qa = {QuaternionFromCFrame(a)}
  1499. local qb = {QuaternionFromCFrame(b)}
  1500. local ax, ay, az = a.x, a.y, a.z
  1501. local bx, by, bz = b.x, b.y, b.z
  1502. local _t = 1-t
  1503. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1504. end
  1505.  
  1506. function QuaternionFromCFrame(cf)
  1507. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1508. local trace = m00 + m11 + m22
  1509. if trace > 0 then
  1510. local s = math.sqrt(1 + trace)
  1511. local recip = 0.5/s
  1512. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1513. else
  1514. local i = 0
  1515. if m11 > m00 then
  1516. i = 1
  1517. end
  1518. if m22 > (i == 0 and m00 or m11) then
  1519. i = 2
  1520. end
  1521. if i == 0 then
  1522. local s = math.sqrt(m00-m11-m22+1)
  1523. local recip = 0.5/s
  1524. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1525. elseif i == 1 then
  1526. local s = math.sqrt(m11-m22-m00+1)
  1527. local recip = 0.5/s
  1528. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1529. elseif i == 2 then
  1530. local s = math.sqrt(m22-m00-m11+1)
  1531. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1532. end
  1533. end
  1534. end
  1535.  
  1536. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1537. local xs, ys, zs = x + x, y + y, z + z
  1538. local wx, wy, wz = w*xs, w*ys, w*zs
  1539. local xx = x*xs
  1540. local xy = x*ys
  1541. local xz = x*zs
  1542. local yy = y*ys
  1543. local yz = y*zs
  1544. local zz = z*zs
  1545. 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))
  1546. end
  1547.  
  1548. function QuaternionSlerp(a, b, t)
  1549. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1550. local startInterp, finishInterp;
  1551. if cosTheta >= 0.0001 then
  1552. if (1 - cosTheta) > 0.0001 then
  1553. local theta = math.acos(cosTheta)
  1554. local invSinTheta = 1/math.sin(theta)
  1555. startInterp = math.sin((1-t)*theta)*invSinTheta
  1556. finishInterp = math.sin(t*theta)*invSinTheta
  1557. else
  1558. startInterp = 1-t
  1559. finishInterp = t
  1560. end
  1561. else
  1562. if (1+cosTheta) > 0.0001 then
  1563. local theta = math.acos(-cosTheta)
  1564. local invSinTheta = 1/math.sin(theta)
  1565. startInterp = math.sin((t-1)*theta)*invSinTheta
  1566. finishInterp = math.sin(t*theta)*invSinTheta
  1567. else
  1568. startInterp = t-1
  1569. finishInterp = t
  1570. end
  1571. end
  1572. 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
  1573. end
  1574.  
  1575. local function CFrameFromTopBack(at, top, back)
  1576. local right = top:Cross(back)
  1577. return CFrame.new(at.x, at.y, at.z,
  1578. right.x, top.x, back.x,
  1579. right.y, top.y, back.y,
  1580. right.z, top.z, back.z)
  1581. end
  1582.  
  1583. function Triangle(a, b, c)
  1584. local edg1 = (c-a):Dot((b-a).unit)
  1585. local edg2 = (a-b):Dot((c-b).unit)
  1586. local edg3 = (b-c):Dot((a-c).unit)
  1587. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1588. a, b, c = a, b, c
  1589. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1590. a, b, c = b, c, a
  1591. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1592. a, b, c = c, a, b
  1593. else
  1594. assert(false, "unreachable")
  1595. end
  1596.  
  1597. local len1 = (c-a):Dot((b-a).unit)
  1598. local len2 = (b-a).magnitude - len1
  1599. local width = (a + (b-a).unit*len1 - c).magnitude
  1600.  
  1601. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1602.  
  1603. local list = {}
  1604.  
  1605. if len1 > 0.01 then
  1606. local w1 = Instance.new('WedgePart', m)
  1607. game:GetService("Debris"):AddItem(w1,5)
  1608. w1.Material = "SmoothPlastic"
  1609. w1.FormFactor = 'Custom'
  1610. w1.BrickColor = BrickColor.new("Really red")
  1611. w1.Transparency = 0
  1612. w1.Reflectance = 0
  1613. w1.Material = "SmoothPlastic"
  1614. w1.CanCollide = false
  1615. local l1 = Instance.new("PointLight",w1)
  1616. l1.Color = Color3.new(170,0,0)
  1617. NoOutline(w1)
  1618. local sz = Vector3.new(0.2, width, len1)
  1619. w1.Size = sz
  1620. local sp = Instance.new("SpecialMesh",w1)
  1621. sp.MeshType = "Wedge"
  1622. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1623. w1:BreakJoints()
  1624. w1.Anchored = true
  1625. w1.Parent = workspace
  1626. w1.Transparency = 0.7
  1627. table.insert(Effects,{w1,"Disappear",.01})
  1628. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1629. table.insert(list,w1)
  1630. end
  1631.  
  1632. if len2 > 0.01 then
  1633. local w2 = Instance.new('WedgePart', m)
  1634. game:GetService("Debris"):AddItem(w2,5)
  1635. w2.Material = "SmoothPlastic"
  1636. w2.FormFactor = 'Custom'
  1637. w2.BrickColor = BrickColor.new("Really red")
  1638. w2.Transparency = 0
  1639. w2.Reflectance = 0
  1640. w2.Material = "SmoothPlastic"
  1641. w2.CanCollide = false
  1642. local l2 = Instance.new("PointLight",w2)
  1643. l2.Color = Color3.new(170,0,0)
  1644. NoOutline(w2)
  1645. local sz = Vector3.new(0.2, width, len2)
  1646. w2.Size = sz
  1647. local sp = Instance.new("SpecialMesh",w2)
  1648. sp.MeshType = "Wedge"
  1649. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1650. w2:BreakJoints()
  1651. w2.Anchored = true
  1652. w2.Parent = workspace
  1653. w2.Transparency = 0.7
  1654. table.insert(Effects,{w2,"Disappear",.01})
  1655. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1656. table.insert(list,w2)
  1657. end
  1658. return unpack(list)
  1659. end
  1660.  
  1661.  
  1662. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1663. if hit.Parent == nil then
  1664. return
  1665. end
  1666. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1667. for _, v in pairs(hit.Parent:children()) do
  1668. if v:IsA("Humanoid") then
  1669. h = v
  1670. end
  1671. end
  1672. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1673. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1674. return
  1675. end
  1676. local c = Create("ObjectValue")({
  1677. Name = "creator",
  1678. Value = owner,
  1679. Parent = h
  1680. })
  1681. game:GetService("Debris"):AddItem(c, 0.5)
  1682. if HitSound ~= nil and HitPitch ~= nil then
  1683. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1684. end
  1685. local Damage = math.random(minim, maxim)
  1686. local blocked = false
  1687. local block = hit.Parent:findFirstChild("Block")
  1688. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1689. blocked = true
  1690. block.Value = block.Value - 1
  1691. print(block.Value)
  1692. end
  1693. if blocked == false then
  1694. HitHealth = h.Health
  1695. h.MaxHealth = 100
  1696. h.Health = h.Health - Damage
  1697. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1698. print("gained kill")
  1699. dmg(h.Parent)
  1700. end
  1701. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1702. else
  1703. h.Health = h.Health - Damage / 2
  1704. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1705. end
  1706. if Type == "Knockdown" then
  1707. local hum = hit.Parent.Humanoid
  1708. hum.PlatformStand = true
  1709. coroutine.resume(coroutine.create(function(HHumanoid)
  1710. swait(1)
  1711. HHumanoid.PlatformStand = false
  1712. end), hum)
  1713. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1714. local bodvol = Create("BodyVelocity")({
  1715. velocity = angle * knockback,
  1716. P = 5000,
  1717. maxForce = Vector3.new(8000, 8000, 8000),
  1718. Parent = hit
  1719. })
  1720. local rl = Create("BodyAngularVelocity")({
  1721. P = 3000,
  1722. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1723. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1724. Parent = hit
  1725. })
  1726. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1727. game:GetService("Debris"):AddItem(rl, 0.5)
  1728. elseif Type == "Normal" then
  1729. local vp = Create("BodyVelocity")({
  1730. P = 500,
  1731. maxForce = Vector3.new(math.huge, 0, math.huge),
  1732. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1733. })
  1734. if knockback > 0 then
  1735. vp.Parent = hit.Parent.Head
  1736. end
  1737. game:GetService("Debris"):AddItem(vp, 0.5)
  1738. elseif Type == "Up" then
  1739. local bodyVelocity = Create("BodyVelocity")({
  1740. velocity = Vector3.new(0, 20, 0),
  1741. P = 5000,
  1742. maxForce = Vector3.new(8000, 8000, 8000),
  1743. Parent = hit
  1744. })
  1745. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  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, 1)
  1753. elseif Type == "Leech" then
  1754. local hum = hit.Parent.Humanoid
  1755. if hum ~= nil then
  1756. for i = 0, 2 do
  1757. 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)
  1758. end
  1759. Humanoid.Health = Humanoid.Health + 10
  1760. end
  1761. elseif Type == "UpKnock" then
  1762. local hum = hit.Parent.Humanoid
  1763. hum.PlatformStand = true
  1764. if hum ~= nil then
  1765. hitr = true
  1766. end
  1767. coroutine.resume(coroutine.create(function(HHumanoid)
  1768. swait(5)
  1769. HHumanoid.PlatformStand = false
  1770. hitr = false
  1771. end), hum)
  1772. local bodyVelocity = Create("BodyVelocity")({
  1773. velocity = Vector3.new(0, 20, 0),
  1774. P = 5000,
  1775. maxForce = Vector3.new(8000, 8000, 8000),
  1776. Parent = hit
  1777. })
  1778. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  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, 1)
  1786. elseif Type == "Snare" then
  1787. local bp = Create("BodyPosition")({
  1788. P = 2000,
  1789. D = 100,
  1790. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1791. position = hit.Parent.Torso.Position,
  1792. Parent = hit.Parent.Torso
  1793. })
  1794. game:GetService("Debris"):AddItem(bp, 1)
  1795. elseif Type == "Slashnare" then
  1796. 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)
  1797. for i = 1, math.random(4, 5) do
  1798. 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)
  1799. end
  1800. local bp = Create("BodyPosition")({
  1801. P = 2000,
  1802. D = 100,
  1803. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1804. position = hit.Parent.Torso.Position,
  1805. Parent = hit.Parent.Torso
  1806. })
  1807. game:GetService("Debris"):AddItem(bp, 1)
  1808. elseif Type == "Spike" then
  1809. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1810. local bp = Create("BodyPosition")({
  1811. P = 2000,
  1812. D = 100,
  1813. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1814. position = hit.Parent.Torso.Position,
  1815. Parent = hit.Parent.Torso
  1816. })
  1817. game:GetService("Debris"):AddItem(bp, 1)
  1818. elseif Type == "Freeze" then
  1819. local BodPos = Create("BodyPosition")({
  1820. P = 50000,
  1821. D = 1000,
  1822. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1823. position = hit.Parent.Torso.Position,
  1824. Parent = hit.Parent.Torso
  1825. })
  1826. local BodGy = Create("BodyGyro")({
  1827. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1828. P = 20000,
  1829. Parent = hit.Parent.Torso,
  1830. cframe = hit.Parent.Torso.CFrame
  1831. })
  1832. hit.Parent.Torso.Anchored = true
  1833. coroutine.resume(coroutine.create(function(Part)
  1834. swait(1.5)
  1835. Part.Anchored = false
  1836. end), hit.Parent.Torso)
  1837. game:GetService("Debris"):AddItem(BodPos, 3)
  1838. game:GetService("Debris"):AddItem(BodGy, 3)
  1839. end
  1840. local debounce = Create("BoolValue")({
  1841. Name = "DebounceHit",
  1842. Parent = hit.Parent,
  1843. Value = true
  1844. })
  1845. game:GetService("Debris"):AddItem(debounce, Delay)
  1846. c = Instance.new("ObjectValue")
  1847. c.Name = "creator"
  1848. c.Value = Player
  1849. c.Parent = h
  1850. game:GetService("Debris"):AddItem(c, 0.5)
  1851. end
  1852. end
  1853. function ShowDamage(Pos, Text, Time, Color)
  1854. local Rate = 0.03333333333333333
  1855. local Pos = Pos or Vector3.new(0, 0, 0)
  1856. local Text = Text or ""
  1857. local Time = Time or 2
  1858. local Color = Color or Color3.new(1, 0, 1)
  1859. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1860. EffectPart.Anchored = true
  1861. local BillboardGui = Create("BillboardGui")({
  1862. Size = UDim2.new(3, 0, 3, 0),
  1863. Adornee = EffectPart,
  1864. Parent = EffectPart
  1865. })
  1866. local TextLabel = Create("TextLabel")({
  1867. BackgroundTransparency = 1,
  1868. Size = UDim2.new(1, 0, 1, 0),
  1869. Text = Text,
  1870. TextColor3 = Color,
  1871. TextScaled = true,
  1872. Font = Enum.Font.ArialBold,
  1873. Parent = BillboardGui
  1874. })
  1875. game.Debris:AddItem(EffectPart, Time + 0.1)
  1876. EffectPart.Parent = game:GetService("Workspace")
  1877. delay(0, function()
  1878. local Frames = Time / Rate
  1879. for Frame = 1, Frames do
  1880. wait(Rate)
  1881. local Percent = Frame / Frames
  1882. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1883. TextLabel.TextTransparency = Percent
  1884. end
  1885. if EffectPart and EffectPart.Parent then
  1886. EffectPart:Destroy()
  1887. end
  1888. end)
  1889. end
  1890. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1891. for _, c in pairs(workspace:children()) do
  1892. local hum = c:findFirstChildOfClass("Humanoid")
  1893. if hum ~= nil then
  1894. local head = c:findFirstChild("Head")
  1895. if head ~= nil then
  1896. local targ = head.Position - Part.Position
  1897. local mag = targ.magnitude
  1898. if magni >= mag and c.Name ~= Player.Name then
  1899. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1900. end
  1901. end
  1902. end
  1903. end
  1904. end
  1905.  
  1906. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1907. for _, c in pairs(workspace:children()) do
  1908. local hum = c:findFirstChild("Humanoid")
  1909. if hum ~= nil then
  1910. local head = c:findFirstChild("Torso")
  1911. if head ~= nil then
  1912. local targ = head.Position - Part.Position
  1913. local mag = targ.magnitude
  1914. if magni >= mag and c.Name ~= Player.Name then
  1915. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1916. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1917. end
  1918. end
  1919. end
  1920. end
  1921. end
  1922.  
  1923. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1924. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1925. end
  1926.  
  1927. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1928. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1929. prt.Anchored=true
  1930. prt.CFrame=cframe
  1931. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1932. --http://www.roblox.com/asset/?id=4770560
  1933. game:GetService("Debris"):AddItem(prt,2)
  1934. CF=prt.CFrame
  1935. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1936. for i=0,1,0.2 do
  1937. wait()
  1938. Part.CFrame=CF*cf(0,0,-0.4)
  1939. end
  1940. for i=0,1,delay do
  1941. wait()
  1942. --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)
  1943. Mesh.Scale=Mesh.Scale
  1944. end
  1945. for i=0,1,0.1 do
  1946. wait()
  1947. Part.Transparency=i
  1948. end
  1949. Part.Parent=nil
  1950. end),prt,msh,CF)
  1951. end
  1952.  
  1953. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1954. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1955. prt.Anchored=true
  1956. prt.Material = "Neon"
  1957. prt.CFrame=cframe
  1958. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1959. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1960. game:GetService("Debris"):AddItem(prt,5)
  1961. coroutine.resume(coroutine.create(function(Part,Mesh)
  1962. for i=0,1,delay do
  1963. swait()
  1964. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1965. Part.Transparency=i
  1966. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1967. end
  1968. Part.Parent=nil
  1969. end),prt,msh)
  1970. end
  1971.  
  1972. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1973. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1974. prt.Anchored=true
  1975. prt.Material = "Neon"
  1976. prt.CFrame=cframe
  1977. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1978. game:GetService("Debris"):AddItem(prt,5)
  1979. coroutine.resume(coroutine.create(function(Part,Mesh)
  1980. local rtype = rottype
  1981. for i=0,1,delay do
  1982. swait()
  1983. if rtype == 1 then
  1984. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1985. elseif rtype == 2 then
  1986. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1987. end
  1988. Part.Transparency=i
  1989. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1990. end
  1991. Part.Parent=nil
  1992. end),prt,msh)
  1993. end
  1994.  
  1995. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1996. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1997. prt.Anchored=true
  1998. prt.CFrame=cframe
  1999. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2000. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2001. game:GetService("Debris"):AddItem(prt,5)
  2002. coroutine.resume(coroutine.create(function(Part,Mesh)
  2003. for i=0,1,delay do
  2004. wait()
  2005. Part.Transparency=i
  2006. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2007. end
  2008. Part.Parent=nil
  2009. end),prt,msh)
  2010. end
  2011.  
  2012. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2013. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2014. prt.Anchored=true
  2015. prt.Material = "Neon"
  2016. prt.CFrame=cframe
  2017. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2018. game:GetService("Debris"):AddItem(prt,5)
  2019. coroutine.resume(coroutine.create(function(Part,Mesh)
  2020. local rtype = rottype
  2021. for i=0,1,delay do
  2022. swait()
  2023. if rtype == 1 then
  2024. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2025. elseif rtype == 2 then
  2026. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2027. end
  2028. Part.Transparency=i
  2029. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2030. end
  2031. Part.Parent=nil
  2032. end),prt,msh)
  2033. end
  2034.  
  2035. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2036. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2037. prt.Anchored=true
  2038. prt.Material = "Neon"
  2039. prt.CFrame=cframe
  2040. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2041. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2042. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2043. game:GetService("Debris"):AddItem(prt,5)
  2044. coroutine.resume(coroutine.create(function(Part,Mesh)
  2045. local rtype = rottype
  2046. for i=0,1,delay do
  2047. swait()
  2048. if rtype == 1 then
  2049. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2050. elseif rtype == 2 then
  2051. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2052. end
  2053. dec.Transparency=i
  2054. dec2.Transparency=i
  2055. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2056. end
  2057. Part.Parent=nil
  2058. end),prt,msh)
  2059. end
  2060.  
  2061. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2062. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2063. prt.Anchored=true
  2064. prt.Material = "Neon"
  2065. prt.CFrame=cframe
  2066. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2067. game:GetService("Debris"):AddItem(prt,5)
  2068. coroutine.resume(coroutine.create(function(Part,Mesh)
  2069. local rtype = rottype
  2070. for i=0,1,delay do
  2071. swait()
  2072. if rtype == 1 then
  2073. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2074. elseif rtype == 2 then
  2075. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2076. end
  2077. prt.Transparency=i
  2078. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2079. end
  2080. Part.Parent=nil
  2081. end),prt,msh)
  2082. end
  2083.  
  2084. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2085. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2086. prt.Anchored=true
  2087. prt.Material = "Neon"
  2088. prt.CFrame=cframe
  2089. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2090. game:GetService("Debris"):AddItem(prt,5)
  2091. coroutine.resume(coroutine.create(function(Part,Mesh)
  2092. local rtype = rottype
  2093. for i=0,1,delay do
  2094. swait()
  2095. if rtype == 1 then
  2096. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2097. elseif rtype == 2 then
  2098. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2099. end
  2100. prt.Transparency=i
  2101. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2102. end
  2103. Part.Parent=nil
  2104. end),prt,msh)
  2105. end
  2106.  
  2107. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2108. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2109. prt.Anchored=true
  2110. prt.Material = "Neon"
  2111. prt.CFrame=cframe
  2112. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2113. game:GetService("Debris"):AddItem(prt,5)
  2114. coroutine.resume(coroutine.create(function(Part,Mesh)
  2115. local rtype = rottype
  2116. for i=0,1,delay do
  2117. swait()
  2118. if rtype == 1 then
  2119. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2120. elseif rtype == 2 then
  2121. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2122. end
  2123. prt.Transparency=i
  2124. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2125. end
  2126. Part.Parent=nil
  2127. end),prt,msh)
  2128. end
  2129.  
  2130. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt.Anchored=true
  2133. prt.Material = "Neon"
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2136. game:GetService("Debris"):AddItem(prt,5)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. local rtype = rottype
  2139. for i=0,1,delay do
  2140. swait()
  2141. if rtype == 1 then
  2142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2143. elseif rtype == 2 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2145. end
  2146. prt.Transparency=i
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=false
  2156. prt.CFrame=cframe
  2157. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2158. local wld=weld(prt,prt,Parent,cframe)
  2159. game:GetService("Debris"):AddItem(prt,5)
  2160. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2161. for i=0,1,delay do
  2162. wait()
  2163. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2164. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2165. Part.Transparency=i
  2166. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2167. end
  2168. Part.Parent=nil
  2169. end),prt,msh,wld)
  2170. end
  2171.  
  2172. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2173. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2174. prt.Anchored=false
  2175. prt.CFrame=cframe
  2176. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2177. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2178. game:GetService("Debris"):AddItem(prt,5)
  2179. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2180. for i=0,1,delay do
  2181. wait()
  2182. Weld.C0=euler(i*20,0,0)
  2183. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2184. Part.Transparency=i
  2185. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2186. end
  2187. Part.Parent=nil
  2188. end),prt,msh,wld)
  2189. end
  2190.  
  2191. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2192. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2193. prt.Anchored=true
  2194. prt.CFrame=cframe
  2195. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2196. game:GetService("Debris"):AddItem(prt,2)
  2197. coroutine.resume(coroutine.create(function(Part,Mesh)
  2198. for i=0,1,delay do
  2199. wait()
  2200. Part.CFrame=Part.CFrame
  2201. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2202. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2203. prt2.Anchored=true
  2204. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2205. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2206. game:GetService("Debris"):AddItem(prt2,2)
  2207. coroutine.resume(coroutine.create(function(Part,Mesh)
  2208. for i=0,1,0.1 do
  2209. wait()
  2210. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2211. end
  2212. Part.Parent=nil
  2213. end),prt2,msh2)
  2214. end
  2215. for i=0,1,delay*2 do
  2216. wait()
  2217. Part.CFrame=Part.CFrame
  2218. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2219. end
  2220. Part.Parent=nil
  2221. end),prt,msh)
  2222. end
  2223.  
  2224. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2225. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2226. prt.Anchored=true
  2227. prt.CFrame=cframe
  2228. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2229. game:GetService("Debris"):AddItem(prt,2)
  2230. coroutine.resume(coroutine.create(function(Part,Mesh)
  2231. for i=0,1,delay do
  2232. wait()
  2233. Part.CFrame=Part.CFrame
  2234. Part.Transparency=i
  2235. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,msh)
  2239. end
  2240.  
  2241. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=true
  2244. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2245. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2246. game:GetService("Debris"):AddItem(prt,2)
  2247. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2248. CF=Part.CFrame
  2249. Numbb=0
  2250. randnumb=math.random()/10
  2251. rand1=math.random()/10
  2252. for i=0,1,rand1 do
  2253. wait()
  2254. CF=CF*cf(0,math.random()/2,0)
  2255. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2256. Part.CFrame=CF*euler(Numbb,0,0)
  2257. Part.Transparency=i
  2258. Numbb=Numbb+randnumb
  2259. end
  2260. Part.Parent=nil
  2261. end),prt,CF,Numbb,randnumb)
  2262. end
  2263.  
  2264. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2265. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2266. prt.Anchored=true
  2267. prt.CFrame=cframe
  2268. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2269. game:GetService("Debris"):AddItem(prt,5)
  2270. coroutine.resume(coroutine.create(function(Part,Mesh)
  2271. for i=0,1,delay do
  2272. wait()
  2273. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2274. Part.Transparency=i
  2275. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2276. end
  2277. Part.Parent=nil
  2278. end),prt,msh)
  2279. end
  2280.  
  2281. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2282. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2283. prt.Anchored=true
  2284. prt.CFrame=cframe
  2285. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2286. game:GetService("Debris"):AddItem(prt,2)
  2287. coroutine.resume(coroutine.create(function(Part,Mesh)
  2288. for i=0,1,delay do
  2289. wait()
  2290. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2291. Part.Transparency=i
  2292. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2293. end
  2294. Part.Parent=nil
  2295. end),prt,msh)
  2296. end
  2297.  
  2298. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2299. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2300. prt.Anchored=true
  2301. prt.CFrame=cframe*cf(x,y,z)
  2302. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2303. game:GetService("Debris"):AddItem(prt,5)
  2304. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2305. local num=math.random()
  2306. local num2=math.random(-3,2)+math.random()
  2307. local numm=0
  2308. for i=0,1,delay*2 do
  2309. swait()
  2310. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2311. Part.Transparency=i
  2312. numm=numm+0.01
  2313. end
  2314. Part.Parent=nil
  2315. Mesh.Parent=nil
  2316. end),prt,msh,x,y,z)
  2317. end
  2318.  
  2319. function dmgstart(dmg,what)
  2320. hitcon = what.Touched:connect(function(hit)
  2321. local hum = hit.Parent:FindFirstChild("Humanoid")
  2322. if hum and not hum:IsDescendantOf(Character) then
  2323. hum:TakeDamage(dmg)
  2324. end
  2325. end)
  2326. end
  2327.  
  2328. function dmgstop()
  2329. hitcon:disconnect()
  2330. end
  2331.  
  2332. function Cloak()
  2333. Face.Parent=nil
  2334. cloaked=true
  2335. for _,v in pairs(Torso.Parent:children()) do
  2336. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2337. coroutine.resume(coroutine.create(function()
  2338. for i=0,1,0.2 do
  2339. wait()
  2340. v.Transparency=i
  2341. end
  2342. v.Transparency=1
  2343. end))
  2344. end
  2345. if v.className=="Hat" then
  2346. hatp=v.Handle
  2347. coroutine.resume(coroutine.create(function(derp)
  2348. for i=0,1,0.2 do
  2349. wait()
  2350. derp.Transparency=i
  2351. end
  2352. derp.Transparency=1
  2353. end),hatp)
  2354. end
  2355. end
  2356. for _,v in pairs(m:children()) do
  2357. if v.className=="Part" then
  2358. coroutine.resume(coroutine.create(function()
  2359. for i=0,1,0.2 do
  2360. wait()
  2361. v.Transparency=i
  2362. end
  2363. v.Transparency=1
  2364. end))
  2365. end
  2366. end
  2367. end
  2368.  
  2369. function UnCloak()
  2370. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2371. Face.Parent=Head
  2372. cloaked=false
  2373. for _,v in pairs(Torso.Parent:children()) do
  2374. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2375. coroutine.resume(coroutine.create(function()
  2376. for i=0,1,0.1 do
  2377. wait()
  2378. v.Transparency=v.Transparency-0.1
  2379. end
  2380. v.Transparency=0
  2381. end))
  2382. end
  2383. if v.className=="Hat" then
  2384. hatp=v.Handle
  2385. coroutine.resume(coroutine.create(function(derp)
  2386. for i=0,1,0.1 do
  2387. wait()
  2388. derp.Transparency=derp.Transparency-0.1
  2389. end
  2390. derp.Transparency=0
  2391. end),hatp)
  2392. end
  2393. end
  2394. for _,v in pairs(m:children()) do
  2395. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2396. coroutine.resume(coroutine.create(function()
  2397. for i=0,1,0.1 do
  2398. wait()
  2399. v.Transparency=v.Transparency-0.1
  2400. end
  2401. v.Transparency=0
  2402. end))
  2403. v.Transparency=0
  2404. end
  2405. end
  2406. end
  2407.  
  2408. local origcolor = BrickColor.new("Pastel light blue")
  2409. ---- This section of explosions.
  2410.  
  2411. ----
  2412.  
  2413.  
  2414. function ring(type,pos,scale,value)
  2415. local type = type
  2416. local rng = Instance.new("Part", char)
  2417. rng.Anchored = true
  2418. rng.BrickColor = origcolor
  2419. rng.CanCollide = false
  2420. rng.FormFactor = 3
  2421. rng.Name = "Ring"
  2422. rng.Size = Vector3.new(1, 1, 1)
  2423. rng.Transparency = 0
  2424. rng.TopSurface = 0
  2425. rng.BottomSurface = 0
  2426. rng.CFrame = pos
  2427. local rngm = Instance.new("SpecialMesh", rng)
  2428. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2429. rngm.Scale = scale
  2430. local scaler2 = 1
  2431. if type == "Add" then
  2432. scaler2 = 1*value
  2433. elseif type == "Divide" then
  2434. scaler2 = 1/value
  2435. end
  2436. coroutine.resume(coroutine.create(function()
  2437. for i = 0,10,0.1 do
  2438. swait()
  2439. if type == "Add" then
  2440. scaler2 = scaler2 - 0.01*value
  2441. elseif type == "Divide" then
  2442. scaler2 = scaler2 - 0.01/value
  2443. end
  2444. rng.Transparency = rng.Transparency + 0.01
  2445. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2446. end
  2447. rng:Destroy()
  2448. end))
  2449. end
  2450.  
  2451.  
  2452. function wave(type,pos,scale,value)
  2453. local type = type
  2454. local rng = Instance.new("Part", char)
  2455. rng.Anchored = true
  2456. rng.BrickColor = origcolor
  2457. rng.CanCollide = false
  2458. rng.FormFactor = 3
  2459. rng.Name = "Ring"
  2460. rng.Size = Vector3.new(1, 1, 1)
  2461. rng.Transparency = 0
  2462. rng.TopSurface = 0
  2463. rng.BottomSurface = 0
  2464. rng.CFrame = pos
  2465. local rngm = Instance.new("SpecialMesh", rng)
  2466. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2467. rngm.Scale = scale
  2468. local scaler2 = 1
  2469. if type == "Add" then
  2470. scaler2 = 1*value
  2471. elseif type == "Divide" then
  2472. scaler2 = 1/value
  2473. end
  2474. coroutine.resume(coroutine.create(function()
  2475. for i = 0,10,0.1 do
  2476. swait()
  2477. if type == "Add" then
  2478. scaler2 = scaler2 - 0.01*value
  2479. elseif type == "Divide" then
  2480. scaler2 = scaler2 - 0.01/value
  2481. end
  2482. rng.Transparency = rng.Transparency + 0.01
  2483. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2484. end
  2485. rng:Destroy()
  2486. end))
  2487. end
  2488.  
  2489. function wind(type,pos,scale,value,speed)
  2490. local type = type
  2491. local rng = Instance.new("Part", char)
  2492. rng.Anchored = true
  2493. rng.BrickColor = origcolor
  2494. rng.CanCollide = false
  2495. rng.FormFactor = 3
  2496. rng.Name = "Ring"
  2497. rng.Size = Vector3.new(1, 1, 1)
  2498. rng.Transparency = 0
  2499. rng.TopSurface = 0
  2500. rng.BottomSurface = 0
  2501. rng.CFrame = pos
  2502. local rngm = Instance.new("SpecialMesh", rng)
  2503. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2504. rngm.Scale = scale
  2505. local scaler2 = 1
  2506. if type == "Add" then
  2507. scaler2 = 1*value
  2508. elseif type == "Divide" then
  2509. scaler2 = 1/value
  2510. end
  2511. coroutine.resume(coroutine.create(function()
  2512. for i = 0,10,0.1 do
  2513. swait()
  2514. if type == "Add" then
  2515. scaler2 = scaler2 - 0.01*value
  2516. elseif type == "Divide" then
  2517. scaler2 = scaler2 - 0.01/value
  2518. end
  2519. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2520. rng.Transparency = rng.Transparency + 0.01
  2521. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2522. end
  2523. rng:Destroy()
  2524. end))
  2525. end
  2526.  
  2527. function groundwind(type,pos,scale,value,speed)
  2528. local type = type
  2529. local rng = Instance.new("Part", char)
  2530. rng.Anchored = true
  2531. rng.BrickColor = origcolor
  2532. rng.CanCollide = false
  2533. rng.FormFactor = 3
  2534. rng.Name = "Ring"
  2535. rng.Size = Vector3.new(1, 1, 1)
  2536. rng.Transparency = 0
  2537. rng.TopSurface = 0
  2538. rng.BottomSurface = 0
  2539. rng.CFrame = pos
  2540. local rngm = Instance.new("SpecialMesh", rng)
  2541. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2542. rngm.Scale = scale
  2543. local scaler2 = 1
  2544. if type == "Add" then
  2545. scaler2 = 1*value
  2546. elseif type == "Divide" then
  2547. scaler2 = 1/value
  2548. end
  2549. coroutine.resume(coroutine.create(function()
  2550. for i = 0,10,0.1 do
  2551. swait()
  2552. if type == "Add" then
  2553. scaler2 = scaler2 - 0.01*value
  2554. elseif type == "Divide" then
  2555. scaler2 = scaler2 - 0.01/value
  2556. end
  2557. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2558. rng.Transparency = rng.Transparency + 0.01
  2559. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2560. end
  2561. rng:Destroy()
  2562. end))
  2563. end
  2564.  
  2565. function CameraManager()
  2566. if TwoD and not CamInterrupt then
  2567. if Humanoid.Health > 0 then
  2568. Camera.CameraSubject = Humanoid
  2569. Camera.CameraType = "Scriptable"
  2570. Humanoid.AutoRotate = false
  2571. if Booleans.GyroUse then
  2572. Directer.MaxTorque = Vec3(0, huge, 0)
  2573. else
  2574. Directer.MaxTorque = Vec3(0, 0, 0)
  2575. end
  2576. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2577. if Booleans.CamFollow then
  2578. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2579. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2580. else
  2581. CPart.Position = RootPart.Position
  2582. end
  2583. else
  2584. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2585. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2586. end
  2587. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2588. else
  2589. Camera.CameraSubject = Humanoid
  2590. Camera.CameraType = "Custom"
  2591. Controller.Disabled = false
  2592. end
  2593. end
  2594. end
  2595.  
  2596. function ring(type,pos,scale,value)
  2597. local type = type
  2598. local rng = Instance.new("Part", char)
  2599. rng.Anchored = true
  2600. rng.BrickColor = origcolor
  2601. rng.CanCollide = false
  2602. rng.FormFactor = 3
  2603. rng.Name = "Ring"
  2604. rng.Size = Vector3.new(1, 1, 1)
  2605. rng.Transparency = 0
  2606. rng.TopSurface = 0
  2607. rng.BottomSurface = 0
  2608. rng.CFrame = pos
  2609. local rngm = Instance.new("SpecialMesh", rng)
  2610. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2611. rngm.Scale = scale
  2612. local scaler2 = 1
  2613. if type == "Add" then
  2614. scaler2 = 1*value
  2615. elseif type == "Divide" then
  2616. scaler2 = 1/value
  2617. end
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,10,0.1 do
  2620. swait()
  2621. if type == "Add" then
  2622. scaler2 = scaler2 - 0.01*value
  2623. elseif type == "Divide" then
  2624. scaler2 = scaler2 - 0.01/value
  2625. end
  2626. rng.Transparency = rng.Transparency + 0.01
  2627. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2628. end
  2629. rng:Destroy()
  2630. end))
  2631. end
  2632.  
  2633.  
  2634. function wave(type,pos,scale,value)
  2635. local type = type
  2636. local rng = Instance.new("Part", char)
  2637. rng.Anchored = true
  2638. rng.BrickColor = origcolor
  2639. rng.CanCollide = false
  2640. rng.FormFactor = 3
  2641. rng.Name = "Ring"
  2642. rng.Size = Vector3.new(1, 1, 1)
  2643. rng.Transparency = 0
  2644. rng.TopSurface = 0
  2645. rng.BottomSurface = 0
  2646. rng.CFrame = pos
  2647. local rngm = Instance.new("SpecialMesh", rng)
  2648. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2649. rngm.Scale = scale
  2650. local scaler2 = 1
  2651. if type == "Add" then
  2652. scaler2 = 1*value
  2653. elseif type == "Divide" then
  2654. scaler2 = 1/value
  2655. end
  2656. coroutine.resume(coroutine.create(function()
  2657. for i = 0,10,0.1 do
  2658. swait()
  2659. if type == "Add" then
  2660. scaler2 = scaler2 - 0.01*value
  2661. elseif type == "Divide" then
  2662. scaler2 = scaler2 - 0.01/value
  2663. end
  2664. rng.Transparency = rng.Transparency + 0.01
  2665. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2666. end
  2667. rng:Destroy()
  2668. end))
  2669. end
  2670.  
  2671. function sphere(bonuspeed,type,pos,scale,value,color)
  2672. local type = type
  2673. local rng = Instance.new("Part", char)
  2674. rng.Anchored = true
  2675. if ModeOfGlitch ~= 9 then
  2676. rng.BrickColor = color
  2677. elseif ModeOfGlitch == 9 then
  2678. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2679. end
  2680. rng.CanCollide = false
  2681. rng.FormFactor = 3
  2682. rng.Name = "Ring"
  2683. rng.Material = "Neon"
  2684. rng.Size = Vector3.new(1, 1, 1)
  2685. rng.Transparency = 0
  2686. rng.TopSurface = 0
  2687. rng.BottomSurface = 0
  2688. rng.CFrame = pos
  2689. local rngm = Instance.new("SpecialMesh", rng)
  2690. rngm.MeshType = "Sphere"
  2691. rngm.Scale = scale
  2692. if rainbowmode == true then
  2693. rng.Color = Color3.new(r/255,g/255,b/255)
  2694. end
  2695. if ModeOfGlitch == 9 then
  2696. coroutine.resume(coroutine.create(function()
  2697. while true do
  2698. swait()
  2699. if rng.Parent ~= nil then
  2700. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2701. else
  2702. break
  2703. end
  2704. end
  2705. end))
  2706. end
  2707. local scaler2 = 1
  2708. if type == "Add" then
  2709. scaler2 = 1*value
  2710. elseif type == "Divide" then
  2711. scaler2 = 1/value
  2712. end
  2713. coroutine.resume(coroutine.create(function()
  2714. for i = 0,10/bonuspeed,0.1 do
  2715. swait()
  2716. if rainbowmode == true then
  2717. rng.Color = Color3.new(r/255,g/255,b/255)
  2718. end
  2719. if type == "Add" then
  2720. scaler2 = scaler2 - 0.01*value/bonuspeed
  2721. elseif type == "Divide" then
  2722. scaler2 = scaler2 - 0.01/value*bonuspeed
  2723. end
  2724. if chaosmode == true then
  2725. rng.BrickColor = BrickColor.random()
  2726. end
  2727. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2728. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2729. end
  2730. rng:Destroy()
  2731. end))
  2732. end
  2733.  
  2734. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2735. local type = type
  2736. local rng = Instance.new("Part", char)
  2737. rng.Anchored = true
  2738. if ModeOfGlitch ~= 9 then
  2739. rng.BrickColor = color
  2740. elseif ModeOfGlitch == 9 then
  2741. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2742. end
  2743. rng.CanCollide = false
  2744. rng.FormFactor = 3
  2745. rng.Name = "Ring"
  2746. rng.Material = "Neon"
  2747. rng.Size = Vector3.new(1, 1, 1)
  2748. rng.Transparency = 0
  2749. rng.TopSurface = 0
  2750. rng.BottomSurface = 0
  2751. rng.CFrame = pos
  2752. local rngm = Instance.new("SpecialMesh", rng)
  2753. rngm.MeshType = "Sphere"
  2754. rngm.Scale = scale
  2755. local scaler2 = 1
  2756. local scaler2b = 1
  2757. local scaler2c = 1
  2758. if type == "Add" then
  2759. scaler2 = 1*value
  2760. scaler2b = 1*value2
  2761. scaler2c = 1*value3
  2762. elseif type == "Divide" then
  2763. scaler2 = 1/value
  2764. scaler2b = 1/value2
  2765. scaler2c = 1/value3
  2766. end
  2767. if ModeOfGlitch == 9 then
  2768. coroutine.resume(coroutine.create(function()
  2769. while true do
  2770. swait()
  2771. if rng.Parent ~= nil then
  2772. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2773. else
  2774. break
  2775. end
  2776. end
  2777. end))
  2778. end
  2779. coroutine.resume(coroutine.create(function()
  2780. for i = 0,10/bonuspeed,0.1 do
  2781. swait()
  2782. if type == "Add" then
  2783. scaler2 = scaler2 - 0.01*value/bonuspeed
  2784. scaler2b = scaler2b - 0.01*value/bonuspeed
  2785. scaler2c = scaler2c - 0.01*value/bonuspeed
  2786. elseif type == "Divide" then
  2787. scaler2 = scaler2 - 0.01/value*bonuspeed
  2788. scaler2b = scaler2b - 0.01/value*bonuspeed
  2789. scaler2c = scaler2c - 0.01/value*bonuspeed
  2790. end
  2791. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2792. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2793. end
  2794. rng:Destroy()
  2795. end))
  2796. end
  2797.  
  2798. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2799. local type = type
  2800. local rotenable = rotatingop
  2801. local rng = Instance.new("Part", char)
  2802. rng.Anchored = true
  2803. rng.BrickColor = color
  2804. rng.CanCollide = false
  2805. rng.FormFactor = 3
  2806. rng.Name = "Ring"
  2807. rng.Material = "Neon"
  2808. rng.Size = Vector3.new(1, 1, 1)
  2809. rng.Transparency = 0
  2810. if typeoftrans == "In" then
  2811. rng.Transparency = 1
  2812. end
  2813. rng.TopSurface = 0
  2814. rng.BottomSurface = 0
  2815. rng.CFrame = pos
  2816. local rngm = Instance.new("SpecialMesh", rng)
  2817. rngm.MeshType = "FileMesh"
  2818. if typeofshape == "Normal" then
  2819. rngm.MeshId = "rbxassetid://662586858"
  2820. elseif typeofshape == "Round" then
  2821. rngm.MeshId = "rbxassetid://662585058"
  2822. end
  2823. rngm.Scale = scale
  2824. local scaler2 = 1/10
  2825. if type == "Add" then
  2826. scaler2 = 1*value/10
  2827. elseif type == "Divide" then
  2828. scaler2 = 1/value/10
  2829. end
  2830. local randomrot = math.random(1,2)
  2831. coroutine.resume(coroutine.create(function()
  2832. for i = 0,10/bonuspeed,0.1 do
  2833. swait()
  2834. if type == "Add" then
  2835. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2836. elseif type == "Divide" then
  2837. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2838. end
  2839. if rotenable == true then
  2840. if randomrot == 1 then
  2841. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2842. elseif randomrot == 2 then
  2843. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2844. end
  2845. end
  2846. if typeoftrans == "Out" then
  2847. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2848. elseif typeoftrans == "In" then
  2849. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2850. end
  2851. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2852. end
  2853. rng:Destroy()
  2854. end))
  2855. end
  2856.  
  2857. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2858. local type = type
  2859. local rng = Instance.new("Part", char)
  2860. rng.Anchored = true
  2861. rng.BrickColor = color
  2862. rng.CanCollide = false
  2863. rng.FormFactor = 3
  2864. rng.Name = "Ring"
  2865. rng.Material = "Neon"
  2866. rng.Size = Vector3.new(1, 1, 1)
  2867. rng.Transparency = 0
  2868. rng.TopSurface = 0
  2869. rng.BottomSurface = 0
  2870. rng.CFrame = pos
  2871. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2872. local rngm = Instance.new("SpecialMesh", rng)
  2873. rngm.MeshType = "Brick"
  2874. rngm.Scale = vt(x1,y1,z1)
  2875. if rainbowmode == true then
  2876. rng.Color = Color3.new(r/255,g/255,b/255)
  2877. end
  2878. local scaler2 = 1
  2879. local speeder = FastSpeed/10
  2880. if type == "Add" then
  2881. scaler2 = 1*value
  2882. elseif type == "Divide" then
  2883. scaler2 = 1/value
  2884. end
  2885. coroutine.resume(coroutine.create(function()
  2886. for i = 0,10/bonuspeed,0.1 do
  2887. swait()
  2888. if rainbowmode == true then
  2889. rng.Color = Color3.new(r/255,g/255,b/255)
  2890. end
  2891. if type == "Add" then
  2892. scaler2 = scaler2 - 0.01*value/bonuspeed
  2893. elseif type == "Divide" then
  2894. scaler2 = scaler2 - 0.01/value*bonuspeed
  2895. end
  2896. if chaosmode == true then
  2897. rng.BrickColor = BrickColor.random()
  2898. end
  2899. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2900. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2901. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2902. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2903. end
  2904. rng:Destroy()
  2905. end))
  2906. end
  2907.  
  2908. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2909. local type = type
  2910. local rng = Instance.new("Part", char)
  2911. rng.Anchored = true
  2912. rng.BrickColor = color
  2913. rng.CanCollide = false
  2914. rng.FormFactor = 3
  2915. rng.Name = "Ring"
  2916. rng.Material = "Neon"
  2917. rng.Size = Vector3.new(1, 1, 1)
  2918. rng.Transparency = 0
  2919. rng.TopSurface = 0
  2920. rng.BottomSurface = 0
  2921. rng.CFrame = pos
  2922. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2923. local rngm = Instance.new("SpecialMesh", rng)
  2924. rngm.MeshType = "Brick"
  2925. rngm.Scale = vt(x1,y1,z1)
  2926. if rainbowmode == true then
  2927. rng.Color = Color3.new(r/255,g/255,b/255)
  2928. end
  2929. local scaler2 = 1
  2930. local speeder = FastSpeed/10
  2931. if type == "Add" then
  2932. scaler2 = 1*value
  2933. elseif type == "Divide" then
  2934. scaler2 = 1/value
  2935. end
  2936. coroutine.resume(coroutine.create(function()
  2937. for i = 0,10/bonuspeed,0.1 do
  2938. swait()
  2939. if rainbowmode == true then
  2940. rng.Color = Color3.new(r/255,g/255,b/255)
  2941. end
  2942. if type == "Add" then
  2943. scaler2 = scaler2 - 0.01*value/bonuspeed
  2944. elseif type == "Divide" then
  2945. scaler2 = scaler2 - 0.01/value*bonuspeed
  2946. end
  2947. if chaosmode == true then
  2948. rng.BrickColor = BrickColor.random()
  2949. end
  2950. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2951. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2952. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2953. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2954. end
  2955. rng:Destroy()
  2956. end))
  2957. end
  2958.  
  2959. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2960. local type = type
  2961. local rng = Instance.new("Part", char)
  2962. rng.Anchored = true
  2963. rng.BrickColor = color
  2964. rng.CanCollide = false
  2965. rng.FormFactor = 3
  2966. rng.Name = "Ring"
  2967. rng.Material = "Neon"
  2968. rng.Size = Vector3.new(1, 1, 1)
  2969. rng.Transparency = 0
  2970. rng.TopSurface = 0
  2971. rng.BottomSurface = 0
  2972. rng.CFrame = pos
  2973. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2974. local rngm = Instance.new("SpecialMesh", rng)
  2975. rngm.MeshType = "Brick"
  2976. rngm.Scale = vt(x1,y1,z1)
  2977. if rainbowmode == true then
  2978. rng.Color = Color3.new(r/255,g/255,b/255)
  2979. end
  2980. local scaler2 = 0
  2981. local speeder = FastSpeed/10
  2982. if type == "Add" then
  2983. scaler2 = 1*value
  2984. elseif type == "Divide" then
  2985. scaler2 = 1/value
  2986. end
  2987. coroutine.resume(coroutine.create(function()
  2988. for i = 0,10/bonuspeed,0.1 do
  2989. swait()
  2990. if rainbowmode == true then
  2991. rng.Color = Color3.new(r/255,g/255,b/255)
  2992. end
  2993. if type == "Add" then
  2994. scaler2 = scaler2 - 0.01*value/bonuspeed
  2995. elseif type == "Divide" then
  2996. scaler2 = scaler2 - 0.01/value*bonuspeed
  2997. end
  2998. if chaosmode == true then
  2999. rng.BrickColor = BrickColor.random()
  3000. end
  3001. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3002. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3003. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3004. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3005. end
  3006. rng:Destroy()
  3007. end))
  3008. end
  3009.  
  3010. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3011. local type = type
  3012. local rng = Instance.new("Part", char)
  3013. rng.Anchored = true
  3014. rng.BrickColor = color
  3015. rng.Color = color3
  3016. rng.CanCollide = false
  3017. rng.FormFactor = 3
  3018. rng.Name = "Ring"
  3019. rng.Material = "Neon"
  3020. rng.Size = Vector3.new(1, 1, 1)
  3021. rng.Transparency = 0
  3022. rng.TopSurface = 0
  3023. rng.BottomSurface = 0
  3024. rng.CFrame = pos
  3025. local rngm = Instance.new("SpecialMesh", rng)
  3026. rngm.MeshType = "Brick"
  3027. rngm.Scale = scale
  3028. local scaler2 = 1
  3029. local scaler2b = 1
  3030. local scaler2c = 1
  3031. if type == "Add" then
  3032. scaler2 = 1*value
  3033. scaler2b = 1*value2
  3034. scaler2c = 1*value3
  3035. elseif type == "Divide" then
  3036. scaler2 = 1/value
  3037. scaler2b = 1/value2
  3038. scaler2c = 1/value3
  3039. end
  3040. coroutine.resume(coroutine.create(function()
  3041. for i = 0,10/bonuspeed,0.1 do
  3042. swait()
  3043. if type == "Add" then
  3044. scaler2 = scaler2 - 0.01*value/bonuspeed
  3045. scaler2b = scaler2b - 0.01*value/bonuspeed
  3046. scaler2c = scaler2c - 0.01*value/bonuspeed
  3047. elseif type == "Divide" then
  3048. scaler2 = scaler2 - 0.01/value*bonuspeed
  3049. scaler2b = scaler2b - 0.01/value*bonuspeed
  3050. scaler2c = scaler2c - 0.01/value*bonuspeed
  3051. end
  3052. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3053. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3054. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3055. end
  3056. rng:Destroy()
  3057. end))
  3058. end
  3059.  
  3060. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3061. local type = type
  3062. local rng = Instance.new("Part", char)
  3063. rng.Anchored = true
  3064. if ModeOfGlitch ~= 9 then
  3065. rng.BrickColor = color
  3066. elseif ModeOfGlitch == 9 then
  3067. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3068. end
  3069. rng.CanCollide = false
  3070. rng.FormFactor = 3
  3071. rng.Name = "Ring"
  3072. rng.Material = "Neon"
  3073. rng.Size = Vector3.new(1, 1, 1)
  3074. rng.Transparency = 0
  3075. rng.TopSurface = 0
  3076. rng.BottomSurface = 0
  3077. rng.CFrame = pos
  3078. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3079. local rngm = Instance.new("SpecialMesh", rng)
  3080. rngm.MeshType = "Sphere"
  3081. rngm.Scale = vt(x1,y1,z1)
  3082. if rainbowmode == true then
  3083. rng.Color = Color3.new(r/255,g/255,b/255)
  3084. end
  3085. if ModeOfGlitch == 9 then
  3086. coroutine.resume(coroutine.create(function()
  3087. while true do
  3088. swait()
  3089. if rng.Parent ~= nil then
  3090. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3091. else
  3092. break
  3093. end
  3094. end
  3095. end))
  3096. end
  3097. local scaler2 = 1
  3098. local speeder = FastSpeed
  3099. if type == "Add" then
  3100. scaler2 = 1*value
  3101. elseif type == "Divide" then
  3102. scaler2 = 1/value
  3103. end
  3104. coroutine.resume(coroutine.create(function()
  3105. for i = 0,10/bonuspeed,0.1 do
  3106. swait()
  3107. if rainbowmode == true then
  3108. rng.Color = Color3.new(r/255,g/255,b/255)
  3109. end
  3110. if type == "Add" then
  3111. scaler2 = scaler2 - 0.01*value/bonuspeed
  3112. elseif type == "Divide" then
  3113. scaler2 = scaler2 - 0.01/value*bonuspeed
  3114. end
  3115. if chaosmode == true then
  3116. rng.BrickColor = BrickColor.random()
  3117. end
  3118. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3119. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3120. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3121. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3122. end
  3123. rng:Destroy()
  3124. end))
  3125. end
  3126.  
  3127.  
  3128. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3129. local type = type
  3130. local rng = Instance.new("Part", char)
  3131. rng.Anchored = true
  3132. if ModeOfGlitch ~= 9 then
  3133. rng.BrickColor = color
  3134. elseif ModeOfGlitch == 9 then
  3135. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3136. end
  3137. rng.CanCollide = false
  3138. rng.FormFactor = 3
  3139. rng.Name = "Ring"
  3140. rng.Material = "Neon"
  3141. rng.Size = Vector3.new(1, 1, 1)
  3142. rng.Transparency = 1
  3143. rng.TopSurface = 0
  3144. rng.BottomSurface = 0
  3145. rng.CFrame = pos
  3146. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3147. local rngm = Instance.new("SpecialMesh", rng)
  3148. rngm.MeshType = "Sphere"
  3149. rngm.Scale = vt(x1,y1,z1)
  3150. if rainbowmode == true then
  3151. rng.Color = Color3.new(r/255,g/255,b/255)
  3152. end
  3153. if ModeOfGlitch == 9 then
  3154. coroutine.resume(coroutine.create(function()
  3155. while true do
  3156. swait()
  3157. if rng.Parent ~= nil then
  3158. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3159. else
  3160. break
  3161. end
  3162. end
  3163. end))
  3164. end
  3165. local scaler2 = 1
  3166. local speeder = FastSpeed
  3167. if type == "Add" then
  3168. scaler2 = 1*value
  3169. elseif type == "Divide" then
  3170. scaler2 = 1/value
  3171. end
  3172. coroutine.resume(coroutine.create(function()
  3173. for i = 0,10/bonuspeed,0.1 do
  3174. swait()
  3175. if rainbowmode == true then
  3176. rng.Color = Color3.new(r/255,g/255,b/255)
  3177. end
  3178. if type == "Add" then
  3179. scaler2 = scaler2 - 0.01*value/bonuspeed
  3180. elseif type == "Divide" then
  3181. scaler2 = scaler2 - 0.01/value*bonuspeed
  3182. end
  3183. if chaosmode == true then
  3184. rng.BrickColor = BrickColor.random()
  3185. end
  3186. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3187. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3188. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3189. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3190. end
  3191. rng:Destroy()
  3192. end))
  3193. end
  3194.  
  3195. function dmg(dude)
  3196. if dude.Name ~= Character then
  3197. local keptcolor = MAINRUINCOLOR
  3198. local bgf = Instance.new("BodyGyro",dude.Head)
  3199. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3200. --[[local val = Instance.new("BoolValue",dude)
  3201. val.Name = "IsHit"]]--
  3202. local ds = coroutine.wrap(function()
  3203. dude:WaitForChild("Head"):BreakJoints()
  3204. for i, v in pairs(dude:GetChildren()) do
  3205. if v:IsA("Part") or v:IsA("MeshPart") then
  3206. v.Name = "DEMINISHED"
  3207. end
  3208. end
  3209. wait(0.5)
  3210. targetted = nil
  3211. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3212. coroutine.resume(coroutine.create(function()
  3213. for i, v in pairs(dude:GetChildren()) do
  3214. if v:IsA("Accessory") then
  3215. v:Destroy()
  3216. end
  3217. if v:IsA("Humanoid") then
  3218. v:Destroy()
  3219. end
  3220. if v:IsA("CharacterMesh") then
  3221. v:Destroy()
  3222. end
  3223. if v:IsA("Model") then
  3224. v:Destroy()
  3225. end
  3226. if v:IsA("Part") or v:IsA("MeshPart") then
  3227. for x, o in pairs(v:GetChildren()) do
  3228. if o:IsA("Decal") then
  3229. o:Destroy()
  3230. end
  3231. end
  3232. coroutine.resume(coroutine.create(function()
  3233. v.Material = "Neon"
  3234. v.CanCollide = false
  3235. v.Anchored = false
  3236. local bld = Instance.new("ParticleEmitter",v)
  3237. bld.LightEmission = 0.75
  3238. bld.Texture = "rbxassetid://363275192" ---284205403
  3239. bld.Color = ColorSequence.new(keptcolor.Color)
  3240. bld.Rate = 500
  3241. bld.Lifetime = NumberRange.new(1)
  3242. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3243. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3244. bld.Speed = NumberRange.new(2,5)
  3245. bld.VelocitySpread = 50000
  3246. bld.Rotation = NumberRange.new(-500,500)
  3247. bld.RotSpeed = NumberRange.new(-500,500)
  3248. local sbs = Instance.new("BodyPosition", v)
  3249. sbs.P = 3000
  3250. sbs.D = 1000
  3251. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3252. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3253. v.Color = keptcolor.Color
  3254. coroutine.resume(coroutine.create(function()
  3255. for i = 0, 49 do
  3256. swait(1)
  3257. v:BreakJoints()
  3258. v.Transparency = v.Transparency + 0.02
  3259. end
  3260. v:BreakJoints()
  3261. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3262. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3263. bld.Speed = NumberRange.new(10,25)
  3264. bld.Drag = 5
  3265. bld.Acceleration = vt(0,2,0)
  3266. wait(0.5)
  3267. bld.Enabled = false
  3268. wait(8)
  3269. v:Destroy()
  3270. dude:Destroy()
  3271. end))
  3272. end))
  3273. end
  3274. end
  3275. end))
  3276. end)
  3277. ds()
  3278. end
  3279. end
  3280.  
  3281.  
  3282. function FindNearestHead(Position, Distance, SinglePlayer)
  3283. if SinglePlayer then
  3284. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3285. end
  3286. local List = {}
  3287. for i, v in pairs(workspace:GetChildren()) do
  3288. if v:IsA("Model") then
  3289. if v:findFirstChild("Head") then
  3290. if v ~= Character then
  3291. if (v.Head.Position - Position).magnitude <= Distance then
  3292. table.insert(List, v)
  3293. end
  3294. end
  3295. end
  3296. end
  3297. end
  3298. return List
  3299. end
  3300.  
  3301. function FaceMouse()
  3302. Cam = workspace.CurrentCamera
  3303. return {
  3304. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3305. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3306. }
  3307. end
  3308.  
  3309. function FaceMouse2()
  3310. Cam = workspace.CurrentCamera
  3311. return {
  3312. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3313. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3314. }
  3315. end
  3316.  
  3317. local ModeOfGlitch = 1
  3318. -- Functions are ready.
  3319. local storehumanoidWS = 16
  3320.  
  3321. function CorruptBlink()
  3322. for i = 0, 14 do
  3323. 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)
  3324. end
  3325. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3326. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3327. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3328. CameraEnshaking(2,10)
  3329. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3330. if v:FindFirstChild('Head') then
  3331. dmg(v)
  3332. end
  3333. end
  3334. for i = 0, 14 do
  3335. 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)
  3336. end
  3337. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3338. end
  3339. function PureBomb()
  3340. attack = true
  3341. hum.WalkSpeed = 0
  3342. local orb = Instance.new("Part", char)
  3343. orb.Anchored = true
  3344. orb.BrickColor = BrickColor.new("Toothpaste")
  3345. orb.CanCollide = false
  3346. orb.FormFactor = 3
  3347. orb.Name = "Ring"
  3348. orb.Material = "Neon"
  3349. orb.Size = Vector3.new(1, 1, 1)
  3350. orb.Transparency = 0
  3351. orb.TopSurface = 0
  3352. orb.BottomSurface = 0
  3353. local orbm = Instance.new("SpecialMesh", orb)
  3354. orbm.MeshType = "Sphere"
  3355. orbm.Name = "SizeMesh"
  3356. orbm.Scale = vt(0,0,0)
  3357. local scaled = 0.1
  3358. local posid = 0
  3359. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3360. for i = 0, 5, 0.1 do
  3361. swait()
  3362. scaled = scaled - 0.001
  3363. posid = posid - scaled
  3364. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3365. local scaled = 0.1
  3366. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3367. 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)
  3368. 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)
  3369. 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)
  3370. 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)
  3371. 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)
  3372. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3373. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3374. 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)
  3375. end
  3376. for i = 0, 2, 0.1 do
  3377. swait()
  3378. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3379. 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)
  3380. 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)
  3381. 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)
  3382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3383. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3384. 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)
  3385. end
  3386. coroutine.resume(coroutine.create(function()
  3387. orb.Anchored = false
  3388. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3389. local a = Instance.new("Part",workspace)
  3390. a.Name = "Direction"
  3391. a.Anchored = true
  3392. a.BrickColor = bc("Bright red")
  3393. a.Material = "Neon"
  3394. a.Transparency = 1
  3395. a.CanCollide = false
  3396. local ray = Ray.new(
  3397. orb.CFrame.p, -- origin
  3398. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3399. )
  3400. local ignore = orb
  3401. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3402. a.BottomSurface = 10
  3403. a.TopSurface = 10
  3404. local distance = (orb.CFrame.p - position).magnitude
  3405. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3406. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3407. orb.CFrame = a.CFrame
  3408. a:Destroy()
  3409. local bv = Instance.new("BodyVelocity")
  3410. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3411. bv.velocity = orb.CFrame.lookVector*125
  3412. bv.Parent = orb
  3413. local hitted = false
  3414. game:GetService("Debris"):AddItem(orb, 15)
  3415. wait()
  3416. local hit =orb.Touched:connect(function(hit)
  3417. if hitted == false then
  3418. hitted = true
  3419. CameraEnshaking(10,2.5)
  3420. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3421. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3422. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3423. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3424. for i = 0, 49 do
  3425. 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)
  3426. end
  3427. for i = 0, 9 do
  3428. 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)
  3429. 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)
  3430. end
  3431. orb.Anchored = true
  3432. orb.Transparency = 1
  3433. wait(8)
  3434. orb:Destroy()
  3435. end
  3436. end)
  3437. end))
  3438. for i = 0, 1, 0.1 do
  3439. swait()
  3440. 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)
  3441. 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)
  3442. 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)
  3443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3444. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3445. 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)
  3446. end
  3447. hum.WalkSpeed = storehumanoidWS
  3448. attack = false
  3449. end
  3450.  
  3451. function BanishingOrb()
  3452. attack = true
  3453. hum.WalkSpeed = 0
  3454. local radm = math.random(1,3)
  3455. if radm == 1 then
  3456. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3457. elseif radm == 2 then
  3458. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3459. elseif radm == 3 then
  3460. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3461. end
  3462. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3463. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3464. local orb = Instance.new("Part", char)
  3465. orb.Anchored = true
  3466. orb.BrickColor = BrickColor.new("Lime green")
  3467. orb.CanCollide = false
  3468. orb.FormFactor = 3
  3469. orb.Name = "Ring"
  3470. orb.Material = "Neon"
  3471. orb.Size = Vector3.new(1, 1, 1)
  3472. orb.Transparency = 0
  3473. orb.TopSurface = 0
  3474. orb.BottomSurface = 0
  3475. local orbm = Instance.new("SpecialMesh", orb)
  3476. orbm.MeshType = "Sphere"
  3477. orbm.Name = "SizeMesh"
  3478. orbm.Scale = vt(0,0,0)
  3479. local scaled = 0.1
  3480. local posid = 0
  3481. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3482. for i = 0, 5, 0.1 do
  3483. swait()
  3484. scaled = scaled - 0.001
  3485. posid = posid - scaled
  3486. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3487. local scaled = 0.1
  3488. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3489. 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)
  3490. 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)
  3491. 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)
  3492. 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)
  3493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3495. 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)
  3496. end
  3497. for i = 0, 2, 0.1 do
  3498. swait()
  3499. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3500. 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)
  3501. 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)
  3502. 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)
  3503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3504. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3505. 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)
  3506. end
  3507. coroutine.resume(coroutine.create(function()
  3508. orb.Anchored = false
  3509. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3510. local a = Instance.new("Part",workspace)
  3511. a.Name = "Direction"
  3512. a.Anchored = true
  3513. a.BrickColor = bc("Lime green")
  3514. a.Material = "Neon"
  3515. a.Transparency = 1
  3516. a.CanCollide = false
  3517. local ray = Ray.new(
  3518. orb.CFrame.p, -- origin
  3519. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3520. )
  3521. local ignore = orb
  3522. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3523. a.BottomSurface = 10
  3524. a.TopSurface = 10
  3525. local distance = (orb.CFrame.p - position).magnitude
  3526. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3527. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3528. orb.CFrame = a.CFrame
  3529. a:Destroy()
  3530. local bv = Instance.new("BodyVelocity")
  3531. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3532. bv.velocity = orb.CFrame.lookVector*0
  3533. bv.Parent = orb
  3534. local hitted = false
  3535. local rate = 0
  3536. coroutine.resume(coroutine.create(function()
  3537. for i = 0, 24 do
  3538. wait(0.1)
  3539. rate = rate + 0.25
  3540. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3541. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3542. if v:FindFirstChild('Head') then
  3543. dmg(v)
  3544. end
  3545. end
  3546. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3547. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3548. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3549. end
  3550. orb.Anchored = true
  3551. orb.Transparency = 1
  3552. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3553. if v:FindFirstChild('Head') then
  3554. dmg(v)
  3555. end
  3556. end
  3557. local eff = Instance.new("ParticleEmitter",orb)
  3558. eff.Texture = "rbxassetid://296874871"
  3559. eff.LightEmission = 0.95
  3560. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3561. eff.Rate = 1000000000
  3562. eff.Lifetime = NumberRange.new(3)
  3563. 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)})
  3564. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3565. eff.Speed = NumberRange.new(30)
  3566. eff.Acceleration = vt(0,-15,0)
  3567. eff.Rotation = NumberRange.new(-500,500)
  3568. eff.VelocitySpread = 100000
  3569. eff.RotSpeed = NumberRange.new(-500,500)
  3570. coroutine.resume(coroutine.create(function()
  3571. wait(0.6)
  3572. eff.Enabled = false
  3573. end))
  3574. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3575. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3576. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3577. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3578. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3579. game:GetService("Debris"):AddItem(orb, 15)
  3580. end))
  3581. end))
  3582. for i = 0, 1, 0.1 do
  3583. swait()
  3584. 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)
  3585. 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)
  3586. 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)
  3587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3588. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3589. 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)
  3590. end
  3591. hum.WalkSpeed = storehumanoidWS
  3592. attack = false
  3593. end
  3594.  
  3595.  
  3596. function ChaosGroundStrike()
  3597. attack = true
  3598. for i = 0, 2, 0.1 do
  3599. swait()
  3600. 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)
  3601. 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)
  3602. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3603. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3604. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3605. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3606. end
  3607. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3608. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3609. CameraEnshaking(4,12)
  3610. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3611. if v:FindFirstChild('Head') then
  3612. dmg(v)
  3613. end
  3614. end
  3615. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3616. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3617. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3618. for i = 0, 2, 0.1 do
  3619. swait()
  3620. 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)
  3621. 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)
  3622. 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)
  3623. 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)
  3624. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3625. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3626. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3627. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3628. end
  3629. attack = false
  3630. end
  3631.  
  3632.  
  3633.  
  3634. function Starfall()
  3635. attack = true
  3636. hum.WalkSpeed = 0
  3637. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3638. for i = 0, 5, 0.1 do
  3639. swait()
  3640. 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)
  3641. 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)
  3642. 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)
  3643. 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)
  3644. 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)
  3645. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3646. 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)
  3647. 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)
  3648. end
  3649. local Overed = false
  3650. CameraEnshaking(2,20)
  3651. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3652. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3653. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3654. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3655. local orb = Instance.new("Part", char)
  3656. orb.Anchored = true
  3657. orb.BrickColor = BrickColor.new("Toothpaste")
  3658. orb.CanCollide = false
  3659. orb.FormFactor = 3
  3660. orb.Name = "Remenant"
  3661. orb.Material = "Neon"
  3662. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3663. orb.Size = Vector3.new(1, 1, 1)
  3664. orb.Transparency = 1
  3665. orb.TopSurface = 0
  3666. orb.BottomSurface = 0
  3667. hum.WalkSpeed = storehumanoidWS
  3668. coroutine.resume(coroutine.create(function()
  3669. for i = 0, 9 do
  3670. swait(10)
  3671. local lb = Instance.new("Part")
  3672. lb.Color = MAINRUINCOLOR.Color
  3673. lb.CanCollide = false
  3674. lb.Material = "Neon"
  3675. lb.Anchored = true
  3676. lb.TopSurface = 0
  3677. lb.BottomSurface = 0
  3678. lb.Transparency = 0
  3679. lb.Size = vt(1,1,1)
  3680. 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)))
  3681. lb.Anchored = false
  3682. lb.Parent = char
  3683. local thingery = Instance.new("SpecialMesh",lb)
  3684. thingery.MeshType = "Sphere"
  3685. thingery.Scale = vt(20,20,20)
  3686. game:GetService("Debris"):AddItem(lb, 10)
  3687. local bv = Instance.new("BodyVelocity")
  3688. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3689. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3690. bv.Parent = lb
  3691. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3692. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3693. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3694. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3695. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3696. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3697. local hitted = false
  3698. coroutine.resume(coroutine.create(function()
  3699. while true do
  3700. swait(1)
  3701. if lb.Parent ~= nil and hitted == false then
  3702. 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)
  3703. elseif lb.Parent == nil then
  3704. break
  3705. end
  3706. end
  3707. end))
  3708.  
  3709. game:GetService("Debris"):AddItem(a, 0.1)
  3710.  
  3711. coroutine.resume(coroutine.create(function()
  3712. swait(1)
  3713. lb.Touched:connect(function(hit)
  3714. if hitted == false then
  3715. hitted = true
  3716. lb.Transparency = 1
  3717. lb.Anchored = true
  3718. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3719. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3720. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3721. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3722. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3723. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3724. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3725. CameraEnshaking(1,5)
  3726. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3727. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3728. for i = 0, 9 do
  3729. 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)
  3730. end
  3731. for i = 0, 49 do
  3732. swait()
  3733. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3734. 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)
  3735. end
  3736. end
  3737. end)
  3738. end))
  3739. end
  3740. Overed = true
  3741. orb:Destroy()
  3742. end))
  3743.  
  3744. attack = false
  3745. end
  3746.  
  3747. function StarfallEX()
  3748. attack = true
  3749. hum.WalkSpeed = 0
  3750. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3751. for i = 0, 10, 0.1 do
  3752. swait()
  3753. 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)
  3754. 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)
  3755. 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)
  3756. 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)
  3757. 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)
  3758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3759. 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)
  3760. 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)
  3761. end
  3762. local Overed = false
  3763. CameraEnshaking(2,20)
  3764. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3765. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3766. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3767. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3768. local orb = Instance.new("Part", char)
  3769. orb.Anchored = true
  3770. orb.BrickColor = BrickColor.new("Toothpaste")
  3771. orb.CanCollide = false
  3772. orb.FormFactor = 3
  3773. orb.Name = "Remenant"
  3774. orb.Material = "Neon"
  3775. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3776. orb.Size = Vector3.new(1, 1, 1)
  3777. orb.Transparency = 1
  3778. orb.TopSurface = 0
  3779. orb.BottomSurface = 0
  3780. hum.WalkSpeed = storehumanoidWS
  3781. coroutine.resume(coroutine.create(function()
  3782. for i = 0, 4 do
  3783. swait(15)
  3784. local lb = Instance.new("Part")
  3785. lb.Color = MAINRUINCOLOR.Color
  3786. lb.CanCollide = false
  3787. lb.Material = "Neon"
  3788. lb.Anchored = true
  3789. lb.TopSurface = 0
  3790. lb.BottomSurface = 0
  3791. lb.Transparency = 0
  3792. lb.Size = vt(1,1,1)
  3793. 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)))
  3794. lb.Anchored = false
  3795. lb.Parent = char
  3796. local thingery = Instance.new("SpecialMesh",lb)
  3797. thingery.MeshType = "Sphere"
  3798. thingery.Scale = vt(50,50,50)
  3799. game:GetService("Debris"):AddItem(lb, 10)
  3800. local bv = Instance.new("BodyVelocity")
  3801. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3802. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3803. bv.Parent = lb
  3804. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3805. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3806. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3807. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3808. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3809. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3810. local hitted = false
  3811. coroutine.resume(coroutine.create(function()
  3812. while true do
  3813. swait(1)
  3814. if lb.Parent ~= nil and hitted == false then
  3815. 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)
  3816. elseif lb.Parent == nil then
  3817. break
  3818. end
  3819. end
  3820. end))
  3821.  
  3822. game:GetService("Debris"):AddItem(a, 0.1)
  3823.  
  3824. coroutine.resume(coroutine.create(function()
  3825. swait(1)
  3826. lb.Touched:connect(function(hit)
  3827. if hitted == false then
  3828. hitted = true
  3829. lb.Transparency = 1
  3830. lb.Anchored = true
  3831. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3832. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3833. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3834. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3835. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3836. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3837. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3838. CameraEnshaking(1,5)
  3839. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3840. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3841. for i = 0, 9 do
  3842. 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)
  3843. end
  3844. for i = 0, 99 do
  3845. swait()
  3846. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3847. 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)
  3848. end
  3849. end
  3850. end)
  3851. end))
  3852. end
  3853. Overed = true
  3854. orb:Destroy()
  3855. end))
  3856.  
  3857. attack = false
  3858. end
  3859.  
  3860. function DivineBlast()
  3861. attack = true
  3862. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3863. hum.WalkSpeed = 0
  3864. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3865. elocacenter.Anchored = true
  3866. elocacenter.CFrame = sorb.CFrame
  3867. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3868. eloca1.Anchored = true
  3869. eloca1.CFrame = elocacenter.CFrame
  3870. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3871. eloca2.Anchored = true
  3872. eloca2.CFrame = elocacenter.CFrame
  3873. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3874. eloca3.Anchored = true
  3875. eloca3.CFrame = elocacenter.CFrame
  3876. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3877. eloca4.Anchored = true
  3878. eloca4.CFrame = elocacenter.CFrame
  3879. local lookavec = 0
  3880. local speeds = 0
  3881. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3882. for i = 0, 3, 0.1 do
  3883. swait()
  3884. ---
  3885. lookavec = lookavec + 0.1
  3886. speeds = speeds + 10
  3887. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3888. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3889. 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)
  3890.  
  3891. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3892. 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)
  3893.  
  3894. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3895. 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)
  3896.  
  3897. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3898. 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)
  3899. ---
  3900. root.CFrame = FaceMouse()[1]
  3901. 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)
  3902. 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)
  3903. 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)
  3904. 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)
  3905. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3906. 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)
  3907. end
  3908. for i = 0, 3, 0.1 do
  3909. swait()
  3910. ---
  3911. speeds = speeds + 10
  3912. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3913. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3914. 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)
  3915.  
  3916. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3917. 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)
  3918.  
  3919. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3920. 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)
  3921.  
  3922. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3923. 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)
  3924. ---
  3925. root.CFrame = FaceMouse()[1]
  3926. 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)
  3927. 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)
  3928. 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)
  3929. 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)
  3930. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3931. 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)
  3932. end
  3933. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3934. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3935. for i = 0, 3, 0.1 do
  3936. swait()
  3937. ---
  3938. speeds = speeds + 10
  3939. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3940. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3941. 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)
  3942.  
  3943. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3944. 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)
  3945.  
  3946. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3947. 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)
  3948.  
  3949. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3950. 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)
  3951. ---
  3952. root.CFrame = FaceMouse()[1]
  3953. 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)
  3954. 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)
  3955. 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)
  3956. 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)
  3957. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3958. 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)
  3959. end
  3960. coroutine.resume(coroutine.create(function()
  3961. local a = Instance.new("Part",Character)
  3962. a.Name = "Direction"
  3963. a.Anchored = true
  3964. a.BrickColor = bc("White")
  3965. a.Material = "Neon"
  3966. a.Transparency = 0
  3967. a.Shape = "Cylinder"
  3968. a.CanCollide = false
  3969. local a2 = Instance.new("Part",Character)
  3970. a2.Name = "Direction"
  3971. a2.Anchored = true
  3972. a2.BrickColor = bc("Bright yellow")
  3973. a2.Material = "Neon"
  3974. a2.Transparency = 0
  3975. a2.Shape = "Cylinder"
  3976. a2.CanCollide = false
  3977. local b = Instance.new("Part",Character)
  3978. b.Name = "HitDirect"
  3979. b.Anchored = true
  3980. b.BrickColor = bc("Cool yellow")
  3981. b.Material = "Neon"
  3982. b.Transparency = 1
  3983. b.CanCollide = false
  3984. local ray = Ray.new(
  3985. elocacenter.CFrame.p, -- origin
  3986. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3987. )
  3988. local ignore = Character
  3989. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3990. a.BottomSurface = 10
  3991. a.TopSurface = 10
  3992. a2.BottomSurface = 10
  3993. a2.TopSurface = 10
  3994. local distance = (elocacenter.CFrame.p - position).magnitude
  3995. a.Size = Vector3.new(distance, 1, 1)
  3996. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3997. a2.Size = Vector3.new(distance, 1, 1)
  3998. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3999. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4000. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4001. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4002. game:GetService("Debris"):AddItem(a, 10)
  4003. game:GetService("Debris"):AddItem(a2, 10)
  4004. game:GetService("Debris"):AddItem(b, 10)
  4005. local eff = Instance.new("ParticleEmitter",b)
  4006. eff.Texture = "rbxassetid://2273224484"
  4007. eff.LightEmission = 1
  4008. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4009. eff.Rate = 500000
  4010. eff.Lifetime = NumberRange.new(0.5,2)
  4011. 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)})
  4012. 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)})
  4013. eff.Speed = NumberRange.new(20,250)
  4014. eff.Drag = 5
  4015. eff.Rotation = NumberRange.new(-500,500)
  4016. eff.VelocitySpread = 9000
  4017. eff.RotSpeed = NumberRange.new(-50,50)
  4018. coroutine.resume(coroutine.create(function()
  4019. wait(0.25)
  4020. eff.Enabled = false
  4021. end))
  4022. local msh = Instance.new("SpecialMesh",a)
  4023. msh.MeshType = "Cylinder"
  4024. msh.Scale = vt(1,2,2)
  4025. local msh2 = Instance.new("SpecialMesh",a2)
  4026. msh2.MeshType = "Cylinder"
  4027. msh2.Scale = vt(1,2.5,2.5)
  4028. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4029. coroutine.resume(coroutine.create(function()
  4030. for i = 0,10,0.1 do
  4031. swait()
  4032. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4033. a.Transparency = a.Transparency + 0.025
  4034. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4035. a2.Transparency = a2.Transparency + 0.05
  4036. end
  4037. a:Destroy()
  4038. a2:Destroy()
  4039. end))
  4040. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4041. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4042. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4043. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4044. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4045. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4046. MagniDamage(b, 25, 40,65, 0, "Normal")
  4047. for i = 0, 49 do
  4048. 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)
  4049. 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)
  4050. end
  4051. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4052. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4053. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4054. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4055. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4056. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4057. end))
  4058. game:GetService("Debris"):AddItem(elocacenter, 5)
  4059. hum.WalkSpeed = storehumanoidWS
  4060. attack = false
  4061. end
  4062.  
  4063. function StarDivision()
  4064. attack = true
  4065. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4066. for i = 0, 2, 0.1 do
  4067. swait()
  4068. 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)
  4069. 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)
  4070. 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)
  4071. 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)
  4072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4073. 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)
  4074. end
  4075. local orb = Instance.new("Part", char)
  4076. orb.BrickColor = MAINRUINCOLOR
  4077. orb.CanCollide = false
  4078. orb.FormFactor = 3
  4079. orb.Name = "Ring"
  4080. orb.Material = "Neon"
  4081. orb.Size = Vector3.new(1, 1, 1)
  4082. orb.Transparency = 0
  4083. orb.TopSurface = 0
  4084. orb.BottomSurface = 0
  4085. local orbm = Instance.new("SpecialMesh", orb)
  4086. orbm.MeshType = "Sphere"
  4087. orbm.Name = "SizeMesh"
  4088. orbm.Scale = vt(2,2,2)
  4089. local a = Instance.new("Part",workspace)
  4090. a.Name = "Direction"
  4091. a.Anchored = true
  4092. a.BrickColor = bc("Bright red")
  4093. a.Material = "Neon"
  4094. a.Transparency = 1
  4095. a.CanCollide = false
  4096. local ray = Ray.new(
  4097. sorb.CFrame.p, -- origin
  4098. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4099. )
  4100. local ignore = sorb
  4101. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4102. a.BottomSurface = 10
  4103. a.TopSurface = 10
  4104. local distance = (sorb.CFrame.p - position).magnitude
  4105. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4106. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4107. orb.CFrame = a.CFrame
  4108. a:Destroy()
  4109. local bv = Instance.new("BodyVelocity")
  4110. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4111. bv.velocity = orb.CFrame.lookVector*100
  4112. bv.Parent = orb
  4113. local hitted = false
  4114. game:GetService("Debris"):AddItem(orb, 10)
  4115. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4116. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4117. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4118. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4119. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4120. coroutine.resume(coroutine.create(function()
  4121. while true do
  4122. swait(1)
  4123. if orb.Parent ~= nil and hitted == false then
  4124. 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)
  4125. elseif orb.Parent == nil then
  4126. break
  4127. end
  4128. end
  4129. end))
  4130. coroutine.resume(coroutine.create(function()
  4131. swait(1)
  4132. orb.Touched:connect(function(hit)
  4133. if hitted == false then
  4134. hitted = true
  4135. game:GetService("Debris"):AddItem(orb, 5)
  4136. orb.Transparency = 1
  4137. orb.Anchored = true
  4138. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4139. elocacenter.Anchored = true
  4140. elocacenter.CFrame = orb.CFrame
  4141. elocacenter.Orientation = vt(0,0,0)
  4142. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4143. eloca1.Anchored = true
  4144. eloca1.CFrame = elocacenter.CFrame
  4145. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4146. eloca2.Anchored = true
  4147. eloca2.CFrame = elocacenter.CFrame
  4148. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4149. eloca3.Anchored = true
  4150. eloca3.CFrame = elocacenter.CFrame
  4151. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4152. eloca4.Anchored = true
  4153. eloca4.CFrame = elocacenter.CFrame
  4154. local lookavec = 0
  4155. local speeds = 0
  4156. CameraEnshaking(1,1)
  4157. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4158. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4159. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4160. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4161. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4162. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4163. for i = 0, 99 do
  4164. swait()
  4165. lookavec = lookavec + 1
  4166. speeds = speeds + 0.1
  4167. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4168. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4169. 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)
  4170.  
  4171. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4172. 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)
  4173.  
  4174. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4175. 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)
  4176.  
  4177. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4178. 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)
  4179. end
  4180.  
  4181. for i = 0, 149 do
  4182. swait()
  4183. speeds = speeds + 0.1
  4184. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4185. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4186. 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)
  4187.  
  4188. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4189. 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)
  4190.  
  4191. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4192. 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)
  4193.  
  4194. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4195. 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)
  4196. end
  4197. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4198. if v:FindFirstChild('Head') then
  4199. dmg(v)
  4200. end
  4201. end
  4202. CameraEnshaking(7,30)
  4203. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4204. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4205. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4206. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4207. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4208. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4209. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4210. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4211. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4212. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4213. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4214. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4215. for i = 0, 24 do
  4216. 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)
  4217. 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)
  4218. 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)
  4219. 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)
  4220. end
  4221. coroutine.resume(coroutine.create(function()
  4222. for i = 0, 499 do
  4223. swait(1)
  4224. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4225. 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)
  4226. end
  4227. elocacenter:Destroy()
  4228. eloca1:Destroy()
  4229. eloca2:Destroy()
  4230. eloca3:Destroy()
  4231. eloca4:Destroy()
  4232. end))
  4233. end
  4234. end)
  4235. end))
  4236. attack = false
  4237. end
  4238.  
  4239.  
  4240. function THE_TRUE_POWER_OF_VIOLENCE()
  4241. attack = true
  4242. hum.WalkSpeed = 0
  4243. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4244. for i = 0, 10, 0.1 do
  4245. swait()
  4246. 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)
  4247. 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)
  4248. 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)
  4249. 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)
  4250. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4251. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4252. 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)
  4253. end
  4254. local orb = Instance.new("Part", char)
  4255. orb.BrickColor = MAINRUINCOLOR
  4256. orb.CanCollide = false
  4257. orb.FormFactor = 3
  4258. orb.Name = "Ring"
  4259. orb.Material = "Neon"
  4260. orb.Size = Vector3.new(1, 1, 1)
  4261. orb.Transparency = 0
  4262. orb.TopSurface = 0
  4263. orb.BottomSurface = 0
  4264. orb.CFrame = sorb.CFrame
  4265. local orbm = Instance.new("SpecialMesh", orb)
  4266. orbm.MeshType = "Sphere"
  4267. orbm.Name = "SizeMesh"
  4268. orbm.Scale = vt(0,0,0)
  4269. local sbs = Instance.new("BodyPosition", orb)
  4270. sbs.P = 3000
  4271. sbs.D = 1000
  4272. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4273. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4274. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4275. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4276. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4277. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4278. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4279. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4280. for i = 0, 10, 0.1 do
  4281. swait()
  4282. 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)
  4283. 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)
  4284. 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)
  4285. 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)
  4286. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4287. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4288. 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)
  4289. end
  4290. orb.Anchored = true
  4291. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4292. elocacenter.Anchored = true
  4293. elocacenter.CFrame = orb.CFrame
  4294. elocacenter.Orientation = vt(0,0,0)
  4295. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4296. eloca1.Anchored = true
  4297. eloca1.CFrame = elocacenter.CFrame
  4298. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4299. eloca2.Anchored = true
  4300. eloca2.CFrame = elocacenter.CFrame
  4301. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4302. eloca3.Anchored = true
  4303. eloca3.CFrame = elocacenter.CFrame
  4304. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4305. eloca4.Anchored = true
  4306. eloca4.CFrame = elocacenter.CFrame
  4307. local lookavec = 0
  4308. local speeds = 0
  4309. CameraEnshaking(1,1)
  4310. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4311. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4312. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4313. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4314. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4315. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4316. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4317. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4318. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4319. for i = 0, 99 do
  4320. swait()
  4321. lookavec = lookavec + 2.5
  4322. speeds = speeds + 0.25
  4323. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4324. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4325. 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)
  4326.  
  4327. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4328. 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)
  4329.  
  4330. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4331. 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)
  4332.  
  4333. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4334. 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)
  4335. end
  4336.  
  4337. for i = 0, 149 do
  4338. swait()
  4339. speeds = speeds + 0.25
  4340. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4341. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4342. 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)
  4343.  
  4344. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4345. 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)
  4346.  
  4347. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4348. 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)
  4349.  
  4350. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4351. 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)
  4352. end
  4353. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4354. for i = 0, 99 do
  4355. swait()
  4356. lookavec = lookavec - 2.5
  4357. speeds = speeds + 0.25
  4358. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4359. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4360. 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)
  4361.  
  4362. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4363. 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)
  4364.  
  4365. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4366. 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)
  4367.  
  4368. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4369. 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)
  4370. end
  4371. local scaled = 0.1*75
  4372. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4373. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4374. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4375. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4376. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4377. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4378. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4379. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4380. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4381. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4382. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4383.  
  4384. for i = 0, 10, 0.1 do
  4385. swait()
  4386. scaled = scaled - 0.001*75
  4387. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4388. 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)
  4389. 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)
  4390. 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)
  4391. 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)
  4392. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4393. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4394. 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)
  4395. end
  4396. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4397. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4398. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4399. for x = 0, 4 do
  4400. for i = 0, 9 do
  4401. 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)
  4402. end
  4403. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4404. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4405. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4406. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4407. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4408. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4409. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4410. for i = 0, 5, 0.1 do
  4411. swait()
  4412. 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)
  4413. 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)
  4414. 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)
  4415. 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)
  4416. 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)
  4417. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4418. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4419. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4420. end
  4421. end
  4422. local speedearn = 0
  4423. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4424. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4425. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4426. for i = 0, 30, 0.1 do
  4427. swait()
  4428. scaled = scaled - 0.001*75/10
  4429. speedearn = speedearn + 0.5
  4430. for i = 0, 4 do
  4431. 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)
  4432. end
  4433. 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)
  4434. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4435. 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)
  4436. 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)
  4437. 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)
  4438. 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)
  4439. 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)
  4440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4441. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4442. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4443. end
  4444. orb.Transparency = 1
  4445. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4446. if v:FindFirstChild('Head') then
  4447. dmg(v)
  4448. end
  4449. end
  4450. CameraEnshaking(7,30)
  4451. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4452. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4453. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4454. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4455. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4456. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4457. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4458. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4459. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4460. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4461. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4462. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4463. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4464. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4465. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4466. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4467. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4468. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. for i = 0, 99 do
  4471. 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)
  4472. 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)
  4473. end
  4474. for i = 0, 24 do
  4475. 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)
  4476. 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)
  4477. 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)
  4478. 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)
  4479. 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)
  4480. end
  4481. game:GetService("Debris"):AddItem(orb, 10)
  4482. hum.WalkSpeed = storehumanoidWS
  4483. attack = false
  4484. end
  4485.  
  4486.  
  4487. function ViolentRing()
  4488. attack = true
  4489. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4490. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4491. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4492. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4493. for i = 0, 2, 0.1 do
  4494. swait()
  4495. local snap = math.random(1,10)
  4496. if snap == 1 then
  4497. 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)
  4498. end
  4499. 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)
  4500. 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)
  4501. 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)
  4502. 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)
  4503. 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)
  4504. 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)
  4505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4506. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4507. 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)
  4508. RootPart.CFrame = FaceMouse()[1]
  4509. end
  4510. local orb = Instance.new("Part", char)
  4511. orb.BrickColor = MAINRUINCOLOR
  4512. orb.CanCollide = false
  4513. orb.FormFactor = 3
  4514. orb.Name = "Ring"
  4515. orb.Material = "Neon"
  4516. orb.Size = Vector3.new(1, 1, 1)
  4517. orb.Transparency = 0
  4518. orb.TopSurface = 0
  4519. orb.BottomSurface = 0
  4520. local orbm = Instance.new("SpecialMesh", orb)
  4521. orbm.MeshType = "Sphere"
  4522. orbm.Name = "SizeMesh"
  4523. orbm.Scale = vt(2,2,2)
  4524. orb.CFrame = mouse.Hit
  4525. local bv = Instance.new("BodyVelocity")
  4526. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4527. bv.velocity = orb.CFrame.lookVector*100
  4528. bv.Parent = orb
  4529. local hitted = false
  4530. coroutine.resume(coroutine.create(function()
  4531. game:GetService("Debris"):AddItem(orb, 5)
  4532. orb.Transparency = 1
  4533. orb.Anchored = true
  4534. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4535. elocacenter.Anchored = true
  4536. elocacenter.CFrame = orb.CFrame
  4537. elocacenter.Orientation = vt(0,0,0)
  4538. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4539. eloca1.Anchored = true
  4540. eloca1.CFrame = elocacenter.CFrame
  4541. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4542. eloca2.Anchored = true
  4543. eloca2.CFrame = elocacenter.CFrame
  4544. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4545. eloca3.Anchored = true
  4546. eloca3.CFrame = elocacenter.CFrame
  4547. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4548. eloca4.Anchored = true
  4549. eloca4.CFrame = elocacenter.CFrame
  4550. local lookavec = 0
  4551. local speeds = 0
  4552. CameraEnshaking(1,1)
  4553. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4554. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4555. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4556. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4557. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4558. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4559. for i = 0, 24 do
  4560. swait()
  4561. lookavec = lookavec + 3.5
  4562. speeds = speeds + 1
  4563. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4564. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4565. 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)
  4566.  
  4567. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4568. 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)
  4569.  
  4570. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4571. 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)
  4572.  
  4573. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4574. 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)
  4575. end
  4576.  
  4577. local risen = 0
  4578. for i = 0, 49 do
  4579. swait()
  4580. risen = risen + 0.05
  4581. speeds = speeds + 0.1
  4582. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4583. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4584. 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)
  4585.  
  4586. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4587. 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)
  4588.  
  4589. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4590. 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)
  4591.  
  4592. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4593. 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)
  4594. end
  4595. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4596. if v:FindFirstChild('Head') then
  4597. dmg(v)
  4598. end
  4599. end
  4600. CameraEnshaking(4,10)
  4601. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4602. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4603. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4604. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4605. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4606. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4607. local eff = Instance.new("ParticleEmitter",elocacenter)
  4608. eff.Texture = "rbxassetid://2273224484"
  4609. eff.LightEmission = 1
  4610. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4611. eff.Rate = 1000000
  4612. eff.Lifetime = NumberRange.new(0.5,2)
  4613. 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)})
  4614. 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)})
  4615. eff.Speed = NumberRange.new(20,250)
  4616. eff.Drag = 5
  4617. eff.Rotation = NumberRange.new(-500,500)
  4618. eff.VelocitySpread = 5000000
  4619. eff.RotSpeed = NumberRange.new(-50,50)
  4620. coroutine.resume(coroutine.create(function()
  4621. wait(1)
  4622. eff.Enabled = false
  4623. end))
  4624. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4625. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4626. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4627. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4628. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4629. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4630. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4631. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4632. for i = 0, 24 do
  4633. 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)
  4634. 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)
  4635. 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)
  4636. 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)
  4637. end
  4638. coroutine.resume(coroutine.create(function()
  4639. wait(10)
  4640. elocacenter:Destroy()
  4641. eloca1:Destroy()
  4642. eloca2:Destroy()
  4643. eloca3:Destroy()
  4644. eloca4:Destroy()
  4645. end))
  4646. end))
  4647. attack = false
  4648. end
  4649.  
  4650. function UniversalCollapse()
  4651. attack = true
  4652. local speedearn = 0
  4653. hum.WalkSpeed = 0
  4654. local sbs = Instance.new("BodyPosition", root)
  4655. sbs.P = 3000
  4656. sbs.D = 1000
  4657. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4658. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4659. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4660. for i = 0, 85, 0.1 do
  4661. swait()
  4662. speedearn = speedearn + 0.1
  4663. 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)
  4664. 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)
  4665. 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)
  4666. 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)
  4667. 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)
  4668. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4669. 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)
  4670. 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)
  4671. 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)
  4672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4673. 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)
  4674. 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)
  4675. end
  4676. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4677. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4678. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4679. for i = 0, 25, 0.1 do
  4680. swait()
  4681. speedearn = speedearn + 0.1
  4682. 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)
  4683. 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)
  4684. 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)
  4685. 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)
  4686. 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)
  4687. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4688. 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)
  4689. 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)
  4690. 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)
  4691. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4692. 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)
  4693. 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)
  4694. end
  4695. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4696. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4697. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4698. CameraEnshaking(5,50)
  4699. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4700. for i = 0, 2 do
  4701. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4702. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4703. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4704. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4705. end
  4706. for i = 0, 49 do
  4707. 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)
  4708. 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)
  4709. 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)
  4710. 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)
  4711. end
  4712. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4713. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4714. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4715. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4716. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4717. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4718. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4719. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4720. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4721. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4722. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4723. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4724. for i = 0, 99 do
  4725. 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)
  4726. 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)
  4727. end
  4728. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4729. if v:FindFirstChild('Head') then
  4730. dmg(v)
  4731. end
  4732. end
  4733. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4734. sbs:Destroy()
  4735. hum.WalkSpeed = storehumanoidWS
  4736. attack = false
  4737. end
  4738.  
  4739.  
  4740. function ChaosEND()
  4741. attack = true
  4742. local speedearn = 0
  4743. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4744. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4745. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4746. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4747. for i = 0, 15, 0.1 do
  4748. swait()
  4749. speedearn = speedearn + 0.25
  4750. 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)
  4751. 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)
  4752. 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)
  4753. 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)
  4754. 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)
  4755. 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)
  4756. 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)
  4757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4759. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4760. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4761. end
  4762. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4763. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4764. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4765. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4766. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4767. CameraEnshaking(5,25)
  4768. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4769. if v:FindFirstChild('Head') then
  4770. dmg(v)
  4771. end
  4772. end
  4773. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4774. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4775. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4776. for i = 0, 3, 0.1 do
  4777. swait()
  4778. 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)
  4779. 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)
  4780. 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)
  4781. 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)
  4782. 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)
  4783. 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)
  4784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4786. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4787. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4788. end
  4789. attack = false
  4790. end
  4791.  
  4792. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4793. local orb = Instance.new("Part", char)
  4794. orb.Anchored = true
  4795. orb.BrickColor = color
  4796. orb.CanCollide = false
  4797. orb.FormFactor = 3
  4798. orb.Name = "Ring"
  4799. orb.Material = "Neon"
  4800. orb.Size = Vector3.new(1, 1, 1)
  4801. orb.Transparency = 0
  4802. orb.TopSurface = 0
  4803. orb.BottomSurface = 0
  4804. local orbm = Instance.new("SpecialMesh", orb)
  4805. orbm.MeshType = "Sphere"
  4806. orb.CFrame = positted
  4807. orbm.Name = "SizeMesh"
  4808. orbm.Scale = vt(1,1,1)
  4809. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4810. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4811. --[[for i = 0, 2 do
  4812. 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)
  4813. end]]--
  4814. coroutine.resume(coroutine.create(function()
  4815. wait(timer)
  4816. CameraEnshaking(3,ShakePower)
  4817. orb.Transparency = 1
  4818. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4819. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4820. --[[for i = 0, 4 do
  4821. 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)
  4822. end]]--
  4823. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4824. wait(3)
  4825. orb:Destroy()
  4826. end))
  4827. end
  4828.  
  4829. function orb_spawn(positted,timer)
  4830. local randomcol = math.random(1,2)
  4831. local orb = Instance.new("Part", char)
  4832. orb.Anchored = true
  4833. if randomcol == 1 then
  4834. orb.BrickColor = BrickColor.new("White")
  4835. elseif randomcol == 2 then
  4836. orb.BrickColor = BrickColor.new("Really black")
  4837. end
  4838. orb.CanCollide = false
  4839. orb.FormFactor = 3
  4840. orb.Name = "Ring"
  4841. orb.Material = "Neon"
  4842. orb.Size = Vector3.new(1, 1, 1)
  4843. orb.Transparency = 0
  4844. orb.TopSurface = 0
  4845. orb.BottomSurface = 0
  4846. local orbm = Instance.new("SpecialMesh", orb)
  4847. orbm.MeshType = "Sphere"
  4848. orb.CFrame = positted
  4849. orbm.Name = "SizeMesh"
  4850. orbm.Scale = vt(1,1,1)
  4851. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4852. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4853. for i = 0, 2 do
  4854. 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)
  4855. end
  4856. coroutine.resume(coroutine.create(function()
  4857. wait(timer)
  4858. CameraEnshaking(3,2)
  4859. orb.Transparency = 1
  4860. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4861. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4862. for i = 0, 4 do
  4863. 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)
  4864. end
  4865. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4866. wait(3)
  4867. orb:Destroy()
  4868. end))
  4869. end
  4870.  
  4871. function scattercorrupt()
  4872. attack = true
  4873. hum.WalkSpeed = 0
  4874. for i = 0, 2, 0.1 do
  4875. swait()
  4876. 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)
  4877. 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)
  4878. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4879. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4880. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4881. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4882. end
  4883. local rot = 0
  4884. local randomrotations = math.random(1,2)
  4885. local lookv = 2.5
  4886. local power = 7
  4887. local radm = math.random(1,3)
  4888. if radm == 1 then
  4889. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4890. elseif radm == 2 then
  4891. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4892. elseif radm == 3 then
  4893. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4894. end
  4895. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4896. for i = 0, 1, 0.1 do
  4897. swait()
  4898. 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)
  4899. 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)
  4900. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4901. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4902. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4903. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4904. end
  4905. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4906. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4907. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4908. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4909. for i = 0, 9 do
  4910. 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)
  4911. end
  4912. local hite = Instance.new("Part", char)
  4913. hite.Anchored = true
  4914. hite.CanCollide = false
  4915. hite.FormFactor = 3
  4916. hite.Name = "Ring"
  4917. hite.Material = "Neon"
  4918. hite.Size = Vector3.new(1, 1, 1)
  4919. hite.Transparency = 1
  4920. hite.TopSurface = 0
  4921. hite.BottomSurface = 0
  4922. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4923. local rem = Instance.new("Part", char)
  4924. rem.Anchored = true
  4925. rem.CanCollide = false
  4926. rem.FormFactor = 3
  4927. rem.Name = "Ring"
  4928. rem.Material = "Neon"
  4929. rem.Size = Vector3.new(1, 1, 1)
  4930. rem.Transparency = 1
  4931. rem.TopSurface = 0
  4932. rem.BottomSurface = 0
  4933. rem.CFrame = hite.CFrame
  4934. local rem2 = rem:Clone()
  4935. rem2.Parent = char
  4936. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4937. local rem3 = rem:Clone()
  4938. rem3.Parent = char
  4939. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4940. local rem4 = rem:Clone()
  4941. rem4.Parent = char
  4942. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4943. hite:Destroy()
  4944. coroutine.resume(coroutine.create(function()
  4945. for i = 0, 24 do
  4946. swait(1)
  4947. if randomrotations == 1 then
  4948. rot = rot + 1
  4949. elseif randomrotations == 2 then
  4950. rot = rot - 1
  4951. end
  4952. power = power + 0.5
  4953. lookv = lookv + 7.5
  4954. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4955. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4956. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4957. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4958. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4959. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4960. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4961. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4962. end
  4963. end))
  4964. wait(2)
  4965. hum.WalkSpeed = storehumanoidWS
  4966. attack = false
  4967. end
  4968. function yinyangi()
  4969. attack = true
  4970. for i = 0, 2, 0.1 do
  4971. swait()
  4972. 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)
  4973. 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)
  4974. 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)
  4975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4976. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4977. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4978. end
  4979. local bv = Instance.new("BodyVelocity")
  4980. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4981. bv.velocity = root.CFrame.lookVector*175
  4982. bv.Parent = root
  4983. for Rotations = 0, 9 do
  4984. for i = 0, 1, 0.5 do
  4985. swait()
  4986. bv.velocity = root.CFrame.lookVector*175
  4987. 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)
  4988. 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)
  4989. 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)
  4990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4992. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4993. end
  4994. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4995. for i = 0, 1, 0.5 do
  4996. swait()
  4997. bv.velocity = root.CFrame.lookVector*175
  4998. 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)
  4999. 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)
  5000. 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)
  5001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5002. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5003. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5004. end
  5005. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5006. for i = 0, 1, 0.5 do
  5007. swait()
  5008. bv.velocity = root.CFrame.lookVector*175
  5009. 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)
  5010. 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)
  5011. 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)
  5012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5013. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5015. end
  5016. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5017. for i = 0, 1, 0.5 do
  5018. swait()
  5019. bv.velocity = root.CFrame.lookVector*175
  5020. 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)
  5021. 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)
  5022. 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)
  5023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5026. end
  5027. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5028. end
  5029. bv:Destroy()
  5030. attack = false
  5031. end
  5032.  
  5033. function createBGCircle(size,parent,color)
  5034. local bgui = Instance.new("BillboardGui",parent)
  5035. bgui.Size = UDim2.new(size, 0, size, 0)
  5036. local imgc = Instance.new("ImageLabel",bgui)
  5037. imgc.BackgroundTransparency = 1
  5038. imgc.ImageTransparency = 0
  5039. imgc.Size = UDim2.new(1,0,1,0)
  5040. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5041. imgc.ImageColor3 = color
  5042. return bgui,imgc
  5043. end
  5044.  
  5045. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5046. local bgui,imgc = createBGCircle(size,guipar,color)
  5047. bgui.AlwaysOnTop = true
  5048. imgc.Image = "rbxassetid://" ..img
  5049. local rrot = math.random(1,2)
  5050. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5051. coroutine.resume(coroutine.create(function()
  5052. for i = 0, 24*delay do
  5053. swait()
  5054. if rotationenabled == true then
  5055. if rrot == 1 then
  5056. imgc.Rotation = imgc.Rotation + rotsp
  5057. elseif rrot == 2 then
  5058. imgc.Rotation = imgc.Rotation - rotsp
  5059. end
  5060. end
  5061. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5062. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5063. end
  5064. bgui:Destroy()
  5065. end))
  5066. end
  5067. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5068. for i, v in pairs(mw2:GetChildren()) do
  5069. if v:IsA("Part") then
  5070. v.BrickColor = one
  5071. v.Material = "Neon"
  5072. end
  5073. end
  5074. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5075. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5076. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5077. tr1.Color = ColorSequence.new(one.Color)
  5078. tr2.Color = ColorSequence.new(one.Color)
  5079. tr3.Color = ColorSequence.new(one.Color)
  5080. for i, v in pairs(mw1:GetChildren()) do
  5081. if v:IsA("Part") then
  5082. if secondaryenabled == false then
  5083. v.Transparency = 1
  5084. elseif secondaryenabled == true then
  5085. v.Transparency = 0
  5086. end
  5087. v.BrickColor = two
  5088. v.Material = "Neon"
  5089. end
  5090. end
  5091. if secondaryenabled == false then
  5092. tl1.Enabled = false
  5093. tl2.Enabled = false
  5094. tl3.Enabled = false
  5095. elseif secondaryenabled == true then
  5096. tl1.Enabled = true
  5097. tl2.Enabled = true
  5098. tl3.Enabled = true
  5099. end
  5100. tl1.Color = ColorSequence.new(two.Color)
  5101. tl2.Color = ColorSequence.new(two.Color)
  5102. tl3.Color = ColorSequence.new(two.Color)
  5103. for i, v in pairs(m:GetChildren()) do
  5104. if v:IsA("Part") then
  5105. v.BrickColor = three
  5106. v.Material = "Ice"
  5107. end
  5108. end
  5109. for i, v in pairs(m2:GetChildren()) do
  5110. if v:IsA("Part") then
  5111. v.BrickColor = four
  5112. v.Material = "Ice"
  5113. end
  5114. end
  5115. for i, v in pairs(m3:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = five
  5118. v.Material = "Neon"
  5119. end
  5120. end
  5121. for i, v in pairs(extrawingmod1:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.Transparency = exonetran
  5124. v.BrickColor = exone
  5125. v.Material = "Neon"
  5126. end
  5127. end
  5128. for i, v in pairs(extrawingmod2:GetChildren()) do
  5129. if v:IsA("Part") then
  5130. v.Transparency = extwotran
  5131. v.BrickColor = extwo
  5132. v.Material = "Neon"
  5133. end
  5134. end
  5135. end
  5136.  
  5137.  
  5138. function normalmog()
  5139. attack = true
  5140. hum.WalkSpeed = 0
  5141. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5142. for i = 0,6,0.1 do
  5143. swait()
  5144. 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)
  5145. 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)
  5146. 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)
  5147. 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)
  5148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5149. 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)
  5150. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5151. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5152. end
  5153. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5154. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5155. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5156. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5157. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5158. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5159. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5160. rainbowmode = false
  5161. chaosmode = false
  5162. ModeOfGlitch = 1
  5163. storehumanoidWS = 16
  5164. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5165. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5166. CameraEnshaking(5,2.5)
  5167. MAINRUINCOLOR = BrickColor.new("Really red")
  5168. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5169. for i = 0, 49 do
  5170. 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)
  5171. end
  5172. for i = 0, 24 do
  5173. 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)
  5174. 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"))
  5175. end
  5176. for i = 0,3,0.1 do
  5177. 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)
  5178. end
  5179. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5180. for i = 0,2,0.1 do
  5181. swait()
  5182. 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)
  5183. 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)
  5184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5185. 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)
  5186. 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)
  5187. 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)
  5188. end
  5189. hum.WalkSpeed = storehumanoidWS
  5190. attack = false
  5191. end
  5192.  
  5193. function attackone()
  5194. attack = true
  5195. local keptcolor = MAINRUINCOLOR
  5196. for i = 0,1,0.1 do
  5197. swait()
  5198. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5199. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5200. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5201. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5202. 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)
  5203. 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)
  5204. end
  5205. local distlook = 5
  5206. coroutine.resume(coroutine.create(function()
  5207. for i = 0, 4 do
  5208. swait(2)
  5209. CameraEnshaking(2,3)
  5210. local hite = Instance.new("Part", char)
  5211. hite.Anchored = true
  5212. hite.CanCollide = false
  5213. hite.FormFactor = 3
  5214. hite.Name = "Ring"
  5215. hite.Material = "Neon"
  5216. hite.Size = Vector3.new(1, 1, 1)
  5217. hite.Transparency = 1
  5218. hite.TopSurface = 0
  5219. hite.BottomSurface = 0
  5220. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5221. 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)
  5222. 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)
  5223. 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)
  5224. 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)
  5225. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5226. for i = 0, 14 do
  5227. local rsiz = math.random(5,20)
  5228. 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)
  5229. end
  5230. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5231. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5232. game:GetService("Debris"):AddItem(hite, 5)
  5233. distlook = distlook + 10
  5234. end
  5235. end))
  5236. for i = 0,1,0.1 do
  5237. swait()
  5238. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5239. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5240. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5241. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5242. 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)
  5243. 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)
  5244. end
  5245. attack = false
  5246. end
  5247.  
  5248. function attacktwo()
  5249. attack = true
  5250. hum.WalkSpeed = 2
  5251. local keptcolor = MAINRUINCOLOR
  5252. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5253. 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)
  5254. 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)
  5255. for i = 0, 14 do
  5256. 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)
  5257. end
  5258. for i = 0,1,0.1 do
  5259. swait()
  5260. 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)
  5261. 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)
  5262. 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)
  5263. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5264. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5265. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5266. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5267. end
  5268. for i = 0, 1 do
  5269. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5270. for i = 0,1,0.6 do
  5271. swait()
  5272. 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)
  5273. 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"))
  5274. 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)
  5275. 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)
  5276. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5278. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5279. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5280. end
  5281. for i = 0,1,0.6 do
  5282. swait()
  5283. 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)
  5284. 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"))
  5285. 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)
  5286. 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)
  5287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5289. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5290. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5291. end
  5292. for i = 0,1,0.6 do
  5293. swait()
  5294. 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)
  5295. 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"))
  5296. 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)
  5297. 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)
  5298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5300. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5301. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5302. end
  5303. for i = 0,1,0.6 do
  5304. swait()
  5305. 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)
  5306. 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"))
  5307. 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)
  5308. 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)
  5309. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5311. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5312. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5313. end
  5314. local rot = 0
  5315. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5316. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5317. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5318. CreateMesh(dis,"Sphere",10,1,10)
  5319. local at1 = Instance.new("Attachment",dis)
  5320. at1.Position = vt(-5,0,0)
  5321. local at2 = Instance.new("Attachment",dis)
  5322. at2.Position = vt(5,0,0)
  5323. local trl = Instance.new('Trail',wed)
  5324. trl.Attachment0 = at1
  5325. trl.Attachment1 = at2
  5326. trl.Texture = "rbxassetid://1049219073"
  5327. trl.LightEmission = 1
  5328. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5329. trl.Color = ColorSequence.new(dis.Color)
  5330. trl.Lifetime = 0.6
  5331. local a = Instance.new("Part",workspace)
  5332. a.Name = "Direction"
  5333. a.Anchored = true
  5334. a.BrickColor = bc("Bright red")
  5335. a.Material = "Neon"
  5336. a.Transparency = 1
  5337. a.CanCollide = false
  5338. local ray = Ray.new(
  5339. dis.CFrame.p, -- origin
  5340. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5341. )
  5342. local ignore = dis
  5343. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5344. a.BottomSurface = 10
  5345. a.TopSurface = 10
  5346. local distance = (dis.CFrame.p - position).magnitude
  5347. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5348. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5349. dis.CFrame = a.CFrame
  5350. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5351. a:Destroy()
  5352. local bv = Instance.new("BodyVelocity")
  5353. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5354. bv.velocity = dis.CFrame.lookVector*250
  5355. bv.Parent = dis
  5356. game:GetService("Debris"):AddItem(dis, 5)
  5357. local hitted = false
  5358. coroutine.resume(coroutine.create(function()
  5359. dis.Touched:connect(function(hit)
  5360. if hitted == false and hit.Parent ~= char then
  5361. hitted = true
  5362. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5363. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5364. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5365. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5366. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5367. coroutine.resume(coroutine.create(function()
  5368. for i = 0, 9 do
  5369. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5370. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5371. local at1 = Instance.new("Attachment",disr)
  5372. at1.Position = vt(-5,0,0)
  5373. local at2 = Instance.new("Attachment",disr)
  5374. at2.Position = vt(5,0,0)
  5375. local trl = Instance.new('Trail',disr)
  5376. trl.Attachment0 = at1
  5377. trl.FaceCamera = true
  5378. trl.Attachment1 = at2
  5379. trl.Texture = "rbxassetid://2342682798"
  5380. trl.LightEmission = 1
  5381. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5382. trl.Color = ColorSequence.new(keptcolor.Color)
  5383. trl.Lifetime = 0.5
  5384. local bv = Instance.new("BodyVelocity")
  5385. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5386. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5387. bv.Parent = disr
  5388. local val = 0
  5389. coroutine.resume(coroutine.create(function()
  5390. swait(30)
  5391. for i = 0, 9 do
  5392. swait()
  5393. val = val + 0.1
  5394. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5395. end
  5396. game:GetService("Debris"):AddItem(disr, 3)
  5397. end))
  5398. end
  5399. local eff = Instance.new("ParticleEmitter",dis)
  5400. eff.Texture = "rbxassetid://2273224484"
  5401. eff.LightEmission = 1
  5402. eff.Color = ColorSequence.new(keptcolor.Color)
  5403. eff.Rate = 500000
  5404. eff.Lifetime = NumberRange.new(0.5,2)
  5405. 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)})
  5406. 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)})
  5407. eff.Speed = NumberRange.new(20,250)
  5408. eff.Drag = 5
  5409. eff.Rotation = NumberRange.new(-500,500)
  5410. eff.VelocitySpread = 9000
  5411. eff.RotSpeed = NumberRange.new(-50,50)
  5412. wait(0.25)
  5413. eff.Enabled = false
  5414. end))
  5415. for i = 0, 9 do
  5416. 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"))
  5417. end
  5418. for i = 0, 19 do
  5419. 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)
  5420. end
  5421. coroutine.resume(coroutine.create(function()
  5422. for i = 0, 19 do
  5423. swait()
  5424. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5425. end
  5426. hum.CameraOffset = vt(0,0,0)
  5427. end))
  5428. dis.Anchored = true
  5429. dis.Transparency = 1
  5430. wait(8)
  5431. dis:Destroy()
  5432. end
  5433. end)
  5434. end))
  5435. rot = rot - 15
  5436. end
  5437. for i = 0,2,0.1 do
  5438. swait()
  5439. 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)
  5440. 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)
  5441. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5445. end
  5446. attack = false
  5447. hum.WalkSpeed = storehumanoidWS
  5448. end
  5449.  
  5450. function attackthree()
  5451. attack = true
  5452. local keptcolor = MAINRUINCOLOR
  5453. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5454. for i = 0,2,0.1 do
  5455. swait()
  5456. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5457. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5458. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5459. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5460. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5461. 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)
  5462. 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)
  5463. end
  5464. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5465. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5466. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5467. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5468. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5469. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5470. for i = 0, 24 do
  5471. 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"))
  5472. end
  5473. for i = 0,4,0.1 do
  5474. swait()
  5475. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5476. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5477. CreateMesh(dis,"Sphere",1,1,1)
  5478. dis.Anchored = true
  5479. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5480. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5481. coroutine.resume(coroutine.create(function()
  5482. swait(30)
  5483. dis.Transparency = 1
  5484. coroutine.resume(coroutine.create(function()
  5485. for i = 0, 19 do
  5486. swait()
  5487. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5488. end
  5489. hum.CameraOffset = vt(0,0,0)
  5490. end))
  5491. coroutine.resume(coroutine.create(function()
  5492. local eff = Instance.new("ParticleEmitter",dis)
  5493. eff.Texture = "rbxassetid://2273224484"
  5494. eff.LightEmission = 1
  5495. eff.Color = ColorSequence.new(dis.Color)
  5496. eff.Rate = 500000
  5497. eff.Lifetime = NumberRange.new(0.5,2)
  5498. 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)})
  5499. 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)})
  5500. eff.Speed = NumberRange.new(50,450)
  5501. eff.Drag = 5
  5502. eff.Rotation = NumberRange.new(-500,500)
  5503. eff.VelocitySpread = 9000
  5504. eff.RotSpeed = NumberRange.new(-50,50)
  5505. wait(0.125)
  5506. eff.Enabled = false
  5507. end))
  5508. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5509. for i = 0, 2 do
  5510. 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)
  5511. end
  5512. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5513. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5514. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5515. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5516. end))
  5517. game:GetService("Debris"):AddItem(dis, 5)
  5518. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5519. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5520. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5521. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5522. 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)
  5523. 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)
  5524. end
  5525. attack = false
  5526. end
  5527. ----------------------------------- Abilities
  5528.  
  5529. function ExtinctiveHeartbreak()
  5530. local targetted = nil
  5531. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5532. targetted = mouse.Target.Parent
  5533. end
  5534. if targetted ~= nil then
  5535. attack = true
  5536. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5537. for i = 0, 9 do
  5538. 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)
  5539. end
  5540. for i = 0, 24 do
  5541. 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)
  5542. end
  5543. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5544. local originalpos = root.CFrame
  5545. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5546. for i = 0, 9 do
  5547. 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)
  5548. end
  5549. for i = 0, 24 do
  5550. 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)
  5551. end
  5552. hum.WalkSpeed = 0
  5553. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5554. local radm = math.random(1,3)
  5555. if radm == 1 then
  5556. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5557. elseif radm == 2 then
  5558. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5559. elseif radm == 3 then
  5560. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5561. end
  5562. for i = 0,2,0.1 do
  5563. swait()
  5564. 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)
  5565. 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)
  5566. 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)
  5567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5568. 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)
  5569. 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)
  5570. end
  5571. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5572. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5573. for i = 0,2,0.1 do
  5574. swait()
  5575. coroutine.resume(coroutine.create(function()
  5576. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5577. for i,v in pairs(targetted:GetChildren()) do
  5578. if v:IsA("Part") or v:IsA("MeshPart") then
  5579. v.Velocity = vt(0,0,0)
  5580. end
  5581. end
  5582. end))
  5583. 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)
  5584. 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)
  5585. 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)
  5586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5587. 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)
  5588. 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)
  5589. end
  5590. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5591. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5592. for i = 0, 1 do
  5593. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5594. end
  5595. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5596. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5597. for i = 0,4,0.1 do
  5598. swait()
  5599. coroutine.resume(coroutine.create(function()
  5600. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5601. 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)))
  5602. local at1 = Instance.new("Attachment",dis)
  5603. at1.Position = vt(-25000,0,0)
  5604. local at2 = Instance.new("Attachment",dis)
  5605. at2.Position = vt(25000,0,0)
  5606. local trl = Instance.new('Trail',dis)
  5607. trl.Attachment0 = at1
  5608. trl.FaceCamera = true
  5609. trl.Attachment1 = at2
  5610. trl.Texture = "rbxassetid://1049219073"
  5611. trl.LightEmission = 1
  5612. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5613. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5614. trl.Lifetime = 5
  5615. local bv = Instance.new("BodyVelocity")
  5616. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5617. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5618. bv.Parent = dis
  5619. game:GetService("Debris"):AddItem(dis, 5)
  5620. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5621. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5622. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5623. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5624. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5625. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5626. 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)
  5627. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5628. for i = 0, 2 do
  5629. 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"))
  5630. end
  5631. 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)
  5632. for i,v in pairs(targetted:GetChildren()) do
  5633. if v:IsA("Part") or v:IsA("MeshPart") then
  5634. v.Velocity = vt(0,0,0)
  5635. end
  5636. end
  5637. end))
  5638. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5639. 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)
  5640. 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)
  5641. 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)
  5642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5643. 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)
  5644. 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)
  5645. end
  5646. hum.CameraOffset = vt(0,0,0)
  5647. for i = 0, 49 do
  5648. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5649. 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)))
  5650. local at1 = Instance.new("Attachment",dis)
  5651. at1.Position = vt(-50000,0,0)
  5652. local at2 = Instance.new("Attachment",dis)
  5653. at2.Position = vt(50000,0,0)
  5654. local trl = Instance.new('Trail',dis)
  5655. trl.Attachment0 = at1
  5656. trl.FaceCamera = true
  5657. trl.Attachment1 = at2
  5658. trl.Texture = "rbxassetid://1049219073"
  5659. trl.LightEmission = 1
  5660. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5661. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5662. trl.Lifetime = 5
  5663. local bv = Instance.new("BodyVelocity")
  5664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5665. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5666. bv.Parent = dis
  5667. game:GetService("Debris"):AddItem(dis, 5)
  5668. end
  5669. for i = 0, 49 do
  5670. 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)
  5671. 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"))
  5672. end
  5673. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5674. for i = 0, 1 do
  5675. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5676. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5677. end
  5678. for i = 0, 4 do
  5679. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5680. end
  5681. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5682. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5683. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5684. dmg(targetted)
  5685. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5686. for i = 0, 9 do
  5687. 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)
  5688. end
  5689. for i = 0, 24 do
  5690. 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)
  5691. end
  5692. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5693. root.CFrame = originalpos
  5694. for i = 0, 9 do
  5695. 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)
  5696. end
  5697. for i = 0, 24 do
  5698. 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)
  5699. end
  5700. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5701. attack = false
  5702. hum.WalkSpeed = storehumanoidWS
  5703. end
  5704. end
  5705.  
  5706. function CorruptionEvent()
  5707. attack = true
  5708. hum.WalkSpeed = 0
  5709. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5710. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5711. local keptcolor = MAINRUINCOLOR
  5712. for i = 0,4,0.1 do
  5713. swait()
  5714. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5715. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5716. 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)
  5717. 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)
  5718. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5719. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5720. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5721. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5722. end
  5723. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5724. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5725. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5726. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5727. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5728. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5729. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5730. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5731. hum.CameraOffset = vt(0,0,0)
  5732. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5733. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5734. for i = 0, 24 do
  5735. 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"))
  5736. end
  5737. local rrot = 0
  5738. coroutine.resume(coroutine.create(function()
  5739. for i = 0, 4 do
  5740. rrot = rrot + 45
  5741. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5742. xa.Anchored = true
  5743. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5744. xb.Anchored = true
  5745. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5746. xc.Anchored = true
  5747. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5748. xd.Anchored = true
  5749. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5750. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5751. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5752. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5753. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5754. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5755. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5756. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5757. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5758. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5759. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5760. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5761. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5762. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5763. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5764. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5765. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5766. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5767. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5768. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5769. for i = 0, 9 do
  5770. 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"))
  5771. 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"))
  5772. 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"))
  5773. 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"))
  5774. end
  5775. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5776. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5777. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5778. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5779. 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)
  5780. 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)
  5781. 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)
  5782. 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)
  5783. 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))
  5784. 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))
  5785. 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))
  5786. 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))
  5787. game:GetService("Debris"):AddItem(xa, 5)
  5788. game:GetService("Debris"):AddItem(xb, 5)
  5789. game:GetService("Debris"):AddItem(xc, 5)
  5790. game:GetService("Debris"):AddItem(xd, 5)
  5791. coroutine.resume(coroutine.create(function()
  5792. for i = 0, 19 do
  5793. swait()
  5794. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5795. end
  5796. hum.CameraOffset = vt(0,0,0)
  5797. end))
  5798. swait(9)
  5799. end
  5800. end))
  5801. for i = 0,2,0.1 do
  5802. swait()
  5803. 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)
  5804. 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)
  5805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5807. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5808. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5809. end
  5810. attack = false
  5811. hum.WalkSpeed = storehumanoidWS
  5812. end
  5813.  
  5814. function EndGROUND()
  5815. attack = true
  5816. hum.WalkSpeed = 0
  5817. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5818. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5819. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5820. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5821. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5822. local keptcolor = MAINRUINCOLOR
  5823. for i = 0,4,0.1 do
  5824. swait()
  5825. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5826. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5827. 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"))
  5828. 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)
  5829. 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)
  5830. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5831. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5832. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5833. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5834. end
  5835. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5836. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5837. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5838. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5839. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5840. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5841. coroutine.resume(coroutine.create(function()
  5842. local shval = 10
  5843. for i = 0, 99 do
  5844. swait()
  5845. shval = shval - 0.1
  5846. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5847. end
  5848. hum.CameraOffset = vt(0,0,0)
  5849. end))
  5850. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5851. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5852. for i = 0, 24 do
  5853. 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"))
  5854. end
  5855. local rrot = 0
  5856. local xam = 1
  5857. coroutine.resume(coroutine.create(function()
  5858. for i = 0, 14 do
  5859. --swait()
  5860. rrot = rrot + 40*xam
  5861. xam = xam + 0.25
  5862. local bonus = xam
  5863. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5864. xa.Anchored = true
  5865. xa.Color = Color3.new(0,0,0)
  5866. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5867. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5868. local xc = 0
  5869. coroutine.resume(coroutine.create(function()
  5870. for i = 0, 99 do
  5871. swait()
  5872. xc = xc + 0.01
  5873. xa.Color = Color3.new(xc,0,0)
  5874. end
  5875. xa.Transparency = 1
  5876. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5877. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5878. for i = 0, 9 do
  5879. 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"))
  5880. end
  5881. 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)
  5882. 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)
  5883. 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))
  5884. game:GetService("Debris"):AddItem(xa, 5)
  5885. coroutine.resume(coroutine.create(function()
  5886. for i = 0, 19 do
  5887. swait()
  5888. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5889. end
  5890. hum.CameraOffset = vt(0,0,0)
  5891. end))
  5892. end))
  5893. end
  5894. end))
  5895. for i = 0,2,0.1 do
  5896. swait()
  5897. 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)
  5898. 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)
  5899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5901. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5902. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5903. end
  5904. attack = false
  5905. hum.WalkSpeed = storehumanoidWS
  5906. end
  5907.  
  5908. function HeavenlyDisk()
  5909. attack = true
  5910. hum.WalkSpeed = 2
  5911. local keptcolor = MAINRUINCOLOR
  5912. local radm = math.random(1,3)
  5913. if radm == 1 then
  5914. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5915. elseif radm == 2 then
  5916. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5917. elseif radm == 3 then
  5918. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5919. end
  5920. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5921. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5922. 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)
  5923. 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)
  5924. for i = 0, 14 do
  5925. 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)
  5926. end
  5927. for i = 0,2,0.1 do
  5928. swait()
  5929. 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)
  5930. 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)
  5931. 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)
  5932. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5933. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5935. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5936. end
  5937. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5938. for i = 0,1,0.6 do
  5939. swait()
  5940. 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)
  5941. 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"))
  5942. 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)
  5943. 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)
  5944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5945. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5947. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5948. end
  5949. for i = 0,1,0.6 do
  5950. swait()
  5951. 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)
  5952. 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"))
  5953. 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)
  5954. 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)
  5955. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5956. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5957. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5958. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5959. end
  5960. for i = 0,1,0.6 do
  5961. swait()
  5962. 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)
  5963. 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"))
  5964. 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)
  5965. 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)
  5966. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5967. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5969. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5970. end
  5971. for i = 0,1,0.6 do
  5972. swait()
  5973. 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)
  5974. 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"))
  5975. 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)
  5976. 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)
  5977. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5978. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5979. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5980. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5981. end
  5982. local rot = 15
  5983. for i = 0, 2 do
  5984. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5985. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5986. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5987. CreateMesh(dis,"Sphere",10,1,10)
  5988. local at1 = Instance.new("Attachment",dis)
  5989. at1.Position = vt(-5,0,0)
  5990. local at2 = Instance.new("Attachment",dis)
  5991. at2.Position = vt(5,0,0)
  5992. local trl = Instance.new('Trail',wed)
  5993. trl.Attachment0 = at1
  5994. trl.Attachment1 = at2
  5995. trl.Texture = "rbxassetid://1049219073"
  5996. trl.LightEmission = 1
  5997. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5998. trl.Color = ColorSequence.new(dis.Color)
  5999. trl.Lifetime = 0.6
  6000. local a = Instance.new("Part",workspace)
  6001. a.Name = "Direction"
  6002. a.Anchored = true
  6003. a.BrickColor = bc("Bright red")
  6004. a.Material = "Neon"
  6005. a.Transparency = 1
  6006. a.CanCollide = false
  6007. local ray = Ray.new(
  6008. dis.CFrame.p, -- origin
  6009. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6010. )
  6011. local ignore = dis
  6012. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6013. a.BottomSurface = 10
  6014. a.TopSurface = 10
  6015. local distance = (dis.CFrame.p - position).magnitude
  6016. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6017. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6018. dis.CFrame = a.CFrame
  6019. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6020. a:Destroy()
  6021. local bv = Instance.new("BodyVelocity")
  6022. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6023. bv.velocity = dis.CFrame.lookVector*250
  6024. bv.Parent = dis
  6025. game:GetService("Debris"):AddItem(dis, 5)
  6026. local hitted = false
  6027. coroutine.resume(coroutine.create(function()
  6028. dis.Touched:connect(function(hit)
  6029. if hitted == false and hit.Parent ~= char then
  6030. hitted = true
  6031. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6032. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6033. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6034. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6035. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6036. coroutine.resume(coroutine.create(function()
  6037. for i = 0, 9 do
  6038. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6039. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6040. local at1 = Instance.new("Attachment",disr)
  6041. at1.Position = vt(-2,0,0)
  6042. local at2 = Instance.new("Attachment",disr)
  6043. at2.Position = vt(2,0,0)
  6044. local trl = Instance.new('Trail',disr)
  6045. trl.Attachment0 = at1
  6046. trl.FaceCamera = true
  6047. trl.Attachment1 = at2
  6048. trl.Texture = "rbxassetid://2342682798"
  6049. trl.LightEmission = 1
  6050. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6051. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6052. trl.Lifetime = 0.5
  6053. local bv = Instance.new("BodyVelocity")
  6054. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6055. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6056. bv.Parent = disr
  6057. local val = 0
  6058. coroutine.resume(coroutine.create(function()
  6059. swait(30)
  6060. for i = 0, 9 do
  6061. swait()
  6062. val = val + 0.1
  6063. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6064. end
  6065. game:GetService("Debris"):AddItem(disr, 3)
  6066. end))
  6067. end
  6068. local eff = Instance.new("ParticleEmitter",dis)
  6069. eff.Texture = "rbxassetid://2273224484"
  6070. eff.LightEmission = 1
  6071. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6072. eff.Rate = 500000
  6073. eff.Lifetime = NumberRange.new(0.5,2)
  6074. 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)})
  6075. 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)})
  6076. eff.Speed = NumberRange.new(20,250)
  6077. eff.Drag = 5
  6078. eff.Rotation = NumberRange.new(-500,500)
  6079. eff.VelocitySpread = 9000
  6080. eff.RotSpeed = NumberRange.new(-50,50)
  6081. wait(0.25)
  6082. eff.Enabled = false
  6083. end))
  6084. for i = 0, 9 do
  6085. 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"))
  6086. end
  6087. for i = 0, 19 do
  6088. 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)
  6089. end
  6090. coroutine.resume(coroutine.create(function()
  6091. for i = 0, 19 do
  6092. swait()
  6093. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6094. end
  6095. hum.CameraOffset = vt(0,0,0)
  6096. end))
  6097. dis.Anchored = true
  6098. dis.Transparency = 1
  6099. wait(8)
  6100. dis:Destroy()
  6101. end
  6102. end)
  6103. end))
  6104. rot = rot - 15
  6105. end
  6106. for i = 0,2,0.1 do
  6107. swait()
  6108. 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)
  6109. 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)
  6110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6114. end
  6115. attack = false
  6116. hum.WalkSpeed = storehumanoidWS
  6117. end
  6118.  
  6119.  
  6120. function RapidBurst()
  6121. attack = true
  6122. hum.WalkSpeed = 0
  6123. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6124. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6125. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6126. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6127. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6128. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6129. local keptcolor = MAINRUINCOLOR
  6130. for i = 0,8,0.1 do
  6131. swait()
  6132. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6133. 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())
  6134. 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)
  6135. 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)
  6136. 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)
  6137. 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)
  6138. 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)
  6139. 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)
  6140. 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)
  6141. end
  6142. for i = 0, 99 do
  6143. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6144. 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)))
  6145. local at1 = Instance.new("Attachment",dis)
  6146. at1.Position = vt(-25000,0,0)
  6147. local at2 = Instance.new("Attachment",dis)
  6148. at2.Position = vt(25000,0,0)
  6149. local trl = Instance.new('Trail',dis)
  6150. trl.Attachment0 = at1
  6151. trl.FaceCamera = true
  6152. trl.Attachment1 = at2
  6153. trl.Texture = "rbxassetid://1049219073"
  6154. trl.LightEmission = 1
  6155. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6156. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6157. trl.Lifetime = 5
  6158. local bv = Instance.new("BodyVelocity")
  6159. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6160. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6161. bv.Parent = dis
  6162. game:GetService("Debris"):AddItem(dis, 5)
  6163. end
  6164. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6165. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6166. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6167. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6168. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6169. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6170. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6171. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6172. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6173. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6174. hum.CameraOffset = vt(0,0,0)
  6175. for i = 0, 24 do
  6176. 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())
  6177. end
  6178. local distam = 0
  6179. coroutine.resume(coroutine.create(function()
  6180. for i = 0, 99 do
  6181. wait()
  6182. distam = distam + 1
  6183. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6184. xa.Anchored = true
  6185. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6186. game:GetService("Debris"):AddItem(xa, 5)
  6187. for i = 0, 4 do
  6188. 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())
  6189. end
  6190. coroutine.resume(coroutine.create(function()
  6191. local eff = Instance.new("ParticleEmitter",xa)
  6192. eff.Texture = "rbxassetid://2273224484"
  6193. eff.LightEmission = 1
  6194. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6195. eff.Rate = 500000
  6196. eff.Lifetime = NumberRange.new(1,3)
  6197. 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)})
  6198. 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)})
  6199. eff.Speed = NumberRange.new(50,500)
  6200. eff.Drag = 5
  6201. eff.Rotation = NumberRange.new(-500,500)
  6202. eff.VelocitySpread = 9000
  6203. eff.RotSpeed = NumberRange.new(-50,50)
  6204. wait(0.25)
  6205. eff.Enabled = false
  6206. end))
  6207. coroutine.resume(coroutine.create(function()
  6208. for i = 0, 19 do
  6209. swait()
  6210. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6211. end
  6212. hum.CameraOffset = vt(0,0,0)
  6213. end))
  6214. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6215. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6216. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6217. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6218. end
  6219. end))
  6220. attack = false
  6221. hum.WalkSpeed = storehumanoidWS
  6222. end
  6223.  
  6224. function InsaneDrop()
  6225. attack = true
  6226. hum.WalkSpeed = 0
  6227. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6228. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6229. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6230. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6231. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6232. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6233. local keptcolor = MAINRUINCOLOR
  6234. for i = 0,8,0.1 do
  6235. swait()
  6236. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6237. 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())
  6238. 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)
  6239. 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)
  6240. 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)
  6241. 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)
  6242. 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)
  6243. 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)
  6244. 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)
  6245. end
  6246. for i = 0, 99 do
  6247. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6248. 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)))
  6249. local at1 = Instance.new("Attachment",dis)
  6250. at1.Position = vt(-25000,0,0)
  6251. local at2 = Instance.new("Attachment",dis)
  6252. at2.Position = vt(25000,0,0)
  6253. local trl = Instance.new('Trail',dis)
  6254. trl.Attachment0 = at1
  6255. trl.FaceCamera = true
  6256. trl.Attachment1 = at2
  6257. trl.Texture = "rbxassetid://1049219073"
  6258. trl.LightEmission = 1
  6259. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6260. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6261. trl.Lifetime = 5
  6262. local bv = Instance.new("BodyVelocity")
  6263. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6264. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6265. bv.Parent = dis
  6266. game:GetService("Debris"):AddItem(dis, 5)
  6267. end
  6268. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6269. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6270. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6271. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6272. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6273. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6274. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6275. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6276. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6277. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6278. hum.CameraOffset = vt(0,0,0)
  6279. for i = 0, 24 do
  6280. 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())
  6281. end
  6282. local distam = 0
  6283. coroutine.resume(coroutine.create(function()
  6284. for i = 0, 99 do
  6285. wait()
  6286. distam = distam + 1
  6287. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6288. xa.Anchored = true
  6289. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6290. game:GetService("Debris"):AddItem(xa, 5)
  6291. for i = 0, 4 do
  6292. 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())
  6293. end
  6294. coroutine.resume(coroutine.create(function()
  6295. local eff = Instance.new("ParticleEmitter",xa)
  6296. eff.Texture = "rbxassetid://2273224484"
  6297. eff.LightEmission = 1
  6298. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6299. eff.Rate = 500000
  6300. eff.Lifetime = NumberRange.new(1,3)
  6301. 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)})
  6302. 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)})
  6303. eff.Speed = NumberRange.new(50,500)
  6304. eff.Drag = 5
  6305. eff.Rotation = NumberRange.new(-500,500)
  6306. eff.VelocitySpread = 9000
  6307. eff.RotSpeed = NumberRange.new(-50,50)
  6308. wait(0.25)
  6309. eff.Enabled = false
  6310. end))
  6311. coroutine.resume(coroutine.create(function()
  6312. for i = 0, 19 do
  6313. swait()
  6314. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6315. end
  6316. hum.CameraOffset = vt(0,0,0)
  6317. end))
  6318. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6319. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6320. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6321. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6322. end
  6323. end))
  6324. attack = false
  6325. hum.WalkSpeed = storehumanoidWS
  6326. end
  6327.  
  6328. function FallenOrbs()
  6329. attack = true
  6330. hum.WalkSpeed = 2
  6331. local keptcolor = MAINRUINCOLOR
  6332. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6333. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6334. local radm = math.random(1,3)
  6335. if radm == 1 then
  6336. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6337. elseif radm == 2 then
  6338. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6339. elseif radm == 3 then
  6340. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6341. end
  6342. coroutine.resume(coroutine.create(function()
  6343. for i = 0, 29 do
  6344. swait(2)
  6345. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6346. dis.Anchored = true
  6347. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6348. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6349. CreateMesh(dis,"Sphere",2,2,2)
  6350. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6351. 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"))
  6352. coroutine.resume(coroutine.create(function()
  6353. wait(0.5)
  6354. dis.Anchored = false
  6355. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6356. local at1 = Instance.new("Attachment",dis)
  6357. at1.Position = vt(-1,0,0)
  6358. local at2 = Instance.new("Attachment",dis)
  6359. at2.Position = vt(1,0,0)
  6360. local trl = Instance.new('Trail',dis)
  6361. trl.Attachment0 = at1
  6362. trl.FaceCamera = true
  6363. trl.Attachment1 = at2
  6364. trl.Texture = "rbxassetid://1049219073"
  6365. trl.LightEmission = 1
  6366. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6367. trl.Color = ColorSequence.new(dis.Color)
  6368. trl.Lifetime = 0.6
  6369. local a = Instance.new("Part",workspace)
  6370. a.Name = "Direction"
  6371. a.Anchored = true
  6372. a.BrickColor = bc("Bright red")
  6373. a.Material = "Neon"
  6374. a.Transparency = 1
  6375. a.CanCollide = false
  6376. local ray = Ray.new(
  6377. dis.CFrame.p, -- origin
  6378. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6379. )
  6380. local ignore = dis
  6381. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6382. a.BottomSurface = 10
  6383. a.TopSurface = 10
  6384. local distance = (dis.CFrame.p - position).magnitude
  6385. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6386. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6387. dis.CFrame = a.CFrame
  6388. a:Destroy()
  6389. local bv = Instance.new("BodyVelocity")
  6390. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6391. bv.velocity = dis.CFrame.lookVector*500
  6392. bv.Parent = dis
  6393. game:GetService("Debris"):AddItem(dis, 5)
  6394. local hitted = false
  6395. coroutine.resume(coroutine.create(function()
  6396. dis.Touched:connect(function(hit)
  6397. if hitted == false and hit.Parent ~= char then
  6398. hitted = true
  6399. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6400. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6401. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6402. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6403. coroutine.resume(coroutine.create(function()
  6404. for i = 0, 4 do
  6405. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6406. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6407. local at1 = Instance.new("Attachment",disr)
  6408. at1.Position = vt(-10,0,0)
  6409. local at2 = Instance.new("Attachment",disr)
  6410. at2.Position = vt(10,0,0)
  6411. local trl = Instance.new('Trail',disr)
  6412. trl.Attachment0 = at1
  6413. trl.FaceCamera = true
  6414. trl.Attachment1 = at2
  6415. trl.Texture = "rbxassetid://2342682798"
  6416. trl.LightEmission = 1
  6417. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6418. trl.Color = ColorSequence.new(disr.Color)
  6419. trl.Lifetime = 0.5
  6420. local bv = Instance.new("BodyVelocity")
  6421. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6422. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6423. bv.Parent = disr
  6424. local val = 0
  6425. coroutine.resume(coroutine.create(function()
  6426. swait(30)
  6427. for i = 0, 9 do
  6428. swait()
  6429. val = val + 0.1
  6430. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6431. end
  6432. game:GetService("Debris"):AddItem(disr, 3)
  6433. end))
  6434. end
  6435. local eff = Instance.new("ParticleEmitter",dis)
  6436. eff.Texture = "rbxassetid://1049219073"
  6437. eff.LightEmission = 1
  6438. eff.Color = ColorSequence.new(dis.Color)
  6439. eff.Rate = 500000
  6440. eff.Lifetime = NumberRange.new(0.5,2)
  6441. 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)})
  6442. 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)})
  6443. eff.Speed = NumberRange.new(20,250)
  6444. eff.Drag = 5
  6445. eff.Rotation = NumberRange.new(-500,500)
  6446. eff.VelocitySpread = 9000
  6447. eff.RotSpeed = NumberRange.new(-50,50)
  6448. wait(0.5)
  6449. eff.Enabled = false
  6450. end))
  6451. for i = 0, 4 do
  6452. 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"))
  6453. end
  6454. coroutine.resume(coroutine.create(function()
  6455. for i = 0, 19 do
  6456. swait()
  6457. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6458. end
  6459. hum.CameraOffset = vt(0,0,0)
  6460. end))
  6461. dis.Anchored = true
  6462. dis.Transparency = 1
  6463. wait(8)
  6464. dis:Destroy()
  6465. end
  6466. end)
  6467. end))
  6468. end))
  6469. end
  6470. end))
  6471. for i = 0,9,0.1 do
  6472. swait()
  6473. 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)
  6474. 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)
  6475. 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)
  6476. 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)
  6477. 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)
  6478. 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)
  6479. 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)
  6480. end
  6481. attack = false
  6482. hum.WalkSpeed = storehumanoidWS
  6483. end
  6484.  
  6485. function CyberSlash()
  6486. local posit = -2
  6487. attack = true
  6488. hum.WalkSpeed = 5
  6489. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6490. local radm = math.random(1,3)
  6491. if radm == 1 then
  6492. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6493. elseif radm == 2 then
  6494. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6495. elseif radm == 3 then
  6496. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6497. end
  6498. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6499. for i = 0,2,0.1 do
  6500. swait()
  6501. 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)
  6502. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6504. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6505. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6506. 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)
  6507. 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)
  6508. end
  6509. for i = 0, 2 do
  6510. CameraEnshaking(1,2)
  6511. local hite = Instance.new("Part", char)
  6512. hite.Anchored = true
  6513. hite.CanCollide = false
  6514. hite.FormFactor = 3
  6515. hite.Name = "Ring"
  6516. hite.Material = "Neon"
  6517. hite.Size = Vector3.new(1, 1, 1)
  6518. hite.Transparency = 1
  6519. hite.TopSurface = 0
  6520. hite.BottomSurface = 0
  6521. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6522. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6523. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6524. coroutine.resume(coroutine.create(function()
  6525. for i = 0, 1 do
  6526. swait()
  6527. 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)
  6528. 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)
  6529. 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)
  6530. end
  6531. end))
  6532. 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)
  6533. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6534. game:GetService("Debris"):AddItem(hite, 5)
  6535. posit = posit + 2
  6536. end
  6537. for i = 0,1,0.1 do
  6538. swait()
  6539. 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)
  6540. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6541. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6542. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6543. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6544. 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)
  6545. 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)
  6546. end
  6547. for i = 0,1,0.1 do
  6548. swait()
  6549. 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)
  6550. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6551. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6552. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6553. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6554. 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)
  6555. 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)
  6556. end
  6557. posit = -6
  6558. for i = 0, 6 do
  6559. CameraEnshaking(1,3)
  6560. local hite = Instance.new("Part", char)
  6561. hite.Anchored = true
  6562. hite.CanCollide = false
  6563. hite.FormFactor = 3
  6564. hite.Name = "Ring"
  6565. hite.Material = "Neon"
  6566. hite.Size = Vector3.new(1, 1, 1)
  6567. hite.Transparency = 1
  6568. hite.TopSurface = 0
  6569. hite.BottomSurface = 0
  6570. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6571. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6572. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6573. 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)
  6574. coroutine.resume(coroutine.create(function()
  6575. for i = 0, 2 do
  6576. swait()
  6577. 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)
  6578. 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)
  6579. 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)
  6580. end
  6581. end))
  6582. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6583. game:GetService("Debris"):AddItem(hite, 5)
  6584. posit = posit + 2
  6585. end
  6586. for i = 0,1,0.1 do
  6587. swait()
  6588. 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)
  6589. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6590. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6591. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6592. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6593. 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)
  6594. 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)
  6595. end
  6596. hum.WalkSpeed = storehumanoidWS
  6597. attack = false
  6598. end
  6599.  
  6600. function EquinoxOrbs()
  6601. hum.WalkSpeed = 0
  6602. attack = true
  6603. local radm = math.random(1,3)
  6604. if radm == 1 then
  6605. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6606. elseif radm == 2 then
  6607. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6608. elseif radm == 3 then
  6609. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6610. end
  6611. for i = 0,1,0.1 do
  6612. swait()
  6613. 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)
  6614. 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)
  6615. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6617. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6618. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6619. end
  6620. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6621. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6622. for i = 0, 24 do
  6623. 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"))
  6624. end
  6625. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6626. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6627. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6628. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6629. for i = 0,4,0.1 do
  6630. swait()
  6631. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6632. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6633. CreateMesh(dis,"Sphere",1,1,1)
  6634. dis.Anchored = true
  6635. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6636. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6637. CreateMesh(dis2,"Sphere",1,1,1)
  6638. dis2.Anchored = true
  6639. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6640. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6641. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6642. coroutine.resume(coroutine.create(function()
  6643. swait(60)
  6644. dis.Transparency = 1
  6645. dis2.Transparency = 1
  6646. coroutine.resume(coroutine.create(function()
  6647. for i = 0, 19 do
  6648. swait()
  6649. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6650. end
  6651. hum.CameraOffset = vt(0,0,0)
  6652. end))
  6653. coroutine.resume(coroutine.create(function()
  6654. local eff = Instance.new("ParticleEmitter",dis)
  6655. eff.Texture = "rbxassetid://2273224484"
  6656. eff.LightEmission = 1
  6657. eff.Color = ColorSequence.new(dis.Color)
  6658. eff.Rate = 500000
  6659. eff.Lifetime = NumberRange.new(0.5,2)
  6660. 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)})
  6661. 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)})
  6662. eff.Speed = NumberRange.new(50,450)
  6663. eff.Drag = 5
  6664. eff.Rotation = NumberRange.new(-500,500)
  6665. eff.VelocitySpread = 9000
  6666. eff.RotSpeed = NumberRange.new(-50,50)
  6667. local eff2 = eff:Clone()
  6668. eff2.Parent = dis2
  6669. eff2.LightEmission = 0
  6670. eff2.Color = ColorSequence.new(dis2.Color)
  6671. wait(0.25)
  6672. eff.Enabled = false
  6673. eff2.Enabled = false
  6674. end))
  6675. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6676. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6677. for i = 0, 2 do
  6678. 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)
  6679. 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)
  6680. end
  6681. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6682. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6683. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6684. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6685. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6686. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6687. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6688. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6689. end))
  6690. game:GetService("Debris"):AddItem(dis, 5)
  6691. game:GetService("Debris"):AddItem(dis2, 5)
  6692. 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)
  6693. 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)
  6694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6696. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6697. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6698. end
  6699. attack = false
  6700. hum.WalkSpeed = storehumanoidWS
  6701. end
  6702. function FallenDEMISE()
  6703. attack = true
  6704. hum.WalkSpeed = 0
  6705. local keptcolor = MAINRUINCOLOR
  6706. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6707. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6708. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6709. for i = 0, 15, 0.1 do
  6710. swait()
  6711. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6712. 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)))
  6713. local at1 = Instance.new("Attachment",dis)
  6714. at1.Position = vt(-25000,0,0)
  6715. local at2 = Instance.new("Attachment",dis)
  6716. at2.Position = vt(25000,0,0)
  6717. local trl = Instance.new('Trail',dis)
  6718. trl.Attachment0 = at1
  6719. trl.FaceCamera = true
  6720. trl.Attachment1 = at2
  6721. trl.Texture = "rbxassetid://1049219073"
  6722. trl.LightEmission = 1
  6723. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6724. trl.Color = ColorSequence.new(dis.Color)
  6725. trl.Lifetime = 5
  6726. local bv = Instance.new("BodyVelocity")
  6727. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6728. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6729. bv.Parent = dis
  6730. game:GetService("Debris"):AddItem(dis, 1)
  6731. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6732. 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"))
  6733. 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"))
  6734. 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)
  6735. 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)
  6736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6737. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6738. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6739. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6740. end
  6741. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6742. for i = 0, 30, 0.1 do
  6743. swait()
  6744. coroutine.resume(coroutine.create(function()
  6745. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6746. if v:FindFirstChild('Head') then
  6747. dmg(v)
  6748. end
  6749. end
  6750. end))
  6751. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6752. 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)))
  6753. local at1 = Instance.new("Attachment",dis)
  6754. at1.Position = vt(-50000,0,0)
  6755. local at2 = Instance.new("Attachment",dis)
  6756. at2.Position = vt(50000,0,0)
  6757. local trl = Instance.new('Trail',dis)
  6758. trl.Attachment0 = at1
  6759. trl.FaceCamera = true
  6760. trl.Attachment1 = at2
  6761. trl.Texture = "rbxassetid://1049219073"
  6762. trl.LightEmission = 1
  6763. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6764. trl.Color = ColorSequence.new(dis.Color)
  6765. trl.Lifetime = 10
  6766. local bv = Instance.new("BodyVelocity")
  6767. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6768. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6769. bv.Parent = dis
  6770. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6771. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6772. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6773. 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"))
  6774. 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"))
  6775. 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"))
  6776. 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"))
  6777. for i = 0, 2 do
  6778. 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)
  6779. end
  6780. 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)
  6781. 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)
  6782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6784. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6785. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6786. end
  6787. attack = false
  6788. hum.WalkSpeed = storehumanoidWS
  6789. end
  6790.  
  6791. function SpeedDrop()
  6792. attack = true
  6793. hum.WalkSpeed = 0
  6794. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6795. local poste = 3
  6796. local rotation = 0
  6797. local rate = 0
  6798. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6799. for i = 0, 124 do
  6800. swait()
  6801. rotation = rotation + rate
  6802. poste = poste + 0.1
  6803. rate = rate + 0.1
  6804. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6805. 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)
  6806. 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)
  6807. 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)
  6808. 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)
  6809. 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)
  6810. 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)
  6811. 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)
  6812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6814. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6815. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6816. end
  6817. CameraEnshaking(3,7)
  6818. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6819. local loc = Instance.new("Part", char)
  6820. loc.BrickColor = MAINRUINCOLOR
  6821. loc.CanCollide = false
  6822. loc.FormFactor = 3
  6823. loc.Name = "Ring"
  6824. loc.Material = "Neon"
  6825. loc.Size = Vector3.new(1, 1, 1)
  6826. loc.Transparency = 1
  6827. loc.TopSurface = 0
  6828. loc.BottomSurface = 0
  6829. loc.Anchored = true
  6830. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6831. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6832. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6833. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6834. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6835. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6836. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6837. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6838. coroutine.resume(coroutine.create(function()
  6839. local eff = Instance.new("ParticleEmitter",loc)
  6840. eff.Texture = "rbxassetid://363275192"
  6841. eff.LightEmission = 0.95
  6842. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6843. eff.Rate = 10000
  6844. eff.Lifetime = NumberRange.new(1)
  6845. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6846. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6847. eff.Speed = NumberRange.new(100,500)
  6848. eff.Drag = 5
  6849. eff.Rotation = NumberRange.new(-500,500)
  6850. eff.VelocitySpread = 9000
  6851. eff.RotSpeed = NumberRange.new(-50,50)
  6852. wait(0.5)
  6853. eff.Enabled = false
  6854. end))
  6855. for i = 0, 49 do
  6856. 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)
  6857. end
  6858. for i = 0, 9 do
  6859. 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)
  6860. end
  6861. game:GetService("Debris"):AddItem(loc, 5)
  6862. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6863. hum.WalkSpeed = storehumanoidWS
  6864. attack = false
  6865. end
  6866.  
  6867. function cutesigh()
  6868. attack = true
  6869. hum.WalkSpeed = 0
  6870. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6871. local blush = Instance.new("Decal",hed)
  6872. blush.Texture = "rbxassetid://898404027"
  6873. blush.Face = "Front"
  6874. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6875. for i = 0, 9, 0.1 do
  6876. swait()
  6877. 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)
  6878. 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)
  6879. 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)
  6880. 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)
  6881. 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)
  6882. 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)
  6883. end
  6884. coroutine.resume(coroutine.create(function()
  6885. for i = 0, 49 do
  6886. swait()
  6887. blush.Transparency = blush.Transparency + 0.02
  6888. end
  6889. blush:Destroy()
  6890. end))
  6891. hum.WalkSpeed = storehumanoidWS
  6892. attack = false
  6893. end
  6894.  
  6895. function smiter()
  6896. local targetted = nil
  6897. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6898. targetted = mouse.Target.Parent
  6899. end
  6900. if targetted ~= nil then
  6901. RootPart.CFrame = FaceMouse()[1]
  6902. attack = true
  6903. local radm = math.random(1,3)
  6904. if radm == 1 then
  6905. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6906. elseif radm == 2 then
  6907. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6908. elseif radm == 3 then
  6909. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6910. end
  6911. hum.WalkSpeed = 0
  6912. coroutine.resume(coroutine.create(function()
  6913. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6914. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6915. local vel = Instance.new("BodyPosition", targetted.Head)
  6916. vel.P = 12500
  6917. vel.D = 1000
  6918. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6919. vel.position = targetted.Head.CFrame.p
  6920. end))
  6921. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6922. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6923. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6924. for i = 0,4,0.1 do
  6925. swait()
  6926. 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)
  6927. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6928. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6929. 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)
  6930. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6931. 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)
  6932. 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)
  6933. end
  6934. coroutine.resume(coroutine.create(function()
  6935. CameraEnshaking(6,5)
  6936. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  6937. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  6938. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  6939. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  6940. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6941. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6942. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6943. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6944. coroutine.resume(coroutine.create(function()
  6945. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6946. eff.Texture = "rbxassetid://2273224484"
  6947. eff.LightEmission = 1
  6948. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6949. eff.Rate = 500000
  6950. eff.Lifetime = NumberRange.new(0.5,2)
  6951. 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)})
  6952. 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)})
  6953. eff.Speed = NumberRange.new(20,250)
  6954. eff.Drag = 5
  6955. eff.Rotation = NumberRange.new(-500,500)
  6956. eff.VelocitySpread = 9000
  6957. eff.RotSpeed = NumberRange.new(-50,50)
  6958. wait(0.25)
  6959. eff.Enabled = false
  6960. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6961. eff.Texture = "rbxassetid://363275192"
  6962. eff.LightEmission = 0.95
  6963. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6964. eff.Rate = 10000
  6965. eff.Lifetime = NumberRange.new(1.5)
  6966. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6967. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6968. eff.Speed = NumberRange.new(25,150)
  6969. eff.Drag = 5
  6970. eff.Rotation = NumberRange.new(-500,500)
  6971. eff.VelocitySpread = 9000
  6972. eff.RotSpeed = NumberRange.new(-50,50)
  6973. local eff2 = eff:Clone()
  6974. eff2.Parent = targetted.Head
  6975. eff2.Texture = "rbxassetid://284205403"
  6976. eff2.Rate = 10000
  6977. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6978. eff2.Drag = 5
  6979. eff2.Rotation = NumberRange.new(-500,500)
  6980. eff2.VelocitySpread = 9000
  6981. wait(0.5)
  6982. eff2.Enabled = false
  6983. eff.Enabled = false
  6984. end))
  6985. for i = 0, 9 do
  6986. 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)
  6987. end
  6988. for i = 0, 49 do
  6989. local rsiz = math.random(10,50)
  6990. 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)
  6991. end
  6992. game:GetService("Debris"):AddItem(vel,1)
  6993. dmg(targetted)
  6994. end))
  6995. for i = 0,1,0.1 do
  6996. swait()
  6997. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  6998. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  6999. 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)
  7000. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7001. 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)
  7002. 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)
  7003. end
  7004. attack = false
  7005. hum.WalkSpeed = storehumanoidWS
  7006. end
  7007. end
  7008.  
  7009. function shytaunty()
  7010. attack = true
  7011. hum.WalkSpeed = 0
  7012. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7013. local blush = Instance.new("Decal",hed)
  7014. blush.Texture = "rbxassetid://898404027"
  7015. blush.Face = "Front"
  7016. for i = 0, 13, 0.1 do
  7017. swait()
  7018. 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)
  7019. 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)
  7020. 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)
  7021. 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)
  7022. 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)
  7023. 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)
  7024. end
  7025. coroutine.resume(coroutine.create(function()
  7026. for i = 0, 49 do
  7027. swait()
  7028. blush.Transparency = blush.Transparency + 0.02
  7029. end
  7030. blush:Destroy()
  7031. end))
  7032. hum.WalkSpeed = storehumanoidWS
  7033. attack = false
  7034. end
  7035.  
  7036. function PureBomb()
  7037. attack = true
  7038. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7039. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7040. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7041. local orb = Instance.new("Part", char)
  7042. orb.Anchored = true
  7043. orb.BrickColor = BrickColor.new("Toothpaste")
  7044. orb.CanCollide = false
  7045. orb.FormFactor = 3
  7046. orb.Name = "Ring"
  7047. orb.Material = "Neon"
  7048. orb.Size = Vector3.new(1, 1, 1)
  7049. orb.Transparency = 0
  7050. orb.TopSurface = 0
  7051. orb.BottomSurface = 0
  7052. local orbm = Instance.new("SpecialMesh", orb)
  7053. orbm.MeshType = "Sphere"
  7054. orbm.Name = "SizeMesh"
  7055. orbm.Scale = vt(0,0,0)
  7056. local scaled = 0.1
  7057. local posid = 0
  7058. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7059. for i = 0, 5, 0.1 do
  7060. swait()
  7061. scaled = scaled - 0.001
  7062. posid = posid - scaled
  7063. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7064. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7065. 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)
  7066. 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)
  7067. 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)
  7068. 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)
  7069. 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)
  7070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7071. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7072. 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)
  7073. end
  7074. for i = 0, 2, 0.1 do
  7075. swait()
  7076. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7077. 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)
  7078. 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)
  7079. 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)
  7080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7081. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7082. 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)
  7083. end
  7084. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7085. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7086. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7087. coroutine.resume(coroutine.create(function()
  7088. orb.Anchored = false
  7089. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7090. local a = Instance.new("Part",workspace)
  7091. a.Name = "Direction"
  7092. a.Anchored = true
  7093. a.BrickColor = bc("Bright red")
  7094. a.Material = "Neon"
  7095. a.Transparency = 1
  7096. a.CanCollide = false
  7097. local ray = Ray.new(
  7098. orb.CFrame.p, -- origin
  7099. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7100. )
  7101. local ignore = orb
  7102. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7103. a.BottomSurface = 10
  7104. a.TopSurface = 10
  7105. local distance = (orb.CFrame.p - position).magnitude
  7106. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7107. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7108. orb.CFrame = a.CFrame
  7109. a:Destroy()
  7110. local bv = Instance.new("BodyVelocity")
  7111. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7112. bv.velocity = orb.CFrame.lookVector*125
  7113. bv.Parent = orb
  7114. local hitted = false
  7115. game:GetService("Debris"):AddItem(orb, 15)
  7116. wait()
  7117. local hit =orb.Touched:connect(function(hit)
  7118. if hitted == false then
  7119. hitted = true
  7120. CameraEnshaking(10,2.5)
  7121. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7122. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7123. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7124. for i = 0, 49 do
  7125. 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)
  7126. end
  7127. local eff = Instance.new("ParticleEmitter",orb)
  7128. eff.Texture = "rbxassetid://2273224484"
  7129. eff.LightEmission = 1
  7130. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7131. eff.Rate = 500000
  7132. eff.Lifetime = NumberRange.new(0.5,2)
  7133. 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)})
  7134. 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)})
  7135. eff.Speed = NumberRange.new(20,250)
  7136. eff.Drag = 5
  7137. eff.Rotation = NumberRange.new(-500,500)
  7138. eff.VelocitySpread = 9000
  7139. eff.RotSpeed = NumberRange.new(-50,50)
  7140. coroutine.resume(coroutine.create(function()
  7141. wait(0.25)
  7142. eff.Enabled = false
  7143. end))
  7144. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7145. for i = 0, 9 do
  7146. 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)
  7147. 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)
  7148. end
  7149. orb.Anchored = true
  7150. orb.Transparency = 1
  7151. local eff = Instance.new("ParticleEmitter",orb)
  7152. eff.Texture = "rbxassetid://2273224484"
  7153. eff.LightEmission = 1
  7154. eff.Color = ColorSequence.new(Color3.new(M))
  7155. eff.Rate = 500000
  7156. eff.Lifetime = NumberRange.new(0.5,2)
  7157. 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)})
  7158. 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)})
  7159. eff.Speed = NumberRange.new(20,250)
  7160. eff.Drag = 5
  7161. eff.Rotation = NumberRange.new(-500,500)
  7162. eff.VelocitySpread = 9000
  7163. eff.RotSpeed = NumberRange.new(-50,50)
  7164. coroutine.resume(coroutine.create(function()
  7165. wait(1)
  7166. eff.Enabled = false
  7167. end))
  7168. wait(8)
  7169. orb:Destroy()
  7170. end
  7171. end)
  7172. end))
  7173. for i = 0, 1, 0.1 do
  7174. swait()
  7175. 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)
  7176. 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)
  7177. 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)
  7178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7179. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7180. 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)
  7181. end
  7182. attack = false
  7183. end
  7184.  
  7185.  
  7186. function BeamOfDeath()
  7187. coroutine.resume(coroutine.create(function()
  7188. attack = true
  7189. hum.WalkSpeed = 0
  7190. for i = 0, 11, 0.1 do
  7191. swait()
  7192. 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)
  7193. 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)
  7194. 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)
  7195. 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)
  7196. 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)
  7197. 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)
  7198. end
  7199. for i = 0, 1, 0.1 do
  7200. swait()
  7201. 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)
  7202. 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)
  7203. 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)
  7204. 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)
  7205. 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)
  7206. 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)
  7207. end
  7208. hum.WalkSpeed = storehumanoidWS
  7209. attack = false
  7210. end))
  7211. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7212. local radm = math.random(1,3)
  7213. if radm == 1 then
  7214. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7215. elseif radm == 2 then
  7216. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7217. elseif radm == 3 then
  7218. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7219. end
  7220. local keptcolor = MAINRUINCOLOR
  7221. local orb = Instance.new("Part", char)
  7222. orb.BrickColor = keptcolor
  7223. orb.CanCollide = false
  7224. orb.FormFactor = 3
  7225. orb.Name = "Ring"
  7226. orb.Material = "Neon"
  7227. orb.Size = Vector3.new(1, 1, 1)
  7228. orb.Transparency = 1
  7229. orb.TopSurface = 0
  7230. orb.BottomSurface = 0
  7231. local orbm = Instance.new("SpecialMesh", orb)
  7232. orbm.MeshType = "Sphere"
  7233. orbm.Name = "SizeMesh"
  7234. orbm.Scale = vt(22.5,10000,22.5)
  7235. orb.CFrame = mouse.Hit
  7236. orb.Anchored = true
  7237. orb.Orientation = vt(0,0,0)
  7238. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7239. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7240. coroutine.resume(coroutine.create(function()
  7241. coroutine.resume(coroutine.create(function()
  7242. for i = 0, 175 do
  7243. swait()
  7244. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7245. orb.Transparency = orb.Transparency - 0.005
  7246. end
  7247. end))
  7248. wait(2)
  7249. coroutine.resume(coroutine.create(function()
  7250. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7251. if hfr ~= nil then
  7252. for i = 0, 24.5 do
  7253. local deb = Instance.new("Part", char)
  7254. deb.Anchored = true
  7255. deb.CanCollide = false
  7256. deb.FormFactor = 3
  7257. deb.Name = "Ring"
  7258. deb.Material = hitfloor.Material
  7259. deb.Color = hitfloor.Color
  7260. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7261. deb.Transparency = 0
  7262. deb.TopSurface = 0
  7263. deb.BottomSurface = 0
  7264. 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)))
  7265. local deb2 = Instance.new("Part", char)
  7266. deb2.CanCollide = false
  7267. deb2.FormFactor = 3
  7268. deb2.Name = "Ring"
  7269. deb2.Material = hitfloor.Material
  7270. deb2.Color = hitfloor.Color
  7271. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7272. deb2.Transparency = 0
  7273. deb2.TopSurface = 0
  7274. deb2.BottomSurface = 0
  7275. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7276. 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)))
  7277. local eff = Instance.new("ParticleEmitter",deb)
  7278. eff.Texture = "rbxassetid://363275192"
  7279. eff.LightEmission = 0.95
  7280. eff.Color = ColorSequence.new(keptcolor.Color)
  7281. eff.Rate = 100
  7282. eff.Lifetime = NumberRange.new(1)
  7283. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7284. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7285. eff.Speed = NumberRange.new(0,5)
  7286. eff.Rotation = NumberRange.new(-500,500)
  7287. eff.VelocitySpread = 9000
  7288. eff.RotSpeed = NumberRange.new(-10,10)
  7289. local at1 = Instance.new('Attachment',deb2)
  7290. at1.Position = vt(0,15,0)
  7291. local at2 = Instance.new('Attachment',deb2)
  7292. at2.Position = vt(0,-15,0)
  7293. local tl = Instance.new('Trail',deb2)
  7294. tl.Attachment0 = at1
  7295. tl.Attachment1 = at2
  7296. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7297. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7298. tl.Lifetime = 1
  7299. game:GetService("Debris"):AddItem(deb,30)
  7300. game:GetService("Debris"):AddItem(deb2,30)
  7301. coroutine.resume(coroutine.create(function()
  7302. wait(15)
  7303. eff.Enabled = false
  7304. for i = 0, 49 do
  7305. swait()
  7306. deb.Transparency = deb.Transparency + 0.02
  7307. end
  7308. wait(1)
  7309. deb:Destroy()
  7310. end))
  7311. end
  7312. end
  7313. end))
  7314. for i = 0, 199 do
  7315. swait(1.5)
  7316. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7317. if v:FindFirstChild('Head') then
  7318. dmg(v)
  7319. end
  7320. end
  7321. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7322. 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)
  7323. 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)
  7324. 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)
  7325. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7326. end
  7327. orb:Destroy()
  7328. end))
  7329. end
  7330.  
  7331. function Beams()
  7332. attack = true
  7333. hum.WalkSpeed = 0
  7334. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7335. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7336. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7337. local keptcolor = MAINRUINCOLOR
  7338. coroutine.resume(coroutine.create(function()
  7339. for i = 0, 96 do
  7340. swait(5)
  7341. local orb = Instance.new("Part", char)
  7342. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7343. orb.BrickColor = keptcolor
  7344. orb.CanCollide = false
  7345. orb.FormFactor = 3
  7346. orb.Name = "Ring"
  7347. orb.Material = "Neon"
  7348. orb.Size = Vector3.new(1, 1, 1)
  7349. orb.Transparency = 0
  7350. orb.TopSurface = 0
  7351. orb.BottomSurface = 0
  7352. orb.Anchored = true
  7353. local orbm = Instance.new("SpecialMesh", orb)
  7354. orbm.MeshType = "Sphere"
  7355. orbm.Name = "SizeMesh"
  7356. orbm.Scale = vt(1.25,1.25,1.25)
  7357. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7358. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7359. coroutine.resume(coroutine.create(function()
  7360. wait(0.5)
  7361. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7362. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7363. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7364. orb.Transparency = 1
  7365. local a = Instance.new("Part",char)
  7366. a.Name = "Direction"
  7367. a.Anchored = true
  7368. a.BrickColor = keptcolor
  7369. a.Material = "Neon"
  7370. a.Transparency = 0.25
  7371. a.Shape = "Cylinder"
  7372. local ht = Instance.new("Part",char)
  7373. ht.Name = "DirectionHit"
  7374. ht.Anchored = true
  7375. ht.BrickColor = keptcolor
  7376. ht.CanCollide = false
  7377. ht.Transparency = 1
  7378. ht.Size = vt(0.1,0.1,0.1)
  7379. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7380. a.CanCollide = false
  7381. local ray = Ray.new(
  7382. orb.CFrame.p, -- origin
  7383. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7384. )
  7385. local ignore = char
  7386. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7387. a.BottomSurface = 10
  7388. a.TopSurface = 10
  7389. local distance = (orb.CFrame.p - position).magnitude
  7390. a.Size = Vector3.new(distance,1,1)
  7391. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7392. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7393. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7394. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7395. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7396. coroutine.resume(coroutine.create(function()
  7397. local eff = Instance.new("ParticleEmitter",ht)
  7398. eff.Texture = "rbxassetid://284205403"
  7399. eff.LightEmission = 0.95
  7400. eff.Color = ColorSequence.new(keptcolor.Color)
  7401. eff.Rate = 500
  7402. eff.Lifetime = NumberRange.new(0.5)
  7403. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7404. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7405. eff.Speed = NumberRange.new(10,50)
  7406. eff.Drag = 5
  7407. eff.Rotation = NumberRange.new(-500,500)
  7408. eff.VelocitySpread = 9000
  7409. eff.RotSpeed = NumberRange.new(-500,500)
  7410. wait(0.25)
  7411. eff.Enabled = false
  7412. end))
  7413. for i = 0, 4 do
  7414. 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)
  7415. 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)
  7416. local rsiz = math.random(10,30)
  7417. 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)
  7418. end
  7419. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7420. local msh = Instance.new("SpecialMesh",a)
  7421. msh.MeshType = "Cylinder"
  7422. msh.Scale = vt(1,1,1)
  7423. for i = 0, 49 do
  7424. swait()
  7425. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7426. a.Transparency = a.Transparency + 0.02
  7427. end
  7428. orb:Destroy()
  7429. a:Destroy()
  7430. ht:Destroy()
  7431. end))
  7432. game:GetService("Debris"):AddItem(orb, 10)
  7433. end
  7434. end))
  7435. for i = 0,6,0.1 do
  7436. swait()
  7437. 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)
  7438. 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)
  7439. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7440. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7441. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7442. 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)
  7443. 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)
  7444. end
  7445. hum.WalkSpeed = storehumanoidWS
  7446. attack = false
  7447. end
  7448.  
  7449. function CalamityTrans()
  7450. attack = true
  7451. rainbowmode = false
  7452. chaosmode = false
  7453. ModeOfGlitch = 8889
  7454. hum.WalkSpeed = 0
  7455. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7456. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7457. elocacenter.Anchored = true
  7458. elocacenter.CFrame = root.CFrame
  7459. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7460. eloca1.Anchored = true
  7461. eloca1.CFrame = elocacenter.CFrame
  7462. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7463. eloca2.Anchored = true
  7464. eloca2.CFrame = elocacenter.CFrame
  7465. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7466. eloca3.Anchored = true
  7467. eloca3.CFrame = elocacenter.CFrame
  7468. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7469. eloca4.Anchored = true
  7470. eloca4.CFrame = elocacenter.CFrame
  7471. local lookavec = 0
  7472. local speeds = 0
  7473. CameraEnshaking(3,2.5)
  7474. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7475. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7476. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7477. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7478. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7479. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7480. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7481. for i = 0, 5, 0.1 do
  7482. swait()
  7483. ---
  7484. lookavec = lookavec + 1
  7485. speeds = speeds + 10
  7486. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7487. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7488. 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)
  7489. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7490. 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)
  7491. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7492. 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)
  7493. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7494. 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)
  7495. ---
  7496. 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)
  7497. 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)
  7498. 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)
  7499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7500. 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)
  7501. 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)
  7502. end
  7503. for i = 0, 5, 0.1 do
  7504. swait()
  7505. ---
  7506. speeds = speeds + 10
  7507. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7508. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7509. 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)
  7510. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7511. 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)
  7512. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7513. 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)
  7514. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7515. 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)
  7516. ---
  7517. 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)
  7518. 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)
  7519. 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)
  7520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7521. 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)
  7522. 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)
  7523. end
  7524. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7525. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7526. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7527. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7528. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7529. CameraEnshaking(1,3)
  7530. for i = 0, 24 do
  7531. 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)
  7532. 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)
  7533. 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)
  7534. 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)
  7535. end
  7536. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7537. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7538. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7539. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7540. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7541. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7542. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7543. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7544. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7545. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7546. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7547. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7548. for i = 0, 5, 0.1 do
  7549. swait()
  7550. ---
  7551. lookavec = lookavec - 1
  7552. speeds = speeds + 10
  7553. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7554. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7555. 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)
  7556. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7557. 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)
  7558. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7559. 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)
  7560. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7561. 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)
  7562. ---
  7563. 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)
  7564. 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)
  7565. 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)
  7566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7567. 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)
  7568. 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)
  7569. end
  7570. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7571. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7572. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7573. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7574. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7575. for i = 0, 49 do
  7576. 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)
  7577. 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)
  7578. end
  7579. CameraEnshaking(5,6)
  7580. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7581. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7582. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7583. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7584. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7585. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7586. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7587. storehumanoidWS = 100
  7588. hum.WalkSpeed = 100
  7589. rainbowmode = false
  7590. chaosmode = false
  7591. tl1.Enabled = true
  7592. tl2.Enabled = true
  7593. tl3.Enabled = true
  7594. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7595. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7596. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7597. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7598. for i, v in pairs(mw2:GetChildren()) do
  7599. if v:IsA("Part") then
  7600. v.BrickColor = MAINRUINCOLOR
  7601. v.Material = "Neon"
  7602. end
  7603. end
  7604. for i, v in pairs(mw1:GetChildren()) do
  7605. if v:IsA("Part") then
  7606. v.Transparency = 0
  7607. v.BrickColor = MAINRUINCOLOR
  7608. v.Material = "Neon"
  7609. end
  7610. end
  7611. for i, v in pairs(m:GetChildren()) do
  7612. if v:IsA("Part") then
  7613. v.Color = Color3.new(0.5,0,1)
  7614. v.Material = "Neon"
  7615. end
  7616. end
  7617. for i, v in pairs(m2:GetChildren()) do
  7618. if v:IsA("Part") then
  7619. v.Color = Color3.new(0.25,0,1)
  7620. v.Material = "Neon"
  7621. end
  7622. end
  7623. for i, v in pairs(m3:GetChildren()) do
  7624. if v:IsA("Part") then
  7625. v.Color = Color3.new(0.45,0,1)
  7626. v.Material = "Neon"
  7627. end
  7628. end
  7629. for i, v in pairs(extrawingmod1:GetChildren()) do
  7630. if v:IsA("Part") then
  7631. v.Transparency = 0.75
  7632. v.Color = Color3.new(0.25,0,1)
  7633. v.Material = "Neon"
  7634. end
  7635. end
  7636. for i, v in pairs(extrawingmod2:GetChildren()) do
  7637. if v:IsA("Part") then
  7638. v.Transparency = 0.75
  7639. v.Color = Color3.new(0.5,0,1)
  7640. v.Material = "Neon"
  7641. end
  7642. end
  7643. attack = false
  7644. end
  7645.  
  7646. function InsaneTrans()
  7647. attack = true
  7648. rainbowmode = false
  7649. chaosmode = false
  7650. ModeOfGlitch = 8889
  7651. hum.WalkSpeed = 0
  7652. newThemeCust("rbxassetid://183142252",1,1,10)
  7653. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7654. elocacenter.Anchored = true
  7655. elocacenter.CFrame = root.CFrame
  7656. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7657. eloca1.Anchored = true
  7658. eloca1.CFrame = elocacenter.CFrame
  7659. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7660. eloca2.Anchored = true
  7661. eloca2.CFrame = elocacenter.CFrame
  7662. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7663. eloca3.Anchored = true
  7664. eloca3.CFrame = elocacenter.CFrame
  7665. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7666. eloca4.Anchored = true
  7667. eloca4.CFrame = elocacenter.CFrame
  7668. local lookavec = 0
  7669. local speeds = 0
  7670. CameraEnshaking(3,2.5)
  7671. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7672. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7673. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7674. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7675. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7676. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7677. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7678. for i = 0, 5, 0.1 do
  7679. swait()
  7680. ---
  7681. lookavec = lookavec + 1
  7682. speeds = speeds + 10
  7683. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7684. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7685. 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)
  7686. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7687. 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)
  7688. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7689. 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)
  7690. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7691. 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)
  7692. ---
  7693. 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)
  7694. 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)
  7695. 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)
  7696. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7697. 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)
  7698. 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)
  7699. end
  7700. for i = 0, 5, 0.1 do
  7701. swait()
  7702. ---
  7703. speeds = speeds + 10
  7704. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7705. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7706. 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)
  7707. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7708. 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)
  7709. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7710. 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)
  7711. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7712. 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)
  7713. ---
  7714. 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)
  7715. 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)
  7716. 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)
  7717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7718. 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)
  7719. 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)
  7720. end
  7721. MAINRUINCOLOR = BrickColor.new("Really black")
  7722. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7723. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7724. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7725. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7726. CameraEnshaking(1,3)
  7727. for i = 0, 24 do
  7728. 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)
  7729. 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)
  7730. 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)
  7731. 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)
  7732. end
  7733. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7734. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7735. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7736. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7737. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7738. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7739. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7740. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7741. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7742. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7743. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7744. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7745. for i = 0, 5, 0.1 do
  7746. swait()
  7747. ---
  7748. lookavec = lookavec - 1
  7749. speeds = speeds + 10
  7750. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7751. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7752. 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)
  7753. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7754. 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)
  7755. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7756. 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)
  7757. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7758. 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)
  7759. ---
  7760. 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)
  7761. 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)
  7762. 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)
  7763. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7764. 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)
  7765. 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)
  7766. end
  7767. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7768. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7769. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7770. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7771. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7772. for i = 0, 49 do
  7773. 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)
  7774. 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)
  7775. end
  7776. CameraEnshaking(5,6)
  7777. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7778. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7779. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7780. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7781. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7782. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7783. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7784. storehumanoidWS = 100
  7785. hum.WalkSpeed = 100
  7786. rainbowmode = false
  7787. chaosmode = false
  7788. tl1.Enabled = true
  7789. tl2.Enabled = true
  7790. tl3.Enabled = true
  7791. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7792. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7793. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7794. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7795. for i, v in pairs(mw2:GetChildren()) do
  7796. if v:IsA("Part") then
  7797. v.BrickColor = MAINRUINCOLOR
  7798. v.Material = "Neon"
  7799. end
  7800. end
  7801. for i, v in pairs(mw1:GetChildren()) do
  7802. if v:IsA("Part") then
  7803. v.Transparency = 0
  7804. v.BrickColor = MAINRUINCOLOR
  7805. v.Material = "Neon"
  7806. end
  7807. end
  7808. for i, v in pairs(m:GetChildren()) do
  7809. if v:IsA("Part") then
  7810. v.Color = Color3.new(170,0,0)
  7811. v.Material = "Neon"
  7812. end
  7813. end
  7814. for i, v in pairs(m2:GetChildren()) do
  7815. if v:IsA("Part") then
  7816. v.Color = Color3.new(0,0,0)
  7817. v.Material = "Neon"
  7818. end
  7819. end
  7820. for i, v in pairs(m3:GetChildren()) do
  7821. if v:IsA("Part") then
  7822. v.Color = Color3.new(0,0,0)
  7823. v.Material = "Neon"
  7824. end
  7825. end
  7826. for i, v in pairs(extrawingmod1:GetChildren()) do
  7827. if v:IsA("Part") then
  7828. v.Transparency = 0.75
  7829. v.Color = Color3.new(0,0,0)
  7830. v.Material = "Neon"
  7831. end
  7832. end
  7833. for i, v in pairs(extrawingmod2:GetChildren()) do
  7834. if v:IsA("Part") then
  7835. v.Transparency = 0.75
  7836. v.Color = Color3.new(0,0,0)
  7837. v.Material = "Neon"
  7838. end
  7839. end
  7840. attack = false
  7841. end
  7842.  
  7843. function GleamingBeam()
  7844. attack = true
  7845. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7846. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7847. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7848. local rsiz = math.random(1,15)
  7849. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7850. hb.Anchored = true
  7851. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7852. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7853. for i = 0, 16, 0.1 do
  7854. swait()
  7855. rsiz = math.random(5,15)
  7856. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7857. 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)
  7858. 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)
  7859. 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)
  7860. 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)
  7861. 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)
  7862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7863. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7864. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7865. end
  7866. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7867. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7868. for i = 0, 2 do
  7869. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7870. end
  7871. 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)
  7872. 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)
  7873. 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)
  7874. for i = 0, 49 do
  7875. local rsiza = math.random(1,15)
  7876. 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)
  7877. end
  7878. local a = Instance.new("Part",Character)
  7879. a.Name = "Direction"
  7880. a.Anchored = true
  7881. a.BrickColor = MAINRUINCOLOR
  7882. a.Material = "Neon"
  7883. a.Transparency = 0
  7884. a.Shape = "Cylinder"
  7885. a.CanCollide = false
  7886. local ba = Instance.new("Part",Character)
  7887. ba.Name = "HitDirect"
  7888. ba.Anchored = true
  7889. ba.BrickColor = bc("Cool yellow")
  7890. ba.Material = "Neon"
  7891. ba.Transparency = 1
  7892. ba.CanCollide = false
  7893. local ray = Ray.new(
  7894. hb.CFrame.p, -- origin
  7895. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7896. )
  7897. local ignore = Character
  7898. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7899. a.BottomSurface = 10
  7900. a.TopSurface = 10
  7901. local distance = (hb.CFrame.p - position).magnitude
  7902. a.Size = Vector3.new(distance, 1, 1)
  7903. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7904. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7905. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7906. local msh = Instance.new("SpecialMesh",a)
  7907. msh.MeshType = "Cylinder"
  7908. msh.Scale = vt(1,4,4)
  7909. game:GetService("Debris"):AddItem(a, 30)
  7910. game:GetService("Debris"):AddItem(ba, 30)
  7911. for i = 0, 25, 0.1 do
  7912. swait()
  7913. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7914. ray = Ray.new(
  7915. hb.CFrame.p, -- origin
  7916. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7917. )
  7918. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7919. distance = (hb.CFrame.p - position).magnitude
  7920. a.Size = Vector3.new(distance, 1, 1)
  7921. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7922. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7923. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7924. rsiz = math.random(5,25)
  7925. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7926. 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)
  7927. for c = 0, 2 do
  7928. 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)
  7929. end
  7930. 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)
  7931. 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)
  7932. 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)
  7933. 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)
  7934. 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)
  7935. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7937. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7938. end
  7939. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7940. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7941. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7942. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7943. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7944. 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)
  7945. 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)
  7946. 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)
  7947. 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)
  7948. 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)
  7949. 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)
  7950. for i = 0, 49 do
  7951. local rsiza = math.random(1,15)
  7952. 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)
  7953. end
  7954. for i = 0, 49 do
  7955. rsiz = math.random(1,8)
  7956. 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)
  7957. end
  7958. coroutine.resume(coroutine.create(function()
  7959. for i = 0, 99 do
  7960. swait()
  7961. a.Transparency = a.Transparency + 0.01
  7962. end
  7963. a:Destroy()
  7964. ba:Destroy()
  7965. end))
  7966. hb:Destroy()
  7967. attack = false
  7968. end
  7969.  
  7970. function DualGleamingBeam()
  7971. attack = true
  7972. hum.WalkSpeed = 0
  7973. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7974. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7975. local radm = math.random(1,3)
  7976. if radm == 1 then
  7977. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7978. elseif radm == 2 then
  7979. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7980. elseif radm == 3 then
  7981. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7982. end
  7983. local rsiz = math.random(1,15)
  7984. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7985. hb.Anchored = true
  7986. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7987. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7988. hb2.Anchored = true
  7989. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7990. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7991. for i = 0, 14, 0.1 do
  7992. swait()
  7993. rsiz = math.random(5,15)
  7994. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7995. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7996. 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)
  7997. 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)
  7998. 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)
  7999. 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"))
  8000. 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)
  8001. 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)
  8002. 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)
  8003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8004. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8005. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8006. end
  8007. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8008. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8009. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8010. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8011. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8012. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8013. 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)
  8014. 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)
  8015. 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)
  8016. 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"))
  8017. 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"))
  8018. 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"))
  8019. for i = 0, 49 do
  8020. local rsiza = math.random(1,15)
  8021. 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)
  8022. 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)
  8023. end
  8024. local a = Instance.new("Part",Character)
  8025. a.Name = "Direction"
  8026. a.Anchored = true
  8027. a.BrickColor = MAINRUINCOLOR
  8028. a.Material = "Neon"
  8029. a.Transparency = 0
  8030. a.Shape = "Cylinder"
  8031. a.CanCollide = false
  8032. local a2 = Instance.new("Part",Character)
  8033. a2.Name = "Direction"
  8034. a2.Anchored = true
  8035. a2.BrickColor = MAINRUINCOLOR
  8036. a2.Material = "Neon"
  8037. a2.Transparency = 0
  8038. a2.Shape = "Cylinder"
  8039. a2.CanCollide = false
  8040. local ba = Instance.new("Part",Character)
  8041. ba.Name = "HitDirect"
  8042. ba.Anchored = true
  8043. ba.BrickColor = MAINRUINCOLOR
  8044. ba.Material = "Neon"
  8045. ba.Transparency = 1
  8046. ba.CanCollide = false
  8047. local ba2 = Instance.new("Part",Character)
  8048. ba2.Name = "HitDirect"
  8049. ba2.Anchored = true
  8050. ba2.BrickColor = MAINRUINCOLOR
  8051. ba2.Material = "Neon"
  8052. ba2.Transparency = 1
  8053. ba2.CanCollide = false
  8054. local ray = Ray.new(
  8055. hb.CFrame.p, -- origin
  8056. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8057. )
  8058. local ignore = Character
  8059. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8060. local ray2 = Ray.new(
  8061. hb2.CFrame.p, -- origin
  8062. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8063. )
  8064. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8065. local distance2 = (hb2.CFrame.p - position).magnitude
  8066.  
  8067. a.BottomSurface = 10
  8068. a.TopSurface = 10
  8069. local distance = (hb.CFrame.p - position).magnitude
  8070. a.Size = Vector3.new(distance, 1, 1)
  8071. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8072. a2.BottomSurface = 10
  8073. a2.TopSurface = 10
  8074. a2.Size = Vector3.new(distance2, 1, 1)
  8075. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8076. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8077. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8078. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8079. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8080. local msh = Instance.new("SpecialMesh",a)
  8081. msh.MeshType = "Cylinder"
  8082. msh.Scale = vt(1,4,4)
  8083. local msh2 = Instance.new("SpecialMesh",a2)
  8084. msh2.MeshType = "Cylinder"
  8085. msh2.Scale = vt(1,4,4)
  8086. game:GetService("Debris"):AddItem(a, 30)
  8087. game:GetService("Debris"):AddItem(a2, 30)
  8088. game:GetService("Debris"):AddItem(ba, 30)
  8089. game:GetService("Debris"):AddItem(ba2, 30)
  8090. for i = 0, 20, 0.1 do
  8091. swait()
  8092. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8093. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8094. ray = Ray.new(
  8095. hb.CFrame.p, -- origin
  8096. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8097. )
  8098. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8099. distance = (hb.CFrame.p - position).magnitude
  8100. ray2 = Ray.new(
  8101. hb2.CFrame.p, -- origin
  8102. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8103. )
  8104. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8105. distance2 = (hb2.CFrame.p - position).magnitude
  8106. a.Size = Vector3.new(distance, 1, 1)
  8107. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8108. a2.Size = Vector3.new(distance2, 1, 1)
  8109. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8110. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8111. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8112. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8113. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8114. rsiz = math.random(5,25)
  8115. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8116. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8117. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8118. if v:FindFirstChild('Head') then
  8119. dmg(v)
  8120. end
  8121. end
  8122. coroutine.resume(coroutine.create(function()
  8123. local bx = Instance.new("Part",Character)
  8124. bx.Name = "Location"
  8125. bx.Anchored = true
  8126. bx.BrickColor = MAINRUINCOLOR
  8127. bx.Material = "Neon"
  8128. bx.Transparency = 1
  8129. bx.CanCollide = false
  8130. bx.Position = ba.Position
  8131. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8132. wait(math.random(1,2))
  8133. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8134. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8135. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8136. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8137. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8138. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8139. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8140. if v:FindFirstChild('Head') then
  8141. dmg(v)
  8142. end
  8143. end
  8144. wait(5)
  8145. bx:Destroy()
  8146. end))
  8147. 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)
  8148. 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)
  8149. for c = 0, 2 do
  8150. 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)
  8151. end
  8152. 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)
  8153. 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)
  8154. 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)
  8155. 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)
  8156. 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)
  8157. 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)
  8158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8159. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8160. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8161. end
  8162. for i = 0, 1 do
  8163. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8164. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8165. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8166. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8167. end
  8168. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8169. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8170. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8171. if v:FindFirstChild('Head') then
  8172. dmg(v)
  8173. end
  8174. end
  8175. 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)
  8176. 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)
  8177. 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)
  8178. 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)
  8179. 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)
  8180. 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)
  8181. 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"))
  8182. 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"))
  8183. 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"))
  8184. for i = 0, 49 do
  8185. local rsiza = math.random(1,15)
  8186. 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)
  8187. 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)
  8188. end
  8189. for i = 0, 49 do
  8190. rsiz = math.random(1,8)
  8191. 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)
  8192. end
  8193. coroutine.resume(coroutine.create(function()
  8194. for i = 0, 99 do
  8195. swait()
  8196. a.Transparency = a.Transparency + 0.01
  8197. a2.Transparency = a2.Transparency + 0.01
  8198. end
  8199. a:Destroy()
  8200. ba:Destroy()
  8201. a2:Destroy()
  8202. ba2:Destroy()
  8203. end))
  8204. hum.WalkSpeed = storehumanoidWS
  8205. hb:Destroy()
  8206. hb2:Destroy()
  8207. attack = false
  8208. end
  8209.  
  8210. function dragin()
  8211. local targetted = nil
  8212. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8213. targetted = mouse.Target.Parent
  8214. end
  8215. if targetted ~= nil then
  8216. RootPart.CFrame = FaceMouse()[1]
  8217. attack = true
  8218. hum.WalkSpeed = 0
  8219. for x = 0, 1 do
  8220. for i = 0,1,0.5 do
  8221. swait()
  8222. 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)
  8223. 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)
  8224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8226. 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)
  8227. 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)
  8228. end
  8229. for i = 0,1,0.5 do
  8230. swait()
  8231. 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)
  8232. 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)
  8233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8235. 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)
  8236. 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)
  8237. end
  8238. for i = 0,1,0.5 do
  8239. swait()
  8240. 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)
  8241. 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)
  8242. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8243. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8244. 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)
  8245. 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)
  8246. end
  8247. for i = 0,1,0.5 do
  8248. swait()
  8249. 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)
  8250. 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)
  8251. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8252. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8253. 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)
  8254. 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)
  8255. end
  8256. end
  8257. coroutine.resume(coroutine.create(function()
  8258. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8259. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8260. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8261. end))
  8262. local A1 = Instance.new("Attachment",targetted.Head)
  8263. local A2 = Instance.new("Attachment",sorb)
  8264. local Beem = Instance.new("Beam",tors)
  8265. Beem.Attachment0 = A1
  8266. Beem.Attachment1 = A2
  8267. Beem.Texture = "rbxassetid://897585362"
  8268. Beem.LightEmission = 0.75
  8269. Beem.FaceCamera = true
  8270. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8271. Beem.Width0 = 1
  8272. Beem.Width1 = 1
  8273. Beem.TextureMode = "Wrap"
  8274. Beem.TextureLength = 1
  8275. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8276. 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)
  8277. 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)
  8278. for x = 0, 24 do
  8279. local rsiz = math.random(5,15)
  8280. 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)
  8281. end
  8282.  
  8283. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8284. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8285. local radm = math.random(1,2)
  8286. if radm == 1 then
  8287. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8288. elseif radm == 2 then
  8289. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8290. end
  8291. for i = 0,3,0.1 do
  8292. swait()
  8293. coroutine.resume(coroutine.create(function()
  8294. local rsiz = math.random(5,15)
  8295. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8296. 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)
  8297. end))
  8298. 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)
  8299. 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)
  8300. 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)
  8301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8302. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8303. 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)
  8304. 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)
  8305. end
  8306. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8307. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8308. local vel = Instance.new("BodyPosition", targetted.Head)
  8309. vel.P = 12500
  8310. vel.D = 1000
  8311. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8312. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8313. for i = 0,4,0.1 do
  8314. swait()
  8315. coroutine.resume(coroutine.create(function()
  8316. local rsiz = math.random(5,15)
  8317. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8318. sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8319. end))
  8320. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8321. RH.C0=clerp(RH.C0,cf(1,-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)
  8322. 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)
  8323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8325. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  8326. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  8327. end
  8328. local visibility = 0
  8329. coroutine.resume(coroutine.create(function()
  8330. for i = 0, 49 do
  8331. swait()
  8332. visibility = visibility + 0.02
  8333. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8334. end
  8335. Beem:Destroy()
  8336. A1:Destroy()
  8337. A2:Destroy()
  8338. end))
  8339. game:GetService("Debris"):AddItem(vel,0.75)
  8340. attack = false
  8341. hum.WalkSpeed = storehumanoidWS
  8342.  
  8343. end
  8344. end
  8345.  
  8346. function hugg()
  8347. attack = true
  8348. hum.WalkSpeed = 5
  8349. local rsiz = math.random(5,15)
  8350. for i = 0, 2, 0.1 do
  8351. swait()
  8352. 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)
  8353. 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)
  8354. 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)
  8355. 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)
  8356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8357. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8358. end
  8359. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8360. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8361. hb.Anchored = true
  8362. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8363. local huggedperson = nil
  8364. local act = false
  8365. local alreadydid = false
  8366. for i = 0, 3, 0.1 do
  8367. swait()
  8368. if act == false then
  8369. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8370. if v:FindFirstChild('Head') then
  8371. if alreadydid == false then
  8372. huggedperson = v
  8373. hum.WalkSpeed = 0
  8374. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8375. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8376. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8377. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8378. local radm = math.random(1,3)
  8379. if radm == 1 then
  8380. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8381. elseif radm == 2 then
  8382. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8383. elseif radm == 3 then
  8384. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8385. end
  8386. root.Anchored = true
  8387. coroutine.resume(coroutine.create(function()
  8388. huggedperson.Humanoid.WalkSpeed = 0
  8389. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8390. end))
  8391. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8392. alreadydid = true
  8393. act = true
  8394. print(huggedperson.Name)
  8395. end
  8396. end
  8397. end
  8398. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8399. 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)
  8400. elseif act == true then
  8401. coroutine.resume(coroutine.create(function()
  8402. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8403. end))
  8404. rsiz = math.random(5,15)
  8405. 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)
  8406. 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)
  8407. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8408. end
  8409. 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)
  8410. 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)
  8411. 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)
  8412. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8413. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8414. end
  8415. hb:Destroy()
  8416. if act == true then
  8417. for x = 0, 2 do
  8418. for i = 0, 2, 0.1 do
  8419. swait()
  8420. coroutine.resume(coroutine.create(function()
  8421. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8422. end))
  8423. rsiz = math.random(5,15)
  8424. 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)
  8425. 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)
  8426. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8427. 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)
  8428. 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)
  8429. 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)
  8430. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8431. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8432. end
  8433. for i = 0, 2, 0.1 do
  8434. swait()
  8435. coroutine.resume(coroutine.create(function()
  8436. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8437. end))
  8438. rsiz = math.random(5,15)
  8439. 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)
  8440. 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)
  8441. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8442. 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)
  8443. 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)
  8444. 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)
  8445. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8446. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8447. end
  8448. end
  8449. end
  8450. hum.WalkSpeed = storehumanoidWS
  8451. root.Anchored = false
  8452. if act == true then
  8453. coroutine.resume(coroutine.create(function()
  8454. huggedperson.Humanoid.WalkSpeed = 16
  8455. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8456. end))
  8457. end
  8458. hum.WalkSpeed = storehumanoidWS
  8459. attack = false
  8460. end
  8461.  
  8462. function Counter()
  8463. hum.WalkSpeed = 0
  8464. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8465. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8466. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8467. attack = true
  8468. for i = 0,1,0.1 do
  8469. swait()
  8470. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8471. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8472. 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)
  8473. 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)
  8474. 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)
  8475. 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)
  8476. end
  8477. CameraEnshaking(3,4)
  8478. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8479. 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)
  8480. 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)
  8481. 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)
  8482. coroutine.resume(coroutine.create(function()
  8483. local eff = Instance.new("ParticleEmitter",root)
  8484. eff.Texture = "rbxassetid://363275192"
  8485. eff.LightEmission = 0.95
  8486. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8487. eff.Rate = 10000
  8488. eff.Lifetime = NumberRange.new(1)
  8489. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8490. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8491. eff.Speed = NumberRange.new(10,125)
  8492. eff.Drag = 5
  8493. eff.Rotation = NumberRange.new(-500,500)
  8494. eff.VelocitySpread = 9000
  8495. eff.RotSpeed = NumberRange.new(-50,50)
  8496. local eff2 = eff:Clone()
  8497. eff2.Parent = root
  8498. eff2.Texture = "rbxassetid://284205403"
  8499. eff2.Rate = 10000
  8500. 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)})
  8501. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8502. eff2.Drag = 5
  8503. eff2.Speed = NumberRange.new(10,50)
  8504. eff2.Rotation = NumberRange.new(-500,500)
  8505. eff2.VelocitySpread = 9000
  8506. wait(0.25)
  8507. eff2.Enabled = false
  8508. eff.Enabled = false
  8509. wait(3)
  8510. eff2:Destroy()
  8511. eff:Destroy()
  8512. end))
  8513. for i = 0, 9 do
  8514. 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)
  8515. end
  8516. for i = 0, 24 do
  8517. local rsiz = math.random(5,20)
  8518. 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)
  8519. end
  8520. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8521. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8522. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8523. for i = 0,2,0.1 do
  8524. swait()
  8525. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8526. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8529. 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)
  8530. 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)
  8531. end
  8532. hum.WalkSpeed = storehumanoidWS
  8533. attack = false
  8534. end
  8535.  
  8536. function superjump()
  8537. attack = true
  8538. hum.WalkSpeed = 0
  8539. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8540. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8541. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8542. for i = 0, 2, 0.1 do
  8543. swait()
  8544. root.Velocity = vt(0,0,0)
  8545. 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"))
  8546. 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)
  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),math.rad(40)),.4)
  8548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8550. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8551. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8552. end
  8553. MagniDamage(root, 28, 25,50, 25, "Normal")
  8554. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8555. hum.Jump = true
  8556. swait()
  8557. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8558. 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)
  8559. 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)
  8560. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8561. for i = 0, 3, 0.1 do
  8562. swait()
  8563. 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)
  8564. 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)
  8565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8567. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8568. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8569. end
  8570. attack = false
  8571. if equipped == false then
  8572. hum.WalkSpeed = 16
  8573. else
  8574. hum.WalkSpeed = 24
  8575. end
  8576. end
  8577.  
  8578.  
  8579. -------------------------------------
  8580.  
  8581.  
  8582.  
  8583. Humanoid.Animator.Parent = nil
  8584.  
  8585.  
  8586.  
  8587. -------------------------------------
  8588.  
  8589. local attacktype = 1
  8590. mouse.Button1Down:connect(function()
  8591. if attack == false and attacktype == 1 then
  8592. attacktype = 2
  8593. attackone()
  8594. elseif attack == false and attacktype == 2 then
  8595. attacktype = 3
  8596. attacktwo()
  8597. elseif attack == false and attacktype == 3 then
  8598. attacktype = 1
  8599. attackthree()
  8600. elseif attack == false and attacktype == 4 then
  8601. attacktype = 1
  8602. --attackfour()
  8603. end
  8604. end)
  8605. mouse.KeyDown:connect(function(k)
  8606. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8607. --normalmog()
  8608. ModeOfGlitch = 1
  8609. storehumanoidWS = 16
  8610. hum.WalkSpeed = 16
  8611. rainbowmode = false
  8612. chaosmode = false
  8613. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8614. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8615. MAINRUINCOLOR = BrickColor.new("Really red")
  8616. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8617. end
  8618. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8619. ModeOfGlitch = 2
  8620. storehumanoidWS = 16
  8621. hum.WalkSpeed = 16
  8622. rainbowmode = false
  8623. chaosmode = false
  8624. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8625. newTheme("rbxassetid://1539245059",0,1,0.85)
  8626. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8627. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8628. end
  8629. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8630. ModeOfGlitch = 3
  8631. storehumanoidWS = 14
  8632. hum.WalkSpeed = 14
  8633. rainbowmode = false
  8634. chaosmode = false
  8635. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8636. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8637. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8638. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8639. end
  8640. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8641. ModeOfGlitch = 4
  8642. storehumanoidWS = 14
  8643. hum.WalkSpeed = 14
  8644. rainbowmode = false
  8645. chaosmode = true
  8646. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8647. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8648. MAINRUINCOLOR = BrickColor.new("Crimson")
  8649. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8650. end
  8651. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8652. ModeOfGlitch = 5
  8653. storehumanoidWS = 14
  8654. hum.WalkSpeed = 14
  8655. rainbowmode = false
  8656. chaosmode = false
  8657. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8658. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8659. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8660. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8661. end
  8662. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8663. ModeOfGlitch = 6
  8664. storehumanoidWS = 65
  8665. hum.WalkSpeed = 65
  8666. rainbowmode = false
  8667. chaosmode = false
  8668. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8669. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8670. MAINRUINCOLOR = BrickColor.new("White")
  8671. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8672. end
  8673. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8674. ModeOfGlitch = 8
  8675. storehumanoidWS = 100
  8676. hum.WalkSpeed = 100
  8677. rainbowmode = false
  8678. chaosmode = false
  8679. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8680. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8681. MAINRUINCOLOR = BrickColor.new("Alder")
  8682. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8683. end
  8684. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8685. ModeOfGlitch = 9
  8686. storehumanoidWS = 85
  8687. hum.WalkSpeed = 85
  8688. rainbowmode = false
  8689. chaosmode = false
  8690. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8691. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8692. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8693. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8694. end
  8695. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8696. ModeOfGlitch = 5555
  8697. storehumanoidWS = 30
  8698. hum.WalkSpeed = 30
  8699. rainbowmode = false
  8700. chaosmode = false
  8701. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8702. newTheme("rbxassetid://736003449",0,1,1.25)
  8703. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8704. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8705. end
  8706. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8707. CalamityTrans()
  8708. end
  8709. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8710. InsaneTrans()
  8711. end
  8712. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8713. ModeOfGlitch = 55469696922
  8714. storehumanoidWS = 95
  8715. hum.WalkSpeed = 95
  8716. rainbowmode = false
  8717. chaosmode = false
  8718. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8719. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8720. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8721. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8722. end
  8723. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8724. ModeOfGlitch = 4367677813
  8725. storehumanoidWS = 75
  8726. hum.WalkSpeed = 75
  8727. rainbowmode = false
  8728. chaosmode = false
  8729. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8730. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8731. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8732. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8733. end
  8734. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8735. ModeOfGlitch = 9999999921111
  8736. storehumanoidWS = 145
  8737. hum.WalkSpeed = 145
  8738. rainbowmode = false
  8739. chaosmode = false
  8740. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8741. newTheme("rbxassetid://643309199",0,1.01,1)
  8742. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8743. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8744. end
  8745. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8746. ModeOfGlitch = 999999999556
  8747. storehumanoidWS = 115
  8748. hum.WalkSpeed = 115
  8749. rainbowmode = false
  8750. chaosmode = false
  8751. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8752. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8753. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8754. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8755. end
  8756. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8757. ModeOfGlitch = 12
  8758. storehumanoidWS = 19
  8759. hum.WalkSpeed = 19
  8760. rainbowmode = false
  8761. chaosmode = false
  8762. print'Mode was meant for Vengeful Program or those other fans out there'
  8763. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8764. newTheme("rbxassetid://1873219898",0,1,1.7)
  8765. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8766. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8767. end
  8768.  
  8769. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8770. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8771. for i = 0, 49 do
  8772. 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)
  8773. end
  8774. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8775. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8776. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8777. hum.WalkSpeed = storehumanoidWS
  8778. attack = false
  8779. ModeOfGlitch = 50
  8780. storehumanoidWS = 18
  8781. hum.WalkSpeed = 18
  8782. rainbowmode = false
  8783. chaosmode = false
  8784. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8785. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8786. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8787. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8788. end
  8789.  
  8790. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8791. hum.WalkSpeed = 0
  8792. attack = true
  8793. for i = 0,1,0.1 do
  8794. swait()
  8795. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8796. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8797. 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)
  8798. 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)
  8799. 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)
  8800. 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)
  8801. end
  8802. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8803. for i = 0, 148 do
  8804. 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)
  8805. end
  8806. for i = 0,3,0.1 do
  8807. 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)
  8808. end
  8809. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8810. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8811. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8812. hum.WalkSpeed = storehumanoidWS
  8813. attack = false
  8814. ModeOfGlitch = 66
  8815. storehumanoidWS = 16
  8816. hum.WalkSpeed = 16
  8817. rainbowmode = false
  8818. chaosmode = false
  8819. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8820. MAINRUINCOLOR = BrickColor.new("Really black")
  8821. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8822. for i = 0,2,0.1 do
  8823. swait()
  8824. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8825. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8826. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8827. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8828. 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)
  8829. 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)
  8830. end
  8831. end
  8832.  
  8833. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8834. hum.WalkSpeed = 0
  8835. attack = true
  8836. for i = 0,1,0.1 do
  8837. swait()
  8838. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8839. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8840. 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)
  8841. 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)
  8842. 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)
  8843. 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)
  8844. end
  8845. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8846. for i = 0, 49 do
  8847. 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)
  8848. end
  8849. for i = 0,3,0.1 do
  8850. 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)
  8851. end
  8852. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8853. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8854. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8855. hum.WalkSpeed = storehumanoidWS
  8856. attack = false
  8857. ModeOfGlitch = 13
  8858. storehumanoidWS = 45
  8859. hum.WalkSpeed = 45
  8860. rainbowmode = false
  8861. chaosmode = false
  8862. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8863. newTheme("rbxassetid://190845741",0,1,1.35)
  8864. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8865. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8866. for i = 0,2,0.1 do
  8867. swait()
  8868. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8869. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8870. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8871. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8872. 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)
  8873. 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)
  8874. end
  8875. end
  8876. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8877. ModeOfGlitch = 1002
  8878. storehumanoidWS = 45
  8879. hum.WalkSpeed = 45
  8880. rainbowmode = false
  8881. chaosmode = false
  8882. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8883. newTheme("rbxassetid://2027652726",0,1,0.85)
  8884. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8885. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8886. end
  8887. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8888. ModeOfGlitch = 1003
  8889. storehumanoidWS = 90
  8890. hum.WalkSpeed = 90
  8891. rainbowmode = false
  8892. chaosmode = false
  8893. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8894. newTheme("rbxassetid://257453119",0,1,0.85)
  8895. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8896. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8897. end
  8898. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8899. ModeOfGlitch = 1264532489
  8900. storehumanoidWS = 175
  8901. hum.WalkSpeed = 175
  8902. rainbowmode = false
  8903. chaosmode = false
  8904. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8905. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8906. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8907. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8908. end
  8909. if k == "l" and mutedtog == false then
  8910. mutedtog = true
  8911. kan.Volume = 0.85
  8912. elseif k == "l" and mutedtog == true then
  8913. mutedtog = false
  8914. kan.Volume = 0.85
  8915. end
  8916. if k == "p" and toggleTag == false then
  8917. toggleTag = true
  8918. modet.TextTransparency = 0
  8919. modet.TextStrokeTransparency = 0
  8920. elseif k == "p" and toggleTag == true then
  8921. toggleTag = false
  8922. modet.TextTransparency = 1
  8923. modet.TextStrokeTransparency = 1
  8924. end
  8925. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8926. ExtinctiveHeartbreak()
  8927. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8928. HeavenlyDisk()
  8929. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8930. DualGleamingBeam()
  8931. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8932. BanishingOrb()
  8933. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8934. hugg()
  8935. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8936. cutesigh()
  8937. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8938. Counter()
  8939. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8940. superjump()
  8941. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8942. dragin()
  8943. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8944. UniversalCollapse()
  8945. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8946. PureBomb()
  8947. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8948. Beams()
  8949. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8950. BeamOfDeath()
  8951. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8952. THE_TRUE_POWER_OF_VIOLENCE()
  8953. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8954. GleamingBeam()
  8955. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8956. ViolentRing()
  8957. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8958. CorruptionEvent()
  8959. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8960. CorruptBlink()
  8961. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8962. scattercorrupt()
  8963. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8964. shytaunty()
  8965. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8966. RapidBurst()
  8967. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  8968. InsaneDrop()
  8969. wait(2)
  8970. ChaosEND()
  8971. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8972. ChaosEND()
  8973. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8974. CyberSlash()
  8975. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8976. smiter()
  8977. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8978. SpeedDrop()
  8979. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8980. --DivineLights()
  8981. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8982. DivineBlast()
  8983. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8984. EquinoxOrbs()
  8985. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8986. yinyangi()
  8987. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8988. FallenOrbs()
  8989. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8990. StarfallEX()
  8991. end
  8992. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8993. FallenDEMISE()
  8994. end
  8995. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8996. EndGROUND()
  8997. end
  8998. end)
  8999.  
  9000. coroutine.resume(coroutine.create(function()
  9001. while true do
  9002. swait()
  9003. 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
  9004. 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)
  9005. end
  9006. if ModeOfGlitch == 5555 then
  9007. 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)
  9008. end
  9009. end
  9010. end))
  9011. --[[coroutine.resume(coroutine.create(function()
  9012. while true do
  9013. swait(2)
  9014. if chaosmode == true then
  9015. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9016. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9017. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9018. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9019. for i, v in pairs(mw1:GetChildren()) do
  9020. if v:IsA("Part") then
  9021. v.Transparency = 0.75
  9022. v.BrickColor = BrickColor.random()
  9023. v.Material = "Neon"
  9024. end
  9025. end
  9026. for i, v in pairs(m2:GetChildren()) do
  9027. if v:IsA("Part") then
  9028. v.BrickColor = BrickColor.random()
  9029. v.Material = "Neon"
  9030. end
  9031. end
  9032. end
  9033. end
  9034. end))]]
  9035.  
  9036.  
  9037.  
  9038. ff = Instance.new("ForceField",char)
  9039. ff.Visible = false
  9040. hum.Name = "Base"
  9041. hum.MaxHealth = 1.0E298
  9042. hum.Health = 1.0E298
  9043. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9044. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9045. hum.MaxHealth = 1.0E298
  9046. hum.Health = 1.0E298
  9047. end
  9048. end)
  9049.  
  9050. local Hair = Instance.new("Part", char)
  9051. Hair.Name = "Hair"
  9052. Hair.CanCollide = false
  9053. Hair.BrickColor = BrickColor.new("Institutional white")
  9054. Hair.Transparency = 0
  9055. Hair.Material = "Plastic"
  9056. Hair.Size = Vector3.new(1, 1, 2)
  9057. Hair.TopSurface = Enum.SurfaceType.Smooth
  9058. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9059.  
  9060.  
  9061. local bguis = Instance.new("BillboardGui",tors)
  9062. bguis.Size = UDim2.new(25, 0, 25, 0)
  9063. local imgca = Instance.new("ImageLabel",bguis)
  9064. imgca.BackgroundTransparency = 1
  9065. imgca.ImageTransparency = 1
  9066. imgca.Size = UDim2.new(1,0,1,0)
  9067. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9068. imgca.ImageColor3 = Color3.new(0,0,0)
  9069.  
  9070.  
  9071. local bguis2 = Instance.new("BillboardGui",tors)
  9072. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9073. local imgca2 = Instance.new("ImageLabel",bguis)
  9074. imgca2.BackgroundTransparency = 1
  9075. imgca2.ImageTransparency = 1
  9076. imgca2.Size = UDim2.new(1,0,1,0)
  9077. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9078. imgca2.ImageColor3 = Color3.new(0,0,0)
  9079.  
  9080.  
  9081.  
  9082. idleanim=.4
  9083. while true do
  9084. if mutedtog == false then
  9085. kan.Volume = currentVol
  9086. elseif mutedtog == true then
  9087. kan.Volume = 0
  9088. end
  9089. kan.PlaybackSpeed = currentPitch
  9090. kan.Pitch = currentPitch
  9091. kan.SoundId = currentThemePlaying
  9092. kan.Looped = true
  9093. kan.Parent = char
  9094. kan:Resume()
  9095. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9096. imgca.ImageTransparency = 1
  9097. imgca2.ImageTransparency = 1
  9098. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9099. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9100. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9101. elseif ModeOfGlitch == 13 then
  9102. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9103. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9104. end
  9105. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9106. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9107. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9108. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9109. coroutine.resume(coroutine.create(function()
  9110. if chaosmode == true then
  9111. for i, v in pairs(mw1:GetChildren()) do
  9112. if v:IsA("Part") then
  9113. v.Transparency = 0
  9114. v.BrickColor = BrickColor.random()
  9115. v.Material = "Neon"
  9116. end
  9117. end
  9118. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9119. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9120. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9121. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9122. end
  9123. end))
  9124. coroutine.resume(coroutine.create(function()
  9125. if ModeOfGlitch == 66 then
  9126. for i, v in pairs(m:GetChildren()) do
  9127. if v:IsA("Part") then
  9128. v.Transparency = 0
  9129. v.BrickColor = BrickColor.random()
  9130. v.Material = "Neon"
  9131. end
  9132. end
  9133. for i, v in pairs(m2:GetChildren()) do
  9134. if v:IsA("Part") then
  9135. v.Transparency = 0
  9136. v.BrickColor = BrickColor.random()
  9137. v.Material = "Neon"
  9138. end
  9139. end
  9140. for i, v in pairs(mw1:GetChildren()) do
  9141. if v:IsA("Part") then
  9142. v.Transparency = 0
  9143. v.BrickColor = BrickColor.random()
  9144. v.Material = "Neon"
  9145. end
  9146. end
  9147. for i, v in pairs(extrawingmod1:GetChildren()) do
  9148. if v:IsA("Part") then
  9149. v.Transparency = 0.5
  9150. v.BrickColor = BrickColor.random()
  9151. v.Material = "Neon"
  9152. end
  9153. end
  9154. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9155. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9156. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9157. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9158. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9159. end
  9160. end))
  9161.  
  9162. coroutine.resume(coroutine.create(function()
  9163. if ModeOfGlitch == 66 then
  9164. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9165. end
  9166. end))
  9167.  
  9168. if chaosmode == false then
  9169. modet.Position = UDim2.new(0,0,0,0)
  9170. modet.Rotation = -5 * math.cos(sine / 32)
  9171. techc.Rotation = techc.Rotation + 1
  9172. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9173. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9174. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9175. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9176. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9177. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9178. else
  9179. techc.Rotation = techc.Rotation + 1
  9180. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9181. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9182. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9183. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9184. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9185. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9186. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9187. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9188. end
  9189. CameraManager()
  9190. swait()
  9191. 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)
  9192. 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)
  9193. 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)
  9194. 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)
  9195. 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)
  9196. 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)
  9197. 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)
  9198. 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)
  9199. 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)
  9200. 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)
  9201. 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)
  9202. 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)
  9203. sine = sine + change
  9204. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9205. local velderp=RootPart.Velocity.y
  9206. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9207. coroutine.resume(coroutine.create(function()
  9208. 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
  9209. if hitfloor ~= nil then
  9210. 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"))
  9211. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9212. 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)
  9213. end
  9214. end
  9215. end
  9216. end))
  9217. if equipped==true or equipped==false then
  9218. if attack==false then
  9219. idle=idle+1
  9220. else
  9221. idle=0
  9222. end
  9223. if idle>=500 then
  9224. if attack==false then
  9225. --Sheath()
  9226. end
  9227. end
  9228. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9229. Anim="Jump"
  9230. if attack==false then
  9231. 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)
  9232. 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)
  9233. 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)
  9234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9235. 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)
  9236. 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)
  9237. end
  9238. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9239. Anim="Fall"
  9240. if attack==false then
  9241. 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)
  9242. 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)
  9243. 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)
  9244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9245. 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)
  9246. 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)
  9247. end
  9248. elseif torvel<1 and hitfloor~=nil then
  9249. Anim="Idle"
  9250. if attack==false then
  9251. if ModeOfGlitch == 1 then
  9252. local snap = math.random(1,10)
  9253. if snap == 1 then
  9254. 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)
  9255. end
  9256. 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)
  9257. 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)
  9258. 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)
  9259. 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)
  9260. 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)
  9261. 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)
  9262. elseif ModeOfGlitch == 2 then
  9263. 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)
  9264. 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)
  9265. 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)
  9266. 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)
  9267. 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)
  9268. 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)
  9269. elseif ModeOfGlitch == 2 then
  9270. 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)
  9271. 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)
  9272. 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)
  9273. 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)
  9274. 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)
  9275. 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)
  9276. elseif ModeOfGlitch == 50 then
  9277. 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)
  9278. 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)
  9279. 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)
  9280. 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)
  9281. 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)
  9282. 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)
  9283. elseif ModeOfGlitch == 5555 then --5555
  9284. 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)
  9285. 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)
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. elseif ModeOfGlitch == 1002 then
  9291. 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)
  9292. 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)
  9293. 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)
  9294. 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)
  9295. 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)
  9296. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9297. elseif ModeOfGlitch == 12 then
  9298. 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)
  9299. 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)
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304. elseif ModeOfGlitch == 3 then
  9305. local snap = math.random(1,32)
  9306. if snap == 1 then
  9307. 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)
  9308. end
  9309. 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)
  9310. 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)
  9311. 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)
  9312. 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)
  9313. 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)
  9314. 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)
  9315. elseif ModeOfGlitch == 4 then
  9316. local snap = math.random(1,5)
  9317. if snap == 1 then
  9318. 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)
  9319. 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)
  9320. 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)
  9321. end
  9322. 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)
  9323. 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)
  9324. 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)
  9325. 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)
  9326. 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)
  9327. 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)
  9328. elseif ModeOfGlitch == 66 then
  9329. local snap = math.random(1,2)
  9330. if snap == 1 then
  9331. 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)
  9332. 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)
  9333. 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)
  9334. end
  9335. 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)
  9336. 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)
  9337. 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)
  9338. 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)
  9339. 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)
  9340. 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)
  9341. elseif ModeOfGlitch == 5 then
  9342. 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)
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. 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)
  9348. elseif ModeOfGlitch == 6 then
  9349. 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)
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. 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)
  9355. elseif ModeOfGlitch == 13 then
  9356. 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)
  9357. 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)
  9358. 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)
  9359. 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)
  9360. 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)
  9361. 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)
  9362. elseif ModeOfGlitch == 8 then
  9363. 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)
  9364. 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)
  9365. 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)
  9366. 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)
  9367. 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)
  9368. 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)
  9369. elseif ModeOfGlitch == 9 then
  9370. 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)
  9371. 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))
  9372. 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)
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. 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)
  9378. elseif ModeOfGlitch == 1003 then
  9379. 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)
  9380. 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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. 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)
  9385.  
  9386. elseif ModeOfGlitch == 8889 then
  9387. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  9388. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  9389. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9390. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  9391. 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)
  9392. 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)
  9393. elseif ModeOfGlitch == 1264532489 then
  9394. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9395. 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)
  9396. 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)
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9402. 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)
  9403. 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)
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408. elseif ModeOfGlitch == 4367677813 then
  9409. 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)
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. elseif ModeOfGlitch == 55469696922 then --5555
  9416. 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)
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. elseif ModeOfGlitch == 999999999556 then
  9423. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  9424. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  9425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  9426. 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)
  9427. 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)
  9428. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9429. end
  9430. end
  9431. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9432. Anim="Walk"
  9433. if attack==false and ModeOfGlitch ~= 66 then
  9434. 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)
  9435. 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)
  9436. 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)
  9437. 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)
  9438. 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)
  9439. 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)
  9440. elseif attack==false and ModeOfGlitch == 66 then
  9441. 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)
  9442. 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)
  9443. 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)
  9444. 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)
  9445. 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)
  9446. 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)
  9447. end
  9448. elseif torvel>=22 and hitfloor~=nil then
  9449. Anim="Run"
  9450. if attack==false then
  9451. 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
  9452. 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)
  9453. 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)
  9454. 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)
  9455. 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)
  9456. 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)
  9457. 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)
  9458. if ModeOfGlitch == 12 then
  9459. 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)
  9460. 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)
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. end
  9466. if ModeOfGlitch == 9 then
  9467. 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)
  9468. 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))
  9469. 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)
  9470. end
  9471. 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
  9472. 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)
  9473. 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)
  9474. 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)
  9475. 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)
  9476. 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)
  9477. 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)
  9478. elseif ModeOfGlitch == 13 then
  9479. 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)
  9480. 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)
  9481. 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)
  9482. 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)
  9483. 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)
  9484. 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)
  9485. end
  9486. end
  9487. end
  9488. end
  9489. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement