Advertisement
Dasd5755

Guest glitcher 8.0 test!!##%

Oct 2nd, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 465.09 KB | None | 0 0
  1. wait(0.2)
  2.  
  3. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  4. The super switcher.
  5. Velnorum is one of the first wielders.
  6.  
  7. Created, Reworked by NoobyGames12
  8. Edited by GodzPlaysRB
  9. Edited by wanTH092 (Gam_Filano CH)
  10. SpectrumGlitcher Developers ^^^
  11. ]])
  12.  
  13.  
  14. ------------- ORIGINAL WIELDER OC: Velnorum
  15. print([[Icons:
  16. ! = New
  17. ? = Spoilers
  18. * = Exclusivity
  19. C = Changes
  20.  
  21. ]])
  22. warn([[V 8.0 Update Log:
  23. C: TEST BUILD
  24. ]])
  25. --- its obs smooth af do not touch
  26. ---- Sources and functions might be taken from others
  27. plr = game:GetService("Players").dasd57555
  28. char = plr.Character
  29. hum = char.Humanoid
  30. local cam = game.Workspace.CurrentCamera
  31. Camera = cam
  32. local CamInterrupt = false
  33. local TwoD = false
  34. local TargetInfo = {nil, nil}
  35. cam.CameraType = "Custom"
  36. t = char.Torso
  37. h = char.Head
  38. ra = char["Right Arm"]
  39. la = char["Left Arm"]
  40. rl = char["Right Leg"]
  41. ll = char["Left Leg"]
  42. tors = char.Torso
  43. lleg = char["Left Leg"]
  44. root = char.HumanoidRootPart
  45. hed = char.Head
  46. rleg = char["Right Leg"]
  47. rarm = char["Right Arm"]
  48. larm = char["Left Arm"]
  49. radian = math.rad
  50. random = math.random
  51. Vec3 = Vector3.new
  52. Inst = Instance.new
  53. cFrame = CFrame.new
  54. Euler = CFrame.fromEulerAnglesXYZ
  55. vt = Vector3.new
  56. bc = BrickColor.new
  57. br = BrickColor.random
  58. it = Instance.new
  59. cf = CFrame.new
  60. local Player_Size = 0
  61. cam = game.Workspace.CurrentCamera
  62. CF = CFrame.new
  63. angles = CFrame.Angles
  64. attack = false
  65. Euler = CFrame.fromEulerAnglesXYZ
  66. Rad = math.rad
  67. IT = Instance.new
  68. BrickC = BrickColor.new
  69. Cos = math.cos
  70. Acos = math.acos
  71. Sin = math.sin
  72. Asin = math.asin
  73. Abs = math.abs
  74. Mrandom = math.random
  75. Floor = math.floor
  76. IT = Instance.new
  77. CF = CFrame.new
  78. VT = Vector3.new
  79. RAD = math.rad
  80. C3 = Color3.new
  81. UD2 = UDim2.new
  82. BRICKC = BrickColor.new
  83. ANGLES = CFrame.Angles
  84. EULER = CFrame.fromEulerAnglesXYZ
  85. COS = math.cos
  86. ACOS = math.acos
  87. SIN = math.sin
  88. ASIN = math.asin
  89. ABS = math.abs
  90. MRANDOM = math.random
  91. FLOOR = math.floor
  92. local SINE = 0
  93.  
  94. local Booleans = {
  95. CamFollow = true,
  96. GyroUse = true
  97. }
  98.  
  99. function lerp(object, newCFrame, alpha)
  100. return object:lerp(newCFrame, alpha)
  101. end
  102.  
  103. local Directer = Inst("BodyGyro", root)
  104. Directer.MaxTorque = Vec3(0, 0, 0)
  105. Directer.P = 600000
  106. local CPart = Inst("Part")
  107. CPart.Anchored = true
  108. CPart.CanCollide = false
  109. CPart.Locked = true
  110. CPart.Transparency = 1
  111.  
  112. local rainbowmode = false
  113. local chaosmode = false
  114.  
  115. local kan = Instance.new("Sound",tors)
  116. kan.Volume = 0.85
  117. kan.TimePosition = 0
  118. kan.PlaybackSpeed = 1
  119. kan.Pitch = 1
  120. kan.SoundId = "rbxassetid://1255569288"
  121. kan.Name = "wrecked"
  122. kan.Looped = true
  123. kan:Play()
  124.  
  125. local currentThemePlaying = kan.SoundId
  126. local currentPitch = kan.Pitch
  127. local currentVol = kan.Volume
  128. function newTheme(ID,timepos,pitch,vol)
  129. local kanz = kan
  130. --kanz:Stop()
  131. kanz.Volume = vol
  132. --kanz.TimePosition = timepos
  133. kanz.PlaybackSpeed = pitch
  134. kanz.Pitch = pitch
  135. kanz.SoundId = ID
  136. kanz.Name = "wrecked"
  137. kanz.Looped = true
  138. currentThemePlaying = kanz.SoundId
  139. currentVol = kanz.Volume
  140. currentPitch = kanz.Pitch
  141. --kanz:Play()
  142. --coroutine.resume(coroutine.create(function()
  143. --wait(0.05)
  144. --end))
  145. end
  146.  
  147.  
  148. function newThemeCust(ID,timepos,pitch,vol)
  149. local kanz = kan
  150. kanz:Stop()
  151. kanz.Volume = vol
  152. kanz.TimePosition = timepos
  153. kanz.PlaybackSpeed = pitch
  154. kanz.Pitch = pitch
  155. kanz.SoundId = ID
  156. kanz.Name = "wrecked"
  157. kanz.Looped = true
  158. currentThemePlaying = kanz.SoundId
  159. currentVol = kanz.Volume
  160. currentPitch = kanz.Pitch
  161. kanz:Play()
  162. coroutine.resume(coroutine.create(function()
  163. wait(0.05)
  164. end))
  165. end
  166.  
  167. local mutedtog = false
  168.  
  169. function CameraEnshaking(Length,Intensity)
  170. coroutine.resume(coroutine.create(function()
  171. local intensity = 1*Intensity
  172. local rotM = 0.01*Intensity
  173. for i = 0, Length, 0.1 do
  174. swait()
  175. intensity = intensity - 0.05*Intensity/Length
  176. rotM = rotM - 0.0005*Intensity/Length
  177. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  178. 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)
  179. end
  180. Humanoid.CameraOffset = Vec3(0, 0, 0)
  181. end))
  182. end
  183. CamShake=function(Part,Distan,Power,Times)
  184. local de=Part.Position
  185. for i,v in pairs(workspace:children()) do
  186. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  187. for _,c in pairs(v:children()) do
  188. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  189. local Noob=v.Humanoid
  190. if Noob~=nil then
  191. coroutine.resume(coroutine.create(function()
  192. FV = Instance.new("BoolValue", Noob)
  193. FV.Name = "CameraShake"
  194. for ShakeNum=1,Times do
  195. swait()
  196. local ef=Power
  197. if ef>=1 then
  198. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  199. else
  200. ef=Power*10
  201. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  202. end
  203. end
  204. Humanoid.CameraOffset = Vector3.new(0,0,0)
  205. FV:Destroy()
  206. end))
  207. CameraShake(Times, Power, Noob)
  208. end
  209. end
  210. end
  211. end
  212. end
  213. end
  214.  
  215. local toggleTag = true
  216. local bilguit = Instance.new("BillboardGui", hed)
  217. bilguit.Adornee = nil
  218. bilguit.Name = "ModeName"
  219. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  220. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  221. local modet = Instance.new("TextLabel", bilguit)
  222. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  223. modet.FontSize = "Size8"
  224. modet.TextScaled = true
  225. modet.TextTransparency = 0
  226. modet.BackgroundTransparency = 1
  227. modet.TextTransparency = 0
  228. modet.TextStrokeTransparency = 0
  229. modet.Font = "Antique"
  230. modet.TextStrokeColor3 = Color3.new(1,0,0)
  231. modet.TextColor3 = Color3.new(0.25,0,0)
  232. modet.Text = "Hopeless Guest"
  233.  
  234.  
  235. function chatfunc(text,color,typet,font,timeex)
  236. local chat = coroutine.wrap(function()
  237. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  238. Character:FindFirstChild("TalkingBillBoard"):destroy()
  239. end
  240. local naeeym2 = Instance.new("BillboardGui",Character)
  241. naeeym2.Size = UDim2.new(0,100,0,40)
  242. naeeym2.StudsOffset = Vector3.new(0,3,0)
  243. naeeym2.Adornee = Character.Head
  244. naeeym2.Name = "TalkingBillBoard"
  245. local tecks2 = Instance.new("TextLabel",naeeym2)
  246. tecks2.BackgroundTransparency = 1
  247. tecks2.BorderSizePixel = 0
  248. tecks2.Text = ""
  249. tecks2.Font = font
  250. tecks2.TextSize = 30
  251. tecks2.TextStrokeTransparency = 0
  252. tecks2.TextColor3 = color
  253. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  254. tecks2.Size = UDim2.new(1,0,0.5,0)
  255. local tecks3 = Instance.new("TextLabel",naeeym2)
  256. tecks3.BackgroundTransparency = 1
  257. tecks3.BorderSizePixel = 0
  258. tecks3.Text = ""
  259. tecks3.Font = font
  260. tecks3.TextSize = 30
  261. tecks3.TextStrokeTransparency = 0
  262. if typet == "Inverted" then
  263. tecks3.TextColor3 = Color3.new(0,0,0)
  264. tecks3.TextStrokeColor3 = color
  265. elseif typet == "Normal" then
  266. tecks3.TextColor3 = color
  267. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  268. end
  269. tecks3.Size = UDim2.new(1,0,0.5,0)
  270. coroutine.resume(coroutine.create(function()
  271. while true do
  272. swait(1)
  273. if chaosmode == true then
  274. tecks2.TextColor3 = BrickColor.random().Color
  275. tecks3.TextStrokeColor3 = BrickColor.random().Color
  276. end
  277. end
  278. end))
  279. modet.TextTransparency = modet.TextTransparency + 1
  280. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  281. for i = 0, 74*timeex do
  282. swait()
  283. modet.TextTransparency = 1
  284. modet.TextStrokeTransparency = 1
  285. tecks2.Text = text
  286. tecks3.Text = text
  287. end
  288. local randomrot = math.random(1,2)
  289. if randomrot == 1 then
  290. for i = 1, 50 do
  291. swait()
  292. tecks2.Text = text
  293. tecks3.Text = text
  294. modet.TextTransparency = modet.TextTransparency - .02
  295. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  296. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  297. tecks2.TextTransparency = tecks2.TextTransparency + .04
  298. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  299. tecks3.TextTransparency = tecks2.TextTransparency + .04
  300. end
  301. elseif randomrot == 2 then
  302. for i = 1, 50 do
  303. swait()
  304. tecks2.Text = text
  305. tecks3.Text = text
  306. modet.TextTransparency = modet.TextTransparency - .02
  307. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  308. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  309. tecks2.TextTransparency = tecks2.TextTransparency + .04
  310. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  311. tecks3.TextTransparency = tecks2.TextTransparency + .04
  312. end
  313. end
  314. modet.TextTransparency = 0
  315. modet.TextStrokeTransparency = 0
  316. if toggleTag == false then
  317. modet.TextTransparency = 1
  318. modet.TextStrokeTransparency = 1
  319. end
  320. naeeym2:Destroy()
  321. end)
  322. chat()
  323. end
  324.  
  325. function bosschatfunc(text,color,watval)
  326. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  327. coroutine.resume(coroutine.create(function()
  328. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  329. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  330. end
  331. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  332. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  333. scrg.Name = "Dialog"
  334. local txtlb = Instance.new("TextLabel",scrg)
  335. txtlb.Text = ""
  336. txtlb.Font = "Bodoni"
  337. txtlb.TextColor3 = Color3.new(0,0,0)
  338. txtlb.TextStrokeTransparency = 0
  339. txtlb.BackgroundTransparency = 0.75
  340. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  341. txtlb.TextStrokeColor3 = color
  342. txtlb.TextScaled = true
  343. txtlb.Size = UDim2.new(1,0,0.25,0)
  344. txtlb.TextXAlignment = "Left"
  345. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  346. local txtlb2 = Instance.new("TextLabel",scrg)
  347. txtlb2.Text = plr.Name.." The Guest:"
  348. txtlb2.Font = "Antique"
  349. txtlb2.TextColor3 = Color3.new(0,0,0)
  350. txtlb2.TextStrokeTransparency = 0
  351. txtlb2.BackgroundTransparency = 1
  352. txtlb2.TextStrokeColor3 = color
  353. txtlb2.TextSize = 40
  354. txtlb2.Size = UDim2.new(1,0,0.25,0)
  355. txtlb2.TextXAlignment = "Left"
  356. txtlb2.Position = UDim2.new(0,0,1,0)
  357. local fvalen = 0.55
  358. local fval = -0.49
  359. coroutine.resume(coroutine.create(function()
  360. while true do
  361. swait()
  362. if chaosmode == true then
  363. txtlb.Rotation = math.random(-1,1)
  364. txtlb2.Rotation = math.random(-1,1)
  365. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  366. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  367. txtlb.TextStrokeColor3 = BrickColor.random().Color
  368. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  369. end
  370. end
  371. end))
  372. coroutine.resume(coroutine.create(function()
  373. while true do
  374. swait()
  375. if scrg.Parent ~= nil then
  376. fvalen = fvalen - 0.0001
  377. elseif scrg.Parent == nil then
  378. break
  379. end
  380. end
  381. end))
  382. local flol = 1.75
  383. local flil = 1.6
  384. coroutine.resume(coroutine.create(function()
  385. for i = 0, 9 do
  386. swait()
  387. fval = fval + 0.05
  388. flol = flol - 0.1
  389. flil = flil - 0.1
  390. txtlb.Text = ""
  391. txtlb.Position = UDim2.new(0,0,flol,0)
  392. txtlb2.Position = UDim2.new(0,0,flil,0)
  393. end
  394. txtlb.Text = text
  395. wait(watval)
  396. local valinc = 0
  397. for i = 0, 99 do
  398. swait()
  399. valinc = valinc + 0.0001
  400. flol = flol + valinc
  401. flil = flil + valinc
  402. txtlb.Rotation = txtlb.Rotation + valinc*20
  403. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  404. txtlb.Position = UDim2.new(0,0,flol,0)
  405. txtlb2.Position = UDim2.new(0,0,flil,0)
  406. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  407. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  408. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  409. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  410. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  411. end
  412. scrg:Destroy()
  413. end))
  414. end))
  415. end
  416. end
  417.  
  418.  
  419. local Create = LoadLibrary("RbxUtility").Create
  420.  
  421. CFuncs = {
  422. ["Part"] = {
  423. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  424. local Part = Create("Part"){
  425. Parent = Parent,
  426. Reflectance = Reflectance,
  427. Transparency = Transparency,
  428. CanCollide = false,
  429. Locked = true,
  430. BrickColor = BrickColor.new(tostring(BColor)),
  431. Name = Name,
  432. Size = Size,
  433. Material = Material,
  434. }
  435. RemoveOutlines(Part)
  436. return Part
  437. end;
  438. };
  439.  
  440. ["Mesh"] = {
  441. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  442. local Msh = Create(Mesh){
  443. Parent = Part,
  444. Offset = OffSet,
  445. Scale = Scale,
  446. }
  447. if Mesh == "SpecialMesh" then
  448. Msh.MeshType = MeshType
  449. Msh.MeshId = MeshId
  450. end
  451. return Msh
  452. end;
  453. };
  454.  
  455. ["Mesh"] = {
  456. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  457. local Msh = Create(Mesh){
  458. Parent = Part,
  459. Offset = OffSet,
  460. Scale = Scale,
  461. }
  462. if Mesh == "SpecialMesh" then
  463. Msh.MeshType = MeshType
  464. Msh.MeshId = MeshId
  465. end
  466. return Msh
  467. end;
  468. };
  469.  
  470. ["Weld"] = {
  471. Create = function(Parent, Part0, Part1, C0, C1)
  472. local Weld = Create("Weld"){
  473. Parent = Parent,
  474. Part0 = Part0,
  475. Part1 = Part1,
  476. C0 = C0,
  477. C1 = C1,
  478. }
  479. return Weld
  480. end;
  481. };
  482.  
  483. ["Sound"] = {
  484. Create = function(id, par, vol, pit)
  485. coroutine.resume(coroutine.create(function()
  486. local S = Create("Sound"){
  487. Volume = vol,
  488. Name = "EffectSoundo",
  489. Pitch = pit or 1,
  490. SoundId = id,
  491. Parent = par or workspace,
  492. }
  493. wait()
  494. S:play()
  495. game:GetService("Debris"):AddItem(S, 10)
  496. end))
  497. end;
  498. };
  499.  
  500. ["TimeSound"] = {
  501. Create = function(id, par, vol, pit, timepos)
  502. coroutine.resume(coroutine.create(function()
  503. local S = Create("Sound"){
  504. Volume = vol,
  505. Name = "EffectSoundo",
  506. Pitch = pit or 1,
  507. SoundId = id,
  508. TimePosition = timepos,
  509. Parent = par or workspace,
  510. }
  511. wait()
  512. S:play()
  513. game:GetService("Debris"):AddItem(S, 10)
  514. end))
  515. end;
  516. };
  517. ["EchoSound"] = {
  518. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  519. coroutine.resume(coroutine.create(function()
  520. local Sas = Create("Sound"){
  521. Volume = vol,
  522. Name = "EffectSoundo",
  523. Pitch = pit or 1,
  524. SoundId = id,
  525. TimePosition = timepos,
  526. Parent = par or workspace,
  527. }
  528. local E = Create("EchoSoundEffect"){
  529. Delay = echodelay,
  530. Name = "Echo",
  531. Feedback = fedb,
  532. DryLevel = dryl,
  533. Parent = Sas,
  534. }
  535. wait()
  536. Sas:play()
  537. game:GetService("Debris"):AddItem(Sas, delays)
  538. end))
  539. end;
  540. };
  541.  
  542. ["LongSound"] = {
  543. Create = function(id, par, vol, pit)
  544. coroutine.resume(coroutine.create(function()
  545. local S = Create("Sound"){
  546. Volume = vol,
  547. Pitch = pit or 1,
  548. SoundId = id,
  549. Parent = par or workspace,
  550. }
  551. wait()
  552. S:play()
  553. game:GetService("Debris"):AddItem(S, 60)
  554. end))
  555. end;
  556. };
  557.  
  558. ["ParticleEmitter"] = {
  559. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  560. local fp = Create("ParticleEmitter"){
  561. Parent = Parent,
  562. Color = ColorSequence.new(Color1, Color2),
  563. LightEmission = LightEmission,
  564. Size = Size,
  565. Texture = Texture,
  566. Transparency = Transparency,
  567. ZOffset = ZOffset,
  568. Acceleration = Accel,
  569. Drag = Drag,
  570. LockedToPart = LockedToPart,
  571. VelocityInheritance = VelocityInheritance,
  572. EmissionDirection = EmissionDirection,
  573. Enabled = Enabled,
  574. Lifetime = LifeTime,
  575. Rate = Rate,
  576. Rotation = Rotation,
  577. RotSpeed = RotSpeed,
  578. Speed = Speed,
  579. VelocitySpread = VelocitySpread,
  580. }
  581. return fp
  582. end;
  583. };
  584.  
  585. CreateTemplate = {
  586.  
  587. };
  588. }
  589.  
  590.  
  591.  
  592. New = function(Object, Parent, Name, Data)
  593. local Object = Instance.new(Object)
  594. for Index, Value in pairs(Data or {}) do
  595. Object[Index] = Value
  596. end
  597. Object.Parent = Parent
  598. Object.Name = Name
  599. return Object
  600. end
  601. local halocolor = BrickColor.new("Pastel light blue")
  602. local halocolor2 = BrickColor.new("Cool yellow")
  603. local starcolor = BrickColor.new("Bright yellow")
  604. local lunacolor = BrickColor.new("Navy blue")
  605. local lunacolor2 = BrickColor.new("Bright blue")
  606. local wepcolor = BrickColor.new("Really black")
  607. local maincolor = BrickColor.new("Really black")
  608. local m = Instance.new("Model",char)
  609. local m2 = Instance.new("Model",char)
  610. local m3 = Instance.new("Model",char)
  611. local mw1 = Instance.new("Model",char)
  612. local mw2 = Instance.new("Model",char)
  613.  
  614.  
  615. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  616. local gui = it(GuiType)
  617. gui.Parent = parent
  618. gui.Text = text
  619. gui.BackgroundTransparency = backtrans
  620. gui.BackgroundColor3 = backcol
  621. gui.SizeConstraint = "RelativeXY"
  622. gui.TextXAlignment = "Center"
  623. gui.TextYAlignment = "Center"
  624. gui.Position = pos
  625. gui.Size = size
  626. gui.Font = "SourceSans"
  627. gui.FontSize = "Size14"
  628. gui.TextWrapped = false
  629. gui.TextStrokeTransparency = 0
  630. gui.TextColor = BrickColor.new("White")
  631. return gui
  632. end
  633. --------------------------- GUI STUFF
  634. local basgui = it("GuiMain")
  635. basgui.Parent = plr.PlayerGui
  636. basgui.Name = "VISgui"
  637. local fullscreenz = it("Frame")
  638. fullscreenz.Parent = basgui
  639. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  640. fullscreenz.BackgroundTransparency = 1
  641. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  642. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  643. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  644. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  645. imgl2.BackgroundTransparency = 1
  646. imgl2.BorderSizePixel = 0
  647. imgl2.ImageTransparency = 0.5
  648. imgl2.ImageColor3 = Color3.new(1,0,0)
  649. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  650. imgl2.Size = UDim2.new(0,1000,0,1000)
  651. imgl2.Image = "rbxassetid://2325939897"
  652. local techc = imgl2:Clone()
  653. techc.Parent = fullscreenz
  654. techc.ImageTransparency = 0
  655. techc.Size = UDim2.new(0,900,0,900)
  656. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  657. techc.ImageColor3 = Color3.new(1,0,0)
  658. techc.Image = "rbxassetid://2273224484"
  659. local circl = imgl2:Clone()
  660. circl.Parent = fullscreenz
  661. circl.ImageTransparency = 0
  662. circl.Size = UDim2.new(0,550,0,550)
  663. circl.Position = UDim2.new(0.75,25,0.55,25)
  664. circl.ImageColor3 = Color3.new(0,0,0)
  665. circl.Image = "rbxassetid://2312119891"
  666. local circl2 = imgl2:Clone()
  667. circl2.Parent = fullscreenz
  668. circl2.ImageTransparency = 0
  669. circl2.Size = UDim2.new(0,700,0,700)
  670. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  671. circl2.ImageColor3 = Color3.new(1,0,0)
  672. circl2.Image = "rbxassetid://2312119891"
  673. local imgl2b = imgl2:Clone()
  674. imgl2b.Parent = fullscreenz
  675. imgl2b.ImageTransparency = 0
  676. imgl2b.Size = UDim2.new(0,800,0,800)
  677. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  678. imgl2b.ImageColor3 = Color3.new(0,0,0)
  679. local ned = Instance.new("TextLabel",fullscreenz)
  680. ned.ZIndex = 2
  681. ned.Font = "Arcade"
  682. ned.BackgroundTransparency = 1
  683. ned.BorderSizePixel = 0.65
  684. ned.Size = UDim2.new(0.3,0,0.2,0)
  685. ned.Position = UDim2.new(0.7,0,0.8,0)
  686. ned.TextColor3 = BrickColor.new("Really red").Color
  687. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  688. ned.TextScaled = true
  689. ned.TextStrokeTransparency = 0
  690. ned.Text = "Hopeless Guest"
  691. ned.TextSize = 24
  692. ned.Rotation = 1
  693. ned.TextXAlignment = "Right"
  694. ned.TextYAlignment = "Bottom"
  695.  
  696. local extrawingmod1 = Instance.new("Model",char)
  697. local extrawingmod2 = Instance.new("Model",char)
  698.  
  699. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  700. local p = Instance.new("Part")
  701. p.TopSurface = 0
  702. p.BottomSurface = 0
  703. p.Parent = parent
  704. p.Size = Vector3.new(0.1,0.1,0.1)
  705. p.Transparency = transparency
  706. p.Reflectance = reflectance
  707. p.CanCollide = false
  708. p.Locked = true
  709. p.BrickColor = brickcolor
  710. p.Material = material
  711. return p
  712. end
  713.  
  714. function CreateMesh(parent,meshtype,x1,y1,z1)
  715. local mesh = Instance.new("SpecialMesh",parent)
  716. mesh.MeshType = meshtype
  717. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  718. return mesh
  719. end
  720.  
  721. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  722. local mesh = Instance.new("SpecialMesh",parent)
  723. mesh.MeshType = "FileMesh"
  724. mesh.MeshId = meshid
  725. mesh.Scale = Vector3.new(x1,y1,z1)
  726. return mesh
  727. end
  728.  
  729.  
  730. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  731. local mesh = Instance.new("SpecialMesh",parent)
  732. mesh.MeshType = "FileMesh"
  733. mesh.MeshId = meshid
  734. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  735. mesh.Scale = Vector3.new(x1,y1,z1)
  736. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  737. return mesh
  738. end
  739.  
  740. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  741. local weld = Instance.new("Weld")
  742. weld.Parent = parent
  743. weld.Part0 = part0
  744. weld.Part1 = part1
  745. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  746. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  747. return weld
  748. end
  749.  
  750.  
  751. --------------
  752. --------------
  753. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  754. 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))
  755. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  756. 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))
  757.  
  758. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  759. CreateMesh(handle,"Brick",0,0,0)
  760. 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))
  761. local valuaring = 10
  762. for i = 0, 49 do
  763. valuaring = valuaring + 10
  764. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  765. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  766. 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))
  767. end
  768.  
  769. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  770. CreateMesh(handle,"Brick",0,0,0)
  771. 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))
  772. local valuaring = 10
  773. for i = 0, 49 do
  774. valuaring = valuaring + 10
  775. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  776. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  777. 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))
  778. end
  779.  
  780.  
  781. local handle = CreateParta(m,1,1,"Neon",maincolor)
  782. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  783. 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))
  784.  
  785. --- Left wing.
  786.  
  787. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  788. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  789. 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))
  790.  
  791. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  793. 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))
  794. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  796. 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))
  797. A0 = Instance.new('Attachment',wed)
  798. A0.Position = vt(0,0.25,0.25)
  799. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,3)
  801. 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))
  802. A1 = Instance.new('Attachment',wed)
  803. A1.Position = vt(0,-0.25,-2)
  804. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  805. CreateMesh(wed,"Wedge",0.05,3,0.5)
  806. 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))
  807.  
  808. tl1 = Instance.new('Trail',wed)
  809. tl1.Attachment0 = A1
  810. tl1.Attachment1 = A0
  811. tl1.Texture = "rbxassetid://2108945559"
  812. tl1.LightEmission = 1
  813. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  814. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  815. tl1.Lifetime = 0.6
  816.  
  817.  
  818. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  819. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  820. 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))
  821.  
  822. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  823. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  824. 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))
  825. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  826. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  827. 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))
  828. A0 = Instance.new('Attachment',wed)
  829. A0.Position = vt(0,0.25,0.25)
  830. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,3)
  832. 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))
  833. A1 = Instance.new('Attachment',wed)
  834. A1.Position = vt(0,-0.25,-2)
  835. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,3,0.5)
  837. 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))
  838.  
  839. tl2 = Instance.new('Trail',wed)
  840. tl2.Attachment0 = A1
  841. tl2.Attachment1 = A0
  842. tl2.Texture = "rbxassetid://2108945559"
  843. tl2.LightEmission = 1
  844. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  845. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  846. tl2.Lifetime = 0.6
  847.  
  848. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  849. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  850. 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))
  851.  
  852. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  853. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  854. 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))
  855. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  857. 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))
  858. A0 = Instance.new('Attachment',wed)
  859. A0.Position = vt(0,0.25,0.25)
  860. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  861. CreateMesh(wed,"Wedge",0.05,0.5,3)
  862. 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))
  863. A1 = Instance.new('Attachment',wed)
  864. A1.Position = vt(0,-0.25,-2)
  865. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,3,0.5)
  867. 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))
  868.  
  869. tl3 = Instance.new('Trail',wed)
  870. tl3.Attachment0 = A1
  871. tl3.Attachment1 = A0
  872. tl3.Texture = "rbxassetid://2108945559"
  873. tl3.LightEmission = 1
  874. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  875. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  876. tl3.Lifetime = 0.6
  877.  
  878. tl1.Enabled = false
  879. tl2.Enabled = false
  880. tl3.Enabled = false
  881. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  882. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  883. 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))
  884.  
  885. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  886. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  887. 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))
  888. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  889. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  890. 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))
  891. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,3)
  893. 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))
  894. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,3,0.5)
  896. 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))
  897.  
  898. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  899. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  900. 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))
  901.  
  902. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  904. 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))
  905. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  907. 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))
  908. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  909. CreateMesh(wed,"Wedge",0.05,0.5,3)
  910. 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))
  911. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,3,0.5)
  913. 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))
  914.  
  915. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  916. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  917. 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))
  918.  
  919. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  920. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  921. 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))
  922. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. 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))
  925. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,3)
  927. 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))
  928. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,3,0.5)
  930. 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))
  931.  
  932. -- Right wing.
  933.  
  934. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  935. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  936. 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))
  937.  
  938. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  939. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  940. 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))
  941. A0 = Instance.new('Attachment',wed)
  942. A0.Position = vt(0,0.25,0.25)
  943. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,3)
  948. 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))
  949. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,3,0.5)
  951. 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))
  952. A1 = Instance.new('Attachment',wed)
  953. A1.Position = vt(0,2,0.25)
  954.  
  955. tr1 = Instance.new('Trail',wed)
  956. tr1.Attachment0 = A1
  957. tr1.Attachment1 = A0
  958. tr1.Texture = "rbxassetid://2108945559"
  959. tr1.LightEmission = 1
  960. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  961. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  962. tr1.Lifetime = 0.6
  963.  
  964. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  965. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  966. 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))
  967.  
  968. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  970. 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))
  971. A0 = Instance.new('Attachment',wed)
  972. A0.Position = vt(0,0.25,0.25)
  973. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,3)
  978. 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))
  979. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,3,0.5)
  981. 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))
  982. A1 = Instance.new('Attachment',wed)
  983. A1.Position = vt(0,2,0.25)
  984.  
  985. tr2 = Instance.new('Trail',wed)
  986. tr2.Attachment0 = A1
  987. tr2.Attachment1 = A0
  988. tr2.Texture = "rbxassetid://2108945559"
  989. tr2.LightEmission = 1
  990. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  991. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  992. tr2.Lifetime = 0.6
  993.  
  994. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  995. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  996. 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))
  997.  
  998. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  999. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1000. 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))
  1001. A0 = Instance.new('Attachment',wed)
  1002. A0.Position = vt(0,0.25,0.25)
  1003. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1004. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1005. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1006. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1007. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1008. 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))
  1009. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1010. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1011. 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))
  1012. A1 = Instance.new('Attachment',wed)
  1013. A1.Position = vt(0,2,0.25)
  1014.  
  1015. tr3 = Instance.new('Trail',wed)
  1016. tr3.Attachment0 = A1
  1017. tr3.Attachment1 = A0
  1018. tr3.Texture = "rbxassetid://2108945559"
  1019. tr3.LightEmission = 1
  1020. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1021. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1022. tr3.Lifetime = 0.6
  1023.  
  1024.  
  1025. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1026. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1027. 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))
  1028.  
  1029. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1030. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1031. 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))
  1032. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1033. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1034. 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))
  1035. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1037. 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))
  1038. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1040. 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))
  1041.  
  1042. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1043. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1044. 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))
  1045.  
  1046. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1048. 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))
  1049. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1051. 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))
  1052. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1053. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1054. 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))
  1055. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1056. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1057. 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))
  1058.  
  1059. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1060. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1061. 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))
  1062.  
  1063. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1064. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1065. 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))
  1066. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1068. 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))
  1069. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1071. 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))
  1072. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1074. 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))
  1075.  
  1076. --HERES THE RING
  1077.  
  1078.  
  1079. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1080. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1081. 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))
  1082. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1083. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1084. 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))
  1085. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1086. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1087. 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))
  1088.  
  1089.  
  1090. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1091. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1092. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1097.  
  1098.  
  1099.  
  1100. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1101. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1102. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107.  
  1108. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1109. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1110. 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))
  1111.  
  1112. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1113. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1114. 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))
  1115. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1116. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1117. 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))]]--
  1118.  
  1119. --- second ring
  1120.  
  1121.  
  1122. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1123. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1124. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1129.  
  1130.  
  1131.  
  1132. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1133. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1134. 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))
  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.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1139.  
  1140. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1141. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1142. 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))
  1143.  
  1144. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1145. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1146. 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))
  1147. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1148. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1149. 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))
  1150.  
  1151.  
  1152.  
  1153. for i, v in pairs(m:GetChildren()) do
  1154. if v:IsA("Part") then
  1155. v.BrickColor = BrickColor.new("Really black")
  1156. v.Material = "Glass"
  1157. end
  1158. end
  1159. for i, v in pairs(m2:GetChildren()) do
  1160. if v:IsA("Part") then
  1161. v.BrickColor = BrickColor.new("Crimson")
  1162. v.Material = "Granite"
  1163. end
  1164. end
  1165. for i, v in pairs(m3:GetChildren()) do
  1166. if v:IsA("Part") then
  1167. v.BrickColor = BrickColor.new("Really red")
  1168. v.Material = "Neon"
  1169. end
  1170. end
  1171. for i, v in pairs(mw2:GetChildren()) do
  1172. if v:IsA("Part") then
  1173. v.BrickColor = BrickColor.new("Really red")
  1174. v.Material = "Neon"
  1175. end
  1176. end
  1177. for i, v in pairs(mw1:GetChildren()) do
  1178. if v:IsA("Part") then
  1179. v.Transparency = 1
  1180. v.BrickColor = BrickColor.new("Really red")
  1181. v.Material = "Neon"
  1182. end
  1183. end
  1184. for i, v in pairs(extrawingmod1:GetChildren()) do
  1185. if v:IsA("Part") then
  1186. v.Transparency = 1
  1187. v.BrickColor = BrickColor.new("White")
  1188. v.Material = "Neon"
  1189. end
  1190. end
  1191. for i, v in pairs(extrawingmod2:GetChildren()) do
  1192. if v:IsA("Part") then
  1193. v.Transparency = 1
  1194. v.BrickColor = BrickColor.new("White")
  1195. v.Material = "Neon"
  1196. end
  1197. end
  1198. local MAINRUINCOLOR = BrickColor.new("Really red")
  1199. ------
  1200.  
  1201.  
  1202. function RemoveOutlines(part)
  1203. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1204. end
  1205. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1206. local Part = Create("Part")({
  1207. Parent = Parent,
  1208. Reflectance = Reflectance,
  1209. Transparency = Transparency,
  1210. CanCollide = false,
  1211. Locked = true,
  1212. BrickColor = BrickColor.new(tostring(BColor)),
  1213. Name = Name,
  1214. Size = Size,
  1215. Material = Material
  1216. })
  1217. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1218. RemoveOutlines(Part)
  1219. return Part
  1220. end
  1221. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1222. local Msh = Create(Mesh)({
  1223. Parent = Part,
  1224. Offset = OffSet,
  1225. Scale = Scale
  1226. })
  1227. if Mesh == "SpecialMesh" then
  1228. Msh.MeshType = MeshType
  1229. Msh.MeshId = MeshId
  1230. end
  1231. return Msh
  1232. end
  1233. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1234. local Weld = Create("Weld")({
  1235. Parent = Parent,
  1236. Part0 = Part0,
  1237. Part1 = Part1,
  1238. C0 = C0,
  1239. C1 = C1
  1240. })
  1241. return Weld
  1242. end
  1243.  
  1244. Player = plr
  1245. Character=Player.Character
  1246. PlayerGui=Player.PlayerGui
  1247. Backpack=Player.Backpack
  1248. Torso=Character.Torso
  1249. Head=Character.Head
  1250. Humanoid=Character.Humanoid
  1251. m=Instance.new('Model',Character)
  1252. LeftArm=Character["Left Arm"]
  1253. LeftLeg=Character["Left Leg"]
  1254. RightArm=Character["Right Arm"]
  1255. RightLeg=Character["Right Leg"]
  1256. LS=Torso["Left Shoulder"]
  1257. LH=Torso["Left Hip"]
  1258. RS=Torso["Right Shoulder"]
  1259. RH=Torso["Right Hip"]
  1260. Face = Head.face
  1261. Neck=Torso.Neck
  1262. it=Instance.new
  1263. attacktype=1
  1264. vt=Vector3.new
  1265. cf=CFrame.new
  1266. euler=CFrame.fromEulerAnglesXYZ
  1267. angles=CFrame.Angles
  1268. cloaked=false
  1269. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1270. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1271. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1272. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1273. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1274. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1275. RootPart=Character.HumanoidRootPart
  1276. RootJoint=RootPart.RootJoint
  1277. RootCF=euler(-1.57,0,3.14)
  1278. attack = false
  1279. attackdebounce = false
  1280. deb=false
  1281. equipped=true
  1282. hand=false
  1283. combo=0
  1284. mana=0
  1285. trispeed=.2
  1286. attackmode='none'
  1287. local idle=0
  1288. local Anim="Idle"
  1289. local Effects={}
  1290. local gun=false
  1291. local shoot=false
  1292. local sine = 0
  1293. local change = 1
  1294.  
  1295. function RecolorTextAndRename(name,col1,col2,font)
  1296. modet.TextStrokeColor3 = col2
  1297. modet.TextColor3 = col1
  1298. modet.Font = font
  1299. modet.Text = name
  1300. techc.ImageColor3 = col2
  1301. circl.ImageColor3 = col2
  1302. circl2.ImageColor3 = col1
  1303. imgl2.ImageColor3 = col1
  1304. imgl2b.ImageColor3 = col2
  1305. ned.Text = name
  1306. ned.TextColor3 = col1
  1307. ned.TextStrokeColor3 = col2
  1308. end
  1309. --save shoulders
  1310. RSH, LSH=nil, nil
  1311. --welds
  1312. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1313. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1314. LH=Torso["Left Hip"]
  1315. RH=Torso["Right Hip"]
  1316. TorsoColor=Torso.BrickColor
  1317. function NoOutline(Part)
  1318. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1319. end
  1320. ch=Character
  1321. RSH=ch.Torso["Right Shoulder"]
  1322. LSH=ch.Torso["Left Shoulder"]
  1323. --
  1324. RSH.Parent=nil
  1325. LSH.Parent=nil
  1326. --
  1327. RW.Name="Right Shoulder"
  1328. RW.Part0=ch.Torso
  1329. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1330. RW.C1=cf(0, 0.5, 0)
  1331. RW.Part1=ch["Right Arm"]
  1332. RW.Parent=ch.Torso
  1333. --
  1334. LW.Name="Left Shoulder"
  1335. LW.Part0=ch.Torso
  1336. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1337. LW.C1=cf(0, 0.5, 0)
  1338. LW.Part1=ch["Left Arm"]
  1339. LW.Parent=ch.Torso
  1340.  
  1341. local Stats=Instance.new("BoolValue")
  1342. Stats.Name="Stats"
  1343. Stats.Parent=Character
  1344. local Atk=Instance.new("NumberValue")
  1345. Atk.Name="Damage"
  1346. Atk.Parent=Stats
  1347. Atk.Value=1
  1348. local Def=Instance.new("NumberValue")
  1349. Def.Name="Defense"
  1350. Def.Parent=Stats
  1351. Def.Value=1
  1352. local Speed=Instance.new("NumberValue")
  1353. Speed.Name="Speed"
  1354. Speed.Parent=Stats
  1355. Speed.Value=1
  1356. local Mvmt=Instance.new("NumberValue")
  1357. Mvmt.Name="Movement"
  1358. Mvmt.Parent=Stats
  1359. Mvmt.Value=1
  1360.  
  1361. local donum=0
  1362. local ast = {744586075,385254610}
  1363.  
  1364. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1365. local fp=it("Part")
  1366. fp.formFactor=formfactor
  1367. fp.Parent=parent
  1368. fp.Reflectance=reflectance
  1369. fp.Transparency=transparency
  1370. fp.CanCollide=false
  1371. fp.Locked=true
  1372. fp.BrickColor=brickcolor
  1373. fp.Name=name
  1374. fp.Size=size
  1375. fp.Position=Torso.Position
  1376. NoOutline(fp)
  1377. fp.Material="SmoothPlastic"
  1378. fp:BreakJoints()
  1379. return fp
  1380. end
  1381.  
  1382. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1383. local mesh=it(Mesh)
  1384. mesh.Parent=part
  1385. if Mesh=="SpecialMesh" then
  1386. mesh.MeshType=meshtype
  1387. if meshid~="nil" then
  1388. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1389. end
  1390. end
  1391. mesh.Offset=offset
  1392. mesh.Scale=scale
  1393. return mesh
  1394. end
  1395.  
  1396. function weld(parent,part0,part1,c0)
  1397. local weld=it("Weld")
  1398. weld.Parent=parent
  1399. weld.Part0=part0
  1400. weld.Part1=part1
  1401. weld.C0=c0
  1402. return weld
  1403. end
  1404.  
  1405. local Color1=Torso.BrickColor
  1406.  
  1407. local bodvel=Instance.new("BodyVelocity")
  1408. local bg=Instance.new("BodyGyro")
  1409.  
  1410. --------- SazEreno's Artificial HB --------------
  1411. ArtificialHB = Instance.new("BindableEvent", script)
  1412. ArtificialHB.Name = "ArtificialHB"
  1413.  
  1414. script:WaitForChild("ArtificialHB")
  1415. Frame_Speed = 1 / 60
  1416. frame = Frame_Speed
  1417. tf = 0
  1418. allowframeloss = false
  1419. tossremainder = false
  1420. lastframe = tick()
  1421. script.ArtificialHB:Fire()
  1422.  
  1423. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1424. tf = tf + s
  1425. if tf >= frame then
  1426. if allowframeloss then
  1427. script.ArtificialHB:Fire()
  1428. lastframe = tick()
  1429. else
  1430. for i = 1, math.floor(tf / frame) do
  1431. script.ArtificialHB:Fire()
  1432. end
  1433. lastframe = tick()
  1434. end
  1435. if tossremainder then
  1436. tf = 0
  1437. else
  1438. tf = tf - frame * math.floor(tf / frame)
  1439. end
  1440. end
  1441. end)
  1442.  
  1443. ------------------
  1444. function swait(num)
  1445. if num == 0 or num == nil then
  1446. ArtificialHB.Event:wait()
  1447. else
  1448. for i = 1, num do
  1449. ArtificialHB.Event:wait()
  1450. end
  1451. end
  1452. end
  1453. -------- RAINBOW LEAVE IT TO ME
  1454. local r = 255
  1455. local g = 0
  1456. local b = 0
  1457. coroutine.resume(coroutine.create(function()
  1458. while wait() do
  1459. for i = 0, 254/5 do
  1460. swait()
  1461. g = g + 5
  1462. end
  1463. for i = 0, 254/5 do
  1464. swait()
  1465. r = r - 5
  1466. end
  1467. for i = 0, 254/5 do
  1468. swait()
  1469. b = b + 5
  1470. end
  1471. for i = 0, 254/5 do
  1472. swait()
  1473. g = g - 5
  1474. end
  1475. for i = 0, 254/5 do
  1476. swait()
  1477. r = r + 5
  1478. end
  1479. for i = 0, 254/5 do
  1480. swait()
  1481. b = b - 5
  1482. end
  1483. end
  1484. end))
  1485.  
  1486.  
  1487. so = function(id,par,vol,pit)
  1488. coroutine.resume(coroutine.create(function()
  1489. local sou = Instance.new("Sound",par or workspace)
  1490. sou.Volume=vol
  1491. sou.Pitch=pit or 1
  1492. sou.SoundId=id
  1493. swait()
  1494. sou:play()
  1495. game:GetService("Debris"):AddItem(sou,6)
  1496. end))
  1497. end
  1498.  
  1499. function clerp(a,b,t)
  1500. local qa = {QuaternionFromCFrame(a)}
  1501. local qb = {QuaternionFromCFrame(b)}
  1502. local ax, ay, az = a.x, a.y, a.z
  1503. local bx, by, bz = b.x, b.y, b.z
  1504. local _t = 1-t
  1505. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1506. end
  1507.  
  1508. function QuaternionFromCFrame(cf)
  1509. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1510. local trace = m00 + m11 + m22
  1511. if trace > 0 then
  1512. local s = math.sqrt(1 + trace)
  1513. local recip = 0.5/s
  1514. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1515. else
  1516. local i = 0
  1517. if m11 > m00 then
  1518. i = 1
  1519. end
  1520. if m22 > (i == 0 and m00 or m11) then
  1521. i = 2
  1522. end
  1523. if i == 0 then
  1524. local s = math.sqrt(m00-m11-m22+1)
  1525. local recip = 0.5/s
  1526. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1527. elseif i == 1 then
  1528. local s = math.sqrt(m11-m22-m00+1)
  1529. local recip = 0.5/s
  1530. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1531. elseif i == 2 then
  1532. local s = math.sqrt(m22-m00-m11+1)
  1533. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1534. end
  1535. end
  1536. end
  1537.  
  1538. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1539. local xs, ys, zs = x + x, y + y, z + z
  1540. local wx, wy, wz = w*xs, w*ys, w*zs
  1541. local xx = x*xs
  1542. local xy = x*ys
  1543. local xz = x*zs
  1544. local yy = y*ys
  1545. local yz = y*zs
  1546. local zz = z*zs
  1547. 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))
  1548. end
  1549.  
  1550. function QuaternionSlerp(a, b, t)
  1551. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1552. local startInterp, finishInterp;
  1553. if cosTheta >= 0.0001 then
  1554. if (1 - cosTheta) > 0.0001 then
  1555. local theta = math.acos(cosTheta)
  1556. local invSinTheta = 1/math.sin(theta)
  1557. startInterp = math.sin((1-t)*theta)*invSinTheta
  1558. finishInterp = math.sin(t*theta)*invSinTheta
  1559. else
  1560. startInterp = 1-t
  1561. finishInterp = t
  1562. end
  1563. else
  1564. if (1+cosTheta) > 0.0001 then
  1565. local theta = math.acos(-cosTheta)
  1566. local invSinTheta = 1/math.sin(theta)
  1567. startInterp = math.sin((t-1)*theta)*invSinTheta
  1568. finishInterp = math.sin(t*theta)*invSinTheta
  1569. else
  1570. startInterp = t-1
  1571. finishInterp = t
  1572. end
  1573. end
  1574. 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
  1575. end
  1576.  
  1577. local function CFrameFromTopBack(at, top, back)
  1578. local right = top:Cross(back)
  1579. return CFrame.new(at.x, at.y, at.z,
  1580. right.x, top.x, back.x,
  1581. right.y, top.y, back.y,
  1582. right.z, top.z, back.z)
  1583. end
  1584.  
  1585. function Triangle(a, b, c)
  1586. local edg1 = (c-a):Dot((b-a).unit)
  1587. local edg2 = (a-b):Dot((c-b).unit)
  1588. local edg3 = (b-c):Dot((a-c).unit)
  1589. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1590. a, b, c = a, b, c
  1591. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1592. a, b, c = b, c, a
  1593. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1594. a, b, c = c, a, b
  1595. else
  1596. assert(false, "unreachable")
  1597. end
  1598.  
  1599. local len1 = (c-a):Dot((b-a).unit)
  1600. local len2 = (b-a).magnitude - len1
  1601. local width = (a + (b-a).unit*len1 - c).magnitude
  1602.  
  1603. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1604.  
  1605. local list = {}
  1606.  
  1607. if len1 > 0.01 then
  1608. local w1 = Instance.new('WedgePart', m)
  1609. game:GetService("Debris"):AddItem(w1,5)
  1610. w1.Material = "SmoothPlastic"
  1611. w1.FormFactor = 'Custom'
  1612. w1.BrickColor = BrickColor.new("Really red")
  1613. w1.Transparency = 0
  1614. w1.Reflectance = 0
  1615. w1.Material = "SmoothPlastic"
  1616. w1.CanCollide = false
  1617. local l1 = Instance.new("PointLight",w1)
  1618. l1.Color = Color3.new(170,0,0)
  1619. NoOutline(w1)
  1620. local sz = Vector3.new(0.2, width, len1)
  1621. w1.Size = sz
  1622. local sp = Instance.new("SpecialMesh",w1)
  1623. sp.MeshType = "Wedge"
  1624. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1625. w1:BreakJoints()
  1626. w1.Anchored = true
  1627. w1.Parent = workspace
  1628. w1.Transparency = 0.7
  1629. table.insert(Effects,{w1,"Disappear",.01})
  1630. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1631. table.insert(list,w1)
  1632. end
  1633.  
  1634. if len2 > 0.01 then
  1635. local w2 = Instance.new('WedgePart', m)
  1636. game:GetService("Debris"):AddItem(w2,5)
  1637. w2.Material = "SmoothPlastic"
  1638. w2.FormFactor = 'Custom'
  1639. w2.BrickColor = BrickColor.new("Really red")
  1640. w2.Transparency = 0
  1641. w2.Reflectance = 0
  1642. w2.Material = "SmoothPlastic"
  1643. w2.CanCollide = false
  1644. local l2 = Instance.new("PointLight",w2)
  1645. l2.Color = Color3.new(170,0,0)
  1646. NoOutline(w2)
  1647. local sz = Vector3.new(0.2, width, len2)
  1648. w2.Size = sz
  1649. local sp = Instance.new("SpecialMesh",w2)
  1650. sp.MeshType = "Wedge"
  1651. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1652. w2:BreakJoints()
  1653. w2.Anchored = true
  1654. w2.Parent = workspace
  1655. w2.Transparency = 0.7
  1656. table.insert(Effects,{w2,"Disappear",.01})
  1657. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1658. table.insert(list,w2)
  1659. end
  1660. return unpack(list)
  1661. end
  1662.  
  1663.  
  1664. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1665. if hit.Parent == nil then
  1666. return
  1667. end
  1668. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1669. for _, v in pairs(hit.Parent:children()) do
  1670. if v:IsA("Humanoid") then
  1671. h = v
  1672. end
  1673. end
  1674. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1675. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1676. return
  1677. end
  1678. local c = Create("ObjectValue")({
  1679. Name = "creator",
  1680. Value = game:GetService("Players").GodzPlaysRB,
  1681. Parent = h
  1682. })
  1683. game:GetService("Debris"):AddItem(c, 0.5)
  1684. if HitSound ~= nil and HitPitch ~= nil then
  1685. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1686. end
  1687. local Damage = math.random(minim, maxim)
  1688. local blocked = false
  1689. local block = hit.Parent:findFirstChild("Block")
  1690. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1691. blocked = true
  1692. block.Value = block.Value - 1
  1693. print(block.Value)
  1694. end
  1695. if blocked == false then
  1696. HitHealth = h.Health
  1697. h.MaxHealth = 100
  1698. h.Health = h.Health - Damage
  1699. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1700. print("gained kill")
  1701. dmg(h.Parent)
  1702. end
  1703. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1704. else
  1705. h.Health = h.Health - Damage / 2
  1706. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1707. end
  1708. if Type == "Knockdown" then
  1709. local hum = hit.Parent.Humanoid
  1710. hum.PlatformStand = true
  1711. coroutine.resume(coroutine.create(function(HHumanoid)
  1712. swait(1)
  1713. HHumanoid.PlatformStand = false
  1714. end), hum)
  1715. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1716. local bodvol = Create("BodyVelocity")({
  1717. velocity = angle * knockback,
  1718. P = 5000,
  1719. maxForce = Vector3.new(8000, 8000, 8000),
  1720. Parent = hit
  1721. })
  1722. local rl = Create("BodyAngularVelocity")({
  1723. P = 3000,
  1724. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1725. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1726. Parent = hit
  1727. })
  1728. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1729. game:GetService("Debris"):AddItem(rl, 0.5)
  1730. elseif Type == "Normal" then
  1731. local vp = Create("BodyVelocity")({
  1732. P = 500,
  1733. maxForce = Vector3.new(math.huge, 0, math.huge),
  1734. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1735. })
  1736. if knockback > 0 then
  1737. vp.Parent = hit.Parent.Head
  1738. end
  1739. game:GetService("Debris"):AddItem(vp, 0.5)
  1740. elseif Type == "Up" then
  1741. local bodyVelocity = Create("BodyVelocity")({
  1742. velocity = Vector3.new(0, 20, 0),
  1743. P = 5000,
  1744. maxForce = Vector3.new(8000, 8000, 8000),
  1745. Parent = hit
  1746. })
  1747. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1748. local bodyVelocity = Create("BodyVelocity")({
  1749. velocity = Vector3.new(0, 20, 0),
  1750. P = 5000,
  1751. maxForce = Vector3.new(8000, 8000, 8000),
  1752. Parent = hit
  1753. })
  1754. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1755. elseif Type == "Leech" then
  1756. local hum = hit.Parent.Humanoid
  1757. if hum ~= nil then
  1758. for i = 0, 2 do
  1759. 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)
  1760. end
  1761. Humanoid.Health = Humanoid.Health + 10
  1762. end
  1763. elseif Type == "UpKnock" then
  1764. local hum = hit.Parent.Humanoid
  1765. hum.PlatformStand = true
  1766. if hum ~= nil then
  1767. hitr = true
  1768. end
  1769. coroutine.resume(coroutine.create(function(HHumanoid)
  1770. swait(5)
  1771. HHumanoid.PlatformStand = false
  1772. hitr = false
  1773. end), hum)
  1774. local bodyVelocity = Create("BodyVelocity")({
  1775. velocity = Vector3.new(0, 20, 0),
  1776. P = 5000,
  1777. maxForce = Vector3.new(8000, 8000, 8000),
  1778. Parent = hit
  1779. })
  1780. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1781. local bodyVelocity = Create("BodyVelocity")({
  1782. velocity = Vector3.new(0, 20, 0),
  1783. P = 5000,
  1784. maxForce = Vector3.new(8000, 8000, 8000),
  1785. Parent = hit
  1786. })
  1787. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1788. elseif Type == "Snare" then
  1789. local bp = Create("BodyPosition")({
  1790. P = 2000,
  1791. D = 100,
  1792. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1793. position = hit.Parent.Torso.Position,
  1794. Parent = hit.Parent.Torso
  1795. })
  1796. game:GetService("Debris"):AddItem(bp, 1)
  1797. elseif Type == "Slashnare" then
  1798. 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)
  1799. for i = 1, math.random(4, 5) do
  1800. 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)
  1801. end
  1802. local bp = Create("BodyPosition")({
  1803. P = 2000,
  1804. D = 100,
  1805. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1806. position = hit.Parent.Torso.Position,
  1807. Parent = hit.Parent.Torso
  1808. })
  1809. game:GetService("Debris"):AddItem(bp, 1)
  1810. elseif Type == "Spike" then
  1811. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1812. local bp = Create("BodyPosition")({
  1813. P = 2000,
  1814. D = 100,
  1815. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1816. position = hit.Parent.Torso.Position,
  1817. Parent = hit.Parent.Torso
  1818. })
  1819. game:GetService("Debris"):AddItem(bp, 1)
  1820. elseif Type == "Freeze" then
  1821. local BodPos = Create("BodyPosition")({
  1822. P = 50000,
  1823. D = 1000,
  1824. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1825. position = hit.Parent.Torso.Position,
  1826. Parent = hit.Parent.Torso
  1827. })
  1828. local BodGy = Create("BodyGyro")({
  1829. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1830. P = 20000,
  1831. Parent = hit.Parent.Torso,
  1832. cframe = hit.Parent.Torso.CFrame
  1833. })
  1834. hit.Parent.Torso.Anchored = true
  1835. coroutine.resume(coroutine.create(function(Part)
  1836. swait(1.5)
  1837. Part.Anchored = false
  1838. end), hit.Parent.Torso)
  1839. game:GetService("Debris"):AddItem(BodPos, 3)
  1840. game:GetService("Debris"):AddItem(BodGy, 3)
  1841. end
  1842. local debounce = Create("BoolValue")({
  1843. Name = "DebounceHit",
  1844. Parent = hit.Parent,
  1845. Value = true
  1846. })
  1847. game:GetService("Debris"):AddItem(debounce, Delay)
  1848. c = Instance.new("ObjectValue")
  1849. c.Name = "creator"
  1850. c.Value = Player
  1851. c.Parent = h
  1852. game:GetService("Debris"):AddItem(c, 0.5)
  1853. end
  1854. end
  1855. function ShowDamage(Pos, Text, Time, Color)
  1856. local Rate = 0.03333333333333333
  1857. local Pos = Pos or Vector3.new(0, 0, 0)
  1858. local Text = Text or ""
  1859. local Time = Time or 2
  1860. local Color = Color or Color3.new(1, 0, 1)
  1861. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1862. EffectPart.Anchored = true
  1863. local BillboardGui = Create("BillboardGui")({
  1864. Size = UDim2.new(3, 0, 3, 0),
  1865. Adornee = EffectPart,
  1866. Parent = EffectPart
  1867. })
  1868. local TextLabel = Create("TextLabel")({
  1869. BackgroundTransparency = 1,
  1870. Size = UDim2.new(1, 0, 1, 0),
  1871. Text = Text,
  1872. TextColor3 = Color,
  1873. TextScaled = true,
  1874. Font = Enum.Font.ArialBold,
  1875. Parent = BillboardGui
  1876. })
  1877. game.Debris:AddItem(EffectPart, Time + 0.1)
  1878. EffectPart.Parent = game:GetService("Workspace")
  1879. delay(0, function()
  1880. local Frames = Time / Rate
  1881. for Frame = 1, Frames do
  1882. wait(Rate)
  1883. local Percent = Frame / Frames
  1884. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1885. TextLabel.TextTransparency = Percent
  1886. end
  1887. if EffectPart and EffectPart.Parent then
  1888. EffectPart:Destroy()
  1889. end
  1890. end)
  1891. end
  1892. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1893. for _, c in pairs(workspace:children()) do
  1894. local hum = c:findFirstChildOfClass("Humanoid")
  1895. if hum ~= nil then
  1896. local head = c:findFirstChild("Head")
  1897. if head ~= nil then
  1898. local targ = head.Position - Part.Position
  1899. local mag = targ.magnitude
  1900. if magni >= mag and c.Name ~= Player.Name then
  1901. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1902. end
  1903. end
  1904. end
  1905. end
  1906. end
  1907.  
  1908. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1909. for _, c in pairs(workspace:children()) do
  1910. local hum = c:findFirstChild("Humanoid")
  1911. if hum ~= nil then
  1912. local head = c:findFirstChild("Torso")
  1913. if head ~= nil then
  1914. local targ = head.Position - Part.Position
  1915. local mag = targ.magnitude
  1916. if magni >= mag and c.Name ~= Player.Name then
  1917. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1918. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1919. end
  1920. end
  1921. end
  1922. end
  1923. end
  1924.  
  1925. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1926. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1927. end
  1928.  
  1929. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1930. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1931. prt.Anchored=true
  1932. prt.CFrame=cframe
  1933. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1934. --http://www.roblox.com/asset/?id=4770560
  1935. game:GetService("Debris"):AddItem(prt,2)
  1936. CF=prt.CFrame
  1937. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1938. for i=0,1,0.2 do
  1939. wait()
  1940. Part.CFrame=CF*cf(0,0,-0.4)
  1941. end
  1942. for i=0,1,delay do
  1943. wait()
  1944. --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)
  1945. Mesh.Scale=Mesh.Scale
  1946. end
  1947. for i=0,1,0.1 do
  1948. wait()
  1949. Part.Transparency=i
  1950. end
  1951. Part.Parent=nil
  1952. end),prt,msh,CF)
  1953. end
  1954.  
  1955. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1956. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1957. prt.Anchored=true
  1958. prt.Material = "Neon"
  1959. prt.CFrame=cframe
  1960. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1961. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1962. game:GetService("Debris"):AddItem(prt,5)
  1963. coroutine.resume(coroutine.create(function(Part,Mesh)
  1964. for i=0,1,delay do
  1965. swait()
  1966. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1967. Part.Transparency=i
  1968. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1969. end
  1970. Part.Parent=nil
  1971. end),prt,msh)
  1972. end
  1973.  
  1974. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1975. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1976. prt.Anchored=true
  1977. prt.Material = "Neon"
  1978. prt.CFrame=cframe
  1979. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1980. game:GetService("Debris"):AddItem(prt,5)
  1981. coroutine.resume(coroutine.create(function(Part,Mesh)
  1982. local rtype = rottype
  1983. for i=0,1,delay do
  1984. swait()
  1985. if rtype == 1 then
  1986. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1987. elseif rtype == 2 then
  1988. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1989. end
  1990. Part.Transparency=i
  1991. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1992. end
  1993. Part.Parent=nil
  1994. end),prt,msh)
  1995. end
  1996.  
  1997. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1998. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1999. prt.Anchored=true
  2000. prt.CFrame=cframe
  2001. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2002. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2003. game:GetService("Debris"):AddItem(prt,5)
  2004. coroutine.resume(coroutine.create(function(Part,Mesh)
  2005. for i=0,1,delay do
  2006. wait()
  2007. Part.Transparency=i
  2008. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2009. end
  2010. Part.Parent=nil
  2011. end),prt,msh)
  2012. end
  2013.  
  2014. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2015. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2016. prt.Anchored=true
  2017. prt.Material = "Neon"
  2018. prt.CFrame=cframe
  2019. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2020. game:GetService("Debris"):AddItem(prt,5)
  2021. coroutine.resume(coroutine.create(function(Part,Mesh)
  2022. local rtype = rottype
  2023. for i=0,1,delay do
  2024. swait()
  2025. if rtype == 1 then
  2026. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2027. elseif rtype == 2 then
  2028. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2029. end
  2030. Part.Transparency=i
  2031. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2032. end
  2033. Part.Parent=nil
  2034. end),prt,msh)
  2035. end
  2036.  
  2037. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2038. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2039. prt.Anchored=true
  2040. prt.Material = "Neon"
  2041. prt.CFrame=cframe
  2042. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2043. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2044. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2045. game:GetService("Debris"):AddItem(prt,5)
  2046. coroutine.resume(coroutine.create(function(Part,Mesh)
  2047. local rtype = rottype
  2048. for i=0,1,delay do
  2049. swait()
  2050. if rtype == 1 then
  2051. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2052. elseif rtype == 2 then
  2053. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2054. end
  2055. dec.Transparency=i
  2056. dec2.Transparency=i
  2057. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2058. end
  2059. Part.Parent=nil
  2060. end),prt,msh)
  2061. end
  2062.  
  2063. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2064. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2065. prt.Anchored=true
  2066. prt.Material = "Neon"
  2067. prt.CFrame=cframe
  2068. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2069. game:GetService("Debris"):AddItem(prt,5)
  2070. coroutine.resume(coroutine.create(function(Part,Mesh)
  2071. local rtype = rottype
  2072. for i=0,1,delay do
  2073. swait()
  2074. if rtype == 1 then
  2075. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2076. elseif rtype == 2 then
  2077. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2078. end
  2079. prt.Transparency=i
  2080. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2081. end
  2082. Part.Parent=nil
  2083. end),prt,msh)
  2084. end
  2085.  
  2086. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2087. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2088. prt.Anchored=true
  2089. prt.Material = "Neon"
  2090. prt.CFrame=cframe
  2091. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2092. game:GetService("Debris"):AddItem(prt,5)
  2093. coroutine.resume(coroutine.create(function(Part,Mesh)
  2094. local rtype = rottype
  2095. for i=0,1,delay do
  2096. swait()
  2097. if rtype == 1 then
  2098. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2099. elseif rtype == 2 then
  2100. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2101. end
  2102. prt.Transparency=i
  2103. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2104. end
  2105. Part.Parent=nil
  2106. end),prt,msh)
  2107. end
  2108.  
  2109. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2110. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2111. prt.Anchored=true
  2112. prt.Material = "Neon"
  2113. prt.CFrame=cframe
  2114. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2115. game:GetService("Debris"):AddItem(prt,5)
  2116. coroutine.resume(coroutine.create(function(Part,Mesh)
  2117. local rtype = rottype
  2118. for i=0,1,delay do
  2119. swait()
  2120. if rtype == 1 then
  2121. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2122. elseif rtype == 2 then
  2123. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2124. end
  2125. prt.Transparency=i
  2126. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2127. end
  2128. Part.Parent=nil
  2129. end),prt,msh)
  2130. end
  2131.  
  2132. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2133. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2134. prt.Anchored=true
  2135. prt.Material = "Neon"
  2136. prt.CFrame=cframe
  2137. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2138. game:GetService("Debris"):AddItem(prt,5)
  2139. coroutine.resume(coroutine.create(function(Part,Mesh)
  2140. local rtype = rottype
  2141. for i=0,1,delay do
  2142. swait()
  2143. if rtype == 1 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2145. elseif rtype == 2 then
  2146. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2147. end
  2148. prt.Transparency=i
  2149. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2150. end
  2151. Part.Parent=nil
  2152. end),prt,msh)
  2153. end
  2154.  
  2155. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2156. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2157. prt.Anchored=false
  2158. prt.CFrame=cframe
  2159. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2160. local wld=weld(prt,prt,Parent,cframe)
  2161. game:GetService("Debris"):AddItem(prt,5)
  2162. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2163. for i=0,1,delay do
  2164. wait()
  2165. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2166. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2167. Part.Transparency=i
  2168. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2169. end
  2170. Part.Parent=nil
  2171. end),prt,msh,wld)
  2172. end
  2173.  
  2174. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2175. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2176. prt.Anchored=false
  2177. prt.CFrame=cframe
  2178. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2179. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2180. game:GetService("Debris"):AddItem(prt,5)
  2181. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2182. for i=0,1,delay do
  2183. wait()
  2184. Weld.C0=euler(i*20,0,0)
  2185. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2186. Part.Transparency=i
  2187. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2188. end
  2189. Part.Parent=nil
  2190. end),prt,msh,wld)
  2191. end
  2192.  
  2193. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2194. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2195. prt.Anchored=true
  2196. prt.CFrame=cframe
  2197. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2198. game:GetService("Debris"):AddItem(prt,2)
  2199. coroutine.resume(coroutine.create(function(Part,Mesh)
  2200. for i=0,1,delay do
  2201. wait()
  2202. Part.CFrame=Part.CFrame
  2203. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2204. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2205. prt2.Anchored=true
  2206. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2207. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2208. game:GetService("Debris"):AddItem(prt2,2)
  2209. coroutine.resume(coroutine.create(function(Part,Mesh)
  2210. for i=0,1,0.1 do
  2211. wait()
  2212. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2213. end
  2214. Part.Parent=nil
  2215. end),prt2,msh2)
  2216. end
  2217. for i=0,1,delay*2 do
  2218. wait()
  2219. Part.CFrame=Part.CFrame
  2220. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2221. end
  2222. Part.Parent=nil
  2223. end),prt,msh)
  2224. end
  2225.  
  2226. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2227. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2228. prt.Anchored=true
  2229. prt.CFrame=cframe
  2230. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2231. game:GetService("Debris"):AddItem(prt,2)
  2232. coroutine.resume(coroutine.create(function(Part,Mesh)
  2233. for i=0,1,delay do
  2234. wait()
  2235. Part.CFrame=Part.CFrame
  2236. Part.Transparency=i
  2237. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2238. end
  2239. Part.Parent=nil
  2240. end),prt,msh)
  2241. end
  2242.  
  2243. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2244. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2245. prt.Anchored=true
  2246. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2247. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2248. game:GetService("Debris"):AddItem(prt,2)
  2249. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2250. CF=Part.CFrame
  2251. Numbb=0
  2252. randnumb=math.random()/10
  2253. rand1=math.random()/10
  2254. for i=0,1,rand1 do
  2255. wait()
  2256. CF=CF*cf(0,math.random()/2,0)
  2257. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2258. Part.CFrame=CF*euler(Numbb,0,0)
  2259. Part.Transparency=i
  2260. Numbb=Numbb+randnumb
  2261. end
  2262. Part.Parent=nil
  2263. end),prt,CF,Numbb,randnumb)
  2264. end
  2265.  
  2266. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2268. prt.Anchored=true
  2269. prt.CFrame=cframe
  2270. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2271. game:GetService("Debris"):AddItem(prt,5)
  2272. coroutine.resume(coroutine.create(function(Part,Mesh)
  2273. for i=0,1,delay do
  2274. wait()
  2275. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2276. Part.Transparency=i
  2277. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2278. end
  2279. Part.Parent=nil
  2280. end),prt,msh)
  2281. end
  2282.  
  2283. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2284. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2285. prt.Anchored=true
  2286. prt.CFrame=cframe
  2287. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2288. game:GetService("Debris"):AddItem(prt,2)
  2289. coroutine.resume(coroutine.create(function(Part,Mesh)
  2290. for i=0,1,delay do
  2291. wait()
  2292. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2293. Part.Transparency=i
  2294. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2295. end
  2296. Part.Parent=nil
  2297. end),prt,msh)
  2298. end
  2299.  
  2300. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2301. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2302. prt.Anchored=true
  2303. prt.CFrame=cframe*cf(x,y,z)
  2304. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2305. game:GetService("Debris"):AddItem(prt,5)
  2306. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2307. local num=math.random()
  2308. local num2=math.random(-3,2)+math.random()
  2309. local numm=0
  2310. for i=0,1,delay*2 do
  2311. swait()
  2312. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2313. Part.Transparency=i
  2314. numm=numm+0.01
  2315. end
  2316. Part.Parent=nil
  2317. Mesh.Parent=nil
  2318. end),prt,msh,x,y,z)
  2319. end
  2320.  
  2321. function dmgstart(dmg,what)
  2322. hitcon = what.Touched:connect(function(hit)
  2323. local hum = hit.Parent:FindFirstChild("Humanoid")
  2324. if hum and not hum:IsDescendantOf(Character) then
  2325. hum:TakeDamage(dmg)
  2326. end
  2327. end)
  2328. end
  2329.  
  2330. function dmgstop()
  2331. hitcon:disconnect()
  2332. end
  2333.  
  2334. function Cloak()
  2335. Face.Parent=nil
  2336. cloaked=true
  2337. for _,v in pairs(Torso.Parent:children()) do
  2338. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2339. coroutine.resume(coroutine.create(function()
  2340. for i=0,1,0.2 do
  2341. wait()
  2342. v.Transparency=i
  2343. end
  2344. v.Transparency=1
  2345. end))
  2346. end
  2347. if v.className=="Hat" then
  2348. hatp=v.Handle
  2349. coroutine.resume(coroutine.create(function(derp)
  2350. for i=0,1,0.2 do
  2351. wait()
  2352. derp.Transparency=i
  2353. end
  2354. derp.Transparency=1
  2355. end),hatp)
  2356. end
  2357. end
  2358. for _,v in pairs(m:children()) do
  2359. if v.className=="Part" then
  2360. coroutine.resume(coroutine.create(function()
  2361. for i=0,1,0.2 do
  2362. wait()
  2363. v.Transparency=i
  2364. end
  2365. v.Transparency=1
  2366. end))
  2367. end
  2368. end
  2369. end
  2370.  
  2371. function UnCloak()
  2372. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2373. Face.Parent=Head
  2374. cloaked=false
  2375. for _,v in pairs(Torso.Parent:children()) do
  2376. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2377. coroutine.resume(coroutine.create(function()
  2378. for i=0,1,0.1 do
  2379. wait()
  2380. v.Transparency=v.Transparency-0.1
  2381. end
  2382. v.Transparency=0
  2383. end))
  2384. end
  2385. if v.className=="Hat" then
  2386. hatp=v.Handle
  2387. coroutine.resume(coroutine.create(function(derp)
  2388. for i=0,1,0.1 do
  2389. wait()
  2390. derp.Transparency=derp.Transparency-0.1
  2391. end
  2392. derp.Transparency=0
  2393. end),hatp)
  2394. end
  2395. end
  2396. for _,v in pairs(m:children()) do
  2397. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2398. coroutine.resume(coroutine.create(function()
  2399. for i=0,1,0.1 do
  2400. wait()
  2401. v.Transparency=v.Transparency-0.1
  2402. end
  2403. v.Transparency=0
  2404. end))
  2405. v.Transparency=0
  2406. end
  2407. end
  2408. end
  2409.  
  2410. local origcolor = BrickColor.new("Pastel light blue")
  2411. ---- This section of explosions.
  2412.  
  2413. ----
  2414.  
  2415.  
  2416. function ring(type,pos,scale,value)
  2417. local type = type
  2418. local rng = Instance.new("Part", char)
  2419. rng.Anchored = true
  2420. rng.BrickColor = origcolor
  2421. rng.CanCollide = false
  2422. rng.FormFactor = 3
  2423. rng.Name = "Ring"
  2424. rng.Size = Vector3.new(1, 1, 1)
  2425. rng.Transparency = 0
  2426. rng.TopSurface = 0
  2427. rng.BottomSurface = 0
  2428. rng.CFrame = pos
  2429. local rngm = Instance.new("SpecialMesh", rng)
  2430. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2431. rngm.Scale = scale
  2432. local scaler2 = 1
  2433. if type == "Add" then
  2434. scaler2 = 1*value
  2435. elseif type == "Divide" then
  2436. scaler2 = 1/value
  2437. end
  2438. coroutine.resume(coroutine.create(function()
  2439. for i = 0,10,0.1 do
  2440. swait()
  2441. if type == "Add" then
  2442. scaler2 = scaler2 - 0.01*value
  2443. elseif type == "Divide" then
  2444. scaler2 = scaler2 - 0.01/value
  2445. end
  2446. rng.Transparency = rng.Transparency + 0.01
  2447. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2448. end
  2449. rng:Destroy()
  2450. end))
  2451. end
  2452.  
  2453.  
  2454. function wave(type,pos,scale,value)
  2455. local type = type
  2456. local rng = Instance.new("Part", char)
  2457. rng.Anchored = true
  2458. rng.BrickColor = origcolor
  2459. rng.CanCollide = false
  2460. rng.FormFactor = 3
  2461. rng.Name = "Ring"
  2462. rng.Size = Vector3.new(1, 1, 1)
  2463. rng.Transparency = 0
  2464. rng.TopSurface = 0
  2465. rng.BottomSurface = 0
  2466. rng.CFrame = pos
  2467. local rngm = Instance.new("SpecialMesh", rng)
  2468. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2469. rngm.Scale = scale
  2470. local scaler2 = 1
  2471. if type == "Add" then
  2472. scaler2 = 1*value
  2473. elseif type == "Divide" then
  2474. scaler2 = 1/value
  2475. end
  2476. coroutine.resume(coroutine.create(function()
  2477. for i = 0,10,0.1 do
  2478. swait()
  2479. if type == "Add" then
  2480. scaler2 = scaler2 - 0.01*value
  2481. elseif type == "Divide" then
  2482. scaler2 = scaler2 - 0.01/value
  2483. end
  2484. rng.Transparency = rng.Transparency + 0.01
  2485. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2486. end
  2487. rng:Destroy()
  2488. end))
  2489. end
  2490.  
  2491. function wind(type,pos,scale,value,speed)
  2492. local type = type
  2493. local rng = Instance.new("Part", char)
  2494. rng.Anchored = true
  2495. rng.BrickColor = origcolor
  2496. rng.CanCollide = false
  2497. rng.FormFactor = 3
  2498. rng.Name = "Ring"
  2499. rng.Size = Vector3.new(1, 1, 1)
  2500. rng.Transparency = 0
  2501. rng.TopSurface = 0
  2502. rng.BottomSurface = 0
  2503. rng.CFrame = pos
  2504. local rngm = Instance.new("SpecialMesh", rng)
  2505. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2506. rngm.Scale = scale
  2507. local scaler2 = 1
  2508. if type == "Add" then
  2509. scaler2 = 1*value
  2510. elseif type == "Divide" then
  2511. scaler2 = 1/value
  2512. end
  2513. coroutine.resume(coroutine.create(function()
  2514. for i = 0,10,0.1 do
  2515. swait()
  2516. if type == "Add" then
  2517. scaler2 = scaler2 - 0.01*value
  2518. elseif type == "Divide" then
  2519. scaler2 = scaler2 - 0.01/value
  2520. end
  2521. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2522. rng.Transparency = rng.Transparency + 0.01
  2523. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2524. end
  2525. rng:Destroy()
  2526. end))
  2527. end
  2528.  
  2529. function groundwind(type,pos,scale,value,speed)
  2530. local type = type
  2531. local rng = Instance.new("Part", char)
  2532. rng.Anchored = true
  2533. rng.BrickColor = origcolor
  2534. rng.CanCollide = false
  2535. rng.FormFactor = 3
  2536. rng.Name = "Ring"
  2537. rng.Size = Vector3.new(1, 1, 1)
  2538. rng.Transparency = 0
  2539. rng.TopSurface = 0
  2540. rng.BottomSurface = 0
  2541. rng.CFrame = pos
  2542. local rngm = Instance.new("SpecialMesh", rng)
  2543. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2544. rngm.Scale = scale
  2545. local scaler2 = 1
  2546. if type == "Add" then
  2547. scaler2 = 1*value
  2548. elseif type == "Divide" then
  2549. scaler2 = 1/value
  2550. end
  2551. coroutine.resume(coroutine.create(function()
  2552. for i = 0,10,0.1 do
  2553. swait()
  2554. if type == "Add" then
  2555. scaler2 = scaler2 - 0.01*value
  2556. elseif type == "Divide" then
  2557. scaler2 = scaler2 - 0.01/value
  2558. end
  2559. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2560. rng.Transparency = rng.Transparency + 0.01
  2561. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2562. end
  2563. rng:Destroy()
  2564. end))
  2565. end
  2566.  
  2567. function CameraManager()
  2568. if TwoD and not CamInterrupt then
  2569. if Humanoid.Health > 0 then
  2570. Camera.CameraSubject = Humanoid
  2571. Camera.CameraType = "Scriptable"
  2572. Humanoid.AutoRotate = false
  2573. if Booleans.GyroUse then
  2574. Directer.MaxTorque = Vec3(0, huge, 0)
  2575. else
  2576. Directer.MaxTorque = Vec3(0, 0, 0)
  2577. end
  2578. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2579. if Booleans.CamFollow then
  2580. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2581. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2582. else
  2583. CPart.Position = RootPart.Position
  2584. end
  2585. else
  2586. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2587. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2588. end
  2589. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2590. else
  2591. Camera.CameraSubject = Humanoid
  2592. Camera.CameraType = "Custom"
  2593. Controller.Disabled = false
  2594. end
  2595. end
  2596. end
  2597.  
  2598. function ring(type,pos,scale,value)
  2599. local type = type
  2600. local rng = Instance.new("Part", char)
  2601. rng.Anchored = true
  2602. rng.BrickColor = origcolor
  2603. rng.CanCollide = false
  2604. rng.FormFactor = 3
  2605. rng.Name = "Ring"
  2606. rng.Size = Vector3.new(1, 1, 1)
  2607. rng.Transparency = 0
  2608. rng.TopSurface = 0
  2609. rng.BottomSurface = 0
  2610. rng.CFrame = pos
  2611. local rngm = Instance.new("SpecialMesh", rng)
  2612. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2613. rngm.Scale = scale
  2614. local scaler2 = 1
  2615. if type == "Add" then
  2616. scaler2 = 1*value
  2617. elseif type == "Divide" then
  2618. scaler2 = 1/value
  2619. end
  2620. coroutine.resume(coroutine.create(function()
  2621. for i = 0,10,0.1 do
  2622. swait()
  2623. if type == "Add" then
  2624. scaler2 = scaler2 - 0.01*value
  2625. elseif type == "Divide" then
  2626. scaler2 = scaler2 - 0.01/value
  2627. end
  2628. rng.Transparency = rng.Transparency + 0.01
  2629. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2630. end
  2631. rng:Destroy()
  2632. end))
  2633. end
  2634.  
  2635.  
  2636. function wave(type,pos,scale,value)
  2637. local type = type
  2638. local rng = Instance.new("Part", char)
  2639. rng.Anchored = true
  2640. rng.BrickColor = origcolor
  2641. rng.CanCollide = false
  2642. rng.FormFactor = 3
  2643. rng.Name = "Ring"
  2644. rng.Size = Vector3.new(1, 1, 1)
  2645. rng.Transparency = 0
  2646. rng.TopSurface = 0
  2647. rng.BottomSurface = 0
  2648. rng.CFrame = pos
  2649. local rngm = Instance.new("SpecialMesh", rng)
  2650. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2651. rngm.Scale = scale
  2652. local scaler2 = 1
  2653. if type == "Add" then
  2654. scaler2 = 1*value
  2655. elseif type == "Divide" then
  2656. scaler2 = 1/value
  2657. end
  2658. coroutine.resume(coroutine.create(function()
  2659. for i = 0,10,0.1 do
  2660. swait()
  2661. if type == "Add" then
  2662. scaler2 = scaler2 - 0.01*value
  2663. elseif type == "Divide" then
  2664. scaler2 = scaler2 - 0.01/value
  2665. end
  2666. rng.Transparency = rng.Transparency + 0.01
  2667. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2668. end
  2669. rng:Destroy()
  2670. end))
  2671. end
  2672.  
  2673. function sphere(bonuspeed,type,pos,scale,value,color)
  2674. local type = type
  2675. local rng = Instance.new("Part", char)
  2676. rng.Anchored = true
  2677. if ModeOfGlitch ~= 9 then
  2678. rng.BrickColor = color
  2679. elseif ModeOfGlitch == 9 then
  2680. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2681. end
  2682. rng.CanCollide = false
  2683. rng.FormFactor = 3
  2684. rng.Name = "Ring"
  2685. rng.Material = "Neon"
  2686. rng.Size = Vector3.new(1, 1, 1)
  2687. rng.Transparency = 0
  2688. rng.TopSurface = 0
  2689. rng.BottomSurface = 0
  2690. rng.CFrame = pos
  2691. local rngm = Instance.new("SpecialMesh", rng)
  2692. rngm.MeshType = "Sphere"
  2693. rngm.Scale = scale
  2694. if rainbowmode == true then
  2695. rng.Color = Color3.new(r/255,g/255,b/255)
  2696. end
  2697. if ModeOfGlitch == 9 then
  2698. coroutine.resume(coroutine.create(function()
  2699. while true do
  2700. swait()
  2701. if rng.Parent ~= nil then
  2702. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2703. else
  2704. break
  2705. end
  2706. end
  2707. end))
  2708. end
  2709. local scaler2 = 1
  2710. if type == "Add" then
  2711. scaler2 = 1*value
  2712. elseif type == "Divide" then
  2713. scaler2 = 1/value
  2714. end
  2715. coroutine.resume(coroutine.create(function()
  2716. for i = 0,10/bonuspeed,0.1 do
  2717. swait()
  2718. if rainbowmode == true then
  2719. rng.Color = Color3.new(r/255,g/255,b/255)
  2720. end
  2721. if type == "Add" then
  2722. scaler2 = scaler2 - 0.01*value/bonuspeed
  2723. elseif type == "Divide" then
  2724. scaler2 = scaler2 - 0.01/value*bonuspeed
  2725. end
  2726. if chaosmode == true then
  2727. rng.BrickColor = BrickColor.random()
  2728. end
  2729. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2730. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2731. end
  2732. rng:Destroy()
  2733. end))
  2734. end
  2735.  
  2736. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2737. local type = type
  2738. local rng = Instance.new("Part", char)
  2739. rng.Anchored = true
  2740. if ModeOfGlitch ~= 9 then
  2741. rng.BrickColor = color
  2742. elseif ModeOfGlitch == 9 then
  2743. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2744. end
  2745. rng.CanCollide = false
  2746. rng.FormFactor = 3
  2747. rng.Name = "Ring"
  2748. rng.Material = "Neon"
  2749. rng.Size = Vector3.new(1, 1, 1)
  2750. rng.Transparency = 0
  2751. rng.TopSurface = 0
  2752. rng.BottomSurface = 0
  2753. rng.CFrame = pos
  2754. local rngm = Instance.new("SpecialMesh", rng)
  2755. rngm.MeshType = "Sphere"
  2756. rngm.Scale = scale
  2757. local scaler2 = 1
  2758. local scaler2b = 1
  2759. local scaler2c = 1
  2760. if type == "Add" then
  2761. scaler2 = 1*value
  2762. scaler2b = 1*value2
  2763. scaler2c = 1*value3
  2764. elseif type == "Divide" then
  2765. scaler2 = 1/value
  2766. scaler2b = 1/value2
  2767. scaler2c = 1/value3
  2768. end
  2769. if ModeOfGlitch == 9 then
  2770. coroutine.resume(coroutine.create(function()
  2771. while true do
  2772. swait()
  2773. if rng.Parent ~= nil then
  2774. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2775. else
  2776. break
  2777. end
  2778. end
  2779. end))
  2780. end
  2781. coroutine.resume(coroutine.create(function()
  2782. for i = 0,10/bonuspeed,0.1 do
  2783. swait()
  2784. if type == "Add" then
  2785. scaler2 = scaler2 - 0.01*value/bonuspeed
  2786. scaler2b = scaler2b - 0.01*value/bonuspeed
  2787. scaler2c = scaler2c - 0.01*value/bonuspeed
  2788. elseif type == "Divide" then
  2789. scaler2 = scaler2 - 0.01/value*bonuspeed
  2790. scaler2b = scaler2b - 0.01/value*bonuspeed
  2791. scaler2c = scaler2c - 0.01/value*bonuspeed
  2792. end
  2793. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2794. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2795. end
  2796. rng:Destroy()
  2797. end))
  2798. end
  2799.  
  2800. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2801. local type = type
  2802. local rotenable = rotatingop
  2803. local rng = Instance.new("Part", char)
  2804. rng.Anchored = true
  2805. rng.BrickColor = color
  2806. rng.CanCollide = false
  2807. rng.FormFactor = 3
  2808. rng.Name = "Ring"
  2809. rng.Material = "Neon"
  2810. rng.Size = Vector3.new(1, 1, 1)
  2811. rng.Transparency = 0
  2812. if typeoftrans == "In" then
  2813. rng.Transparency = 1
  2814. end
  2815. rng.TopSurface = 0
  2816. rng.BottomSurface = 0
  2817. rng.CFrame = pos
  2818. local rngm = Instance.new("SpecialMesh", rng)
  2819. rngm.MeshType = "FileMesh"
  2820. if typeofshape == "Normal" then
  2821. rngm.MeshId = "rbxassetid://662586858"
  2822. elseif typeofshape == "Round" then
  2823. rngm.MeshId = "rbxassetid://662585058"
  2824. end
  2825. rngm.Scale = scale
  2826. local scaler2 = 1/10
  2827. if type == "Add" then
  2828. scaler2 = 1*value/10
  2829. elseif type == "Divide" then
  2830. scaler2 = 1/value/10
  2831. end
  2832. local randomrot = math.random(1,2)
  2833. coroutine.resume(coroutine.create(function()
  2834. for i = 0,10/bonuspeed,0.1 do
  2835. swait()
  2836. if type == "Add" then
  2837. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2838. elseif type == "Divide" then
  2839. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2840. end
  2841. if rotenable == true then
  2842. if randomrot == 1 then
  2843. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2844. elseif randomrot == 2 then
  2845. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2846. end
  2847. end
  2848. if typeoftrans == "Out" then
  2849. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2850. elseif typeoftrans == "In" then
  2851. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2852. end
  2853. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2854. end
  2855. rng:Destroy()
  2856. end))
  2857. end
  2858.  
  2859. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2860. local type = type
  2861. local rng = Instance.new("Part", char)
  2862. rng.Anchored = true
  2863. rng.BrickColor = color
  2864. rng.CanCollide = false
  2865. rng.FormFactor = 3
  2866. rng.Name = "Ring"
  2867. rng.Material = "Neon"
  2868. rng.Size = Vector3.new(1, 1, 1)
  2869. rng.Transparency = 0
  2870. rng.TopSurface = 0
  2871. rng.BottomSurface = 0
  2872. rng.CFrame = pos
  2873. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2874. local rngm = Instance.new("SpecialMesh", rng)
  2875. rngm.MeshType = "Brick"
  2876. rngm.Scale = vt(x1,y1,z1)
  2877. if rainbowmode == true then
  2878. rng.Color = Color3.new(r/255,g/255,b/255)
  2879. end
  2880. local scaler2 = 1
  2881. local speeder = FastSpeed/10
  2882. if type == "Add" then
  2883. scaler2 = 1*value
  2884. elseif type == "Divide" then
  2885. scaler2 = 1/value
  2886. end
  2887. coroutine.resume(coroutine.create(function()
  2888. for i = 0,10/bonuspeed,0.1 do
  2889. swait()
  2890. if rainbowmode == true then
  2891. rng.Color = Color3.new(r/255,g/255,b/255)
  2892. end
  2893. if type == "Add" then
  2894. scaler2 = scaler2 - 0.01*value/bonuspeed
  2895. elseif type == "Divide" then
  2896. scaler2 = scaler2 - 0.01/value*bonuspeed
  2897. end
  2898. if chaosmode == true then
  2899. rng.BrickColor = BrickColor.random()
  2900. end
  2901. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2902. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2903. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2904. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2905. end
  2906. rng:Destroy()
  2907. end))
  2908. end
  2909.  
  2910. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2911. local type = type
  2912. local rng = Instance.new("Part", char)
  2913. rng.Anchored = true
  2914. rng.BrickColor = color
  2915. rng.CanCollide = false
  2916. rng.FormFactor = 3
  2917. rng.Name = "Ring"
  2918. rng.Material = "Neon"
  2919. rng.Size = Vector3.new(1, 1, 1)
  2920. rng.Transparency = 0
  2921. rng.TopSurface = 0
  2922. rng.BottomSurface = 0
  2923. rng.CFrame = pos
  2924. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2925. local rngm = Instance.new("SpecialMesh", rng)
  2926. rngm.MeshType = "Brick"
  2927. rngm.Scale = vt(x1,y1,z1)
  2928. if rainbowmode == true then
  2929. rng.Color = Color3.new(r/255,g/255,b/255)
  2930. end
  2931. local scaler2 = 1
  2932. local speeder = FastSpeed/10
  2933. if type == "Add" then
  2934. scaler2 = 1*value
  2935. elseif type == "Divide" then
  2936. scaler2 = 1/value
  2937. end
  2938. coroutine.resume(coroutine.create(function()
  2939. for i = 0,10/bonuspeed,0.1 do
  2940. swait()
  2941. if rainbowmode == true then
  2942. rng.Color = Color3.new(r/255,g/255,b/255)
  2943. end
  2944. if type == "Add" then
  2945. scaler2 = scaler2 - 0.01*value/bonuspeed
  2946. elseif type == "Divide" then
  2947. scaler2 = scaler2 - 0.01/value*bonuspeed
  2948. end
  2949. if chaosmode == true then
  2950. rng.BrickColor = BrickColor.random()
  2951. end
  2952. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2953. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2954. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2955. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2956. end
  2957. rng:Destroy()
  2958. end))
  2959. end
  2960.  
  2961. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2962. local type = type
  2963. local rng = Instance.new("Part", char)
  2964. rng.Anchored = true
  2965. rng.BrickColor = color
  2966. rng.CanCollide = false
  2967. rng.FormFactor = 3
  2968. rng.Name = "Ring"
  2969. rng.Material = "Neon"
  2970. rng.Size = Vector3.new(1, 1, 1)
  2971. rng.Transparency = 0
  2972. rng.TopSurface = 0
  2973. rng.BottomSurface = 0
  2974. rng.CFrame = pos
  2975. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2976. local rngm = Instance.new("SpecialMesh", rng)
  2977. rngm.MeshType = "Brick"
  2978. rngm.Scale = vt(x1,y1,z1)
  2979. if rainbowmode == true then
  2980. rng.Color = Color3.new(r/255,g/255,b/255)
  2981. end
  2982. local scaler2 = 0
  2983. local speeder = FastSpeed/10
  2984. if type == "Add" then
  2985. scaler2 = 1*value
  2986. elseif type == "Divide" then
  2987. scaler2 = 1/value
  2988. end
  2989. coroutine.resume(coroutine.create(function()
  2990. for i = 0,10/bonuspeed,0.1 do
  2991. swait()
  2992. if rainbowmode == true then
  2993. rng.Color = Color3.new(r/255,g/255,b/255)
  2994. end
  2995. if type == "Add" then
  2996. scaler2 = scaler2 - 0.01*value/bonuspeed
  2997. elseif type == "Divide" then
  2998. scaler2 = scaler2 - 0.01/value*bonuspeed
  2999. end
  3000. if chaosmode == true then
  3001. rng.BrickColor = BrickColor.random()
  3002. end
  3003. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3004. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3005. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3006. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3007. end
  3008. rng:Destroy()
  3009. end))
  3010. end
  3011.  
  3012. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3013. local type = type
  3014. local rng = Instance.new("Part", char)
  3015. rng.Anchored = true
  3016. rng.BrickColor = color
  3017. rng.Color = color3
  3018. rng.CanCollide = false
  3019. rng.FormFactor = 3
  3020. rng.Name = "Ring"
  3021. rng.Material = "Neon"
  3022. rng.Size = Vector3.new(1, 1, 1)
  3023. rng.Transparency = 0
  3024. rng.TopSurface = 0
  3025. rng.BottomSurface = 0
  3026. rng.CFrame = pos
  3027. local rngm = Instance.new("SpecialMesh", rng)
  3028. rngm.MeshType = "Brick"
  3029. rngm.Scale = scale
  3030. local scaler2 = 1
  3031. local scaler2b = 1
  3032. local scaler2c = 1
  3033. if type == "Add" then
  3034. scaler2 = 1*value
  3035. scaler2b = 1*value2
  3036. scaler2c = 1*value3
  3037. elseif type == "Divide" then
  3038. scaler2 = 1/value
  3039. scaler2b = 1/value2
  3040. scaler2c = 1/value3
  3041. end
  3042. coroutine.resume(coroutine.create(function()
  3043. for i = 0,10/bonuspeed,0.1 do
  3044. swait()
  3045. if type == "Add" then
  3046. scaler2 = scaler2 - 0.01*value/bonuspeed
  3047. scaler2b = scaler2b - 0.01*value/bonuspeed
  3048. scaler2c = scaler2c - 0.01*value/bonuspeed
  3049. elseif type == "Divide" then
  3050. scaler2 = scaler2 - 0.01/value*bonuspeed
  3051. scaler2b = scaler2b - 0.01/value*bonuspeed
  3052. scaler2c = scaler2c - 0.01/value*bonuspeed
  3053. end
  3054. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3055. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3056. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3057. end
  3058. rng:Destroy()
  3059. end))
  3060. end
  3061.  
  3062. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3063. local type = type
  3064. local rng = Instance.new("Part", char)
  3065. rng.Anchored = true
  3066. if ModeOfGlitch ~= 9 then
  3067. rng.BrickColor = color
  3068. elseif ModeOfGlitch == 9 then
  3069. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3070. end
  3071. rng.CanCollide = false
  3072. rng.FormFactor = 3
  3073. rng.Name = "Ring"
  3074. rng.Material = "Neon"
  3075. rng.Size = Vector3.new(1, 1, 1)
  3076. rng.Transparency = 0
  3077. rng.TopSurface = 0
  3078. rng.BottomSurface = 0
  3079. rng.CFrame = pos
  3080. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3081. local rngm = Instance.new("SpecialMesh", rng)
  3082. rngm.MeshType = "Sphere"
  3083. rngm.Scale = vt(x1,y1,z1)
  3084. if rainbowmode == true then
  3085. rng.Color = Color3.new(r/255,g/255,b/255)
  3086. end
  3087. if ModeOfGlitch == 9 then
  3088. coroutine.resume(coroutine.create(function()
  3089. while true do
  3090. swait()
  3091. if rng.Parent ~= nil then
  3092. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3093. else
  3094. break
  3095. end
  3096. end
  3097. end))
  3098. end
  3099. local scaler2 = 1
  3100. local speeder = FastSpeed
  3101. if type == "Add" then
  3102. scaler2 = 1*value
  3103. elseif type == "Divide" then
  3104. scaler2 = 1/value
  3105. end
  3106. coroutine.resume(coroutine.create(function()
  3107. for i = 0,10/bonuspeed,0.1 do
  3108. swait()
  3109. if rainbowmode == true then
  3110. rng.Color = Color3.new(r/255,g/255,b/255)
  3111. end
  3112. if type == "Add" then
  3113. scaler2 = scaler2 - 0.01*value/bonuspeed
  3114. elseif type == "Divide" then
  3115. scaler2 = scaler2 - 0.01/value*bonuspeed
  3116. end
  3117. if chaosmode == true then
  3118. rng.BrickColor = BrickColor.random()
  3119. end
  3120. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3121. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3122. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3123. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3124. end
  3125. rng:Destroy()
  3126. end))
  3127. end
  3128.  
  3129.  
  3130. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3131. local type = type
  3132. local rng = Instance.new("Part", char)
  3133. rng.Anchored = true
  3134. if ModeOfGlitch ~= 9 then
  3135. rng.BrickColor = color
  3136. elseif ModeOfGlitch == 9 then
  3137. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3138. end
  3139. rng.CanCollide = false
  3140. rng.FormFactor = 3
  3141. rng.Name = "Ring"
  3142. rng.Material = "Neon"
  3143. rng.Size = Vector3.new(1, 1, 1)
  3144. rng.Transparency = 1
  3145. rng.TopSurface = 0
  3146. rng.BottomSurface = 0
  3147. rng.CFrame = pos
  3148. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3149. local rngm = Instance.new("SpecialMesh", rng)
  3150. rngm.MeshType = "Sphere"
  3151. rngm.Scale = vt(x1,y1,z1)
  3152. if rainbowmode == true then
  3153. rng.Color = Color3.new(r/255,g/255,b/255)
  3154. end
  3155. if ModeOfGlitch == 9 then
  3156. coroutine.resume(coroutine.create(function()
  3157. while true do
  3158. swait()
  3159. if rng.Parent ~= nil then
  3160. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3161. else
  3162. break
  3163. end
  3164. end
  3165. end))
  3166. end
  3167. local scaler2 = 1
  3168. local speeder = FastSpeed
  3169. if type == "Add" then
  3170. scaler2 = 1*value
  3171. elseif type == "Divide" then
  3172. scaler2 = 1/value
  3173. end
  3174. coroutine.resume(coroutine.create(function()
  3175. for i = 0,10/bonuspeed,0.1 do
  3176. swait()
  3177. if rainbowmode == true then
  3178. rng.Color = Color3.new(r/255,g/255,b/255)
  3179. end
  3180. if type == "Add" then
  3181. scaler2 = scaler2 - 0.01*value/bonuspeed
  3182. elseif type == "Divide" then
  3183. scaler2 = scaler2 - 0.01/value*bonuspeed
  3184. end
  3185. if chaosmode == true then
  3186. rng.BrickColor = BrickColor.random()
  3187. end
  3188. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3189. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3190. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3191. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3192. end
  3193. rng:Destroy()
  3194. end))
  3195. end
  3196.  
  3197. function dmg(dude)
  3198. if dude.Name ~= Character then
  3199. local keptcolor = MAINRUINCOLOR
  3200. local bgf = Instance.new("BodyGyro",dude.Head)
  3201. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3202. --[[local val = Instance.new("BoolValue",dude)
  3203. val.Name = "IsHit"]]--
  3204. local ds = coroutine.wrap(function()
  3205. dude:WaitForChild("Head"):BreakJoints()
  3206. for i, v in pairs(dude:GetChildren()) do
  3207. if v:IsA("Part") or v:IsA("MeshPart") then
  3208. v.Name = "DEMINISHED"
  3209. end
  3210. end
  3211. wait(0.5)
  3212. targetted = nil
  3213. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3214. coroutine.resume(coroutine.create(function()
  3215. for i, v in pairs(dude:GetChildren()) do
  3216. if v:IsA("Accessory") then
  3217. v:Destroy()
  3218. end
  3219. if v:IsA("Humanoid") then
  3220. v:Destroy()
  3221. end
  3222. if v:IsA("CharacterMesh") then
  3223. v:Destroy()
  3224. end
  3225. if v:IsA("Model") then
  3226. v:Destroy()
  3227. end
  3228. if v:IsA("Part") or v:IsA("MeshPart") then
  3229. for x, o in pairs(v:GetChildren()) do
  3230. if o:IsA("Decal") then
  3231. o:Destroy()
  3232. end
  3233. end
  3234. coroutine.resume(coroutine.create(function()
  3235. v.Material = "Neon"
  3236. v.CanCollide = false
  3237. v.Anchored = false
  3238. local bld = Instance.new("ParticleEmitter",v)
  3239. bld.LightEmission = 0.75
  3240. bld.Texture = "rbxassetid://363275192" ---284205403
  3241. bld.Color = ColorSequence.new(keptcolor.Color)
  3242. bld.Rate = 500
  3243. bld.Lifetime = NumberRange.new(1)
  3244. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3245. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3246. bld.Speed = NumberRange.new(2,5)
  3247. bld.VelocitySpread = 50000
  3248. bld.Rotation = NumberRange.new(-500,500)
  3249. bld.RotSpeed = NumberRange.new(-500,500)
  3250. local sbs = Instance.new("BodyPosition", v)
  3251. sbs.P = 3000
  3252. sbs.D = 1000
  3253. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3254. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3255. v.Color = keptcolor.Color
  3256. coroutine.resume(coroutine.create(function()
  3257. for i = 0, 49 do
  3258. swait(1)
  3259. v:BreakJoints()
  3260. v.Transparency = v.Transparency + 0.02
  3261. end
  3262. v:BreakJoints()
  3263. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3264. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3265. bld.Speed = NumberRange.new(10,25)
  3266. bld.Drag = 5
  3267. bld.Acceleration = vt(0,2,0)
  3268. wait(0.5)
  3269. bld.Enabled = false
  3270. wait(8)
  3271. v:Destroy()
  3272. dude:Destroy()
  3273. end))
  3274. end))
  3275. end
  3276. end
  3277. end))
  3278. end)
  3279. ds()
  3280. end
  3281. end
  3282.  
  3283.  
  3284. function FindNearestHead(Position, Distance, SinglePlayer)
  3285. if SinglePlayer then
  3286. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3287. end
  3288. local List = {}
  3289. for i, v in pairs(workspace:GetChildren()) do
  3290. if v:IsA("Model") then
  3291. if v:findFirstChild("Head") then
  3292. if v ~= Character then
  3293. if (v.Head.Position - Position).magnitude <= Distance then
  3294. table.insert(List, v)
  3295. end
  3296. end
  3297. end
  3298. end
  3299. end
  3300. return List
  3301. end
  3302.  
  3303. function FaceMouse()
  3304. Cam = workspace.CurrentCamera
  3305. return {
  3306. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3307. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3308. }
  3309. end
  3310.  
  3311. function FaceMouse2()
  3312. Cam = workspace.CurrentCamera
  3313. return {
  3314. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3315. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3316. }
  3317. end
  3318.  
  3319. local ModeOfGlitch = 1
  3320. -- Functions are ready.
  3321. local storehumanoidWS = 16
  3322.  
  3323. function CorruptBlink()
  3324. for i = 0, 14 do
  3325. 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)
  3326. end
  3327. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3328. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3329. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3330. CameraEnshaking(2,10)
  3331. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3332. if v:FindFirstChild('Head') then
  3333. dmg(v)
  3334. end
  3335. end
  3336. for i = 0, 14 do
  3337. 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)
  3338. end
  3339. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3340. end
  3341. function PureBomb()
  3342. attack = true
  3343. hum.WalkSpeed = 0
  3344. local orb = Instance.new("Part", char)
  3345. orb.Anchored = true
  3346. orb.BrickColor = BrickColor.new("Toothpaste")
  3347. orb.CanCollide = false
  3348. orb.FormFactor = 3
  3349. orb.Name = "Ring"
  3350. orb.Material = "Neon"
  3351. orb.Size = Vector3.new(1, 1, 1)
  3352. orb.Transparency = 0
  3353. orb.TopSurface = 0
  3354. orb.BottomSurface = 0
  3355. local orbm = Instance.new("SpecialMesh", orb)
  3356. orbm.MeshType = "Sphere"
  3357. orbm.Name = "SizeMesh"
  3358. orbm.Scale = vt(0,0,0)
  3359. local scaled = 0.1
  3360. local posid = 0
  3361. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3362. for i = 0, 5, 0.1 do
  3363. swait()
  3364. scaled = scaled - 0.001
  3365. posid = posid - scaled
  3366. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3367. local scaled = 0.1
  3368. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3369. 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)
  3370. 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)
  3371. 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)
  3372. 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)
  3373. 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)
  3374. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3375. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3376. 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)
  3377. end
  3378. for i = 0, 2, 0.1 do
  3379. swait()
  3380. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3381. 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)
  3382. 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)
  3383. 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)
  3384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3386. 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)
  3387. end
  3388. coroutine.resume(coroutine.create(function()
  3389. orb.Anchored = false
  3390. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3391. local a = Instance.new("Part",workspace)
  3392. a.Name = "Direction"
  3393. a.Anchored = true
  3394. a.BrickColor = bc("Bright red")
  3395. a.Material = "Neon"
  3396. a.Transparency = 1
  3397. a.CanCollide = false
  3398. local ray = Ray.new(
  3399. orb.CFrame.p, -- origin
  3400. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3401. )
  3402. local ignore = orb
  3403. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3404. a.BottomSurface = 10
  3405. a.TopSurface = 10
  3406. local distance = (orb.CFrame.p - position).magnitude
  3407. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3408. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3409. orb.CFrame = a.CFrame
  3410. a:Destroy()
  3411. local bv = Instance.new("BodyVelocity")
  3412. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3413. bv.velocity = orb.CFrame.lookVector*125
  3414. bv.Parent = orb
  3415. local hitted = false
  3416. game:GetService("Debris"):AddItem(orb, 15)
  3417. wait()
  3418. local hit =orb.Touched:connect(function(hit)
  3419. if hitted == false then
  3420. hitted = true
  3421. CameraEnshaking(10,2.5)
  3422. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3423. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3424. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3425. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3426. for i = 0, 49 do
  3427. 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)
  3428. end
  3429. for i = 0, 9 do
  3430. 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)
  3431. 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)
  3432. end
  3433. orb.Anchored = true
  3434. orb.Transparency = 1
  3435. wait(8)
  3436. orb:Destroy()
  3437. end
  3438. end)
  3439. end))
  3440. for i = 0, 1, 0.1 do
  3441. swait()
  3442. 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)
  3443. 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)
  3444. 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)
  3445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3447. 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)
  3448. end
  3449. hum.WalkSpeed = storehumanoidWS
  3450. attack = false
  3451. end
  3452.  
  3453. function BanishingOrb()
  3454. attack = true
  3455. hum.WalkSpeed = 0
  3456. local radm = math.random(1,3)
  3457. if radm == 1 then
  3458. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3459. elseif radm == 2 then
  3460. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3461. elseif radm == 3 then
  3462. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3463. end
  3464. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3465. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3466. local orb = Instance.new("Part", char)
  3467. orb.Anchored = true
  3468. orb.BrickColor = BrickColor.new("Lime green")
  3469. orb.CanCollide = false
  3470. orb.FormFactor = 3
  3471. orb.Name = "Ring"
  3472. orb.Material = "Neon"
  3473. orb.Size = Vector3.new(1, 1, 1)
  3474. orb.Transparency = 0
  3475. orb.TopSurface = 0
  3476. orb.BottomSurface = 0
  3477. local orbm = Instance.new("SpecialMesh", orb)
  3478. orbm.MeshType = "Sphere"
  3479. orbm.Name = "SizeMesh"
  3480. orbm.Scale = vt(0,0,0)
  3481. local scaled = 0.1
  3482. local posid = 0
  3483. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3484. for i = 0, 5, 0.1 do
  3485. swait()
  3486. scaled = scaled - 0.001
  3487. posid = posid - scaled
  3488. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3489. local scaled = 0.1
  3490. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3491. 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)
  3492. 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)
  3493. 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)
  3494. 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)
  3495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3497. 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)
  3498. end
  3499. for i = 0, 2, 0.1 do
  3500. swait()
  3501. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3502. 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)
  3503. 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)
  3504. 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)
  3505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3506. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3507. 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)
  3508. end
  3509. coroutine.resume(coroutine.create(function()
  3510. orb.Anchored = false
  3511. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3512. local a = Instance.new("Part",workspace)
  3513. a.Name = "Direction"
  3514. a.Anchored = true
  3515. a.BrickColor = bc("Lime green")
  3516. a.Material = "Neon"
  3517. a.Transparency = 1
  3518. a.CanCollide = false
  3519. local ray = Ray.new(
  3520. orb.CFrame.p, -- origin
  3521. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3522. )
  3523. local ignore = orb
  3524. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3525. a.BottomSurface = 10
  3526. a.TopSurface = 10
  3527. local distance = (orb.CFrame.p - position).magnitude
  3528. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3529. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3530. orb.CFrame = a.CFrame
  3531. a:Destroy()
  3532. local bv = Instance.new("BodyVelocity")
  3533. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3534. bv.velocity = orb.CFrame.lookVector*0
  3535. bv.Parent = orb
  3536. local hitted = false
  3537. local rate = 0
  3538. coroutine.resume(coroutine.create(function()
  3539. for i = 0, 24 do
  3540. wait(0.1)
  3541. rate = rate + 0.25
  3542. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3543. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3544. if v:FindFirstChild('Head') then
  3545. dmg(v)
  3546. end
  3547. end
  3548. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3549. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3550. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3551. end
  3552. orb.Anchored = true
  3553. orb.Transparency = 1
  3554. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3555. if v:FindFirstChild('Head') then
  3556. dmg(v)
  3557. end
  3558. end
  3559. local eff = Instance.new("ParticleEmitter",orb)
  3560. eff.Texture = "rbxassetid://296874871"
  3561. eff.LightEmission = 0.95
  3562. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3563. eff.Rate = 1000000000
  3564. eff.Lifetime = NumberRange.new(3)
  3565. 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)})
  3566. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3567. eff.Speed = NumberRange.new(30)
  3568. eff.Acceleration = vt(0,-15,0)
  3569. eff.Rotation = NumberRange.new(-500,500)
  3570. eff.VelocitySpread = 100000
  3571. eff.RotSpeed = NumberRange.new(-500,500)
  3572. coroutine.resume(coroutine.create(function()
  3573. wait(0.6)
  3574. eff.Enabled = false
  3575. end))
  3576. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3577. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3578. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3579. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3580. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3581. game:GetService("Debris"):AddItem(orb, 15)
  3582. end))
  3583. end))
  3584. for i = 0, 1, 0.1 do
  3585. swait()
  3586. 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)
  3587. 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)
  3588. 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)
  3589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3591. 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)
  3592. end
  3593. hum.WalkSpeed = storehumanoidWS
  3594. attack = false
  3595. end
  3596.  
  3597.  
  3598. function ChaosGroundStrike()
  3599. attack = true
  3600. for i = 0, 2, 0.1 do
  3601. swait()
  3602. 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)
  3603. 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)
  3604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3606. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3607. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3608. end
  3609. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3610. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3611. CameraEnshaking(4,12)
  3612. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3613. if v:FindFirstChild('Head') then
  3614. dmg(v)
  3615. end
  3616. end
  3617. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3618. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3619. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3620. for i = 0, 2, 0.1 do
  3621. swait()
  3622. 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)
  3623. 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)
  3624. 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)
  3625. 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)
  3626. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3627. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3628. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3629. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3630. end
  3631. attack = false
  3632. end
  3633.  
  3634.  
  3635.  
  3636. function Starfall()
  3637. attack = true
  3638. hum.WalkSpeed = 0
  3639. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3640. for i = 0, 5, 0.1 do
  3641. swait()
  3642. 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)
  3643. 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)
  3644. 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)
  3645. 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)
  3646. 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)
  3647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3648. 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)
  3649. 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)
  3650. end
  3651. local Overed = false
  3652. CameraEnshaking(2,20)
  3653. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3654. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3655. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3656. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3657. local orb = Instance.new("Part", char)
  3658. orb.Anchored = true
  3659. orb.BrickColor = BrickColor.new("Toothpaste")
  3660. orb.CanCollide = false
  3661. orb.FormFactor = 3
  3662. orb.Name = "Remenant"
  3663. orb.Material = "Neon"
  3664. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3665. orb.Size = Vector3.new(1, 1, 1)
  3666. orb.Transparency = 1
  3667. orb.TopSurface = 0
  3668. orb.BottomSurface = 0
  3669. hum.WalkSpeed = storehumanoidWS
  3670. coroutine.resume(coroutine.create(function()
  3671. for i = 0, 9 do
  3672. swait(10)
  3673. local lb = Instance.new("Part")
  3674. lb.Color = MAINRUINCOLOR.Color
  3675. lb.CanCollide = false
  3676. lb.Material = "Neon"
  3677. lb.Anchored = true
  3678. lb.TopSurface = 0
  3679. lb.BottomSurface = 0
  3680. lb.Transparency = 0
  3681. lb.Size = vt(1,1,1)
  3682. 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)))
  3683. lb.Anchored = false
  3684. lb.Parent = char
  3685. local thingery = Instance.new("SpecialMesh",lb)
  3686. thingery.MeshType = "Sphere"
  3687. thingery.Scale = vt(20,20,20)
  3688. game:GetService("Debris"):AddItem(lb, 10)
  3689. local bv = Instance.new("BodyVelocity")
  3690. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3691. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3692. bv.Parent = lb
  3693. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3694. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3695. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3696. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3697. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3698. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3699. local hitted = false
  3700. coroutine.resume(coroutine.create(function()
  3701. while true do
  3702. swait(1)
  3703. if lb.Parent ~= nil and hitted == false then
  3704. 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)
  3705. elseif lb.Parent == nil then
  3706. break
  3707. end
  3708. end
  3709. end))
  3710.  
  3711. game:GetService("Debris"):AddItem(a, 0.1)
  3712.  
  3713. coroutine.resume(coroutine.create(function()
  3714. swait(1)
  3715. lb.Touched:connect(function(hit)
  3716. if hitted == false then
  3717. hitted = true
  3718. lb.Transparency = 1
  3719. lb.Anchored = true
  3720. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3721. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3722. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3723. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3724. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3725. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3726. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3727. CameraEnshaking(1,5)
  3728. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3729. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3730. for i = 0, 9 do
  3731. 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)
  3732. end
  3733. for i = 0, 49 do
  3734. swait()
  3735. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3736. 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)
  3737. end
  3738. end
  3739. end)
  3740. end))
  3741. end
  3742. Overed = true
  3743. orb:Destroy()
  3744. end))
  3745.  
  3746. attack = false
  3747. end
  3748.  
  3749. function StarfallEX()
  3750. attack = true
  3751. hum.WalkSpeed = 0
  3752. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3753. for i = 0, 10, 0.1 do
  3754. swait()
  3755. 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)
  3756. 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)
  3757. 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)
  3758. 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)
  3759. 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)
  3760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3761. 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)
  3762. 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)
  3763. end
  3764. local Overed = false
  3765. CameraEnshaking(2,20)
  3766. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3767. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3768. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3769. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3770. local orb = Instance.new("Part", char)
  3771. orb.Anchored = true
  3772. orb.BrickColor = BrickColor.new("Toothpaste")
  3773. orb.CanCollide = false
  3774. orb.FormFactor = 3
  3775. orb.Name = "Remenant"
  3776. orb.Material = "Neon"
  3777. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3778. orb.Size = Vector3.new(1, 1, 1)
  3779. orb.Transparency = 1
  3780. orb.TopSurface = 0
  3781. orb.BottomSurface = 0
  3782. hum.WalkSpeed = storehumanoidWS
  3783. coroutine.resume(coroutine.create(function()
  3784. for i = 0, 4 do
  3785. swait(15)
  3786. local lb = Instance.new("Part")
  3787. lb.Color = MAINRUINCOLOR.Color
  3788. lb.CanCollide = false
  3789. lb.Material = "Neon"
  3790. lb.Anchored = true
  3791. lb.TopSurface = 0
  3792. lb.BottomSurface = 0
  3793. lb.Transparency = 0
  3794. lb.Size = vt(1,1,1)
  3795. 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)))
  3796. lb.Anchored = false
  3797. lb.Parent = char
  3798. local thingery = Instance.new("SpecialMesh",lb)
  3799. thingery.MeshType = "Sphere"
  3800. thingery.Scale = vt(50,50,50)
  3801. game:GetService("Debris"):AddItem(lb, 10)
  3802. local bv = Instance.new("BodyVelocity")
  3803. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3804. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3805. bv.Parent = lb
  3806. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3807. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3808. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3809. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3810. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3811. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3812. local hitted = false
  3813. coroutine.resume(coroutine.create(function()
  3814. while true do
  3815. swait(1)
  3816. if lb.Parent ~= nil and hitted == false then
  3817. 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)
  3818. elseif lb.Parent == nil then
  3819. break
  3820. end
  3821. end
  3822. end))
  3823.  
  3824. game:GetService("Debris"):AddItem(a, 0.1)
  3825.  
  3826. coroutine.resume(coroutine.create(function()
  3827. swait(1)
  3828. lb.Touched:connect(function(hit)
  3829. if hitted == false then
  3830. hitted = true
  3831. lb.Transparency = 1
  3832. lb.Anchored = true
  3833. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3834. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3835. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3836. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3837. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3838. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3839. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3840. CameraEnshaking(1,5)
  3841. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3842. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3843. for i = 0, 9 do
  3844. 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)
  3845. end
  3846. for i = 0, 99 do
  3847. swait()
  3848. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3849. 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)
  3850. end
  3851. end
  3852. end)
  3853. end))
  3854. end
  3855. Overed = true
  3856. orb:Destroy()
  3857. end))
  3858.  
  3859. attack = false
  3860. end
  3861.  
  3862. function DivineBlast()
  3863. attack = true
  3864. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3865. hum.WalkSpeed = 0
  3866. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3867. elocacenter.Anchored = true
  3868. elocacenter.CFrame = sorb.CFrame
  3869. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3870. eloca1.Anchored = true
  3871. eloca1.CFrame = elocacenter.CFrame
  3872. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3873. eloca2.Anchored = true
  3874. eloca2.CFrame = elocacenter.CFrame
  3875. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3876. eloca3.Anchored = true
  3877. eloca3.CFrame = elocacenter.CFrame
  3878. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3879. eloca4.Anchored = true
  3880. eloca4.CFrame = elocacenter.CFrame
  3881. local lookavec = 0
  3882. local speeds = 0
  3883. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3884. for i = 0, 3, 0.1 do
  3885. swait()
  3886. ---
  3887. lookavec = lookavec + 0.1
  3888. speeds = speeds + 10
  3889. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3890. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3891. 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)
  3892.  
  3893. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3894. 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)
  3895.  
  3896. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3897. 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)
  3898.  
  3899. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3900. 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)
  3901. ---
  3902. root.CFrame = FaceMouse()[1]
  3903. 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)
  3904. 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)
  3905. 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)
  3906. 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)
  3907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3908. 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)
  3909. end
  3910. for i = 0, 3, 0.1 do
  3911. swait()
  3912. ---
  3913. speeds = speeds + 10
  3914. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3915. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3916. 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)
  3917.  
  3918. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3919. 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)
  3920.  
  3921. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3922. 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)
  3923.  
  3924. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3925. 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)
  3926. ---
  3927. root.CFrame = FaceMouse()[1]
  3928. 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)
  3929. 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)
  3930. 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)
  3931. 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)
  3932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3933. 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)
  3934. end
  3935. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3936. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3937. for i = 0, 3, 0.1 do
  3938. swait()
  3939. ---
  3940. speeds = speeds + 10
  3941. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3942. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3943. 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)
  3944.  
  3945. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3946. 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)
  3947.  
  3948. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3949. 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)
  3950.  
  3951. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3952. 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)
  3953. ---
  3954. root.CFrame = FaceMouse()[1]
  3955. 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)
  3956. 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)
  3957. 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)
  3958. 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)
  3959. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3960. 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)
  3961. end
  3962. coroutine.resume(coroutine.create(function()
  3963. local a = Instance.new("Part",Character)
  3964. a.Name = "Direction"
  3965. a.Anchored = true
  3966. a.BrickColor = bc("White")
  3967. a.Material = "Neon"
  3968. a.Transparency = 0
  3969. a.Shape = "Cylinder"
  3970. a.CanCollide = false
  3971. local a2 = Instance.new("Part",Character)
  3972. a2.Name = "Direction"
  3973. a2.Anchored = true
  3974. a2.BrickColor = bc("Bright yellow")
  3975. a2.Material = "Neon"
  3976. a2.Transparency = 0
  3977. a2.Shape = "Cylinder"
  3978. a2.CanCollide = false
  3979. local b = Instance.new("Part",Character)
  3980. b.Name = "HitDirect"
  3981. b.Anchored = true
  3982. b.BrickColor = bc("Cool yellow")
  3983. b.Material = "Neon"
  3984. b.Transparency = 1
  3985. b.CanCollide = false
  3986. local ray = Ray.new(
  3987. elocacenter.CFrame.p, -- origin
  3988. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3989. )
  3990. local ignore = Character
  3991. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3992. a.BottomSurface = 10
  3993. a.TopSurface = 10
  3994. a2.BottomSurface = 10
  3995. a2.TopSurface = 10
  3996. local distance = (elocacenter.CFrame.p - position).magnitude
  3997. a.Size = Vector3.new(distance, 1, 1)
  3998. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3999. a2.Size = Vector3.new(distance, 1, 1)
  4000. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4001. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4002. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4003. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4004. game:GetService("Debris"):AddItem(a, 10)
  4005. game:GetService("Debris"):AddItem(a2, 10)
  4006. game:GetService("Debris"):AddItem(b, 10)
  4007. local eff = Instance.new("ParticleEmitter",b)
  4008. eff.Texture = "rbxassetid://2273224484"
  4009. eff.LightEmission = 1
  4010. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4011. eff.Rate = 500000
  4012. eff.Lifetime = NumberRange.new(0.5,2)
  4013. 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)})
  4014. 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)})
  4015. eff.Speed = NumberRange.new(20,250)
  4016. eff.Drag = 5
  4017. eff.Rotation = NumberRange.new(-500,500)
  4018. eff.VelocitySpread = 9000
  4019. eff.RotSpeed = NumberRange.new(-50,50)
  4020. coroutine.resume(coroutine.create(function()
  4021. wait(0.25)
  4022. eff.Enabled = false
  4023. end))
  4024. local msh = Instance.new("SpecialMesh",a)
  4025. msh.MeshType = "Cylinder"
  4026. msh.Scale = vt(1,2,2)
  4027. local msh2 = Instance.new("SpecialMesh",a2)
  4028. msh2.MeshType = "Cylinder"
  4029. msh2.Scale = vt(1,2.5,2.5)
  4030. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4031. coroutine.resume(coroutine.create(function()
  4032. for i = 0,10,0.1 do
  4033. swait()
  4034. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4035. a.Transparency = a.Transparency + 0.025
  4036. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4037. a2.Transparency = a2.Transparency + 0.05
  4038. end
  4039. a:Destroy()
  4040. a2:Destroy()
  4041. end))
  4042. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4043. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4044. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4045. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4046. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4047. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4048. MagniDamage(b, 25, 40,65, 0, "Normal")
  4049. for i = 0, 49 do
  4050. 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)
  4051. 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)
  4052. end
  4053. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4054. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4055. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4056. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4057. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4058. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4059. end))
  4060. game:GetService("Debris"):AddItem(elocacenter, 5)
  4061. hum.WalkSpeed = storehumanoidWS
  4062. attack = false
  4063. end
  4064.  
  4065. function StarDivision()
  4066. attack = true
  4067. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4068. for i = 0, 2, 0.1 do
  4069. swait()
  4070. 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)
  4071. 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)
  4072. 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)
  4073. 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)
  4074. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4075. 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)
  4076. end
  4077. local orb = Instance.new("Part", char)
  4078. orb.BrickColor = MAINRUINCOLOR
  4079. orb.CanCollide = false
  4080. orb.FormFactor = 3
  4081. orb.Name = "Ring"
  4082. orb.Material = "Neon"
  4083. orb.Size = Vector3.new(1, 1, 1)
  4084. orb.Transparency = 0
  4085. orb.TopSurface = 0
  4086. orb.BottomSurface = 0
  4087. local orbm = Instance.new("SpecialMesh", orb)
  4088. orbm.MeshType = "Sphere"
  4089. orbm.Name = "SizeMesh"
  4090. orbm.Scale = vt(2,2,2)
  4091. local a = Instance.new("Part",workspace)
  4092. a.Name = "Direction"
  4093. a.Anchored = true
  4094. a.BrickColor = bc("Bright red")
  4095. a.Material = "Neon"
  4096. a.Transparency = 1
  4097. a.CanCollide = false
  4098. local ray = Ray.new(
  4099. sorb.CFrame.p, -- origin
  4100. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4101. )
  4102. local ignore = sorb
  4103. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4104. a.BottomSurface = 10
  4105. a.TopSurface = 10
  4106. local distance = (sorb.CFrame.p - position).magnitude
  4107. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4108. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4109. orb.CFrame = a.CFrame
  4110. a:Destroy()
  4111. local bv = Instance.new("BodyVelocity")
  4112. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4113. bv.velocity = orb.CFrame.lookVector*100
  4114. bv.Parent = orb
  4115. local hitted = false
  4116. game:GetService("Debris"):AddItem(orb, 10)
  4117. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4118. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4119. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4120. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4121. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4122. coroutine.resume(coroutine.create(function()
  4123. while true do
  4124. swait(1)
  4125. if orb.Parent ~= nil and hitted == false then
  4126. 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)
  4127. elseif orb.Parent == nil then
  4128. break
  4129. end
  4130. end
  4131. end))
  4132. coroutine.resume(coroutine.create(function()
  4133. swait(1)
  4134. orb.Touched:connect(function(hit)
  4135. if hitted == false then
  4136. hitted = true
  4137. game:GetService("Debris"):AddItem(orb, 5)
  4138. orb.Transparency = 1
  4139. orb.Anchored = true
  4140. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4141. elocacenter.Anchored = true
  4142. elocacenter.CFrame = orb.CFrame
  4143. elocacenter.Orientation = vt(0,0,0)
  4144. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4145. eloca1.Anchored = true
  4146. eloca1.CFrame = elocacenter.CFrame
  4147. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4148. eloca2.Anchored = true
  4149. eloca2.CFrame = elocacenter.CFrame
  4150. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4151. eloca3.Anchored = true
  4152. eloca3.CFrame = elocacenter.CFrame
  4153. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4154. eloca4.Anchored = true
  4155. eloca4.CFrame = elocacenter.CFrame
  4156. local lookavec = 0
  4157. local speeds = 0
  4158. CameraEnshaking(1,1)
  4159. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4160. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4161. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4162. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4163. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4164. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4165. for i = 0, 99 do
  4166. swait()
  4167. lookavec = lookavec + 1
  4168. speeds = speeds + 0.1
  4169. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4170. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4171. 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)
  4172.  
  4173. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4174. 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)
  4175.  
  4176. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4177. 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)
  4178.  
  4179. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4180. 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)
  4181. end
  4182.  
  4183. for i = 0, 149 do
  4184. swait()
  4185. speeds = speeds + 0.1
  4186. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4187. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4188. 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)
  4189.  
  4190. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4191. 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)
  4192.  
  4193. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4194. 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)
  4195.  
  4196. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4197. 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)
  4198. end
  4199. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4200. if v:FindFirstChild('Head') then
  4201. dmg(v)
  4202. end
  4203. end
  4204. CameraEnshaking(7,30)
  4205. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4206. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4207. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4208. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4209. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4210. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4211. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4212. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4213. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4214. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4215. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4216. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4217. for i = 0, 24 do
  4218. 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)
  4219. 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)
  4220. 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)
  4221. 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)
  4222. end
  4223. coroutine.resume(coroutine.create(function()
  4224. for i = 0, 499 do
  4225. swait(1)
  4226. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4227. 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)
  4228. end
  4229. elocacenter:Destroy()
  4230. eloca1:Destroy()
  4231. eloca2:Destroy()
  4232. eloca3:Destroy()
  4233. eloca4:Destroy()
  4234. end))
  4235. end
  4236. end)
  4237. end))
  4238. attack = false
  4239. end
  4240.  
  4241.  
  4242. function THE_TRUE_POWER_OF_VIOLENCE()
  4243. attack = true
  4244. hum.WalkSpeed = 0
  4245. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4246. for i = 0, 10, 0.1 do
  4247. swait()
  4248. 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)
  4249. 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)
  4250. 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)
  4251. 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)
  4252. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4253. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4254. 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)
  4255. end
  4256. local orb = Instance.new("Part", char)
  4257. orb.BrickColor = MAINRUINCOLOR
  4258. orb.CanCollide = false
  4259. orb.FormFactor = 3
  4260. orb.Name = "Ring"
  4261. orb.Material = "Neon"
  4262. orb.Size = Vector3.new(1, 1, 1)
  4263. orb.Transparency = 0
  4264. orb.TopSurface = 0
  4265. orb.BottomSurface = 0
  4266. orb.CFrame = sorb.CFrame
  4267. local orbm = Instance.new("SpecialMesh", orb)
  4268. orbm.MeshType = "Sphere"
  4269. orbm.Name = "SizeMesh"
  4270. orbm.Scale = vt(0,0,0)
  4271. local sbs = Instance.new("BodyPosition", orb)
  4272. sbs.P = 3000
  4273. sbs.D = 1000
  4274. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4275. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4276. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4277. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4278. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4279. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4280. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4281. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4282. for i = 0, 10, 0.1 do
  4283. swait()
  4284. 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)
  4285. 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)
  4286. 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)
  4287. 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)
  4288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4290. 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)
  4291. end
  4292. orb.Anchored = true
  4293. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4294. elocacenter.Anchored = true
  4295. elocacenter.CFrame = orb.CFrame
  4296. elocacenter.Orientation = vt(0,0,0)
  4297. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4298. eloca1.Anchored = true
  4299. eloca1.CFrame = elocacenter.CFrame
  4300. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4301. eloca2.Anchored = true
  4302. eloca2.CFrame = elocacenter.CFrame
  4303. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4304. eloca3.Anchored = true
  4305. eloca3.CFrame = elocacenter.CFrame
  4306. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4307. eloca4.Anchored = true
  4308. eloca4.CFrame = elocacenter.CFrame
  4309. local lookavec = 0
  4310. local speeds = 0
  4311. CameraEnshaking(1,1)
  4312. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4313. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4314. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4315. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4316. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4317. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4318. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4319. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4320. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4321. for i = 0, 99 do
  4322. swait()
  4323. lookavec = lookavec + 2.5
  4324. speeds = speeds + 0.25
  4325. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4326. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4327. 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)
  4328.  
  4329. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4330. 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)
  4331.  
  4332. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4333. 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)
  4334.  
  4335. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4336. 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)
  4337. end
  4338.  
  4339. for i = 0, 149 do
  4340. swait()
  4341. speeds = speeds + 0.25
  4342. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4343. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4344. 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)
  4345.  
  4346. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4347. 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)
  4348.  
  4349. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4350. 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)
  4351.  
  4352. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4353. 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)
  4354. end
  4355. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4356. for i = 0, 99 do
  4357. swait()
  4358. lookavec = lookavec - 2.5
  4359. speeds = speeds + 0.25
  4360. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4361. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4362. 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)
  4363.  
  4364. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4365. 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)
  4366.  
  4367. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4368. 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)
  4369.  
  4370. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4371. 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)
  4372. end
  4373. local scaled = 0.1*75
  4374. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4375. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4376. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4377. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4378. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4379. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4380. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4381. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4382. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4383. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4384. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4385.  
  4386. for i = 0, 10, 0.1 do
  4387. swait()
  4388. scaled = scaled - 0.001*75
  4389. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4390. 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)
  4391. 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)
  4392. 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)
  4393. 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)
  4394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4395. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4396. 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)
  4397. end
  4398. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4399. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4400. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4401. for x = 0, 4 do
  4402. for i = 0, 9 do
  4403. 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)
  4404. end
  4405. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4406. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4407. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4408. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4409. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4410. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4411. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4412. for i = 0, 5, 0.1 do
  4413. swait()
  4414. 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)
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4422. end
  4423. end
  4424. local speedearn = 0
  4425. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4426. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4427. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4428. for i = 0, 30, 0.1 do
  4429. swait()
  4430. scaled = scaled - 0.001*75/10
  4431. speedearn = speedearn + 0.5
  4432. for i = 0, 4 do
  4433. 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)
  4434. end
  4435. 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)
  4436. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4437. 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)
  4438. 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)
  4439. 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)
  4440. 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)
  4441. 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)
  4442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4445. end
  4446. orb.Transparency = 1
  4447. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4448. if v:FindFirstChild('Head') then
  4449. dmg(v)
  4450. end
  4451. end
  4452. CameraEnshaking(7,30)
  4453. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4454. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4455. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4456. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4457. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4458. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4459. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4460. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4461. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4462. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4463. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4464. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4465. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4466. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4467. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4468. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. for i = 0, 99 do
  4473. 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)
  4474. 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)
  4475. end
  4476. for i = 0, 24 do
  4477. 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)
  4478. 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)
  4479. 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)
  4480. 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)
  4481. 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)
  4482. end
  4483. game:GetService("Debris"):AddItem(orb, 10)
  4484. hum.WalkSpeed = storehumanoidWS
  4485. attack = false
  4486. end
  4487.  
  4488.  
  4489. function ViolentRing()
  4490. attack = true
  4491. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4492. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4493. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4494. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4495. for i = 0, 2, 0.1 do
  4496. swait()
  4497. local snap = math.random(1,10)
  4498. if snap == 1 then
  4499. 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)
  4500. end
  4501. 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)
  4502. 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)
  4503. 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)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4509. 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)
  4510. RootPart.CFrame = FaceMouse()[1]
  4511. end
  4512. local orb = Instance.new("Part", char)
  4513. orb.BrickColor = MAINRUINCOLOR
  4514. orb.CanCollide = false
  4515. orb.FormFactor = 3
  4516. orb.Name = "Ring"
  4517. orb.Material = "Neon"
  4518. orb.Size = Vector3.new(1, 1, 1)
  4519. orb.Transparency = 0
  4520. orb.TopSurface = 0
  4521. orb.BottomSurface = 0
  4522. local orbm = Instance.new("SpecialMesh", orb)
  4523. orbm.MeshType = "Sphere"
  4524. orbm.Name = "SizeMesh"
  4525. orbm.Scale = vt(2,2,2)
  4526. orb.CFrame = mouse.Hit
  4527. local bv = Instance.new("BodyVelocity")
  4528. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4529. bv.velocity = orb.CFrame.lookVector*100
  4530. bv.Parent = orb
  4531. local hitted = false
  4532. coroutine.resume(coroutine.create(function()
  4533. game:GetService("Debris"):AddItem(orb, 5)
  4534. orb.Transparency = 1
  4535. orb.Anchored = true
  4536. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4537. elocacenter.Anchored = true
  4538. elocacenter.CFrame = orb.CFrame
  4539. elocacenter.Orientation = vt(0,0,0)
  4540. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4541. eloca1.Anchored = true
  4542. eloca1.CFrame = elocacenter.CFrame
  4543. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4544. eloca2.Anchored = true
  4545. eloca2.CFrame = elocacenter.CFrame
  4546. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4547. eloca3.Anchored = true
  4548. eloca3.CFrame = elocacenter.CFrame
  4549. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4550. eloca4.Anchored = true
  4551. eloca4.CFrame = elocacenter.CFrame
  4552. local lookavec = 0
  4553. local speeds = 0
  4554. CameraEnshaking(1,1)
  4555. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4556. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4557. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4558. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4559. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4560. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4561. for i = 0, 24 do
  4562. swait()
  4563. lookavec = lookavec + 3.5
  4564. speeds = speeds + 1
  4565. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4566. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4567. 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)
  4568.  
  4569. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4570. 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)
  4571.  
  4572. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4573. 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)
  4574.  
  4575. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4576. 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)
  4577. end
  4578.  
  4579. local risen = 0
  4580. for i = 0, 49 do
  4581. swait()
  4582. risen = risen + 0.05
  4583. speeds = speeds + 0.1
  4584. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4585. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4586. 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)
  4587.  
  4588. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4589. 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)
  4590.  
  4591. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4592. 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)
  4593.  
  4594. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4595. 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)
  4596. end
  4597. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4598. if v:FindFirstChild('Head') then
  4599. dmg(v)
  4600. end
  4601. end
  4602. CameraEnshaking(4,10)
  4603. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4604. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4605. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4606. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4607. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4608. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4609. local eff = Instance.new("ParticleEmitter",elocacenter)
  4610. eff.Texture = "rbxassetid://2273224484"
  4611. eff.LightEmission = 1
  4612. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4613. eff.Rate = 1000000
  4614. eff.Lifetime = NumberRange.new(0.5,2)
  4615. 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)})
  4616. 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)})
  4617. eff.Speed = NumberRange.new(20,250)
  4618. eff.Drag = 5
  4619. eff.Rotation = NumberRange.new(-500,500)
  4620. eff.VelocitySpread = 5000000
  4621. eff.RotSpeed = NumberRange.new(-50,50)
  4622. coroutine.resume(coroutine.create(function()
  4623. wait(1)
  4624. eff.Enabled = false
  4625. end))
  4626. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4627. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4628. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4629. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4630. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4631. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4632. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4633. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4634. for i = 0, 24 do
  4635. 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)
  4636. 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)
  4637. 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)
  4638. 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)
  4639. end
  4640. coroutine.resume(coroutine.create(function()
  4641. wait(10)
  4642. elocacenter:Destroy()
  4643. eloca1:Destroy()
  4644. eloca2:Destroy()
  4645. eloca3:Destroy()
  4646. eloca4:Destroy()
  4647. end))
  4648. end))
  4649. attack = false
  4650. end
  4651.  
  4652. function UniversalCollapse()
  4653. attack = true
  4654. local speedearn = 0
  4655. hum.WalkSpeed = 0
  4656. local sbs = Instance.new("BodyPosition", root)
  4657. sbs.P = 3000
  4658. sbs.D = 1000
  4659. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4660. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4661. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4662. for i = 0, 85, 0.1 do
  4663. swait()
  4664. speedearn = speedearn + 0.1
  4665. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4666. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4667. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4668. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4671. 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)
  4672. 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)
  4673. 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)
  4674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4675. 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)
  4676. 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)
  4677. end
  4678. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4679. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4680. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4681. for i = 0, 25, 0.1 do
  4682. swait()
  4683. speedearn = speedearn + 0.1
  4684. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4685. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4686. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4687. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4690. 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)
  4691. 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)
  4692. 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)
  4693. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4694. 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)
  4695. 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)
  4696. end
  4697. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4698. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4699. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4700. CameraEnshaking(5,50)
  4701. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4702. for i = 0, 2 do
  4703. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4704. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4705. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4706. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4707. end
  4708. for i = 0, 49 do
  4709. 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)
  4710. 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)
  4711. 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)
  4712. 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)
  4713. end
  4714. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4715. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4716. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4717. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4718. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4719. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4720. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4721. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4722. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4723. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4724. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4725. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4726. for i = 0, 99 do
  4727. 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)
  4728. 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)
  4729. end
  4730. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4731. if v:FindFirstChild('Head') then
  4732. dmg(v)
  4733. end
  4734. end
  4735. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4736. sbs:Destroy()
  4737. hum.WalkSpeed = storehumanoidWS
  4738. attack = false
  4739. end
  4740.  
  4741.  
  4742. function ChaosEND()
  4743. attack = true
  4744. local speedearn = 0
  4745. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4746. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4747. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4748. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4749. for i = 0, 15, 0.1 do
  4750. swait()
  4751. speedearn = speedearn + 0.25
  4752. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4753. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4754. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4755. 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)
  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. 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)
  4758. 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)
  4759. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4761. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4762. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4763. end
  4764. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4765. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4766. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4767. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4768. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4769. CameraEnshaking(5,25)
  4770. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4771. if v:FindFirstChild('Head') then
  4772. dmg(v)
  4773. end
  4774. end
  4775. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4776. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4777. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4778. for i = 0, 3, 0.1 do
  4779. swait()
  4780. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4781. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4782. 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)
  4783. 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)
  4784. 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)
  4785. 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)
  4786. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4787. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4788. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4789. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4790. end
  4791. attack = false
  4792. end
  4793.  
  4794. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4795. local orb = Instance.new("Part", char)
  4796. orb.Anchored = true
  4797. orb.BrickColor = color
  4798. orb.CanCollide = false
  4799. orb.FormFactor = 3
  4800. orb.Name = "Ring"
  4801. orb.Material = "Neon"
  4802. orb.Size = Vector3.new(1, 1, 1)
  4803. orb.Transparency = 0
  4804. orb.TopSurface = 0
  4805. orb.BottomSurface = 0
  4806. local orbm = Instance.new("SpecialMesh", orb)
  4807. orbm.MeshType = "Sphere"
  4808. orb.CFrame = positted
  4809. orbm.Name = "SizeMesh"
  4810. orbm.Scale = vt(1,1,1)
  4811. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4812. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4813. --[[for i = 0, 2 do
  4814. 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)
  4815. end]]--
  4816. coroutine.resume(coroutine.create(function()
  4817. wait(timer)
  4818. CameraEnshaking(3,ShakePower)
  4819. orb.Transparency = 1
  4820. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4821. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4822. --[[for i = 0, 4 do
  4823. 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)
  4824. end]]--
  4825. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4826. wait(3)
  4827. orb:Destroy()
  4828. end))
  4829. end
  4830.  
  4831. function orb_spawn(positted,timer)
  4832. local randomcol = math.random(1,2)
  4833. local orb = Instance.new("Part", char)
  4834. orb.Anchored = true
  4835. if randomcol == 1 then
  4836. orb.BrickColor = BrickColor.new("White")
  4837. elseif randomcol == 2 then
  4838. orb.BrickColor = BrickColor.new("Really black")
  4839. end
  4840. orb.CanCollide = false
  4841. orb.FormFactor = 3
  4842. orb.Name = "Ring"
  4843. orb.Material = "Neon"
  4844. orb.Size = Vector3.new(1, 1, 1)
  4845. orb.Transparency = 0
  4846. orb.TopSurface = 0
  4847. orb.BottomSurface = 0
  4848. local orbm = Instance.new("SpecialMesh", orb)
  4849. orbm.MeshType = "Sphere"
  4850. orb.CFrame = positted
  4851. orbm.Name = "SizeMesh"
  4852. orbm.Scale = vt(1,1,1)
  4853. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4854. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4855. for i = 0, 2 do
  4856. 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)
  4857. end
  4858. coroutine.resume(coroutine.create(function()
  4859. wait(timer)
  4860. CameraEnshaking(3,2)
  4861. orb.Transparency = 1
  4862. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4863. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4864. for i = 0, 4 do
  4865. 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)
  4866. end
  4867. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4868. wait(3)
  4869. orb:Destroy()
  4870. end))
  4871. end
  4872.  
  4873. function scattercorrupt()
  4874. attack = true
  4875. hum.WalkSpeed = 0
  4876. for i = 0, 2, 0.1 do
  4877. swait()
  4878. 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)
  4879. 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)
  4880. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4881. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4882. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4883. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4884. end
  4885. local rot = 0
  4886. local randomrotations = math.random(1,2)
  4887. local lookv = 2.5
  4888. local power = 7
  4889. local radm = math.random(1,3)
  4890. if radm == 1 then
  4891. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4892. elseif radm == 2 then
  4893. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4894. elseif radm == 3 then
  4895. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4896. end
  4897. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4898. for i = 0, 1, 0.1 do
  4899. swait()
  4900. 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)
  4901. 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)
  4902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4904. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4905. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4906. end
  4907. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4908. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4909. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4910. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4911. for i = 0, 9 do
  4912. 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)
  4913. end
  4914. local hite = Instance.new("Part", char)
  4915. hite.Anchored = true
  4916. hite.CanCollide = false
  4917. hite.FormFactor = 3
  4918. hite.Name = "Ring"
  4919. hite.Material = "Neon"
  4920. hite.Size = Vector3.new(1, 1, 1)
  4921. hite.Transparency = 1
  4922. hite.TopSurface = 0
  4923. hite.BottomSurface = 0
  4924. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4925. local rem = Instance.new("Part", char)
  4926. rem.Anchored = true
  4927. rem.CanCollide = false
  4928. rem.FormFactor = 3
  4929. rem.Name = "Ring"
  4930. rem.Material = "Neon"
  4931. rem.Size = Vector3.new(1, 1, 1)
  4932. rem.Transparency = 1
  4933. rem.TopSurface = 0
  4934. rem.BottomSurface = 0
  4935. rem.CFrame = hite.CFrame
  4936. local rem2 = rem:Clone()
  4937. rem2.Parent = char
  4938. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4939. local rem3 = rem:Clone()
  4940. rem3.Parent = char
  4941. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4942. local rem4 = rem:Clone()
  4943. rem4.Parent = char
  4944. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4945. hite:Destroy()
  4946. coroutine.resume(coroutine.create(function()
  4947. for i = 0, 24 do
  4948. swait(1)
  4949. if randomrotations == 1 then
  4950. rot = rot + 1
  4951. elseif randomrotations == 2 then
  4952. rot = rot - 1
  4953. end
  4954. power = power + 0.5
  4955. lookv = lookv + 7.5
  4956. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4957. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4958. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4959. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4960. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4961. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4962. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4963. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4964. end
  4965. end))
  4966. wait(2)
  4967. hum.WalkSpeed = storehumanoidWS
  4968. attack = false
  4969. end
  4970. function yinyangi()
  4971. attack = true
  4972. for i = 0, 2, 0.1 do
  4973. swait()
  4974. 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)
  4975. 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)
  4976. 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)
  4977. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4978. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4979. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4980. end
  4981. local bv = Instance.new("BodyVelocity")
  4982. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4983. bv.velocity = root.CFrame.lookVector*175
  4984. bv.Parent = root
  4985. for Rotations = 0, 9 do
  4986. for i = 0, 1, 0.5 do
  4987. swait()
  4988. bv.velocity = root.CFrame.lookVector*175
  4989. 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)
  4990. 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)
  4991. 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)
  4992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4994. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4995. end
  4996. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4997. for i = 0, 1, 0.5 do
  4998. swait()
  4999. bv.velocity = root.CFrame.lookVector*175
  5000. 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)
  5001. 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)
  5002. 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)
  5003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5004. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5005. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5006. end
  5007. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5008. for i = 0, 1, 0.5 do
  5009. swait()
  5010. bv.velocity = root.CFrame.lookVector*175
  5011. 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)
  5012. 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)
  5013. 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)
  5014. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5015. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5016. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5017. end
  5018. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5019. for i = 0, 1, 0.5 do
  5020. swait()
  5021. bv.velocity = root.CFrame.lookVector*175
  5022. 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)
  5023. 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)
  5024. 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)
  5025. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5027. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5028. end
  5029. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5030. end
  5031. bv:Destroy()
  5032. attack = false
  5033. end
  5034.  
  5035. function createBGCircle(size,parent,color)
  5036. local bgui = Instance.new("BillboardGui",parent)
  5037. bgui.Size = UDim2.new(size, 0, size, 0)
  5038. local imgc = Instance.new("ImageLabel",bgui)
  5039. imgc.BackgroundTransparency = 1
  5040. imgc.ImageTransparency = 0
  5041. imgc.Size = UDim2.new(1,0,1,0)
  5042. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5043. imgc.ImageColor3 = color
  5044. return bgui,imgc
  5045. end
  5046.  
  5047. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5048. local bgui,imgc = createBGCircle(size,guipar,color)
  5049. bgui.AlwaysOnTop = true
  5050. imgc.Image = "rbxassetid://" ..img
  5051. local rrot = math.random(1,2)
  5052. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5053. coroutine.resume(coroutine.create(function()
  5054. for i = 0, 24*delay do
  5055. swait()
  5056. if rotationenabled == true then
  5057. if rrot == 1 then
  5058. imgc.Rotation = imgc.Rotation + rotsp
  5059. elseif rrot == 2 then
  5060. imgc.Rotation = imgc.Rotation - rotsp
  5061. end
  5062. end
  5063. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5064. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5065. end
  5066. bgui:Destroy()
  5067. end))
  5068. end
  5069. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5070. for i, v in pairs(mw2:GetChildren()) do
  5071. if v:IsA("Part") then
  5072. v.BrickColor = one
  5073. v.Material = "Neon"
  5074. end
  5075. end
  5076. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5077. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5078. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5079. tr1.Color = ColorSequence.new(one.Color)
  5080. tr2.Color = ColorSequence.new(one.Color)
  5081. tr3.Color = ColorSequence.new(one.Color)
  5082. for i, v in pairs(mw1:GetChildren()) do
  5083. if v:IsA("Part") then
  5084. if secondaryenabled == false then
  5085. v.Transparency = 1
  5086. elseif secondaryenabled == true then
  5087. v.Transparency = 0
  5088. end
  5089. v.BrickColor = two
  5090. v.Material = "Neon"
  5091. end
  5092. end
  5093. if secondaryenabled == false then
  5094. tl1.Enabled = false
  5095. tl2.Enabled = false
  5096. tl3.Enabled = false
  5097. elseif secondaryenabled == true then
  5098. tl1.Enabled = true
  5099. tl2.Enabled = true
  5100. tl3.Enabled = true
  5101. end
  5102. tl1.Color = ColorSequence.new(two.Color)
  5103. tl2.Color = ColorSequence.new(two.Color)
  5104. tl3.Color = ColorSequence.new(two.Color)
  5105. for i, v in pairs(m:GetChildren()) do
  5106. if v:IsA("Part") then
  5107. v.BrickColor = three
  5108. v.Material = "Ice"
  5109. end
  5110. end
  5111. for i, v in pairs(m2:GetChildren()) do
  5112. if v:IsA("Part") then
  5113. v.BrickColor = four
  5114. v.Material = "Ice"
  5115. end
  5116. end
  5117. for i, v in pairs(m3:GetChildren()) do
  5118. if v:IsA("Part") then
  5119. v.BrickColor = five
  5120. v.Material = "Neon"
  5121. end
  5122. end
  5123. for i, v in pairs(extrawingmod1:GetChildren()) do
  5124. if v:IsA("Part") then
  5125. v.Transparency = exonetran
  5126. v.BrickColor = exone
  5127. v.Material = "Neon"
  5128. end
  5129. end
  5130. for i, v in pairs(extrawingmod2:GetChildren()) do
  5131. if v:IsA("Part") then
  5132. v.Transparency = extwotran
  5133. v.BrickColor = extwo
  5134. v.Material = "Neon"
  5135. end
  5136. end
  5137. end
  5138.  
  5139.  
  5140. function normalmog()
  5141. attack = true
  5142. hum.WalkSpeed = 0
  5143. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5144. for i = 0,6,0.1 do
  5145. swait()
  5146. 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)
  5147. 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)
  5148. 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)
  5149. 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)
  5150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5151. 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)
  5152. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5153. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5154. end
  5155. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5156. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5157. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5158. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5159. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5160. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5161. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5162. rainbowmode = false
  5163. chaosmode = false
  5164. ModeOfGlitch = 1
  5165. storehumanoidWS = 16
  5166. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5167. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5168. CameraEnshaking(5,2.5)
  5169. MAINRUINCOLOR = BrickColor.new("Really red")
  5170. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5171. for i = 0, 49 do
  5172. 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)
  5173. end
  5174. for i = 0, 24 do
  5175. 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)
  5176. 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"))
  5177. end
  5178. for i = 0,3,0.1 do
  5179. 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)
  5180. end
  5181. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5182. for i = 0,2,0.1 do
  5183. swait()
  5184. 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)
  5185. 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)
  5186. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5187. 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)
  5188. 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)
  5189. 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)
  5190. end
  5191. hum.WalkSpeed = storehumanoidWS
  5192. attack = false
  5193. end
  5194.  
  5195. function attackone()
  5196. attack = true
  5197. local keptcolor = MAINRUINCOLOR
  5198. for i = 0,1,0.1 do
  5199. swait()
  5200. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5201. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5202. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5203. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5204. 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)
  5205. 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)
  5206. end
  5207. local distlook = 5
  5208. coroutine.resume(coroutine.create(function()
  5209. for i = 0, 4 do
  5210. swait(2)
  5211. CameraEnshaking(2,3)
  5212. local hite = Instance.new("Part", char)
  5213. hite.Anchored = true
  5214. hite.CanCollide = false
  5215. hite.FormFactor = 3
  5216. hite.Name = "Ring"
  5217. hite.Material = "Neon"
  5218. hite.Size = Vector3.new(1, 1, 1)
  5219. hite.Transparency = 1
  5220. hite.TopSurface = 0
  5221. hite.BottomSurface = 0
  5222. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5223. 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)
  5224. 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)
  5225. 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)
  5226. 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)
  5227. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5228. for i = 0, 14 do
  5229. local rsiz = math.random(5,20)
  5230. 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)
  5231. end
  5232. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5233. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5234. game:GetService("Debris"):AddItem(hite, 5)
  5235. distlook = distlook + 10
  5236. end
  5237. end))
  5238. for i = 0,1,0.1 do
  5239. swait()
  5240. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5241. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5242. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5243. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5244. 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)
  5245. 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)
  5246. end
  5247. attack = false
  5248. end
  5249.  
  5250. function attacktwo()
  5251. attack = true
  5252. hum.WalkSpeed = 2
  5253. local keptcolor = MAINRUINCOLOR
  5254. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5255. 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)
  5256. 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)
  5257. for i = 0, 14 do
  5258. 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)
  5259. end
  5260. for i = 0,1,0.1 do
  5261. swait()
  5262. 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)
  5263. 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)
  5264. 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)
  5265. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5267. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5268. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5269. end
  5270. for i = 0, 1 do
  5271. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5272. for i = 0,1,0.6 do
  5273. swait()
  5274. 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)
  5275. 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"))
  5276. 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)
  5277. 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)
  5278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5280. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5281. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5282. end
  5283. for i = 0,1,0.6 do
  5284. swait()
  5285. 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)
  5286. 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"))
  5287. 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)
  5288. 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)
  5289. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5290. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5291. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5292. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5293. end
  5294. for i = 0,1,0.6 do
  5295. swait()
  5296. 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)
  5297. 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"))
  5298. 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)
  5299. 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)
  5300. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5301. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5302. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5303. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5304. end
  5305. for i = 0,1,0.6 do
  5306. swait()
  5307. 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)
  5308. 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"))
  5309. 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)
  5310. 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)
  5311. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5313. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5314. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5315. end
  5316. local rot = 0
  5317. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5318. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5319. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5320. CreateMesh(dis,"Sphere",10,1,10)
  5321. local at1 = Instance.new("Attachment",dis)
  5322. at1.Position = vt(-5,0,0)
  5323. local at2 = Instance.new("Attachment",dis)
  5324. at2.Position = vt(5,0,0)
  5325. local trl = Instance.new('Trail',wed)
  5326. trl.Attachment0 = at1
  5327. trl.Attachment1 = at2
  5328. trl.Texture = "rbxassetid://1049219073"
  5329. trl.LightEmission = 1
  5330. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5331. trl.Color = ColorSequence.new(dis.Color)
  5332. trl.Lifetime = 0.6
  5333. local a = Instance.new("Part",workspace)
  5334. a.Name = "Direction"
  5335. a.Anchored = true
  5336. a.BrickColor = bc("Bright red")
  5337. a.Material = "Neon"
  5338. a.Transparency = 1
  5339. a.CanCollide = false
  5340. local ray = Ray.new(
  5341. dis.CFrame.p, -- origin
  5342. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5343. )
  5344. local ignore = dis
  5345. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5346. a.BottomSurface = 10
  5347. a.TopSurface = 10
  5348. local distance = (dis.CFrame.p - position).magnitude
  5349. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5350. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5351. dis.CFrame = a.CFrame
  5352. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5353. a:Destroy()
  5354. local bv = Instance.new("BodyVelocity")
  5355. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5356. bv.velocity = dis.CFrame.lookVector*250
  5357. bv.Parent = dis
  5358. game:GetService("Debris"):AddItem(dis, 5)
  5359. local hitted = false
  5360. coroutine.resume(coroutine.create(function()
  5361. dis.Touched:connect(function(hit)
  5362. if hitted == false and hit.Parent ~= char then
  5363. hitted = true
  5364. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5365. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5366. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5367. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5368. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5369. coroutine.resume(coroutine.create(function()
  5370. for i = 0, 9 do
  5371. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5372. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5373. local at1 = Instance.new("Attachment",disr)
  5374. at1.Position = vt(-5,0,0)
  5375. local at2 = Instance.new("Attachment",disr)
  5376. at2.Position = vt(5,0,0)
  5377. local trl = Instance.new('Trail',disr)
  5378. trl.Attachment0 = at1
  5379. trl.FaceCamera = true
  5380. trl.Attachment1 = at2
  5381. trl.Texture = "rbxassetid://2342682798"
  5382. trl.LightEmission = 1
  5383. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5384. trl.Color = ColorSequence.new(keptcolor.Color)
  5385. trl.Lifetime = 0.5
  5386. local bv = Instance.new("BodyVelocity")
  5387. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5388. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5389. bv.Parent = disr
  5390. local val = 0
  5391. coroutine.resume(coroutine.create(function()
  5392. swait(30)
  5393. for i = 0, 9 do
  5394. swait()
  5395. val = val + 0.1
  5396. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5397. end
  5398. game:GetService("Debris"):AddItem(disr, 3)
  5399. end))
  5400. end
  5401. local eff = Instance.new("ParticleEmitter",dis)
  5402. eff.Texture = "rbxassetid://2273224484"
  5403. eff.LightEmission = 1
  5404. eff.Color = ColorSequence.new(keptcolor.Color)
  5405. eff.Rate = 500000
  5406. eff.Lifetime = NumberRange.new(0.5,2)
  5407. 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)})
  5408. 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)})
  5409. eff.Speed = NumberRange.new(20,250)
  5410. eff.Drag = 5
  5411. eff.Rotation = NumberRange.new(-500,500)
  5412. eff.VelocitySpread = 9000
  5413. eff.RotSpeed = NumberRange.new(-50,50)
  5414. wait(0.25)
  5415. eff.Enabled = false
  5416. end))
  5417. for i = 0, 9 do
  5418. 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"))
  5419. end
  5420. for i = 0, 19 do
  5421. 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)
  5422. end
  5423. coroutine.resume(coroutine.create(function()
  5424. for i = 0, 19 do
  5425. swait()
  5426. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5427. end
  5428. hum.CameraOffset = vt(0,0,0)
  5429. end))
  5430. dis.Anchored = true
  5431. dis.Transparency = 1
  5432. wait(8)
  5433. dis:Destroy()
  5434. end
  5435. end)
  5436. end))
  5437. rot = rot - 15
  5438. end
  5439. for i = 0,2,0.1 do
  5440. swait()
  5441. 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)
  5442. 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)
  5443. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5444. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5445. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5446. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5447. end
  5448. attack = false
  5449. hum.WalkSpeed = storehumanoidWS
  5450. end
  5451.  
  5452. function attackthree()
  5453. attack = true
  5454. local keptcolor = MAINRUINCOLOR
  5455. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5456. for i = 0,2,0.1 do
  5457. swait()
  5458. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5459. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5460. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5461. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5462. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5463. 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)
  5464. 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)
  5465. end
  5466. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5467. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5468. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5469. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5470. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5471. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5472. for i = 0, 24 do
  5473. 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"))
  5474. end
  5475. for i = 0,4,0.1 do
  5476. swait()
  5477. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5478. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5479. CreateMesh(dis,"Sphere",1,1,1)
  5480. dis.Anchored = true
  5481. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5482. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5483. coroutine.resume(coroutine.create(function()
  5484. swait(30)
  5485. dis.Transparency = 1
  5486. coroutine.resume(coroutine.create(function()
  5487. for i = 0, 19 do
  5488. swait()
  5489. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5490. end
  5491. hum.CameraOffset = vt(0,0,0)
  5492. end))
  5493. coroutine.resume(coroutine.create(function()
  5494. local eff = Instance.new("ParticleEmitter",dis)
  5495. eff.Texture = "rbxassetid://2273224484"
  5496. eff.LightEmission = 1
  5497. eff.Color = ColorSequence.new(dis.Color)
  5498. eff.Rate = 500000
  5499. eff.Lifetime = NumberRange.new(0.5,2)
  5500. 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)})
  5501. 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)})
  5502. eff.Speed = NumberRange.new(50,450)
  5503. eff.Drag = 5
  5504. eff.Rotation = NumberRange.new(-500,500)
  5505. eff.VelocitySpread = 9000
  5506. eff.RotSpeed = NumberRange.new(-50,50)
  5507. wait(0.125)
  5508. eff.Enabled = false
  5509. end))
  5510. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5511. for i = 0, 2 do
  5512. 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)
  5513. end
  5514. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5515. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5516. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5517. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5518. end))
  5519. game:GetService("Debris"):AddItem(dis, 5)
  5520. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5521. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5522. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5523. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5524. 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)
  5525. 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)
  5526. end
  5527. attack = false
  5528. end
  5529. ----------------------------------- Abilities
  5530.  
  5531. function ExtinctiveHeartbreak()
  5532. local targetted = nil
  5533. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5534. targetted = mouse.Target.Parent
  5535. end
  5536. if targetted ~= nil then
  5537. attack = true
  5538. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5539. for i = 0, 9 do
  5540. 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)
  5541. end
  5542. for i = 0, 24 do
  5543. 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)
  5544. end
  5545. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5546. local originalpos = root.CFrame
  5547. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5548. for i = 0, 9 do
  5549. 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)
  5550. end
  5551. for i = 0, 24 do
  5552. 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)
  5553. end
  5554. hum.WalkSpeed = 0
  5555. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5556. local radm = math.random(1,3)
  5557. if radm == 1 then
  5558. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5559. elseif radm == 2 then
  5560. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5561. elseif radm == 3 then
  5562. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5563. end
  5564. for i = 0,2,0.1 do
  5565. swait()
  5566. 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)
  5567. 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)
  5568. 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)
  5569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5570. 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)
  5571. 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)
  5572. end
  5573. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5574. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5575. for i = 0,2,0.1 do
  5576. swait()
  5577. coroutine.resume(coroutine.create(function()
  5578. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5579. for i,v in pairs(targetted:GetChildren()) do
  5580. if v:IsA("Part") or v:IsA("MeshPart") then
  5581. v.Velocity = vt(0,0,0)
  5582. end
  5583. end
  5584. end))
  5585. 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)
  5586. 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)
  5587. 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)
  5588. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5589. 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)
  5590. 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)
  5591. end
  5592. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5593. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5594. for i = 0, 1 do
  5595. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5596. end
  5597. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5598. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5599. for i = 0,4,0.1 do
  5600. swait()
  5601. coroutine.resume(coroutine.create(function()
  5602. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5603. 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)))
  5604. local at1 = Instance.new("Attachment",dis)
  5605. at1.Position = vt(-25000,0,0)
  5606. local at2 = Instance.new("Attachment",dis)
  5607. at2.Position = vt(25000,0,0)
  5608. local trl = Instance.new('Trail',dis)
  5609. trl.Attachment0 = at1
  5610. trl.FaceCamera = true
  5611. trl.Attachment1 = at2
  5612. trl.Texture = "rbxassetid://1049219073"
  5613. trl.LightEmission = 1
  5614. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5615. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5616. trl.Lifetime = 5
  5617. local bv = Instance.new("BodyVelocity")
  5618. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5619. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5620. bv.Parent = dis
  5621. game:GetService("Debris"):AddItem(dis, 5)
  5622. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5623. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5624. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5625. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5626. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5627. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5628. 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)
  5629. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5630. for i = 0, 2 do
  5631. 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"))
  5632. end
  5633. 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)
  5634. for i,v in pairs(targetted:GetChildren()) do
  5635. if v:IsA("Part") or v:IsA("MeshPart") then
  5636. v.Velocity = vt(0,0,0)
  5637. end
  5638. end
  5639. end))
  5640. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5641. 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)
  5642. 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)
  5643. 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)
  5644. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5645. 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)
  5646. 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)
  5647. end
  5648. hum.CameraOffset = vt(0,0,0)
  5649. for i = 0, 49 do
  5650. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5651. 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)))
  5652. local at1 = Instance.new("Attachment",dis)
  5653. at1.Position = vt(-50000,0,0)
  5654. local at2 = Instance.new("Attachment",dis)
  5655. at2.Position = vt(50000,0,0)
  5656. local trl = Instance.new('Trail',dis)
  5657. trl.Attachment0 = at1
  5658. trl.FaceCamera = true
  5659. trl.Attachment1 = at2
  5660. trl.Texture = "rbxassetid://1049219073"
  5661. trl.LightEmission = 1
  5662. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5663. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5664. trl.Lifetime = 5
  5665. local bv = Instance.new("BodyVelocity")
  5666. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5667. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5668. bv.Parent = dis
  5669. game:GetService("Debris"):AddItem(dis, 5)
  5670. end
  5671. for i = 0, 49 do
  5672. 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)
  5673. 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"))
  5674. end
  5675. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5676. for i = 0, 1 do
  5677. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5678. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5679. end
  5680. for i = 0, 4 do
  5681. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5682. end
  5683. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5684. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5685. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5686. dmg(targetted)
  5687. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5688. for i = 0, 9 do
  5689. 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)
  5690. end
  5691. for i = 0, 24 do
  5692. 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)
  5693. end
  5694. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5695. root.CFrame = originalpos
  5696. for i = 0, 9 do
  5697. 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)
  5698. end
  5699. for i = 0, 24 do
  5700. 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)
  5701. end
  5702. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5703. attack = false
  5704. hum.WalkSpeed = storehumanoidWS
  5705. end
  5706. end
  5707.  
  5708. function CorruptionEvent()
  5709. attack = true
  5710. hum.WalkSpeed = 0
  5711. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5712. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5713. local keptcolor = MAINRUINCOLOR
  5714. for i = 0,4,0.1 do
  5715. swait()
  5716. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5717. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5718. 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)
  5719. 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)
  5720. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5721. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5722. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5723. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5724. end
  5725. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5726. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5727. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5728. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5729. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5730. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5731. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5732. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5733. hum.CameraOffset = vt(0,0,0)
  5734. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5735. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5736. for i = 0, 24 do
  5737. 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"))
  5738. end
  5739. local rrot = 0
  5740. coroutine.resume(coroutine.create(function()
  5741. for i = 0, 4 do
  5742. rrot = rrot + 45
  5743. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5744. xa.Anchored = true
  5745. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5746. xb.Anchored = true
  5747. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5748. xc.Anchored = true
  5749. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5750. xd.Anchored = true
  5751. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5752. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5753. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5754. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5755. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5756. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5757. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5758. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5759. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5760. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5761. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5762. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5763. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5764. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5765. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5766. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5767. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5768. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5769. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5770. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5771. for i = 0, 9 do
  5772. 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"))
  5773. 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"))
  5774. 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"))
  5775. 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"))
  5776. end
  5777. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5778. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5779. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5780. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5781. 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)
  5782. 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)
  5783. 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)
  5784. 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)
  5785. 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))
  5786. 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))
  5787. 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))
  5788. 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))
  5789. game:GetService("Debris"):AddItem(xa, 5)
  5790. game:GetService("Debris"):AddItem(xb, 5)
  5791. game:GetService("Debris"):AddItem(xc, 5)
  5792. game:GetService("Debris"):AddItem(xd, 5)
  5793. coroutine.resume(coroutine.create(function()
  5794. for i = 0, 19 do
  5795. swait()
  5796. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5797. end
  5798. hum.CameraOffset = vt(0,0,0)
  5799. end))
  5800. swait(9)
  5801. end
  5802. end))
  5803. for i = 0,2,0.1 do
  5804. swait()
  5805. 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)
  5806. 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)
  5807. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5808. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5809. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5810. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5811. end
  5812. attack = false
  5813. hum.WalkSpeed = storehumanoidWS
  5814. end
  5815.  
  5816. function EndGROUND()
  5817. attack = true
  5818. hum.WalkSpeed = 0
  5819. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5820. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5821. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5822. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5823. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5824. local keptcolor = MAINRUINCOLOR
  5825. for i = 0,4,0.1 do
  5826. swait()
  5827. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5828. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5829. 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"))
  5830. 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)
  5831. 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)
  5832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5834. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5835. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5836. end
  5837. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5838. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5839. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5840. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5841. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5842. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5843. coroutine.resume(coroutine.create(function()
  5844. local shval = 10
  5845. for i = 0, 99 do
  5846. swait()
  5847. shval = shval - 0.1
  5848. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5849. end
  5850. hum.CameraOffset = vt(0,0,0)
  5851. end))
  5852. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5853. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5854. for i = 0, 24 do
  5855. 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"))
  5856. end
  5857. local rrot = 0
  5858. local xam = 1
  5859. coroutine.resume(coroutine.create(function()
  5860. for i = 0, 14 do
  5861. --swait()
  5862. rrot = rrot + 40*xam
  5863. xam = xam + 0.25
  5864. local bonus = xam
  5865. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5866. xa.Anchored = true
  5867. xa.Color = Color3.new(0,0,0)
  5868. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5869. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5870. local xc = 0
  5871. coroutine.resume(coroutine.create(function()
  5872. for i = 0, 99 do
  5873. swait()
  5874. xc = xc + 0.01
  5875. xa.Color = Color3.new(xc,0,0)
  5876. end
  5877. xa.Transparency = 1
  5878. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5879. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5880. for i = 0, 9 do
  5881. 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"))
  5882. end
  5883. 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)
  5884. 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)
  5885. 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))
  5886. game:GetService("Debris"):AddItem(xa, 5)
  5887. coroutine.resume(coroutine.create(function()
  5888. for i = 0, 19 do
  5889. swait()
  5890. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5891. end
  5892. hum.CameraOffset = vt(0,0,0)
  5893. end))
  5894. end))
  5895. end
  5896. end))
  5897. for i = 0,2,0.1 do
  5898. swait()
  5899. 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)
  5900. 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)
  5901. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5902. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5903. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5904. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5905. end
  5906. attack = false
  5907. hum.WalkSpeed = storehumanoidWS
  5908. end
  5909.  
  5910. function HeavenlyDisk()
  5911. attack = true
  5912. hum.WalkSpeed = 2
  5913. local keptcolor = MAINRUINCOLOR
  5914. local radm = math.random(1,3)
  5915. if radm == 1 then
  5916. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5917. elseif radm == 2 then
  5918. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5919. elseif radm == 3 then
  5920. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5921. end
  5922. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5923. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5924. 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)
  5925. 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)
  5926. for i = 0, 14 do
  5927. 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)
  5928. end
  5929. for i = 0,2,0.1 do
  5930. swait()
  5931. 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)
  5932. 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)
  5933. 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)
  5934. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5935. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5937. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5938. end
  5939. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5940. for i = 0,1,0.6 do
  5941. swait()
  5942. 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)
  5943. 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"))
  5944. 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)
  5945. 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)
  5946. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5948. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5949. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5950. end
  5951. for i = 0,1,0.6 do
  5952. swait()
  5953. 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)
  5954. 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"))
  5955. 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)
  5956. 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)
  5957. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5958. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5959. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5960. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5961. end
  5962. for i = 0,1,0.6 do
  5963. swait()
  5964. 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)
  5965. 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"))
  5966. 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)
  5967. 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)
  5968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5971. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5972. end
  5973. for i = 0,1,0.6 do
  5974. swait()
  5975. 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)
  5976. 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"))
  5977. 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)
  5978. 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)
  5979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5980. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5982. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5983. end
  5984. local rot = 15
  5985. for i = 0, 2 do
  5986. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5987. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5988. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5989. CreateMesh(dis,"Sphere",10,1,10)
  5990. local at1 = Instance.new("Attachment",dis)
  5991. at1.Position = vt(-5,0,0)
  5992. local at2 = Instance.new("Attachment",dis)
  5993. at2.Position = vt(5,0,0)
  5994. local trl = Instance.new('Trail',wed)
  5995. trl.Attachment0 = at1
  5996. trl.Attachment1 = at2
  5997. trl.Texture = "rbxassetid://1049219073"
  5998. trl.LightEmission = 1
  5999. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6000. trl.Color = ColorSequence.new(dis.Color)
  6001. trl.Lifetime = 0.6
  6002. local a = Instance.new("Part",workspace)
  6003. a.Name = "Direction"
  6004. a.Anchored = true
  6005. a.BrickColor = bc("Bright red")
  6006. a.Material = "Neon"
  6007. a.Transparency = 1
  6008. a.CanCollide = false
  6009. local ray = Ray.new(
  6010. dis.CFrame.p, -- origin
  6011. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6012. )
  6013. local ignore = dis
  6014. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6015. a.BottomSurface = 10
  6016. a.TopSurface = 10
  6017. local distance = (dis.CFrame.p - position).magnitude
  6018. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6019. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6020. dis.CFrame = a.CFrame
  6021. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6022. a:Destroy()
  6023. local bv = Instance.new("BodyVelocity")
  6024. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6025. bv.velocity = dis.CFrame.lookVector*250
  6026. bv.Parent = dis
  6027. game:GetService("Debris"):AddItem(dis, 5)
  6028. local hitted = false
  6029. coroutine.resume(coroutine.create(function()
  6030. dis.Touched:connect(function(hit)
  6031. if hitted == false and hit.Parent ~= char then
  6032. hitted = true
  6033. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6034. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6035. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6036. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6037. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6038. coroutine.resume(coroutine.create(function()
  6039. for i = 0, 9 do
  6040. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6041. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6042. local at1 = Instance.new("Attachment",disr)
  6043. at1.Position = vt(-2,0,0)
  6044. local at2 = Instance.new("Attachment",disr)
  6045. at2.Position = vt(2,0,0)
  6046. local trl = Instance.new('Trail',disr)
  6047. trl.Attachment0 = at1
  6048. trl.FaceCamera = true
  6049. trl.Attachment1 = at2
  6050. trl.Texture = "rbxassetid://2342682798"
  6051. trl.LightEmission = 1
  6052. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6053. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6054. trl.Lifetime = 0.5
  6055. local bv = Instance.new("BodyVelocity")
  6056. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6057. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6058. bv.Parent = disr
  6059. local val = 0
  6060. coroutine.resume(coroutine.create(function()
  6061. swait(30)
  6062. for i = 0, 9 do
  6063. swait()
  6064. val = val + 0.1
  6065. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6066. end
  6067. game:GetService("Debris"):AddItem(disr, 3)
  6068. end))
  6069. end
  6070. local eff = Instance.new("ParticleEmitter",dis)
  6071. eff.Texture = "rbxassetid://2273224484"
  6072. eff.LightEmission = 1
  6073. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6074. eff.Rate = 500000
  6075. eff.Lifetime = NumberRange.new(0.5,2)
  6076. 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)})
  6077. 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)})
  6078. eff.Speed = NumberRange.new(20,250)
  6079. eff.Drag = 5
  6080. eff.Rotation = NumberRange.new(-500,500)
  6081. eff.VelocitySpread = 9000
  6082. eff.RotSpeed = NumberRange.new(-50,50)
  6083. wait(0.25)
  6084. eff.Enabled = false
  6085. end))
  6086. for i = 0, 9 do
  6087. 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"))
  6088. end
  6089. for i = 0, 19 do
  6090. 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)
  6091. end
  6092. coroutine.resume(coroutine.create(function()
  6093. for i = 0, 19 do
  6094. swait()
  6095. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6096. end
  6097. hum.CameraOffset = vt(0,0,0)
  6098. end))
  6099. dis.Anchored = true
  6100. dis.Transparency = 1
  6101. wait(8)
  6102. dis:Destroy()
  6103. end
  6104. end)
  6105. end))
  6106. rot = rot - 15
  6107. end
  6108. for i = 0,2,0.1 do
  6109. swait()
  6110. 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)
  6111. 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)
  6112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6116. end
  6117. attack = false
  6118. hum.WalkSpeed = storehumanoidWS
  6119. end
  6120.  
  6121.  
  6122. function RapidBurst()
  6123. attack = true
  6124. hum.WalkSpeed = 0
  6125. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6126. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6127. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6128. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6129. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6130. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6131. local keptcolor = MAINRUINCOLOR
  6132. for i = 0,8,0.1 do
  6133. swait()
  6134. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6135. 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())
  6136. 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)
  6137. 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)
  6138. 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)
  6139. 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)
  6140. 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)
  6141. 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)
  6142. 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)
  6143. end
  6144. for i = 0, 99 do
  6145. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6146. 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)))
  6147. local at1 = Instance.new("Attachment",dis)
  6148. at1.Position = vt(-25000,0,0)
  6149. local at2 = Instance.new("Attachment",dis)
  6150. at2.Position = vt(25000,0,0)
  6151. local trl = Instance.new('Trail',dis)
  6152. trl.Attachment0 = at1
  6153. trl.FaceCamera = true
  6154. trl.Attachment1 = at2
  6155. trl.Texture = "rbxassetid://1049219073"
  6156. trl.LightEmission = 1
  6157. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6158. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6159. trl.Lifetime = 5
  6160. local bv = Instance.new("BodyVelocity")
  6161. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6162. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6163. bv.Parent = dis
  6164. game:GetService("Debris"):AddItem(dis, 5)
  6165. end
  6166. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6167. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6168. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6169. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6170. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6171. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6172. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6173. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6174. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6175. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6176. hum.CameraOffset = vt(0,0,0)
  6177. for i = 0, 24 do
  6178. 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())
  6179. end
  6180. local distam = 0
  6181. coroutine.resume(coroutine.create(function()
  6182. for i = 0, 99 do
  6183. wait()
  6184. distam = distam + 1
  6185. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6186. xa.Anchored = true
  6187. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6188. game:GetService("Debris"):AddItem(xa, 5)
  6189. for i = 0, 4 do
  6190. 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())
  6191. end
  6192. coroutine.resume(coroutine.create(function()
  6193. local eff = Instance.new("ParticleEmitter",xa)
  6194. eff.Texture = "rbxassetid://2273224484"
  6195. eff.LightEmission = 1
  6196. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6197. eff.Rate = 500000
  6198. eff.Lifetime = NumberRange.new(1,3)
  6199. 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)})
  6200. 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)})
  6201. eff.Speed = NumberRange.new(50,500)
  6202. eff.Drag = 5
  6203. eff.Rotation = NumberRange.new(-500,500)
  6204. eff.VelocitySpread = 9000
  6205. eff.RotSpeed = NumberRange.new(-50,50)
  6206. wait(0.25)
  6207. eff.Enabled = false
  6208. end))
  6209. coroutine.resume(coroutine.create(function()
  6210. for i = 0, 19 do
  6211. swait()
  6212. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6213. end
  6214. hum.CameraOffset = vt(0,0,0)
  6215. end))
  6216. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6217. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6218. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6219. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6220. end
  6221. end))
  6222. attack = false
  6223. hum.WalkSpeed = storehumanoidWS
  6224. end
  6225.  
  6226. function InsaneBeam()
  6227. attack = true
  6228. hum.WalkSpeed = 0
  6229. local keptcolor = MAINRUINCOLOR
  6230. local orb = Instance.new("Part", char)
  6231. orb.BrickColor = keptcolor
  6232. orb.CanCollide = false
  6233. orb.FormFactor = 3
  6234. orb.Name = "Ring"
  6235. orb.Material = "Neon"
  6236. orb.Size = Vector3.new(1, 1, 1)
  6237. orb.Transparency = 1
  6238. orb.TopSurface = 0
  6239. orb.BottomSurface = 0
  6240. local orbm = Instance.new("SpecialMesh", orb)
  6241. orbm.MeshType = "Sphere"
  6242. orbm.Name = "SizeMesh"
  6243. orbm.Scale = vt(22.5,10000,22.5)
  6244. orb.CFrame = mouse.Hit
  6245. orb.Anchored = true
  6246. orb.Orientation = vt(0,0,0)
  6247. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  6248. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  6249. coroutine.resume(coroutine.create(function()
  6250. coroutine.resume(coroutine.create(function()
  6251. for i = 0, 399 do
  6252. swait()
  6253. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  6254. orb.Transparency = orb.Transparency - 0.0025
  6255. end
  6256. end))
  6257. wait(9)
  6258. coroutine.resume(coroutine.create(function()
  6259. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  6260. if hfr ~= nil then
  6261. for i = 0, 49 do
  6262. local deb = Instance.new("Part", char)
  6263. deb.Anchored = true
  6264. deb.CanCollide = false
  6265. deb.FormFactor = 3
  6266. deb.Name = "Ring"
  6267. deb.Material = hitfloor.Material
  6268. deb.Color = hitfloor.Color
  6269. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  6270. deb.Transparency = 0
  6271. deb.TopSurface = 0
  6272. deb.BottomSurface = 0
  6273. 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)))
  6274. local deb2 = Instance.new("Part", char)
  6275. deb2.CanCollide = false
  6276. deb2.FormFactor = 3
  6277. deb2.Name = "Ring"
  6278. deb2.Material = hitfloor.Material
  6279. deb2.Color = hitfloor.Color
  6280. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  6281. deb2.Transparency = 0
  6282. deb2.TopSurface = 0
  6283. deb2.BottomSurface = 0
  6284. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  6285. 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)))
  6286. local eff = Instance.new("ParticleEmitter",deb)
  6287. eff.Texture = "rbxassetid://363275192"
  6288. eff.LightEmission = 0.95
  6289. eff.Color = ColorSequence.new(keptcolor.Color)
  6290. eff.Rate = 100
  6291. eff.Lifetime = NumberRange.new(1)
  6292. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  6293. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6294. eff.Speed = NumberRange.new(0,5)
  6295. eff.Rotation = NumberRange.new(-500,500)
  6296. eff.VelocitySpread = 9000
  6297. eff.RotSpeed = NumberRange.new(-10,10)
  6298. local at1 = Instance.new('Attachment',deb2)
  6299. at1.Position = vt(0,15,0)
  6300. local at2 = Instance.new('Attachment',deb2)
  6301. at2.Position = vt(0,-15,0)
  6302. local tl = Instance.new('Trail',deb2)
  6303. tl.Attachment0 = at1
  6304. tl.Attachment1 = at2
  6305. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6306. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  6307. tl.Lifetime = 1
  6308. game:GetService("Debris"):AddItem(deb,30)
  6309. game:GetService("Debris"):AddItem(deb2,30)
  6310. coroutine.resume(coroutine.create(function()
  6311. wait(15)
  6312. eff.Enabled = false
  6313. for i = 0, 49 do
  6314. swait()
  6315. deb.Transparency = deb.Transparency + 0.02
  6316. end
  6317. wait(1)
  6318. deb:Destroy()
  6319. end))
  6320. end
  6321. end
  6322. end))
  6323. for i = 0, 199 do
  6324. swait(1.5)
  6325. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  6326. if v:FindFirstChild('Head') then
  6327. dmg(v)
  6328. end
  6329. end
  6330. 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)
  6331. 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)
  6332. 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)
  6333. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  6334. end
  6335. orb:Destroy()
  6336. end))
  6337. hum.WalkSpeed = storehumanoidWS
  6338. attack = false
  6339. end
  6340.  
  6341. function InsaneDrop()
  6342. attack = true
  6343. hum.WalkSpeed = 0
  6344. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6345. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6346. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6347. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6348. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6349. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6350. local keptcolor = MAINRUINCOLOR
  6351. for i = 0,8,0.1 do
  6352. swait()
  6353. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6354. 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())
  6355. 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)
  6356. 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)
  6357. 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)
  6358. 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)
  6359. 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)
  6360. 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)
  6361. 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)
  6362. end
  6363. for i = 0, 99 do
  6364. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6365. 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)))
  6366. local at1 = Instance.new("Attachment",dis)
  6367. at1.Position = vt(-25000,0,0)
  6368. local at2 = Instance.new("Attachment",dis)
  6369. at2.Position = vt(25000,0,0)
  6370. local trl = Instance.new('Trail',dis)
  6371. trl.Attachment0 = at1
  6372. trl.FaceCamera = true
  6373. trl.Attachment1 = at2
  6374. trl.Texture = "rbxassetid://1049219073"
  6375. trl.LightEmission = 1
  6376. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6377. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6378. trl.Lifetime = 5
  6379. local bv = Instance.new("BodyVelocity")
  6380. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6381. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6382. bv.Parent = dis
  6383. game:GetService("Debris"):AddItem(dis, 5)
  6384. end
  6385. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6386. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6387. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6388. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6389. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6390. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6391. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6392. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6393. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6394. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6395. hum.CameraOffset = vt(0,0,0)
  6396. for i = 0, 24 do
  6397. 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())
  6398. end
  6399. local distam = 0
  6400. coroutine.resume(coroutine.create(function()
  6401. for i = 0, 99 do
  6402. wait()
  6403. distam = distam + 1
  6404. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6405. xa.Anchored = true
  6406. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6407. game:GetService("Debris"):AddItem(xa, 5)
  6408. for i = 0, 4 do
  6409. 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())
  6410. end
  6411. coroutine.resume(coroutine.create(function()
  6412. local eff = Instance.new("ParticleEmitter",xa)
  6413. eff.Texture = "rbxassetid://2273224484"
  6414. eff.LightEmission = 1
  6415. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6416. eff.Rate = 500000
  6417. eff.Lifetime = NumberRange.new(1,3)
  6418. 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)})
  6419. 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)})
  6420. eff.Speed = NumberRange.new(50,500)
  6421. eff.Drag = 5
  6422. eff.Rotation = NumberRange.new(-500,500)
  6423. eff.VelocitySpread = 9000
  6424. eff.RotSpeed = NumberRange.new(-50,50)
  6425. wait(0.25)
  6426. eff.Enabled = false
  6427. end))
  6428. coroutine.resume(coroutine.create(function()
  6429. for i = 0, 19 do
  6430. swait()
  6431. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6432. end
  6433. hum.CameraOffset = vt(0,0,0)
  6434. end))
  6435. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6436. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6437. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6438. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6439. end
  6440. end))
  6441. attack = false
  6442. hum.WalkSpeed = storehumanoidWS
  6443. end
  6444.  
  6445. function FallenOrbs()
  6446. attack = true
  6447. hum.WalkSpeed = 2
  6448. local keptcolor = MAINRUINCOLOR
  6449. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6450. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6451. local radm = math.random(1,3)
  6452. if radm == 1 then
  6453. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6454. elseif radm == 2 then
  6455. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6456. elseif radm == 3 then
  6457. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6458. end
  6459. coroutine.resume(coroutine.create(function()
  6460. for i = 0, 29 do
  6461. swait(2)
  6462. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6463. dis.Anchored = true
  6464. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6465. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6466. CreateMesh(dis,"Sphere",2,2,2)
  6467. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6468. 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"))
  6469. coroutine.resume(coroutine.create(function()
  6470. wait(0.5)
  6471. dis.Anchored = false
  6472. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6473. local at1 = Instance.new("Attachment",dis)
  6474. at1.Position = vt(-1,0,0)
  6475. local at2 = Instance.new("Attachment",dis)
  6476. at2.Position = vt(1,0,0)
  6477. local trl = Instance.new('Trail',dis)
  6478. trl.Attachment0 = at1
  6479. trl.FaceCamera = true
  6480. trl.Attachment1 = at2
  6481. trl.Texture = "rbxassetid://1049219073"
  6482. trl.LightEmission = 1
  6483. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6484. trl.Color = ColorSequence.new(dis.Color)
  6485. trl.Lifetime = 0.6
  6486. local a = Instance.new("Part",workspace)
  6487. a.Name = "Direction"
  6488. a.Anchored = true
  6489. a.BrickColor = bc("Bright red")
  6490. a.Material = "Neon"
  6491. a.Transparency = 1
  6492. a.CanCollide = false
  6493. local ray = Ray.new(
  6494. dis.CFrame.p, -- origin
  6495. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6496. )
  6497. local ignore = dis
  6498. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6499. a.BottomSurface = 10
  6500. a.TopSurface = 10
  6501. local distance = (dis.CFrame.p - position).magnitude
  6502. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6503. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6504. dis.CFrame = a.CFrame
  6505. a:Destroy()
  6506. local bv = Instance.new("BodyVelocity")
  6507. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6508. bv.velocity = dis.CFrame.lookVector*500
  6509. bv.Parent = dis
  6510. game:GetService("Debris"):AddItem(dis, 5)
  6511. local hitted = false
  6512. coroutine.resume(coroutine.create(function()
  6513. dis.Touched:connect(function(hit)
  6514. if hitted == false and hit.Parent ~= char then
  6515. hitted = true
  6516. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6517. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6518. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6519. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6520. coroutine.resume(coroutine.create(function()
  6521. for i = 0, 4 do
  6522. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6523. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6524. local at1 = Instance.new("Attachment",disr)
  6525. at1.Position = vt(-10,0,0)
  6526. local at2 = Instance.new("Attachment",disr)
  6527. at2.Position = vt(10,0,0)
  6528. local trl = Instance.new('Trail',disr)
  6529. trl.Attachment0 = at1
  6530. trl.FaceCamera = true
  6531. trl.Attachment1 = at2
  6532. trl.Texture = "rbxassetid://2342682798"
  6533. trl.LightEmission = 1
  6534. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6535. trl.Color = ColorSequence.new(disr.Color)
  6536. trl.Lifetime = 0.5
  6537. local bv = Instance.new("BodyVelocity")
  6538. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6539. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6540. bv.Parent = disr
  6541. local val = 0
  6542. coroutine.resume(coroutine.create(function()
  6543. swait(30)
  6544. for i = 0, 9 do
  6545. swait()
  6546. val = val + 0.1
  6547. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6548. end
  6549. game:GetService("Debris"):AddItem(disr, 3)
  6550. end))
  6551. end
  6552. local eff = Instance.new("ParticleEmitter",dis)
  6553. eff.Texture = "rbxassetid://1049219073"
  6554. eff.LightEmission = 1
  6555. eff.Color = ColorSequence.new(dis.Color)
  6556. eff.Rate = 500000
  6557. eff.Lifetime = NumberRange.new(0.5,2)
  6558. 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)})
  6559. 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)})
  6560. eff.Speed = NumberRange.new(20,250)
  6561. eff.Drag = 5
  6562. eff.Rotation = NumberRange.new(-500,500)
  6563. eff.VelocitySpread = 9000
  6564. eff.RotSpeed = NumberRange.new(-50,50)
  6565. wait(0.5)
  6566. eff.Enabled = false
  6567. end))
  6568. for i = 0, 4 do
  6569. 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"))
  6570. end
  6571. coroutine.resume(coroutine.create(function()
  6572. for i = 0, 19 do
  6573. swait()
  6574. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6575. end
  6576. hum.CameraOffset = vt(0,0,0)
  6577. end))
  6578. dis.Anchored = true
  6579. dis.Transparency = 1
  6580. wait(8)
  6581. dis:Destroy()
  6582. end
  6583. end)
  6584. end))
  6585. end))
  6586. end
  6587. end))
  6588. for i = 0,9,0.1 do
  6589. swait()
  6590. 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)
  6591. 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)
  6592. 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)
  6593. 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)
  6594. 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)
  6595. 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)
  6596. 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)
  6597. end
  6598. attack = false
  6599. hum.WalkSpeed = storehumanoidWS
  6600. end
  6601.  
  6602. function CyberSlash()
  6603. local posit = -2
  6604. attack = true
  6605. hum.WalkSpeed = 5
  6606. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6607. local radm = math.random(1,3)
  6608. if radm == 1 then
  6609. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6610. elseif radm == 2 then
  6611. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6612. elseif radm == 3 then
  6613. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6614. end
  6615. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6616. for i = 0,2,0.1 do
  6617. swait()
  6618. 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)
  6619. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6620. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6621. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6622. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6623. 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)
  6624. 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)
  6625. end
  6626. for i = 0, 2 do
  6627. CameraEnshaking(1,2)
  6628. local hite = Instance.new("Part", char)
  6629. hite.Anchored = true
  6630. hite.CanCollide = false
  6631. hite.FormFactor = 3
  6632. hite.Name = "Ring"
  6633. hite.Material = "Neon"
  6634. hite.Size = Vector3.new(1, 1, 1)
  6635. hite.Transparency = 1
  6636. hite.TopSurface = 0
  6637. hite.BottomSurface = 0
  6638. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6639. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6640. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6641. coroutine.resume(coroutine.create(function()
  6642. for i = 0, 1 do
  6643. swait()
  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(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6645. 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)
  6646. 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)
  6647. end
  6648. end))
  6649. 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)
  6650. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6651. game:GetService("Debris"):AddItem(hite, 5)
  6652. posit = posit + 2
  6653. end
  6654. for i = 0,1,0.1 do
  6655. swait()
  6656. 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)
  6657. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6658. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6659. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6660. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6661. 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)
  6662. 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)
  6663. end
  6664. for i = 0,1,0.1 do
  6665. swait()
  6666. 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)
  6667. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6668. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6669. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6670. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6671. 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)
  6672. 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)
  6673. end
  6674. posit = -6
  6675. for i = 0, 6 do
  6676. CameraEnshaking(1,3)
  6677. local hite = Instance.new("Part", char)
  6678. hite.Anchored = true
  6679. hite.CanCollide = false
  6680. hite.FormFactor = 3
  6681. hite.Name = "Ring"
  6682. hite.Material = "Neon"
  6683. hite.Size = Vector3.new(1, 1, 1)
  6684. hite.Transparency = 1
  6685. hite.TopSurface = 0
  6686. hite.BottomSurface = 0
  6687. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6688. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6689. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6690. 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)
  6691. coroutine.resume(coroutine.create(function()
  6692. for i = 0, 2 do
  6693. swait()
  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(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  6695. 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)
  6696. 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)
  6697. end
  6698. end))
  6699. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6700. game:GetService("Debris"):AddItem(hite, 5)
  6701. posit = posit + 2
  6702. end
  6703. for i = 0,1,0.1 do
  6704. swait()
  6705. 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)
  6706. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6707. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6708. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6709. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6710. 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)
  6711. 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)
  6712. end
  6713. hum.WalkSpeed = storehumanoidWS
  6714. attack = false
  6715. end
  6716.  
  6717. function EquinoxOrbs()
  6718. hum.WalkSpeed = 0
  6719. attack = true
  6720. local radm = math.random(1,3)
  6721. if radm == 1 then
  6722. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6723. elseif radm == 2 then
  6724. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6725. elseif radm == 3 then
  6726. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6727. end
  6728. for i = 0,1,0.1 do
  6729. swait()
  6730. 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)
  6731. 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)
  6732. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6733. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6734. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6735. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6736. end
  6737. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6738. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6739. for i = 0, 24 do
  6740. 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"))
  6741. end
  6742. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6743. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6744. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6745. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6746. for i = 0,4,0.1 do
  6747. swait()
  6748. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6749. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6750. CreateMesh(dis,"Sphere",1,1,1)
  6751. dis.Anchored = true
  6752. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6753. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6754. CreateMesh(dis2,"Sphere",1,1,1)
  6755. dis2.Anchored = true
  6756. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6757. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6758. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6759. coroutine.resume(coroutine.create(function()
  6760. swait(60)
  6761. dis.Transparency = 1
  6762. dis2.Transparency = 1
  6763. coroutine.resume(coroutine.create(function()
  6764. for i = 0, 19 do
  6765. swait()
  6766. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6767. end
  6768. hum.CameraOffset = vt(0,0,0)
  6769. end))
  6770. coroutine.resume(coroutine.create(function()
  6771. local eff = Instance.new("ParticleEmitter",dis)
  6772. eff.Texture = "rbxassetid://2273224484"
  6773. eff.LightEmission = 1
  6774. eff.Color = ColorSequence.new(dis.Color)
  6775. eff.Rate = 500000
  6776. eff.Lifetime = NumberRange.new(0.5,2)
  6777. 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)})
  6778. 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)})
  6779. eff.Speed = NumberRange.new(50,450)
  6780. eff.Drag = 5
  6781. eff.Rotation = NumberRange.new(-500,500)
  6782. eff.VelocitySpread = 9000
  6783. eff.RotSpeed = NumberRange.new(-50,50)
  6784. local eff2 = eff:Clone()
  6785. eff2.Parent = dis2
  6786. eff2.LightEmission = 0
  6787. eff2.Color = ColorSequence.new(dis2.Color)
  6788. wait(0.25)
  6789. eff.Enabled = false
  6790. eff2.Enabled = false
  6791. end))
  6792. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6793. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6794. for i = 0, 2 do
  6795. 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)
  6796. 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)
  6797. end
  6798. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6799. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6800. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6801. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6802. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6803. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6804. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6805. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6806. end))
  6807. game:GetService("Debris"):AddItem(dis, 5)
  6808. game:GetService("Debris"):AddItem(dis2, 5)
  6809. 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)
  6810. 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)
  6811. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6812. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6813. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6814. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6815. end
  6816. attack = false
  6817. hum.WalkSpeed = storehumanoidWS
  6818. end
  6819. function FallenDEMISE()
  6820. attack = true
  6821. hum.WalkSpeed = 0
  6822. local keptcolor = MAINRUINCOLOR
  6823. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6824. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6825. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6826. for i = 0, 15, 0.1 do
  6827. swait()
  6828. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6829. 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)))
  6830. local at1 = Instance.new("Attachment",dis)
  6831. at1.Position = vt(-25000,0,0)
  6832. local at2 = Instance.new("Attachment",dis)
  6833. at2.Position = vt(25000,0,0)
  6834. local trl = Instance.new('Trail',dis)
  6835. trl.Attachment0 = at1
  6836. trl.FaceCamera = true
  6837. trl.Attachment1 = at2
  6838. trl.Texture = "rbxassetid://1049219073"
  6839. trl.LightEmission = 1
  6840. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6841. trl.Color = ColorSequence.new(dis.Color)
  6842. trl.Lifetime = 5
  6843. local bv = Instance.new("BodyVelocity")
  6844. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6845. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6846. bv.Parent = dis
  6847. game:GetService("Debris"):AddItem(dis, 1)
  6848. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6849. 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"))
  6850. 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"))
  6851. 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)
  6852. 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)
  6853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6855. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6856. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6857. end
  6858. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6859. for i = 0, 30, 0.1 do
  6860. swait()
  6861. coroutine.resume(coroutine.create(function()
  6862. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6863. if v:FindFirstChild('Head') then
  6864. dmg(v)
  6865. end
  6866. end
  6867. end))
  6868. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6869. 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)))
  6870. local at1 = Instance.new("Attachment",dis)
  6871. at1.Position = vt(-50000,0,0)
  6872. local at2 = Instance.new("Attachment",dis)
  6873. at2.Position = vt(50000,0,0)
  6874. local trl = Instance.new('Trail',dis)
  6875. trl.Attachment0 = at1
  6876. trl.FaceCamera = true
  6877. trl.Attachment1 = at2
  6878. trl.Texture = "rbxassetid://1049219073"
  6879. trl.LightEmission = 1
  6880. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6881. trl.Color = ColorSequence.new(dis.Color)
  6882. trl.Lifetime = 10
  6883. local bv = Instance.new("BodyVelocity")
  6884. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6885. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6886. bv.Parent = dis
  6887. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6888. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6889. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6890. 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"))
  6891. 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"))
  6892. 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"))
  6893. 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"))
  6894. for i = 0, 2 do
  6895. 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)
  6896. end
  6897. 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)
  6898. 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)
  6899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6901. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6902. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6903. end
  6904. attack = false
  6905. hum.WalkSpeed = storehumanoidWS
  6906. end
  6907.  
  6908. function SpeedDrop()
  6909. attack = true
  6910. hum.WalkSpeed = 0
  6911. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6912. local poste = 3
  6913. local rotation = 0
  6914. local rate = 0
  6915. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6916. for i = 0, 124 do
  6917. swait()
  6918. rotation = rotation + rate
  6919. poste = poste + 0.1
  6920. rate = rate + 0.1
  6921. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6922. 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)
  6923. 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)
  6924. 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)
  6925. 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)
  6926. 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)
  6927. 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)
  6928. 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)
  6929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6930. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6932. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6933. end
  6934. CameraEnshaking(3,7)
  6935. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6936. local loc = Instance.new("Part", char)
  6937. loc.BrickColor = MAINRUINCOLOR
  6938. loc.CanCollide = false
  6939. loc.FormFactor = 3
  6940. loc.Name = "Ring"
  6941. loc.Material = "Neon"
  6942. loc.Size = Vector3.new(1, 1, 1)
  6943. loc.Transparency = 1
  6944. loc.TopSurface = 0
  6945. loc.BottomSurface = 0
  6946. loc.Anchored = true
  6947. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6948. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6949. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6950. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6951. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6952. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6953. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6954. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6955. coroutine.resume(coroutine.create(function()
  6956. local eff = Instance.new("ParticleEmitter",loc)
  6957. eff.Texture = "rbxassetid://363275192"
  6958. eff.LightEmission = 0.95
  6959. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6960. eff.Rate = 10000
  6961. eff.Lifetime = NumberRange.new(1)
  6962. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6963. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6964. eff.Speed = NumberRange.new(100,500)
  6965. eff.Drag = 5
  6966. eff.Rotation = NumberRange.new(-500,500)
  6967. eff.VelocitySpread = 9000
  6968. eff.RotSpeed = NumberRange.new(-50,50)
  6969. wait(0.5)
  6970. eff.Enabled = false
  6971. end))
  6972. for i = 0, 49 do
  6973. 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)
  6974. end
  6975. for i = 0, 9 do
  6976. 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)
  6977. end
  6978. game:GetService("Debris"):AddItem(loc, 5)
  6979. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6980. hum.WalkSpeed = storehumanoidWS
  6981. attack = false
  6982. end
  6983.  
  6984. function cutesigh()
  6985. attack = true
  6986. hum.WalkSpeed = 0
  6987. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6988. local blush = Instance.new("Decal",hed)
  6989. blush.Texture = "rbxassetid://898404027"
  6990. blush.Face = "Front"
  6991. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6992. for i = 0, 9, 0.1 do
  6993. swait()
  6994. 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)
  6995. 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)
  6996. 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)
  6997. 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)
  6998. 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)
  6999. 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)
  7000. end
  7001. coroutine.resume(coroutine.create(function()
  7002. for i = 0, 49 do
  7003. swait()
  7004. blush.Transparency = blush.Transparency + 0.02
  7005. end
  7006. blush:Destroy()
  7007. end))
  7008. hum.WalkSpeed = storehumanoidWS
  7009. attack = false
  7010. end
  7011.  
  7012. function smiter()
  7013. local targetted = nil
  7014. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7015. targetted = mouse.Target.Parent
  7016. end
  7017. if targetted ~= nil then
  7018. RootPart.CFrame = FaceMouse()[1]
  7019. attack = true
  7020. local radm = math.random(1,3)
  7021. if radm == 1 then
  7022. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7023. elseif radm == 2 then
  7024. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7025. elseif radm == 3 then
  7026. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7027. end
  7028. hum.WalkSpeed = 0
  7029. coroutine.resume(coroutine.create(function()
  7030. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7031. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7032. local vel = Instance.new("BodyPosition", targetted.Head)
  7033. vel.P = 12500
  7034. vel.D = 1000
  7035. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7036. vel.position = targetted.Head.CFrame.p
  7037. end))
  7038. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7039. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7040. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7041. for i = 0,4,0.1 do
  7042. swait()
  7043. 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)
  7044. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7045. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7046. 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)
  7047. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7048. 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)
  7049. 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)
  7050. end
  7051. coroutine.resume(coroutine.create(function()
  7052. CameraEnshaking(6,5)
  7053. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7054. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7055. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7056. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7057. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7058. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7059. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7060. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7061. coroutine.resume(coroutine.create(function()
  7062. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7063. eff.Texture = "rbxassetid://2273224484"
  7064. eff.LightEmission = 1
  7065. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7066. eff.Rate = 500000
  7067. eff.Lifetime = NumberRange.new(0.5,2)
  7068. 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)})
  7069. 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)})
  7070. eff.Speed = NumberRange.new(20,250)
  7071. eff.Drag = 5
  7072. eff.Rotation = NumberRange.new(-500,500)
  7073. eff.VelocitySpread = 9000
  7074. eff.RotSpeed = NumberRange.new(-50,50)
  7075. wait(0.25)
  7076. eff.Enabled = false
  7077. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7078. eff.Texture = "rbxassetid://363275192"
  7079. eff.LightEmission = 0.95
  7080. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7081. eff.Rate = 10000
  7082. eff.Lifetime = NumberRange.new(1.5)
  7083. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7084. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7085. eff.Speed = NumberRange.new(25,150)
  7086. eff.Drag = 5
  7087. eff.Rotation = NumberRange.new(-500,500)
  7088. eff.VelocitySpread = 9000
  7089. eff.RotSpeed = NumberRange.new(-50,50)
  7090. local eff2 = eff:Clone()
  7091. eff2.Parent = targetted.Head
  7092. eff2.Texture = "rbxassetid://284205403"
  7093. eff2.Rate = 10000
  7094. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7095. eff2.Drag = 5
  7096. eff2.Rotation = NumberRange.new(-500,500)
  7097. eff2.VelocitySpread = 9000
  7098. wait(0.5)
  7099. eff2.Enabled = false
  7100. eff.Enabled = false
  7101. end))
  7102. for i = 0, 9 do
  7103. 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)
  7104. end
  7105. for i = 0, 49 do
  7106. local rsiz = math.random(10,50)
  7107. 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)
  7108. end
  7109. game:GetService("Debris"):AddItem(vel,1)
  7110. dmg(targetted)
  7111. end))
  7112. for i = 0,1,0.1 do
  7113. swait()
  7114. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7115. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7116. 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)
  7117. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7118. 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)
  7119. 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)
  7120. end
  7121. attack = false
  7122. hum.WalkSpeed = storehumanoidWS
  7123. end
  7124. end
  7125.  
  7126. function shytaunty()
  7127. attack = true
  7128. hum.WalkSpeed = 0
  7129. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7130. local blush = Instance.new("Decal",hed)
  7131. blush.Texture = "rbxassetid://898404027"
  7132. blush.Face = "Front"
  7133. for i = 0, 13, 0.1 do
  7134. swait()
  7135. 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)
  7136. 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)
  7137. 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)
  7138. 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)
  7139. 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)
  7140. 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)
  7141. end
  7142. coroutine.resume(coroutine.create(function()
  7143. for i = 0, 49 do
  7144. swait()
  7145. blush.Transparency = blush.Transparency + 0.02
  7146. end
  7147. blush:Destroy()
  7148. end))
  7149. hum.WalkSpeed = storehumanoidWS
  7150. attack = false
  7151. end
  7152.  
  7153. function PureBomb()
  7154. attack = true
  7155. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7156. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7157. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7158. local orb = Instance.new("Part", char)
  7159. orb.Anchored = true
  7160. orb.BrickColor = BrickColor.new("Toothpaste")
  7161. orb.CanCollide = false
  7162. orb.FormFactor = 3
  7163. orb.Name = "Ring"
  7164. orb.Material = "Neon"
  7165. orb.Size = Vector3.new(1, 1, 1)
  7166. orb.Transparency = 0
  7167. orb.TopSurface = 0
  7168. orb.BottomSurface = 0
  7169. local orbm = Instance.new("SpecialMesh", orb)
  7170. orbm.MeshType = "Sphere"
  7171. orbm.Name = "SizeMesh"
  7172. orbm.Scale = vt(0,0,0)
  7173. local scaled = 0.1
  7174. local posid = 0
  7175. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7176. for i = 0, 5, 0.1 do
  7177. swait()
  7178. scaled = scaled - 0.001
  7179. posid = posid - scaled
  7180. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7181. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7182. 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)
  7183. 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)
  7184. 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)
  7185. 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)
  7186. 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)
  7187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7189. 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)
  7190. end
  7191. for i = 0, 2, 0.1 do
  7192. swait()
  7193. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7194. 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)
  7195. 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)
  7196. 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)
  7197. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7198. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7199. 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)
  7200. end
  7201. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7202. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7203. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7204. coroutine.resume(coroutine.create(function()
  7205. orb.Anchored = false
  7206. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7207. local a = Instance.new("Part",workspace)
  7208. a.Name = "Direction"
  7209. a.Anchored = true
  7210. a.BrickColor = bc("Bright red")
  7211. a.Material = "Neon"
  7212. a.Transparency = 1
  7213. a.CanCollide = false
  7214. local ray = Ray.new(
  7215. orb.CFrame.p, -- origin
  7216. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7217. )
  7218. local ignore = orb
  7219. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7220. a.BottomSurface = 10
  7221. a.TopSurface = 10
  7222. local distance = (orb.CFrame.p - position).magnitude
  7223. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7224. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7225. orb.CFrame = a.CFrame
  7226. a:Destroy()
  7227. local bv = Instance.new("BodyVelocity")
  7228. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7229. bv.velocity = orb.CFrame.lookVector*125
  7230. bv.Parent = orb
  7231. local hitted = false
  7232. game:GetService("Debris"):AddItem(orb, 15)
  7233. wait()
  7234. local hit =orb.Touched:connect(function(hit)
  7235. if hitted == false then
  7236. hitted = true
  7237. CameraEnshaking(10,2.5)
  7238. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7239. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7240. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7241. for i = 0, 49 do
  7242. 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)
  7243. end
  7244. local eff = Instance.new("ParticleEmitter",orb)
  7245. eff.Texture = "rbxassetid://2273224484"
  7246. eff.LightEmission = 1
  7247. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7248. eff.Rate = 500000
  7249. eff.Lifetime = NumberRange.new(0.5,2)
  7250. 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)})
  7251. 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)})
  7252. eff.Speed = NumberRange.new(20,250)
  7253. eff.Drag = 5
  7254. eff.Rotation = NumberRange.new(-500,500)
  7255. eff.VelocitySpread = 9000
  7256. eff.RotSpeed = NumberRange.new(-50,50)
  7257. coroutine.resume(coroutine.create(function()
  7258. wait(0.25)
  7259. eff.Enabled = false
  7260. end))
  7261. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7262. for i = 0, 9 do
  7263. 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)
  7264. 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)
  7265. end
  7266. orb.Anchored = true
  7267. orb.Transparency = 1
  7268. local eff = Instance.new("ParticleEmitter",orb)
  7269. eff.Texture = "rbxassetid://2273224484"
  7270. eff.LightEmission = 1
  7271. eff.Color = ColorSequence.new(Color3.new(M))
  7272. eff.Rate = 500000
  7273. eff.Lifetime = NumberRange.new(0.5,2)
  7274. 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)})
  7275. 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)})
  7276. eff.Speed = NumberRange.new(20,250)
  7277. eff.Drag = 5
  7278. eff.Rotation = NumberRange.new(-500,500)
  7279. eff.VelocitySpread = 9000
  7280. eff.RotSpeed = NumberRange.new(-50,50)
  7281. coroutine.resume(coroutine.create(function()
  7282. wait(1)
  7283. eff.Enabled = false
  7284. end))
  7285. wait(8)
  7286. orb:Destroy()
  7287. end
  7288. end)
  7289. end))
  7290. for i = 0, 1, 0.1 do
  7291. swait()
  7292. 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)
  7293. 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)
  7294. 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)
  7295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7296. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7297. 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)
  7298. end
  7299. attack = false
  7300. end
  7301.  
  7302.  
  7303. function BeamOfDeath()
  7304. coroutine.resume(coroutine.create(function()
  7305. attack = true
  7306. hum.WalkSpeed = 0
  7307. for i = 0, 11, 0.1 do
  7308. swait()
  7309. 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)
  7310. 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)
  7311. 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)
  7312. 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)
  7313. 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)
  7314. 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)
  7315. end
  7316. for i = 0, 1, 0.1 do
  7317. swait()
  7318. 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)
  7319. 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)
  7320. 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)
  7321. 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)
  7322. 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)
  7323. 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)
  7324. end
  7325. hum.WalkSpeed = storehumanoidWS
  7326. attack = false
  7327. end))
  7328. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7329. local radm = math.random(1,3)
  7330. if radm == 1 then
  7331. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7332. elseif radm == 2 then
  7333. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7334. elseif radm == 3 then
  7335. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7336. end
  7337. local keptcolor = MAINRUINCOLOR
  7338. local orb = Instance.new("Part", char)
  7339. orb.BrickColor = keptcolor
  7340. orb.CanCollide = false
  7341. orb.FormFactor = 3
  7342. orb.Name = "Ring"
  7343. orb.Material = "Neon"
  7344. orb.Size = Vector3.new(1, 1, 1)
  7345. orb.Transparency = 1
  7346. orb.TopSurface = 0
  7347. orb.BottomSurface = 0
  7348. local orbm = Instance.new("SpecialMesh", orb)
  7349. orbm.MeshType = "Sphere"
  7350. orbm.Name = "SizeMesh"
  7351. orbm.Scale = vt(22.5,10000,22.5)
  7352. orb.CFrame = mouse.Hit
  7353. orb.Anchored = true
  7354. orb.Orientation = vt(0,0,0)
  7355. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7356. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7357. coroutine.resume(coroutine.create(function()
  7358. coroutine.resume(coroutine.create(function()
  7359. for i = 0, 175 do
  7360. swait()
  7361. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7362. orb.Transparency = orb.Transparency - 0.005
  7363. end
  7364. end))
  7365. wait(2)
  7366. coroutine.resume(coroutine.create(function()
  7367. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7368. if hfr ~= nil then
  7369. for i = 0, 24.5 do
  7370. local deb = Instance.new("Part", char)
  7371. deb.Anchored = true
  7372. deb.CanCollide = false
  7373. deb.FormFactor = 3
  7374. deb.Name = "Ring"
  7375. deb.Material = hitfloor.Material
  7376. deb.Color = hitfloor.Color
  7377. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7378. deb.Transparency = 0
  7379. deb.TopSurface = 0
  7380. deb.BottomSurface = 0
  7381. 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)))
  7382. local deb2 = Instance.new("Part", char)
  7383. deb2.CanCollide = false
  7384. deb2.FormFactor = 3
  7385. deb2.Name = "Ring"
  7386. deb2.Material = hitfloor.Material
  7387. deb2.Color = hitfloor.Color
  7388. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7389. deb2.Transparency = 0
  7390. deb2.TopSurface = 0
  7391. deb2.BottomSurface = 0
  7392. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7393. 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)))
  7394. local eff = Instance.new("ParticleEmitter",deb)
  7395. eff.Texture = "rbxassetid://363275192"
  7396. eff.LightEmission = 0.95
  7397. eff.Color = ColorSequence.new(keptcolor.Color)
  7398. eff.Rate = 100
  7399. eff.Lifetime = NumberRange.new(1)
  7400. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7401. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7402. eff.Speed = NumberRange.new(0,5)
  7403. eff.Rotation = NumberRange.new(-500,500)
  7404. eff.VelocitySpread = 9000
  7405. eff.RotSpeed = NumberRange.new(-10,10)
  7406. local at1 = Instance.new('Attachment',deb2)
  7407. at1.Position = vt(0,15,0)
  7408. local at2 = Instance.new('Attachment',deb2)
  7409. at2.Position = vt(0,-15,0)
  7410. local tl = Instance.new('Trail',deb2)
  7411. tl.Attachment0 = at1
  7412. tl.Attachment1 = at2
  7413. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7414. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7415. tl.Lifetime = 1
  7416. game:GetService("Debris"):AddItem(deb,30)
  7417. game:GetService("Debris"):AddItem(deb2,30)
  7418. coroutine.resume(coroutine.create(function()
  7419. wait(15)
  7420. eff.Enabled = false
  7421. for i = 0, 49 do
  7422. swait()
  7423. deb.Transparency = deb.Transparency + 0.02
  7424. end
  7425. wait(1)
  7426. deb:Destroy()
  7427. end))
  7428. end
  7429. end
  7430. end))
  7431. for i = 0, 199 do
  7432. swait(1.5)
  7433. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7434. if v:FindFirstChild('Head') then
  7435. dmg(v)
  7436. end
  7437. end
  7438. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  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),5,5,5,keptcolor)
  7440. 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)
  7441. 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)
  7442. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7443. end
  7444. orb:Destroy()
  7445. end))
  7446. end
  7447.  
  7448. function Beams()
  7449. attack = true
  7450. hum.WalkSpeed = 0
  7451. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7452. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7453. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7454. local keptcolor = MAINRUINCOLOR
  7455. coroutine.resume(coroutine.create(function()
  7456. for i = 0, 96 do
  7457. swait(5)
  7458. local orb = Instance.new("Part", char)
  7459. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7460. orb.BrickColor = keptcolor
  7461. orb.CanCollide = false
  7462. orb.FormFactor = 3
  7463. orb.Name = "Ring"
  7464. orb.Material = "Neon"
  7465. orb.Size = Vector3.new(1, 1, 1)
  7466. orb.Transparency = 0
  7467. orb.TopSurface = 0
  7468. orb.BottomSurface = 0
  7469. orb.Anchored = true
  7470. local orbm = Instance.new("SpecialMesh", orb)
  7471. orbm.MeshType = "Sphere"
  7472. orbm.Name = "SizeMesh"
  7473. orbm.Scale = vt(1.25,1.25,1.25)
  7474. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7475. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7476. coroutine.resume(coroutine.create(function()
  7477. wait(0.5)
  7478. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7479. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7480. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7481. orb.Transparency = 1
  7482. local a = Instance.new("Part",char)
  7483. a.Name = "Direction"
  7484. a.Anchored = true
  7485. a.BrickColor = keptcolor
  7486. a.Material = "Neon"
  7487. a.Transparency = 0.25
  7488. a.Shape = "Cylinder"
  7489. local ht = Instance.new("Part",char)
  7490. ht.Name = "DirectionHit"
  7491. ht.Anchored = true
  7492. ht.BrickColor = keptcolor
  7493. ht.CanCollide = false
  7494. ht.Transparency = 1
  7495. ht.Size = vt(0.1,0.1,0.1)
  7496. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7497. a.CanCollide = false
  7498. local ray = Ray.new(
  7499. orb.CFrame.p, -- origin
  7500. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7501. )
  7502. local ignore = char
  7503. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7504. a.BottomSurface = 10
  7505. a.TopSurface = 10
  7506. local distance = (orb.CFrame.p - position).magnitude
  7507. a.Size = Vector3.new(distance,1,1)
  7508. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7509. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7510. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7511. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7512. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7513. coroutine.resume(coroutine.create(function()
  7514. local eff = Instance.new("ParticleEmitter",ht)
  7515. eff.Texture = "rbxassetid://284205403"
  7516. eff.LightEmission = 0.95
  7517. eff.Color = ColorSequence.new(keptcolor.Color)
  7518. eff.Rate = 500
  7519. eff.Lifetime = NumberRange.new(0.5)
  7520. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7521. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7522. eff.Speed = NumberRange.new(10,50)
  7523. eff.Drag = 5
  7524. eff.Rotation = NumberRange.new(-500,500)
  7525. eff.VelocitySpread = 9000
  7526. eff.RotSpeed = NumberRange.new(-500,500)
  7527. wait(0.25)
  7528. eff.Enabled = false
  7529. end))
  7530. for i = 0, 4 do
  7531. 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)
  7532. 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)
  7533. local rsiz = math.random(10,30)
  7534. 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)
  7535. end
  7536. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7537. local msh = Instance.new("SpecialMesh",a)
  7538. msh.MeshType = "Cylinder"
  7539. msh.Scale = vt(1,1,1)
  7540. for i = 0, 49 do
  7541. swait()
  7542. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7543. a.Transparency = a.Transparency + 0.02
  7544. end
  7545. orb:Destroy()
  7546. a:Destroy()
  7547. ht:Destroy()
  7548. end))
  7549. game:GetService("Debris"):AddItem(orb, 10)
  7550. end
  7551. end))
  7552. for i = 0,6,0.1 do
  7553. swait()
  7554. 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)
  7555. 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)
  7556. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7557. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7558. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7559. 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)
  7560. 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)
  7561. end
  7562. hum.WalkSpeed = storehumanoidWS
  7563. attack = false
  7564. end
  7565.  
  7566. function CalamityTrans()
  7567. attack = true
  7568. rainbowmode = false
  7569. chaosmode = false
  7570. ModeOfGlitch = 8889
  7571. hum.WalkSpeed = 0
  7572. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7573. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7574. elocacenter.Anchored = true
  7575. elocacenter.CFrame = root.CFrame
  7576. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7577. eloca1.Anchored = true
  7578. eloca1.CFrame = elocacenter.CFrame
  7579. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7580. eloca2.Anchored = true
  7581. eloca2.CFrame = elocacenter.CFrame
  7582. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7583. eloca3.Anchored = true
  7584. eloca3.CFrame = elocacenter.CFrame
  7585. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7586. eloca4.Anchored = true
  7587. eloca4.CFrame = elocacenter.CFrame
  7588. local lookavec = 0
  7589. local speeds = 0
  7590. CameraEnshaking(3,2.5)
  7591. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7592. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7593. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7594. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7595. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7596. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7597. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7598. for i = 0, 5, 0.1 do
  7599. swait()
  7600. ---
  7601. lookavec = lookavec + 1
  7602. speeds = speeds + 10
  7603. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7604. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7605. 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)
  7606. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7607. 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)
  7608. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7609. 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)
  7610. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7611. 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)
  7612. ---
  7613. 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)
  7614. 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)
  7615. 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)
  7616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7617. 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)
  7618. 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)
  7619. end
  7620. for i = 0, 5, 0.1 do
  7621. swait()
  7622. ---
  7623. speeds = speeds + 10
  7624. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7625. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7626. 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)
  7627. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7628. 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)
  7629. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7630. 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)
  7631. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7632. 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)
  7633. ---
  7634. 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)
  7635. 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)
  7636. 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)
  7637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7638. 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)
  7639. 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)
  7640. end
  7641. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7642. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7643. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7644. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7645. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7646. CameraEnshaking(1,3)
  7647. for i = 0, 24 do
  7648. 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)
  7649. 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)
  7650. 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)
  7651. 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)
  7652. end
  7653. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7654. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7655. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7656. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7657. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7658. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7659. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7660. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7661. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7662. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7663. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7664. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7665. for i = 0, 5, 0.1 do
  7666. swait()
  7667. ---
  7668. lookavec = lookavec - 1
  7669. speeds = speeds + 10
  7670. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7671. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7672. 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)
  7673. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7674. 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)
  7675. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7676. 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)
  7677. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7678. 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)
  7679. ---
  7680. 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)
  7681. 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)
  7682. 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)
  7683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7684. 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)
  7685. 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)
  7686. end
  7687. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7688. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7689. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7690. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7691. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7692. for i = 0, 49 do
  7693. 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)
  7694. 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)
  7695. end
  7696. CameraEnshaking(5,6)
  7697. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7698. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7699. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7700. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7701. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7702. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7703. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7704. storehumanoidWS = 100
  7705. hum.WalkSpeed = 100
  7706. rainbowmode = false
  7707. chaosmode = false
  7708. tl1.Enabled = true
  7709. tl2.Enabled = true
  7710. tl3.Enabled = true
  7711. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7712. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7713. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7714. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7715. for i, v in pairs(mw2:GetChildren()) do
  7716. if v:IsA("Part") then
  7717. v.BrickColor = MAINRUINCOLOR
  7718. v.Material = "Neon"
  7719. end
  7720. end
  7721. for i, v in pairs(mw1:GetChildren()) do
  7722. if v:IsA("Part") then
  7723. v.Transparency = 0
  7724. v.BrickColor = MAINRUINCOLOR
  7725. v.Material = "Neon"
  7726. end
  7727. end
  7728. for i, v in pairs(m:GetChildren()) do
  7729. if v:IsA("Part") then
  7730. v.Color = Color3.new(0.5,0,1)
  7731. v.Material = "Neon"
  7732. end
  7733. end
  7734. for i, v in pairs(m2:GetChildren()) do
  7735. if v:IsA("Part") then
  7736. v.Color = Color3.new(0.25,0,1)
  7737. v.Material = "Neon"
  7738. end
  7739. end
  7740. for i, v in pairs(m3:GetChildren()) do
  7741. if v:IsA("Part") then
  7742. v.Color = Color3.new(0.45,0,1)
  7743. v.Material = "Neon"
  7744. end
  7745. end
  7746. for i, v in pairs(extrawingmod1:GetChildren()) do
  7747. if v:IsA("Part") then
  7748. v.Transparency = 0.75
  7749. v.Color = Color3.new(0.25,0,1)
  7750. v.Material = "Neon"
  7751. end
  7752. end
  7753. for i, v in pairs(extrawingmod2:GetChildren()) do
  7754. if v:IsA("Part") then
  7755. v.Transparency = 0.75
  7756. v.Color = Color3.new(0.5,0,1)
  7757. v.Material = "Neon"
  7758. end
  7759. end
  7760. attack = false
  7761. end
  7762.  
  7763. function InsaneTrans()
  7764. attack = true
  7765. rainbowmode = false
  7766. chaosmode = false
  7767. ModeOfGlitch = 8889
  7768. hum.WalkSpeed = 0
  7769. newThemeCust("rbxassetid://183142252",1,1,10)
  7770. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7771. elocacenter.Anchored = true
  7772. elocacenter.CFrame = root.CFrame
  7773. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7774. eloca1.Anchored = true
  7775. eloca1.CFrame = elocacenter.CFrame
  7776. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7777. eloca2.Anchored = true
  7778. eloca2.CFrame = elocacenter.CFrame
  7779. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7780. eloca3.Anchored = true
  7781. eloca3.CFrame = elocacenter.CFrame
  7782. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7783. eloca4.Anchored = true
  7784. eloca4.CFrame = elocacenter.CFrame
  7785. local lookavec = 0
  7786. local speeds = 0
  7787. CameraEnshaking(3,2.5)
  7788. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7789. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7790. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7791. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7792. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7793. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7794. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7795. for i = 0, 5, 0.1 do
  7796. swait()
  7797. ---
  7798. lookavec = lookavec + 1
  7799. speeds = speeds + 10
  7800. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7801. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7802. 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)
  7803. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7804. 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)
  7805. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7806. 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)
  7807. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7808. 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)
  7809. ---
  7810. 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)
  7811. 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)
  7812. 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)
  7813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7814. 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)
  7815. 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)
  7816. end
  7817. for i = 0, 5, 0.1 do
  7818. swait()
  7819. ---
  7820. speeds = speeds + 10
  7821. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7822. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7823. 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)
  7824. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7825. 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)
  7826. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7827. 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)
  7828. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7829. 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)
  7830. ---
  7831. 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)
  7832. 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)
  7833. 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)
  7834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7835. 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)
  7836. 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)
  7837. end
  7838. MAINRUINCOLOR = BrickColor.new("Really black")
  7839. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7840. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7841. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7842. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7843. CameraEnshaking(1,3)
  7844. for i = 0, 24 do
  7845. 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)
  7846. 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)
  7847. 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)
  7848. 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)
  7849. end
  7850. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7851. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7852. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7853. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7854. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7855. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7856. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7857. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7858. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7859. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7860. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7861. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7862. for i = 0, 5, 0.1 do
  7863. swait()
  7864. ---
  7865. lookavec = lookavec - 1
  7866. speeds = speeds + 10
  7867. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7868. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7869. 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)
  7870. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7871. 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)
  7872. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7873. 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)
  7874. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7875. 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)
  7876. ---
  7877. 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)
  7878. 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)
  7879. 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)
  7880. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7881. 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)
  7882. 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)
  7883. end
  7884. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7885. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7886. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7887. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7888. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7889. for i = 0, 49 do
  7890. 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)
  7891. 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)
  7892. end
  7893. CameraEnshaking(5,6)
  7894. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7895. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7896. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7897. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7898. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7899. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7900. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7901. storehumanoidWS = 100
  7902. hum.WalkSpeed = 100
  7903. rainbowmode = false
  7904. chaosmode = false
  7905. tl1.Enabled = true
  7906. tl2.Enabled = true
  7907. tl3.Enabled = true
  7908. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7909. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7910. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7911. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7912. for i, v in pairs(mw2:GetChildren()) do
  7913. if v:IsA("Part") then
  7914. v.BrickColor = MAINRUINCOLOR
  7915. v.Material = "Neon"
  7916. end
  7917. end
  7918. for i, v in pairs(mw1:GetChildren()) do
  7919. if v:IsA("Part") then
  7920. v.Transparency = 0
  7921. v.BrickColor = MAINRUINCOLOR
  7922. v.Material = "Neon"
  7923. end
  7924. end
  7925. for i, v in pairs(m:GetChildren()) do
  7926. if v:IsA("Part") then
  7927. v.Color = Color3.new(170,0,0)
  7928. v.Material = "Neon"
  7929. end
  7930. end
  7931. for i, v in pairs(m2:GetChildren()) do
  7932. if v:IsA("Part") then
  7933. v.Color = Color3.new(0,0,0)
  7934. v.Material = "Neon"
  7935. end
  7936. end
  7937. for i, v in pairs(m3:GetChildren()) do
  7938. if v:IsA("Part") then
  7939. v.Color = Color3.new(0,0,0)
  7940. v.Material = "Neon"
  7941. end
  7942. end
  7943. for i, v in pairs(extrawingmod1:GetChildren()) do
  7944. if v:IsA("Part") then
  7945. v.Transparency = 0.75
  7946. v.Color = Color3.new(0,0,0)
  7947. v.Material = "Neon"
  7948. end
  7949. end
  7950. for i, v in pairs(extrawingmod2:GetChildren()) do
  7951. if v:IsA("Part") then
  7952. v.Transparency = 0.75
  7953. v.Color = Color3.new(0,0,0)
  7954. v.Material = "Neon"
  7955. end
  7956. end
  7957. attack = false
  7958. end
  7959.  
  7960. function GleamingBeam()
  7961. attack = true
  7962. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7963. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7964. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7965. local rsiz = math.random(1,15)
  7966. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7967. hb.Anchored = true
  7968. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7969. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7970. for i = 0, 16, 0.1 do
  7971. swait()
  7972. rsiz = math.random(5,15)
  7973. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7974. 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)
  7975. 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)
  7976. 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)
  7977. 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)
  7978. 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)
  7979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7981. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7982. end
  7983. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7984. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7985. for i = 0, 2 do
  7986. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7987. end
  7988. 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)
  7989. 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)
  7990. 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)
  7991. for i = 0, 49 do
  7992. local rsiza = math.random(1,15)
  7993. 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)
  7994. end
  7995. local a = Instance.new("Part",Character)
  7996. a.Name = "Direction"
  7997. a.Anchored = true
  7998. a.BrickColor = MAINRUINCOLOR
  7999. a.Material = "Neon"
  8000. a.Transparency = 0
  8001. a.Shape = "Cylinder"
  8002. a.CanCollide = false
  8003. local ba = Instance.new("Part",Character)
  8004. ba.Name = "HitDirect"
  8005. ba.Anchored = true
  8006. ba.BrickColor = bc("Cool yellow")
  8007. ba.Material = "Neon"
  8008. ba.Transparency = 1
  8009. ba.CanCollide = false
  8010. local ray = Ray.new(
  8011. hb.CFrame.p, -- origin
  8012. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8013. )
  8014. local ignore = Character
  8015. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8016. a.BottomSurface = 10
  8017. a.TopSurface = 10
  8018. local distance = (hb.CFrame.p - position).magnitude
  8019. a.Size = Vector3.new(distance, 1, 1)
  8020. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8021. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8022. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8023. local msh = Instance.new("SpecialMesh",a)
  8024. msh.MeshType = "Cylinder"
  8025. msh.Scale = vt(1,4,4)
  8026. game:GetService("Debris"):AddItem(a, 30)
  8027. game:GetService("Debris"):AddItem(ba, 30)
  8028. for i = 0, 25, 0.1 do
  8029. swait()
  8030. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8031. ray = Ray.new(
  8032. hb.CFrame.p, -- origin
  8033. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8034. )
  8035. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8036. distance = (hb.CFrame.p - position).magnitude
  8037. a.Size = Vector3.new(distance, 1, 1)
  8038. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8039. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8040. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8041. rsiz = math.random(5,25)
  8042. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8043. 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)
  8044. for c = 0, 2 do
  8045. 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)
  8046. end
  8047. 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)
  8048. 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)
  8049. 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)
  8050. 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)
  8051. 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)
  8052. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8053. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8054. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8055. end
  8056. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8057. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8058. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8059. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8060. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8061. 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)
  8062. 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)
  8063. 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)
  8064. 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)
  8065. 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)
  8066. 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)
  8067. for i = 0, 49 do
  8068. local rsiza = math.random(1,15)
  8069. 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)
  8070. end
  8071. for i = 0, 49 do
  8072. rsiz = math.random(1,8)
  8073. 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)
  8074. end
  8075. coroutine.resume(coroutine.create(function()
  8076. for i = 0, 99 do
  8077. swait()
  8078. a.Transparency = a.Transparency + 0.01
  8079. end
  8080. a:Destroy()
  8081. ba:Destroy()
  8082. end))
  8083. hb:Destroy()
  8084. attack = false
  8085. end
  8086.  
  8087. function DualGleamingBeam()
  8088. attack = true
  8089. hum.WalkSpeed = 0
  8090. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8091. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8092. local radm = math.random(1,3)
  8093. if radm == 1 then
  8094. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8095. elseif radm == 2 then
  8096. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8097. elseif radm == 3 then
  8098. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8099. end
  8100. local rsiz = math.random(1,15)
  8101. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8102. hb.Anchored = true
  8103. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8104. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8105. hb2.Anchored = true
  8106. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8107. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8108. for i = 0, 14, 0.1 do
  8109. swait()
  8110. rsiz = math.random(5,15)
  8111. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8112. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8113. 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)
  8114. 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)
  8115. 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)
  8116. 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"))
  8117. 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)
  8118. 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)
  8119. 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)
  8120. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8121. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8122. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8123. end
  8124. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8125. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8126. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8127. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8128. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8129. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8130. 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)
  8131. 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)
  8132. 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)
  8133. 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"))
  8134. 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"))
  8135. 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"))
  8136. for i = 0, 49 do
  8137. local rsiza = math.random(1,15)
  8138. 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)
  8139. 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)
  8140. end
  8141. local a = Instance.new("Part",Character)
  8142. a.Name = "Direction"
  8143. a.Anchored = true
  8144. a.BrickColor = MAINRUINCOLOR
  8145. a.Material = "Neon"
  8146. a.Transparency = 0
  8147. a.Shape = "Cylinder"
  8148. a.CanCollide = false
  8149. local a2 = Instance.new("Part",Character)
  8150. a2.Name = "Direction"
  8151. a2.Anchored = true
  8152. a2.BrickColor = MAINRUINCOLOR
  8153. a2.Material = "Neon"
  8154. a2.Transparency = 0
  8155. a2.Shape = "Cylinder"
  8156. a2.CanCollide = false
  8157. local ba = Instance.new("Part",Character)
  8158. ba.Name = "HitDirect"
  8159. ba.Anchored = true
  8160. ba.BrickColor = MAINRUINCOLOR
  8161. ba.Material = "Neon"
  8162. ba.Transparency = 1
  8163. ba.CanCollide = false
  8164. local ba2 = Instance.new("Part",Character)
  8165. ba2.Name = "HitDirect"
  8166. ba2.Anchored = true
  8167. ba2.BrickColor = MAINRUINCOLOR
  8168. ba2.Material = "Neon"
  8169. ba2.Transparency = 1
  8170. ba2.CanCollide = false
  8171. local ray = Ray.new(
  8172. hb.CFrame.p, -- origin
  8173. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8174. )
  8175. local ignore = Character
  8176. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8177. local ray2 = Ray.new(
  8178. hb2.CFrame.p, -- origin
  8179. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8180. )
  8181. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8182. local distance2 = (hb2.CFrame.p - position).magnitude
  8183.  
  8184. a.BottomSurface = 10
  8185. a.TopSurface = 10
  8186. local distance = (hb.CFrame.p - position).magnitude
  8187. a.Size = Vector3.new(distance, 1, 1)
  8188. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8189. a2.BottomSurface = 10
  8190. a2.TopSurface = 10
  8191. a2.Size = Vector3.new(distance2, 1, 1)
  8192. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8193. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8194. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8195. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8196. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8197. local msh = Instance.new("SpecialMesh",a)
  8198. msh.MeshType = "Cylinder"
  8199. msh.Scale = vt(1,4,4)
  8200. local msh2 = Instance.new("SpecialMesh",a2)
  8201. msh2.MeshType = "Cylinder"
  8202. msh2.Scale = vt(1,4,4)
  8203. game:GetService("Debris"):AddItem(a, 30)
  8204. game:GetService("Debris"):AddItem(a2, 30)
  8205. game:GetService("Debris"):AddItem(ba, 30)
  8206. game:GetService("Debris"):AddItem(ba2, 30)
  8207. for i = 0, 20, 0.1 do
  8208. swait()
  8209. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8210. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8211. ray = Ray.new(
  8212. hb.CFrame.p, -- origin
  8213. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8214. )
  8215. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8216. distance = (hb.CFrame.p - position).magnitude
  8217. ray2 = Ray.new(
  8218. hb2.CFrame.p, -- origin
  8219. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8220. )
  8221. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8222. distance2 = (hb2.CFrame.p - position).magnitude
  8223. a.Size = Vector3.new(distance, 1, 1)
  8224. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8225. a2.Size = Vector3.new(distance2, 1, 1)
  8226. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8227. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8228. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8229. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8230. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8231. rsiz = math.random(5,25)
  8232. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8233. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8234. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8235. if v:FindFirstChild('Head') then
  8236. dmg(v)
  8237. end
  8238. end
  8239. coroutine.resume(coroutine.create(function()
  8240. local bx = Instance.new("Part",Character)
  8241. bx.Name = "Location"
  8242. bx.Anchored = true
  8243. bx.BrickColor = MAINRUINCOLOR
  8244. bx.Material = "Neon"
  8245. bx.Transparency = 1
  8246. bx.CanCollide = false
  8247. bx.Position = ba.Position
  8248. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8249. wait(math.random(1,2))
  8250. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8251. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8252. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8253. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8254. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8255. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8256. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8257. if v:FindFirstChild('Head') then
  8258. dmg(v)
  8259. end
  8260. end
  8261. wait(5)
  8262. bx:Destroy()
  8263. end))
  8264. 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)
  8265. 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)
  8266. for c = 0, 2 do
  8267. 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)
  8268. end
  8269. 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)
  8270. 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)
  8271. 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)
  8272. 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)
  8273. 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)
  8274. 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)
  8275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8276. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8277. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8278. end
  8279. for i = 0, 1 do
  8280. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8281. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8282. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8283. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8284. end
  8285. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8286. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8287. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8288. if v:FindFirstChild('Head') then
  8289. dmg(v)
  8290. end
  8291. end
  8292. 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)
  8293. 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)
  8294. 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)
  8295. 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)
  8296. 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)
  8297. 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)
  8298. 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"))
  8299. 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"))
  8300. 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"))
  8301. for i = 0, 49 do
  8302. local rsiza = math.random(1,15)
  8303. 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)
  8304. 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)
  8305. end
  8306. for i = 0, 49 do
  8307. rsiz = math.random(1,8)
  8308. 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)
  8309. end
  8310. coroutine.resume(coroutine.create(function()
  8311. for i = 0, 99 do
  8312. swait()
  8313. a.Transparency = a.Transparency + 0.01
  8314. a2.Transparency = a2.Transparency + 0.01
  8315. end
  8316. a:Destroy()
  8317. ba:Destroy()
  8318. a2:Destroy()
  8319. ba2:Destroy()
  8320. end))
  8321. hum.WalkSpeed = storehumanoidWS
  8322. hb:Destroy()
  8323. hb2:Destroy()
  8324. attack = false
  8325. end
  8326.  
  8327. function dragin()
  8328. local targetted = nil
  8329. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8330. targetted = mouse.Target.Parent
  8331. end
  8332. if targetted ~= nil then
  8333. RootPart.CFrame = FaceMouse()[1]
  8334. attack = true
  8335. hum.WalkSpeed = 0
  8336. for x = 0, 1 do
  8337. for i = 0,1,0.5 do
  8338. swait()
  8339. 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)
  8340. 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)
  8341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8343. 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)
  8344. 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)
  8345. end
  8346. for i = 0,1,0.5 do
  8347. swait()
  8348. 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)
  8349. 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)
  8350. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8351. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8352. 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)
  8353. 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)
  8354. end
  8355. for i = 0,1,0.5 do
  8356. swait()
  8357. 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)
  8358. 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)
  8359. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8361. 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)
  8362. 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)
  8363. end
  8364. for i = 0,1,0.5 do
  8365. swait()
  8366. 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)
  8367. 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)
  8368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8370. 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)
  8371. 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)
  8372. end
  8373. end
  8374. coroutine.resume(coroutine.create(function()
  8375. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8376. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8377. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8378. end))
  8379. local A1 = Instance.new("Attachment",targetted.Head)
  8380. local A2 = Instance.new("Attachment",sorb)
  8381. local Beem = Instance.new("Beam",tors)
  8382. Beem.Attachment0 = A1
  8383. Beem.Attachment1 = A2
  8384. Beem.Texture = "rbxassetid://897585362"
  8385. Beem.LightEmission = 0.75
  8386. Beem.FaceCamera = true
  8387. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8388. Beem.Width0 = 1
  8389. Beem.Width1 = 1
  8390. Beem.TextureMode = "Wrap"
  8391. Beem.TextureLength = 1
  8392. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8393. 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)
  8394. 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)
  8395. for x = 0, 24 do
  8396. local rsiz = math.random(5,15)
  8397. 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)
  8398. end
  8399.  
  8400. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8401. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8402. local radm = math.random(1,2)
  8403. if radm == 1 then
  8404. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8405. elseif radm == 2 then
  8406. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8407. end
  8408. for i = 0,3,0.1 do
  8409. swait()
  8410. coroutine.resume(coroutine.create(function()
  8411. local rsiz = math.random(5,15)
  8412. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8413. 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)
  8414. end))
  8415. 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)
  8416. 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)
  8417. 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)
  8418. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8420. 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)
  8421. 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)
  8422. end
  8423. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8424. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8425. local vel = Instance.new("BodyPosition", targetted.Head)
  8426. vel.P = 12500
  8427. vel.D = 1000
  8428. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8429. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8430. for i = 0,4,0.1 do
  8431. swait()
  8432. coroutine.resume(coroutine.create(function()
  8433. local rsiz = math.random(5,15)
  8434. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8435. 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)
  8436. end))
  8437. 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)
  8438. 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)
  8439. 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)
  8440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8442. 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)
  8443. 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)
  8444. end
  8445. local visibility = 0
  8446. coroutine.resume(coroutine.create(function()
  8447. for i = 0, 49 do
  8448. swait()
  8449. visibility = visibility + 0.02
  8450. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8451. end
  8452. Beem:Destroy()
  8453. A1:Destroy()
  8454. A2:Destroy()
  8455. end))
  8456. game:GetService("Debris"):AddItem(vel,0.75)
  8457. attack = false
  8458. hum.WalkSpeed = storehumanoidWS
  8459.  
  8460. end
  8461. end
  8462.  
  8463. function hugg()
  8464. attack = true
  8465. hum.WalkSpeed = 5
  8466. local rsiz = math.random(5,15)
  8467. for i = 0, 2, 0.1 do
  8468. swait()
  8469. 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)
  8470. 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)
  8471. 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)
  8472. 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)
  8473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8475. end
  8476. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8477. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8478. hb.Anchored = true
  8479. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8480. local huggedperson = nil
  8481. local act = false
  8482. local alreadydid = false
  8483. for i = 0, 3, 0.1 do
  8484. swait()
  8485. if act == false then
  8486. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8487. if v:FindFirstChild('Head') then
  8488. if alreadydid == false then
  8489. huggedperson = v
  8490. hum.WalkSpeed = 0
  8491. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8492. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8493. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8494. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8495. local radm = math.random(1,3)
  8496. if radm == 1 then
  8497. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8498. elseif radm == 2 then
  8499. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8500. elseif radm == 3 then
  8501. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8502. end
  8503. root.Anchored = true
  8504. coroutine.resume(coroutine.create(function()
  8505. huggedperson.Humanoid.WalkSpeed = 0
  8506. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8507. end))
  8508. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8509. alreadydid = true
  8510. act = true
  8511. print(huggedperson.Name)
  8512. end
  8513. end
  8514. end
  8515. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8516. 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)
  8517. elseif act == true then
  8518. coroutine.resume(coroutine.create(function()
  8519. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8520. end))
  8521. rsiz = math.random(5,15)
  8522. 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)
  8523. 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)
  8524. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8525. end
  8526. 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)
  8527. 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)
  8528. 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)
  8529. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8530. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8531. end
  8532. hb:Destroy()
  8533. if act == true then
  8534. for x = 0, 2 do
  8535. for i = 0, 2, 0.1 do
  8536. swait()
  8537. coroutine.resume(coroutine.create(function()
  8538. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8539. end))
  8540. rsiz = math.random(5,15)
  8541. 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)
  8542. 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)
  8543. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8544. 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)
  8545. 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)
  8546. 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)
  8547. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8548. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8549. end
  8550. for i = 0, 2, 0.1 do
  8551. swait()
  8552. coroutine.resume(coroutine.create(function()
  8553. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8554. end))
  8555. rsiz = math.random(5,15)
  8556. 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)
  8557. 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)
  8558. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8559. 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)
  8560. 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)
  8561. 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)
  8562. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8563. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8564. end
  8565. end
  8566. end
  8567. hum.WalkSpeed = storehumanoidWS
  8568. root.Anchored = false
  8569. if act == true then
  8570. coroutine.resume(coroutine.create(function()
  8571. huggedperson.Humanoid.WalkSpeed = 16
  8572. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8573. end))
  8574. end
  8575. hum.WalkSpeed = storehumanoidWS
  8576. attack = false
  8577. end
  8578.  
  8579. function Counter()
  8580. hum.WalkSpeed = 0
  8581. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8582. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8583. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8584. attack = true
  8585. for i = 0,1,0.1 do
  8586. swait()
  8587. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8589. 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)
  8590. 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)
  8591. 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)
  8592. 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)
  8593. end
  8594. CameraEnshaking(3,4)
  8595. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8596. 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)
  8597. 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)
  8598. 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)
  8599. coroutine.resume(coroutine.create(function()
  8600. local eff = Instance.new("ParticleEmitter",root)
  8601. eff.Texture = "rbxassetid://363275192"
  8602. eff.LightEmission = 0.95
  8603. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8604. eff.Rate = 10000
  8605. eff.Lifetime = NumberRange.new(1)
  8606. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8607. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8608. eff.Speed = NumberRange.new(10,125)
  8609. eff.Drag = 5
  8610. eff.Rotation = NumberRange.new(-500,500)
  8611. eff.VelocitySpread = 9000
  8612. eff.RotSpeed = NumberRange.new(-50,50)
  8613. local eff2 = eff:Clone()
  8614. eff2.Parent = root
  8615. eff2.Texture = "rbxassetid://284205403"
  8616. eff2.Rate = 10000
  8617. 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)})
  8618. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8619. eff2.Drag = 5
  8620. eff2.Speed = NumberRange.new(10,50)
  8621. eff2.Rotation = NumberRange.new(-500,500)
  8622. eff2.VelocitySpread = 9000
  8623. wait(0.25)
  8624. eff2.Enabled = false
  8625. eff.Enabled = false
  8626. wait(3)
  8627. eff2:Destroy()
  8628. eff:Destroy()
  8629. end))
  8630. for i = 0, 9 do
  8631. 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)
  8632. end
  8633. for i = 0, 24 do
  8634. local rsiz = math.random(5,20)
  8635. 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)
  8636. end
  8637. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8638. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8639. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8640. for i = 0,2,0.1 do
  8641. swait()
  8642. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8643. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8645. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8646. 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)
  8647. 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)
  8648. end
  8649. hum.WalkSpeed = storehumanoidWS
  8650. attack = false
  8651. end
  8652.  
  8653. function superjump()
  8654. attack = true
  8655. hum.WalkSpeed = 0
  8656. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8657. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8658. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8659. for i = 0, 2, 0.1 do
  8660. swait()
  8661. root.Velocity = vt(0,0,0)
  8662. 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"))
  8663. 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)
  8664. 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)
  8665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8667. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8668. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8669. end
  8670. MagniDamage(root, 28, 25,50, 25, "Normal")
  8671. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8672. hum.Jump = true
  8673. swait()
  8674. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8675. 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)
  8676. 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)
  8677. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8678. for i = 0, 3, 0.1 do
  8679. swait()
  8680. 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)
  8681. 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)
  8682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8684. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8685. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8686. end
  8687. attack = false
  8688. if equipped == false then
  8689. hum.WalkSpeed = 16
  8690. else
  8691. hum.WalkSpeed = 24
  8692. end
  8693. end
  8694.  
  8695.  
  8696. -------------------------------------
  8697.  
  8698.  
  8699.  
  8700. Humanoid.Animator.Parent = nil
  8701.  
  8702.  
  8703.  
  8704. -------------------------------------
  8705.  
  8706. local attacktype = 1
  8707. mouse.Button1Down:connect(function()
  8708. if attack == false and attacktype == 1 then
  8709. attacktype = 2
  8710. attackone()
  8711. elseif attack == false and attacktype == 2 then
  8712. attacktype = 3
  8713. attacktwo()
  8714. elseif attack == false and attacktype == 3 then
  8715. attacktype = 1
  8716. attackthree()
  8717. elseif attack == false and attacktype == 4 then
  8718. attacktype = 1
  8719. --attackfour()
  8720. end
  8721. end)
  8722. mouse.KeyDown:connect(function(k)
  8723. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8724. --normalmog()
  8725. ModeOfGlitch = 1
  8726. storehumanoidWS = 16
  8727. hum.WalkSpeed = 16
  8728. rainbowmode = false
  8729. chaosmode = false
  8730. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8731. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8732. MAINRUINCOLOR = BrickColor.new("Really red")
  8733. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8734. end
  8735. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8736. ModeOfGlitch = 2
  8737. storehumanoidWS = 16
  8738. hum.WalkSpeed = 16
  8739. rainbowmode = false
  8740. chaosmode = false
  8741. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8742. newTheme("rbxassetid://1539245059",0,1,0.85)
  8743. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8744. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8745. end
  8746. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8747. ModeOfGlitch = 3
  8748. storehumanoidWS = 14
  8749. hum.WalkSpeed = 14
  8750. rainbowmode = false
  8751. chaosmode = false
  8752. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8753. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8754. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8755. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8756. end
  8757. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8758. ModeOfGlitch = 4
  8759. storehumanoidWS = 14
  8760. hum.WalkSpeed = 14
  8761. rainbowmode = false
  8762. chaosmode = true
  8763. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8764. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8765. MAINRUINCOLOR = BrickColor.new("Crimson")
  8766. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8767. end
  8768. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8769. ModeOfGlitch = 5
  8770. storehumanoidWS = 14
  8771. hum.WalkSpeed = 14
  8772. rainbowmode = false
  8773. chaosmode = false
  8774. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8775. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8776. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8777. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8778. end
  8779. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8780. ModeOfGlitch = 6
  8781. storehumanoidWS = 65
  8782. hum.WalkSpeed = 65
  8783. rainbowmode = false
  8784. chaosmode = false
  8785. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8786. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8787. MAINRUINCOLOR = BrickColor.new("White")
  8788. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8789. end
  8790. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8791. ModeOfGlitch = 8
  8792. storehumanoidWS = 100
  8793. hum.WalkSpeed = 100
  8794. rainbowmode = false
  8795. chaosmode = false
  8796. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8797. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8798. MAINRUINCOLOR = BrickColor.new("Alder")
  8799. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8800. end
  8801. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8802. ModeOfGlitch = 9
  8803. storehumanoidWS = 85
  8804. hum.WalkSpeed = 85
  8805. rainbowmode = false
  8806. chaosmode = false
  8807. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8808. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8809. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8810. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8811. end
  8812. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8813. ModeOfGlitch = 5555
  8814. storehumanoidWS = 30
  8815. hum.WalkSpeed = 30
  8816. rainbowmode = false
  8817. chaosmode = false
  8818. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8819. newTheme("rbxassetid://736003449",0,1,1.25)
  8820. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8821. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8822. end
  8823. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8824. CalamityTrans()
  8825. end
  8826. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8827. InsaneTrans()
  8828. end
  8829. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8830. ModeOfGlitch = 55469696922
  8831. storehumanoidWS = 95
  8832. hum.WalkSpeed = 95
  8833. rainbowmode = false
  8834. chaosmode = false
  8835. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8836. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8837. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8838. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8839. end
  8840. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8841. ModeOfGlitch = 4367677813
  8842. storehumanoidWS = 75
  8843. hum.WalkSpeed = 75
  8844. rainbowmode = false
  8845. chaosmode = false
  8846. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8847. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8848. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8849. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8850. end
  8851. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8852. ModeOfGlitch = 9999999921111
  8853. storehumanoidWS = 145
  8854. hum.WalkSpeed = 145
  8855. rainbowmode = false
  8856. chaosmode = false
  8857. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8858. newTheme("rbxassetid://643309199",0,1.01,1)
  8859. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8860. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8861. end
  8862. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8863. ModeOfGlitch = 999999999556
  8864. storehumanoidWS = 115
  8865. hum.WalkSpeed = 115
  8866. rainbowmode = false
  8867. chaosmode = false
  8868. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8869. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8870. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8871. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8872. end
  8873. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8874. ModeOfGlitch = 12
  8875. storehumanoidWS = 19
  8876. hum.WalkSpeed = 19
  8877. rainbowmode = false
  8878. chaosmode = false
  8879. print'Mode was meant for Vengeful Program or those other fans out there'
  8880. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8881. newTheme("rbxassetid://1873219898",0,1,1.7)
  8882. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8883. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8884. end
  8885.  
  8886. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8887. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8888. for i = 0, 49 do
  8889. 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)
  8890. end
  8891. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8892. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8893. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8894. hum.WalkSpeed = storehumanoidWS
  8895. attack = false
  8896. ModeOfGlitch = 50
  8897. storehumanoidWS = 18
  8898. hum.WalkSpeed = 18
  8899. rainbowmode = false
  8900. chaosmode = false
  8901. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8902. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8903. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8904. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8905. end
  8906.  
  8907. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8908. hum.WalkSpeed = 0
  8909. attack = true
  8910. for i = 0,1,0.1 do
  8911. swait()
  8912. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8913. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8914. 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)
  8915. 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)
  8916. 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)
  8917. 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)
  8918. end
  8919. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8920. for i = 0, 148 do
  8921. 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)
  8922. end
  8923. for i = 0,3,0.1 do
  8924. 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)
  8925. end
  8926. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8927. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8928. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8929. hum.WalkSpeed = storehumanoidWS
  8930. attack = false
  8931. ModeOfGlitch = 66
  8932. storehumanoidWS = 16
  8933. hum.WalkSpeed = 16
  8934. rainbowmode = false
  8935. chaosmode = false
  8936. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8937. MAINRUINCOLOR = BrickColor.new("Really black")
  8938. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8939. for i = 0,2,0.1 do
  8940. swait()
  8941. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8942. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8943. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8944. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8945. 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)
  8946. 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)
  8947. end
  8948. end
  8949.  
  8950. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8951. hum.WalkSpeed = 0
  8952. attack = true
  8953. for i = 0,1,0.1 do
  8954. swait()
  8955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8957. 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)
  8958. 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)
  8959. 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)
  8960. 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)
  8961. end
  8962. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8963. for i = 0, 49 do
  8964. 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)
  8965. end
  8966. for i = 0,3,0.1 do
  8967. 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)
  8968. end
  8969. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8970. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8971. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8972. hum.WalkSpeed = storehumanoidWS
  8973. attack = false
  8974. ModeOfGlitch = 13
  8975. storehumanoidWS = 45
  8976. hum.WalkSpeed = 45
  8977. rainbowmode = false
  8978. chaosmode = false
  8979. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8980. newTheme("rbxassetid://190845741",0,1,1.35)
  8981. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8982. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8983. for i = 0,2,0.1 do
  8984. swait()
  8985. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8986. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8987. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8988. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8989. 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)
  8990. 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)
  8991. end
  8992. end
  8993. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8994. ModeOfGlitch = 1002
  8995. storehumanoidWS = 45
  8996. hum.WalkSpeed = 45
  8997. rainbowmode = false
  8998. chaosmode = false
  8999. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9000. newTheme("rbxassetid://2027652726",0,1,0.85)
  9001. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9002. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9003. end
  9004. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9005. ModeOfGlitch = 1003
  9006. storehumanoidWS = 90
  9007. hum.WalkSpeed = 90
  9008. rainbowmode = false
  9009. chaosmode = false
  9010. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9011. newTheme("rbxassetid://257453119",0,1,0.85)
  9012. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9013. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9014. end
  9015. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9016. ModeOfGlitch = 1264532489
  9017. storehumanoidWS = 175
  9018. hum.WalkSpeed = 175
  9019. rainbowmode = false
  9020. chaosmode = false
  9021. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9022. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9023. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9024. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9025. end
  9026. if k == "l" and mutedtog == false then
  9027. mutedtog = true
  9028. kan.Volume = 0.85
  9029. elseif k == "l" and mutedtog == true then
  9030. mutedtog = false
  9031. kan.Volume = 0.85
  9032. end
  9033. if k == "p" and toggleTag == false then
  9034. toggleTag = true
  9035. modet.TextTransparency = 0
  9036. modet.TextStrokeTransparency = 0
  9037. elseif k == "p" and toggleTag == true then
  9038. toggleTag = false
  9039. modet.TextTransparency = 1
  9040. modet.TextStrokeTransparency = 1
  9041. end
  9042. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9043. ExtinctiveHeartbreak()
  9044. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9045. HeavenlyDisk()
  9046. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9047. DualGleamingBeam()
  9048. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9049. BanishingOrb()
  9050. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9051. hugg()
  9052. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9053. cutesigh()
  9054. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9055. Counter()
  9056. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9057. superjump()
  9058. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9059. dragin()
  9060. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9061. UniversalCollapse()
  9062. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9063. PureBomb()
  9064. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9065. Beams()
  9066. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9067. BeamOfDeath()
  9068. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9069. THE_TRUE_POWER_OF_VIOLENCE()
  9070. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9071. GleamingBeam()
  9072. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9073. ViolentRing()
  9074. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9075. CorruptionEvent()
  9076. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9077. CorruptBlink()
  9078. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9079. scattercorrupt()
  9080. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9081. shytaunty()
  9082. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9083. InsaneBeam()
  9084. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9085. RapidBurst()
  9086. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9087. InsaneDrop()
  9088. wait(2)
  9089. ChaosEND()
  9090. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9091. ChaosEND()
  9092. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9093. CyberSlash()
  9094. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9095. smiter()
  9096. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9097. SpeedDrop()
  9098. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9099. --DivineLights()
  9100. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9101. DivineBlast()
  9102. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9103. EquinoxOrbs()
  9104. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9105. yinyangi()
  9106. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9107. FallenOrbs()
  9108. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9109. StarfallEX()
  9110. end
  9111. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9112. FallenDEMISE()
  9113. end
  9114. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9115. EndGROUND()
  9116. end
  9117. end)
  9118.  
  9119. coroutine.resume(coroutine.create(function()
  9120. while true do
  9121. swait()
  9122. 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
  9123. 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)
  9124. end
  9125. if ModeOfGlitch == 5555 then
  9126. 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)
  9127. end
  9128. end
  9129. end))
  9130. --[[coroutine.resume(coroutine.create(function()
  9131. while true do
  9132. swait(2)
  9133. if chaosmode == true then
  9134. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9135. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9136. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9137. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9138. for i, v in pairs(mw1:GetChildren()) do
  9139. if v:IsA("Part") then
  9140. v.Transparency = 0.75
  9141. v.BrickColor = BrickColor.random()
  9142. v.Material = "Neon"
  9143. end
  9144. end
  9145. for i, v in pairs(m2:GetChildren()) do
  9146. if v:IsA("Part") then
  9147. v.BrickColor = BrickColor.random()
  9148. v.Material = "Neon"
  9149. end
  9150. end
  9151. end
  9152. end
  9153. end))]]
  9154.  
  9155.  
  9156.  
  9157. ff = Instance.new("ForceField",char)
  9158. ff.Visible = false
  9159. hum.Name = "Base"
  9160. hum.MaxHealth = 1.0E298
  9161. hum.Health = 1.0E298
  9162. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9163. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9164. hum.MaxHealth = 1.0E298
  9165. hum.Health = 1.0E298
  9166. end
  9167. end)
  9168.  
  9169. local Hair = Instance.new("Part", char)
  9170. Hair.Name = "Hair"
  9171. Hair.CanCollide = false
  9172. Hair.BrickColor = BrickColor.new("Institutional white")
  9173. Hair.Transparency = 0
  9174. Hair.Material = "Plastic"
  9175. Hair.Size = Vector3.new(1, 1, 2)
  9176. Hair.TopSurface = Enum.SurfaceType.Smooth
  9177. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9178.  
  9179.  
  9180. local bguis = Instance.new("BillboardGui",tors)
  9181. bguis.Size = UDim2.new(25, 0, 25, 0)
  9182. local imgca = Instance.new("ImageLabel",bguis)
  9183. imgca.BackgroundTransparency = 1
  9184. imgca.ImageTransparency = 1
  9185. imgca.Size = UDim2.new(1,0,1,0)
  9186. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9187. imgca.ImageColor3 = Color3.new(0,0,0)
  9188.  
  9189.  
  9190. local bguis2 = Instance.new("BillboardGui",tors)
  9191. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9192. local imgca2 = Instance.new("ImageLabel",bguis)
  9193. imgca2.BackgroundTransparency = 1
  9194. imgca2.ImageTransparency = 1
  9195. imgca2.Size = UDim2.new(1,0,1,0)
  9196. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9197. imgca2.ImageColor3 = Color3.new(0,0,0)
  9198.  
  9199.  
  9200.  
  9201. idleanim=.4
  9202. while true do
  9203. if mutedtog == false then
  9204. kan.Volume = currentVol
  9205. elseif mutedtog == true then
  9206. kan.Volume = 0
  9207. end
  9208. kan.PlaybackSpeed = currentPitch
  9209. kan.Pitch = currentPitch
  9210. kan.SoundId = currentThemePlaying
  9211. kan.Looped = true
  9212. kan.Parent = char
  9213. kan:Resume()
  9214. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9215. imgca.ImageTransparency = 1
  9216. imgca2.ImageTransparency = 1
  9217. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9218. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9219. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9220. elseif ModeOfGlitch == 13 then
  9221. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9222. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9223. end
  9224. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9225. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9226. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9227. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9228. coroutine.resume(coroutine.create(function()
  9229. if chaosmode == true then
  9230. for i, v in pairs(mw1:GetChildren()) do
  9231. if v:IsA("Part") then
  9232. v.Transparency = 0
  9233. v.BrickColor = BrickColor.random()
  9234. v.Material = "Neon"
  9235. end
  9236. end
  9237. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9238. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9239. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9240. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9241. end
  9242. end))
  9243. coroutine.resume(coroutine.create(function()
  9244. if ModeOfGlitch == 66 then
  9245. for i, v in pairs(m:GetChildren()) do
  9246. if v:IsA("Part") then
  9247. v.Transparency = 0
  9248. v.BrickColor = BrickColor.random()
  9249. v.Material = "Neon"
  9250. end
  9251. end
  9252. for i, v in pairs(m2:GetChildren()) do
  9253. if v:IsA("Part") then
  9254. v.Transparency = 0
  9255. v.BrickColor = BrickColor.random()
  9256. v.Material = "Neon"
  9257. end
  9258. end
  9259. for i, v in pairs(mw1:GetChildren()) do
  9260. if v:IsA("Part") then
  9261. v.Transparency = 0
  9262. v.BrickColor = BrickColor.random()
  9263. v.Material = "Neon"
  9264. end
  9265. end
  9266. for i, v in pairs(extrawingmod1:GetChildren()) do
  9267. if v:IsA("Part") then
  9268. v.Transparency = 0.5
  9269. v.BrickColor = BrickColor.random()
  9270. v.Material = "Neon"
  9271. end
  9272. end
  9273. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9274. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9275. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9276. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9277. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9278. end
  9279. end))
  9280.  
  9281. coroutine.resume(coroutine.create(function()
  9282. if ModeOfGlitch == 66 then
  9283. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9284. end
  9285. end))
  9286.  
  9287. if chaosmode == false then
  9288. modet.Position = UDim2.new(0,0,0,0)
  9289. modet.Rotation = -5 * math.cos(sine / 32)
  9290. techc.Rotation = techc.Rotation + 1
  9291. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9292. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9293. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9294. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9295. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9296. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9297. else
  9298. techc.Rotation = techc.Rotation + 1
  9299. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9300. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9301. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9302. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9303. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9304. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9305. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9306. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9307. end
  9308. CameraManager()
  9309. swait()
  9310. 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)
  9311. 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)
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. 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)
  9319. 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)
  9320. 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)
  9321. 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)
  9322. sine = sine + change
  9323. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9324. local velderp=RootPart.Velocity.y
  9325. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9326. coroutine.resume(coroutine.create(function()
  9327. 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
  9328. if hitfloor ~= nil then
  9329. 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"))
  9330. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9331. 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)
  9332. end
  9333. end
  9334. end
  9335. end))
  9336. if equipped==true or equipped==false then
  9337. if attack==false then
  9338. idle=idle+1
  9339. else
  9340. idle=0
  9341. end
  9342. if idle>=500 then
  9343. if attack==false then
  9344. --Sheath()
  9345. end
  9346. end
  9347. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9348. Anim="Jump"
  9349. if attack==false then
  9350. 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)
  9351. 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)
  9352. 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)
  9353. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9354. 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)
  9355. 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)
  9356. end
  9357. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9358. Anim="Fall"
  9359. if attack==false then
  9360. 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)
  9361. 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)
  9362. 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)
  9363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9364. 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)
  9365. 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)
  9366. end
  9367. elseif torvel<1 and hitfloor~=nil then
  9368. Anim="Idle"
  9369. if attack==false then
  9370. if ModeOfGlitch == 1 then
  9371. local snap = math.random(1,10)
  9372. if snap == 1 then
  9373. 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)
  9374. end
  9375. 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)
  9376. 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)
  9377. 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)
  9378. 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)
  9379. 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)
  9380. 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)
  9381. elseif ModeOfGlitch == 2 then
  9382. 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)
  9383. 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)
  9384. 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)
  9385. 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)
  9386. 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)
  9387. 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)
  9388. elseif ModeOfGlitch == 2 then
  9389. 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)
  9390. 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)
  9391. 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)
  9392. 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)
  9393. 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)
  9394. 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)
  9395. elseif ModeOfGlitch == 50 then
  9396. 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)
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. elseif ModeOfGlitch == 5555 then --5555
  9403. 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)
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408. 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)
  9409. elseif ModeOfGlitch == 1002 then
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9416. elseif ModeOfGlitch == 12 then
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. elseif ModeOfGlitch == 3 then
  9424. local snap = math.random(1,32)
  9425. if snap == 1 then
  9426. 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)
  9427. end
  9428. 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)
  9429. 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)
  9430. 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)
  9431. 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)
  9432. 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)
  9433. 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)
  9434. elseif ModeOfGlitch == 4 then
  9435. local snap = math.random(1,5)
  9436. if snap == 1 then
  9437. 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)
  9438. 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)
  9439. 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)
  9440. end
  9441. 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)
  9442. 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)
  9443. 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)
  9444. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9445. RW.C0=clerp(RW.C0,cf(1.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)
  9446. 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)
  9447. elseif ModeOfGlitch == 66 then
  9448. local snap = math.random(1,2)
  9449. if snap == 1 then
  9450. 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)
  9451. 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)
  9452. 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)
  9453. end
  9454. 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)
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. 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)
  9460. elseif ModeOfGlitch == 5 then
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. 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)
  9466. 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)
  9467. elseif ModeOfGlitch == 6 then
  9468. 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)
  9469. 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)
  9470. 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)
  9471. 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)
  9472. 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)
  9473. 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)
  9474. elseif ModeOfGlitch == 13 then
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. 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)
  9480. 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)
  9481. elseif ModeOfGlitch == 8 then
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. elseif ModeOfGlitch == 9 then
  9489. 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)
  9490. 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))
  9491. 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)
  9492. 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)
  9493. 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)
  9494. 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)
  9495. 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)
  9496. 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)
  9497. elseif ModeOfGlitch == 1003 then
  9498. 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)
  9499. 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)
  9500. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9501. 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)
  9502. 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)
  9503. 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)
  9504.  
  9505. elseif ModeOfGlitch == 8889 then
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. 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)
  9512. elseif ModeOfGlitch == 1264532489 then
  9513. 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)
  9514. 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)
  9515. 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)
  9516. 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)
  9517. 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)
  9518. 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)
  9519. 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)
  9520. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9521. 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)
  9522. 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)
  9523. 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)
  9524. 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)
  9525. 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)
  9526. 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)
  9527. elseif ModeOfGlitch == 4367677813 then
  9528. 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)
  9529. 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)
  9530. 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)
  9531. 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)
  9532. 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)
  9533. 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)
  9534. elseif ModeOfGlitch == 55469696922 then --5555
  9535. 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)
  9536. 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)
  9537. 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)
  9538. 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)
  9539. 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)
  9540. 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)
  9541. elseif ModeOfGlitch == 999999999556 then
  9542. 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)
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. end
  9549. end
  9550. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9551. Anim="Walk"
  9552. if attack==false and ModeOfGlitch ~= 66 then
  9553. 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)
  9554. 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)
  9555. 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)
  9556. 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)
  9557. 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)
  9558. 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)
  9559. elseif attack==false and ModeOfGlitch == 66 then
  9560. 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)
  9561. 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)
  9562. 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)
  9563. 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)
  9564. 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)
  9565. 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)
  9566. end
  9567. elseif torvel>=22 and hitfloor~=nil then
  9568. Anim="Run"
  9569. if attack==false then
  9570. 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
  9571. 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)
  9572. 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)
  9573. 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)
  9574. 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)
  9575. 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)
  9576. 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)
  9577. if ModeOfGlitch == 12 then
  9578. 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)
  9579. 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)
  9580. 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)
  9581. 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)
  9582. 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)
  9583. 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)
  9584. end
  9585. if ModeOfGlitch == 9 then
  9586. 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)
  9587. 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))
  9588. 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)
  9589. end
  9590. 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
  9591. 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)
  9592. 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)
  9593. 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)
  9594. 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)
  9595. 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)
  9596. 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)
  9597. elseif ModeOfGlitch == 13 then
  9598. 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)
  9599. 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)
  9600. 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)
  9601. 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)
  9602. 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)
  9603. 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)
  9604. end
  9605. end
  9606. end
  9607. end
  9608. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement