Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 457.68 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 4.35 Update Log:
  22. ! - Added Betrayal mode (Chaos M)
  23.  
  24. !? - Added z move to destiny
  25. !c? = Added calamity transition
  26. !? - upcoming transition for some mode..
  27. - Removed some voice sound effects because they didnt sound right
  28. ]])
  29. --- its obs smooth af do not touch
  30. ---- Sources and functions might be taken from others
  31. plr = game:GetService("Players").BlindParsley157
  32. char = plr.Character
  33. hum = char.Humanoid
  34. local cam = game.Workspace.CurrentCamera
  35. Camera = cam
  36. local CamInterrupt = false
  37. local TwoD = false
  38. local TargetInfo = {nil, nil}
  39. cam.CameraType = "Custom"
  40. t = char.Torso
  41. h = char.Head
  42. ra = char["Right Arm"]
  43. la = char["Left Arm"]
  44. rl = char["Right Leg"]
  45. ll = char["Left Leg"]
  46. tors = char.Torso
  47. lleg = char["Left Leg"]
  48. root = char.HumanoidRootPart
  49. hed = char.Head
  50. rleg = char["Right Leg"]
  51. rarm = char["Right Arm"]
  52. larm = char["Left Arm"]
  53. radian = math.rad
  54. random = math.random
  55. Vec3 = Vector3.new
  56. Inst = Instance.new
  57. cFrame = CFrame.new
  58. Euler = CFrame.fromEulerAnglesXYZ
  59. vt = Vector3.new
  60. bc = BrickColor.new
  61. br = BrickColor.random
  62. it = Instance.new
  63. cf = CFrame.new
  64. local Player_Size = 0
  65. cam = game.Workspace.CurrentCamera
  66. CF = CFrame.new
  67. angles = CFrame.Angles
  68. attack = false
  69. Euler = CFrame.fromEulerAnglesXYZ
  70. Rad = math.rad
  71. IT = Instance.new
  72. BrickC = BrickColor.new
  73. Cos = math.cos
  74. Acos = math.acos
  75. Sin = math.sin
  76. Asin = math.asin
  77. Abs = math.abs
  78. Mrandom = math.random
  79. Floor = math.floor
  80. IT = Instance.new
  81. CF = CFrame.new
  82. VT = Vector3.new
  83. RAD = math.rad
  84. C3 = Color3.new
  85. UD2 = UDim2.new
  86. BRICKC = BrickColor.new
  87. ANGLES = CFrame.Angles
  88. EULER = CFrame.fromEulerAnglesXYZ
  89. COS = math.cos
  90. ACOS = math.acos
  91. SIN = math.sin
  92. ASIN = math.asin
  93. ABS = math.abs
  94. MRANDOM = math.random
  95. FLOOR = math.floor
  96. local SINE = 0
  97.  
  98. local Booleans = {
  99. CamFollow = true,
  100. GyroUse = true
  101. }
  102.  
  103. function lerp(object, newCFrame, alpha)
  104. return object:lerp(newCFrame, alpha)
  105. end
  106.  
  107. local Directer = Inst("BodyGyro", root)
  108. Directer.MaxTorque = Vec3(0, 0, 0)
  109. Directer.P = 600000
  110. local CPart = Inst("Part")
  111. CPart.Anchored = true
  112. CPart.CanCollide = false
  113. CPart.Locked = true
  114. CPart.Transparency = 1
  115.  
  116. local rainbowmode = false
  117. local chaosmode = false
  118.  
  119. local kan = Instance.new("Sound",tors)
  120. kan.Volume = 0.85
  121. kan.TimePosition = 0
  122. kan.PlaybackSpeed = 1
  123. kan.Pitch = 1
  124. kan.SoundId = "rbxassetid://1255569288"
  125. kan.Name = "wrecked"
  126. kan.Looped = true
  127. kan:Play()
  128.  
  129. local currentThemePlaying = kan.SoundId
  130. local currentPitch = kan.Pitch
  131. local currentVol = kan.Volume
  132. function newTheme(ID,timepos,pitch,vol)
  133. local kanz = kan
  134. --kanz:Stop()
  135. kanz.Volume = vol
  136. --kanz.TimePosition = timepos
  137. kanz.PlaybackSpeed = pitch
  138. kanz.Pitch = pitch
  139. kanz.SoundId = ID
  140. kanz.Name = "wrecked"
  141. kanz.Looped = true
  142. currentThemePlaying = kanz.SoundId
  143. currentVol = kanz.Volume
  144. currentPitch = kanz.Pitch
  145. --kanz:Play()
  146. --coroutine.resume(coroutine.create(function()
  147. --wait(0.05)
  148. --end))
  149. end
  150.  
  151.  
  152. function newThemeCust(ID,timepos,pitch,vol)
  153. local kanz = kan
  154. kanz:Stop()
  155. kanz.Volume = vol
  156. kanz.TimePosition = timepos
  157. kanz.PlaybackSpeed = pitch
  158. kanz.Pitch = pitch
  159. kanz.SoundId = ID
  160. kanz.Name = "wrecked"
  161. kanz.Looped = true
  162. currentThemePlaying = kanz.SoundId
  163. currentVol = kanz.Volume
  164. currentPitch = kanz.Pitch
  165. kanz:Play()
  166. coroutine.resume(coroutine.create(function()
  167. wait(0.05)
  168. end))
  169. end
  170.  
  171. local mutedtog = false
  172.  
  173. function CameraEnshaking(Length,Intensity)
  174. coroutine.resume(coroutine.create(function()
  175. local intensity = 1*Intensity
  176. local rotM = 0.01*Intensity
  177. for i = 0, Length, 0.1 do
  178. swait()
  179. intensity = intensity - 0.05*Intensity/Length
  180. rotM = rotM - 0.0005*Intensity/Length
  181. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  182. 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)
  183. end
  184. Humanoid.CameraOffset = Vec3(0, 0, 0)
  185. end))
  186. end
  187. CamShake=function(Part,Distan,Power,Times)
  188. local de=Part.Position
  189. for i,v in pairs(workspace:children()) do
  190. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  191. for _,c in pairs(v:children()) do
  192. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  193. local Noob=v.Humanoid
  194. if Noob~=nil then
  195. coroutine.resume(coroutine.create(function()
  196. FV = Instance.new("BoolValue", Noob)
  197. FV.Name = "CameraShake"
  198. for ShakeNum=1,Times do
  199. swait()
  200. local ef=Power
  201. if ef>=1 then
  202. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  203. else
  204. ef=Power*10
  205. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  206. end
  207. end
  208. Humanoid.CameraOffset = Vector3.new(0,0,0)
  209. FV:Destroy()
  210. end))
  211. CameraShake(Times, Power, Noob)
  212. end
  213. end
  214. end
  215. end
  216. end
  217. end
  218.  
  219. local toggleTag = true
  220. local bilguit = Instance.new("BillboardGui", hed)
  221. bilguit.Adornee = nil
  222. bilguit.Name = "ModeName"
  223. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  224. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  225. local modet = Instance.new("TextLabel", bilguit)
  226. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  227. modet.FontSize = "Size8"
  228. modet.TextScaled = true
  229. modet.TextTransparency = 0
  230. modet.BackgroundTransparency = 1
  231. modet.TextTransparency = 0
  232. modet.TextStrokeTransparency = 0
  233. modet.Font = "Antique"
  234. modet.TextStrokeColor3 = Color3.new(0,1,0)
  235. modet.TextColor3 = Color3.new(0,0.25,0)
  236. modet.Text = "CODED REALITY"
  237.  
  238.  
  239. function chatfunc(text,color,typet,font,timeex)
  240. local chat = coroutine.wrap(function()
  241. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  242. Character:FindFirstChild("TalkingBillBoard"):destroy()
  243. end
  244. local naeeym2 = Instance.new("BillboardGui",Character)
  245. naeeym2.Size = UDim2.new(0,100,0,40)
  246. naeeym2.StudsOffset = Vector3.new(0,3,0)
  247. naeeym2.Adornee = Character.Head
  248. naeeym2.Name = "TalkingBillBoard"
  249. local tecks2 = Instance.new("TextLabel",naeeym2)
  250. tecks2.BackgroundTransparency = 1
  251. tecks2.BorderSizePixel = 0
  252. tecks2.Text = ""
  253. tecks2.Font = font
  254. tecks2.TextSize = 30
  255. tecks2.TextStrokeTransparency = 0
  256. tecks2.TextColor3 = color
  257. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  258. tecks2.Size = UDim2.new(1,0,0.5,0)
  259. local tecks3 = Instance.new("TextLabel",naeeym2)
  260. tecks3.BackgroundTransparency = 1
  261. tecks3.BorderSizePixel = 0
  262. tecks3.Text = ""
  263. tecks3.Font = font
  264. tecks3.TextSize = 30
  265. tecks3.TextStrokeTransparency = 0
  266. if typet == "Inverted" then
  267. tecks3.TextColor3 = Color3.new(0,0,0)
  268. tecks3.TextStrokeColor3 = color
  269. elseif typet == "Normal" then
  270. tecks3.TextColor3 = color
  271. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  272. end
  273. tecks3.Size = UDim2.new(1,0,0.5,0)
  274. coroutine.resume(coroutine.create(function()
  275. while true do
  276. swait(1)
  277. if chaosmode == true then
  278. tecks2.TextColor3 = BrickColor.random().Color
  279. tecks3.TextStrokeColor3 = BrickColor.random().Color
  280. end
  281. end
  282. end))
  283. modet.TextTransparency = modet.TextTransparency + 1
  284. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  285. for i = 0, 74*timeex do
  286. swait()
  287. modet.TextTransparency = 1
  288. modet.TextStrokeTransparency = 1
  289. tecks2.Text = text
  290. tecks3.Text = text
  291. end
  292. local randomrot = math.random(1,2)
  293. if randomrot == 1 then
  294. for i = 1, 50 do
  295. swait()
  296. tecks2.Text = text
  297. tecks3.Text = text
  298. modet.TextTransparency = modet.TextTransparency - .02
  299. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  300. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  301. tecks2.TextTransparency = tecks2.TextTransparency + .04
  302. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  303. tecks3.TextTransparency = tecks2.TextTransparency + .04
  304. end
  305. elseif randomrot == 2 then
  306. for i = 1, 50 do
  307. swait()
  308. tecks2.Text = text
  309. tecks3.Text = text
  310. modet.TextTransparency = modet.TextTransparency - .02
  311. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  312. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  313. tecks2.TextTransparency = tecks2.TextTransparency + .04
  314. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  315. tecks3.TextTransparency = tecks2.TextTransparency + .04
  316. end
  317. end
  318. modet.TextTransparency = 0
  319. modet.TextStrokeTransparency = 0
  320. if toggleTag == false then
  321. modet.TextTransparency = 1
  322. modet.TextStrokeTransparency = 1
  323. end
  324. naeeym2:Destroy()
  325. end)
  326. chat()
  327. end
  328.  
  329. function bosschatfunc(text,color,watval)
  330. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  331. coroutine.resume(coroutine.create(function()
  332. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  333. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  334. end
  335. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  336. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  337. scrg.Name = "Dialog"
  338. local txtlb = Instance.new("TextLabel",scrg)
  339. txtlb.Text = ""
  340. txtlb.Font = "Bodoni"
  341. txtlb.TextColor3 = Color3.new(0,0,0)
  342. txtlb.TextStrokeTransparency = 0
  343. txtlb.BackgroundTransparency = 0.75
  344. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  345. txtlb.TextStrokeColor3 = color
  346. txtlb.TextScaled = true
  347. txtlb.Size = UDim2.new(1,0,0.25,0)
  348. txtlb.TextXAlignment = "Left"
  349. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  350. local txtlb2 = Instance.new("TextLabel",scrg)
  351. txtlb2.Text = plr.Name.." The Coder:"
  352. txtlb2.Font = "Arcade"
  353. txtlb2.TextColor3 = Color3.new(0,0,0)
  354. txtlb2.TextStrokeTransparency = 0
  355. txtlb2.BackgroundTransparency = 1
  356. txtlb2.TextStrokeColor3 = color
  357. txtlb2.TextSize = 40
  358. txtlb2.Size = UDim2.new(1,0,0.25,0)
  359. txtlb2.TextXAlignment = "Left"
  360. txtlb2.Position = UDim2.new(0,0,1,0)
  361. local fvalen = 0.55
  362. local fval = -0.49
  363. coroutine.resume(coroutine.create(function()
  364. while true do
  365. swait()
  366. if chaosmode == true then
  367. txtlb.Rotation = math.random(-1,1)
  368. txtlb2.Rotation = math.random(-1,1)
  369. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  370. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  371. txtlb.TextStrokeColor3 = BrickColor.random().Color
  372. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  373. end
  374. end
  375. end))
  376. coroutine.resume(coroutine.create(function()
  377. while true do
  378. swait()
  379. if scrg.Parent ~= nil then
  380. fvalen = fvalen - 0.0001
  381. elseif scrg.Parent == nil then
  382. break
  383. end
  384. end
  385. end))
  386. local flol = 1.75
  387. local flil = 1.6
  388. coroutine.resume(coroutine.create(function()
  389. for i = 0, 9 do
  390. swait()
  391. fval = fval + 0.05
  392. flol = flol - 0.1
  393. flil = flil - 0.1
  394. txtlb.Text = ""
  395. txtlb.Position = UDim2.new(0,0,flol,0)
  396. txtlb2.Position = UDim2.new(0,0,flil,0)
  397. end
  398. txtlb.Text = text
  399. wait(watval)
  400. local valinc = 0
  401. for i = 0, 99 do
  402. swait()
  403. valinc = valinc + 0.0001
  404. flol = flol + valinc
  405. flil = flil + valinc
  406. txtlb.Rotation = txtlb.Rotation + valinc*20
  407. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  408. txtlb.Position = UDim2.new(0,0,flol,0)
  409. txtlb2.Position = UDim2.new(0,0,flil,0)
  410. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  411. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  412. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  413. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  414. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  415. end
  416. scrg:Destroy()
  417. end))
  418. end))
  419. end
  420. end
  421.  
  422.  
  423. local Create = LoadLibrary("RbxUtility").Create
  424.  
  425. CFuncs = {
  426. ["Part"] = {
  427. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  428. local Part = Create("Part"){
  429. Parent = Parent,
  430. Reflectance = Reflectance,
  431. Transparency = Transparency,
  432. CanCollide = false,
  433. Locked = true,
  434. BrickColor = BrickColor.new(tostring(BColor)),
  435. Name = Name,
  436. Size = Size,
  437. Material = Material,
  438. }
  439. RemoveOutlines(Part)
  440. return Part
  441. end;
  442. };
  443.  
  444. ["Mesh"] = {
  445. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  446. local Msh = Create(Mesh){
  447. Parent = Part,
  448. Offset = OffSet,
  449. Scale = Scale,
  450. }
  451. if Mesh == "SpecialMesh" then
  452. Msh.MeshType = MeshType
  453. Msh.MeshId = MeshId
  454. end
  455. return Msh
  456. end;
  457. };
  458.  
  459. ["Mesh"] = {
  460. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  461. local Msh = Create(Mesh){
  462. Parent = Part,
  463. Offset = OffSet,
  464. Scale = Scale,
  465. }
  466. if Mesh == "SpecialMesh" then
  467. Msh.MeshType = MeshType
  468. Msh.MeshId = MeshId
  469. end
  470. return Msh
  471. end;
  472. };
  473.  
  474. ["Weld"] = {
  475. Create = function(Parent, Part0, Part1, C0, C1)
  476. local Weld = Create("Weld"){
  477. Parent = Parent,
  478. Part0 = Part0,
  479. Part1 = Part1,
  480. C0 = C0,
  481. C1 = C1,
  482. }
  483. return Weld
  484. end;
  485. };
  486.  
  487. ["Sound"] = {
  488. Create = function(id, par, vol, pit)
  489. coroutine.resume(coroutine.create(function()
  490. local S = Create("Sound"){
  491. Volume = vol,
  492. Name = "EffectSoundo",
  493. Pitch = pit or 1,
  494. SoundId = id,
  495. Parent = par or workspace,
  496. }
  497. wait()
  498. S:play()
  499. game:GetService("Debris"):AddItem(S, 10)
  500. end))
  501. end;
  502. };
  503.  
  504. ["TimeSound"] = {
  505. Create = function(id, par, vol, pit, timepos)
  506. coroutine.resume(coroutine.create(function()
  507. local S = Create("Sound"){
  508. Volume = vol,
  509. Name = "EffectSoundo",
  510. Pitch = pit or 1,
  511. SoundId = id,
  512. TimePosition = timepos,
  513. Parent = par or workspace,
  514. }
  515. wait()
  516. S:play()
  517. game:GetService("Debris"):AddItem(S, 10)
  518. end))
  519. end;
  520. };
  521. ["EchoSound"] = {
  522. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  523. coroutine.resume(coroutine.create(function()
  524. local Sas = Create("Sound"){
  525. Volume = vol,
  526. Name = "EffectSoundo",
  527. Pitch = pit or 1,
  528. SoundId = id,
  529. TimePosition = timepos,
  530. Parent = par or workspace,
  531. }
  532. local E = Create("EchoSoundEffect"){
  533. Delay = echodelay,
  534. Name = "Echo",
  535. Feedback = fedb,
  536. DryLevel = dryl,
  537. Parent = Sas,
  538. }
  539. wait()
  540. Sas:play()
  541. game:GetService("Debris"):AddItem(Sas, delays)
  542. end))
  543. end;
  544. };
  545.  
  546. ["LongSound"] = {
  547. Create = function(id, par, vol, pit)
  548. coroutine.resume(coroutine.create(function()
  549. local S = Create("Sound"){
  550. Volume = vol,
  551. Pitch = pit or 1,
  552. SoundId = id,
  553. Parent = par or workspace,
  554. }
  555. wait()
  556. S:play()
  557. game:GetService("Debris"):AddItem(S, 60)
  558. end))
  559. end;
  560. };
  561.  
  562. ["ParticleEmitter"] = {
  563. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  564. local fp = Create("ParticleEmitter"){
  565. Parent = Parent,
  566. Color = ColorSequence.new(Color1, Color2),
  567. LightEmission = LightEmission,
  568. Size = Size,
  569. Texture = Texture,
  570. Transparency = Transparency,
  571. ZOffset = ZOffset,
  572. Acceleration = Accel,
  573. Drag = Drag,
  574. LockedToPart = LockedToPart,
  575. VelocityInheritance = VelocityInheritance,
  576. EmissionDirection = EmissionDirection,
  577. Enabled = Enabled,
  578. Lifetime = LifeTime,
  579. Rate = Rate,
  580. Rotation = Rotation,
  581. RotSpeed = RotSpeed,
  582. Speed = Speed,
  583. VelocitySpread = VelocitySpread,
  584. }
  585. return fp
  586. end;
  587. };
  588.  
  589. CreateTemplate = {
  590.  
  591. };
  592. }
  593.  
  594.  
  595.  
  596. New = function(Object, Parent, Name, Data)
  597. local Object = Instance.new(Object)
  598. for Index, Value in pairs(Data or {}) do
  599. Object[Index] = Value
  600. end
  601. Object.Parent = Parent
  602. Object.Name = Name
  603. return Object
  604. end
  605. local halocolor = BrickColor.new("Pastel light blue")
  606. local halocolor2 = BrickColor.new("Cool yellow")
  607. local starcolor = BrickColor.new("Bright yellow")
  608. local lunacolor = BrickColor.new("Navy blue")
  609. local lunacolor2 = BrickColor.new("Bright blue")
  610. local wepcolor = BrickColor.new("Really black")
  611. local maincolor = BrickColor.new("Really black")
  612. local m = Instance.new("Model",char)
  613. local m2 = Instance.new("Model",char)
  614. local m3 = Instance.new("Model",char)
  615. local mw1 = Instance.new("Model",char)
  616. local mw2 = Instance.new("Model",char)
  617.  
  618.  
  619. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  620. local gui = it(GuiType)
  621. gui.Parent = parent
  622. gui.Text = text
  623. gui.BackgroundTransparency = backtrans
  624. gui.BackgroundColor3 = backcol
  625. gui.SizeConstraint = "RelativeXY"
  626. gui.TextXAlignment = "Center"
  627. gui.TextYAlignment = "Center"
  628. gui.Position = pos
  629. gui.Size = size
  630. gui.Font = "SourceSans"
  631. gui.FontSize = "Size14"
  632. gui.TextWrapped = false
  633. gui.TextStrokeTransparency = 0
  634. gui.TextColor = BrickColor.new("White")
  635. return gui
  636. end
  637. --------------------------- GUI STUFF
  638. local basgui = it("GuiMain")
  639. basgui.Parent = plr.PlayerGui
  640. basgui.Name = "VISgui"
  641. local fullscreenz = it("Frame")
  642. fullscreenz.Parent = basgui
  643. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  644. fullscreenz.BackgroundTransparency = 1
  645. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  646. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  647. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  648. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  649. imgl2.BackgroundTransparency = 1
  650. imgl2.BorderSizePixel = 0
  651. imgl2.ImageTransparency = 0.5
  652. imgl2.ImageColor3 = Color3.new(1,0,0)
  653. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  654. imgl2.Size = UDim2.new(0,1000,0,1000)
  655. imgl2.Image = "rbxassetid://2325939897"
  656. local techc = imgl2:Clone()
  657. techc.Parent = fullscreenz
  658. techc.ImageTransparency = 0
  659. techc.Size = UDim2.new(0,900,0,900)
  660. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  661. techc.ImageColor3 = Color3.new(1,0,0)
  662. techc.Image = "rbxassetid://2273224484"
  663. local circl = imgl2:Clone()
  664. circl.Parent = fullscreenz
  665. circl.ImageTransparency = 0
  666. circl.Size = UDim2.new(0,550,0,550)
  667. circl.Position = UDim2.new(0.75,25,0.55,25)
  668. circl.ImageColor3 = Color3.new(0,0,0)
  669. circl.Image = "rbxassetid://2312119891"
  670. local circl2 = imgl2:Clone()
  671. circl2.Parent = fullscreenz
  672. circl2.ImageTransparency = 0
  673. circl2.Size = UDim2.new(0,700,0,700)
  674. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  675. circl2.ImageColor3 = Color3.new(1,0,0)
  676. circl2.Image = "rbxassetid://2312119891"
  677. local imgl2b = imgl2:Clone()
  678. imgl2b.Parent = fullscreenz
  679. imgl2b.ImageTransparency = 0
  680. imgl2b.Size = UDim2.new(0,800,0,800)
  681. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  682. imgl2b.ImageColor3 = Color3.new(0,0,0)
  683. local ned = Instance.new("TextLabel",fullscreenz)
  684. ned.ZIndex = 2
  685. ned.Font = "Arcade"
  686. ned.BackgroundTransparency = 1
  687. ned.BorderSizePixel = 0.65
  688. ned.Size = UDim2.new(0.3,0,0.2,0)
  689. ned.Position = UDim2.new(0.7,0,0.8,0)
  690. ned.TextColor3 = BrickColor.new("Bright green").Color
  691. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  692. ned.TextScaled = true
  693. ned.TextStrokeTransparency = 0
  694. ned.Text = "CODED REALITY"
  695. ned.TextSize = 24
  696. ned.Rotation = 1
  697. ned.TextXAlignment = "Right"
  698. ned.TextYAlignment = "Bottom"
  699.  
  700. local extrawingmod1 = Instance.new("Model",char)
  701. local extrawingmod2 = Instance.new("Model",char)
  702.  
  703. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  704. local p = Instance.new("Part")
  705. p.TopSurface = 0
  706. p.BottomSurface = 0
  707. p.Parent = parent
  708. p.Size = Vector3.new(0.1,0.1,0.1)
  709. p.Transparency = transparency
  710. p.Reflectance = reflectance
  711. p.CanCollide = false
  712. p.Locked = true
  713. p.BrickColor = brickcolor
  714. p.Material = material
  715. return p
  716. end
  717.  
  718. function CreateMesh(parent,meshtype,x1,y1,z1)
  719. local mesh = Instance.new("SpecialMesh",parent)
  720. mesh.MeshType = meshtype
  721. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  722. return mesh
  723. end
  724.  
  725. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  726. local mesh = Instance.new("SpecialMesh",parent)
  727. mesh.MeshType = "FileMesh"
  728. mesh.MeshId = meshid
  729. mesh.Scale = Vector3.new(x1,y1,z1)
  730. return mesh
  731. end
  732.  
  733.  
  734. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  735. local mesh = Instance.new("SpecialMesh",parent)
  736. mesh.MeshType = "FileMesh"
  737. mesh.MeshId = meshid
  738. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  739. mesh.Scale = Vector3.new(x1,y1,z1)
  740. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  741. return mesh
  742. end
  743.  
  744. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  745. local weld = Instance.new("Weld")
  746. weld.Parent = parent
  747. weld.Part0 = part0
  748. weld.Part1 = part1
  749. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  750. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  751. return weld
  752. end
  753.  
  754.  
  755. --------------
  756. --------------
  757. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  758. 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))
  759. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  760. 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))
  761.  
  762. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  763. CreateMesh(handle,"Brick",0,0,0)
  764. 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))
  765. local valuaring = 10
  766. for i = 0, 49 do
  767. valuaring = valuaring + 10
  768. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  769. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  770. 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))
  771. end
  772.  
  773. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  774. CreateMesh(handle,"Brick",0,0,0)
  775. 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))
  776. local valuaring = 10
  777. for i = 0, 49 do
  778. valuaring = valuaring + 10
  779. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  780. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  781. 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))
  782. end
  783.  
  784.  
  785. local handle = CreateParta(m,1,1,"Neon",maincolor)
  786. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  787. 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))
  788.  
  789. --- Left wing.
  790.  
  791. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  792. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  793. 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))
  794.  
  795. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  796. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  797. 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))
  798. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  799. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  800. 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))
  801. A0 = Instance.new('Attachment',wed)
  802. A0.Position = vt(0,0.25,0.25)
  803. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  804. CreateMesh(wed,"Wedge",0.05,0.5,3)
  805. 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))
  806. A1 = Instance.new('Attachment',wed)
  807. A1.Position = vt(0,-0.25,-2)
  808. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,3,0.5)
  810. 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))
  811.  
  812. tl1 = Instance.new('Trail',wed)
  813. tl1.Attachment0 = A1
  814. tl1.Attachment1 = A0
  815. tl1.Texture = "rbxassetid://2108945559"
  816. tl1.LightEmission = 1
  817. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  818. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  819. tl1.Lifetime = 0.6
  820.  
  821.  
  822. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  823. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  824. 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))
  825.  
  826. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  828. 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))
  829. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  831. 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))
  832. A0 = Instance.new('Attachment',wed)
  833. A0.Position = vt(0,0.25,0.25)
  834. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  835. CreateMesh(wed,"Wedge",0.05,0.5,3)
  836. 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))
  837. A1 = Instance.new('Attachment',wed)
  838. A1.Position = vt(0,-0.25,-2)
  839. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,3,0.5)
  841. 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))
  842.  
  843. tl2 = Instance.new('Trail',wed)
  844. tl2.Attachment0 = A1
  845. tl2.Attachment1 = A0
  846. tl2.Texture = "rbxassetid://2108945559"
  847. tl2.LightEmission = 1
  848. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  849. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  850. tl2.Lifetime = 0.6
  851.  
  852. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  853. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  854. 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))
  855.  
  856. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. 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))
  859. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  860. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  861. 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))
  862. A0 = Instance.new('Attachment',wed)
  863. A0.Position = vt(0,0.25,0.25)
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,3)
  866. 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))
  867. A1 = Instance.new('Attachment',wed)
  868. A1.Position = vt(0,-0.25,-2)
  869. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,3,0.5)
  871. 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))
  872.  
  873. tl3 = Instance.new('Trail',wed)
  874. tl3.Attachment0 = A1
  875. tl3.Attachment1 = A0
  876. tl3.Texture = "rbxassetid://2108945559"
  877. tl3.LightEmission = 1
  878. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  879. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  880. tl3.Lifetime = 0.6
  881.  
  882. tl1.Enabled = false
  883. tl2.Enabled = false
  884. tl3.Enabled = false
  885. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  886. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  887. 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))
  888.  
  889. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. 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))
  892. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. 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))
  895. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,3)
  897. 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))
  898. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  899. CreateMesh(wed,"Wedge",0.05,3,0.5)
  900. 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))
  901.  
  902. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  903. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  904. 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))
  905.  
  906. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. 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))
  909. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  911. 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))
  912. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,0.5,3)
  914. 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))
  915. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,3,0.5)
  917. 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))
  918.  
  919. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  920. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  921. 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))
  922.  
  923. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. 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))
  926. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  928. 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))
  929. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,0.5,3)
  931. 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))
  932. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,3,0.5)
  934. 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))
  935.  
  936. -- Right wing.
  937.  
  938. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  939. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  940. 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))
  941.  
  942. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  943. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  944. 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))
  945. A0 = Instance.new('Attachment',wed)
  946. A0.Position = vt(0,0.25,0.25)
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  950. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,3)
  952. 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))
  953. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,3,0.5)
  955. 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))
  956. A1 = Instance.new('Attachment',wed)
  957. A1.Position = vt(0,2,0.25)
  958.  
  959. tr1 = Instance.new('Trail',wed)
  960. tr1.Attachment0 = A1
  961. tr1.Attachment1 = A0
  962. tr1.Texture = "rbxassetid://2108945559"
  963. tr1.LightEmission = 1
  964. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  965. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  966. tr1.Lifetime = 0.6
  967.  
  968. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  969. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  970. 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))
  971.  
  972. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. 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))
  975. A0 = Instance.new('Attachment',wed)
  976. A0.Position = vt(0,0.25,0.25)
  977. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,3)
  982. 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))
  983. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,3,0.5)
  985. 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))
  986. A1 = Instance.new('Attachment',wed)
  987. A1.Position = vt(0,2,0.25)
  988.  
  989. tr2 = Instance.new('Trail',wed)
  990. tr2.Attachment0 = A1
  991. tr2.Attachment1 = A0
  992. tr2.Texture = "rbxassetid://2108945559"
  993. tr2.LightEmission = 1
  994. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  995. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  996. tr2.Lifetime = 0.6
  997.  
  998. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  999. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1000. 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))
  1001.  
  1002. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1003. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1004. 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))
  1005. A0 = Instance.new('Attachment',wed)
  1006. A0.Position = vt(0,0.25,0.25)
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1012. 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))
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1015. 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))
  1016. A1 = Instance.new('Attachment',wed)
  1017. A1.Position = vt(0,2,0.25)
  1018.  
  1019. tr3 = Instance.new('Trail',wed)
  1020. tr3.Attachment0 = A1
  1021. tr3.Attachment1 = A0
  1022. tr3.Texture = "rbxassetid://2108945559"
  1023. tr3.LightEmission = 1
  1024. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1025. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1026. tr3.Lifetime = 0.6
  1027.  
  1028.  
  1029. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1030. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1031. 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))
  1032.  
  1033. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1035. 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))
  1036. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1038. 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))
  1039. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1041. 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))
  1042. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1044. 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))
  1045.  
  1046. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1047. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1048. 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))
  1049.  
  1050. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1052. 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))
  1053. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1055. 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))
  1056. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1058. 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))
  1059. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1060. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1061. 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))
  1062.  
  1063. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1064. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1065. 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))
  1066.  
  1067. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1069. 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))
  1070. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1072. 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))
  1073. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1075. 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))
  1076. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1078. 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))
  1079.  
  1080. --HERES THE RING
  1081.  
  1082.  
  1083. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1084. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1085. 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))
  1086. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1087. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1088. 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))
  1089. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1090. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1091. 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))
  1092.  
  1093.  
  1094. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1095. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1096. 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))
  1097.  
  1098. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1099. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1100. 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))
  1101.  
  1102.  
  1103.  
  1104. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1105. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1106. 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))
  1107.  
  1108. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1109. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1110. 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))
  1111.  
  1112. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1113. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1114. 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))
  1115.  
  1116. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1117. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1118. 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))
  1119. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1120. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1121. 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))]]--
  1122.  
  1123. --- second ring
  1124.  
  1125.  
  1126. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1127. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1128. 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))
  1129.  
  1130. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1131. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1132. 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))
  1133.  
  1134.  
  1135.  
  1136. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1137. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1138. 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))
  1139.  
  1140. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1141. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1142. 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))
  1143.  
  1144. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1145. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1146. 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))
  1147.  
  1148. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1149. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1150. 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))
  1151. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1152. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1153. 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))
  1154.  
  1155.  
  1156.  
  1157. for i, v in pairs(m:GetChildren()) do
  1158. if v:IsA("Part") then
  1159. v.BrickColor = BrickColor.new("Really black")
  1160. v.Material = "Glass"
  1161. end
  1162. end
  1163. for i, v in pairs(m2:GetChildren()) do
  1164. if v:IsA("Part") then
  1165. v.BrickColor = BrickColor.new("Crimson")
  1166. v.Material = "Granite"
  1167. end
  1168. end
  1169. for i, v in pairs(m3: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(mw2:GetChildren()) do
  1176. if v:IsA("Part") then
  1177. v.BrickColor = BrickColor.new("Really red")
  1178. v.Material = "Neon"
  1179. end
  1180. end
  1181. for i, v in pairs(mw1:GetChildren()) do
  1182. if v:IsA("Part") then
  1183. v.Transparency = 1
  1184. v.BrickColor = BrickColor.new("Really red")
  1185. v.Material = "Neon"
  1186. end
  1187. end
  1188. for i, v in pairs(extrawingmod1:GetChildren()) do
  1189. if v:IsA("Part") then
  1190. v.Transparency = 1
  1191. v.BrickColor = BrickColor.new("White")
  1192. v.Material = "Neon"
  1193. end
  1194. end
  1195. for i, v in pairs(extrawingmod2:GetChildren()) do
  1196. if v:IsA("Part") then
  1197. v.Transparency = 1
  1198. v.BrickColor = BrickColor.new("White")
  1199. v.Material = "Neon"
  1200. end
  1201. end
  1202. local MAINRUINCOLOR = BrickColor.new("Really red")
  1203. ------
  1204.  
  1205.  
  1206. function RemoveOutlines(part)
  1207. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1208. end
  1209. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1210. local Part = Create("Part")({
  1211. Parent = Parent,
  1212. Reflectance = Reflectance,
  1213. Transparency = Transparency,
  1214. CanCollide = false,
  1215. Locked = true,
  1216. BrickColor = BrickColor.new(tostring(BColor)),
  1217. Name = Name,
  1218. Size = Size,
  1219. Material = Material
  1220. })
  1221. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1222. RemoveOutlines(Part)
  1223. return Part
  1224. end
  1225. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1226. local Msh = Create(Mesh)({
  1227. Parent = Part,
  1228. Offset = OffSet,
  1229. Scale = Scale
  1230. })
  1231. if Mesh == "SpecialMesh" then
  1232. Msh.MeshType = MeshType
  1233. Msh.MeshId = MeshId
  1234. end
  1235. return Msh
  1236. end
  1237. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1238. local Weld = Create("Weld")({
  1239. Parent = Parent,
  1240. Part0 = Part0,
  1241. Part1 = Part1,
  1242. C0 = C0,
  1243. C1 = C1
  1244. })
  1245. return Weld
  1246. end
  1247.  
  1248. Player = plr
  1249. Character=Player.Character
  1250. PlayerGui=Player.PlayerGui
  1251. Backpack=Player.Backpack
  1252. Torso=Character.Torso
  1253. Head=Character.Head
  1254. Humanoid=Character.Humanoid
  1255. m=Instance.new('Model',Character)
  1256. LeftArm=Character["Left Arm"]
  1257. LeftLeg=Character["Left Leg"]
  1258. RightArm=Character["Right Arm"]
  1259. RightLeg=Character["Right Leg"]
  1260. LS=Torso["Left Shoulder"]
  1261. LH=Torso["Left Hip"]
  1262. RS=Torso["Right Shoulder"]
  1263. RH=Torso["Right Hip"]
  1264. Face = Head.face
  1265. Neck=Torso.Neck
  1266. it=Instance.new
  1267. attacktype=1
  1268. vt=Vector3.new
  1269. cf=CFrame.new
  1270. euler=CFrame.fromEulerAnglesXYZ
  1271. angles=CFrame.Angles
  1272. cloaked=false
  1273. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1274. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1275. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1276. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1277. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1278. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1279. RootPart=Character.HumanoidRootPart
  1280. RootJoint=RootPart.RootJoint
  1281. RootCF=euler(-1.57,0,3.14)
  1282. attack = false
  1283. attackdebounce = false
  1284. deb=false
  1285. equipped=true
  1286. hand=false
  1287. combo=0
  1288. mana=0
  1289. trispeed=.2
  1290. attackmode='none'
  1291. local idle=0
  1292. local Anim="Idle"
  1293. local Effects={}
  1294. local gun=false
  1295. local shoot=false
  1296. local sine = 0
  1297. local change = 1
  1298.  
  1299. function RecolorTextAndRename(name,col1,col2,font)
  1300. modet.TextStrokeColor3 = col2
  1301. modet.TextColor3 = col1
  1302. modet.Font = font
  1303. modet.Text = name
  1304. techc.ImageColor3 = col2
  1305. circl.ImageColor3 = col2
  1306. circl2.ImageColor3 = col1
  1307. imgl2.ImageColor3 = col1
  1308. imgl2b.ImageColor3 = col2
  1309. ned.Text = name
  1310. ned.TextColor3 = col1
  1311. ned.TextStrokeColor3 = col2
  1312. end
  1313. --save shoulders
  1314. RSH, LSH=nil, nil
  1315. --welds
  1316. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1317. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1318. LH=Torso["Left Hip"]
  1319. RH=Torso["Right Hip"]
  1320. TorsoColor=Torso.BrickColor
  1321. function NoOutline(Part)
  1322. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1323. end
  1324. ch=Character
  1325. RSH=ch.Torso["Right Shoulder"]
  1326. LSH=ch.Torso["Left Shoulder"]
  1327. --
  1328. RSH.Parent=nil
  1329. LSH.Parent=nil
  1330. --
  1331. RW.Name="Right Shoulder"
  1332. RW.Part0=ch.Torso
  1333. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1334. RW.C1=cf(0, 0.5, 0)
  1335. RW.Part1=ch["Right Arm"]
  1336. RW.Parent=ch.Torso
  1337. --
  1338. LW.Name="Left Shoulder"
  1339. LW.Part0=ch.Torso
  1340. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1341. LW.C1=cf(0, 0.5, 0)
  1342. LW.Part1=ch["Left Arm"]
  1343. LW.Parent=ch.Torso
  1344.  
  1345. local Stats=Instance.new("BoolValue")
  1346. Stats.Name="Stats"
  1347. Stats.Parent=Character
  1348. local Atk=Instance.new("NumberValue")
  1349. Atk.Name="Damage"
  1350. Atk.Parent=Stats
  1351. Atk.Value=1
  1352. local Def=Instance.new("NumberValue")
  1353. Def.Name="Defense"
  1354. Def.Parent=Stats
  1355. Def.Value=1
  1356. local Speed=Instance.new("NumberValue")
  1357. Speed.Name="Speed"
  1358. Speed.Parent=Stats
  1359. Speed.Value=1
  1360. local Mvmt=Instance.new("NumberValue")
  1361. Mvmt.Name="Movement"
  1362. Mvmt.Parent=Stats
  1363. Mvmt.Value=1
  1364.  
  1365. local donum=0
  1366. local ast = {744586075,385254610}
  1367.  
  1368. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1369. local fp=it("Part")
  1370. fp.formFactor=formfactor
  1371. fp.Parent=parent
  1372. fp.Reflectance=reflectance
  1373. fp.Transparency=transparency
  1374. fp.CanCollide=false
  1375. fp.Locked=true
  1376. fp.BrickColor=brickcolor
  1377. fp.Name=name
  1378. fp.Size=size
  1379. fp.Position=Torso.Position
  1380. NoOutline(fp)
  1381. fp.Material="SmoothPlastic"
  1382. fp:BreakJoints()
  1383. return fp
  1384. end
  1385.  
  1386. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1387. local mesh=it(Mesh)
  1388. mesh.Parent=part
  1389. if Mesh=="SpecialMesh" then
  1390. mesh.MeshType=meshtype
  1391. if meshid~="nil" then
  1392. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1393. end
  1394. end
  1395. mesh.Offset=offset
  1396. mesh.Scale=scale
  1397. return mesh
  1398. end
  1399.  
  1400. function weld(parent,part0,part1,c0)
  1401. local weld=it("Weld")
  1402. weld.Parent=parent
  1403. weld.Part0=part0
  1404. weld.Part1=part1
  1405. weld.C0=c0
  1406. return weld
  1407. end
  1408.  
  1409. local Color1=Torso.BrickColor
  1410.  
  1411. local bodvel=Instance.new("BodyVelocity")
  1412. local bg=Instance.new("BodyGyro")
  1413.  
  1414. --------- SazEreno's Artificial HB --------------
  1415. ArtificialHB = Instance.new("BindableEvent", script)
  1416. ArtificialHB.Name = "ArtificialHB"
  1417.  
  1418. script:WaitForChild("ArtificialHB")
  1419. Frame_Speed = 1 / 60
  1420. frame = Frame_Speed
  1421. tf = 0
  1422. allowframeloss = false
  1423. tossremainder = false
  1424. lastframe = tick()
  1425. script.ArtificialHB:Fire()
  1426.  
  1427. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1428. tf = tf + s
  1429. if tf >= frame then
  1430. if allowframeloss then
  1431. script.ArtificialHB:Fire()
  1432. lastframe = tick()
  1433. else
  1434. for i = 1, math.floor(tf / frame) do
  1435. script.ArtificialHB:Fire()
  1436. end
  1437. lastframe = tick()
  1438. end
  1439. if tossremainder then
  1440. tf = 0
  1441. else
  1442. tf = tf - frame * math.floor(tf / frame)
  1443. end
  1444. end
  1445. end)
  1446.  
  1447. ------------------
  1448. function swait(num)
  1449. if num == 0 or num == nil then
  1450. ArtificialHB.Event:wait()
  1451. else
  1452. for i = 1, num do
  1453. ArtificialHB.Event:wait()
  1454. end
  1455. end
  1456. end
  1457. -------- RAINBOW LEAVE IT TO ME
  1458. local r = 255
  1459. local g = 0
  1460. local b = 0
  1461. coroutine.resume(coroutine.create(function()
  1462. while wait() do
  1463. for i = 0, 254/5 do
  1464. swait()
  1465. g = g + 5
  1466. end
  1467. for i = 0, 254/5 do
  1468. swait()
  1469. r = r - 5
  1470. end
  1471. for i = 0, 254/5 do
  1472. swait()
  1473. b = b + 5
  1474. end
  1475. for i = 0, 254/5 do
  1476. swait()
  1477. g = g - 5
  1478. end
  1479. for i = 0, 254/5 do
  1480. swait()
  1481. r = r + 5
  1482. end
  1483. for i = 0, 254/5 do
  1484. swait()
  1485. b = b - 5
  1486. end
  1487. end
  1488. end))
  1489.  
  1490.  
  1491. so = function(id,par,vol,pit)
  1492. coroutine.resume(coroutine.create(function()
  1493. local sou = Instance.new("Sound",par or workspace)
  1494. sou.Volume=vol
  1495. sou.Pitch=pit or 1
  1496. sou.SoundId=id
  1497. swait()
  1498. sou:play()
  1499. game:GetService("Debris"):AddItem(sou,6)
  1500. end))
  1501. end
  1502.  
  1503. function clerp(a,b,t)
  1504. local qa = {QuaternionFromCFrame(a)}
  1505. local qb = {QuaternionFromCFrame(b)}
  1506. local ax, ay, az = a.x, a.y, a.z
  1507. local bx, by, bz = b.x, b.y, b.z
  1508. local _t = 1-t
  1509. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1510. end
  1511.  
  1512. function QuaternionFromCFrame(cf)
  1513. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1514. local trace = m00 + m11 + m22
  1515. if trace > 0 then
  1516. local s = math.sqrt(1 + trace)
  1517. local recip = 0.5/s
  1518. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1519. else
  1520. local i = 0
  1521. if m11 > m00 then
  1522. i = 1
  1523. end
  1524. if m22 > (i == 0 and m00 or m11) then
  1525. i = 2
  1526. end
  1527. if i == 0 then
  1528. local s = math.sqrt(m00-m11-m22+1)
  1529. local recip = 0.5/s
  1530. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1531. elseif i == 1 then
  1532. local s = math.sqrt(m11-m22-m00+1)
  1533. local recip = 0.5/s
  1534. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1535. elseif i == 2 then
  1536. local s = math.sqrt(m22-m00-m11+1)
  1537. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1538. end
  1539. end
  1540. end
  1541.  
  1542. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1543. local xs, ys, zs = x + x, y + y, z + z
  1544. local wx, wy, wz = w*xs, w*ys, w*zs
  1545. local xx = x*xs
  1546. local xy = x*ys
  1547. local xz = x*zs
  1548. local yy = y*ys
  1549. local yz = y*zs
  1550. local zz = z*zs
  1551. 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))
  1552. end
  1553.  
  1554. function QuaternionSlerp(a, b, t)
  1555. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1556. local startInterp, finishInterp;
  1557. if cosTheta >= 0.0001 then
  1558. if (1 - cosTheta) > 0.0001 then
  1559. local theta = math.acos(cosTheta)
  1560. local invSinTheta = 1/math.sin(theta)
  1561. startInterp = math.sin((1-t)*theta)*invSinTheta
  1562. finishInterp = math.sin(t*theta)*invSinTheta
  1563. else
  1564. startInterp = 1-t
  1565. finishInterp = t
  1566. end
  1567. else
  1568. if (1+cosTheta) > 0.0001 then
  1569. local theta = math.acos(-cosTheta)
  1570. local invSinTheta = 1/math.sin(theta)
  1571. startInterp = math.sin((t-1)*theta)*invSinTheta
  1572. finishInterp = math.sin(t*theta)*invSinTheta
  1573. else
  1574. startInterp = t-1
  1575. finishInterp = t
  1576. end
  1577. end
  1578. 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
  1579. end
  1580.  
  1581. local function CFrameFromTopBack(at, top, back)
  1582. local right = top:Cross(back)
  1583. return CFrame.new(at.x, at.y, at.z,
  1584. right.x, top.x, back.x,
  1585. right.y, top.y, back.y,
  1586. right.z, top.z, back.z)
  1587. end
  1588.  
  1589. function Triangle(a, b, c)
  1590. local edg1 = (c-a):Dot((b-a).unit)
  1591. local edg2 = (a-b):Dot((c-b).unit)
  1592. local edg3 = (b-c):Dot((a-c).unit)
  1593. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1594. a, b, c = a, b, c
  1595. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1596. a, b, c = b, c, a
  1597. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1598. a, b, c = c, a, b
  1599. else
  1600. assert(false, "unreachable")
  1601. end
  1602.  
  1603. local len1 = (c-a):Dot((b-a).unit)
  1604. local len2 = (b-a).magnitude - len1
  1605. local width = (a + (b-a).unit*len1 - c).magnitude
  1606.  
  1607. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1608.  
  1609. local list = {}
  1610.  
  1611. if len1 > 0.01 then
  1612. local w1 = Instance.new('WedgePart', m)
  1613. game:GetService("Debris"):AddItem(w1,5)
  1614. w1.Material = "SmoothPlastic"
  1615. w1.FormFactor = 'Custom'
  1616. w1.BrickColor = BrickColor.new("Really red")
  1617. w1.Transparency = 0
  1618. w1.Reflectance = 0
  1619. w1.Material = "SmoothPlastic"
  1620. w1.CanCollide = false
  1621. local l1 = Instance.new("PointLight",w1)
  1622. l1.Color = Color3.new(170,0,0)
  1623. NoOutline(w1)
  1624. local sz = Vector3.new(0.2, width, len1)
  1625. w1.Size = sz
  1626. local sp = Instance.new("SpecialMesh",w1)
  1627. sp.MeshType = "Wedge"
  1628. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1629. w1:BreakJoints()
  1630. w1.Anchored = true
  1631. w1.Parent = workspace
  1632. w1.Transparency = 0.7
  1633. table.insert(Effects,{w1,"Disappear",.01})
  1634. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1635. table.insert(list,w1)
  1636. end
  1637.  
  1638. if len2 > 0.01 then
  1639. local w2 = Instance.new('WedgePart', m)
  1640. game:GetService("Debris"):AddItem(w2,5)
  1641. w2.Material = "SmoothPlastic"
  1642. w2.FormFactor = 'Custom'
  1643. w2.BrickColor = BrickColor.new("Really red")
  1644. w2.Transparency = 0
  1645. w2.Reflectance = 0
  1646. w2.Material = "SmoothPlastic"
  1647. w2.CanCollide = false
  1648. local l2 = Instance.new("PointLight",w2)
  1649. l2.Color = Color3.new(170,0,0)
  1650. NoOutline(w2)
  1651. local sz = Vector3.new(0.2, width, len2)
  1652. w2.Size = sz
  1653. local sp = Instance.new("SpecialMesh",w2)
  1654. sp.MeshType = "Wedge"
  1655. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1656. w2:BreakJoints()
  1657. w2.Anchored = true
  1658. w2.Parent = workspace
  1659. w2.Transparency = 0.7
  1660. table.insert(Effects,{w2,"Disappear",.01})
  1661. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1662. table.insert(list,w2)
  1663. end
  1664. return unpack(list)
  1665. end
  1666.  
  1667.  
  1668. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1669. if hit.Parent == nil then
  1670. return
  1671. end
  1672. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1673. for _, v in pairs(hit.Parent:children()) do
  1674. if v:IsA("Humanoid") then
  1675. h = v
  1676. end
  1677. end
  1678. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1679. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1680. return
  1681. end
  1682. local c = Create("ObjectValue")({
  1683. Name = "creator",
  1684. Value = game:GetService("Players").EzzyCrafts2,
  1685. Parent = h
  1686. })
  1687. game:GetService("Debris"):AddItem(c, 0.5)
  1688. if HitSound ~= nil and HitPitch ~= nil then
  1689. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1690. end
  1691. local Damage = math.random(minim, maxim)
  1692. local blocked = false
  1693. local block = hit.Parent:findFirstChild("Block")
  1694. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1695. blocked = true
  1696. block.Value = block.Value - 1
  1697. print(block.Value)
  1698. end
  1699. if blocked == false then
  1700. HitHealth = h.Health
  1701. h.MaxHealth = 100
  1702. h.Health = h.Health - Damage
  1703. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1704. print("gained kill")
  1705. dmg(h.Parent)
  1706. end
  1707. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1708. else
  1709. h.Health = h.Health - Damage / 2
  1710. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1711. end
  1712. if Type == "Knockdown" then
  1713. local hum = hit.Parent.Humanoid
  1714. hum.PlatformStand = true
  1715. coroutine.resume(coroutine.create(function(HHumanoid)
  1716. swait(1)
  1717. HHumanoid.PlatformStand = false
  1718. end), hum)
  1719. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1720. local bodvol = Create("BodyVelocity")({
  1721. velocity = angle * knockback,
  1722. P = 5000,
  1723. maxForce = Vector3.new(8000, 8000, 8000),
  1724. Parent = hit
  1725. })
  1726. local rl = Create("BodyAngularVelocity")({
  1727. P = 3000,
  1728. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1729. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1730. Parent = hit
  1731. })
  1732. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1733. game:GetService("Debris"):AddItem(rl, 0.5)
  1734. elseif Type == "Normal" then
  1735. local vp = Create("BodyVelocity")({
  1736. P = 500,
  1737. maxForce = Vector3.new(math.huge, 0, math.huge),
  1738. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1739. })
  1740. if knockback > 0 then
  1741. vp.Parent = hit.Parent.Head
  1742. end
  1743. game:GetService("Debris"):AddItem(vp, 0.5)
  1744. elseif Type == "Up" then
  1745. local bodyVelocity = Create("BodyVelocity")({
  1746. velocity = Vector3.new(0, 20, 0),
  1747. P = 5000,
  1748. maxForce = Vector3.new(8000, 8000, 8000),
  1749. Parent = hit
  1750. })
  1751. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1752. local bodyVelocity = Create("BodyVelocity")({
  1753. velocity = Vector3.new(0, 20, 0),
  1754. P = 5000,
  1755. maxForce = Vector3.new(8000, 8000, 8000),
  1756. Parent = hit
  1757. })
  1758. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1759. elseif Type == "Leech" then
  1760. local hum = hit.Parent.Humanoid
  1761. if hum ~= nil then
  1762. for i = 0, 2 do
  1763. 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)
  1764. end
  1765. Humanoid.Health = Humanoid.Health + 10
  1766. end
  1767. elseif Type == "UpKnock" then
  1768. local hum = hit.Parent.Humanoid
  1769. hum.PlatformStand = true
  1770. if hum ~= nil then
  1771. hitr = true
  1772. end
  1773. coroutine.resume(coroutine.create(function(HHumanoid)
  1774. swait(5)
  1775. HHumanoid.PlatformStand = false
  1776. hitr = false
  1777. end), hum)
  1778. local bodyVelocity = Create("BodyVelocity")({
  1779. velocity = Vector3.new(0, 20, 0),
  1780. P = 5000,
  1781. maxForce = Vector3.new(8000, 8000, 8000),
  1782. Parent = hit
  1783. })
  1784. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1785. local bodyVelocity = Create("BodyVelocity")({
  1786. velocity = Vector3.new(0, 20, 0),
  1787. P = 5000,
  1788. maxForce = Vector3.new(8000, 8000, 8000),
  1789. Parent = hit
  1790. })
  1791. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1792. elseif Type == "Snare" then
  1793. local bp = Create("BodyPosition")({
  1794. P = 2000,
  1795. D = 100,
  1796. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1797. position = hit.Parent.Torso.Position,
  1798. Parent = hit.Parent.Torso
  1799. })
  1800. game:GetService("Debris"):AddItem(bp, 1)
  1801. elseif Type == "Slashnare" then
  1802. 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)
  1803. for i = 1, math.random(4, 5) do
  1804. 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)
  1805. end
  1806. local bp = Create("BodyPosition")({
  1807. P = 2000,
  1808. D = 100,
  1809. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1810. position = hit.Parent.Torso.Position,
  1811. Parent = hit.Parent.Torso
  1812. })
  1813. game:GetService("Debris"):AddItem(bp, 1)
  1814. elseif Type == "Spike" then
  1815. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1816. local bp = Create("BodyPosition")({
  1817. P = 2000,
  1818. D = 100,
  1819. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1820. position = hit.Parent.Torso.Position,
  1821. Parent = hit.Parent.Torso
  1822. })
  1823. game:GetService("Debris"):AddItem(bp, 1)
  1824. elseif Type == "Freeze" then
  1825. local BodPos = Create("BodyPosition")({
  1826. P = 50000,
  1827. D = 1000,
  1828. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1829. position = hit.Parent.Torso.Position,
  1830. Parent = hit.Parent.Torso
  1831. })
  1832. local BodGy = Create("BodyGyro")({
  1833. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1834. P = 20000,
  1835. Parent = hit.Parent.Torso,
  1836. cframe = hit.Parent.Torso.CFrame
  1837. })
  1838. hit.Parent.Torso.Anchored = true
  1839. coroutine.resume(coroutine.create(function(Part)
  1840. swait(1.5)
  1841. Part.Anchored = false
  1842. end), hit.Parent.Torso)
  1843. game:GetService("Debris"):AddItem(BodPos, 3)
  1844. game:GetService("Debris"):AddItem(BodGy, 3)
  1845. end
  1846. local debounce = Create("BoolValue")({
  1847. Name = "DebounceHit",
  1848. Parent = hit.Parent,
  1849. Value = true
  1850. })
  1851. game:GetService("Debris"):AddItem(debounce, Delay)
  1852. c = Instance.new("ObjectValue")
  1853. c.Name = "creator"
  1854. c.Value = Player
  1855. c.Parent = h
  1856. game:GetService("Debris"):AddItem(c, 0.5)
  1857. end
  1858. end
  1859. function ShowDamage(Pos, Text, Time, Color)
  1860. local Rate = 0.03333333333333333
  1861. local Pos = Pos or Vector3.new(0, 0, 0)
  1862. local Text = Text or ""
  1863. local Time = Time or 2
  1864. local Color = Color or Color3.new(1, 0, 1)
  1865. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1866. EffectPart.Anchored = true
  1867. local BillboardGui = Create("BillboardGui")({
  1868. Size = UDim2.new(3, 0, 3, 0),
  1869. Adornee = EffectPart,
  1870. Parent = EffectPart
  1871. })
  1872. local TextLabel = Create("TextLabel")({
  1873. BackgroundTransparency = 1,
  1874. Size = UDim2.new(1, 0, 1, 0),
  1875. Text = Text,
  1876. TextColor3 = Color,
  1877. TextScaled = true,
  1878. Font = Enum.Font.ArialBold,
  1879. Parent = BillboardGui
  1880. })
  1881. game.Debris:AddItem(EffectPart, Time + 0.1)
  1882. EffectPart.Parent = game:GetService("Workspace")
  1883. delay(0, function()
  1884. local Frames = Time / Rate
  1885. for Frame = 1, Frames do
  1886. wait(Rate)
  1887. local Percent = Frame / Frames
  1888. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1889. TextLabel.TextTransparency = Percent
  1890. end
  1891. if EffectPart and EffectPart.Parent then
  1892. EffectPart:Destroy()
  1893. end
  1894. end)
  1895. end
  1896. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1897. for _, c in pairs(workspace:children()) do
  1898. local hum = c:findFirstChildOfClass("Humanoid")
  1899. if hum ~= nil then
  1900. local head = c:findFirstChild("Head")
  1901. if head ~= nil then
  1902. local targ = head.Position - Part.Position
  1903. local mag = targ.magnitude
  1904. if magni >= mag and c.Name ~= Player.Name then
  1905. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end
  1911.  
  1912. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1913. for _, c in pairs(workspace:children()) do
  1914. local hum = c:findFirstChild("Humanoid")
  1915. if hum ~= nil then
  1916. local head = c:findFirstChild("Torso")
  1917. if head ~= nil then
  1918. local targ = head.Position - Part.Position
  1919. local mag = targ.magnitude
  1920. if magni >= mag and c.Name ~= Player.Name then
  1921. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1922. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1923. end
  1924. end
  1925. end
  1926. end
  1927. end
  1928.  
  1929. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1930. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1931. end
  1932.  
  1933. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1934. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1935. prt.Anchored=true
  1936. prt.CFrame=cframe
  1937. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1938. --http://www.roblox.com/asset/?id=4770560
  1939. game:GetService("Debris"):AddItem(prt,2)
  1940. CF=prt.CFrame
  1941. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1942. for i=0,1,0.2 do
  1943. wait()
  1944. Part.CFrame=CF*cf(0,0,-0.4)
  1945. end
  1946. for i=0,1,delay do
  1947. wait()
  1948. --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)
  1949. Mesh.Scale=Mesh.Scale
  1950. end
  1951. for i=0,1,0.1 do
  1952. wait()
  1953. Part.Transparency=i
  1954. end
  1955. Part.Parent=nil
  1956. end),prt,msh,CF)
  1957. end
  1958.  
  1959. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1960. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1961. prt.Anchored=true
  1962. prt.Material = "Neon"
  1963. prt.CFrame=cframe
  1964. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1965. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1966. game:GetService("Debris"):AddItem(prt,5)
  1967. coroutine.resume(coroutine.create(function(Part,Mesh)
  1968. for i=0,1,delay do
  1969. swait()
  1970. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1971. Part.Transparency=i
  1972. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1973. end
  1974. Part.Parent=nil
  1975. end),prt,msh)
  1976. end
  1977.  
  1978. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1979. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1980. prt.Anchored=true
  1981. prt.Material = "Neon"
  1982. prt.CFrame=cframe
  1983. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1984. game:GetService("Debris"):AddItem(prt,5)
  1985. coroutine.resume(coroutine.create(function(Part,Mesh)
  1986. local rtype = rottype
  1987. for i=0,1,delay do
  1988. swait()
  1989. if rtype == 1 then
  1990. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1991. elseif rtype == 2 then
  1992. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1993. end
  1994. Part.Transparency=i
  1995. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1996. end
  1997. Part.Parent=nil
  1998. end),prt,msh)
  1999. end
  2000.  
  2001. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2002. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2003. prt.Anchored=true
  2004. prt.CFrame=cframe
  2005. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2006. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2007. game:GetService("Debris"):AddItem(prt,5)
  2008. coroutine.resume(coroutine.create(function(Part,Mesh)
  2009. for i=0,1,delay do
  2010. wait()
  2011. Part.Transparency=i
  2012. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2013. end
  2014. Part.Parent=nil
  2015. end),prt,msh)
  2016. end
  2017.  
  2018. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2019. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2020. prt.Anchored=true
  2021. prt.Material = "Neon"
  2022. prt.CFrame=cframe
  2023. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2024. game:GetService("Debris"):AddItem(prt,5)
  2025. coroutine.resume(coroutine.create(function(Part,Mesh)
  2026. local rtype = rottype
  2027. for i=0,1,delay do
  2028. swait()
  2029. if rtype == 1 then
  2030. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2031. elseif rtype == 2 then
  2032. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2033. end
  2034. Part.Transparency=i
  2035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2036. end
  2037. Part.Parent=nil
  2038. end),prt,msh)
  2039. end
  2040.  
  2041. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2042. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2043. prt.Anchored=true
  2044. prt.Material = "Neon"
  2045. prt.CFrame=cframe
  2046. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2047. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2048. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2049. game:GetService("Debris"):AddItem(prt,5)
  2050. coroutine.resume(coroutine.create(function(Part,Mesh)
  2051. local rtype = rottype
  2052. for i=0,1,delay do
  2053. swait()
  2054. if rtype == 1 then
  2055. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2056. elseif rtype == 2 then
  2057. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2058. end
  2059. dec.Transparency=i
  2060. dec2.Transparency=i
  2061. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2062. end
  2063. Part.Parent=nil
  2064. end),prt,msh)
  2065. end
  2066.  
  2067. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2068. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2069. prt.Anchored=true
  2070. prt.Material = "Neon"
  2071. prt.CFrame=cframe
  2072. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2073. game:GetService("Debris"):AddItem(prt,5)
  2074. coroutine.resume(coroutine.create(function(Part,Mesh)
  2075. local rtype = rottype
  2076. for i=0,1,delay do
  2077. swait()
  2078. if rtype == 1 then
  2079. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2080. elseif rtype == 2 then
  2081. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2082. end
  2083. prt.Transparency=i
  2084. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2085. end
  2086. Part.Parent=nil
  2087. end),prt,msh)
  2088. end
  2089.  
  2090. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2091. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2092. prt.Anchored=true
  2093. prt.Material = "Neon"
  2094. prt.CFrame=cframe
  2095. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2096. game:GetService("Debris"):AddItem(prt,5)
  2097. coroutine.resume(coroutine.create(function(Part,Mesh)
  2098. local rtype = rottype
  2099. for i=0,1,delay do
  2100. swait()
  2101. if rtype == 1 then
  2102. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2103. elseif rtype == 2 then
  2104. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2105. end
  2106. prt.Transparency=i
  2107. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2108. end
  2109. Part.Parent=nil
  2110. end),prt,msh)
  2111. end
  2112.  
  2113. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2114. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2115. prt.Anchored=true
  2116. prt.Material = "Neon"
  2117. prt.CFrame=cframe
  2118. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2119. game:GetService("Debris"):AddItem(prt,5)
  2120. coroutine.resume(coroutine.create(function(Part,Mesh)
  2121. local rtype = rottype
  2122. for i=0,1,delay do
  2123. swait()
  2124. if rtype == 1 then
  2125. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2126. elseif rtype == 2 then
  2127. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2128. end
  2129. prt.Transparency=i
  2130. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2131. end
  2132. Part.Parent=nil
  2133. end),prt,msh)
  2134. end
  2135.  
  2136. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2137. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2138. prt.Anchored=true
  2139. prt.Material = "Neon"
  2140. prt.CFrame=cframe
  2141. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2142. game:GetService("Debris"):AddItem(prt,5)
  2143. coroutine.resume(coroutine.create(function(Part,Mesh)
  2144. local rtype = rottype
  2145. for i=0,1,delay do
  2146. swait()
  2147. if rtype == 1 then
  2148. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2149. elseif rtype == 2 then
  2150. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2151. end
  2152. prt.Transparency=i
  2153. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2154. end
  2155. Part.Parent=nil
  2156. end),prt,msh)
  2157. end
  2158.  
  2159. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2160. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2161. prt.Anchored=false
  2162. prt.CFrame=cframe
  2163. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2164. local wld=weld(prt,prt,Parent,cframe)
  2165. game:GetService("Debris"):AddItem(prt,5)
  2166. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2167. for i=0,1,delay do
  2168. wait()
  2169. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2170. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2171. Part.Transparency=i
  2172. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2173. end
  2174. Part.Parent=nil
  2175. end),prt,msh,wld)
  2176. end
  2177.  
  2178. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2179. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2180. prt.Anchored=false
  2181. prt.CFrame=cframe
  2182. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2183. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2184. game:GetService("Debris"):AddItem(prt,5)
  2185. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2186. for i=0,1,delay do
  2187. wait()
  2188. Weld.C0=euler(i*20,0,0)
  2189. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2190. Part.Transparency=i
  2191. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2192. end
  2193. Part.Parent=nil
  2194. end),prt,msh,wld)
  2195. end
  2196.  
  2197. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2198. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2199. prt.Anchored=true
  2200. prt.CFrame=cframe
  2201. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2202. game:GetService("Debris"):AddItem(prt,2)
  2203. coroutine.resume(coroutine.create(function(Part,Mesh)
  2204. for i=0,1,delay do
  2205. wait()
  2206. Part.CFrame=Part.CFrame
  2207. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2208. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2209. prt2.Anchored=true
  2210. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2211. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2212. game:GetService("Debris"):AddItem(prt2,2)
  2213. coroutine.resume(coroutine.create(function(Part,Mesh)
  2214. for i=0,1,0.1 do
  2215. wait()
  2216. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2217. end
  2218. Part.Parent=nil
  2219. end),prt2,msh2)
  2220. end
  2221. for i=0,1,delay*2 do
  2222. wait()
  2223. Part.CFrame=Part.CFrame
  2224. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2225. end
  2226. Part.Parent=nil
  2227. end),prt,msh)
  2228. end
  2229.  
  2230. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2231. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2232. prt.Anchored=true
  2233. prt.CFrame=cframe
  2234. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2235. game:GetService("Debris"):AddItem(prt,2)
  2236. coroutine.resume(coroutine.create(function(Part,Mesh)
  2237. for i=0,1,delay do
  2238. wait()
  2239. Part.CFrame=Part.CFrame
  2240. Part.Transparency=i
  2241. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2242. end
  2243. Part.Parent=nil
  2244. end),prt,msh)
  2245. end
  2246.  
  2247. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2248. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2249. prt.Anchored=true
  2250. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2251. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2252. game:GetService("Debris"):AddItem(prt,2)
  2253. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2254. CF=Part.CFrame
  2255. Numbb=0
  2256. randnumb=math.random()/10
  2257. rand1=math.random()/10
  2258. for i=0,1,rand1 do
  2259. wait()
  2260. CF=CF*cf(0,math.random()/2,0)
  2261. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2262. Part.CFrame=CF*euler(Numbb,0,0)
  2263. Part.Transparency=i
  2264. Numbb=Numbb+randnumb
  2265. end
  2266. Part.Parent=nil
  2267. end),prt,CF,Numbb,randnumb)
  2268. end
  2269.  
  2270. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2271. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt.Anchored=true
  2273. prt.CFrame=cframe
  2274. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2275. game:GetService("Debris"):AddItem(prt,5)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,delay do
  2278. wait()
  2279. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2280. Part.Transparency=i
  2281. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2282. end
  2283. Part.Parent=nil
  2284. end),prt,msh)
  2285. end
  2286.  
  2287. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2288. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2289. prt.Anchored=true
  2290. prt.CFrame=cframe
  2291. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2292. game:GetService("Debris"):AddItem(prt,2)
  2293. coroutine.resume(coroutine.create(function(Part,Mesh)
  2294. for i=0,1,delay do
  2295. wait()
  2296. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2297. Part.Transparency=i
  2298. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2299. end
  2300. Part.Parent=nil
  2301. end),prt,msh)
  2302. end
  2303.  
  2304. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2305. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2306. prt.Anchored=true
  2307. prt.CFrame=cframe*cf(x,y,z)
  2308. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2309. game:GetService("Debris"):AddItem(prt,5)
  2310. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2311. local num=math.random()
  2312. local num2=math.random(-3,2)+math.random()
  2313. local numm=0
  2314. for i=0,1,delay*2 do
  2315. swait()
  2316. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2317. Part.Transparency=i
  2318. numm=numm+0.01
  2319. end
  2320. Part.Parent=nil
  2321. Mesh.Parent=nil
  2322. end),prt,msh,x,y,z)
  2323. end
  2324.  
  2325. function dmgstart(dmg,what)
  2326. hitcon = what.Touched:connect(function(hit)
  2327. local hum = hit.Parent:FindFirstChild("Humanoid")
  2328. if hum and not hum:IsDescendantOf(Character) then
  2329. hum:TakeDamage(dmg)
  2330. end
  2331. end)
  2332. end
  2333.  
  2334. function dmgstop()
  2335. hitcon:disconnect()
  2336. end
  2337.  
  2338. function Cloak()
  2339. Face.Parent=nil
  2340. cloaked=true
  2341. for _,v in pairs(Torso.Parent:children()) do
  2342. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2343. coroutine.resume(coroutine.create(function()
  2344. for i=0,1,0.2 do
  2345. wait()
  2346. v.Transparency=i
  2347. end
  2348. v.Transparency=1
  2349. end))
  2350. end
  2351. if v.className=="Hat" then
  2352. hatp=v.Handle
  2353. coroutine.resume(coroutine.create(function(derp)
  2354. for i=0,1,0.2 do
  2355. wait()
  2356. derp.Transparency=i
  2357. end
  2358. derp.Transparency=1
  2359. end),hatp)
  2360. end
  2361. end
  2362. for _,v in pairs(m:children()) do
  2363. if v.className=="Part" then
  2364. coroutine.resume(coroutine.create(function()
  2365. for i=0,1,0.2 do
  2366. wait()
  2367. v.Transparency=i
  2368. end
  2369. v.Transparency=1
  2370. end))
  2371. end
  2372. end
  2373. end
  2374.  
  2375. function UnCloak()
  2376. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2377. Face.Parent=Head
  2378. cloaked=false
  2379. for _,v in pairs(Torso.Parent:children()) do
  2380. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2381. coroutine.resume(coroutine.create(function()
  2382. for i=0,1,0.1 do
  2383. wait()
  2384. v.Transparency=v.Transparency-0.1
  2385. end
  2386. v.Transparency=0
  2387. end))
  2388. end
  2389. if v.className=="Hat" then
  2390. hatp=v.Handle
  2391. coroutine.resume(coroutine.create(function(derp)
  2392. for i=0,1,0.1 do
  2393. wait()
  2394. derp.Transparency=derp.Transparency-0.1
  2395. end
  2396. derp.Transparency=0
  2397. end),hatp)
  2398. end
  2399. end
  2400. for _,v in pairs(m:children()) do
  2401. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2402. coroutine.resume(coroutine.create(function()
  2403. for i=0,1,0.1 do
  2404. wait()
  2405. v.Transparency=v.Transparency-0.1
  2406. end
  2407. v.Transparency=0
  2408. end))
  2409. v.Transparency=0
  2410. end
  2411. end
  2412. end
  2413.  
  2414. local origcolor = BrickColor.new("Pastel light blue")
  2415. ---- This section of explosions.
  2416.  
  2417. ----
  2418.  
  2419.  
  2420. function ring(type,pos,scale,value)
  2421. local type = type
  2422. local rng = Instance.new("Part", char)
  2423. rng.Anchored = true
  2424. rng.BrickColor = origcolor
  2425. rng.CanCollide = false
  2426. rng.FormFactor = 3
  2427. rng.Name = "Ring"
  2428. rng.Size = Vector3.new(1, 1, 1)
  2429. rng.Transparency = 0
  2430. rng.TopSurface = 0
  2431. rng.BottomSurface = 0
  2432. rng.CFrame = pos
  2433. local rngm = Instance.new("SpecialMesh", rng)
  2434. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2435. rngm.Scale = scale
  2436. local scaler2 = 1
  2437. if type == "Add" then
  2438. scaler2 = 1*value
  2439. elseif type == "Divide" then
  2440. scaler2 = 1/value
  2441. end
  2442. coroutine.resume(coroutine.create(function()
  2443. for i = 0,10,0.1 do
  2444. swait()
  2445. if type == "Add" then
  2446. scaler2 = scaler2 - 0.01*value
  2447. elseif type == "Divide" then
  2448. scaler2 = scaler2 - 0.01/value
  2449. end
  2450. rng.Transparency = rng.Transparency + 0.01
  2451. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2452. end
  2453. rng:Destroy()
  2454. end))
  2455. end
  2456.  
  2457.  
  2458. function wave(type,pos,scale,value)
  2459. local type = type
  2460. local rng = Instance.new("Part", char)
  2461. rng.Anchored = true
  2462. rng.BrickColor = origcolor
  2463. rng.CanCollide = false
  2464. rng.FormFactor = 3
  2465. rng.Name = "Ring"
  2466. rng.Size = Vector3.new(1, 1, 1)
  2467. rng.Transparency = 0
  2468. rng.TopSurface = 0
  2469. rng.BottomSurface = 0
  2470. rng.CFrame = pos
  2471. local rngm = Instance.new("SpecialMesh", rng)
  2472. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2473. rngm.Scale = scale
  2474. local scaler2 = 1
  2475. if type == "Add" then
  2476. scaler2 = 1*value
  2477. elseif type == "Divide" then
  2478. scaler2 = 1/value
  2479. end
  2480. coroutine.resume(coroutine.create(function()
  2481. for i = 0,10,0.1 do
  2482. swait()
  2483. if type == "Add" then
  2484. scaler2 = scaler2 - 0.01*value
  2485. elseif type == "Divide" then
  2486. scaler2 = scaler2 - 0.01/value
  2487. end
  2488. rng.Transparency = rng.Transparency + 0.01
  2489. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2490. end
  2491. rng:Destroy()
  2492. end))
  2493. end
  2494.  
  2495. function wind(type,pos,scale,value,speed)
  2496. local type = type
  2497. local rng = Instance.new("Part", char)
  2498. rng.Anchored = true
  2499. rng.BrickColor = origcolor
  2500. rng.CanCollide = false
  2501. rng.FormFactor = 3
  2502. rng.Name = "Ring"
  2503. rng.Size = Vector3.new(1, 1, 1)
  2504. rng.Transparency = 0
  2505. rng.TopSurface = 0
  2506. rng.BottomSurface = 0
  2507. rng.CFrame = pos
  2508. local rngm = Instance.new("SpecialMesh", rng)
  2509. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2510. rngm.Scale = scale
  2511. local scaler2 = 1
  2512. if type == "Add" then
  2513. scaler2 = 1*value
  2514. elseif type == "Divide" then
  2515. scaler2 = 1/value
  2516. end
  2517. coroutine.resume(coroutine.create(function()
  2518. for i = 0,10,0.1 do
  2519. swait()
  2520. if type == "Add" then
  2521. scaler2 = scaler2 - 0.01*value
  2522. elseif type == "Divide" then
  2523. scaler2 = scaler2 - 0.01/value
  2524. end
  2525. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2526. rng.Transparency = rng.Transparency + 0.01
  2527. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2528. end
  2529. rng:Destroy()
  2530. end))
  2531. end
  2532.  
  2533. function groundwind(type,pos,scale,value,speed)
  2534. local type = type
  2535. local rng = Instance.new("Part", char)
  2536. rng.Anchored = true
  2537. rng.BrickColor = origcolor
  2538. rng.CanCollide = false
  2539. rng.FormFactor = 3
  2540. rng.Name = "Ring"
  2541. rng.Size = Vector3.new(1, 1, 1)
  2542. rng.Transparency = 0
  2543. rng.TopSurface = 0
  2544. rng.BottomSurface = 0
  2545. rng.CFrame = pos
  2546. local rngm = Instance.new("SpecialMesh", rng)
  2547. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2548. rngm.Scale = scale
  2549. local scaler2 = 1
  2550. if type == "Add" then
  2551. scaler2 = 1*value
  2552. elseif type == "Divide" then
  2553. scaler2 = 1/value
  2554. end
  2555. coroutine.resume(coroutine.create(function()
  2556. for i = 0,10,0.1 do
  2557. swait()
  2558. if type == "Add" then
  2559. scaler2 = scaler2 - 0.01*value
  2560. elseif type == "Divide" then
  2561. scaler2 = scaler2 - 0.01/value
  2562. end
  2563. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2564. rng.Transparency = rng.Transparency + 0.01
  2565. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2566. end
  2567. rng:Destroy()
  2568. end))
  2569. end
  2570.  
  2571. function CameraManager()
  2572. if TwoD and not CamInterrupt then
  2573. if Humanoid.Health > 0 then
  2574. Camera.CameraSubject = Humanoid
  2575. Camera.CameraType = "Scriptable"
  2576. Humanoid.AutoRotate = false
  2577. if Booleans.GyroUse then
  2578. Directer.MaxTorque = Vec3(0, huge, 0)
  2579. else
  2580. Directer.MaxTorque = Vec3(0, 0, 0)
  2581. end
  2582. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2583. if Booleans.CamFollow then
  2584. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2585. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2586. else
  2587. CPart.Position = RootPart.Position
  2588. end
  2589. else
  2590. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2591. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2592. end
  2593. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2594. else
  2595. Camera.CameraSubject = Humanoid
  2596. Camera.CameraType = "Custom"
  2597. Controller.Disabled = false
  2598. end
  2599. end
  2600. end
  2601.  
  2602. function ring(type,pos,scale,value)
  2603. local type = type
  2604. local rng = Instance.new("Part", char)
  2605. rng.Anchored = true
  2606. rng.BrickColor = origcolor
  2607. rng.CanCollide = false
  2608. rng.FormFactor = 3
  2609. rng.Name = "Ring"
  2610. rng.Size = Vector3.new(1, 1, 1)
  2611. rng.Transparency = 0
  2612. rng.TopSurface = 0
  2613. rng.BottomSurface = 0
  2614. rng.CFrame = pos
  2615. local rngm = Instance.new("SpecialMesh", rng)
  2616. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2617. rngm.Scale = scale
  2618. local scaler2 = 1
  2619. if type == "Add" then
  2620. scaler2 = 1*value
  2621. elseif type == "Divide" then
  2622. scaler2 = 1/value
  2623. end
  2624. coroutine.resume(coroutine.create(function()
  2625. for i = 0,10,0.1 do
  2626. swait()
  2627. if type == "Add" then
  2628. scaler2 = scaler2 - 0.01*value
  2629. elseif type == "Divide" then
  2630. scaler2 = scaler2 - 0.01/value
  2631. end
  2632. rng.Transparency = rng.Transparency + 0.01
  2633. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2634. end
  2635. rng:Destroy()
  2636. end))
  2637. end
  2638.  
  2639.  
  2640. function wave(type,pos,scale,value)
  2641. local type = type
  2642. local rng = Instance.new("Part", char)
  2643. rng.Anchored = true
  2644. rng.BrickColor = origcolor
  2645. rng.CanCollide = false
  2646. rng.FormFactor = 3
  2647. rng.Name = "Ring"
  2648. rng.Size = Vector3.new(1, 1, 1)
  2649. rng.Transparency = 0
  2650. rng.TopSurface = 0
  2651. rng.BottomSurface = 0
  2652. rng.CFrame = pos
  2653. local rngm = Instance.new("SpecialMesh", rng)
  2654. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2655. rngm.Scale = scale
  2656. local scaler2 = 1
  2657. if type == "Add" then
  2658. scaler2 = 1*value
  2659. elseif type == "Divide" then
  2660. scaler2 = 1/value
  2661. end
  2662. coroutine.resume(coroutine.create(function()
  2663. for i = 0,10,0.1 do
  2664. swait()
  2665. if type == "Add" then
  2666. scaler2 = scaler2 - 0.01*value
  2667. elseif type == "Divide" then
  2668. scaler2 = scaler2 - 0.01/value
  2669. end
  2670. rng.Transparency = rng.Transparency + 0.01
  2671. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2672. end
  2673. rng:Destroy()
  2674. end))
  2675. end
  2676.  
  2677. function sphere(bonuspeed,type,pos,scale,value,color)
  2678. local type = type
  2679. local rng = Instance.new("Part", char)
  2680. rng.Anchored = true
  2681. if ModeOfGlitch ~= 9 then
  2682. rng.BrickColor = color
  2683. elseif ModeOfGlitch == 9 then
  2684. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2685. end
  2686. rng.CanCollide = false
  2687. rng.FormFactor = 3
  2688. rng.Name = "Ring"
  2689. rng.Material = "Neon"
  2690. rng.Size = Vector3.new(1, 1, 1)
  2691. rng.Transparency = 0
  2692. rng.TopSurface = 0
  2693. rng.BottomSurface = 0
  2694. rng.CFrame = pos
  2695. local rngm = Instance.new("SpecialMesh", rng)
  2696. rngm.MeshType = "Sphere"
  2697. rngm.Scale = scale
  2698. if rainbowmode == true then
  2699. rng.Color = Color3.new(r/255,g/255,b/255)
  2700. end
  2701. if ModeOfGlitch == 9 then
  2702. coroutine.resume(coroutine.create(function()
  2703. while true do
  2704. swait()
  2705. if rng.Parent ~= nil then
  2706. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2707. else
  2708. break
  2709. end
  2710. end
  2711. end))
  2712. end
  2713. local scaler2 = 1
  2714. if type == "Add" then
  2715. scaler2 = 1*value
  2716. elseif type == "Divide" then
  2717. scaler2 = 1/value
  2718. end
  2719. coroutine.resume(coroutine.create(function()
  2720. for i = 0,10/bonuspeed,0.1 do
  2721. swait()
  2722. if rainbowmode == true then
  2723. rng.Color = Color3.new(r/255,g/255,b/255)
  2724. end
  2725. if type == "Add" then
  2726. scaler2 = scaler2 - 0.01*value/bonuspeed
  2727. elseif type == "Divide" then
  2728. scaler2 = scaler2 - 0.01/value*bonuspeed
  2729. end
  2730. if chaosmode == true then
  2731. rng.BrickColor = BrickColor.random()
  2732. end
  2733. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2734. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2735. end
  2736. rng:Destroy()
  2737. end))
  2738. end
  2739.  
  2740. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2741. local type = type
  2742. local rng = Instance.new("Part", char)
  2743. rng.Anchored = true
  2744. if ModeOfGlitch ~= 9 then
  2745. rng.BrickColor = color
  2746. elseif ModeOfGlitch == 9 then
  2747. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2748. end
  2749. rng.CanCollide = false
  2750. rng.FormFactor = 3
  2751. rng.Name = "Ring"
  2752. rng.Material = "Neon"
  2753. rng.Size = Vector3.new(1, 1, 1)
  2754. rng.Transparency = 0
  2755. rng.TopSurface = 0
  2756. rng.BottomSurface = 0
  2757. rng.CFrame = pos
  2758. local rngm = Instance.new("SpecialMesh", rng)
  2759. rngm.MeshType = "Sphere"
  2760. rngm.Scale = scale
  2761. local scaler2 = 1
  2762. local scaler2b = 1
  2763. local scaler2c = 1
  2764. if type == "Add" then
  2765. scaler2 = 1*value
  2766. scaler2b = 1*value2
  2767. scaler2c = 1*value3
  2768. elseif type == "Divide" then
  2769. scaler2 = 1/value
  2770. scaler2b = 1/value2
  2771. scaler2c = 1/value3
  2772. end
  2773. if ModeOfGlitch == 9 then
  2774. coroutine.resume(coroutine.create(function()
  2775. while true do
  2776. swait()
  2777. if rng.Parent ~= nil then
  2778. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2779. else
  2780. break
  2781. end
  2782. end
  2783. end))
  2784. end
  2785. coroutine.resume(coroutine.create(function()
  2786. for i = 0,10/bonuspeed,0.1 do
  2787. swait()
  2788. if type == "Add" then
  2789. scaler2 = scaler2 - 0.01*value/bonuspeed
  2790. scaler2b = scaler2b - 0.01*value/bonuspeed
  2791. scaler2c = scaler2c - 0.01*value/bonuspeed
  2792. elseif type == "Divide" then
  2793. scaler2 = scaler2 - 0.01/value*bonuspeed
  2794. scaler2b = scaler2b - 0.01/value*bonuspeed
  2795. scaler2c = scaler2c - 0.01/value*bonuspeed
  2796. end
  2797. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2798. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2799. end
  2800. rng:Destroy()
  2801. end))
  2802. end
  2803.  
  2804. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2805. local type = type
  2806. local rotenable = rotatingop
  2807. local rng = Instance.new("Part", char)
  2808. rng.Anchored = true
  2809. rng.BrickColor = color
  2810. rng.CanCollide = false
  2811. rng.FormFactor = 3
  2812. rng.Name = "Ring"
  2813. rng.Material = "Neon"
  2814. rng.Size = Vector3.new(1, 1, 1)
  2815. rng.Transparency = 0
  2816. if typeoftrans == "In" then
  2817. rng.Transparency = 1
  2818. end
  2819. rng.TopSurface = 0
  2820. rng.BottomSurface = 0
  2821. rng.CFrame = pos
  2822. local rngm = Instance.new("SpecialMesh", rng)
  2823. rngm.MeshType = "FileMesh"
  2824. if typeofshape == "Normal" then
  2825. rngm.MeshId = "rbxassetid://662586858"
  2826. elseif typeofshape == "Round" then
  2827. rngm.MeshId = "rbxassetid://662585058"
  2828. end
  2829. rngm.Scale = scale
  2830. local scaler2 = 1/10
  2831. if type == "Add" then
  2832. scaler2 = 1*value/10
  2833. elseif type == "Divide" then
  2834. scaler2 = 1/value/10
  2835. end
  2836. local randomrot = math.random(1,2)
  2837. coroutine.resume(coroutine.create(function()
  2838. for i = 0,10/bonuspeed,0.1 do
  2839. swait()
  2840. if type == "Add" then
  2841. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2842. elseif type == "Divide" then
  2843. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2844. end
  2845. if rotenable == true then
  2846. if randomrot == 1 then
  2847. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2848. elseif randomrot == 2 then
  2849. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2850. end
  2851. end
  2852. if typeoftrans == "Out" then
  2853. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2854. elseif typeoftrans == "In" then
  2855. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2856. end
  2857. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2858. end
  2859. rng:Destroy()
  2860. end))
  2861. end
  2862.  
  2863. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2864. local type = type
  2865. local rng = Instance.new("Part", char)
  2866. rng.Anchored = true
  2867. rng.BrickColor = color
  2868. rng.CanCollide = false
  2869. rng.FormFactor = 3
  2870. rng.Name = "Ring"
  2871. rng.Material = "Neon"
  2872. rng.Size = Vector3.new(1, 1, 1)
  2873. rng.Transparency = 0
  2874. rng.TopSurface = 0
  2875. rng.BottomSurface = 0
  2876. rng.CFrame = pos
  2877. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2878. local rngm = Instance.new("SpecialMesh", rng)
  2879. rngm.MeshType = "Brick"
  2880. rngm.Scale = vt(x1,y1,z1)
  2881. if rainbowmode == true then
  2882. rng.Color = Color3.new(r/255,g/255,b/255)
  2883. end
  2884. local scaler2 = 1
  2885. local speeder = FastSpeed/10
  2886. if type == "Add" then
  2887. scaler2 = 1*value
  2888. elseif type == "Divide" then
  2889. scaler2 = 1/value
  2890. end
  2891. coroutine.resume(coroutine.create(function()
  2892. for i = 0,10/bonuspeed,0.1 do
  2893. swait()
  2894. if rainbowmode == true then
  2895. rng.Color = Color3.new(r/255,g/255,b/255)
  2896. end
  2897. if type == "Add" then
  2898. scaler2 = scaler2 - 0.01*value/bonuspeed
  2899. elseif type == "Divide" then
  2900. scaler2 = scaler2 - 0.01/value*bonuspeed
  2901. end
  2902. if chaosmode == true then
  2903. rng.BrickColor = BrickColor.random()
  2904. end
  2905. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2906. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2907. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2908. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2909. end
  2910. rng:Destroy()
  2911. end))
  2912. end
  2913.  
  2914. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2915. local type = type
  2916. local rng = Instance.new("Part", char)
  2917. rng.Anchored = true
  2918. rng.BrickColor = color
  2919. rng.CanCollide = false
  2920. rng.FormFactor = 3
  2921. rng.Name = "Ring"
  2922. rng.Material = "Neon"
  2923. rng.Size = Vector3.new(1, 1, 1)
  2924. rng.Transparency = 0
  2925. rng.TopSurface = 0
  2926. rng.BottomSurface = 0
  2927. rng.CFrame = pos
  2928. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2929. local rngm = Instance.new("SpecialMesh", rng)
  2930. rngm.MeshType = "Brick"
  2931. rngm.Scale = vt(x1,y1,z1)
  2932. if rainbowmode == true then
  2933. rng.Color = Color3.new(r/255,g/255,b/255)
  2934. end
  2935. local scaler2 = 1
  2936. local speeder = FastSpeed/10
  2937. if type == "Add" then
  2938. scaler2 = 1*value
  2939. elseif type == "Divide" then
  2940. scaler2 = 1/value
  2941. end
  2942. coroutine.resume(coroutine.create(function()
  2943. for i = 0,10/bonuspeed,0.1 do
  2944. swait()
  2945. if rainbowmode == true then
  2946. rng.Color = Color3.new(r/255,g/255,b/255)
  2947. end
  2948. if type == "Add" then
  2949. scaler2 = scaler2 - 0.01*value/bonuspeed
  2950. elseif type == "Divide" then
  2951. scaler2 = scaler2 - 0.01/value*bonuspeed
  2952. end
  2953. if chaosmode == true then
  2954. rng.BrickColor = BrickColor.random()
  2955. end
  2956. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2957. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2958. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2959. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2960. end
  2961. rng:Destroy()
  2962. end))
  2963. end
  2964.  
  2965. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2966. local type = type
  2967. local rng = Instance.new("Part", char)
  2968. rng.Anchored = true
  2969. rng.BrickColor = color
  2970. rng.CanCollide = false
  2971. rng.FormFactor = 3
  2972. rng.Name = "Ring"
  2973. rng.Material = "Neon"
  2974. rng.Size = Vector3.new(1, 1, 1)
  2975. rng.Transparency = 0
  2976. rng.TopSurface = 0
  2977. rng.BottomSurface = 0
  2978. rng.CFrame = pos
  2979. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2980. local rngm = Instance.new("SpecialMesh", rng)
  2981. rngm.MeshType = "Brick"
  2982. rngm.Scale = vt(x1,y1,z1)
  2983. if rainbowmode == true then
  2984. rng.Color = Color3.new(r/255,g/255,b/255)
  2985. end
  2986. local scaler2 = 0
  2987. local speeder = FastSpeed/10
  2988. if type == "Add" then
  2989. scaler2 = 1*value
  2990. elseif type == "Divide" then
  2991. scaler2 = 1/value
  2992. end
  2993. coroutine.resume(coroutine.create(function()
  2994. for i = 0,10/bonuspeed,0.1 do
  2995. swait()
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. if type == "Add" then
  3000. scaler2 = scaler2 - 0.01*value/bonuspeed
  3001. elseif type == "Divide" then
  3002. scaler2 = scaler2 - 0.01/value*bonuspeed
  3003. end
  3004. if chaosmode == true then
  3005. rng.BrickColor = BrickColor.random()
  3006. end
  3007. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3008. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3009. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3010. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3011. end
  3012. rng:Destroy()
  3013. end))
  3014. end
  3015.  
  3016. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3017. local type = type
  3018. local rng = Instance.new("Part", char)
  3019. rng.Anchored = true
  3020. rng.BrickColor = color
  3021. rng.Color = color3
  3022. rng.CanCollide = false
  3023. rng.FormFactor = 3
  3024. rng.Name = "Ring"
  3025. rng.Material = "Neon"
  3026. rng.Size = Vector3.new(1, 1, 1)
  3027. rng.Transparency = 0
  3028. rng.TopSurface = 0
  3029. rng.BottomSurface = 0
  3030. rng.CFrame = pos
  3031. local rngm = Instance.new("SpecialMesh", rng)
  3032. rngm.MeshType = "Brick"
  3033. rngm.Scale = scale
  3034. local scaler2 = 1
  3035. local scaler2b = 1
  3036. local scaler2c = 1
  3037. if type == "Add" then
  3038. scaler2 = 1*value
  3039. scaler2b = 1*value2
  3040. scaler2c = 1*value3
  3041. elseif type == "Divide" then
  3042. scaler2 = 1/value
  3043. scaler2b = 1/value2
  3044. scaler2c = 1/value3
  3045. end
  3046. coroutine.resume(coroutine.create(function()
  3047. for i = 0,10/bonuspeed,0.1 do
  3048. swait()
  3049. if type == "Add" then
  3050. scaler2 = scaler2 - 0.01*value/bonuspeed
  3051. scaler2b = scaler2b - 0.01*value/bonuspeed
  3052. scaler2c = scaler2c - 0.01*value/bonuspeed
  3053. elseif type == "Divide" then
  3054. scaler2 = scaler2 - 0.01/value*bonuspeed
  3055. scaler2b = scaler2b - 0.01/value*bonuspeed
  3056. scaler2c = scaler2c - 0.01/value*bonuspeed
  3057. end
  3058. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3059. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3060. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3061. end
  3062. rng:Destroy()
  3063. end))
  3064. end
  3065.  
  3066. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3067. local type = type
  3068. local rng = Instance.new("Part", char)
  3069. rng.Anchored = true
  3070. if ModeOfGlitch ~= 9 then
  3071. rng.BrickColor = color
  3072. elseif ModeOfGlitch == 9 then
  3073. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3074. end
  3075. rng.CanCollide = false
  3076. rng.FormFactor = 3
  3077. rng.Name = "Ring"
  3078. rng.Material = "Neon"
  3079. rng.Size = Vector3.new(1, 1, 1)
  3080. rng.Transparency = 0
  3081. rng.TopSurface = 0
  3082. rng.BottomSurface = 0
  3083. rng.CFrame = pos
  3084. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3085. local rngm = Instance.new("SpecialMesh", rng)
  3086. rngm.MeshType = "Sphere"
  3087. rngm.Scale = vt(x1,y1,z1)
  3088. if rainbowmode == true then
  3089. rng.Color = Color3.new(r/255,g/255,b/255)
  3090. end
  3091. if ModeOfGlitch == 9 then
  3092. coroutine.resume(coroutine.create(function()
  3093. while true do
  3094. swait()
  3095. if rng.Parent ~= nil then
  3096. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3097. else
  3098. break
  3099. end
  3100. end
  3101. end))
  3102. end
  3103. local scaler2 = 1
  3104. local speeder = FastSpeed
  3105. if type == "Add" then
  3106. scaler2 = 1*value
  3107. elseif type == "Divide" then
  3108. scaler2 = 1/value
  3109. end
  3110. coroutine.resume(coroutine.create(function()
  3111. for i = 0,10/bonuspeed,0.1 do
  3112. swait()
  3113. if rainbowmode == true then
  3114. rng.Color = Color3.new(r/255,g/255,b/255)
  3115. end
  3116. if type == "Add" then
  3117. scaler2 = scaler2 - 0.01*value/bonuspeed
  3118. elseif type == "Divide" then
  3119. scaler2 = scaler2 - 0.01/value*bonuspeed
  3120. end
  3121. if chaosmode == true then
  3122. rng.BrickColor = BrickColor.random()
  3123. end
  3124. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3125. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3126. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3127. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3128. end
  3129. rng:Destroy()
  3130. end))
  3131. end
  3132.  
  3133.  
  3134. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3135. local type = type
  3136. local rng = Instance.new("Part", char)
  3137. rng.Anchored = true
  3138. if ModeOfGlitch ~= 9 then
  3139. rng.BrickColor = color
  3140. elseif ModeOfGlitch == 9 then
  3141. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3142. end
  3143. rng.CanCollide = false
  3144. rng.FormFactor = 3
  3145. rng.Name = "Ring"
  3146. rng.Material = "Neon"
  3147. rng.Size = Vector3.new(1, 1, 1)
  3148. rng.Transparency = 1
  3149. rng.TopSurface = 0
  3150. rng.BottomSurface = 0
  3151. rng.CFrame = pos
  3152. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3153. local rngm = Instance.new("SpecialMesh", rng)
  3154. rngm.MeshType = "Sphere"
  3155. rngm.Scale = vt(x1,y1,z1)
  3156. if rainbowmode == true then
  3157. rng.Color = Color3.new(r/255,g/255,b/255)
  3158. end
  3159. if ModeOfGlitch == 9 then
  3160. coroutine.resume(coroutine.create(function()
  3161. while true do
  3162. swait()
  3163. if rng.Parent ~= nil then
  3164. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3165. else
  3166. break
  3167. end
  3168. end
  3169. end))
  3170. end
  3171. local scaler2 = 1
  3172. local speeder = FastSpeed
  3173. if type == "Add" then
  3174. scaler2 = 1*value
  3175. elseif type == "Divide" then
  3176. scaler2 = 1/value
  3177. end
  3178. coroutine.resume(coroutine.create(function()
  3179. for i = 0,10/bonuspeed,0.1 do
  3180. swait()
  3181. if rainbowmode == true then
  3182. rng.Color = Color3.new(r/255,g/255,b/255)
  3183. end
  3184. if type == "Add" then
  3185. scaler2 = scaler2 - 0.01*value/bonuspeed
  3186. elseif type == "Divide" then
  3187. scaler2 = scaler2 - 0.01/value*bonuspeed
  3188. end
  3189. if chaosmode == true then
  3190. rng.BrickColor = BrickColor.random()
  3191. end
  3192. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3193. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3194. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3195. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3196. end
  3197. rng:Destroy()
  3198. end))
  3199. end
  3200.  
  3201. function dmg(dude)
  3202. if dude.Name ~= Character then
  3203. local keptcolor = MAINRUINCOLOR
  3204. local bgf = Instance.new("BodyGyro",dude.Head)
  3205. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3206. --[[local val = Instance.new("BoolValue",dude)
  3207. val.Name = "IsHit"]]--
  3208. local ds = coroutine.wrap(function()
  3209. dude:WaitForChild("Head"):BreakJoints()
  3210. for i, v in pairs(dude:GetChildren()) do
  3211. if v:IsA("Part") or v:IsA("MeshPart") then
  3212. v.Name = "DEMINISHED"
  3213. end
  3214. end
  3215. wait(0.5)
  3216. targetted = nil
  3217. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3218. coroutine.resume(coroutine.create(function()
  3219. for i, v in pairs(dude:GetChildren()) do
  3220. if v:IsA("Accessory") then
  3221. v:Destroy()
  3222. end
  3223. if v:IsA("Humanoid") then
  3224. v:Destroy()
  3225. end
  3226. if v:IsA("CharacterMesh") then
  3227. v:Destroy()
  3228. end
  3229. if v:IsA("Model") then
  3230. v:Destroy()
  3231. end
  3232. if v:IsA("Part") or v:IsA("MeshPart") then
  3233. for x, o in pairs(v:GetChildren()) do
  3234. if o:IsA("Decal") then
  3235. o:Destroy()
  3236. end
  3237. end
  3238. coroutine.resume(coroutine.create(function()
  3239. v.Material = "Neon"
  3240. v.CanCollide = false
  3241. v.Anchored = false
  3242. local bld = Instance.new("ParticleEmitter",v)
  3243. bld.LightEmission = 0.75
  3244. bld.Texture = "rbxassetid://363275192" ---284205403
  3245. bld.Color = ColorSequence.new(keptcolor.Color)
  3246. bld.Rate = 500
  3247. bld.Lifetime = NumberRange.new(1)
  3248. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3249. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3250. bld.Speed = NumberRange.new(2,5)
  3251. bld.VelocitySpread = 50000
  3252. bld.Rotation = NumberRange.new(-500,500)
  3253. bld.RotSpeed = NumberRange.new(-500,500)
  3254. local sbs = Instance.new("BodyPosition", v)
  3255. sbs.P = 3000
  3256. sbs.D = 1000
  3257. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3258. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3259. v.Color = keptcolor.Color
  3260. coroutine.resume(coroutine.create(function()
  3261. for i = 0, 49 do
  3262. swait(1)
  3263. v:BreakJoints()
  3264. v.Transparency = v.Transparency + 0.02
  3265. end
  3266. v:BreakJoints()
  3267. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3268. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3269. bld.Speed = NumberRange.new(10,25)
  3270. bld.Drag = 5
  3271. bld.Acceleration = vt(0,2,0)
  3272. wait(0.5)
  3273. bld.Enabled = false
  3274. wait(8)
  3275. v:Destroy()
  3276. dude:Destroy()
  3277. end))
  3278. end))
  3279. end
  3280. end
  3281. end))
  3282. end)
  3283. ds()
  3284. end
  3285. end
  3286.  
  3287.  
  3288. function FindNearestHead(Position, Distance, SinglePlayer)
  3289. if SinglePlayer then
  3290. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3291. end
  3292. local List = {}
  3293. for i, v in pairs(workspace:GetChildren()) do
  3294. if v:IsA("Model") then
  3295. if v:findFirstChild("Head") then
  3296. if v ~= Character then
  3297. if (v.Head.Position - Position).magnitude <= Distance then
  3298. table.insert(List, v)
  3299. end
  3300. end
  3301. end
  3302. end
  3303. end
  3304. return List
  3305. end
  3306.  
  3307. function FaceMouse()
  3308. Cam = workspace.CurrentCamera
  3309. return {
  3310. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3311. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3312. }
  3313. end
  3314.  
  3315. function FaceMouse2()
  3316. Cam = workspace.CurrentCamera
  3317. return {
  3318. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3319. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3320. }
  3321. end
  3322.  
  3323. local ModeOfGlitch = 1
  3324. -- Functions are ready.
  3325. local storehumanoidWS = 16
  3326.  
  3327. function CorruptBlink()
  3328. for i = 0, 14 do
  3329. 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)
  3330. end
  3331. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3332. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3333. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3334. CameraEnshaking(2,10)
  3335. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3336. if v:FindFirstChild('Head') then
  3337. dmg(v)
  3338. end
  3339. end
  3340. for i = 0, 14 do
  3341. 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)
  3342. end
  3343. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3344. end
  3345. function PureBomb()
  3346. attack = true
  3347. hum.WalkSpeed = 0
  3348. local orb = Instance.new("Part", char)
  3349. orb.Anchored = true
  3350. orb.BrickColor = BrickColor.new("Toothpaste")
  3351. orb.CanCollide = false
  3352. orb.FormFactor = 3
  3353. orb.Name = "Ring"
  3354. orb.Material = "Neon"
  3355. orb.Size = Vector3.new(1, 1, 1)
  3356. orb.Transparency = 0
  3357. orb.TopSurface = 0
  3358. orb.BottomSurface = 0
  3359. local orbm = Instance.new("SpecialMesh", orb)
  3360. orbm.MeshType = "Sphere"
  3361. orbm.Name = "SizeMesh"
  3362. orbm.Scale = vt(0,0,0)
  3363. local scaled = 0.1
  3364. local posid = 0
  3365. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3366. for i = 0, 5, 0.1 do
  3367. swait()
  3368. scaled = scaled - 0.001
  3369. posid = posid - scaled
  3370. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3371. local scaled = 0.1
  3372. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3373. 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)
  3374. 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)
  3375. 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)
  3376. 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)
  3377. 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)
  3378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3379. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3380. 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)
  3381. end
  3382. for i = 0, 2, 0.1 do
  3383. swait()
  3384. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3385. 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)
  3386. 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)
  3387. 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)
  3388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3389. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3390. 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)
  3391. end
  3392. coroutine.resume(coroutine.create(function()
  3393. orb.Anchored = false
  3394. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3395. local a = Instance.new("Part",workspace)
  3396. a.Name = "Direction"
  3397. a.Anchored = true
  3398. a.BrickColor = bc("Bright red")
  3399. a.Material = "Neon"
  3400. a.Transparency = 1
  3401. a.CanCollide = false
  3402. local ray = Ray.new(
  3403. orb.CFrame.p, -- origin
  3404. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3405. )
  3406. local ignore = orb
  3407. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3408. a.BottomSurface = 10
  3409. a.TopSurface = 10
  3410. local distance = (orb.CFrame.p - position).magnitude
  3411. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3412. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3413. orb.CFrame = a.CFrame
  3414. a:Destroy()
  3415. local bv = Instance.new("BodyVelocity")
  3416. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3417. bv.velocity = orb.CFrame.lookVector*125
  3418. bv.Parent = orb
  3419. local hitted = false
  3420. game:GetService("Debris"):AddItem(orb, 15)
  3421. wait()
  3422. local hit =orb.Touched:connect(function(hit)
  3423. if hitted == false then
  3424. hitted = true
  3425. CameraEnshaking(10,2.5)
  3426. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3427. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3428. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3429. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3430. for i = 0, 49 do
  3431. 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)
  3432. end
  3433. for i = 0, 9 do
  3434. 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)
  3435. 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)
  3436. end
  3437. orb.Anchored = true
  3438. orb.Transparency = 1
  3439. wait(8)
  3440. orb:Destroy()
  3441. end
  3442. end)
  3443. end))
  3444. for i = 0, 1, 0.1 do
  3445. swait()
  3446. 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)
  3447. 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)
  3448. 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)
  3449. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3450. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3451. 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)
  3452. end
  3453. hum.WalkSpeed = storehumanoidWS
  3454. attack = false
  3455. end
  3456.  
  3457. function BanishingOrb()
  3458. attack = true
  3459. hum.WalkSpeed = 0
  3460. local radm = math.random(1,3)
  3461. if radm == 1 then
  3462. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3463. elseif radm == 2 then
  3464. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3465. elseif radm == 3 then
  3466. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3467. end
  3468. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3469. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3470. local orb = Instance.new("Part", char)
  3471. orb.Anchored = true
  3472. orb.BrickColor = BrickColor.new("Lime green")
  3473. orb.CanCollide = false
  3474. orb.FormFactor = 3
  3475. orb.Name = "Ring"
  3476. orb.Material = "Neon"
  3477. orb.Size = Vector3.new(1, 1, 1)
  3478. orb.Transparency = 0
  3479. orb.TopSurface = 0
  3480. orb.BottomSurface = 0
  3481. local orbm = Instance.new("SpecialMesh", orb)
  3482. orbm.MeshType = "Sphere"
  3483. orbm.Name = "SizeMesh"
  3484. orbm.Scale = vt(0,0,0)
  3485. local scaled = 0.1
  3486. local posid = 0
  3487. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3488. for i = 0, 5, 0.1 do
  3489. swait()
  3490. scaled = scaled - 0.001
  3491. posid = posid - scaled
  3492. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3493. local scaled = 0.1
  3494. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3495. 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)
  3496. 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)
  3497. 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)
  3498. 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)
  3499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3501. 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)
  3502. end
  3503. for i = 0, 2, 0.1 do
  3504. swait()
  3505. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3506. 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)
  3507. 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)
  3508. 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)
  3509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3511. 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)
  3512. end
  3513. coroutine.resume(coroutine.create(function()
  3514. orb.Anchored = false
  3515. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3516. local a = Instance.new("Part",workspace)
  3517. a.Name = "Direction"
  3518. a.Anchored = true
  3519. a.BrickColor = bc("Lime green")
  3520. a.Material = "Neon"
  3521. a.Transparency = 1
  3522. a.CanCollide = false
  3523. local ray = Ray.new(
  3524. orb.CFrame.p, -- origin
  3525. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3526. )
  3527. local ignore = orb
  3528. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3529. a.BottomSurface = 10
  3530. a.TopSurface = 10
  3531. local distance = (orb.CFrame.p - position).magnitude
  3532. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3533. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3534. orb.CFrame = a.CFrame
  3535. a:Destroy()
  3536. local bv = Instance.new("BodyVelocity")
  3537. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3538. bv.velocity = orb.CFrame.lookVector*0
  3539. bv.Parent = orb
  3540. local hitted = false
  3541. local rate = 0
  3542. coroutine.resume(coroutine.create(function()
  3543. for i = 0, 24 do
  3544. wait(0.1)
  3545. rate = rate + 0.25
  3546. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3547. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3548. if v:FindFirstChild('Head') then
  3549. dmg(v)
  3550. end
  3551. end
  3552. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3553. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3554. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3555. end
  3556. orb.Anchored = true
  3557. orb.Transparency = 1
  3558. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3559. if v:FindFirstChild('Head') then
  3560. dmg(v)
  3561. end
  3562. end
  3563. local eff = Instance.new("ParticleEmitter",orb)
  3564. eff.Texture = "rbxassetid://296874871"
  3565. eff.LightEmission = 0.95
  3566. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3567. eff.Rate = 1000000000
  3568. eff.Lifetime = NumberRange.new(3)
  3569. 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)})
  3570. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3571. eff.Speed = NumberRange.new(30)
  3572. eff.Acceleration = vt(0,-15,0)
  3573. eff.Rotation = NumberRange.new(-500,500)
  3574. eff.VelocitySpread = 100000
  3575. eff.RotSpeed = NumberRange.new(-500,500)
  3576. coroutine.resume(coroutine.create(function()
  3577. wait(0.6)
  3578. eff.Enabled = false
  3579. end))
  3580. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3581. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3582. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3583. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3584. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3585. game:GetService("Debris"):AddItem(orb, 15)
  3586. end))
  3587. end))
  3588. for i = 0, 1, 0.1 do
  3589. swait()
  3590. 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)
  3591. 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)
  3592. 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)
  3593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3594. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3595. 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)
  3596. end
  3597. hum.WalkSpeed = storehumanoidWS
  3598. attack = false
  3599. end
  3600.  
  3601.  
  3602. function ChaosGroundStrike()
  3603. attack = true
  3604. for i = 0, 2, 0.1 do
  3605. swait()
  3606. 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)
  3607. 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)
  3608. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3609. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3610. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3611. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3612. end
  3613. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3614. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3615. CameraEnshaking(4,12)
  3616. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3617. if v:FindFirstChild('Head') then
  3618. dmg(v)
  3619. end
  3620. end
  3621. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3622. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3623. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3624. for i = 0, 2, 0.1 do
  3625. swait()
  3626. 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)
  3627. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3628. 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)
  3629. 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)
  3630. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3632. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3633. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3634. end
  3635. attack = false
  3636. end
  3637.  
  3638.  
  3639.  
  3640. function Starfall()
  3641. attack = true
  3642. hum.WalkSpeed = 0
  3643. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3644. for i = 0, 5, 0.1 do
  3645. swait()
  3646. 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)
  3647. 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)
  3648. 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)
  3649. 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)
  3650. 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)
  3651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3652. 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)
  3653. 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)
  3654. end
  3655. local Overed = false
  3656. CameraEnshaking(2,20)
  3657. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3658. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3659. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3660. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3661. local orb = Instance.new("Part", char)
  3662. orb.Anchored = true
  3663. orb.BrickColor = BrickColor.new("Toothpaste")
  3664. orb.CanCollide = false
  3665. orb.FormFactor = 3
  3666. orb.Name = "Remenant"
  3667. orb.Material = "Neon"
  3668. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3669. orb.Size = Vector3.new(1, 1, 1)
  3670. orb.Transparency = 1
  3671. orb.TopSurface = 0
  3672. orb.BottomSurface = 0
  3673. hum.WalkSpeed = storehumanoidWS
  3674. coroutine.resume(coroutine.create(function()
  3675. for i = 0, 9 do
  3676. swait(10)
  3677. local lb = Instance.new("Part")
  3678. lb.Color = MAINRUINCOLOR.Color
  3679. lb.CanCollide = false
  3680. lb.Material = "Neon"
  3681. lb.Anchored = true
  3682. lb.TopSurface = 0
  3683. lb.BottomSurface = 0
  3684. lb.Transparency = 0
  3685. lb.Size = vt(1,1,1)
  3686. 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)))
  3687. lb.Anchored = false
  3688. lb.Parent = char
  3689. local thingery = Instance.new("SpecialMesh",lb)
  3690. thingery.MeshType = "Sphere"
  3691. thingery.Scale = vt(20,20,20)
  3692. game:GetService("Debris"):AddItem(lb, 10)
  3693. local bv = Instance.new("BodyVelocity")
  3694. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3695. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3696. bv.Parent = lb
  3697. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3698. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3699. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3700. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3701. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3702. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3703. local hitted = false
  3704. coroutine.resume(coroutine.create(function()
  3705. while true do
  3706. swait(1)
  3707. if lb.Parent ~= nil and hitted == false then
  3708. 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)
  3709. elseif lb.Parent == nil then
  3710. break
  3711. end
  3712. end
  3713. end))
  3714.  
  3715. game:GetService("Debris"):AddItem(a, 0.1)
  3716.  
  3717. coroutine.resume(coroutine.create(function()
  3718. swait(1)
  3719. lb.Touched:connect(function(hit)
  3720. if hitted == false then
  3721. hitted = true
  3722. lb.Transparency = 1
  3723. lb.Anchored = true
  3724. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3725. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3726. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3727. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3728. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3729. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3730. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3731. CameraEnshaking(1,5)
  3732. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3733. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3734. for i = 0, 9 do
  3735. 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)
  3736. end
  3737. for i = 0, 49 do
  3738. swait()
  3739. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3740. 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)
  3741. end
  3742. end
  3743. end)
  3744. end))
  3745. end
  3746. Overed = true
  3747. orb:Destroy()
  3748. end))
  3749.  
  3750. attack = false
  3751. end
  3752.  
  3753. function StarfallEX()
  3754. attack = true
  3755. hum.WalkSpeed = 0
  3756. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3757. for i = 0, 10, 0.1 do
  3758. swait()
  3759. 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)
  3760. 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)
  3761. 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)
  3762. 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)
  3763. 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)
  3764. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3765. 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)
  3766. 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)
  3767. end
  3768. local Overed = false
  3769. CameraEnshaking(2,20)
  3770. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3771. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3772. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3773. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3774. local orb = Instance.new("Part", char)
  3775. orb.Anchored = true
  3776. orb.BrickColor = BrickColor.new("Toothpaste")
  3777. orb.CanCollide = false
  3778. orb.FormFactor = 3
  3779. orb.Name = "Remenant"
  3780. orb.Material = "Neon"
  3781. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3782. orb.Size = Vector3.new(1, 1, 1)
  3783. orb.Transparency = 1
  3784. orb.TopSurface = 0
  3785. orb.BottomSurface = 0
  3786. hum.WalkSpeed = storehumanoidWS
  3787. coroutine.resume(coroutine.create(function()
  3788. for i = 0, 4 do
  3789. swait(15)
  3790. local lb = Instance.new("Part")
  3791. lb.Color = MAINRUINCOLOR.Color
  3792. lb.CanCollide = false
  3793. lb.Material = "Neon"
  3794. lb.Anchored = true
  3795. lb.TopSurface = 0
  3796. lb.BottomSurface = 0
  3797. lb.Transparency = 0
  3798. lb.Size = vt(1,1,1)
  3799. 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)))
  3800. lb.Anchored = false
  3801. lb.Parent = char
  3802. local thingery = Instance.new("SpecialMesh",lb)
  3803. thingery.MeshType = "Sphere"
  3804. thingery.Scale = vt(50,50,50)
  3805. game:GetService("Debris"):AddItem(lb, 10)
  3806. local bv = Instance.new("BodyVelocity")
  3807. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3808. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3809. bv.Parent = lb
  3810. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3811. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3812. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3813. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3814. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3815. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3816. local hitted = false
  3817. coroutine.resume(coroutine.create(function()
  3818. while true do
  3819. swait(1)
  3820. if lb.Parent ~= nil and hitted == false then
  3821. 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)
  3822. elseif lb.Parent == nil then
  3823. break
  3824. end
  3825. end
  3826. end))
  3827.  
  3828. game:GetService("Debris"):AddItem(a, 0.1)
  3829.  
  3830. coroutine.resume(coroutine.create(function()
  3831. swait(1)
  3832. lb.Touched:connect(function(hit)
  3833. if hitted == false then
  3834. hitted = true
  3835. lb.Transparency = 1
  3836. lb.Anchored = true
  3837. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3838. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3839. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3840. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3841. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3842. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3843. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3844. CameraEnshaking(1,5)
  3845. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3846. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3847. for i = 0, 9 do
  3848. 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)
  3849. end
  3850. for i = 0, 99 do
  3851. swait()
  3852. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3853. 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)
  3854. end
  3855. end
  3856. end)
  3857. end))
  3858. end
  3859. Overed = true
  3860. orb:Destroy()
  3861. end))
  3862.  
  3863. attack = false
  3864. end
  3865.  
  3866. function DivineBlast()
  3867. attack = true
  3868. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3869. hum.WalkSpeed = 0
  3870. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3871. elocacenter.Anchored = true
  3872. elocacenter.CFrame = sorb.CFrame
  3873. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3874. eloca1.Anchored = true
  3875. eloca1.CFrame = elocacenter.CFrame
  3876. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3877. eloca2.Anchored = true
  3878. eloca2.CFrame = elocacenter.CFrame
  3879. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3880. eloca3.Anchored = true
  3881. eloca3.CFrame = elocacenter.CFrame
  3882. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3883. eloca4.Anchored = true
  3884. eloca4.CFrame = elocacenter.CFrame
  3885. local lookavec = 0
  3886. local speeds = 0
  3887. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3888. for i = 0, 3, 0.1 do
  3889. swait()
  3890. ---
  3891. lookavec = lookavec + 0.1
  3892. speeds = speeds + 10
  3893. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3894. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3895. 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)
  3896.  
  3897. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3898. 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)
  3899.  
  3900. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3901. 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)
  3902.  
  3903. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3904. 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)
  3905. ---
  3906. root.CFrame = FaceMouse()[1]
  3907. 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)
  3908. 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)
  3909. 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)
  3910. 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)
  3911. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3912. 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)
  3913. end
  3914. for i = 0, 3, 0.1 do
  3915. swait()
  3916. ---
  3917. speeds = speeds + 10
  3918. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3919. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3920. 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)
  3921.  
  3922. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3923. 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)
  3924.  
  3925. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3926. 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)
  3927.  
  3928. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3929. 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)
  3930. ---
  3931. root.CFrame = FaceMouse()[1]
  3932. 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)
  3933. 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)
  3934. 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)
  3935. 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)
  3936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3937. 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)
  3938. end
  3939. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3940. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3941. for i = 0, 3, 0.1 do
  3942. swait()
  3943. ---
  3944. speeds = speeds + 10
  3945. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3946. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3947. 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)
  3948.  
  3949. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3950. 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)
  3951.  
  3952. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3953. 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)
  3954.  
  3955. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3956. 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)
  3957. ---
  3958. root.CFrame = FaceMouse()[1]
  3959. 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)
  3960. 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)
  3961. 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)
  3962. 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)
  3963. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3964. 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)
  3965. end
  3966. coroutine.resume(coroutine.create(function()
  3967. local a = Instance.new("Part",Character)
  3968. a.Name = "Direction"
  3969. a.Anchored = true
  3970. a.BrickColor = bc("White")
  3971. a.Material = "Neon"
  3972. a.Transparency = 0
  3973. a.Shape = "Cylinder"
  3974. a.CanCollide = false
  3975. local a2 = Instance.new("Part",Character)
  3976. a2.Name = "Direction"
  3977. a2.Anchored = true
  3978. a2.BrickColor = bc("Bright yellow")
  3979. a2.Material = "Neon"
  3980. a2.Transparency = 0
  3981. a2.Shape = "Cylinder"
  3982. a2.CanCollide = false
  3983. local b = Instance.new("Part",Character)
  3984. b.Name = "HitDirect"
  3985. b.Anchored = true
  3986. b.BrickColor = bc("Cool yellow")
  3987. b.Material = "Neon"
  3988. b.Transparency = 1
  3989. b.CanCollide = false
  3990. local ray = Ray.new(
  3991. elocacenter.CFrame.p, -- origin
  3992. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3993. )
  3994. local ignore = Character
  3995. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3996. a.BottomSurface = 10
  3997. a.TopSurface = 10
  3998. a2.BottomSurface = 10
  3999. a2.TopSurface = 10
  4000. local distance = (elocacenter.CFrame.p - position).magnitude
  4001. a.Size = Vector3.new(distance, 1, 1)
  4002. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4003. a2.Size = Vector3.new(distance, 1, 1)
  4004. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4005. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4006. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4007. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4008. game:GetService("Debris"):AddItem(a, 10)
  4009. game:GetService("Debris"):AddItem(a2, 10)
  4010. game:GetService("Debris"):AddItem(b, 10)
  4011. local eff = Instance.new("ParticleEmitter",b)
  4012. eff.Texture = "rbxassetid://2273224484"
  4013. eff.LightEmission = 1
  4014. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4015. eff.Rate = 500000
  4016. eff.Lifetime = NumberRange.new(0.5,2)
  4017. 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)})
  4018. 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)})
  4019. eff.Speed = NumberRange.new(20,250)
  4020. eff.Drag = 5
  4021. eff.Rotation = NumberRange.new(-500,500)
  4022. eff.VelocitySpread = 9000
  4023. eff.RotSpeed = NumberRange.new(-50,50)
  4024. coroutine.resume(coroutine.create(function()
  4025. wait(0.25)
  4026. eff.Enabled = false
  4027. end))
  4028. local msh = Instance.new("SpecialMesh",a)
  4029. msh.MeshType = "Cylinder"
  4030. msh.Scale = vt(1,2,2)
  4031. local msh2 = Instance.new("SpecialMesh",a2)
  4032. msh2.MeshType = "Cylinder"
  4033. msh2.Scale = vt(1,2.5,2.5)
  4034. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4035. coroutine.resume(coroutine.create(function()
  4036. for i = 0,10,0.1 do
  4037. swait()
  4038. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4039. a.Transparency = a.Transparency + 0.025
  4040. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4041. a2.Transparency = a2.Transparency + 0.05
  4042. end
  4043. a:Destroy()
  4044. a2:Destroy()
  4045. end))
  4046. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4047. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4048. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4049. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4050. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4051. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4052. MagniDamage(b, 25, 40,65, 0, "Normal")
  4053. for i = 0, 49 do
  4054. 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)
  4055. 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)
  4056. end
  4057. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4058. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4059. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4060. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4061. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4062. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4063. end))
  4064. game:GetService("Debris"):AddItem(elocacenter, 5)
  4065. hum.WalkSpeed = storehumanoidWS
  4066. attack = false
  4067. end
  4068.  
  4069. function StarDivision()
  4070. attack = true
  4071. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4072. for i = 0, 2, 0.1 do
  4073. swait()
  4074. 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)
  4075. 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)
  4076. 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)
  4077. 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)
  4078. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4079. 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)
  4080. end
  4081. local orb = Instance.new("Part", char)
  4082. orb.BrickColor = MAINRUINCOLOR
  4083. orb.CanCollide = false
  4084. orb.FormFactor = 3
  4085. orb.Name = "Ring"
  4086. orb.Material = "Neon"
  4087. orb.Size = Vector3.new(1, 1, 1)
  4088. orb.Transparency = 0
  4089. orb.TopSurface = 0
  4090. orb.BottomSurface = 0
  4091. local orbm = Instance.new("SpecialMesh", orb)
  4092. orbm.MeshType = "Sphere"
  4093. orbm.Name = "SizeMesh"
  4094. orbm.Scale = vt(2,2,2)
  4095. local a = Instance.new("Part",workspace)
  4096. a.Name = "Direction"
  4097. a.Anchored = true
  4098. a.BrickColor = bc("Bright red")
  4099. a.Material = "Neon"
  4100. a.Transparency = 1
  4101. a.CanCollide = false
  4102. local ray = Ray.new(
  4103. sorb.CFrame.p, -- origin
  4104. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4105. )
  4106. local ignore = sorb
  4107. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4108. a.BottomSurface = 10
  4109. a.TopSurface = 10
  4110. local distance = (sorb.CFrame.p - position).magnitude
  4111. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4112. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4113. orb.CFrame = a.CFrame
  4114. a:Destroy()
  4115. local bv = Instance.new("BodyVelocity")
  4116. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4117. bv.velocity = orb.CFrame.lookVector*100
  4118. bv.Parent = orb
  4119. local hitted = false
  4120. game:GetService("Debris"):AddItem(orb, 10)
  4121. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4122. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4123. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4124. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4125. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4126. coroutine.resume(coroutine.create(function()
  4127. while true do
  4128. swait(1)
  4129. if orb.Parent ~= nil and hitted == false then
  4130. 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)
  4131. elseif orb.Parent == nil then
  4132. break
  4133. end
  4134. end
  4135. end))
  4136. coroutine.resume(coroutine.create(function()
  4137. swait(1)
  4138. orb.Touched:connect(function(hit)
  4139. if hitted == false then
  4140. hitted = true
  4141. game:GetService("Debris"):AddItem(orb, 5)
  4142. orb.Transparency = 1
  4143. orb.Anchored = true
  4144. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4145. elocacenter.Anchored = true
  4146. elocacenter.CFrame = orb.CFrame
  4147. elocacenter.Orientation = vt(0,0,0)
  4148. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4149. eloca1.Anchored = true
  4150. eloca1.CFrame = elocacenter.CFrame
  4151. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4152. eloca2.Anchored = true
  4153. eloca2.CFrame = elocacenter.CFrame
  4154. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4155. eloca3.Anchored = true
  4156. eloca3.CFrame = elocacenter.CFrame
  4157. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4158. eloca4.Anchored = true
  4159. eloca4.CFrame = elocacenter.CFrame
  4160. local lookavec = 0
  4161. local speeds = 0
  4162. CameraEnshaking(1,1)
  4163. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4164. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4165. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4166. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4167. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4168. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4169. for i = 0, 99 do
  4170. swait()
  4171. lookavec = lookavec + 1
  4172. speeds = speeds + 0.1
  4173. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4174. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4175. 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)
  4176.  
  4177. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4178. 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)
  4179.  
  4180. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4181. 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)
  4182.  
  4183. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4184. 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)
  4185. end
  4186.  
  4187. for i = 0, 149 do
  4188. swait()
  4189. speeds = speeds + 0.1
  4190. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4191. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4192. 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)
  4193.  
  4194. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4195. 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)
  4196.  
  4197. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4198. 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)
  4199.  
  4200. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4201. 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)
  4202. end
  4203. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4204. if v:FindFirstChild('Head') then
  4205. dmg(v)
  4206. end
  4207. end
  4208. CameraEnshaking(7,30)
  4209. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4210. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4211. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4212. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4213. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4214. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4215. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4216. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4217. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4218. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4219. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4220. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4221. for i = 0, 24 do
  4222. 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)
  4223. 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)
  4224. 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)
  4225. 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)
  4226. end
  4227. coroutine.resume(coroutine.create(function()
  4228. for i = 0, 499 do
  4229. swait(1)
  4230. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4231. 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)
  4232. end
  4233. elocacenter:Destroy()
  4234. eloca1:Destroy()
  4235. eloca2:Destroy()
  4236. eloca3:Destroy()
  4237. eloca4:Destroy()
  4238. end))
  4239. end
  4240. end)
  4241. end))
  4242. attack = false
  4243. end
  4244.  
  4245.  
  4246. function THE_TRUE_POWER_OF_VIOLENCE()
  4247. attack = true
  4248. hum.WalkSpeed = 0
  4249. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4250. for i = 0, 10, 0.1 do
  4251. swait()
  4252. 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)
  4253. 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)
  4254. 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)
  4255. 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)
  4256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4258. 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)
  4259. end
  4260. local orb = Instance.new("Part", char)
  4261. orb.BrickColor = MAINRUINCOLOR
  4262. orb.CanCollide = false
  4263. orb.FormFactor = 3
  4264. orb.Name = "Ring"
  4265. orb.Material = "Neon"
  4266. orb.Size = Vector3.new(1, 1, 1)
  4267. orb.Transparency = 0
  4268. orb.TopSurface = 0
  4269. orb.BottomSurface = 0
  4270. orb.CFrame = sorb.CFrame
  4271. local orbm = Instance.new("SpecialMesh", orb)
  4272. orbm.MeshType = "Sphere"
  4273. orbm.Name = "SizeMesh"
  4274. orbm.Scale = vt(0,0,0)
  4275. local sbs = Instance.new("BodyPosition", orb)
  4276. sbs.P = 3000
  4277. sbs.D = 1000
  4278. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4279. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4280. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4281. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4282. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4283. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4284. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4285. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4286. for i = 0, 10, 0.1 do
  4287. swait()
  4288. 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)
  4289. 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)
  4290. 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)
  4291. 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)
  4292. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4293. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4294. 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)
  4295. end
  4296. orb.Anchored = true
  4297. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4298. elocacenter.Anchored = true
  4299. elocacenter.CFrame = orb.CFrame
  4300. elocacenter.Orientation = vt(0,0,0)
  4301. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4302. eloca1.Anchored = true
  4303. eloca1.CFrame = elocacenter.CFrame
  4304. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4305. eloca2.Anchored = true
  4306. eloca2.CFrame = elocacenter.CFrame
  4307. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4308. eloca3.Anchored = true
  4309. eloca3.CFrame = elocacenter.CFrame
  4310. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4311. eloca4.Anchored = true
  4312. eloca4.CFrame = elocacenter.CFrame
  4313. local lookavec = 0
  4314. local speeds = 0
  4315. CameraEnshaking(1,1)
  4316. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4317. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4318. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4319. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4320. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4321. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4322. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4323. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4324. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4325. for i = 0, 99 do
  4326. swait()
  4327. lookavec = lookavec + 2.5
  4328. speeds = speeds + 0.25
  4329. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4330. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4331. 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)
  4332.  
  4333. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4334. 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)
  4335.  
  4336. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4337. 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)
  4338.  
  4339. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4340. 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)
  4341. end
  4342.  
  4343. for i = 0, 149 do
  4344. swait()
  4345. speeds = speeds + 0.25
  4346. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4347. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4348. 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)
  4349.  
  4350. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4351. 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)
  4352.  
  4353. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4354. 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)
  4355.  
  4356. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4357. 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)
  4358. end
  4359. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4360. for i = 0, 99 do
  4361. swait()
  4362. lookavec = lookavec - 2.5
  4363. speeds = speeds + 0.25
  4364. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4365. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4366. 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)
  4367.  
  4368. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4369. 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)
  4370.  
  4371. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4372. 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)
  4373.  
  4374. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4375. 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)
  4376. end
  4377. local scaled = 0.1*75
  4378. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4379. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4380. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4381. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4382. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4383. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4384. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4385. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4386. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4387. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4388. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4389.  
  4390. for i = 0, 10, 0.1 do
  4391. swait()
  4392. scaled = scaled - 0.001*75
  4393. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4394. 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)
  4395. 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)
  4396. 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)
  4397. 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)
  4398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4399. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4400. 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)
  4401. end
  4402. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4403. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4404. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4405. for x = 0, 4 do
  4406. for i = 0, 9 do
  4407. 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)
  4408. end
  4409. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4410. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4411. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4412. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4413. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4414. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4415. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4416. for i = 0, 5, 0.1 do
  4417. swait()
  4418. 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)
  4419. 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)
  4420. 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)
  4421. 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)
  4422. 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)
  4423. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4424. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4425. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4426. end
  4427. end
  4428. local speedearn = 0
  4429. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4430. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4431. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4432. for i = 0, 30, 0.1 do
  4433. swait()
  4434. scaled = scaled - 0.001*75/10
  4435. speedearn = speedearn + 0.5
  4436. for i = 0, 4 do
  4437. 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)
  4438. end
  4439. 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)
  4440. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4441. 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)
  4442. 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)
  4443. 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)
  4444. 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)
  4445. 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)
  4446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4448. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4449. end
  4450. orb.Transparency = 1
  4451. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4452. if v:FindFirstChild('Head') then
  4453. dmg(v)
  4454. end
  4455. end
  4456. CameraEnshaking(7,30)
  4457. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4458. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4459. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4460. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4461. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4462. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4463. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4464. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4465. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4466. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4467. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4468. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4469. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4470. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4471. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4474. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4475. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4476. for i = 0, 99 do
  4477. 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)
  4478. 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)
  4479. end
  4480. for i = 0, 24 do
  4481. 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)
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. end
  4487. game:GetService("Debris"):AddItem(orb, 10)
  4488. hum.WalkSpeed = storehumanoidWS
  4489. attack = false
  4490. end
  4491.  
  4492.  
  4493. function ViolentRing()
  4494. attack = true
  4495. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4496. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4497. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4498. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4499. for i = 0, 2, 0.1 do
  4500. swait()
  4501. local snap = math.random(1,10)
  4502. if snap == 1 then
  4503. 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)
  4504. end
  4505. 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)
  4506. 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)
  4507. 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)
  4508. 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)
  4509. 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)
  4510. 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)
  4511. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4512. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4513. 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)
  4514. RootPart.CFrame = FaceMouse()[1]
  4515. end
  4516. local orb = Instance.new("Part", char)
  4517. orb.BrickColor = MAINRUINCOLOR
  4518. orb.CanCollide = false
  4519. orb.FormFactor = 3
  4520. orb.Name = "Ring"
  4521. orb.Material = "Neon"
  4522. orb.Size = Vector3.new(1, 1, 1)
  4523. orb.Transparency = 0
  4524. orb.TopSurface = 0
  4525. orb.BottomSurface = 0
  4526. local orbm = Instance.new("SpecialMesh", orb)
  4527. orbm.MeshType = "Sphere"
  4528. orbm.Name = "SizeMesh"
  4529. orbm.Scale = vt(2,2,2)
  4530. orb.CFrame = mouse.Hit
  4531. local bv = Instance.new("BodyVelocity")
  4532. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4533. bv.velocity = orb.CFrame.lookVector*100
  4534. bv.Parent = orb
  4535. local hitted = false
  4536. coroutine.resume(coroutine.create(function()
  4537. game:GetService("Debris"):AddItem(orb, 5)
  4538. orb.Transparency = 1
  4539. orb.Anchored = true
  4540. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4541. elocacenter.Anchored = true
  4542. elocacenter.CFrame = orb.CFrame
  4543. elocacenter.Orientation = vt(0,0,0)
  4544. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4545. eloca1.Anchored = true
  4546. eloca1.CFrame = elocacenter.CFrame
  4547. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4548. eloca2.Anchored = true
  4549. eloca2.CFrame = elocacenter.CFrame
  4550. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4551. eloca3.Anchored = true
  4552. eloca3.CFrame = elocacenter.CFrame
  4553. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4554. eloca4.Anchored = true
  4555. eloca4.CFrame = elocacenter.CFrame
  4556. local lookavec = 0
  4557. local speeds = 0
  4558. CameraEnshaking(1,1)
  4559. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4560. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4561. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4562. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4563. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4564. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4565. for i = 0, 24 do
  4566. swait()
  4567. lookavec = lookavec + 3.5
  4568. speeds = speeds + 1
  4569. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4570. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4571. 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)
  4572.  
  4573. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4574. 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)
  4575.  
  4576. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4577. 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)
  4578.  
  4579. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4580. 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)
  4581. end
  4582.  
  4583. local risen = 0
  4584. for i = 0, 49 do
  4585. swait()
  4586. risen = risen + 0.05
  4587. speeds = speeds + 0.1
  4588. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4589. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4590. 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)
  4591.  
  4592. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4593. 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)
  4594.  
  4595. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4596. 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)
  4597.  
  4598. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4599. 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)
  4600. end
  4601. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4602. if v:FindFirstChild('Head') then
  4603. dmg(v)
  4604. end
  4605. end
  4606. CameraEnshaking(4,10)
  4607. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4608. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4609. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4610. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4611. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4612. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4613. local eff = Instance.new("ParticleEmitter",elocacenter)
  4614. eff.Texture = "rbxassetid://2273224484"
  4615. eff.LightEmission = 1
  4616. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4617. eff.Rate = 1000000
  4618. eff.Lifetime = NumberRange.new(0.5,2)
  4619. 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)})
  4620. 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)})
  4621. eff.Speed = NumberRange.new(20,250)
  4622. eff.Drag = 5
  4623. eff.Rotation = NumberRange.new(-500,500)
  4624. eff.VelocitySpread = 5000000
  4625. eff.RotSpeed = NumberRange.new(-50,50)
  4626. coroutine.resume(coroutine.create(function()
  4627. wait(1)
  4628. eff.Enabled = false
  4629. end))
  4630. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4631. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4632. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4633. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4634. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4635. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4636. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4637. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4638. for i = 0, 24 do
  4639. 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)
  4640. 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)
  4641. 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)
  4642. 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)
  4643. end
  4644. coroutine.resume(coroutine.create(function()
  4645. wait(10)
  4646. elocacenter:Destroy()
  4647. eloca1:Destroy()
  4648. eloca2:Destroy()
  4649. eloca3:Destroy()
  4650. eloca4:Destroy()
  4651. end))
  4652. end))
  4653. attack = false
  4654. end
  4655.  
  4656. function UniversalCollapse()
  4657. attack = true
  4658. local speedearn = 0
  4659. hum.WalkSpeed = 0
  4660. local sbs = Instance.new("BodyPosition", root)
  4661. sbs.P = 3000
  4662. sbs.D = 1000
  4663. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4664. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4665. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4666. for i = 0, 85, 0.1 do
  4667. swait()
  4668. speedearn = speedearn + 0.1
  4669. 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)
  4670. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4671. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4672. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4673. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4674. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4675. 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)
  4676. 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)
  4677. 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)
  4678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4679. 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)
  4680. 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)
  4681. end
  4682. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4683. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4684. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4685. for i = 0, 25, 0.1 do
  4686. swait()
  4687. speedearn = speedearn + 0.1
  4688. 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)
  4689. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4690. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4691. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4692. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4693. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4694. 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)
  4695. 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)
  4696. 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)
  4697. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4698. 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)
  4699. 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)
  4700. end
  4701. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4702. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4703. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4704. CameraEnshaking(5,50)
  4705. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4706. for i = 0, 2 do
  4707. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4708. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4709. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4710. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4711. end
  4712. for i = 0, 49 do
  4713. 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)
  4714. 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)
  4715. 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)
  4716. 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)
  4717. end
  4718. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4719. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4720. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4721. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4722. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4723. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4724. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4725. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4726. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4727. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4728. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4729. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4730. for i = 0, 99 do
  4731. 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)
  4732. 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)
  4733. end
  4734. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4735. if v:FindFirstChild('Head') then
  4736. dmg(v)
  4737. end
  4738. end
  4739. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4740. sbs:Destroy()
  4741. hum.WalkSpeed = storehumanoidWS
  4742. attack = false
  4743. end
  4744.  
  4745.  
  4746. function ChaosEND()
  4747. attack = true
  4748. local speedearn = 0
  4749. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4750. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4751. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4752. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4753. for i = 0, 15, 0.1 do
  4754. swait()
  4755. speedearn = speedearn + 0.25
  4756. 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)
  4757. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4758. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4759. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4760. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4761. 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)
  4762. 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)
  4763. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4764. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4765. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4766. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4767. end
  4768. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4769. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4770. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4771. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4772. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4773. CameraEnshaking(5,25)
  4774. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4775. if v:FindFirstChild('Head') then
  4776. dmg(v)
  4777. end
  4778. end
  4779. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4780. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4781. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4782. for i = 0, 3, 0.1 do
  4783. swait()
  4784. 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)
  4785. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4786. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4787. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4788. 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)
  4789. 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)
  4790. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4791. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4792. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4793. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4794. end
  4795. attack = false
  4796. end
  4797.  
  4798. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4799. local orb = Instance.new("Part", char)
  4800. orb.Anchored = true
  4801. orb.BrickColor = color
  4802. orb.CanCollide = false
  4803. orb.FormFactor = 3
  4804. orb.Name = "Ring"
  4805. orb.Material = "Neon"
  4806. orb.Size = Vector3.new(1, 1, 1)
  4807. orb.Transparency = 0
  4808. orb.TopSurface = 0
  4809. orb.BottomSurface = 0
  4810. local orbm = Instance.new("SpecialMesh", orb)
  4811. orbm.MeshType = "Sphere"
  4812. orb.CFrame = positted
  4813. orbm.Name = "SizeMesh"
  4814. orbm.Scale = vt(1,1,1)
  4815. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4816. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4817. --[[for i = 0, 2 do
  4818. 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)
  4819. end]]--
  4820. coroutine.resume(coroutine.create(function()
  4821. wait(timer)
  4822. CameraEnshaking(3,ShakePower)
  4823. orb.Transparency = 1
  4824. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4825. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4826. --[[for i = 0, 4 do
  4827. 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)
  4828. end]]--
  4829. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4830. wait(3)
  4831. orb:Destroy()
  4832. end))
  4833. end
  4834.  
  4835. function orb_spawn(positted,timer)
  4836. local randomcol = math.random(1,2)
  4837. local orb = Instance.new("Part", char)
  4838. orb.Anchored = true
  4839. if randomcol == 1 then
  4840. orb.BrickColor = BrickColor.new("White")
  4841. elseif randomcol == 2 then
  4842. orb.BrickColor = BrickColor.new("Really black")
  4843. end
  4844. orb.CanCollide = false
  4845. orb.FormFactor = 3
  4846. orb.Name = "Ring"
  4847. orb.Material = "Neon"
  4848. orb.Size = Vector3.new(1, 1, 1)
  4849. orb.Transparency = 0
  4850. orb.TopSurface = 0
  4851. orb.BottomSurface = 0
  4852. local orbm = Instance.new("SpecialMesh", orb)
  4853. orbm.MeshType = "Sphere"
  4854. orb.CFrame = positted
  4855. orbm.Name = "SizeMesh"
  4856. orbm.Scale = vt(1,1,1)
  4857. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4858. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4859. for i = 0, 2 do
  4860. 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)
  4861. end
  4862. coroutine.resume(coroutine.create(function()
  4863. wait(timer)
  4864. CameraEnshaking(3,2)
  4865. orb.Transparency = 1
  4866. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4867. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4868. for i = 0, 4 do
  4869. 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)
  4870. end
  4871. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4872. wait(3)
  4873. orb:Destroy()
  4874. end))
  4875. end
  4876.  
  4877. function scattercorrupt()
  4878. attack = true
  4879. hum.WalkSpeed = 0
  4880. for i = 0, 2, 0.1 do
  4881. swait()
  4882. 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)
  4883. 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)
  4884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4886. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4887. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4888. end
  4889. local rot = 0
  4890. local randomrotations = math.random(1,2)
  4891. local lookv = 2.5
  4892. local power = 7
  4893. local radm = math.random(1,3)
  4894. if radm == 1 then
  4895. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4896. elseif radm == 2 then
  4897. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4898. elseif radm == 3 then
  4899. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4900. end
  4901. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4902. for i = 0, 1, 0.1 do
  4903. swait()
  4904. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4905. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4906. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4908. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4909. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4910. end
  4911. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4912. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4913. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4914. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4915. for i = 0, 9 do
  4916. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4917. end
  4918. local hite = Instance.new("Part", char)
  4919. hite.Anchored = true
  4920. hite.CanCollide = false
  4921. hite.FormFactor = 3
  4922. hite.Name = "Ring"
  4923. hite.Material = "Neon"
  4924. hite.Size = Vector3.new(1, 1, 1)
  4925. hite.Transparency = 1
  4926. hite.TopSurface = 0
  4927. hite.BottomSurface = 0
  4928. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4929. local rem = Instance.new("Part", char)
  4930. rem.Anchored = true
  4931. rem.CanCollide = false
  4932. rem.FormFactor = 3
  4933. rem.Name = "Ring"
  4934. rem.Material = "Neon"
  4935. rem.Size = Vector3.new(1, 1, 1)
  4936. rem.Transparency = 1
  4937. rem.TopSurface = 0
  4938. rem.BottomSurface = 0
  4939. rem.CFrame = hite.CFrame
  4940. local rem2 = rem:Clone()
  4941. rem2.Parent = char
  4942. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4943. local rem3 = rem:Clone()
  4944. rem3.Parent = char
  4945. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4946. local rem4 = rem:Clone()
  4947. rem4.Parent = char
  4948. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4949. hite:Destroy()
  4950. coroutine.resume(coroutine.create(function()
  4951. for i = 0, 24 do
  4952. swait(1)
  4953. if randomrotations == 1 then
  4954. rot = rot + 1
  4955. elseif randomrotations == 2 then
  4956. rot = rot - 1
  4957. end
  4958. power = power + 0.5
  4959. lookv = lookv + 7.5
  4960. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4961. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4962. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4963. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4964. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4965. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4966. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4967. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4968. end
  4969. end))
  4970. wait(2)
  4971. hum.WalkSpeed = storehumanoidWS
  4972. attack = false
  4973. end
  4974. function yinyangi()
  4975. attack = true
  4976. for i = 0, 2, 0.1 do
  4977. swait()
  4978. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4984. end
  4985. local bv = Instance.new("BodyVelocity")
  4986. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4987. bv.velocity = root.CFrame.lookVector*175
  4988. bv.Parent = root
  4989. for Rotations = 0, 9 do
  4990. for i = 0, 1, 0.5 do
  4991. swait()
  4992. bv.velocity = root.CFrame.lookVector*175
  4993. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4994. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4999. end
  5000. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5001. for i = 0, 1, 0.5 do
  5002. swait()
  5003. bv.velocity = root.CFrame.lookVector*175
  5004. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5005. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5006. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5008. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5009. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5010. end
  5011. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5012. for i = 0, 1, 0.5 do
  5013. swait()
  5014. bv.velocity = root.CFrame.lookVector*175
  5015. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5016. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5017. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5020. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5021. end
  5022. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5023. for i = 0, 1, 0.5 do
  5024. swait()
  5025. bv.velocity = root.CFrame.lookVector*175
  5026. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5027. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5028. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5030. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5031. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5032. end
  5033. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5034. end
  5035. bv:Destroy()
  5036. attack = false
  5037. end
  5038.  
  5039. function createBGCircle(size,parent,color)
  5040. local bgui = Instance.new("BillboardGui",parent)
  5041. bgui.Size = UDim2.new(size, 0, size, 0)
  5042. local imgc = Instance.new("ImageLabel",bgui)
  5043. imgc.BackgroundTransparency = 1
  5044. imgc.ImageTransparency = 0
  5045. imgc.Size = UDim2.new(1,0,1,0)
  5046. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5047. imgc.ImageColor3 = color
  5048. return bgui,imgc
  5049. end
  5050.  
  5051. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5052. local bgui,imgc = createBGCircle(size,guipar,color)
  5053. bgui.AlwaysOnTop = true
  5054. imgc.Image = "rbxassetid://" ..img
  5055. local rrot = math.random(1,2)
  5056. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5057. coroutine.resume(coroutine.create(function()
  5058. for i = 0, 24*delay do
  5059. swait()
  5060. if rotationenabled == true then
  5061. if rrot == 1 then
  5062. imgc.Rotation = imgc.Rotation + rotsp
  5063. elseif rrot == 2 then
  5064. imgc.Rotation = imgc.Rotation - rotsp
  5065. end
  5066. end
  5067. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5068. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5069. end
  5070. bgui:Destroy()
  5071. end))
  5072. end
  5073. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5074. for i, v in pairs(mw2:GetChildren()) do
  5075. if v:IsA("Part") then
  5076. v.BrickColor = one
  5077. v.Material = "Neon"
  5078. end
  5079. end
  5080. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5081. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5082. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5083. tr1.Color = ColorSequence.new(one.Color)
  5084. tr2.Color = ColorSequence.new(one.Color)
  5085. tr3.Color = ColorSequence.new(one.Color)
  5086. for i, v in pairs(mw1:GetChildren()) do
  5087. if v:IsA("Part") then
  5088. if secondaryenabled == false then
  5089. v.Transparency = 1
  5090. elseif secondaryenabled == true then
  5091. v.Transparency = 0
  5092. end
  5093. v.BrickColor = two
  5094. v.Material = "Neon"
  5095. end
  5096. end
  5097. if secondaryenabled == false then
  5098. tl1.Enabled = false
  5099. tl2.Enabled = false
  5100. tl3.Enabled = false
  5101. elseif secondaryenabled == true then
  5102. tl1.Enabled = true
  5103. tl2.Enabled = true
  5104. tl3.Enabled = true
  5105. end
  5106. tl1.Color = ColorSequence.new(two.Color)
  5107. tl2.Color = ColorSequence.new(two.Color)
  5108. tl3.Color = ColorSequence.new(two.Color)
  5109. for i, v in pairs(m:GetChildren()) do
  5110. if v:IsA("Part") then
  5111. v.BrickColor = three
  5112. v.Material = "Ice"
  5113. end
  5114. end
  5115. for i, v in pairs(m2:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = four
  5118. v.Material = "Ice"
  5119. end
  5120. end
  5121. for i, v in pairs(m3:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.BrickColor = five
  5124. v.Material = "Neon"
  5125. end
  5126. end
  5127. for i, v in pairs(extrawingmod1:GetChildren()) do
  5128. if v:IsA("Part") then
  5129. v.Transparency = exonetran
  5130. v.BrickColor = exone
  5131. v.Material = "Neon"
  5132. end
  5133. end
  5134. for i, v in pairs(extrawingmod2:GetChildren()) do
  5135. if v:IsA("Part") then
  5136. v.Transparency = extwotran
  5137. v.BrickColor = extwo
  5138. v.Material = "Neon"
  5139. end
  5140. end
  5141. end
  5142.  
  5143.  
  5144. function normalmog()
  5145. attack = true
  5146. hum.WalkSpeed = 0
  5147. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5148. for i = 0,6,0.1 do
  5149. swait()
  5150. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5151. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5152. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  5153. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  5154. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5155. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5156. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5157. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5158. end
  5159. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5160. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5161. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5162. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5163. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5164. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5165. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5166. rainbowmode = false
  5167. chaosmode = false
  5168. ModeOfGlitch = 1
  5169. storehumanoidWS = 16
  5170. newTheme("rbxassetid://769693973",48.6,1,30)
  5171. RecolorTextAndRename("CODED REALITY",Color3.new(0,0.25,0),Color3.new(0,1,0),"Antique")
  5172. CameraEnshaking(5,2.5)
  5173. MAINRUINCOLOR = BrickColor.new("Bright green")
  5174. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5175. for i = 0, 49 do
  5176. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5177. end
  5178. for i = 0, 24 do
  5179. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  5180. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  5181. end
  5182. for i = 0,3,0.1 do
  5183. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5184. end
  5185. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5186. for i = 0,2,0.1 do
  5187. swait()
  5188. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5189. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5190. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5192. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5193. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5194. end
  5195. hum.WalkSpeed = storehumanoidWS
  5196. attack = false
  5197. end
  5198.  
  5199. function attackone()
  5200. attack = true
  5201. local keptcolor = MAINRUINCOLOR
  5202. for i = 0,1,0.1 do
  5203. swait()
  5204. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5206. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5207. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5208. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5209. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5210. end
  5211. local distlook = 5
  5212. coroutine.resume(coroutine.create(function()
  5213. for i = 0, 4 do
  5214. swait(2)
  5215. CameraEnshaking(2,3)
  5216. local hite = Instance.new("Part", char)
  5217. hite.Anchored = true
  5218. hite.CanCollide = false
  5219. hite.FormFactor = 3
  5220. hite.Name = "Ring"
  5221. hite.Material = "Neon"
  5222. hite.Size = Vector3.new(1, 1, 1)
  5223. hite.Transparency = 1
  5224. hite.TopSurface = 0
  5225. hite.BottomSurface = 0
  5226. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5227. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5228. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5229. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5230. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5231. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5232. for i = 0, 14 do
  5233. local rsiz = math.random(5,20)
  5234. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5235. end
  5236. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5237. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5238. game:GetService("Debris"):AddItem(hite, 5)
  5239. distlook = distlook + 10
  5240. end
  5241. end))
  5242. for i = 0,1,0.1 do
  5243. swait()
  5244. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5245. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5246. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5247. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5248. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5249. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5250. end
  5251. attack = false
  5252. end
  5253.  
  5254. function attacktwo()
  5255. attack = true
  5256. hum.WalkSpeed = 2
  5257. local keptcolor = MAINRUINCOLOR
  5258. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5259. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5260. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5261. for i = 0, 14 do
  5262. PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,keptcolor,0)
  5263. end
  5264. for i = 0,1,0.1 do
  5265. swait()
  5266. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5267. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5268. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5271. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5272. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5273. end
  5274. for i = 0, 1 do
  5275. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5276. for i = 0,1,0.6 do
  5277. swait()
  5278. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5279. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5280. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5281. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5282. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5283. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5284. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5285. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5286. end
  5287. for i = 0,1,0.6 do
  5288. swait()
  5289. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5290. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5291. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5292. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5295. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5296. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5297. end
  5298. for i = 0,1,0.6 do
  5299. swait()
  5300. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5301. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5302. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5303. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5306. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5307. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5308. end
  5309. for i = 0,1,0.6 do
  5310. swait()
  5311. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5312. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5313. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5314. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5315. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5316. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5317. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5318. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5319. end
  5320. local rot = 0
  5321. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5322. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5323. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5324. CreateMesh(dis,"Sphere",10,1,10)
  5325. local at1 = Instance.new("Attachment",dis)
  5326. at1.Position = vt(-5,0,0)
  5327. local at2 = Instance.new("Attachment",dis)
  5328. at2.Position = vt(5,0,0)
  5329. local trl = Instance.new('Trail',wed)
  5330. trl.Attachment0 = at1
  5331. trl.Attachment1 = at2
  5332. trl.Texture = "rbxassetid://1049219073"
  5333. trl.LightEmission = 1
  5334. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5335. trl.Color = ColorSequence.new(dis.Color)
  5336. trl.Lifetime = 0.6
  5337. local a = Instance.new("Part",workspace)
  5338. a.Name = "Direction"
  5339. a.Anchored = true
  5340. a.BrickColor = bc("Bright red")
  5341. a.Material = "Neon"
  5342. a.Transparency = 1
  5343. a.CanCollide = false
  5344. local ray = Ray.new(
  5345. dis.CFrame.p, -- origin
  5346. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5347. )
  5348. local ignore = dis
  5349. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5350. a.BottomSurface = 10
  5351. a.TopSurface = 10
  5352. local distance = (dis.CFrame.p - position).magnitude
  5353. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5354. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5355. dis.CFrame = a.CFrame
  5356. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5357. a:Destroy()
  5358. local bv = Instance.new("BodyVelocity")
  5359. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5360. bv.velocity = dis.CFrame.lookVector*250
  5361. bv.Parent = dis
  5362. game:GetService("Debris"):AddItem(dis, 5)
  5363. local hitted = false
  5364. coroutine.resume(coroutine.create(function()
  5365. dis.Touched:connect(function(hit)
  5366. if hitted == false and hit.Parent ~= char then
  5367. hitted = true
  5368. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5369. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5370. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5371. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5372. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5373. coroutine.resume(coroutine.create(function()
  5374. for i = 0, 9 do
  5375. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5376. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5377. local at1 = Instance.new("Attachment",disr)
  5378. at1.Position = vt(-5,0,0)
  5379. local at2 = Instance.new("Attachment",disr)
  5380. at2.Position = vt(5,0,0)
  5381. local trl = Instance.new('Trail',disr)
  5382. trl.Attachment0 = at1
  5383. trl.FaceCamera = true
  5384. trl.Attachment1 = at2
  5385. trl.Texture = "rbxassetid://2342682798"
  5386. trl.LightEmission = 1
  5387. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5388. trl.Color = ColorSequence.new(keptcolor.Color)
  5389. trl.Lifetime = 0.5
  5390. local bv = Instance.new("BodyVelocity")
  5391. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5392. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5393. bv.Parent = disr
  5394. local val = 0
  5395. coroutine.resume(coroutine.create(function()
  5396. swait(30)
  5397. for i = 0, 9 do
  5398. swait()
  5399. val = val + 0.1
  5400. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5401. end
  5402. game:GetService("Debris"):AddItem(disr, 3)
  5403. end))
  5404. end
  5405. local eff = Instance.new("ParticleEmitter",dis)
  5406. eff.Texture = "rbxassetid://2273224484"
  5407. eff.LightEmission = 1
  5408. eff.Color = ColorSequence.new(keptcolor.Color)
  5409. eff.Rate = 500000
  5410. eff.Lifetime = NumberRange.new(0.5,2)
  5411. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5412. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5413. eff.Speed = NumberRange.new(20,250)
  5414. eff.Drag = 5
  5415. eff.Rotation = NumberRange.new(-500,500)
  5416. eff.VelocitySpread = 9000
  5417. eff.RotSpeed = NumberRange.new(-50,50)
  5418. wait(0.25)
  5419. eff.Enabled = false
  5420. end))
  5421. for i = 0, 9 do
  5422. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  5423. end
  5424. for i = 0, 19 do
  5425. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,keptcolor,0)
  5426. end
  5427. coroutine.resume(coroutine.create(function()
  5428. for i = 0, 19 do
  5429. swait()
  5430. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5431. end
  5432. hum.CameraOffset = vt(0,0,0)
  5433. end))
  5434. dis.Anchored = true
  5435. dis.Transparency = 1
  5436. wait(8)
  5437. dis:Destroy()
  5438. end
  5439. end)
  5440. end))
  5441. rot = rot - 15
  5442. end
  5443. for i = 0,2,0.1 do
  5444. swait()
  5445. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5446. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5447. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5449. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5450. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5451. end
  5452. attack = false
  5453. hum.WalkSpeed = storehumanoidWS
  5454. end
  5455.  
  5456. function attackthree()
  5457. attack = true
  5458. local keptcolor = MAINRUINCOLOR
  5459. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5460. for i = 0,2,0.1 do
  5461. swait()
  5462. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5463. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5464. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5466. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5467. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5468. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5469. end
  5470. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5471. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5472. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5473. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5474. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5475. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5476. for i = 0, 24 do
  5477. slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
  5478. end
  5479. for i = 0,4,0.1 do
  5480. swait()
  5481. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5482. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5483. CreateMesh(dis,"Sphere",1,1,1)
  5484. dis.Anchored = true
  5485. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5486. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5487. coroutine.resume(coroutine.create(function()
  5488. swait(30)
  5489. dis.Transparency = 1
  5490. coroutine.resume(coroutine.create(function()
  5491. for i = 0, 19 do
  5492. swait()
  5493. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5494. end
  5495. hum.CameraOffset = vt(0,0,0)
  5496. end))
  5497. coroutine.resume(coroutine.create(function()
  5498. local eff = Instance.new("ParticleEmitter",dis)
  5499. eff.Texture = "rbxassetid://2273224484"
  5500. eff.LightEmission = 1
  5501. eff.Color = ColorSequence.new(dis.Color)
  5502. eff.Rate = 500000
  5503. eff.Lifetime = NumberRange.new(0.5,2)
  5504. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5505. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5506. eff.Speed = NumberRange.new(50,450)
  5507. eff.Drag = 5
  5508. eff.Rotation = NumberRange.new(-500,500)
  5509. eff.VelocitySpread = 9000
  5510. eff.RotSpeed = NumberRange.new(-50,50)
  5511. wait(0.125)
  5512. eff.Enabled = false
  5513. end))
  5514. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5515. for i = 0, 2 do
  5516. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5517. end
  5518. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5519. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5520. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5521. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5522. end))
  5523. game:GetService("Debris"):AddItem(dis, 5)
  5524. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5525. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5526. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5527. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5528. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5529. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5530. end
  5531. attack = false
  5532. end
  5533. ----------------------------------- Abilities
  5534.  
  5535. function ExtinctiveHeartbreak()
  5536. local targetted = nil
  5537. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5538. targetted = mouse.Target.Parent
  5539. end
  5540. if targetted ~= nil then
  5541. attack = true
  5542. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5543. for i = 0, 9 do
  5544. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5545. end
  5546. for i = 0, 24 do
  5547. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5548. end
  5549. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5550. local originalpos = root.CFrame
  5551. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5552. for i = 0, 9 do
  5553. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5554. end
  5555. for i = 0, 24 do
  5556. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5557. end
  5558. hum.WalkSpeed = 0
  5559. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5560. local radm = math.random(1,3)
  5561. if radm == 1 then
  5562. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5563. elseif radm == 2 then
  5564. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5565. elseif radm == 3 then
  5566. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5567. end
  5568. for i = 0,2,0.1 do
  5569. swait()
  5570. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  5571. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  5572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  5573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5574. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5575. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  5576. end
  5577. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5578. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5579. for i = 0,2,0.1 do
  5580. swait()
  5581. coroutine.resume(coroutine.create(function()
  5582. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5583. for i,v in pairs(targetted:GetChildren()) do
  5584. if v:IsA("Part") or v:IsA("MeshPart") then
  5585. v.Velocity = vt(0,0,0)
  5586. end
  5587. end
  5588. end))
  5589. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5590. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5591. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5593. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5594. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  5595. end
  5596. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5597. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5598. for i = 0, 1 do
  5599. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5600. end
  5601. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5602. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5603. for i = 0,4,0.1 do
  5604. swait()
  5605. coroutine.resume(coroutine.create(function()
  5606. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5607. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5608. local at1 = Instance.new("Attachment",dis)
  5609. at1.Position = vt(-25000,0,0)
  5610. local at2 = Instance.new("Attachment",dis)
  5611. at2.Position = vt(25000,0,0)
  5612. local trl = Instance.new('Trail',dis)
  5613. trl.Attachment0 = at1
  5614. trl.FaceCamera = true
  5615. trl.Attachment1 = at2
  5616. trl.Texture = "rbxassetid://1049219073"
  5617. trl.LightEmission = 1
  5618. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5619. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5620. trl.Lifetime = 5
  5621. local bv = Instance.new("BodyVelocity")
  5622. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5623. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5624. bv.Parent = dis
  5625. game:GetService("Debris"):AddItem(dis, 5)
  5626. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5627. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5628. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5629. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5630. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5631. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5632. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5633. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5634. for i = 0, 2 do
  5635. slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  5636. end
  5637. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5638. for i,v in pairs(targetted:GetChildren()) do
  5639. if v:IsA("Part") or v:IsA("MeshPart") then
  5640. v.Velocity = vt(0,0,0)
  5641. end
  5642. end
  5643. end))
  5644. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5645. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5646. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5649. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  5650. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5651. end
  5652. hum.CameraOffset = vt(0,0,0)
  5653. for i = 0, 49 do
  5654. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5655. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5656. local at1 = Instance.new("Attachment",dis)
  5657. at1.Position = vt(-50000,0,0)
  5658. local at2 = Instance.new("Attachment",dis)
  5659. at2.Position = vt(50000,0,0)
  5660. local trl = Instance.new('Trail',dis)
  5661. trl.Attachment0 = at1
  5662. trl.FaceCamera = true
  5663. trl.Attachment1 = at2
  5664. trl.Texture = "rbxassetid://1049219073"
  5665. trl.LightEmission = 1
  5666. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5667. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5668. trl.Lifetime = 5
  5669. local bv = Instance.new("BodyVelocity")
  5670. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5671. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5672. bv.Parent = dis
  5673. game:GetService("Debris"):AddItem(dis, 5)
  5674. end
  5675. for i = 0, 49 do
  5676. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5677. slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  5678. end
  5679. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5680. for i = 0, 1 do
  5681. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5682. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5683. end
  5684. for i = 0, 4 do
  5685. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5686. end
  5687. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5688. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5689. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5690. dmg(targetted)
  5691. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5692. for i = 0, 9 do
  5693. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5694. end
  5695. for i = 0, 24 do
  5696. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5697. end
  5698. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5699. root.CFrame = originalpos
  5700. for i = 0, 9 do
  5701. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5702. end
  5703. for i = 0, 24 do
  5704. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5705. end
  5706. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5707. attack = false
  5708. hum.WalkSpeed = storehumanoidWS
  5709. end
  5710. end
  5711.  
  5712. function CorruptionEvent()
  5713. attack = true
  5714. hum.WalkSpeed = 0
  5715. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5716. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5717. local keptcolor = MAINRUINCOLOR
  5718. for i = 0,4,0.1 do
  5719. swait()
  5720. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5721. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5722. 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)
  5723. 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)
  5724. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5726. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5727. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5728. end
  5729. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5730. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5731. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5732. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5733. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5734. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5735. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5736. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5737. hum.CameraOffset = vt(0,0,0)
  5738. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5739. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5740. for i = 0, 24 do
  5741. 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"))
  5742. end
  5743. local rrot = 0
  5744. coroutine.resume(coroutine.create(function()
  5745. for i = 0, 4 do
  5746. rrot = rrot + 45
  5747. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5748. xa.Anchored = true
  5749. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5750. xb.Anchored = true
  5751. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5752. xc.Anchored = true
  5753. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5754. xd.Anchored = true
  5755. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5756. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5757. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5758. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5759. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5760. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5761. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5762. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5763. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5764. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5765. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5766. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5767. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5768. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5769. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5770. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5771. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5772. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5773. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5774. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5775. for i = 0, 9 do
  5776. 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"))
  5777. 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"))
  5778. 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"))
  5779. 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"))
  5780. end
  5781. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5782. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5783. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5784. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5785. 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)
  5786. 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)
  5787. 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)
  5788. 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)
  5789. 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))
  5790. 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))
  5791. 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))
  5792. 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))
  5793. game:GetService("Debris"):AddItem(xa, 5)
  5794. game:GetService("Debris"):AddItem(xb, 5)
  5795. game:GetService("Debris"):AddItem(xc, 5)
  5796. game:GetService("Debris"):AddItem(xd, 5)
  5797. coroutine.resume(coroutine.create(function()
  5798. for i = 0, 19 do
  5799. swait()
  5800. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5801. end
  5802. hum.CameraOffset = vt(0,0,0)
  5803. end))
  5804. swait(9)
  5805. end
  5806. end))
  5807. for i = 0,2,0.1 do
  5808. swait()
  5809. 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)
  5810. 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)
  5811. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5812. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5813. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5814. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5815. end
  5816. attack = false
  5817. hum.WalkSpeed = storehumanoidWS
  5818. end
  5819.  
  5820. function EndGROUND()
  5821. attack = true
  5822. hum.WalkSpeed = 0
  5823. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5824. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5825. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5826. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5827. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5828. local keptcolor = MAINRUINCOLOR
  5829. for i = 0,4,0.1 do
  5830. swait()
  5831. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5832. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5833. 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"))
  5834. 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)
  5835. 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)
  5836. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5838. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5839. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5840. end
  5841. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5842. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5843. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5844. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5845. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5846. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5847. coroutine.resume(coroutine.create(function()
  5848. local shval = 10
  5849. for i = 0, 99 do
  5850. swait()
  5851. shval = shval - 0.1
  5852. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5853. end
  5854. hum.CameraOffset = vt(0,0,0)
  5855. end))
  5856. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5857. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5858. for i = 0, 24 do
  5859. 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"))
  5860. end
  5861. local rrot = 0
  5862. local xam = 1
  5863. coroutine.resume(coroutine.create(function()
  5864. for i = 0, 14 do
  5865. --swait()
  5866. rrot = rrot + 40*xam
  5867. xam = xam + 0.25
  5868. local bonus = xam
  5869. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5870. xa.Anchored = true
  5871. xa.Color = Color3.new(0,0,0)
  5872. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5873. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5874. local xc = 0
  5875. coroutine.resume(coroutine.create(function()
  5876. for i = 0, 99 do
  5877. swait()
  5878. xc = xc + 0.01
  5879. xa.Color = Color3.new(xc,0,0)
  5880. end
  5881. xa.Transparency = 1
  5882. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5883. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5884. for i = 0, 9 do
  5885. 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"))
  5886. end
  5887. 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)
  5888. 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)
  5889. 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))
  5890. game:GetService("Debris"):AddItem(xa, 5)
  5891. coroutine.resume(coroutine.create(function()
  5892. for i = 0, 19 do
  5893. swait()
  5894. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5895. end
  5896. hum.CameraOffset = vt(0,0,0)
  5897. end))
  5898. end))
  5899. end
  5900. end))
  5901. for i = 0,2,0.1 do
  5902. swait()
  5903. 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)
  5904. 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)
  5905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5907. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5908. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5909. end
  5910. attack = false
  5911. hum.WalkSpeed = storehumanoidWS
  5912. end
  5913.  
  5914. function HeavenlyDisk()
  5915. attack = true
  5916. hum.WalkSpeed = 2
  5917. local keptcolor = MAINRUINCOLOR
  5918. local radm = math.random(1,3)
  5919. if radm == 1 then
  5920. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5921. elseif radm == 2 then
  5922. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5923. elseif radm == 3 then
  5924. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5925. end
  5926. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5927. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5928. 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)
  5929. 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)
  5930. for i = 0, 14 do
  5931. 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)
  5932. end
  5933. for i = 0,2,0.1 do
  5934. swait()
  5935. 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)
  5936. 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)
  5937. 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)
  5938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5940. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5941. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5942. end
  5943. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5944. for i = 0,1,0.6 do
  5945. swait()
  5946. 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)
  5947. 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"))
  5948. 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)
  5949. 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)
  5950. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5951. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5952. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5953. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5954. end
  5955. for i = 0,1,0.6 do
  5956. swait()
  5957. 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)
  5958. 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"))
  5959. 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)
  5960. 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)
  5961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5963. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5964. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5965. end
  5966. for i = 0,1,0.6 do
  5967. swait()
  5968. 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)
  5969. 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"))
  5970. 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)
  5971. 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)
  5972. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5973. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5974. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5975. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5976. end
  5977. for i = 0,1,0.6 do
  5978. swait()
  5979. 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)
  5980. 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"))
  5981. 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)
  5982. 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)
  5983. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5986. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5987. end
  5988. local rot = 15
  5989. for i = 0, 2 do
  5990. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5991. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5992. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5993. CreateMesh(dis,"Sphere",10,1,10)
  5994. local at1 = Instance.new("Attachment",dis)
  5995. at1.Position = vt(-5,0,0)
  5996. local at2 = Instance.new("Attachment",dis)
  5997. at2.Position = vt(5,0,0)
  5998. local trl = Instance.new('Trail',wed)
  5999. trl.Attachment0 = at1
  6000. trl.Attachment1 = at2
  6001. trl.Texture = "rbxassetid://1049219073"
  6002. trl.LightEmission = 1
  6003. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6004. trl.Color = ColorSequence.new(dis.Color)
  6005. trl.Lifetime = 0.6
  6006. local a = Instance.new("Part",workspace)
  6007. a.Name = "Direction"
  6008. a.Anchored = true
  6009. a.BrickColor = bc("Bright red")
  6010. a.Material = "Neon"
  6011. a.Transparency = 1
  6012. a.CanCollide = false
  6013. local ray = Ray.new(
  6014. dis.CFrame.p, -- origin
  6015. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6016. )
  6017. local ignore = dis
  6018. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6019. a.BottomSurface = 10
  6020. a.TopSurface = 10
  6021. local distance = (dis.CFrame.p - position).magnitude
  6022. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6023. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6024. dis.CFrame = a.CFrame
  6025. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6026. a:Destroy()
  6027. local bv = Instance.new("BodyVelocity")
  6028. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6029. bv.velocity = dis.CFrame.lookVector*250
  6030. bv.Parent = dis
  6031. game:GetService("Debris"):AddItem(dis, 5)
  6032. local hitted = false
  6033. coroutine.resume(coroutine.create(function()
  6034. dis.Touched:connect(function(hit)
  6035. if hitted == false and hit.Parent ~= char then
  6036. hitted = true
  6037. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6038. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6039. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6040. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6041. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6042. coroutine.resume(coroutine.create(function()
  6043. for i = 0, 9 do
  6044. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6045. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6046. local at1 = Instance.new("Attachment",disr)
  6047. at1.Position = vt(-2,0,0)
  6048. local at2 = Instance.new("Attachment",disr)
  6049. at2.Position = vt(2,0,0)
  6050. local trl = Instance.new('Trail',disr)
  6051. trl.Attachment0 = at1
  6052. trl.FaceCamera = true
  6053. trl.Attachment1 = at2
  6054. trl.Texture = "rbxassetid://2342682798"
  6055. trl.LightEmission = 1
  6056. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6057. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6058. trl.Lifetime = 0.5
  6059. local bv = Instance.new("BodyVelocity")
  6060. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6061. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6062. bv.Parent = disr
  6063. local val = 0
  6064. coroutine.resume(coroutine.create(function()
  6065. swait(30)
  6066. for i = 0, 9 do
  6067. swait()
  6068. val = val + 0.1
  6069. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6070. end
  6071. game:GetService("Debris"):AddItem(disr, 3)
  6072. end))
  6073. end
  6074. local eff = Instance.new("ParticleEmitter",dis)
  6075. eff.Texture = "rbxassetid://2273224484"
  6076. eff.LightEmission = 1
  6077. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6078. eff.Rate = 500000
  6079. eff.Lifetime = NumberRange.new(0.5,2)
  6080. 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)})
  6081. 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)})
  6082. eff.Speed = NumberRange.new(20,250)
  6083. eff.Drag = 5
  6084. eff.Rotation = NumberRange.new(-500,500)
  6085. eff.VelocitySpread = 9000
  6086. eff.RotSpeed = NumberRange.new(-50,50)
  6087. wait(0.25)
  6088. eff.Enabled = false
  6089. end))
  6090. for i = 0, 9 do
  6091. 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"))
  6092. end
  6093. for i = 0, 19 do
  6094. 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)
  6095. end
  6096. coroutine.resume(coroutine.create(function()
  6097. for i = 0, 19 do
  6098. swait()
  6099. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6100. end
  6101. hum.CameraOffset = vt(0,0,0)
  6102. end))
  6103. dis.Anchored = true
  6104. dis.Transparency = 1
  6105. wait(8)
  6106. dis:Destroy()
  6107. end
  6108. end)
  6109. end))
  6110. rot = rot - 15
  6111. end
  6112. for i = 0,2,0.1 do
  6113. swait()
  6114. 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)
  6115. 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)
  6116. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6117. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6118. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6119. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6120. end
  6121. attack = false
  6122. hum.WalkSpeed = storehumanoidWS
  6123. end
  6124.  
  6125. function FuckMeSidewaysAndCallMeGay()
  6126. local whom = (mouse.Target and mouse.Target.Parent)
  6127. --[[local fuckThisBoi = false
  6128. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6129. for _,v in next, ODers do
  6130. if(v == whom)then
  6131. fuckThisBoi = false
  6132. end
  6133. end
  6134. end
  6135. if(not fuckThisBoi)then
  6136. attack = false
  6137. warn'to fuck that boi you need to target them with z'
  6138. else]]
  6139. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6140. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6141. local hum = whom:FindFirstChildOfClass'Humanoid'
  6142. local ocf = RootPart.CFrame
  6143. hum.WalkSpeed = 0
  6144.  
  6145. hed.Anchored = true
  6146. RootPart.Anchored = true
  6147. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6148. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6149. for i = 0, 9 do
  6150. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6151. end
  6152. for i = 0, 24 do
  6153. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6154. end
  6155. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6156. attack = true
  6157. bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6158. local speed = 1
  6159. local heck;
  6160. local stopitlol = false;
  6161. heck = mouse.KeyUp:connect(function(k)
  6162. if(k:lower() == 'x')then
  6163. stopitlol = true
  6164. heck:disconnect()
  6165. end
  6166. end)
  6167. local times = 0
  6168. repeat swait()
  6169. speed = speed - .01
  6170. times = times + 1
  6171. if(speed < .1)then
  6172. speed = .1
  6173. end
  6174. for i = 0, speed, .05 do
  6175. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6176. swait()
  6177. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6178. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6179. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6183. end
  6184. CameraEnshaking(5,5)
  6185.  
  6186. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6187.  
  6188. for i = 0, speed, .05 do
  6189. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6190. swait()
  6191. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6192. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6193. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6195. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6196. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6197. end
  6198. until stopitlol and times >= 3
  6199. for i = 1, 3 do
  6200. for i = 0, 1.5, .05 do
  6201. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6202. swait()
  6203. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6204. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6205. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6207. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6208. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6209. end
  6210. CameraEnshaking(5,25)
  6211.  
  6212. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6213.  
  6214.  
  6215. coroutine.resume(coroutine.create(function()
  6216. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6217. bld.LightEmission = 0.1
  6218. bld.Texture = "rbxassetid://284205403"
  6219. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6220. bld.Rate = 500
  6221. bld.Lifetime = NumberRange.new(1)
  6222. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6223. bld.Acceleration = vt(0,-25,0)
  6224. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6225. bld.Speed = NumberRange.new(10,50)
  6226. bld.EmissionDirection = "Back"
  6227. bld.VelocitySpread = 25
  6228. bld.Rotation = NumberRange.new(-500,500)
  6229. bld.RotSpeed = NumberRange.new(-500,500)
  6230. bld.Enabled = false
  6231. bld:Emit(250)
  6232. end))
  6233. coroutine.resume(coroutine.create(function()
  6234. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6235. bld.LightEmission = 0.1
  6236. bld.Texture = "rbxassetid://284205403"
  6237. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6238. bld.Rate = 500
  6239. bld.Lifetime = NumberRange.new(1)
  6240. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6241. bld.Acceleration = vt(0,-25,0)
  6242. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6243. bld.Speed = NumberRange.new(10,50)
  6244. bld.EmissionDirection = "Back"
  6245. bld.VelocitySpread = 25
  6246. bld.Rotation = NumberRange.new(-500,500)
  6247. bld.RotSpeed = NumberRange.new(-500,500)
  6248. bld.Enabled = false
  6249. bld:Emit(250)
  6250. end))
  6251. for i = 0, 1.5, .05 do
  6252. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6253. swait()
  6254. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6255. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6256. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6257. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6258. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6259. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6260. end
  6261. end
  6262. for i = 0, 4, .05 do
  6263. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6264. swait()
  6265. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6267. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6271. end
  6272. CameraEnshaking(5,25)
  6273. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6274. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6275.  
  6276. dmg(whom)
  6277. coroutine.resume(coroutine.create(function()
  6278. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6279. bld.LightEmission = 0.1
  6280. bld.Texture = "rbxassetid://284205403"
  6281. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6282. bld.Rate = 500
  6283. bld.Lifetime = NumberRange.new(1)
  6284. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6285. bld.Acceleration = vt(0,-25,0)
  6286. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6287. bld.Speed = NumberRange.new(10,50)
  6288. bld.EmissionDirection = "Back"
  6289. bld.VelocitySpread = 25
  6290. bld.Rotation = NumberRange.new(-500,500)
  6291. bld.RotSpeed = NumberRange.new(-500,500)
  6292. bld.Enabled = true
  6293. end))
  6294. coroutine.resume(coroutine.create(function()
  6295. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6296. bld.LightEmission = 0.1
  6297. bld.Texture = "rbxassetid://284205403"
  6298. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6299. bld.Rate = 500
  6300. bld.Lifetime = NumberRange.new(1)
  6301. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6302. bld.Acceleration = vt(0,-25,0)
  6303. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6304. bld.Speed = NumberRange.new(10,50)
  6305. bld.EmissionDirection = "Back"
  6306. bld.VelocitySpread = 25
  6307. bld.Rotation = NumberRange.new(-500,500)
  6308. bld.RotSpeed = NumberRange.new(-500,500)
  6309. bld.Enabled = true
  6310. end))
  6311. for i = 0, 3, .05 do
  6312. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6313. swait()
  6314. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6315. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6316. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6318. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6319. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6320. end
  6321.  
  6322. RootPart.CFrame = ocf
  6323. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6324. for i = 0, 9 do
  6325. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6326. end
  6327. for i = 0, 24 do
  6328. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6329. end
  6330. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6331. RootPart.Anchored = false
  6332. Humanoid.WalkSpeed = storehumanoidWS
  6333. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6334. attack = false
  6335. end
  6336. end
  6337.  
  6338. function RapidBurst()
  6339. attack = true
  6340. hum.WalkSpeed = 0
  6341. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6342. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6343. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6344. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6345. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6346. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6347. local keptcolor = MAINRUINCOLOR
  6348. for i = 0,8,0.1 do
  6349. swait()
  6350. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6351. 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())
  6352. 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)
  6353. 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)
  6354. 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)
  6355. 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)
  6356. 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)
  6357. 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)
  6358. 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)
  6359. end
  6360. for i = 0, 99 do
  6361. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6362. 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)))
  6363. local at1 = Instance.new("Attachment",dis)
  6364. at1.Position = vt(-25000,0,0)
  6365. local at2 = Instance.new("Attachment",dis)
  6366. at2.Position = vt(25000,0,0)
  6367. local trl = Instance.new('Trail',dis)
  6368. trl.Attachment0 = at1
  6369. trl.FaceCamera = true
  6370. trl.Attachment1 = at2
  6371. trl.Texture = "rbxassetid://1049219073"
  6372. trl.LightEmission = 1
  6373. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6374. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6375. trl.Lifetime = 5
  6376. local bv = Instance.new("BodyVelocity")
  6377. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6378. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6379. bv.Parent = dis
  6380. game:GetService("Debris"):AddItem(dis, 5)
  6381. end
  6382. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6383. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6384. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6385. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6386. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6387. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6388. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6389. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6390. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6391. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6392. hum.CameraOffset = vt(0,0,0)
  6393. for i = 0, 24 do
  6394. 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())
  6395. end
  6396. local distam = 0
  6397. coroutine.resume(coroutine.create(function()
  6398. for i = 0, 99 do
  6399. wait()
  6400. distam = distam + 1
  6401. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6402. xa.Anchored = true
  6403. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6404. game:GetService("Debris"):AddItem(xa, 5)
  6405. for i = 0, 4 do
  6406. 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())
  6407. end
  6408. coroutine.resume(coroutine.create(function()
  6409. local eff = Instance.new("ParticleEmitter",xa)
  6410. eff.Texture = "rbxassetid://2273224484"
  6411. eff.LightEmission = 1
  6412. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6413. eff.Rate = 500000
  6414. eff.Lifetime = NumberRange.new(1,3)
  6415. 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)})
  6416. 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)})
  6417. eff.Speed = NumberRange.new(50,500)
  6418. eff.Drag = 5
  6419. eff.Rotation = NumberRange.new(-500,500)
  6420. eff.VelocitySpread = 9000
  6421. eff.RotSpeed = NumberRange.new(-50,50)
  6422. wait(0.25)
  6423. eff.Enabled = false
  6424. end))
  6425. coroutine.resume(coroutine.create(function()
  6426. for i = 0, 19 do
  6427. swait()
  6428. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6429. end
  6430. hum.CameraOffset = vt(0,0,0)
  6431. end))
  6432. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6433. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6434. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6435. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6436. end
  6437. end))
  6438. attack = false
  6439. hum.WalkSpeed = storehumanoidWS
  6440. end
  6441.  
  6442.  
  6443. function FallenOrbs()
  6444. attack = true
  6445. hum.WalkSpeed = 2
  6446. local keptcolor = MAINRUINCOLOR
  6447. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6448. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6449. local radm = math.random(1,3)
  6450. if radm == 1 then
  6451. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6452. elseif radm == 2 then
  6453. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6454. elseif radm == 3 then
  6455. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6456. end
  6457. coroutine.resume(coroutine.create(function()
  6458. for i = 0, 29 do
  6459. swait(2)
  6460. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6461. dis.Anchored = true
  6462. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6463. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6464. CreateMesh(dis,"Sphere",2,2,2)
  6465. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6466. 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"))
  6467. coroutine.resume(coroutine.create(function()
  6468. wait(0.5)
  6469. dis.Anchored = false
  6470. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6471. local at1 = Instance.new("Attachment",dis)
  6472. at1.Position = vt(-1,0,0)
  6473. local at2 = Instance.new("Attachment",dis)
  6474. at2.Position = vt(1,0,0)
  6475. local trl = Instance.new('Trail',dis)
  6476. trl.Attachment0 = at1
  6477. trl.FaceCamera = true
  6478. trl.Attachment1 = at2
  6479. trl.Texture = "rbxassetid://1049219073"
  6480. trl.LightEmission = 1
  6481. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6482. trl.Color = ColorSequence.new(dis.Color)
  6483. trl.Lifetime = 0.6
  6484. local a = Instance.new("Part",workspace)
  6485. a.Name = "Direction"
  6486. a.Anchored = true
  6487. a.BrickColor = bc("Bright red")
  6488. a.Material = "Neon"
  6489. a.Transparency = 1
  6490. a.CanCollide = false
  6491. local ray = Ray.new(
  6492. dis.CFrame.p, -- origin
  6493. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6494. )
  6495. local ignore = dis
  6496. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6497. a.BottomSurface = 10
  6498. a.TopSurface = 10
  6499. local distance = (dis.CFrame.p - position).magnitude
  6500. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6501. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6502. dis.CFrame = a.CFrame
  6503. a:Destroy()
  6504. local bv = Instance.new("BodyVelocity")
  6505. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6506. bv.velocity = dis.CFrame.lookVector*500
  6507. bv.Parent = dis
  6508. game:GetService("Debris"):AddItem(dis, 5)
  6509. local hitted = false
  6510. coroutine.resume(coroutine.create(function()
  6511. dis.Touched:connect(function(hit)
  6512. if hitted == false and hit.Parent ~= char then
  6513. hitted = true
  6514. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6515. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6516. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6517. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6518. coroutine.resume(coroutine.create(function()
  6519. for i = 0, 4 do
  6520. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6521. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6522. local at1 = Instance.new("Attachment",disr)
  6523. at1.Position = vt(-10,0,0)
  6524. local at2 = Instance.new("Attachment",disr)
  6525. at2.Position = vt(10,0,0)
  6526. local trl = Instance.new('Trail',disr)
  6527. trl.Attachment0 = at1
  6528. trl.FaceCamera = true
  6529. trl.Attachment1 = at2
  6530. trl.Texture = "rbxassetid://2342682798"
  6531. trl.LightEmission = 1
  6532. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6533. trl.Color = ColorSequence.new(disr.Color)
  6534. trl.Lifetime = 0.5
  6535. local bv = Instance.new("BodyVelocity")
  6536. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6537. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6538. bv.Parent = disr
  6539. local val = 0
  6540. coroutine.resume(coroutine.create(function()
  6541. swait(30)
  6542. for i = 0, 9 do
  6543. swait()
  6544. val = val + 0.1
  6545. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6546. end
  6547. game:GetService("Debris"):AddItem(disr, 3)
  6548. end))
  6549. end
  6550. local eff = Instance.new("ParticleEmitter",dis)
  6551. eff.Texture = "rbxassetid://1049219073"
  6552. eff.LightEmission = 1
  6553. eff.Color = ColorSequence.new(dis.Color)
  6554. eff.Rate = 500000
  6555. eff.Lifetime = NumberRange.new(0.5,2)
  6556. 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)})
  6557. 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)})
  6558. eff.Speed = NumberRange.new(20,250)
  6559. eff.Drag = 5
  6560. eff.Rotation = NumberRange.new(-500,500)
  6561. eff.VelocitySpread = 9000
  6562. eff.RotSpeed = NumberRange.new(-50,50)
  6563. wait(0.5)
  6564. eff.Enabled = false
  6565. end))
  6566. for i = 0, 4 do
  6567. 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"))
  6568. end
  6569. coroutine.resume(coroutine.create(function()
  6570. for i = 0, 19 do
  6571. swait()
  6572. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6573. end
  6574. hum.CameraOffset = vt(0,0,0)
  6575. end))
  6576. dis.Anchored = true
  6577. dis.Transparency = 1
  6578. wait(8)
  6579. dis:Destroy()
  6580. end
  6581. end)
  6582. end))
  6583. end))
  6584. end
  6585. end))
  6586. for i = 0,9,0.1 do
  6587. swait()
  6588. 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)
  6589. 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)
  6590. 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)
  6591. 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)
  6592. 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)
  6593. 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)
  6594. 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)
  6595. end
  6596. attack = false
  6597. hum.WalkSpeed = storehumanoidWS
  6598. end
  6599.  
  6600. function CyberSlash()
  6601. local posit = -2
  6602. attack = true
  6603. hum.WalkSpeed = 5
  6604. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6605. local radm = math.random(1,3)
  6606. if radm == 1 then
  6607. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6608. elseif radm == 2 then
  6609. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6610. elseif radm == 3 then
  6611. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6612. end
  6613. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6614. for i = 0,2,0.1 do
  6615. swait()
  6616. 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)
  6617. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6618. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6619. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6620. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6621. 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)
  6622. 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)
  6623. end
  6624. for i = 0, 2 do
  6625. CameraEnshaking(1,2)
  6626. local hite = Instance.new("Part", char)
  6627. hite.Anchored = true
  6628. hite.CanCollide = false
  6629. hite.FormFactor = 3
  6630. hite.Name = "Ring"
  6631. hite.Material = "Neon"
  6632. hite.Size = Vector3.new(1, 1, 1)
  6633. hite.Transparency = 1
  6634. hite.TopSurface = 0
  6635. hite.BottomSurface = 0
  6636. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6637. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6638. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6639. coroutine.resume(coroutine.create(function()
  6640. for i = 0, 1 do
  6641. swait()
  6642. 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)
  6643. 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)
  6644. 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)
  6645. end
  6646. end))
  6647. 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)
  6648. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6649. game:GetService("Debris"):AddItem(hite, 5)
  6650. posit = posit + 2
  6651. end
  6652. for i = 0,1,0.1 do
  6653. swait()
  6654. 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)
  6655. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6656. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6657. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6658. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6659. 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)
  6660. 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)
  6661. end
  6662. for i = 0,1,0.1 do
  6663. swait()
  6664. 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)
  6665. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6666. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6667. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6668. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6669. 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)
  6670. 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)
  6671. end
  6672. posit = -6
  6673. for i = 0, 6 do
  6674. CameraEnshaking(1,3)
  6675. local hite = Instance.new("Part", char)
  6676. hite.Anchored = true
  6677. hite.CanCollide = false
  6678. hite.FormFactor = 3
  6679. hite.Name = "Ring"
  6680. hite.Material = "Neon"
  6681. hite.Size = Vector3.new(1, 1, 1)
  6682. hite.Transparency = 1
  6683. hite.TopSurface = 0
  6684. hite.BottomSurface = 0
  6685. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6686. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6687. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6688. 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)
  6689. coroutine.resume(coroutine.create(function()
  6690. for i = 0, 2 do
  6691. swait()
  6692. 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)
  6693. 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)
  6694. 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)
  6695. end
  6696. end))
  6697. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6698. game:GetService("Debris"):AddItem(hite, 5)
  6699. posit = posit + 2
  6700. end
  6701. for i = 0,1,0.1 do
  6702. swait()
  6703. 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)
  6704. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6705. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6706. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6707. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6708. 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)
  6709. 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)
  6710. end
  6711. hum.WalkSpeed = storehumanoidWS
  6712. attack = false
  6713. end
  6714.  
  6715. function EquinoxOrbs()
  6716. hum.WalkSpeed = 0
  6717. attack = true
  6718. local radm = math.random(1,3)
  6719. if radm == 1 then
  6720. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6721. elseif radm == 2 then
  6722. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6723. elseif radm == 3 then
  6724. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6725. end
  6726. for i = 0,1,0.1 do
  6727. swait()
  6728. 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)
  6729. 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)
  6730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6732. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6733. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6734. end
  6735. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6736. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6737. for i = 0, 24 do
  6738. 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"))
  6739. end
  6740. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6741. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6742. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6743. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6744. for i = 0,4,0.1 do
  6745. swait()
  6746. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6747. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6748. CreateMesh(dis,"Sphere",1,1,1)
  6749. dis.Anchored = true
  6750. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6751. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6752. CreateMesh(dis2,"Sphere",1,1,1)
  6753. dis2.Anchored = true
  6754. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6755. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6756. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6757. coroutine.resume(coroutine.create(function()
  6758. swait(60)
  6759. dis.Transparency = 1
  6760. dis2.Transparency = 1
  6761. coroutine.resume(coroutine.create(function()
  6762. for i = 0, 19 do
  6763. swait()
  6764. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6765. end
  6766. hum.CameraOffset = vt(0,0,0)
  6767. end))
  6768. coroutine.resume(coroutine.create(function()
  6769. local eff = Instance.new("ParticleEmitter",dis)
  6770. eff.Texture = "rbxassetid://2273224484"
  6771. eff.LightEmission = 1
  6772. eff.Color = ColorSequence.new(dis.Color)
  6773. eff.Rate = 500000
  6774. eff.Lifetime = NumberRange.new(0.5,2)
  6775. 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)})
  6776. 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)})
  6777. eff.Speed = NumberRange.new(50,450)
  6778. eff.Drag = 5
  6779. eff.Rotation = NumberRange.new(-500,500)
  6780. eff.VelocitySpread = 9000
  6781. eff.RotSpeed = NumberRange.new(-50,50)
  6782. local eff2 = eff:Clone()
  6783. eff2.Parent = dis2
  6784. eff2.LightEmission = 0
  6785. eff2.Color = ColorSequence.new(dis2.Color)
  6786. wait(0.25)
  6787. eff.Enabled = false
  6788. eff2.Enabled = false
  6789. end))
  6790. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6791. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6792. for i = 0, 2 do
  6793. 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)
  6794. 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)
  6795. end
  6796. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6797. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6798. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6799. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6800. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6801. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6802. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6803. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6804. end))
  6805. game:GetService("Debris"):AddItem(dis, 5)
  6806. game:GetService("Debris"):AddItem(dis2, 5)
  6807. 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)
  6808. 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)
  6809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6810. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6811. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6812. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6813. end
  6814. attack = false
  6815. hum.WalkSpeed = storehumanoidWS
  6816. end
  6817. function FallenDEMISE()
  6818. attack = true
  6819. hum.WalkSpeed = 0
  6820. local keptcolor = MAINRUINCOLOR
  6821. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6822. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6823. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6824. for i = 0, 15, 0.1 do
  6825. swait()
  6826. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6827. 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)))
  6828. local at1 = Instance.new("Attachment",dis)
  6829. at1.Position = vt(-25000,0,0)
  6830. local at2 = Instance.new("Attachment",dis)
  6831. at2.Position = vt(25000,0,0)
  6832. local trl = Instance.new('Trail',dis)
  6833. trl.Attachment0 = at1
  6834. trl.FaceCamera = true
  6835. trl.Attachment1 = at2
  6836. trl.Texture = "rbxassetid://1049219073"
  6837. trl.LightEmission = 1
  6838. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6839. trl.Color = ColorSequence.new(dis.Color)
  6840. trl.Lifetime = 5
  6841. local bv = Instance.new("BodyVelocity")
  6842. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6843. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6844. bv.Parent = dis
  6845. game:GetService("Debris"):AddItem(dis, 1)
  6846. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6847. 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"))
  6848. 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"))
  6849. 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)
  6850. 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)
  6851. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6852. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6853. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6854. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6855. end
  6856. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6857. for i = 0, 30, 0.1 do
  6858. swait()
  6859. coroutine.resume(coroutine.create(function()
  6860. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6861. if v:FindFirstChild('Head') then
  6862. dmg(v)
  6863. end
  6864. end
  6865. end))
  6866. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6867. 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)))
  6868. local at1 = Instance.new("Attachment",dis)
  6869. at1.Position = vt(-50000,0,0)
  6870. local at2 = Instance.new("Attachment",dis)
  6871. at2.Position = vt(50000,0,0)
  6872. local trl = Instance.new('Trail',dis)
  6873. trl.Attachment0 = at1
  6874. trl.FaceCamera = true
  6875. trl.Attachment1 = at2
  6876. trl.Texture = "rbxassetid://1049219073"
  6877. trl.LightEmission = 1
  6878. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6879. trl.Color = ColorSequence.new(dis.Color)
  6880. trl.Lifetime = 10
  6881. local bv = Instance.new("BodyVelocity")
  6882. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6883. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6884. bv.Parent = dis
  6885. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6886. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6887. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6888. 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"))
  6889. 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"))
  6890. 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"))
  6891. 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"))
  6892. for i = 0, 2 do
  6893. 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)
  6894. end
  6895. 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)
  6896. 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)
  6897. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6898. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6899. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6900. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6901. end
  6902. attack = false
  6903. hum.WalkSpeed = storehumanoidWS
  6904. end
  6905.  
  6906. function SpeedDrop()
  6907. attack = true
  6908. hum.WalkSpeed = 0
  6909. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6910. local poste = 3
  6911. local rotation = 0
  6912. local rate = 0
  6913. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6914. for i = 0, 124 do
  6915. swait()
  6916. rotation = rotation + rate
  6917. poste = poste + 0.1
  6918. rate = rate + 0.1
  6919. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6920. 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)
  6921. 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)
  6922. 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)
  6923. 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)
  6924. 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)
  6925. 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)
  6926. 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)
  6927. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6928. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6929. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6930. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6931. end
  6932. CameraEnshaking(3,7)
  6933. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6934. local loc = Instance.new("Part", char)
  6935. loc.BrickColor = MAINRUINCOLOR
  6936. loc.CanCollide = false
  6937. loc.FormFactor = 3
  6938. loc.Name = "Ring"
  6939. loc.Material = "Neon"
  6940. loc.Size = Vector3.new(1, 1, 1)
  6941. loc.Transparency = 1
  6942. loc.TopSurface = 0
  6943. loc.BottomSurface = 0
  6944. loc.Anchored = true
  6945. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6946. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6947. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6948. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6949. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6950. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6951. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6952. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6953. coroutine.resume(coroutine.create(function()
  6954. local eff = Instance.new("ParticleEmitter",loc)
  6955. eff.Texture = "rbxassetid://363275192"
  6956. eff.LightEmission = 0.95
  6957. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6958. eff.Rate = 10000
  6959. eff.Lifetime = NumberRange.new(1)
  6960. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6961. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6962. eff.Speed = NumberRange.new(100,500)
  6963. eff.Drag = 5
  6964. eff.Rotation = NumberRange.new(-500,500)
  6965. eff.VelocitySpread = 9000
  6966. eff.RotSpeed = NumberRange.new(-50,50)
  6967. wait(0.5)
  6968. eff.Enabled = false
  6969. end))
  6970. for i = 0, 49 do
  6971. 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)
  6972. end
  6973. for i = 0, 9 do
  6974. 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)
  6975. end
  6976. game:GetService("Debris"):AddItem(loc, 5)
  6977. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6978. hum.WalkSpeed = storehumanoidWS
  6979. attack = false
  6980. end
  6981.  
  6982. function cutesigh()
  6983. attack = true
  6984. hum.WalkSpeed = 0
  6985. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6986. local blush = Instance.new("Decal",hed)
  6987. blush.Texture = "rbxassetid://898404027"
  6988. blush.Face = "Front"
  6989. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6990. for i = 0, 9, 0.1 do
  6991. swait()
  6992. 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)
  6993. 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)
  6994. 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)
  6995. 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)
  6996. 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)
  6997. 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)
  6998. end
  6999. coroutine.resume(coroutine.create(function()
  7000. for i = 0, 49 do
  7001. swait()
  7002. blush.Transparency = blush.Transparency + 0.02
  7003. end
  7004. blush:Destroy()
  7005. end))
  7006. hum.WalkSpeed = storehumanoidWS
  7007. attack = false
  7008. end
  7009.  
  7010. function smiter()
  7011. local targetted = nil
  7012. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7013. targetted = mouse.Target.Parent
  7014. end
  7015. if targetted ~= nil then
  7016. RootPart.CFrame = FaceMouse()[1]
  7017. attack = true
  7018. local radm = math.random(1,3)
  7019. if radm == 1 then
  7020. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7021. elseif radm == 2 then
  7022. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7023. elseif radm == 3 then
  7024. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7025. end
  7026. hum.WalkSpeed = 0
  7027. coroutine.resume(coroutine.create(function()
  7028. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7029. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7030. local vel = Instance.new("BodyPosition", targetted.Head)
  7031. vel.P = 12500
  7032. vel.D = 1000
  7033. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7034. vel.position = targetted.Head.CFrame.p
  7035. end))
  7036. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7037. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7038. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7039. for i = 0,4,0.1 do
  7040. swait()
  7041. 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)
  7042. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7043. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7044. 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)
  7045. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7046. 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)
  7047. 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)
  7048. end
  7049. coroutine.resume(coroutine.create(function()
  7050. CameraEnshaking(6,5)
  7051. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7052. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7053. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7054. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7055. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7056. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7057. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7058. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7059. coroutine.resume(coroutine.create(function()
  7060. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7061. eff.Texture = "rbxassetid://2273224484"
  7062. eff.LightEmission = 1
  7063. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7064. eff.Rate = 500000
  7065. eff.Lifetime = NumberRange.new(0.5,2)
  7066. 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)})
  7067. 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)})
  7068. eff.Speed = NumberRange.new(20,250)
  7069. eff.Drag = 5
  7070. eff.Rotation = NumberRange.new(-500,500)
  7071. eff.VelocitySpread = 9000
  7072. eff.RotSpeed = NumberRange.new(-50,50)
  7073. wait(0.25)
  7074. eff.Enabled = false
  7075. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7076. eff.Texture = "rbxassetid://363275192"
  7077. eff.LightEmission = 0.95
  7078. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7079. eff.Rate = 10000
  7080. eff.Lifetime = NumberRange.new(1.5)
  7081. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7082. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7083. eff.Speed = NumberRange.new(25,150)
  7084. eff.Drag = 5
  7085. eff.Rotation = NumberRange.new(-500,500)
  7086. eff.VelocitySpread = 9000
  7087. eff.RotSpeed = NumberRange.new(-50,50)
  7088. local eff2 = eff:Clone()
  7089. eff2.Parent = targetted.Head
  7090. eff2.Texture = "rbxassetid://284205403"
  7091. eff2.Rate = 10000
  7092. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7093. eff2.Drag = 5
  7094. eff2.Rotation = NumberRange.new(-500,500)
  7095. eff2.VelocitySpread = 9000
  7096. wait(0.5)
  7097. eff2.Enabled = false
  7098. eff.Enabled = false
  7099. end))
  7100. for i = 0, 9 do
  7101. 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)
  7102. end
  7103. for i = 0, 49 do
  7104. local rsiz = math.random(10,50)
  7105. 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)
  7106. end
  7107. game:GetService("Debris"):AddItem(vel,1)
  7108. dmg(targetted)
  7109. end))
  7110. for i = 0,1,0.1 do
  7111. swait()
  7112. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7113. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7114. 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)
  7115. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7116. 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)
  7117. 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)
  7118. end
  7119. attack = false
  7120. hum.WalkSpeed = storehumanoidWS
  7121. end
  7122. end
  7123.  
  7124. function shytaunty()
  7125. attack = true
  7126. hum.WalkSpeed = 0
  7127. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7128. local blush = Instance.new("Decal",hed)
  7129. blush.Texture = "rbxassetid://898404027"
  7130. blush.Face = "Front"
  7131. for i = 0, 13, 0.1 do
  7132. swait()
  7133. 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)
  7134. 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)
  7135. 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)
  7136. 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)
  7137. 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)
  7138. 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)
  7139. end
  7140. coroutine.resume(coroutine.create(function()
  7141. for i = 0, 49 do
  7142. swait()
  7143. blush.Transparency = blush.Transparency + 0.02
  7144. end
  7145. blush:Destroy()
  7146. end))
  7147. hum.WalkSpeed = storehumanoidWS
  7148. attack = false
  7149. end
  7150.  
  7151. function PureBomb()
  7152. attack = true
  7153. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7154. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7155. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7156. local orb = Instance.new("Part", char)
  7157. orb.Anchored = true
  7158. orb.BrickColor = BrickColor.new("Toothpaste")
  7159. orb.CanCollide = false
  7160. orb.FormFactor = 3
  7161. orb.Name = "Ring"
  7162. orb.Material = "Neon"
  7163. orb.Size = Vector3.new(1, 1, 1)
  7164. orb.Transparency = 0
  7165. orb.TopSurface = 0
  7166. orb.BottomSurface = 0
  7167. local orbm = Instance.new("SpecialMesh", orb)
  7168. orbm.MeshType = "Sphere"
  7169. orbm.Name = "SizeMesh"
  7170. orbm.Scale = vt(0,0,0)
  7171. local scaled = 0.1
  7172. local posid = 0
  7173. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7174. for i = 0, 5, 0.1 do
  7175. swait()
  7176. scaled = scaled - 0.001
  7177. posid = posid - scaled
  7178. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7179. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7180. 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)
  7181. 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)
  7182. 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)
  7183. 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)
  7184. 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)
  7185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7186. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7187. 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)
  7188. end
  7189. for i = 0, 2, 0.1 do
  7190. swait()
  7191. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7192. 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)
  7193. 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)
  7194. 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)
  7195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7196. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7197. 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)
  7198. end
  7199. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7200. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7201. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7202. coroutine.resume(coroutine.create(function()
  7203. orb.Anchored = false
  7204. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7205. local a = Instance.new("Part",workspace)
  7206. a.Name = "Direction"
  7207. a.Anchored = true
  7208. a.BrickColor = bc("Bright red")
  7209. a.Material = "Neon"
  7210. a.Transparency = 1
  7211. a.CanCollide = false
  7212. local ray = Ray.new(
  7213. orb.CFrame.p, -- origin
  7214. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7215. )
  7216. local ignore = orb
  7217. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7218. a.BottomSurface = 10
  7219. a.TopSurface = 10
  7220. local distance = (orb.CFrame.p - position).magnitude
  7221. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7222. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7223. orb.CFrame = a.CFrame
  7224. a:Destroy()
  7225. local bv = Instance.new("BodyVelocity")
  7226. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7227. bv.velocity = orb.CFrame.lookVector*125
  7228. bv.Parent = orb
  7229. local hitted = false
  7230. game:GetService("Debris"):AddItem(orb, 15)
  7231. wait()
  7232. local hit =orb.Touched:connect(function(hit)
  7233. if hitted == false then
  7234. hitted = true
  7235. CameraEnshaking(10,2.5)
  7236. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7237. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7238. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7239. for i = 0, 49 do
  7240. 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)
  7241. end
  7242. local eff = Instance.new("ParticleEmitter",orb)
  7243. eff.Texture = "rbxassetid://2273224484"
  7244. eff.LightEmission = 1
  7245. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7246. eff.Rate = 500000
  7247. eff.Lifetime = NumberRange.new(0.5,2)
  7248. 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)})
  7249. 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)})
  7250. eff.Speed = NumberRange.new(20,250)
  7251. eff.Drag = 5
  7252. eff.Rotation = NumberRange.new(-500,500)
  7253. eff.VelocitySpread = 9000
  7254. eff.RotSpeed = NumberRange.new(-50,50)
  7255. coroutine.resume(coroutine.create(function()
  7256. wait(0.25)
  7257. eff.Enabled = false
  7258. end))
  7259. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7260. for i = 0, 9 do
  7261. 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)
  7262. 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)
  7263. end
  7264. orb.Anchored = true
  7265. orb.Transparency = 1
  7266. local eff = Instance.new("ParticleEmitter",orb)
  7267. eff.Texture = "rbxassetid://2273224484"
  7268. eff.LightEmission = 1
  7269. eff.Color = ColorSequence.new(Color3.new(M))
  7270. eff.Rate = 500000
  7271. eff.Lifetime = NumberRange.new(0.5,2)
  7272. 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)})
  7273. 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)})
  7274. eff.Speed = NumberRange.new(20,250)
  7275. eff.Drag = 5
  7276. eff.Rotation = NumberRange.new(-500,500)
  7277. eff.VelocitySpread = 9000
  7278. eff.RotSpeed = NumberRange.new(-50,50)
  7279. coroutine.resume(coroutine.create(function()
  7280. wait(1)
  7281. eff.Enabled = false
  7282. end))
  7283. wait(8)
  7284. orb:Destroy()
  7285. end
  7286. end)
  7287. end))
  7288. for i = 0, 1, 0.1 do
  7289. swait()
  7290. 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)
  7291. 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)
  7292. 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)
  7293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7294. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7295. 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)
  7296. end
  7297. attack = false
  7298. end
  7299.  
  7300.  
  7301. function BeamOfDeath()
  7302. coroutine.resume(coroutine.create(function()
  7303. attack = true
  7304. hum.WalkSpeed = 0
  7305. for i = 0, 11, 0.1 do
  7306. swait()
  7307. 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)
  7308. 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)
  7309. 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)
  7310. 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)
  7311. 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)
  7312. 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)
  7313. end
  7314. for i = 0, 1, 0.1 do
  7315. swait()
  7316. 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)
  7317. 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)
  7318. 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)
  7319. 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)
  7320. 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)
  7321. 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)
  7322. end
  7323. hum.WalkSpeed = storehumanoidWS
  7324. attack = false
  7325. end))
  7326. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7327. local radm = math.random(1,3)
  7328. if radm == 1 then
  7329. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7330. elseif radm == 2 then
  7331. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7332. elseif radm == 3 then
  7333. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7334. end
  7335. local keptcolor = MAINRUINCOLOR
  7336. local orb = Instance.new("Part", char)
  7337. orb.BrickColor = keptcolor
  7338. orb.CanCollide = false
  7339. orb.FormFactor = 3
  7340. orb.Name = "Ring"
  7341. orb.Material = "Neon"
  7342. orb.Size = Vector3.new(1, 1, 1)
  7343. orb.Transparency = 1
  7344. orb.TopSurface = 0
  7345. orb.BottomSurface = 0
  7346. local orbm = Instance.new("SpecialMesh", orb)
  7347. orbm.MeshType = "Sphere"
  7348. orbm.Name = "SizeMesh"
  7349. orbm.Scale = vt(22.5,10000,22.5)
  7350. orb.CFrame = mouse.Hit
  7351. orb.Anchored = true
  7352. orb.Orientation = vt(0,0,0)
  7353. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7354. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7355. coroutine.resume(coroutine.create(function()
  7356. coroutine.resume(coroutine.create(function()
  7357. for i = 0, 175 do
  7358. swait()
  7359. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7360. orb.Transparency = orb.Transparency - 0.005
  7361. end
  7362. end))
  7363. wait(2)
  7364. coroutine.resume(coroutine.create(function()
  7365. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7366. if hfr ~= nil then
  7367. for i = 0, 24.5 do
  7368. local deb = Instance.new("Part", char)
  7369. deb.Anchored = true
  7370. deb.CanCollide = false
  7371. deb.FormFactor = 3
  7372. deb.Name = "Ring"
  7373. deb.Material = hitfloor.Material
  7374. deb.Color = hitfloor.Color
  7375. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7376. deb.Transparency = 0
  7377. deb.TopSurface = 0
  7378. deb.BottomSurface = 0
  7379. 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)))
  7380. local deb2 = Instance.new("Part", char)
  7381. deb2.CanCollide = false
  7382. deb2.FormFactor = 3
  7383. deb2.Name = "Ring"
  7384. deb2.Material = hitfloor.Material
  7385. deb2.Color = hitfloor.Color
  7386. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7387. deb2.Transparency = 0
  7388. deb2.TopSurface = 0
  7389. deb2.BottomSurface = 0
  7390. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7391. 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)))
  7392. local eff = Instance.new("ParticleEmitter",deb)
  7393. eff.Texture = "rbxassetid://363275192"
  7394. eff.LightEmission = 0.95
  7395. eff.Color = ColorSequence.new(keptcolor.Color)
  7396. eff.Rate = 100
  7397. eff.Lifetime = NumberRange.new(1)
  7398. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7399. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7400. eff.Speed = NumberRange.new(0,5)
  7401. eff.Rotation = NumberRange.new(-500,500)
  7402. eff.VelocitySpread = 9000
  7403. eff.RotSpeed = NumberRange.new(-10,10)
  7404. local at1 = Instance.new('Attachment',deb2)
  7405. at1.Position = vt(0,15,0)
  7406. local at2 = Instance.new('Attachment',deb2)
  7407. at2.Position = vt(0,-15,0)
  7408. local tl = Instance.new('Trail',deb2)
  7409. tl.Attachment0 = at1
  7410. tl.Attachment1 = at2
  7411. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7412. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7413. tl.Lifetime = 1
  7414. game:GetService("Debris"):AddItem(deb,30)
  7415. game:GetService("Debris"):AddItem(deb2,30)
  7416. coroutine.resume(coroutine.create(function()
  7417. wait(15)
  7418. eff.Enabled = false
  7419. for i = 0, 49 do
  7420. swait()
  7421. deb.Transparency = deb.Transparency + 0.02
  7422. end
  7423. wait(1)
  7424. deb:Destroy()
  7425. end))
  7426. end
  7427. end
  7428. end))
  7429. for i = 0, 199 do
  7430. swait(1.5)
  7431. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7432. if v:FindFirstChild('Head') then
  7433. dmg(v)
  7434. end
  7435. end
  7436. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7437. 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)
  7438. 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)
  7439. 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)
  7440. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7441. end
  7442. orb:Destroy()
  7443. end))
  7444. end
  7445.  
  7446. function Beams()
  7447. attack = true
  7448. hum.WalkSpeed = 0
  7449. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7450. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7451. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7452. local keptcolor = MAINRUINCOLOR
  7453. coroutine.resume(coroutine.create(function()
  7454. for i = 0, 96 do
  7455. swait(5)
  7456. local orb = Instance.new("Part", char)
  7457. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7458. orb.BrickColor = keptcolor
  7459. orb.CanCollide = false
  7460. orb.FormFactor = 3
  7461. orb.Name = "Ring"
  7462. orb.Material = "Neon"
  7463. orb.Size = Vector3.new(1, 1, 1)
  7464. orb.Transparency = 0
  7465. orb.TopSurface = 0
  7466. orb.BottomSurface = 0
  7467. orb.Anchored = true
  7468. local orbm = Instance.new("SpecialMesh", orb)
  7469. orbm.MeshType = "Sphere"
  7470. orbm.Name = "SizeMesh"
  7471. orbm.Scale = vt(1.25,1.25,1.25)
  7472. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7473. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7474. coroutine.resume(coroutine.create(function()
  7475. wait(0.5)
  7476. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7477. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7478. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7479. orb.Transparency = 1
  7480. local a = Instance.new("Part",char)
  7481. a.Name = "Direction"
  7482. a.Anchored = true
  7483. a.BrickColor = keptcolor
  7484. a.Material = "Neon"
  7485. a.Transparency = 0.25
  7486. a.Shape = "Cylinder"
  7487. local ht = Instance.new("Part",char)
  7488. ht.Name = "DirectionHit"
  7489. ht.Anchored = true
  7490. ht.BrickColor = keptcolor
  7491. ht.CanCollide = false
  7492. ht.Transparency = 1
  7493. ht.Size = vt(0.1,0.1,0.1)
  7494. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7495. a.CanCollide = false
  7496. local ray = Ray.new(
  7497. orb.CFrame.p, -- origin
  7498. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7499. )
  7500. local ignore = char
  7501. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7502. a.BottomSurface = 10
  7503. a.TopSurface = 10
  7504. local distance = (orb.CFrame.p - position).magnitude
  7505. a.Size = Vector3.new(distance,1,1)
  7506. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7507. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7508. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7509. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7510. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7511. coroutine.resume(coroutine.create(function()
  7512. local eff = Instance.new("ParticleEmitter",ht)
  7513. eff.Texture = "rbxassetid://284205403"
  7514. eff.LightEmission = 0.95
  7515. eff.Color = ColorSequence.new(keptcolor.Color)
  7516. eff.Rate = 500
  7517. eff.Lifetime = NumberRange.new(0.5)
  7518. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7519. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7520. eff.Speed = NumberRange.new(10,50)
  7521. eff.Drag = 5
  7522. eff.Rotation = NumberRange.new(-500,500)
  7523. eff.VelocitySpread = 9000
  7524. eff.RotSpeed = NumberRange.new(-500,500)
  7525. wait(0.25)
  7526. eff.Enabled = false
  7527. end))
  7528. for i = 0, 4 do
  7529. 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)
  7530. 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)
  7531. local rsiz = math.random(10,30)
  7532. 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)
  7533. end
  7534. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7535. local msh = Instance.new("SpecialMesh",a)
  7536. msh.MeshType = "Cylinder"
  7537. msh.Scale = vt(1,1,1)
  7538. for i = 0, 49 do
  7539. swait()
  7540. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7541. a.Transparency = a.Transparency + 0.02
  7542. end
  7543. orb:Destroy()
  7544. a:Destroy()
  7545. ht:Destroy()
  7546. end))
  7547. game:GetService("Debris"):AddItem(orb, 10)
  7548. end
  7549. end))
  7550. for i = 0,6,0.1 do
  7551. swait()
  7552. 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)
  7553. 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)
  7554. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7557. 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)
  7558. 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)
  7559. end
  7560. hum.WalkSpeed = storehumanoidWS
  7561. attack = false
  7562. end
  7563.  
  7564. function CalamityTrans()
  7565. attack = true
  7566. rainbowmode = false
  7567. chaosmode = false
  7568. ModeOfGlitch = 8889
  7569. hum.WalkSpeed = 0
  7570. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7571. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7572. elocacenter.Anchored = true
  7573. elocacenter.CFrame = root.CFrame
  7574. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7575. eloca1.Anchored = true
  7576. eloca1.CFrame = elocacenter.CFrame
  7577. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7578. eloca2.Anchored = true
  7579. eloca2.CFrame = elocacenter.CFrame
  7580. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7581. eloca3.Anchored = true
  7582. eloca3.CFrame = elocacenter.CFrame
  7583. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7584. eloca4.Anchored = true
  7585. eloca4.CFrame = elocacenter.CFrame
  7586. local lookavec = 0
  7587. local speeds = 0
  7588. CameraEnshaking(3,2.5)
  7589. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7590. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7591. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7592. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7593. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7594. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7595. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7596. for i = 0, 5, 0.1 do
  7597. swait()
  7598. ---
  7599. lookavec = lookavec + 1
  7600. speeds = speeds + 10
  7601. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7602. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7603. 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)
  7604. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7605. 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)
  7606. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7607. 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)
  7608. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7609. 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)
  7610. ---
  7611. 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)
  7612. 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)
  7613. 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)
  7614. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7615. 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)
  7616. 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)
  7617. end
  7618. for i = 0, 5, 0.1 do
  7619. swait()
  7620. ---
  7621. speeds = speeds + 10
  7622. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7623. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7624. 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)
  7625. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7626. 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)
  7627. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7628. 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)
  7629. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7630. 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)
  7631. ---
  7632. 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)
  7633. 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)
  7634. 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)
  7635. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7636. 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)
  7637. 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)
  7638. end
  7639. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7640. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7641. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7642. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7643. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7644. CameraEnshaking(1,3)
  7645. for i = 0, 24 do
  7646. 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)
  7647. 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)
  7648. 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)
  7649. 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)
  7650. end
  7651. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7652. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7653. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7654. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7655. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7656. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7657. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7658. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7659. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7660. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7661. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7662. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7663. for i = 0, 5, 0.1 do
  7664. swait()
  7665. ---
  7666. lookavec = lookavec - 1
  7667. speeds = speeds + 10
  7668. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7669. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7670. 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)
  7671. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7672. 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)
  7673. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7674. 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)
  7675. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7676. 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)
  7677. ---
  7678. 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)
  7679. 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)
  7680. 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)
  7681. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7682. 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)
  7683. 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)
  7684. end
  7685. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7686. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7687. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7688. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7689. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7690. for i = 0, 49 do
  7691. 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)
  7692. 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)
  7693. end
  7694. CameraEnshaking(5,6)
  7695. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7696. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7697. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7698. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7699. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7700. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7701. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7702. storehumanoidWS = 100
  7703. hum.WalkSpeed = 100
  7704. rainbowmode = false
  7705. chaosmode = false
  7706. tl1.Enabled = true
  7707. tl2.Enabled = true
  7708. tl3.Enabled = true
  7709. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7710. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7711. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7712. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7713. for i, v in pairs(mw2:GetChildren()) do
  7714. if v:IsA("Part") then
  7715. v.BrickColor = MAINRUINCOLOR
  7716. v.Material = "Neon"
  7717. end
  7718. end
  7719. for i, v in pairs(mw1:GetChildren()) do
  7720. if v:IsA("Part") then
  7721. v.Transparency = 0
  7722. v.BrickColor = MAINRUINCOLOR
  7723. v.Material = "Neon"
  7724. end
  7725. end
  7726. for i, v in pairs(m:GetChildren()) do
  7727. if v:IsA("Part") then
  7728. v.Color = Color3.new(0.5,0,1)
  7729. v.Material = "Neon"
  7730. end
  7731. end
  7732. for i, v in pairs(m2:GetChildren()) do
  7733. if v:IsA("Part") then
  7734. v.Color = Color3.new(0.25,0,1)
  7735. v.Material = "Neon"
  7736. end
  7737. end
  7738. for i, v in pairs(m3:GetChildren()) do
  7739. if v:IsA("Part") then
  7740. v.Color = Color3.new(0.45,0,1)
  7741. v.Material = "Neon"
  7742. end
  7743. end
  7744. for i, v in pairs(extrawingmod1:GetChildren()) do
  7745. if v:IsA("Part") then
  7746. v.Transparency = 0.75
  7747. v.Color = Color3.new(0.25,0,1)
  7748. v.Material = "Neon"
  7749. end
  7750. end
  7751. for i, v in pairs(extrawingmod2:GetChildren()) do
  7752. if v:IsA("Part") then
  7753. v.Transparency = 0.75
  7754. v.Color = Color3.new(0.5,0,1)
  7755. v.Material = "Neon"
  7756. end
  7757. end
  7758. attack = false
  7759. end
  7760.  
  7761. function GleamingBeam()
  7762. attack = true
  7763. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7764. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7765. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7766. local rsiz = math.random(1,15)
  7767. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7768. hb.Anchored = true
  7769. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7770. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7771. for i = 0, 16, 0.1 do
  7772. swait()
  7773. rsiz = math.random(5,15)
  7774. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7775. 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)
  7776. 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)
  7777. 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)
  7778. 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)
  7779. 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)
  7780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7781. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7782. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7783. end
  7784. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7785. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7786. for i = 0, 2 do
  7787. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7788. end
  7789. 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)
  7790. 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)
  7791. 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)
  7792. for i = 0, 49 do
  7793. local rsiza = math.random(1,15)
  7794. 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)
  7795. end
  7796. local a = Instance.new("Part",Character)
  7797. a.Name = "Direction"
  7798. a.Anchored = true
  7799. a.BrickColor = MAINRUINCOLOR
  7800. a.Material = "Neon"
  7801. a.Transparency = 0
  7802. a.Shape = "Cylinder"
  7803. a.CanCollide = false
  7804. local ba = Instance.new("Part",Character)
  7805. ba.Name = "HitDirect"
  7806. ba.Anchored = true
  7807. ba.BrickColor = bc("Cool yellow")
  7808. ba.Material = "Neon"
  7809. ba.Transparency = 1
  7810. ba.CanCollide = false
  7811. local ray = Ray.new(
  7812. hb.CFrame.p, -- origin
  7813. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7814. )
  7815. local ignore = Character
  7816. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7817. a.BottomSurface = 10
  7818. a.TopSurface = 10
  7819. local distance = (hb.CFrame.p - position).magnitude
  7820. a.Size = Vector3.new(distance, 1, 1)
  7821. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7822. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7823. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7824. local msh = Instance.new("SpecialMesh",a)
  7825. msh.MeshType = "Cylinder"
  7826. msh.Scale = vt(1,4,4)
  7827. game:GetService("Debris"):AddItem(a, 30)
  7828. game:GetService("Debris"):AddItem(ba, 30)
  7829. for i = 0, 25, 0.1 do
  7830. swait()
  7831. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7832. ray = Ray.new(
  7833. hb.CFrame.p, -- origin
  7834. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7835. )
  7836. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7837. distance = (hb.CFrame.p - position).magnitude
  7838. a.Size = Vector3.new(distance, 1, 1)
  7839. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7840. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7841. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7842. rsiz = math.random(5,25)
  7843. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7844. 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)
  7845. for c = 0, 2 do
  7846. 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)
  7847. end
  7848. 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)
  7849. 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)
  7850. 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)
  7851. 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)
  7852. 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)
  7853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7854. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7855. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7856. end
  7857. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7858. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7859. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7860. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7861. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7862. 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)
  7863. 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)
  7864. 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)
  7865. 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)
  7866. 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)
  7867. 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)
  7868. for i = 0, 49 do
  7869. local rsiza = math.random(1,15)
  7870. 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)
  7871. end
  7872. for i = 0, 49 do
  7873. rsiz = math.random(1,8)
  7874. 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)
  7875. end
  7876. coroutine.resume(coroutine.create(function()
  7877. for i = 0, 99 do
  7878. swait()
  7879. a.Transparency = a.Transparency + 0.01
  7880. end
  7881. a:Destroy()
  7882. ba:Destroy()
  7883. end))
  7884. hb:Destroy()
  7885. attack = false
  7886. end
  7887.  
  7888. function DualGleamingBeam()
  7889. attack = true
  7890. hum.WalkSpeed = 0
  7891. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7892. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7893. local radm = math.random(1,3)
  7894. if radm == 1 then
  7895. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7896. elseif radm == 2 then
  7897. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7898. elseif radm == 3 then
  7899. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7900. end
  7901. local rsiz = math.random(1,15)
  7902. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7903. hb.Anchored = true
  7904. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7905. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7906. hb2.Anchored = true
  7907. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7908. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7909. for i = 0, 14, 0.1 do
  7910. swait()
  7911. rsiz = math.random(5,15)
  7912. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7913. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7914. 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)
  7915. 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)
  7916. 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)
  7917. 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"))
  7918. 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)
  7919. 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)
  7920. 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)
  7921. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7922. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7923. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7924. end
  7925. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7926. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7927. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7928. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7929. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7930. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7931. 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)
  7932. 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)
  7933. 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)
  7934. 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"))
  7935. 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"))
  7936. 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"))
  7937. for i = 0, 49 do
  7938. local rsiza = math.random(1,15)
  7939. 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)
  7940. 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)
  7941. end
  7942. local a = Instance.new("Part",Character)
  7943. a.Name = "Direction"
  7944. a.Anchored = true
  7945. a.BrickColor = MAINRUINCOLOR
  7946. a.Material = "Neon"
  7947. a.Transparency = 0
  7948. a.Shape = "Cylinder"
  7949. a.CanCollide = false
  7950. local a2 = Instance.new("Part",Character)
  7951. a2.Name = "Direction"
  7952. a2.Anchored = true
  7953. a2.BrickColor = MAINRUINCOLOR
  7954. a2.Material = "Neon"
  7955. a2.Transparency = 0
  7956. a2.Shape = "Cylinder"
  7957. a2.CanCollide = false
  7958. local ba = Instance.new("Part",Character)
  7959. ba.Name = "HitDirect"
  7960. ba.Anchored = true
  7961. ba.BrickColor = MAINRUINCOLOR
  7962. ba.Material = "Neon"
  7963. ba.Transparency = 1
  7964. ba.CanCollide = false
  7965. local ba2 = Instance.new("Part",Character)
  7966. ba2.Name = "HitDirect"
  7967. ba2.Anchored = true
  7968. ba2.BrickColor = MAINRUINCOLOR
  7969. ba2.Material = "Neon"
  7970. ba2.Transparency = 1
  7971. ba2.CanCollide = false
  7972. local ray = Ray.new(
  7973. hb.CFrame.p, -- origin
  7974. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7975. )
  7976. local ignore = Character
  7977. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7978. local ray2 = Ray.new(
  7979. hb2.CFrame.p, -- origin
  7980. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7981. )
  7982. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7983. local distance2 = (hb2.CFrame.p - position).magnitude
  7984.  
  7985. a.BottomSurface = 10
  7986. a.TopSurface = 10
  7987. local distance = (hb.CFrame.p - position).magnitude
  7988. a.Size = Vector3.new(distance, 1, 1)
  7989. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7990. a2.BottomSurface = 10
  7991. a2.TopSurface = 10
  7992. a2.Size = Vector3.new(distance2, 1, 1)
  7993. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7994. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7995. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7996. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7997. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7998. local msh = Instance.new("SpecialMesh",a)
  7999. msh.MeshType = "Cylinder"
  8000. msh.Scale = vt(1,4,4)
  8001. local msh2 = Instance.new("SpecialMesh",a2)
  8002. msh2.MeshType = "Cylinder"
  8003. msh2.Scale = vt(1,4,4)
  8004. game:GetService("Debris"):AddItem(a, 30)
  8005. game:GetService("Debris"):AddItem(a2, 30)
  8006. game:GetService("Debris"):AddItem(ba, 30)
  8007. game:GetService("Debris"):AddItem(ba2, 30)
  8008. for i = 0, 20, 0.1 do
  8009. swait()
  8010. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8011. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8012. ray = Ray.new(
  8013. hb.CFrame.p, -- origin
  8014. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8015. )
  8016. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8017. distance = (hb.CFrame.p - position).magnitude
  8018. ray2 = Ray.new(
  8019. hb2.CFrame.p, -- origin
  8020. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8021. )
  8022. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8023. distance2 = (hb2.CFrame.p - position).magnitude
  8024. a.Size = Vector3.new(distance, 1, 1)
  8025. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8026. a2.Size = Vector3.new(distance2, 1, 1)
  8027. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8028. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8029. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8030. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8031. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8032. rsiz = math.random(5,25)
  8033. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8034. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8035. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8036. if v:FindFirstChild('Head') then
  8037. dmg(v)
  8038. end
  8039. end
  8040. coroutine.resume(coroutine.create(function()
  8041. local bx = Instance.new("Part",Character)
  8042. bx.Name = "Location"
  8043. bx.Anchored = true
  8044. bx.BrickColor = MAINRUINCOLOR
  8045. bx.Material = "Neon"
  8046. bx.Transparency = 1
  8047. bx.CanCollide = false
  8048. bx.Position = ba.Position
  8049. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8050. wait(math.random(1,2))
  8051. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8052. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8053. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8054. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8055. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8056. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8057. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8058. if v:FindFirstChild('Head') then
  8059. dmg(v)
  8060. end
  8061. end
  8062. wait(5)
  8063. bx:Destroy()
  8064. end))
  8065. 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)
  8066. 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)
  8067. for c = 0, 2 do
  8068. 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)
  8069. end
  8070. 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)
  8071. 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)
  8072. 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)
  8073. 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)
  8074. 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)
  8075. 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)
  8076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8077. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8078. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8079. end
  8080. for i = 0, 1 do
  8081. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8082. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8083. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8084. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8085. end
  8086. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8087. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8088. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8089. if v:FindFirstChild('Head') then
  8090. dmg(v)
  8091. end
  8092. end
  8093. 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)
  8094. 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)
  8095. 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)
  8096. 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)
  8097. 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)
  8098. 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)
  8099. 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"))
  8100. 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"))
  8101. 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"))
  8102. for i = 0, 49 do
  8103. local rsiza = math.random(1,15)
  8104. 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)
  8105. 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)
  8106. end
  8107. for i = 0, 49 do
  8108. rsiz = math.random(1,8)
  8109. 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)
  8110. end
  8111. coroutine.resume(coroutine.create(function()
  8112. for i = 0, 99 do
  8113. swait()
  8114. a.Transparency = a.Transparency + 0.01
  8115. a2.Transparency = a2.Transparency + 0.01
  8116. end
  8117. a:Destroy()
  8118. ba:Destroy()
  8119. a2:Destroy()
  8120. ba2:Destroy()
  8121. end))
  8122. hum.WalkSpeed = storehumanoidWS
  8123. hb:Destroy()
  8124. hb2:Destroy()
  8125. attack = false
  8126. end
  8127.  
  8128. function dragin()
  8129. local targetted = nil
  8130. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8131. targetted = mouse.Target.Parent
  8132. end
  8133. if targetted ~= nil then
  8134. RootPart.CFrame = FaceMouse()[1]
  8135. attack = true
  8136. hum.WalkSpeed = 0
  8137. for x = 0, 1 do
  8138. for i = 0,1,0.5 do
  8139. swait()
  8140. 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)
  8141. 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)
  8142. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8143. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8144. 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)
  8145. 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)
  8146. end
  8147. for i = 0,1,0.5 do
  8148. swait()
  8149. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8150. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8152. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8153. 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)
  8154. 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)
  8155. end
  8156. for i = 0,1,0.5 do
  8157. swait()
  8158. 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)
  8159. 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)
  8160. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8161. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8162. 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)
  8163. 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)
  8164. end
  8165. for i = 0,1,0.5 do
  8166. swait()
  8167. 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)
  8168. 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)
  8169. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8171. 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)
  8172. 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)
  8173. end
  8174. end
  8175. coroutine.resume(coroutine.create(function()
  8176. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8177. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8178. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8179. end))
  8180. local A1 = Instance.new("Attachment",targetted.Head)
  8181. local A2 = Instance.new("Attachment",sorb)
  8182. local Beem = Instance.new("Beam",tors)
  8183. Beem.Attachment0 = A1
  8184. Beem.Attachment1 = A2
  8185. Beem.Texture = "rbxassetid://897585362"
  8186. Beem.LightEmission = 0.75
  8187. Beem.FaceCamera = true
  8188. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8189. Beem.Width0 = 1
  8190. Beem.Width1 = 1
  8191. Beem.TextureMode = "Wrap"
  8192. Beem.TextureLength = 1
  8193. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8194. 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)
  8195. 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)
  8196. for x = 0, 24 do
  8197. local rsiz = math.random(5,15)
  8198. 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)
  8199. end
  8200.  
  8201. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8202. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8203. local radm = math.random(1,2)
  8204. if radm == 1 then
  8205. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8206. elseif radm == 2 then
  8207. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8208. end
  8209. for i = 0,3,0.1 do
  8210. swait()
  8211. coroutine.resume(coroutine.create(function()
  8212. local rsiz = math.random(5,15)
  8213. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8214. 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)
  8215. end))
  8216. 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)
  8217. 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)
  8218. 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)
  8219. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8220. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8221. 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)
  8222. 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)
  8223. end
  8224. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8225. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8226. local vel = Instance.new("BodyPosition", targetted.Head)
  8227. vel.P = 12500
  8228. vel.D = 1000
  8229. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8230. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8231. for i = 0,4,0.1 do
  8232. swait()
  8233. coroutine.resume(coroutine.create(function()
  8234. local rsiz = math.random(5,15)
  8235. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8236. 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)
  8237. end))
  8238. 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)
  8239. 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)
  8240. 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)
  8241. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8242. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8243. 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)
  8244. 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)
  8245. end
  8246. local visibility = 0
  8247. coroutine.resume(coroutine.create(function()
  8248. for i = 0, 49 do
  8249. swait()
  8250. visibility = visibility + 0.02
  8251. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8252. end
  8253. Beem:Destroy()
  8254. A1:Destroy()
  8255. A2:Destroy()
  8256. end))
  8257. game:GetService("Debris"):AddItem(vel,0.75)
  8258. attack = false
  8259. hum.WalkSpeed = storehumanoidWS
  8260.  
  8261. end
  8262. end
  8263.  
  8264. function hugg()
  8265. attack = true
  8266. hum.WalkSpeed = 5
  8267. local rsiz = math.random(5,15)
  8268. for i = 0, 2, 0.1 do
  8269. swait()
  8270. 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)
  8271. 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)
  8272. 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)
  8273. 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)
  8274. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8275. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8276. end
  8277. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8278. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8279. hb.Anchored = true
  8280. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8281. local huggedperson = nil
  8282. local act = false
  8283. local alreadydid = false
  8284. for i = 0, 3, 0.1 do
  8285. swait()
  8286. if act == false then
  8287. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8288. if v:FindFirstChild('Head') then
  8289. if alreadydid == false then
  8290. huggedperson = v
  8291. hum.WalkSpeed = 0
  8292. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8293. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8294. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8295. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8296. local radm = math.random(1,3)
  8297. if radm == 1 then
  8298. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8299. elseif radm == 2 then
  8300. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8301. elseif radm == 3 then
  8302. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8303. end
  8304. root.Anchored = true
  8305. coroutine.resume(coroutine.create(function()
  8306. huggedperson.Humanoid.WalkSpeed = 0
  8307. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8308. end))
  8309. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8310. alreadydid = true
  8311. act = true
  8312. print(huggedperson.Name)
  8313. end
  8314. end
  8315. end
  8316. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8317. 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)
  8318. elseif act == true then
  8319. coroutine.resume(coroutine.create(function()
  8320. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8321. end))
  8322. rsiz = math.random(5,15)
  8323. 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)
  8324. 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)
  8325. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8326. end
  8327. 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)
  8328. 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)
  8329. 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)
  8330. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8331. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8332. end
  8333. hb:Destroy()
  8334. if act == true then
  8335. for x = 0, 2 do
  8336. for i = 0, 2, 0.1 do
  8337. swait()
  8338. coroutine.resume(coroutine.create(function()
  8339. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8340. end))
  8341. rsiz = math.random(5,15)
  8342. 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)
  8343. 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)
  8344. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8345. 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)
  8346. 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)
  8347. 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)
  8348. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8349. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8350. end
  8351. for i = 0, 2, 0.1 do
  8352. swait()
  8353. coroutine.resume(coroutine.create(function()
  8354. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8355. end))
  8356. rsiz = math.random(5,15)
  8357. 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)
  8358. 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)
  8359. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8360. 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)
  8361. 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)
  8362. 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)
  8363. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8364. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8365. end
  8366. end
  8367. end
  8368. hum.WalkSpeed = storehumanoidWS
  8369. root.Anchored = false
  8370. if act == true then
  8371. coroutine.resume(coroutine.create(function()
  8372. huggedperson.Humanoid.WalkSpeed = 16
  8373. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8374. end))
  8375. end
  8376. hum.WalkSpeed = storehumanoidWS
  8377. attack = false
  8378. end
  8379.  
  8380. function Counter()
  8381. hum.WalkSpeed = 0
  8382. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8383. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8384. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8385. attack = true
  8386. for i = 0,1,0.1 do
  8387. swait()
  8388. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8389. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8390. 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)
  8391. 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)
  8392. 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)
  8393. 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)
  8394. end
  8395. CameraEnshaking(3,4)
  8396. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8397. 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)
  8398. 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)
  8399. 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)
  8400. coroutine.resume(coroutine.create(function()
  8401. local eff = Instance.new("ParticleEmitter",root)
  8402. eff.Texture = "rbxassetid://363275192"
  8403. eff.LightEmission = 0.95
  8404. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8405. eff.Rate = 10000
  8406. eff.Lifetime = NumberRange.new(1)
  8407. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8408. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8409. eff.Speed = NumberRange.new(10,125)
  8410. eff.Drag = 5
  8411. eff.Rotation = NumberRange.new(-500,500)
  8412. eff.VelocitySpread = 9000
  8413. eff.RotSpeed = NumberRange.new(-50,50)
  8414. local eff2 = eff:Clone()
  8415. eff2.Parent = root
  8416. eff2.Texture = "rbxassetid://284205403"
  8417. eff2.Rate = 10000
  8418. 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)})
  8419. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8420. eff2.Drag = 5
  8421. eff2.Speed = NumberRange.new(10,50)
  8422. eff2.Rotation = NumberRange.new(-500,500)
  8423. eff2.VelocitySpread = 9000
  8424. wait(0.25)
  8425. eff2.Enabled = false
  8426. eff.Enabled = false
  8427. wait(3)
  8428. eff2:Destroy()
  8429. eff:Destroy()
  8430. end))
  8431. for i = 0, 9 do
  8432. 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)
  8433. end
  8434. for i = 0, 24 do
  8435. local rsiz = math.random(5,20)
  8436. 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)
  8437. end
  8438. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8439. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8440. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8441. for i = 0,2,0.1 do
  8442. swait()
  8443. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8444. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8445. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8446. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8447. 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)
  8448. 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)
  8449. end
  8450. hum.WalkSpeed = storehumanoidWS
  8451. attack = false
  8452. end
  8453.  
  8454. function superjump()
  8455. attack = true
  8456. hum.WalkSpeed = 0
  8457. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8458. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8459. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8460. for i = 0, 2, 0.1 do
  8461. swait()
  8462. root.Velocity = vt(0,0,0)
  8463. 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"))
  8464. 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)
  8465. 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)
  8466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8468. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8469. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8470. end
  8471. MagniDamage(root, 28, 25,50, 25, "Normal")
  8472. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8473. hum.Jump = true
  8474. swait()
  8475. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8476. 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)
  8477. 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)
  8478. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8479. for i = 0, 3, 0.1 do
  8480. swait()
  8481. 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)
  8482. 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)
  8483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8485. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8486. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8487. end
  8488. attack = false
  8489. if equipped == false then
  8490. hum.WalkSpeed = 16
  8491. else
  8492. hum.WalkSpeed = 24
  8493. end
  8494. end
  8495.  
  8496.  
  8497. -------------------------------------
  8498.  
  8499.  
  8500.  
  8501. Humanoid.Animator.Parent = nil
  8502.  
  8503.  
  8504.  
  8505. -------------------------------------
  8506.  
  8507. local attacktype = 1
  8508. mouse.Button1Down:connect(function()
  8509. if attack == false and attacktype == 1 then
  8510. attacktype = 2
  8511. attackone()
  8512. elseif attack == false and attacktype == 2 then
  8513. attacktype = 3
  8514. attacktwo()
  8515. elseif attack == false and attacktype == 3 then
  8516. attacktype = 1
  8517. attackthree()
  8518. elseif attack == false and attacktype == 4 then
  8519. attacktype = 1
  8520. --attackfour()
  8521. end
  8522. end)
  8523. mouse.KeyDown:connect(function(k)
  8524. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8525. --normalmog()
  8526. ModeOfGlitch = 1
  8527. storehumanoidWS = 16
  8528. hum.WalkSpeed = 16
  8529. rainbowmode = false
  8530. chaosmode = false
  8531. newTheme("rbxassetid://769693973",48.6,1,30)
  8532. RecolorTextAndRename("CODED REALITY",Color3.new(0,0.25,0),Color3.new(0,1,0),"Antique")
  8533. MAINRUINCOLOR = BrickColor.new("Bright green")
  8534. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8535. end
  8536. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8537. ModeOfGlitch = 2
  8538. storehumanoidWS = 16
  8539. hum.WalkSpeed = 16
  8540. rainbowmode = false
  8541. chaosmode = false
  8542. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8543. newTheme("rbxassetid://1539245059",0,1,0.85)
  8544. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8545. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8546. end
  8547. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8548. ModeOfGlitch = 3
  8549. storehumanoidWS = 14
  8550. hum.WalkSpeed = 14
  8551. rainbowmode = false
  8552. chaosmode = false
  8553. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8554. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8555. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8556. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8557. end
  8558. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8559. ModeOfGlitch = 4
  8560. storehumanoidWS = 14
  8561. hum.WalkSpeed = 14
  8562. rainbowmode = false
  8563. chaosmode = true
  8564. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8565. newTheme("rbxassetid://1255569288",0,1.01,0.85)
  8566. MAINRUINCOLOR = BrickColor.new("Black")
  8567. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8568. end
  8569. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8570. ModeOfGlitch = 5
  8571. storehumanoidWS = 14
  8572. hum.WalkSpeed = 14
  8573. rainbowmode = false
  8574. chaosmode = false
  8575. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8576. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8577. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8578. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8579. end
  8580. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8581. ModeOfGlitch = 6
  8582. storehumanoidWS = 65
  8583. hum.WalkSpeed = 65
  8584. rainbowmode = false
  8585. chaosmode = false
  8586. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8587. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8588. MAINRUINCOLOR = BrickColor.new("White")
  8589. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8590. end
  8591. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8592. ModeOfGlitch = 8
  8593. storehumanoidWS = 100
  8594. hum.WalkSpeed = 100
  8595. rainbowmode = false
  8596. chaosmode = false
  8597. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8598. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8599. MAINRUINCOLOR = BrickColor.new("Alder")
  8600. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8601. end
  8602. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8603. ModeOfGlitch = 9
  8604. storehumanoidWS = 85
  8605. hum.WalkSpeed = 85
  8606. rainbowmode = false
  8607. chaosmode = false
  8608. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8609. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8610. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8611. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8612. end
  8613. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8614. ModeOfGlitch = 5555
  8615. storehumanoidWS = 30
  8616. hum.WalkSpeed = 30
  8617. rainbowmode = false
  8618. chaosmode = false
  8619. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8620. newTheme("rbxassetid://736003449",0,1,1.25)
  8621. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8622. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8623. end
  8624. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8625. CalamityTrans()
  8626. end
  8627. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8628. ModeOfGlitch = 55469696922
  8629. storehumanoidWS = 95
  8630. hum.WalkSpeed = 95
  8631. rainbowmode = false
  8632. chaosmode = false
  8633. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8634. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8635. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8636. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8637. end
  8638. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8639. ModeOfGlitch = 4367677813
  8640. storehumanoidWS = 75
  8641. hum.WalkSpeed = 75
  8642. rainbowmode = false
  8643. chaosmode = false
  8644. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8645. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8646. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8647. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8648. end
  8649. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8650. ModeOfGlitch = 9999999921111
  8651. storehumanoidWS = 145
  8652. hum.WalkSpeed = 145
  8653. rainbowmode = false
  8654. chaosmode = false
  8655. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8656. newTheme("rbxassetid://643309199",0,1.01,1)
  8657. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8658. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8659. end
  8660. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8661. ModeOfGlitch = 999999999556
  8662. storehumanoidWS = 115
  8663. hum.WalkSpeed = 115
  8664. rainbowmode = false
  8665. chaosmode = false
  8666. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8667. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8668. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8669. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8670. end
  8671. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8672. ModeOfGlitch = 12
  8673. storehumanoidWS = 19
  8674. hum.WalkSpeed = 19
  8675. rainbowmode = false
  8676. chaosmode = false
  8677. print'Mode was meant for Vengeful Program or those other fans out there'
  8678. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8679. newTheme("rbxassetid://1873219898",0,1,1.7)
  8680. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8681. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8682. end
  8683. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 900 then
  8684. ModeOfGlitch = 900
  8685. storehumanoidWS = 19
  8686. hum.WalkSpeed = 19
  8687. rainbowmode = false
  8688. chaosmode = false
  8689. print'This is an Undertale Mode '
  8690. RecolorTextAndRename("BONESCUFFLE",BrickColor.new("Black").Color,BrickColor.new("Crimson").Color,"Fantasy")
  8691. newTheme("rbxassetid://2112150271",0,1,2.7)
  8692. MAINRUINCOLOR = BrickColor.new("Black")
  8693. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8694. end
  8695. if k == "m" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8696. ModeOfGlitch = 1264532489
  8697. storehumanoidWS = 175
  8698. hum.WalkSpeed = 175
  8699. rainbowmode = false
  8700. chaosmode = false
  8701. RecolorTextAndRename("DemonZ",Color3.new(1.7,0,2),BrickColor.new("Dark purple").Color,"Antique")
  8702. newTheme("rbxassetid://978522381",0,1,1.25)
  8703. MAINRUINCOLOR = BrickColor.new("Dark purple")
  8704. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8705. end
  8706. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 200 then
  8707. hum.WalkSpeed = 0
  8708. attack = true
  8709. for i = 0,1,0.1 do
  8710. swait()
  8711. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8712. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8713. 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)
  8714. 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)
  8715. 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)
  8716. 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)
  8717. end
  8718. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8719. for i = 0, 49 do
  8720. 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)
  8721. end
  8722. for i = 0,3,0.1 do
  8723. 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)
  8724. end
  8725. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8726. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8727. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8728. hum.WalkSpeed = storehumanoidWS
  8729. attack = false
  8730. ModeOfGlitch = 13
  8731. storehumanoidWS = 45
  8732. hum.WalkSpeed = 45
  8733. rainbowmode = false
  8734. chaosmode = false
  8735. RecolorTextAndRename("Rusted Glitch",BrickColor.new("Rust").Color,BrickColor.new("Really black").Color,"Arcade")
  8736. newTheme("rbxassetid://1166635630",0,1,1.35)
  8737. MAINRUINCOLOR = BrickColor.new("Rust")
  8738. RecolorThing(MAINRUINCOLOR,BrickColor.new("Burgundy"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8739. for i = 0,2,0.1 do
  8740. swait()
  8741. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8742. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8743. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8744. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8745. 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)
  8746. 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)
  8747. end
  8748. end
  8749. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8750. ModeOfGlitch = 4367677813
  8751. storehumanoidWS = 75
  8752. hum.WalkSpeed = 75
  8753. rainbowmode = false
  8754. chaosmode = false
  8755. RecolorTextAndRename("DHA",Color3.new(1,1,0),BrickColor.new("Black").Color,"Garamond")
  8756. newTheme("rbxassetid://736815401",0,1,0.95)
  8757. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8758. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8759. end
  8760. if k == "b" and attack == false and ModeOfGlitch == 1003 and ModeOfGlitch ~= 9999999921111 then
  8761. ModeOfGlitch = 9999999921111
  8762. storehumanoidWS = 145
  8763. hum.WalkSpeed = 145
  8764. rainbowmode = false
  8765. chaosmode = false
  8766. RecolorTextAndRename("ALPHA INSANITY",BrickColor.new("Really black").Color,BrickColor.new("Bright orange").Color,"SciFi")
  8767. newTheme("rbxassetid://943961217",0,1.01,1)
  8768. MAINRUINCOLOR = BrickColor.new("Bright orange")
  8769. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8770. end
  8771.  
  8772. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8773. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8774. for i = 0, 49 do
  8775. 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)
  8776. end
  8777. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8778. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8779. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8780. hum.WalkSpeed = storehumanoidWS
  8781. attack = false
  8782. ModeOfGlitch = 50
  8783. storehumanoidWS = 18
  8784. hum.WalkSpeed = 18
  8785. rainbowmode = false
  8786. chaosmode = false
  8787. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8788. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8789. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8790. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8791. end
  8792.  
  8793. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8794. hum.WalkSpeed = 0
  8795. attack = true
  8796. for i = 0,1,0.1 do
  8797. swait()
  8798. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8799. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8800. 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)
  8801. 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)
  8802. 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)
  8803. 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)
  8804. end
  8805. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8806. for i = 0, 148 do
  8807. 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)
  8808. end
  8809. for i = 0,3,0.1 do
  8810. 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)
  8811. end
  8812. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8813. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8814. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8815. hum.WalkSpeed = storehumanoidWS
  8816. attack = false
  8817. ModeOfGlitch = 66
  8818. storehumanoidWS = 16
  8819. hum.WalkSpeed = 16
  8820. rainbowmode = false
  8821. chaosmode = false
  8822. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8823. MAINRUINCOLOR = BrickColor.new("Really black")
  8824. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8825. for i = 0,2,0.1 do
  8826. swait()
  8827. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8828. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8829. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8830. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8831. 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)
  8832. 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)
  8833. end
  8834. end
  8835.  
  8836. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8837. hum.WalkSpeed = 0
  8838. attack = true
  8839. for i = 0,1,0.1 do
  8840. swait()
  8841. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8842. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8843. 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)
  8844. 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)
  8845. 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)
  8846. 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)
  8847. end
  8848. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8849. for i = 0, 49 do
  8850. 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)
  8851. end
  8852. for i = 0,3,0.1 do
  8853. 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)
  8854. end
  8855. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8856. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8857. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8858. hum.WalkSpeed = storehumanoidWS
  8859. attack = false
  8860. ModeOfGlitch = 13
  8861. storehumanoidWS = 45
  8862. hum.WalkSpeed = 45
  8863. rainbowmode = false
  8864. chaosmode = false
  8865. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8866. newTheme("rbxassetid://190845741",0,1,1.35)
  8867. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8868. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8869. for i = 0,2,0.1 do
  8870. swait()
  8871. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8872. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8873. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8874. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8875. 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)
  8876. 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)
  8877. end
  8878. end
  8879. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8880. ModeOfGlitch = 1002
  8881. storehumanoidWS = 45
  8882. hum.WalkSpeed = 45
  8883. rainbowmode = false
  8884. chaosmode = false
  8885. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8886. newTheme("rbxassetid://2027652726",0,1,0.85)
  8887. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8888. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8889. end
  8890. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8891. ModeOfGlitch = 1003
  8892. storehumanoidWS = 90
  8893. hum.WalkSpeed = 90
  8894. rainbowmode = false
  8895. chaosmode = false
  8896. RecolorTextAndRename("ASCENDED",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8897. newTheme("rbxassetid://257453119",0,1,0.85)
  8898. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8899. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8900. end
  8901. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8902. ModeOfGlitch = 1264532489
  8903. storehumanoidWS = 175
  8904. hum.WalkSpeed = 175
  8905. rainbowmode = false
  8906. chaosmode = false
  8907. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8908. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8909. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8910. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8911. end
  8912. if k == "l" and mutedtog == false then
  8913. mutedtog = true
  8914. kan.Volume = 0.85
  8915. elseif k == "l" and mutedtog == true then
  8916. mutedtog = false
  8917. kan.Volume = 0.85
  8918. end
  8919. if k == "p" and toggleTag == false then
  8920. toggleTag = true
  8921. modet.TextTransparency = 0
  8922. modet.TextStrokeTransparency = 0
  8923. elseif k == "p" and toggleTag == true then
  8924. toggleTag = false
  8925. modet.TextTransparency = 1
  8926. modet.TextStrokeTransparency = 1
  8927. end
  8928. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8929. ExtinctiveHeartbreak()
  8930. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8931. HeavenlyDisk()
  8932. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8933. DualGleamingBeam()
  8934. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8935. BanishingOrb()
  8936. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8937. hugg()
  8938. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8939. cutesigh()
  8940. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8941. Counter()
  8942. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8943. superjump()
  8944. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8945. dragin()
  8946. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8947. UniversalCollapse()
  8948. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8949. PureBomb()
  8950. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8951. Beams()
  8952. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8953. BeamOfDeath()
  8954. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8955. THE_TRUE_POWER_OF_VIOLENCE()
  8956. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8957. GleamingBeam()
  8958. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8959. ViolentRing()
  8960. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8961. CorruptionEvent()
  8962. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8963. CorruptBlink()
  8964. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8965. scattercorrupt()
  8966. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8967. shytaunty()
  8968. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8969. RapidBurst()
  8970. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8971. ChaosEND()
  8972. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8973. CyberSlash()
  8974. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8975. smiter()
  8976. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8977. SpeedDrop()
  8978. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  8979. FuckMeSidewaysAndCallMeGay()
  8980. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8981. --DivineLights()
  8982. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8983. DivineBlast()
  8984. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8985. EquinoxOrbs()
  8986. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8987. yinyangi()
  8988. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8989. FallenOrbs()
  8990. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8991. StarfallEX()
  8992. end
  8993. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8994. FallenDEMISE()
  8995. end
  8996. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8997. EndGROUND()
  8998. end
  8999. end)
  9000.  
  9001. coroutine.resume(coroutine.create(function()
  9002. while true do
  9003. swait()
  9004. 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
  9005. 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)
  9006. end
  9007. if ModeOfGlitch == 5555 then
  9008. 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)
  9009. end
  9010. end
  9011. end))
  9012. --[[coroutine.resume(coroutine.create(function()
  9013. while true do
  9014. swait(2)
  9015. if chaosmode == true then
  9016. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9017. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9018. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9019. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9020. for i, v in pairs(mw1:GetChildren()) do
  9021. if v:IsA("Part") then
  9022. v.Transparency = 0.75
  9023. v.BrickColor = BrickColor.random()
  9024. v.Material = "Neon"
  9025. end
  9026. end
  9027. for i, v in pairs(m2:GetChildren()) do
  9028. if v:IsA("Part") then
  9029. v.BrickColor = BrickColor.random()
  9030. v.Material = "Neon"
  9031. end
  9032. end
  9033. end
  9034. end
  9035. end))]]
  9036.  
  9037.  
  9038.  
  9039. ff = Instance.new("ForceField",char)
  9040. ff.Visible = false
  9041. hum.Name = "Base"
  9042. hum.MaxHealth = 1.0E298
  9043. hum.Health = 1.0E298
  9044. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9045. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9046. hum.MaxHealth = 1.0E298
  9047. hum.Health = 1.0E298
  9048. end
  9049. end)
  9050.  
  9051. local Hair = Instance.new("Part", char)
  9052. Hair.Name = "Hair"
  9053. Hair.CanCollide = false
  9054. Hair.BrickColor = BrickColor.new("Institutional white")
  9055. Hair.Transparency = 0
  9056. Hair.Material = "Plastic"
  9057. Hair.Size = Vector3.new(1, 1, 2)
  9058. Hair.TopSurface = Enum.SurfaceType.Smooth
  9059. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9060.  
  9061.  
  9062. local bguis = Instance.new("BillboardGui",tors)
  9063. bguis.Size = UDim2.new(25, 0, 25, 0)
  9064. local imgca = Instance.new("ImageLabel",bguis)
  9065. imgca.BackgroundTransparency = 1
  9066. imgca.ImageTransparency = 1
  9067. imgca.Size = UDim2.new(1,0,1,0)
  9068. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9069. imgca.ImageColor3 = Color3.new(0,0,0)
  9070.  
  9071.  
  9072. local bguis2 = Instance.new("BillboardGui",tors)
  9073. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9074. local imgca2 = Instance.new("ImageLabel",bguis)
  9075. imgca2.BackgroundTransparency = 1
  9076. imgca2.ImageTransparency = 1
  9077. imgca2.Size = UDim2.new(1,0,1,0)
  9078. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9079. imgca2.ImageColor3 = Color3.new(0,0,0)
  9080.  
  9081.  
  9082.  
  9083. idleanim=.4
  9084. while true do
  9085. if mutedtog == false then
  9086. kan.Volume = currentVol
  9087. elseif mutedtog == true then
  9088. kan.Volume = 0
  9089. end
  9090. kan.PlaybackSpeed = currentPitch
  9091. kan.Pitch = currentPitch
  9092. kan.SoundId = currentThemePlaying
  9093. kan.Looped = true
  9094. kan.Parent = char
  9095. kan:Resume()
  9096. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9097. imgca.ImageTransparency = 1
  9098. imgca2.ImageTransparency = 1
  9099. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9100. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9101. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9102. elseif ModeOfGlitch == 13 then
  9103. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9104. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9105. end
  9106. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9107. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9108. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9109. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9110. coroutine.resume(coroutine.create(function()
  9111. if chaosmode == true then
  9112. for i, v in pairs(mw1:GetChildren()) do
  9113. if v:IsA("Part") then
  9114. v.Transparency = 0
  9115. v.BrickColor = BrickColor.random()
  9116. v.Material = "Neon"
  9117. end
  9118. end
  9119. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9120. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9121. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9122. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9123. end
  9124. end))
  9125. coroutine.resume(coroutine.create(function()
  9126. if ModeOfGlitch == 66 then
  9127. for i, v in pairs(m:GetChildren()) do
  9128. if v:IsA("Part") then
  9129. v.Transparency = 0
  9130. v.BrickColor = BrickColor.random()
  9131. v.Material = "Neon"
  9132. end
  9133. end
  9134. for i, v in pairs(m2:GetChildren()) do
  9135. if v:IsA("Part") then
  9136. v.Transparency = 0
  9137. v.BrickColor = BrickColor.random()
  9138. v.Material = "Neon"
  9139. end
  9140. end
  9141. for i, v in pairs(mw1:GetChildren()) do
  9142. if v:IsA("Part") then
  9143. v.Transparency = 0
  9144. v.BrickColor = BrickColor.random()
  9145. v.Material = "Neon"
  9146. end
  9147. end
  9148. for i, v in pairs(extrawingmod1:GetChildren()) do
  9149. if v:IsA("Part") then
  9150. v.Transparency = 0.5
  9151. v.BrickColor = BrickColor.random()
  9152. v.Material = "Neon"
  9153. end
  9154. end
  9155. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9156. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9157. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9158. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9159. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9160. end
  9161. end))
  9162.  
  9163. coroutine.resume(coroutine.create(function()
  9164. if ModeOfGlitch == 66 then
  9165. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9166. end
  9167. end))
  9168.  
  9169. if chaosmode == false then
  9170. modet.Position = UDim2.new(0,0,0,0)
  9171. modet.Rotation = -5 * math.cos(sine / 32)
  9172. techc.Rotation = techc.Rotation + 1
  9173. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9174. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9175. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9176. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9177. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9178. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9179. else
  9180. techc.Rotation = techc.Rotation + 1
  9181. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9182. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9183. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9184. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9185. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9186. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9187. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9188. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9189. end
  9190. CameraManager()
  9191. swait()
  9192. 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)
  9193. 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)
  9194. 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)
  9195. 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)
  9196. 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)
  9197. 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)
  9198. 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)
  9199. 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)
  9200. 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)
  9201. 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)
  9202. 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)
  9203. 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)
  9204. sine = sine + change
  9205. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9206. local velderp=RootPart.Velocity.y
  9207. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9208. coroutine.resume(coroutine.create(function()
  9209. 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
  9210. if hitfloor ~= nil then
  9211. 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"))
  9212. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9213. 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)
  9214. end
  9215. end
  9216. end
  9217. end))
  9218. if equipped==true or equipped==false then
  9219. if attack==false then
  9220. idle=idle+1
  9221. else
  9222. idle=0
  9223. end
  9224. if idle>=500 then
  9225. if attack==false then
  9226. --Sheath()
  9227. end
  9228. end
  9229. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9230. Anim="Jump"
  9231. if attack==false then
  9232. 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)
  9233. 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)
  9234. 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)
  9235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9236. 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)
  9237. 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)
  9238. end
  9239. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9240. Anim="Fall"
  9241. if attack==false then
  9242. 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)
  9243. 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)
  9244. 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)
  9245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9246. 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)
  9247. 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)
  9248. end
  9249. elseif torvel<1 and hitfloor~=nil then
  9250. Anim="Idle"
  9251. if attack==false then
  9252. if ModeOfGlitch == 1 then
  9253. local snap = math.random(1,10)
  9254. if snap == 1 then
  9255. 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)
  9256. end
  9257. 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)
  9258. 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)
  9259. 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)
  9260. 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)
  9261. 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)
  9262. 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)
  9263. elseif ModeOfGlitch == 2 then
  9264. 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)
  9265. 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)
  9266. 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)
  9267. 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)
  9268. 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)
  9269. 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)
  9270. elseif ModeOfGlitch == 2 then
  9271. 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)
  9272. 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)
  9273. 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)
  9274. 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)
  9275. 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)
  9276. 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)
  9277. elseif ModeOfGlitch == 50 then
  9278. 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)
  9279. 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)
  9280. 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)
  9281. 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)
  9282. 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)
  9283. 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)
  9284. elseif ModeOfGlitch == 5555 then --5555
  9285. 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)
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. 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)
  9291. elseif ModeOfGlitch == 1002 then
  9292. 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)
  9293. 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)
  9294. 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)
  9295. 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)
  9296. 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)
  9297. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9298. elseif ModeOfGlitch == 12 then
  9299. 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)
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304. 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)
  9305. elseif ModeOfGlitch == 3 then
  9306. local snap = math.random(1,32)
  9307. if snap == 1 then
  9308. 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)
  9309. end
  9310. 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)
  9311. 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)
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. elseif ModeOfGlitch == 4 then
  9317. local snap = math.random(1,5)
  9318. if snap == 1 then
  9319. 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)
  9320. 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)
  9321. 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)
  9322. end
  9323. 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)
  9324. 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)
  9325. 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)
  9326. 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)
  9327. 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)
  9328. 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)
  9329. elseif ModeOfGlitch == 66 then
  9330. local snap = math.random(1,2)
  9331. if snap == 1 then
  9332. 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)
  9333. 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)
  9334. 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)
  9335. end
  9336. 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)
  9337. 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)
  9338. 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)
  9339. 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)
  9340. 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)
  9341. 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)
  9342. elseif ModeOfGlitch == 5 then
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. 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)
  9348. 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)
  9349. elseif ModeOfGlitch == 6 then
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. 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)
  9355. 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)
  9356. elseif ModeOfGlitch == 13 then
  9357. 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)
  9358. 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)
  9359. 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)
  9360. 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)
  9361. 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)
  9362. 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)
  9363. elseif ModeOfGlitch == 8 then
  9364. 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)
  9365. 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)
  9366. 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)
  9367. 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)
  9368. 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)
  9369. 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)
  9370. elseif ModeOfGlitch == 9 then
  9371. 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)
  9372. 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))
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  9378. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  9379. elseif ModeOfGlitch == 1003 then
  9380. 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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. 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)
  9385. 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)
  9386.  
  9387. elseif ModeOfGlitch == 8889 then
  9388. 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)
  9389. 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)
  9390. 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)
  9391. 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)
  9392. 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)
  9393. 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)
  9394. elseif ModeOfGlitch == 1264532489 then
  9395. 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)
  9396. 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)
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9403. 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)
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408. 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)
  9409. elseif ModeOfGlitch == 4367677813 then
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. elseif ModeOfGlitch == 55469696922 then --5555
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. elseif ModeOfGlitch == 999999999556 then
  9424. 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)
  9425. 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)
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. end
  9431. end
  9432. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9433. Anim="Walk"
  9434. if attack==false and ModeOfGlitch ~= 66 then
  9435. 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)
  9436. 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)
  9437. 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)
  9438. 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)
  9439. 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)
  9440. 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)
  9441. elseif attack==false and ModeOfGlitch == 66 then
  9442. 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)
  9443. 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)
  9444. 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)
  9445. 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)
  9446. 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)
  9447. 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)
  9448. end
  9449. elseif torvel>=22 and hitfloor~=nil then
  9450. Anim="Run"
  9451. if attack==false then
  9452. 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
  9453. 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)
  9454. 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)
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. if ModeOfGlitch == 12 then
  9460. 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)
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. 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)
  9466. end
  9467. if ModeOfGlitch == 9 then
  9468. 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)
  9469. 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))
  9470. 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)
  9471. end
  9472. 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
  9473. 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)
  9474. 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)
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. elseif ModeOfGlitch == 13 then
  9480. 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)
  9481. 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)
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. end
  9487. end
  9488. end
  9489. end
  9490. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement