Advertisement
Guest User

Jacob Glitcher (But i editted the script :3)

a guest
Jan 23rd, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 460.76 KB | None | 0 0
  1. wait(0.2)
  2.  
  3.  
  4. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  5. The super switcher.
  6. Velnorum is one of the first wielders.
  7.  
  8. Created, Reworked by NoobyGames12
  9. Edited by GodzPlaysRB
  10. Edited by wanTH092 (Gam_Filano CH)
  11. SpectrumGlitcher Developers ^^^
  12. ]])
  13.  
  14.  
  15. ------------- ORIGINAL WIELDER OC: Velnorum
  16. print([[Icons:
  17. ! = New
  18. ? = Spoilers
  19. * = Exclusivity
  20. C = Changes
  21.  
  22. ]])
  23. warn([[V 7.5 Update Log:
  24. C: Changed everything to guest xd
  25. ]])
  26. --- its obs smooth af do not touch
  27. ---- Sources and functions might be taken from others
  28. plr = game:GetService("Players").LocalPlayer
  29. char = plr.Character
  30. hum = char.Humanoid
  31. local cam = game.Workspace.CurrentCamera
  32. Camera = cam
  33. mouse = plr:GetMouse()
  34. local CamInterrupt = false
  35. local TwoD = false
  36. local TargetInfo = {nil, nil}
  37. cam.CameraType = "Custom"
  38. t = char.Torso
  39. h = char.Head
  40. ra = char["Right Arm"]
  41. la = char["Left Arm"]
  42. rl = char["Right Leg"]
  43. ll = char["Left Leg"]
  44. tors = char.Torso
  45. lleg = char["Left Leg"]
  46. root = char.HumanoidRootPart
  47. hed = char.Head
  48. rleg = char["Right Leg"]
  49. rarm = char["Right Arm"]
  50. larm = char["Left Arm"]
  51. radian = math.rad
  52. random = math.random
  53. Vec3 = Vector3.new
  54. Inst = Instance.new
  55. cFrame = CFrame.new
  56. Euler = CFrame.fromEulerAnglesXYZ
  57. vt = Vector3.new
  58. bc = BrickColor.new
  59. br = BrickColor.random
  60. it = Instance.new
  61. cf = CFrame.new
  62. local Player_Size = 0
  63. cam = game.Workspace.CurrentCamera
  64. CF = CFrame.new
  65. angles = CFrame.Angles
  66. attack = false
  67. Euler = CFrame.fromEulerAnglesXYZ
  68. Rad = math.rad
  69. IT = Instance.new
  70. BrickC = BrickColor.new
  71. Cos = math.cos
  72. Acos = math.acos
  73. Sin = math.sin
  74. Asin = math.asin
  75. Abs = math.abs
  76. Mrandom = math.random
  77. Floor = math.floor
  78. IT = Instance.new
  79. CF = CFrame.new
  80. VT = Vector3.new
  81. RAD = math.rad
  82. C3 = Color3.new
  83. UD2 = UDim2.new
  84. BRICKC = BrickColor.new
  85. ANGLES = CFrame.Angles
  86. EULER = CFrame.fromEulerAnglesXYZ
  87. COS = math.cos
  88. ACOS = math.acos
  89. SIN = math.sin
  90. ASIN = math.asin
  91. ABS = math.abs
  92. MRANDOM = math.random
  93. FLOOR = math.floor
  94. local SINE = 0
  95.  
  96. local Booleans = {
  97. CamFollow = true,
  98. GyroUse = true
  99. }
  100.  
  101. function lerp(object, newCFrame, alpha)
  102. return object:lerp(newCFrame, alpha)
  103. end
  104.  
  105. local Directer = Inst("BodyGyro", root)
  106. Directer.MaxTorque = Vec3(0, 0, 0)
  107. Directer.P = 600000
  108. local CPart = Inst("Part")
  109. CPart.Anchored = true
  110. CPart.CanCollide = false
  111. CPart.Locked = true
  112. CPart.Transparency = 1
  113.  
  114. local rainbowmode = false
  115. local chaosmode = false
  116.  
  117. local kan = Instance.new("Sound",tors)
  118. kan.Volume = 0.85
  119. kan.TimePosition = 0
  120. kan.PlaybackSpeed = 1
  121. kan.Pitch = 1
  122. kan.SoundId = "rbxassetid://1255569288"
  123. kan.Name = "wrecked"
  124. kan.Looped = true
  125. kan:Play()
  126.  
  127. local currentThemePlaying = kan.SoundId
  128. local currentPitch = kan.Pitch
  129. local currentVol = kan.Volume
  130. function newTheme(ID,timepos,pitch,vol)
  131. local kanz = kan
  132. --kanz:Stop()
  133. kanz.Volume = vol
  134. --kanz.TimePosition = timepos
  135. kanz.PlaybackSpeed = pitch
  136. kanz.Pitch = pitch
  137. kanz.SoundId = ID
  138. kanz.Name = "wrecked"
  139. kanz.Looped = true
  140. currentThemePlaying = kanz.SoundId
  141. currentVol = kanz.Volume
  142. currentPitch = kanz.Pitch
  143. --kanz:Play()
  144. --coroutine.resume(coroutine.create(function()
  145. --wait(0.05)
  146. --end))
  147. end
  148.  
  149. function newThemeCust(ID,timepos,pitch,vol)
  150. local kanz = kan
  151. kanz:Stop()
  152. kanz.Volume = vol
  153. kanz.TimePosition = timepos
  154. kanz.PlaybackSpeed = pitch
  155. kanz.Pitch = pitch
  156. kanz.SoundId = ID
  157. kanz.Name = "wrecked"
  158. kanz.Looped = true
  159. currentThemePlaying = kanz.SoundId
  160. currentVol = kanz.Volume
  161. currentPitch = kanz.Pitch
  162. kanz:Play()
  163. coroutine.resume(coroutine.create(function()
  164. wait(0.05)
  165. end))
  166. end
  167.  
  168. local mutedtog = false
  169.  
  170. function CameraEnshaking(Length,Intensity)
  171. coroutine.resume(coroutine.create(function()
  172. local intensity = 1*Intensity
  173. local rotM = 0.01*Intensity
  174. for i = 0, Length, 0.1 do
  175. swait()
  176. intensity = intensity - 0.05*Intensity/Length
  177. rotM = rotM - 0.0005*Intensity/Length
  178. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  179. 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)
  180. end
  181. Humanoid.CameraOffset = Vec3(0, 0, 0)
  182. end))
  183. end
  184. CamShake=function(Part,Distan,Power,Times)
  185. local de=Part.Position
  186. for i,v in pairs(workspace:children()) do
  187. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  188. for _,c in pairs(v:children()) do
  189. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  190. local Noob=v.Humanoid
  191. if Noob~=nil then
  192. coroutine.resume(coroutine.create(function()
  193. FV = Instance.new("BoolValue", Noob)
  194. FV.Name = "CameraShake"
  195. for ShakeNum=1,Times do
  196. swait()
  197. local ef=Power
  198. if ef>=1 then
  199. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  200. else
  201. ef=Power*10
  202. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  203. end
  204. end
  205. Humanoid.CameraOffset = Vector3.new(0,0,0)
  206. FV:Destroy()
  207. end))
  208. CameraShake(Times, Power, Noob)
  209. end
  210. end
  211. end
  212. end
  213. end
  214. end
  215.  
  216. local toggleTag = true
  217. local bilguit = Instance.new("BillboardGui", hed)
  218. bilguit.Adornee = nil
  219. bilguit.Name = "ModeName"
  220. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  221. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  222. local modet = Instance.new("TextLabel", bilguit)
  223. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  224. modet.FontSize = "Size8"
  225. modet.TextScaled = true
  226. modet.TextTransparency = 0
  227. modet.BackgroundTransparency = 1
  228. modet.TextTransparency = 0
  229. modet.TextStrokeTransparency = 0
  230. modet.Font = "Antique"
  231. modet.TextStrokeColor3 = Color3.new(1,0,0)
  232. modet.TextColor3 = Color3.new(0.25,0,0)
  233. modet.Text = "iiOmq_JacobXX2 The Cool Guy"
  234.  
  235.  
  236. function chatfunc(text,color,typet,font,timeex)
  237. local chat = coroutine.wrap(function()
  238. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  239. Character:FindFirstChild("TalkingBillBoard"):destroy()
  240. end
  241. local naeeym2 = Instance.new("BillboardGui",Character)
  242. naeeym2.Size = UDim2.new(0,100,0,40)
  243. naeeym2.StudsOffset = Vector3.new(0,3,0)
  244. naeeym2.Adornee = Character.Head
  245. naeeym2.Name = "TalkingBillBoard"
  246. local tecks2 = Instance.new("TextLabel",naeeym2)
  247. tecks2.BackgroundTransparency = 1
  248. tecks2.BorderSizePixel = 0
  249. tecks2.Text = ""
  250. tecks2.Font = font
  251. tecks2.TextSize = 30
  252. tecks2.TextStrokeTransparency = 0
  253. tecks2.TextColor3 = color
  254. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  255. tecks2.Size = UDim2.new(1,0,0.5,0)
  256. local tecks3 = Instance.new("TextLabel",naeeym2)
  257. tecks3.BackgroundTransparency = 1
  258. tecks3.BorderSizePixel = 0
  259. tecks3.Text = ""
  260. tecks3.Font = font
  261. tecks3.TextSize = 30
  262. tecks3.TextStrokeTransparency = 0
  263. if typet == "Inverted" then
  264. tecks3.TextColor3 = Color3.new(0,0,0)
  265. tecks3.TextStrokeColor3 = color
  266. elseif typet == "Normal" then
  267. tecks3.TextColor3 = color
  268. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  269. end
  270. tecks3.Size = UDim2.new(1,0,0.5,0)
  271. coroutine.resume(coroutine.create(function()
  272. while true do
  273. swait(1)
  274. if chaosmode == true then
  275. tecks2.TextColor3 = BrickColor.random().Color
  276. tecks3.TextStrokeColor3 = BrickColor.random().Color
  277. end
  278. end
  279. end))
  280. modet.TextTransparency = modet.TextTransparency + 1
  281. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  282. for i = 0, 74*timeex do
  283. swait()
  284. modet.TextTransparency = 1
  285. modet.TextStrokeTransparency = 1
  286. tecks2.Text = text
  287. tecks3.Text = text
  288. end
  289. local randomrot = math.random(1,2)
  290. if randomrot == 1 then
  291. for i = 1, 50 do
  292. swait()
  293. tecks2.Text = text
  294. tecks3.Text = text
  295. modet.TextTransparency = modet.TextTransparency - .02
  296. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  297. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  298. tecks2.TextTransparency = tecks2.TextTransparency + .04
  299. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  300. tecks3.TextTransparency = tecks2.TextTransparency + .04
  301. end
  302. elseif randomrot == 2 then
  303. for i = 1, 50 do
  304. swait()
  305. tecks2.Text = text
  306. tecks3.Text = text
  307. modet.TextTransparency = modet.TextTransparency - .02
  308. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  309. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  310. tecks2.TextTransparency = tecks2.TextTransparency + .04
  311. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  312. tecks3.TextTransparency = tecks2.TextTransparency + .04
  313. end
  314. end
  315. modet.TextTransparency = 0
  316. modet.TextStrokeTransparency = 0
  317. if toggleTag == false then
  318. modet.TextTransparency = 1
  319. modet.TextStrokeTransparency = 1
  320. end
  321. naeeym2:Destroy()
  322. end)
  323. chat()
  324. end
  325.  
  326. function bosschatfunc(text,color,watval)
  327. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  328. coroutine.resume(coroutine.create(function()
  329. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  330. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  331. end
  332. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  333. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  334. scrg.Name = "Dialog"
  335. local txtlb = Instance.new("TextLabel",scrg)
  336. txtlb.Text = ""
  337. txtlb.Font = "Bodoni"
  338. txtlb.TextColor3 = Color3.new(0,0,0)
  339. txtlb.TextStrokeTransparency = 0
  340. txtlb.BackgroundTransparency = 0.75
  341. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  342. txtlb.TextStrokeColor3 = color
  343. txtlb.TextScaled = true
  344. txtlb.Size = UDim2.new(1,0,0.25,0)
  345. txtlb.TextXAlignment = "Left"
  346. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  347. local txtlb2 = Instance.new("TextLabel",scrg)
  348. txtlb2.Text = plr.Name.." The Mayhem:"
  349. txtlb2.Font = "Antique"
  350. txtlb2.TextColor3 = Color3.new(0,0,0)
  351. txtlb2.TextStrokeTransparency = 0
  352. txtlb2.BackgroundTransparency = 1
  353. txtlb2.TextStrokeColor3 = color
  354. txtlb2.TextSize = 40
  355. txtlb2.Size = UDim2.new(1,0,0.25,0)
  356. txtlb2.TextXAlignment = "Left"
  357. txtlb2.Position = UDim2.new(0,0,1,0)
  358. local fvalen = 0.55
  359. local fval = -0.49
  360. coroutine.resume(coroutine.create(function()
  361. while true do
  362. swait()
  363. if chaosmode == true then
  364. txtlb.Rotation = math.random(-1,1)
  365. txtlb2.Rotation = math.random(-1,1)
  366. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  367. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  368. txtlb.TextStrokeColor3 = BrickColor.random().Color
  369. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  370. end
  371. end
  372. end))
  373. coroutine.resume(coroutine.create(function()
  374. while true do
  375. swait()
  376. if scrg.Parent ~= nil then
  377. fvalen = fvalen - 0.0001
  378. elseif scrg.Parent == nil then
  379. break
  380. end
  381. end
  382. end))
  383. local flol = 1.75
  384. local flil = 1.6
  385. coroutine.resume(coroutine.create(function()
  386. for i = 0, 9 do
  387. swait()
  388. fval = fval + 0.05
  389. flol = flol - 0.1
  390. flil = flil - 0.1
  391. txtlb.Text = ""
  392. txtlb.Position = UDim2.new(0,0,flol,0)
  393. txtlb2.Position = UDim2.new(0,0,flil,0)
  394. end
  395. txtlb.Text = text
  396. wait(watval)
  397. local valinc = 0
  398. for i = 0, 99 do
  399. swait()
  400. valinc = valinc + 0.0001
  401. flol = flol + valinc
  402. flil = flil + valinc
  403. txtlb.Rotation = txtlb.Rotation + valinc*20
  404. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  405. txtlb.Position = UDim2.new(0,0,flol,0)
  406. txtlb2.Position = UDim2.new(0,0,flil,0)
  407. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  408. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  409. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  410. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  411. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  412. end
  413. scrg:Destroy()
  414. end))
  415. end))
  416. end
  417. end
  418.  
  419.  
  420. local Create = LoadLibrary("RbxUtility").Create
  421.  
  422. CFuncs = {
  423. ["Part"] = {
  424. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  425. local Part = Create("Part"){
  426. Parent = Parent,
  427. Reflectance = Reflectance,
  428. Transparency = Transparency,
  429. CanCollide = false,
  430. Locked = true,
  431. BrickColor = BrickColor.new(tostring(BColor)),
  432. Name = Name,
  433. Size = Size,
  434. Material = Material,
  435. }
  436. RemoveOutlines(Part)
  437. return Part
  438. end;
  439. };
  440.  
  441. ["Mesh"] = {
  442. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  443. local Msh = Create(Mesh){
  444. Parent = Part,
  445. Offset = OffSet,
  446. Scale = Scale,
  447. }
  448. if Mesh == "SpecialMesh" then
  449. Msh.MeshType = MeshType
  450. Msh.MeshId = MeshId
  451. end
  452. return Msh
  453. end;
  454. };
  455.  
  456. ["Mesh"] = {
  457. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  458. local Msh = Create(Mesh){
  459. Parent = Part,
  460. Offset = OffSet,
  461. Scale = Scale,
  462. }
  463. if Mesh == "SpecialMesh" then
  464. Msh.MeshType = MeshType
  465. Msh.MeshId = MeshId
  466. end
  467. return Msh
  468. end;
  469. };
  470.  
  471. ["Weld"] = {
  472. Create = function(Parent, Part0, Part1, C0, C1)
  473. local Weld = Create("Weld"){
  474. Parent = Parent,
  475. Part0 = Part0,
  476. Part1 = Part1,
  477. C0 = C0,
  478. C1 = C1,
  479. }
  480. return Weld
  481. end;
  482. };
  483.  
  484. ["Sound"] = {
  485. Create = function(id, par, vol, pit)
  486. coroutine.resume(coroutine.create(function()
  487. local S = Create("Sound"){
  488. Volume = vol,
  489. Name = "EffectSoundo",
  490. Pitch = pit or 1,
  491. SoundId = id,
  492. Parent = par or workspace,
  493. }
  494. wait()
  495. S:play()
  496. game:GetService("Debris"):AddItem(S, 10)
  497. end))
  498. end;
  499. };
  500.  
  501. ["TimeSound"] = {
  502. Create = function(id, par, vol, pit, timepos)
  503. coroutine.resume(coroutine.create(function()
  504. local S = Create("Sound"){
  505. Volume = vol,
  506. Name = "EffectSoundo",
  507. Pitch = pit or 1,
  508. SoundId = id,
  509. TimePosition = timepos,
  510. Parent = par or workspace,
  511. }
  512. wait()
  513. S:play()
  514. game:GetService("Debris"):AddItem(S, 10)
  515. end))
  516. end;
  517. };
  518. ["EchoSound"] = {
  519. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  520. coroutine.resume(coroutine.create(function()
  521. local Sas = Create("Sound"){
  522. Volume = vol,
  523. Name = "EffectSoundo",
  524. Pitch = pit or 1,
  525. SoundId = id,
  526. TimePosition = timepos,
  527. Parent = par or workspace,
  528. }
  529. local E = Create("EchoSoundEffect"){
  530. Delay = echodelay,
  531. Name = "Echo",
  532. Feedback = fedb,
  533. DryLevel = dryl,
  534. Parent = Sas,
  535. }
  536. wait()
  537. Sas:play()
  538. game:GetService("Debris"):AddItem(Sas, delays)
  539. end))
  540. end;
  541. };
  542.  
  543. ["LongSound"] = {
  544. Create = function(id, par, vol, pit)
  545. coroutine.resume(coroutine.create(function()
  546. local S = Create("Sound"){
  547. Volume = vol,
  548. Pitch = pit or 1,
  549. SoundId = id,
  550. Parent = par or workspace,
  551. }
  552. wait()
  553. S:play()
  554. game:GetService("Debris"):AddItem(S, 60)
  555. end))
  556. end;
  557. };
  558.  
  559. ["ParticleEmitter"] = {
  560. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  561. local fp = Create("ParticleEmitter"){
  562. Parent = Parent,
  563. Color = ColorSequence.new(Color1, Color2),
  564. LightEmission = LightEmission,
  565. Size = Size,
  566. Texture = Texture,
  567. Transparency = Transparency,
  568. ZOffset = ZOffset,
  569. Acceleration = Accel,
  570. Drag = Drag,
  571. LockedToPart = LockedToPart,
  572. VelocityInheritance = VelocityInheritance,
  573. EmissionDirection = EmissionDirection,
  574. Enabled = Enabled,
  575. Lifetime = LifeTime,
  576. Rate = Rate,
  577. Rotation = Rotation,
  578. RotSpeed = RotSpeed,
  579. Speed = Speed,
  580. VelocitySpread = VelocitySpread,
  581. }
  582. return fp
  583. end;
  584. };
  585.  
  586. CreateTemplate = {
  587.  
  588. };
  589. }
  590.  
  591.  
  592.  
  593. New = function(Object, Parent, Name, Data)
  594. local Object = Instance.new(Object)
  595. for Index, Value in pairs(Data or {}) do
  596. Object[Index] = Value
  597. end
  598. Object.Parent = Parent
  599. Object.Name = Name
  600. return Object
  601. end
  602. local halocolor = BrickColor.new("Pastel light blue")
  603. local halocolor2 = BrickColor.new("Cool yellow")
  604. local starcolor = BrickColor.new("Bright yellow")
  605. local lunacolor = BrickColor.new("Navy blue")
  606. local lunacolor2 = BrickColor.new("Bright blue")
  607. local wepcolor = BrickColor.new("Really black")
  608. local maincolor = BrickColor.new("Really black")
  609. local m = Instance.new("Model",char)
  610. local m2 = Instance.new("Model",char)
  611. local m3 = Instance.new("Model",char)
  612. local mw1 = Instance.new("Model",char)
  613. local mw2 = Instance.new("Model",char)
  614.  
  615.  
  616. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  617. local gui = it(GuiType)
  618. gui.Parent = parent
  619. gui.Text = text
  620. gui.BackgroundTransparency = backtrans
  621. gui.BackgroundColor3 = backcol
  622. gui.SizeConstraint = "RelativeXY"
  623. gui.TextXAlignment = "Center"
  624. gui.TextYAlignment = "Center"
  625. gui.Position = pos
  626. gui.Size = size
  627. gui.Font = "SourceSans"
  628. gui.FontSize = "Size14"
  629. gui.TextWrapped = false
  630. gui.TextStrokeTransparency = 0
  631. gui.TextColor = BrickColor.new("White")
  632. return gui
  633. end
  634. --------------------------- GUI STUFF
  635. local basgui = it("GuiMain")
  636. basgui.Parent = plr.PlayerGui
  637. basgui.Name = "VISgui"
  638. local fullscreenz = it("Frame")
  639. fullscreenz.Parent = basgui
  640. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  641. fullscreenz.BackgroundTransparency = 1
  642. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  643. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  644. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  645. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  646. imgl2.BackgroundTransparency = 1
  647. imgl2.BorderSizePixel = 0
  648. imgl2.ImageTransparency = 0.5
  649. imgl2.ImageColor3 = Color3.new(1,0,0)
  650. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  651. imgl2.Size = UDim2.new(0,1000,0,1000)
  652. imgl2.Image = "rbxassetid://2325939897"
  653. local techc = imgl2:Clone()
  654. techc.Parent = fullscreenz
  655. techc.ImageTransparency = 0
  656. techc.Size = UDim2.new(0,900,0,900)
  657. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  658. techc.ImageColor3 = Color3.new(1,0,0)
  659. techc.Image = "rbxassetid://2273224484"
  660. local circl = imgl2:Clone()
  661. circl.Parent = fullscreenz
  662. circl.ImageTransparency = 0
  663. circl.Size = UDim2.new(0,550,0,550)
  664. circl.Position = UDim2.new(0.75,25,0.55,25)
  665. circl.ImageColor3 = Color3.new(0,0,0)
  666. circl.Image = "rbxassetid://2312119891"
  667. local circl2 = imgl2:Clone()
  668. circl2.Parent = fullscreenz
  669. circl2.ImageTransparency = 0
  670. circl2.Size = UDim2.new(0,700,0,700)
  671. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  672. circl2.ImageColor3 = Color3.new(1,0,0)
  673. circl2.Image = "rbxassetid://2312119891"
  674. local imgl2b = imgl2:Clone()
  675. imgl2b.Parent = fullscreenz
  676. imgl2b.ImageTransparency = 0
  677. imgl2b.Size = UDim2.new(0,800,0,800)
  678. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  679. imgl2b.ImageColor3 = Color3.new(0,0,0)
  680. local ned = Instance.new("TextLabel",fullscreenz)
  681. ned.ZIndex = 2
  682. ned.Font = "Arcade"
  683. ned.BackgroundTransparency = 1
  684. ned.BorderSizePixel = 0.65
  685. ned.Size = UDim2.new(0.3,0,0.2,0)
  686. ned.Position = UDim2.new(0.7,0,0.8,0)
  687. ned.TextColor3 = BrickColor.new("Really red").Color
  688. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  689. ned.TextScaled = true
  690. ned.TextStrokeTransparency = 0
  691. ned.Text = "iiOmq_JacobXX2 The Cool Guy"
  692. ned.TextSize = 24
  693. ned.Rotation = 1
  694. ned.TextXAlignment = "Right"
  695. ned.TextYAlignment = "Bottom"
  696.  
  697. local extrawingmod1 = Instance.new("Model",char)
  698. local extrawingmod2 = Instance.new("Model",char)
  699.  
  700. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  701. local p = Instance.new("Part")
  702. p.TopSurface = 0
  703. p.BottomSurface = 0
  704. p.Parent = parent
  705. p.Size = Vector3.new(0.1,0.1,0.1)
  706. p.Transparency = transparency
  707. p.Reflectance = reflectance
  708. p.CanCollide = false
  709. p.Locked = true
  710. p.BrickColor = brickcolor
  711. p.Material = material
  712. return p
  713. end
  714.  
  715. function CreateMesh(parent,meshtype,x1,y1,z1)
  716. local mesh = Instance.new("SpecialMesh",parent)
  717. mesh.MeshType = meshtype
  718. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  719. return mesh
  720. end
  721.  
  722. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  723. local mesh = Instance.new("SpecialMesh",parent)
  724. mesh.MeshType = "FileMesh"
  725. mesh.MeshId = meshid
  726. mesh.Scale = Vector3.new(x1,y1,z1)
  727. return mesh
  728. end
  729.  
  730.  
  731. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  732. local mesh = Instance.new("SpecialMesh",parent)
  733. mesh.MeshType = "FileMesh"
  734. mesh.MeshId = meshid
  735. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  736. mesh.Scale = Vector3.new(x1,y1,z1)
  737. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  738. return mesh
  739. end
  740.  
  741. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  742. local weld = Instance.new("Weld")
  743. weld.Parent = parent
  744. weld.Part0 = part0
  745. weld.Part1 = part1
  746. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  747. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  748. return weld
  749. end
  750.  
  751.  
  752. --------------
  753. --------------
  754. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  755. 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))
  756. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  757. 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))
  758.  
  759. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  760. CreateMesh(handle,"Brick",0,0,0)
  761. 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))
  762. local valuaring = 10
  763. for i = 0, 49 do
  764. valuaring = valuaring + 10
  765. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  766. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  767. 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))
  768. end
  769.  
  770. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  771. CreateMesh(handle,"Brick",0,0,0)
  772. 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))
  773. local valuaring = 10
  774. for i = 0, 49 do
  775. valuaring = valuaring + 10
  776. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  777. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  778. 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))
  779. end
  780.  
  781.  
  782. local handle = CreateParta(m,1,1,"Neon",maincolor)
  783. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  784. 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))
  785.  
  786. --- Left wing.
  787.  
  788. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  789. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  790. 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))
  791.  
  792. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  794. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  795. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  796. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  797. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  798. A0 = Instance.new('Attachment',wed)
  799. A0.Position = vt(0,0.25,0.25)
  800. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  801. CreateMesh(wed,"Wedge",0.05,0.5,3)
  802. 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))
  803. A1 = Instance.new('Attachment',wed)
  804. A1.Position = vt(0,-0.25,-2)
  805. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  806. CreateMesh(wed,"Wedge",0.05,3,0.5)
  807. 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))
  808.  
  809. tl1 = Instance.new('Trail',wed)
  810. tl1.Attachment0 = A1
  811. tl1.Attachment1 = A0
  812. tl1.Texture = "rbxassetid://2108945559"
  813. tl1.LightEmission = 1
  814. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  815. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  816. tl1.Lifetime = 0.6
  817.  
  818.  
  819. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  820. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  821. 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))
  822.  
  823. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  825. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  826. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  828. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  829. A0 = Instance.new('Attachment',wed)
  830. A0.Position = vt(0,0.25,0.25)
  831. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  832. CreateMesh(wed,"Wedge",0.05,0.5,3)
  833. 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))
  834. A1 = Instance.new('Attachment',wed)
  835. A1.Position = vt(0,-0.25,-2)
  836. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,3,0.5)
  838. 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))
  839.  
  840. tl2 = Instance.new('Trail',wed)
  841. tl2.Attachment0 = A1
  842. tl2.Attachment1 = A0
  843. tl2.Texture = "rbxassetid://2108945559"
  844. tl2.LightEmission = 1
  845. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  846. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  847. tl2.Lifetime = 0.6
  848.  
  849. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  850. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  851. 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))
  852.  
  853. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. A0 = Instance.new('Attachment',wed)
  860. A0.Position = vt(0,0.25,0.25)
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,3)
  863. 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))
  864. A1 = Instance.new('Attachment',wed)
  865. A1.Position = vt(0,-0.25,-2)
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,3,0.5)
  868. 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))
  869.  
  870. tl3 = Instance.new('Trail',wed)
  871. tl3.Attachment0 = A1
  872. tl3.Attachment1 = A0
  873. tl3.Texture = "rbxassetid://2108945559"
  874. tl3.LightEmission = 1
  875. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  876. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  877. tl3.Lifetime = 0.6
  878.  
  879. tl1.Enabled = false
  880. tl2.Enabled = false
  881. tl3.Enabled = false
  882. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  883. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  884. 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))
  885.  
  886. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  888. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  889. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  892. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,3)
  894. 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))
  895. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,3,0.5)
  897. 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))
  898.  
  899. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  900. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  901. 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))
  902.  
  903. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,0.5,3)
  911. 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))
  912. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,3,0.5)
  914. 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))
  915.  
  916. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  917. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  918. 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))
  919.  
  920. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  922. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  923. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  926. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,3)
  928. 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))
  929. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,3,0.5)
  931. 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))
  932.  
  933. -- Right wing.
  934.  
  935. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  936. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  937. 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))
  938.  
  939. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  941. 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))
  942. A0 = Instance.new('Attachment',wed)
  943. A0.Position = vt(0,0.25,0.25)
  944. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  946. 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))
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,3)
  949. 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))
  950. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,3,0.5)
  952. 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))
  953. A1 = Instance.new('Attachment',wed)
  954. A1.Position = vt(0,2,0.25)
  955.  
  956. tr1 = Instance.new('Trail',wed)
  957. tr1.Attachment0 = A1
  958. tr1.Attachment1 = A0
  959. tr1.Texture = "rbxassetid://2108945559"
  960. tr1.LightEmission = 1
  961. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  962. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  963. tr1.Lifetime = 0.6
  964.  
  965. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  966. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  967. 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))
  968.  
  969. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  970. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  971. 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))
  972. A0 = Instance.new('Attachment',wed)
  973. A0.Position = vt(0,0.25,0.25)
  974. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  975. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  976. 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))
  977. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,3)
  979. 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))
  980. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,3,0.5)
  982. 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))
  983. A1 = Instance.new('Attachment',wed)
  984. A1.Position = vt(0,2,0.25)
  985.  
  986. tr2 = Instance.new('Trail',wed)
  987. tr2.Attachment0 = A1
  988. tr2.Attachment1 = A0
  989. tr2.Texture = "rbxassetid://2108945559"
  990. tr2.LightEmission = 1
  991. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  992. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  993. tr2.Lifetime = 0.6
  994.  
  995. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  996. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  997. 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))
  998.  
  999. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1001. 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))
  1002. A0 = Instance.new('Attachment',wed)
  1003. A0.Position = vt(0,0.25,0.25)
  1004. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. 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))
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1009. 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))
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1012. 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))
  1013. A1 = Instance.new('Attachment',wed)
  1014. A1.Position = vt(0,2,0.25)
  1015.  
  1016. tr3 = Instance.new('Trail',wed)
  1017. tr3.Attachment0 = A1
  1018. tr3.Attachment1 = A0
  1019. tr3.Texture = "rbxassetid://2108945559"
  1020. tr3.LightEmission = 1
  1021. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1022. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1023. tr3.Lifetime = 0.6
  1024.  
  1025.  
  1026. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. 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))
  1029.  
  1030. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1033. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1035. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1036. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1038. 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))
  1039. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1041. 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))
  1042.  
  1043. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1044. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1045. 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))
  1046.  
  1047. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1049. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1050. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1051. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1052. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1053. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1054. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1055. 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))
  1056. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1058. 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))
  1059.  
  1060. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1061. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1062. 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))
  1063.  
  1064. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1066. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1068. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1069. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1070. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1072. 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))
  1073. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1075. 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))
  1076.  
  1077. --HERES THE RING
  1078.  
  1079.  
  1080. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1081. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1082. 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))
  1083. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1084. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1085. 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))
  1086. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1087. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1088. 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))
  1089.  
  1090.  
  1091. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1092. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1093. 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))
  1094.  
  1095. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1096. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1097. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1098.  
  1099.  
  1100.  
  1101. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1102. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1103. 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))
  1104.  
  1105. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1106. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1107. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1108.  
  1109. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1110. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1111. 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))
  1112.  
  1113. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1114. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1115. 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))
  1116. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1117. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1118. 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))]]--
  1119.  
  1120. --- second ring
  1121.  
  1122.  
  1123. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1124. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1125. 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))
  1126.  
  1127. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1128. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1129. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1130.  
  1131.  
  1132.  
  1133. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1134. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1135. 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))
  1136.  
  1137. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1138. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1139. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1140.  
  1141. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1142. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1143. 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))
  1144.  
  1145. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1146. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1147. 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))
  1148. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1149. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1150. 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))
  1151.  
  1152.  
  1153.  
  1154. for i, v in pairs(m:GetChildren()) do
  1155. if v:IsA("Part") then
  1156. v.BrickColor = BrickColor.new("Really black")
  1157. v.Material = "Glass"
  1158. end
  1159. end
  1160. for i, v in pairs(m2:GetChildren()) do
  1161. if v:IsA("Part") then
  1162. v.BrickColor = BrickColor.new("Crimson")
  1163. v.Material = "Granite"
  1164. end
  1165. end
  1166. for i, v in pairs(m3:GetChildren()) do
  1167. if v:IsA("Part") then
  1168. v.BrickColor = BrickColor.new("Really red")
  1169. v.Material = "Neon"
  1170. end
  1171. end
  1172. for i, v in pairs(mw2:GetChildren()) do
  1173. if v:IsA("Part") then
  1174. v.BrickColor = BrickColor.new("Really red")
  1175. v.Material = "Neon"
  1176. end
  1177. end
  1178. for i, v in pairs(mw1:GetChildren()) do
  1179. if v:IsA("Part") then
  1180. v.Transparency = 1
  1181. v.BrickColor = BrickColor.new("Really red")
  1182. v.Material = "Neon"
  1183. end
  1184. end
  1185. for i, v in pairs(extrawingmod1:GetChildren()) do
  1186. if v:IsA("Part") then
  1187. v.Transparency = 1
  1188. v.BrickColor = BrickColor.new("White")
  1189. v.Material = "Neon"
  1190. end
  1191. end
  1192. for i, v in pairs(extrawingmod2:GetChildren()) do
  1193. if v:IsA("Part") then
  1194. v.Transparency = 1
  1195. v.BrickColor = BrickColor.new("White")
  1196. v.Material = "Neon"
  1197. end
  1198. end
  1199. local MAINRUINCOLOR = BrickColor.new("Really red")
  1200. ------
  1201.  
  1202.  
  1203. function RemoveOutlines(part)
  1204. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1205. end
  1206. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1207. local Part = Create("Part")({
  1208. Parent = Parent,
  1209. Reflectance = Reflectance,
  1210. Transparency = Transparency,
  1211. CanCollide = false,
  1212. Locked = true,
  1213. BrickColor = BrickColor.new(tostring(BColor)),
  1214. Name = Name,
  1215. Size = Size,
  1216. Material = Material
  1217. })
  1218. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1219. RemoveOutlines(Part)
  1220. return Part
  1221. end
  1222. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1223. local Msh = Create(Mesh)({
  1224. Parent = Part,
  1225. Offset = OffSet,
  1226. Scale = Scale
  1227. })
  1228. if Mesh == "SpecialMesh" then
  1229. Msh.MeshType = MeshType
  1230. Msh.MeshId = MeshId
  1231. end
  1232. return Msh
  1233. end
  1234. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1235. local Weld = Create("Weld")({
  1236. Parent = Parent,
  1237. Part0 = Part0,
  1238. Part1 = Part1,
  1239. C0 = C0,
  1240. C1 = C1
  1241. })
  1242. return Weld
  1243. end
  1244.  
  1245. Player = plr
  1246. Character=Player.Character
  1247. PlayerGui=Player.PlayerGui
  1248. Backpack=Player.Backpack
  1249. Torso=Character.Torso
  1250. Head=Character.Head
  1251. Humanoid=Character.Humanoid
  1252. m=Instance.new('Model',Character)
  1253. LeftArm=Character["Left Arm"]
  1254. LeftLeg=Character["Left Leg"]
  1255. RightArm=Character["Right Arm"]
  1256. RightLeg=Character["Right Leg"]
  1257. LS=Torso["Left Shoulder"]
  1258. LH=Torso["Left Hip"]
  1259. RS=Torso["Right Shoulder"]
  1260. RH=Torso["Right Hip"]
  1261. Face = Head.face
  1262. Neck=Torso.Neck
  1263. it=Instance.new
  1264. attacktype=1
  1265. vt=Vector3.new
  1266. cf=CFrame.new
  1267. euler=CFrame.fromEulerAnglesXYZ
  1268. angles=CFrame.Angles
  1269. cloaked=false
  1270. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1271. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1272. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1273. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1274. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1275. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1276. RootPart=Character.HumanoidRootPart
  1277. RootJoint=RootPart.RootJoint
  1278. RootCF=euler(-1.57,0,3.14)
  1279. attack = false
  1280. attackdebounce = false
  1281. deb=false
  1282. equipped=true
  1283. hand=false
  1284. combo=0
  1285. mana=0
  1286. trispeed=.2
  1287. attackmode='none'
  1288. local idle=0
  1289. local Anim="Idle"
  1290. local Effects={}
  1291. local gun=false
  1292. local shoot=false
  1293. local sine = 0
  1294. local change = 1
  1295.  
  1296. function RecolorTextAndRename(name,col1,col2,font)
  1297. modet.TextStrokeColor3 = col2
  1298. modet.TextColor3 = col1
  1299. modet.Font = font
  1300. modet.Text = name
  1301. techc.ImageColor3 = col2
  1302. circl.ImageColor3 = col2
  1303. circl2.ImageColor3 = col1
  1304. imgl2.ImageColor3 = col1
  1305. imgl2b.ImageColor3 = col2
  1306. ned.Text = name
  1307. ned.TextColor3 = col1
  1308. ned.TextStrokeColor3 = col2
  1309. end
  1310. --save shoulders
  1311. RSH, LSH=nil, nil
  1312. --welds
  1313. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1314. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1315. LH=Torso["Left Hip"]
  1316. RH=Torso["Right Hip"]
  1317. TorsoColor=Torso.BrickColor
  1318. function NoOutline(Part)
  1319. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1320. end
  1321. ch=Character
  1322. RSH=ch.Torso["Right Shoulder"]
  1323. LSH=ch.Torso["Left Shoulder"]
  1324. --
  1325. RSH.Parent=nil
  1326. LSH.Parent=nil
  1327. --
  1328. RW.Name="Right Shoulder"
  1329. RW.Part0=ch.Torso
  1330. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1331. RW.C1=cf(0, 0.5, 0)
  1332. RW.Part1=ch["Right Arm"]
  1333. RW.Parent=ch.Torso
  1334. --
  1335. LW.Name="Left Shoulder"
  1336. LW.Part0=ch.Torso
  1337. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1338. LW.C1=cf(0, 0.5, 0)
  1339. LW.Part1=ch["Left Arm"]
  1340. LW.Parent=ch.Torso
  1341.  
  1342. local Stats=Instance.new("BoolValue")
  1343. Stats.Name="Stats"
  1344. Stats.Parent=Character
  1345. local Atk=Instance.new("NumberValue")
  1346. Atk.Name="Damage"
  1347. Atk.Parent=Stats
  1348. Atk.Value=1
  1349. local Def=Instance.new("NumberValue")
  1350. Def.Name="Defense"
  1351. Def.Parent=Stats
  1352. Def.Value=1
  1353. local Speed=Instance.new("NumberValue")
  1354. Speed.Name="Speed"
  1355. Speed.Parent=Stats
  1356. Speed.Value=1
  1357. local Mvmt=Instance.new("NumberValue")
  1358. Mvmt.Name="Movement"
  1359. Mvmt.Parent=Stats
  1360. Mvmt.Value=1
  1361.  
  1362. local donum=0
  1363. local ast = {744586075,385254610}
  1364.  
  1365. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1366. local fp=it("Part")
  1367. fp.formFactor=formfactor
  1368. fp.Parent=parent
  1369. fp.Reflectance=reflectance
  1370. fp.Transparency=transparency
  1371. fp.CanCollide=false
  1372. fp.Locked=true
  1373. fp.BrickColor=brickcolor
  1374. fp.Name=name
  1375. fp.Size=size
  1376. fp.Position=Torso.Position
  1377. NoOutline(fp)
  1378. fp.Material="SmoothPlastic"
  1379. fp:BreakJoints()
  1380. return fp
  1381. end
  1382.  
  1383. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1384. local mesh=it(Mesh)
  1385. mesh.Parent=part
  1386. if Mesh=="SpecialMesh" then
  1387. mesh.MeshType=meshtype
  1388. if meshid~="nil" then
  1389. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1390. end
  1391. end
  1392. mesh.Offset=offset
  1393. mesh.Scale=scale
  1394. return mesh
  1395. end
  1396.  
  1397. function weld(parent,part0,part1,c0)
  1398. local weld=it("Weld")
  1399. weld.Parent=parent
  1400. weld.Part0=part0
  1401. weld.Part1=part1
  1402. weld.C0=c0
  1403. return weld
  1404. end
  1405.  
  1406. local Color1=Torso.BrickColor
  1407.  
  1408. local bodvel=Instance.new("BodyVelocity")
  1409. local bg=Instance.new("BodyGyro")
  1410.  
  1411. --------- SazEreno's Artificial HB --------------
  1412. ArtificialHB = Instance.new("BindableEvent", script)
  1413. ArtificialHB.Name = "ArtificialHB"
  1414.  
  1415. script:WaitForChild("ArtificialHB")
  1416. Frame_Speed = 1 / 60
  1417. frame = Frame_Speed
  1418. tf = 0
  1419. allowframeloss = false
  1420. tossremainder = false
  1421. lastframe = tick()
  1422. script.ArtificialHB:Fire()
  1423.  
  1424. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1425. tf = tf + s
  1426. if tf >= frame then
  1427. if allowframeloss then
  1428. script.ArtificialHB:Fire()
  1429. lastframe = tick()
  1430. else
  1431. for i = 1, math.floor(tf / frame) do
  1432. script.ArtificialHB:Fire()
  1433. end
  1434. lastframe = tick()
  1435. end
  1436. if tossremainder then
  1437. tf = 0
  1438. else
  1439. tf = tf - frame * math.floor(tf / frame)
  1440. end
  1441. end
  1442. end)
  1443.  
  1444. ------------------
  1445. function swait(num)
  1446. if num == 0 or num == nil then
  1447. ArtificialHB.Event:wait()
  1448. else
  1449. for i = 1, num do
  1450. ArtificialHB.Event:wait()
  1451. end
  1452. end
  1453. end
  1454. -------- RAINBOW LEAVE IT TO ME
  1455. local r = 255
  1456. local g = 0
  1457. local b = 0
  1458. coroutine.resume(coroutine.create(function()
  1459. while wait() do
  1460. for i = 0, 254/5 do
  1461. swait()
  1462. g = g + 5
  1463. end
  1464. for i = 0, 254/5 do
  1465. swait()
  1466. r = r - 5
  1467. end
  1468. for i = 0, 254/5 do
  1469. swait()
  1470. b = b + 5
  1471. end
  1472. for i = 0, 254/5 do
  1473. swait()
  1474. g = g - 5
  1475. end
  1476. for i = 0, 254/5 do
  1477. swait()
  1478. r = r + 5
  1479. end
  1480. for i = 0, 254/5 do
  1481. swait()
  1482. b = b - 5
  1483. end
  1484. end
  1485. end))
  1486.  
  1487.  
  1488. so = function(id,par,vol,pit)
  1489. coroutine.resume(coroutine.create(function()
  1490. local sou = Instance.new("Sound",par or workspace)
  1491. sou.Volume=vol
  1492. sou.Pitch=pit or 1
  1493. sou.SoundId=id
  1494. swait()
  1495. sou:play()
  1496. game:GetService("Debris"):AddItem(sou,6)
  1497. end))
  1498. end
  1499.  
  1500. function clerp(a,b,t)
  1501. local qa = {QuaternionFromCFrame(a)}
  1502. local qb = {QuaternionFromCFrame(b)}
  1503. local ax, ay, az = a.x, a.y, a.z
  1504. local bx, by, bz = b.x, b.y, b.z
  1505. local _t = 1-t
  1506. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1507. end
  1508.  
  1509. function QuaternionFromCFrame(cf)
  1510. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1511. local trace = m00 + m11 + m22
  1512. if trace > 0 then
  1513. local s = math.sqrt(1 + trace)
  1514. local recip = 0.5/s
  1515. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1516. else
  1517. local i = 0
  1518. if m11 > m00 then
  1519. i = 1
  1520. end
  1521. if m22 > (i == 0 and m00 or m11) then
  1522. i = 2
  1523. end
  1524. if i == 0 then
  1525. local s = math.sqrt(m00-m11-m22+1)
  1526. local recip = 0.5/s
  1527. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1528. elseif i == 1 then
  1529. local s = math.sqrt(m11-m22-m00+1)
  1530. local recip = 0.5/s
  1531. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1532. elseif i == 2 then
  1533. local s = math.sqrt(m22-m00-m11+1)
  1534. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1535. end
  1536. end
  1537. end
  1538.  
  1539. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1540. local xs, ys, zs = x + x, y + y, z + z
  1541. local wx, wy, wz = w*xs, w*ys, w*zs
  1542. local xx = x*xs
  1543. local xy = x*ys
  1544. local xz = x*zs
  1545. local yy = y*ys
  1546. local yz = y*zs
  1547. local zz = z*zs
  1548. 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))
  1549. end
  1550.  
  1551. function QuaternionSlerp(a, b, t)
  1552. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1553. local startInterp, finishInterp;
  1554. if cosTheta >= 0.0001 then
  1555. if (1 - cosTheta) > 0.0001 then
  1556. local theta = math.acos(cosTheta)
  1557. local invSinTheta = 1/math.sin(theta)
  1558. startInterp = math.sin((1-t)*theta)*invSinTheta
  1559. finishInterp = math.sin(t*theta)*invSinTheta
  1560. else
  1561. startInterp = 1-t
  1562. finishInterp = t
  1563. end
  1564. else
  1565. if (1+cosTheta) > 0.0001 then
  1566. local theta = math.acos(-cosTheta)
  1567. local invSinTheta = 1/math.sin(theta)
  1568. startInterp = math.sin((t-1)*theta)*invSinTheta
  1569. finishInterp = math.sin(t*theta)*invSinTheta
  1570. else
  1571. startInterp = t-1
  1572. finishInterp = t
  1573. end
  1574. end
  1575. 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
  1576. end
  1577.  
  1578. local function CFrameFromTopBack(at, top, back)
  1579. local right = top:Cross(back)
  1580. return CFrame.new(at.x, at.y, at.z,
  1581. right.x, top.x, back.x,
  1582. right.y, top.y, back.y,
  1583. right.z, top.z, back.z)
  1584. end
  1585.  
  1586. function Triangle(a, b, c)
  1587. local edg1 = (c-a):Dot((b-a).unit)
  1588. local edg2 = (a-b):Dot((c-b).unit)
  1589. local edg3 = (b-c):Dot((a-c).unit)
  1590. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1591. a, b, c = a, b, c
  1592. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1593. a, b, c = b, c, a
  1594. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1595. a, b, c = c, a, b
  1596. else
  1597. assert(false, "unreachable")
  1598. end
  1599.  
  1600. local len1 = (c-a):Dot((b-a).unit)
  1601. local len2 = (b-a).magnitude - len1
  1602. local width = (a + (b-a).unit*len1 - c).magnitude
  1603.  
  1604. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1605.  
  1606. local list = {}
  1607.  
  1608. if len1 > 0.01 then
  1609. local w1 = Instance.new('WedgePart', m)
  1610. game:GetService("Debris"):AddItem(w1,5)
  1611. w1.Material = "SmoothPlastic"
  1612. w1.FormFactor = 'Custom'
  1613. w1.BrickColor = BrickColor.new("Really red")
  1614. w1.Transparency = 0
  1615. w1.Reflectance = 0
  1616. w1.Material = "SmoothPlastic"
  1617. w1.CanCollide = false
  1618. local l1 = Instance.new("PointLight",w1)
  1619. l1.Color = Color3.new(170,0,0)
  1620. NoOutline(w1)
  1621. local sz = Vector3.new(0.2, width, len1)
  1622. w1.Size = sz
  1623. local sp = Instance.new("SpecialMesh",w1)
  1624. sp.MeshType = "Wedge"
  1625. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1626. w1:BreakJoints()
  1627. w1.Anchored = true
  1628. w1.Parent = workspace
  1629. w1.Transparency = 0.7
  1630. table.insert(Effects,{w1,"Disappear",.01})
  1631. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1632. table.insert(list,w1)
  1633. end
  1634.  
  1635. if len2 > 0.01 then
  1636. local w2 = Instance.new('WedgePart', m)
  1637. game:GetService("Debris"):AddItem(w2,5)
  1638. w2.Material = "SmoothPlastic"
  1639. w2.FormFactor = 'Custom'
  1640. w2.BrickColor = BrickColor.new("Really red")
  1641. w2.Transparency = 0
  1642. w2.Reflectance = 0
  1643. w2.Material = "SmoothPlastic"
  1644. w2.CanCollide = false
  1645. local l2 = Instance.new("PointLight",w2)
  1646. l2.Color = Color3.new(170,0,0)
  1647. NoOutline(w2)
  1648. local sz = Vector3.new(0.2, width, len2)
  1649. w2.Size = sz
  1650. local sp = Instance.new("SpecialMesh",w2)
  1651. sp.MeshType = "Wedge"
  1652. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1653. w2:BreakJoints()
  1654. w2.Anchored = true
  1655. w2.Parent = workspace
  1656. w2.Transparency = 0.7
  1657. table.insert(Effects,{w2,"Disappear",.01})
  1658. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1659. table.insert(list,w2)
  1660. end
  1661. return unpack(list)
  1662. end
  1663.  
  1664.  
  1665. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1666. if hit.Parent == nil then
  1667. return
  1668. end
  1669. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1670. for _, v in pairs(hit.Parent:children()) do
  1671. if v:IsA("Humanoid") then
  1672. h = v
  1673. end
  1674. end
  1675. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1676. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1677. return
  1678. end
  1679. local c = Create("ObjectValue")({
  1680. Name = "creator",
  1681. Value = game:GetService("Players").LocalPlayer,
  1682. Parent = h
  1683. })
  1684. game:GetService("Debris"):AddItem(c, 0.5)
  1685. if HitSound ~= nil and HitPitch ~= nil then
  1686. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1687. end
  1688. local Damage = math.random(minim, maxim)
  1689. local blocked = false
  1690. local block = hit.Parent:findFirstChild("Block")
  1691. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1692. blocked = true
  1693. block.Value = block.Value - 1
  1694. print(block.Value)
  1695. end
  1696. if blocked == false then
  1697. HitHealth = h.Health
  1698. h.MaxHealth = 100
  1699. h.Health = h.Health - Damage
  1700. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1701. print("gained kill")
  1702. dmg(h.Parent)
  1703. end
  1704. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1705. else
  1706. h.Health = h.Health - Damage / 2
  1707. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1708. end
  1709. if Type == "Knockdown" then
  1710. local hum = hit.Parent.Humanoid
  1711. hum.PlatformStand = true
  1712. coroutine.resume(coroutine.create(function(HHumanoid)
  1713. swait(1)
  1714. HHumanoid.PlatformStand = false
  1715. end), hum)
  1716. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1717. local bodvol = Create("BodyVelocity")({
  1718. velocity = angle * knockback,
  1719. P = 5000,
  1720. maxForce = Vector3.new(8000, 8000, 8000),
  1721. Parent = hit
  1722. })
  1723. local rl = Create("BodyAngularVelocity")({
  1724. P = 3000,
  1725. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1726. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1727. Parent = hit
  1728. })
  1729. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1730. game:GetService("Debris"):AddItem(rl, 0.5)
  1731. elseif Type == "Normal" then
  1732. local vp = Create("BodyVelocity")({
  1733. P = 500,
  1734. maxForce = Vector3.new(math.huge, 0, math.huge),
  1735. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1736. })
  1737. if knockback > 0 then
  1738. vp.Parent = hit.Parent.Head
  1739. end
  1740. game:GetService("Debris"):AddItem(vp, 0.5)
  1741. elseif Type == "Up" then
  1742. local bodyVelocity = Create("BodyVelocity")({
  1743. velocity = Vector3.new(0, 20, 0),
  1744. P = 5000,
  1745. maxForce = Vector3.new(8000, 8000, 8000),
  1746. Parent = hit
  1747. })
  1748. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1749. local bodyVelocity = Create("BodyVelocity")({
  1750. velocity = Vector3.new(0, 20, 0),
  1751. P = 5000,
  1752. maxForce = Vector3.new(8000, 8000, 8000),
  1753. Parent = hit
  1754. })
  1755. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1756. elseif Type == "Leech" then
  1757. local hum = hit.Parent.Humanoid
  1758. if hum ~= nil then
  1759. for i = 0, 2 do
  1760. 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)
  1761. end
  1762. Humanoid.Health = Humanoid.Health + 10
  1763. end
  1764. elseif Type == "UpKnock" then
  1765. local hum = hit.Parent.Humanoid
  1766. hum.PlatformStand = true
  1767. if hum ~= nil then
  1768. hitr = true
  1769. end
  1770. coroutine.resume(coroutine.create(function(HHumanoid)
  1771. swait(5)
  1772. HHumanoid.PlatformStand = false
  1773. hitr = false
  1774. end), hum)
  1775. local bodyVelocity = Create("BodyVelocity")({
  1776. velocity = Vector3.new(0, 20, 0),
  1777. P = 5000,
  1778. maxForce = Vector3.new(8000, 8000, 8000),
  1779. Parent = hit
  1780. })
  1781. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1782. local bodyVelocity = Create("BodyVelocity")({
  1783. velocity = Vector3.new(0, 20, 0),
  1784. P = 5000,
  1785. maxForce = Vector3.new(8000, 8000, 8000),
  1786. Parent = hit
  1787. })
  1788. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1789. elseif Type == "Snare" then
  1790. local bp = Create("BodyPosition")({
  1791. P = 2000,
  1792. D = 100,
  1793. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1794. position = hit.Parent.Torso.Position,
  1795. Parent = hit.Parent.Torso
  1796. })
  1797. game:GetService("Debris"):AddItem(bp, 1)
  1798. elseif Type == "Slashnare" then
  1799. 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)
  1800. for i = 1, math.random(4, 5) do
  1801. 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)
  1802. end
  1803. local bp = Create("BodyPosition")({
  1804. P = 2000,
  1805. D = 100,
  1806. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1807. position = hit.Parent.Torso.Position,
  1808. Parent = hit.Parent.Torso
  1809. })
  1810. game:GetService("Debris"):AddItem(bp, 1)
  1811. elseif Type == "Spike" then
  1812. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1813. local bp = Create("BodyPosition")({
  1814. P = 2000,
  1815. D = 100,
  1816. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1817. position = hit.Parent.Torso.Position,
  1818. Parent = hit.Parent.Torso
  1819. })
  1820. game:GetService("Debris"):AddItem(bp, 1)
  1821. elseif Type == "Freeze" then
  1822. local BodPos = Create("BodyPosition")({
  1823. P = 50000,
  1824. D = 1000,
  1825. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1826. position = hit.Parent.Torso.Position,
  1827. Parent = hit.Parent.Torso
  1828. })
  1829. local BodGy = Create("BodyGyro")({
  1830. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1831. P = 20000,
  1832. Parent = hit.Parent.Torso,
  1833. cframe = hit.Parent.Torso.CFrame
  1834. })
  1835. hit.Parent.Torso.Anchored = true
  1836. coroutine.resume(coroutine.create(function(Part)
  1837. swait(1.5)
  1838. Part.Anchored = false
  1839. end), hit.Parent.Torso)
  1840. game:GetService("Debris"):AddItem(BodPos, 3)
  1841. game:GetService("Debris"):AddItem(BodGy, 3)
  1842. end
  1843. local debounce = Create("BoolValue")({
  1844. Name = "DebounceHit",
  1845. Parent = hit.Parent,
  1846. Value = true
  1847. })
  1848. game:GetService("Debris"):AddItem(debounce, Delay)
  1849. c = Instance.new("ObjectValue")
  1850. c.Name = "creator"
  1851. c.Value = Player
  1852. c.Parent = h
  1853. game:GetService("Debris"):AddItem(c, 0.5)
  1854. end
  1855. end
  1856. function ShowDamage(Pos, Text, Time, Color)
  1857. local Rate = 0.03333333333333333
  1858. local Pos = Pos or Vector3.new(0, 0, 0)
  1859. local Text = Text or ""
  1860. local Time = Time or 2
  1861. local Color = Color or Color3.new(1, 0, 1)
  1862. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1863. EffectPart.Anchored = true
  1864. local BillboardGui = Create("BillboardGui")({
  1865. Size = UDim2.new(3, 0, 3, 0),
  1866. Adornee = EffectPart,
  1867. Parent = EffectPart
  1868. })
  1869. local TextLabel = Create("TextLabel")({
  1870. BackgroundTransparency = 1,
  1871. Size = UDim2.new(1, 0, 1, 0),
  1872. Text = Text,
  1873. TextColor3 = Color,
  1874. TextScaled = true,
  1875. Font = Enum.Font.ArialBold,
  1876. Parent = BillboardGui
  1877. })
  1878. game.Debris:AddItem(EffectPart, Time + 0.1)
  1879. EffectPart.Parent = game:GetService("Workspace")
  1880. delay(0, function()
  1881. local Frames = Time / Rate
  1882. for Frame = 1, Frames do
  1883. wait(Rate)
  1884. local Percent = Frame / Frames
  1885. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1886. TextLabel.TextTransparency = Percent
  1887. end
  1888. if EffectPart and EffectPart.Parent then
  1889. EffectPart:Destroy()
  1890. end
  1891. end)
  1892. end
  1893. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1894. for _, c in pairs(workspace:children()) do
  1895. local hum = c:findFirstChildOfClass("Humanoid")
  1896. if hum ~= nil then
  1897. local head = c:findFirstChild("Head")
  1898. if head ~= nil then
  1899. local targ = head.Position - Part.Position
  1900. local mag = targ.magnitude
  1901. if magni >= mag and c.Name ~= Player.Name then
  1902. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1903. end
  1904. end
  1905. end
  1906. end
  1907. end
  1908.  
  1909. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1910. for _, c in pairs(workspace:children()) do
  1911. local hum = c:findFirstChild("Humanoid")
  1912. if hum ~= nil then
  1913. local head = c:findFirstChild("Torso")
  1914. if head ~= nil then
  1915. local targ = head.Position - Part.Position
  1916. local mag = targ.magnitude
  1917. if magni >= mag and c.Name ~= Player.Name then
  1918. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1919. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1920. end
  1921. end
  1922. end
  1923. end
  1924. end
  1925.  
  1926. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1927. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1928. end
  1929.  
  1930. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1931. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1932. prt.Anchored=true
  1933. prt.CFrame=cframe
  1934. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1935. --http://www.roblox.com/asset/?id=4770560
  1936. game:GetService("Debris"):AddItem(prt,2)
  1937. CF=prt.CFrame
  1938. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1939. for i=0,1,0.2 do
  1940. wait()
  1941. Part.CFrame=CF*cf(0,0,-0.4)
  1942. end
  1943. for i=0,1,delay do
  1944. wait()
  1945. --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)
  1946. Mesh.Scale=Mesh.Scale
  1947. end
  1948. for i=0,1,0.1 do
  1949. wait()
  1950. Part.Transparency=i
  1951. end
  1952. Part.Parent=nil
  1953. end),prt,msh,CF)
  1954. end
  1955.  
  1956. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1957. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1958. prt.Anchored=true
  1959. prt.Material = "Neon"
  1960. prt.CFrame=cframe
  1961. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1962. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1963. game:GetService("Debris"):AddItem(prt,5)
  1964. coroutine.resume(coroutine.create(function(Part,Mesh)
  1965. for i=0,1,delay do
  1966. swait()
  1967. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1968. Part.Transparency=i
  1969. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1970. end
  1971. Part.Parent=nil
  1972. end),prt,msh)
  1973. end
  1974.  
  1975. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1976. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1977. prt.Anchored=true
  1978. prt.Material = "Neon"
  1979. prt.CFrame=cframe
  1980. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1981. game:GetService("Debris"):AddItem(prt,5)
  1982. coroutine.resume(coroutine.create(function(Part,Mesh)
  1983. local rtype = rottype
  1984. for i=0,1,delay do
  1985. swait()
  1986. if rtype == 1 then
  1987. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1988. elseif rtype == 2 then
  1989. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1990. end
  1991. Part.Transparency=i
  1992. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1993. end
  1994. Part.Parent=nil
  1995. end),prt,msh)
  1996. end
  1997.  
  1998. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1999. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2000. prt.Anchored=true
  2001. prt.CFrame=cframe
  2002. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2003. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2004. game:GetService("Debris"):AddItem(prt,5)
  2005. coroutine.resume(coroutine.create(function(Part,Mesh)
  2006. for i=0,1,delay do
  2007. wait()
  2008. Part.Transparency=i
  2009. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2010. end
  2011. Part.Parent=nil
  2012. end),prt,msh)
  2013. end
  2014.  
  2015. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2016. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2017. prt.Anchored=true
  2018. prt.Material = "Neon"
  2019. prt.CFrame=cframe
  2020. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2021. game:GetService("Debris"):AddItem(prt,5)
  2022. coroutine.resume(coroutine.create(function(Part,Mesh)
  2023. local rtype = rottype
  2024. for i=0,1,delay do
  2025. swait()
  2026. if rtype == 1 then
  2027. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2028. elseif rtype == 2 then
  2029. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2030. end
  2031. Part.Transparency=i
  2032. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2033. end
  2034. Part.Parent=nil
  2035. end),prt,msh)
  2036. end
  2037.  
  2038. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2039. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2040. prt.Anchored=true
  2041. prt.Material = "Neon"
  2042. prt.CFrame=cframe
  2043. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2044. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2045. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2046. game:GetService("Debris"):AddItem(prt,5)
  2047. coroutine.resume(coroutine.create(function(Part,Mesh)
  2048. local rtype = rottype
  2049. for i=0,1,delay do
  2050. swait()
  2051. if rtype == 1 then
  2052. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2053. elseif rtype == 2 then
  2054. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2055. end
  2056. dec.Transparency=i
  2057. dec2.Transparency=i
  2058. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2059. end
  2060. Part.Parent=nil
  2061. end),prt,msh)
  2062. end
  2063.  
  2064. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2065. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2066. prt.Anchored=true
  2067. prt.Material = "Neon"
  2068. prt.CFrame=cframe
  2069. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2070. game:GetService("Debris"):AddItem(prt,5)
  2071. coroutine.resume(coroutine.create(function(Part,Mesh)
  2072. local rtype = rottype
  2073. for i=0,1,delay do
  2074. swait()
  2075. if rtype == 1 then
  2076. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2077. elseif rtype == 2 then
  2078. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2079. end
  2080. prt.Transparency=i
  2081. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2082. end
  2083. Part.Parent=nil
  2084. end),prt,msh)
  2085. end
  2086.  
  2087. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2088. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2089. prt.Anchored=true
  2090. prt.Material = "Neon"
  2091. prt.CFrame=cframe
  2092. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2093. game:GetService("Debris"):AddItem(prt,5)
  2094. coroutine.resume(coroutine.create(function(Part,Mesh)
  2095. local rtype = rottype
  2096. for i=0,1,delay do
  2097. swait()
  2098. if rtype == 1 then
  2099. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2100. elseif rtype == 2 then
  2101. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2102. end
  2103. prt.Transparency=i
  2104. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2105. end
  2106. Part.Parent=nil
  2107. end),prt,msh)
  2108. end
  2109.  
  2110. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2111. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2112. prt.Anchored=true
  2113. prt.Material = "Neon"
  2114. prt.CFrame=cframe
  2115. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2116. game:GetService("Debris"):AddItem(prt,5)
  2117. coroutine.resume(coroutine.create(function(Part,Mesh)
  2118. local rtype = rottype
  2119. for i=0,1,delay do
  2120. swait()
  2121. if rtype == 1 then
  2122. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2123. elseif rtype == 2 then
  2124. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2125. end
  2126. prt.Transparency=i
  2127. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2128. end
  2129. Part.Parent=nil
  2130. end),prt,msh)
  2131. end
  2132.  
  2133. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2134. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2135. prt.Anchored=true
  2136. prt.Material = "Neon"
  2137. prt.CFrame=cframe
  2138. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2139. game:GetService("Debris"):AddItem(prt,5)
  2140. coroutine.resume(coroutine.create(function(Part,Mesh)
  2141. local rtype = rottype
  2142. for i=0,1,delay do
  2143. swait()
  2144. if rtype == 1 then
  2145. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2146. elseif rtype == 2 then
  2147. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2148. end
  2149. prt.Transparency=i
  2150. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2151. end
  2152. Part.Parent=nil
  2153. end),prt,msh)
  2154. end
  2155.  
  2156. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2157. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2158. prt.Anchored=false
  2159. prt.CFrame=cframe
  2160. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2161. local wld=weld(prt,prt,Parent,cframe)
  2162. game:GetService("Debris"):AddItem(prt,5)
  2163. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2164. for i=0,1,delay do
  2165. wait()
  2166. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2167. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2168. Part.Transparency=i
  2169. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2170. end
  2171. Part.Parent=nil
  2172. end),prt,msh,wld)
  2173. end
  2174.  
  2175. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2176. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2177. prt.Anchored=false
  2178. prt.CFrame=cframe
  2179. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2180. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2181. game:GetService("Debris"):AddItem(prt,5)
  2182. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2183. for i=0,1,delay do
  2184. wait()
  2185. Weld.C0=euler(i*20,0,0)
  2186. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2187. Part.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh,wld)
  2192. end
  2193.  
  2194. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2195. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.CFrame=cframe
  2198. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2199. game:GetService("Debris"):AddItem(prt,2)
  2200. coroutine.resume(coroutine.create(function(Part,Mesh)
  2201. for i=0,1,delay do
  2202. wait()
  2203. Part.CFrame=Part.CFrame
  2204. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2205. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2206. prt2.Anchored=true
  2207. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2208. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2209. game:GetService("Debris"):AddItem(prt2,2)
  2210. coroutine.resume(coroutine.create(function(Part,Mesh)
  2211. for i=0,1,0.1 do
  2212. wait()
  2213. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2214. end
  2215. Part.Parent=nil
  2216. end),prt2,msh2)
  2217. end
  2218. for i=0,1,delay*2 do
  2219. wait()
  2220. Part.CFrame=Part.CFrame
  2221. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2222. end
  2223. Part.Parent=nil
  2224. end),prt,msh)
  2225. end
  2226.  
  2227. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2228. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2229. prt.Anchored=true
  2230. prt.CFrame=cframe
  2231. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2232. game:GetService("Debris"):AddItem(prt,2)
  2233. coroutine.resume(coroutine.create(function(Part,Mesh)
  2234. for i=0,1,delay do
  2235. wait()
  2236. Part.CFrame=Part.CFrame
  2237. Part.Transparency=i
  2238. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2239. end
  2240. Part.Parent=nil
  2241. end),prt,msh)
  2242. end
  2243.  
  2244. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2245. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2246. prt.Anchored=true
  2247. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2248. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2249. game:GetService("Debris"):AddItem(prt,2)
  2250. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2251. CF=Part.CFrame
  2252. Numbb=0
  2253. randnumb=math.random()/10
  2254. rand1=math.random()/10
  2255. for i=0,1,rand1 do
  2256. wait()
  2257. CF=CF*cf(0,math.random()/2,0)
  2258. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2259. Part.CFrame=CF*euler(Numbb,0,0)
  2260. Part.Transparency=i
  2261. Numbb=Numbb+randnumb
  2262. end
  2263. Part.Parent=nil
  2264. end),prt,CF,Numbb,randnumb)
  2265. end
  2266.  
  2267. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2268. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2269. prt.Anchored=true
  2270. prt.CFrame=cframe
  2271. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2272. game:GetService("Debris"):AddItem(prt,5)
  2273. coroutine.resume(coroutine.create(function(Part,Mesh)
  2274. for i=0,1,delay do
  2275. wait()
  2276. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2277. Part.Transparency=i
  2278. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2279. end
  2280. Part.Parent=nil
  2281. end),prt,msh)
  2282. end
  2283.  
  2284. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2285. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2286. prt.Anchored=true
  2287. prt.CFrame=cframe
  2288. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2289. game:GetService("Debris"):AddItem(prt,2)
  2290. coroutine.resume(coroutine.create(function(Part,Mesh)
  2291. for i=0,1,delay do
  2292. wait()
  2293. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2294. Part.Transparency=i
  2295. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2296. end
  2297. Part.Parent=nil
  2298. end),prt,msh)
  2299. end
  2300.  
  2301. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2302. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2303. prt.Anchored=true
  2304. prt.CFrame=cframe*cf(x,y,z)
  2305. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2306. game:GetService("Debris"):AddItem(prt,5)
  2307. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2308. local num=math.random()
  2309. local num2=math.random(-3,2)+math.random()
  2310. local numm=0
  2311. for i=0,1,delay*2 do
  2312. swait()
  2313. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2314. Part.Transparency=i
  2315. numm=numm+0.01
  2316. end
  2317. Part.Parent=nil
  2318. Mesh.Parent=nil
  2319. end),prt,msh,x,y,z)
  2320. end
  2321.  
  2322. function dmgstart(dmg,what)
  2323. hitcon = what.Touched:connect(function(hit)
  2324. local hum = hit.Parent:FindFirstChild("Humanoid")
  2325. if hum and not hum:IsDescendantOf(Character) then
  2326. hum:TakeDamage(dmg)
  2327. end
  2328. end)
  2329. end
  2330.  
  2331. function dmgstop()
  2332. hitcon:disconnect()
  2333. end
  2334.  
  2335. function Cloak()
  2336. Face.Parent=nil
  2337. cloaked=true
  2338. for _,v in pairs(Torso.Parent:children()) do
  2339. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2340. coroutine.resume(coroutine.create(function()
  2341. for i=0,1,0.2 do
  2342. wait()
  2343. v.Transparency=i
  2344. end
  2345. v.Transparency=1
  2346. end))
  2347. end
  2348. if v.className=="Hat" then
  2349. hatp=v.Handle
  2350. coroutine.resume(coroutine.create(function(derp)
  2351. for i=0,1,0.2 do
  2352. wait()
  2353. derp.Transparency=i
  2354. end
  2355. derp.Transparency=1
  2356. end),hatp)
  2357. end
  2358. end
  2359. for _,v in pairs(m:children()) do
  2360. if v.className=="Part" then
  2361. coroutine.resume(coroutine.create(function()
  2362. for i=0,1,0.2 do
  2363. wait()
  2364. v.Transparency=i
  2365. end
  2366. v.Transparency=1
  2367. end))
  2368. end
  2369. end
  2370. end
  2371.  
  2372. function UnCloak()
  2373. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2374. Face.Parent=Head
  2375. cloaked=false
  2376. for _,v in pairs(Torso.Parent:children()) do
  2377. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2378. coroutine.resume(coroutine.create(function()
  2379. for i=0,1,0.1 do
  2380. wait()
  2381. v.Transparency=v.Transparency-0.1
  2382. end
  2383. v.Transparency=0
  2384. end))
  2385. end
  2386. if v.className=="Hat" then
  2387. hatp=v.Handle
  2388. coroutine.resume(coroutine.create(function(derp)
  2389. for i=0,1,0.1 do
  2390. wait()
  2391. derp.Transparency=derp.Transparency-0.1
  2392. end
  2393. derp.Transparency=0
  2394. end),hatp)
  2395. end
  2396. end
  2397. for _,v in pairs(m:children()) do
  2398. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2399. coroutine.resume(coroutine.create(function()
  2400. for i=0,1,0.1 do
  2401. wait()
  2402. v.Transparency=v.Transparency-0.1
  2403. end
  2404. v.Transparency=0
  2405. end))
  2406. v.Transparency=0
  2407. end
  2408. end
  2409. end
  2410.  
  2411. local origcolor = BrickColor.new("Pastel light blue")
  2412. ---- This section of explosions.
  2413.  
  2414. ----
  2415.  
  2416.  
  2417. function ring(type,pos,scale,value)
  2418. local type = type
  2419. local rng = Instance.new("Part", char)
  2420. rng.Anchored = true
  2421. rng.BrickColor = origcolor
  2422. rng.CanCollide = false
  2423. rng.FormFactor = 3
  2424. rng.Name = "Ring"
  2425. rng.Size = Vector3.new(1, 1, 1)
  2426. rng.Transparency = 0
  2427. rng.TopSurface = 0
  2428. rng.BottomSurface = 0
  2429. rng.CFrame = pos
  2430. local rngm = Instance.new("SpecialMesh", rng)
  2431. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2432. rngm.Scale = scale
  2433. local scaler2 = 1
  2434. if type == "Add" then
  2435. scaler2 = 1*value
  2436. elseif type == "Divide" then
  2437. scaler2 = 1/value
  2438. end
  2439. coroutine.resume(coroutine.create(function()
  2440. for i = 0,10,0.1 do
  2441. swait()
  2442. if type == "Add" then
  2443. scaler2 = scaler2 - 0.01*value
  2444. elseif type == "Divide" then
  2445. scaler2 = scaler2 - 0.01/value
  2446. end
  2447. rng.Transparency = rng.Transparency + 0.01
  2448. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2449. end
  2450. rng:Destroy()
  2451. end))
  2452. end
  2453.  
  2454.  
  2455. function wave(type,pos,scale,value)
  2456. local type = type
  2457. local rng = Instance.new("Part", char)
  2458. rng.Anchored = true
  2459. rng.BrickColor = origcolor
  2460. rng.CanCollide = false
  2461. rng.FormFactor = 3
  2462. rng.Name = "Ring"
  2463. rng.Size = Vector3.new(1, 1, 1)
  2464. rng.Transparency = 0
  2465. rng.TopSurface = 0
  2466. rng.BottomSurface = 0
  2467. rng.CFrame = pos
  2468. local rngm = Instance.new("SpecialMesh", rng)
  2469. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2470. rngm.Scale = scale
  2471. local scaler2 = 1
  2472. if type == "Add" then
  2473. scaler2 = 1*value
  2474. elseif type == "Divide" then
  2475. scaler2 = 1/value
  2476. end
  2477. coroutine.resume(coroutine.create(function()
  2478. for i = 0,10,0.1 do
  2479. swait()
  2480. if type == "Add" then
  2481. scaler2 = scaler2 - 0.01*value
  2482. elseif type == "Divide" then
  2483. scaler2 = scaler2 - 0.01/value
  2484. end
  2485. rng.Transparency = rng.Transparency + 0.01
  2486. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2487. end
  2488. rng:Destroy()
  2489. end))
  2490. end
  2491.  
  2492. function wind(type,pos,scale,value,speed)
  2493. local type = type
  2494. local rng = Instance.new("Part", char)
  2495. rng.Anchored = true
  2496. rng.BrickColor = origcolor
  2497. rng.CanCollide = false
  2498. rng.FormFactor = 3
  2499. rng.Name = "Ring"
  2500. rng.Size = Vector3.new(1, 1, 1)
  2501. rng.Transparency = 0
  2502. rng.TopSurface = 0
  2503. rng.BottomSurface = 0
  2504. rng.CFrame = pos
  2505. local rngm = Instance.new("SpecialMesh", rng)
  2506. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2507. rngm.Scale = scale
  2508. local scaler2 = 1
  2509. if type == "Add" then
  2510. scaler2 = 1*value
  2511. elseif type == "Divide" then
  2512. scaler2 = 1/value
  2513. end
  2514. coroutine.resume(coroutine.create(function()
  2515. for i = 0,10,0.1 do
  2516. swait()
  2517. if type == "Add" then
  2518. scaler2 = scaler2 - 0.01*value
  2519. elseif type == "Divide" then
  2520. scaler2 = scaler2 - 0.01/value
  2521. end
  2522. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2523. rng.Transparency = rng.Transparency + 0.01
  2524. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2525. end
  2526. rng:Destroy()
  2527. end))
  2528. end
  2529.  
  2530. function groundwind(type,pos,scale,value,speed)
  2531. local type = type
  2532. local rng = Instance.new("Part", char)
  2533. rng.Anchored = true
  2534. rng.BrickColor = origcolor
  2535. rng.CanCollide = false
  2536. rng.FormFactor = 3
  2537. rng.Name = "Ring"
  2538. rng.Size = Vector3.new(1, 1, 1)
  2539. rng.Transparency = 0
  2540. rng.TopSurface = 0
  2541. rng.BottomSurface = 0
  2542. rng.CFrame = pos
  2543. local rngm = Instance.new("SpecialMesh", rng)
  2544. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2545. rngm.Scale = scale
  2546. local scaler2 = 1
  2547. if type == "Add" then
  2548. scaler2 = 1*value
  2549. elseif type == "Divide" then
  2550. scaler2 = 1/value
  2551. end
  2552. coroutine.resume(coroutine.create(function()
  2553. for i = 0,10,0.1 do
  2554. swait()
  2555. if type == "Add" then
  2556. scaler2 = scaler2 - 0.01*value
  2557. elseif type == "Divide" then
  2558. scaler2 = scaler2 - 0.01/value
  2559. end
  2560. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2561. rng.Transparency = rng.Transparency + 0.01
  2562. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2563. end
  2564. rng:Destroy()
  2565. end))
  2566. end
  2567.  
  2568. function CameraManager()
  2569. if TwoD and not CamInterrupt then
  2570. if Humanoid.Health > 0 then
  2571. Camera.CameraSubject = Humanoid
  2572. Camera.CameraType = "Scriptable"
  2573. Humanoid.AutoRotate = false
  2574. if Booleans.GyroUse then
  2575. Directer.MaxTorque = Vec3(0, huge, 0)
  2576. else
  2577. Directer.MaxTorque = Vec3(0, 0, 0)
  2578. end
  2579. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2580. if Booleans.CamFollow then
  2581. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2582. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2583. else
  2584. CPart.Position = RootPart.Position
  2585. end
  2586. else
  2587. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2588. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2589. end
  2590. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2591. else
  2592. Camera.CameraSubject = Humanoid
  2593. Camera.CameraType = "Custom"
  2594. Controller.Disabled = false
  2595. end
  2596. end
  2597. end
  2598.  
  2599. function ring(type,pos,scale,value)
  2600. local type = type
  2601. local rng = Instance.new("Part", char)
  2602. rng.Anchored = true
  2603. rng.BrickColor = origcolor
  2604. rng.CanCollide = false
  2605. rng.FormFactor = 3
  2606. rng.Name = "Ring"
  2607. rng.Size = Vector3.new(1, 1, 1)
  2608. rng.Transparency = 0
  2609. rng.TopSurface = 0
  2610. rng.BottomSurface = 0
  2611. rng.CFrame = pos
  2612. local rngm = Instance.new("SpecialMesh", rng)
  2613. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2614. rngm.Scale = scale
  2615. local scaler2 = 1
  2616. if type == "Add" then
  2617. scaler2 = 1*value
  2618. elseif type == "Divide" then
  2619. scaler2 = 1/value
  2620. end
  2621. coroutine.resume(coroutine.create(function()
  2622. for i = 0,10,0.1 do
  2623. swait()
  2624. if type == "Add" then
  2625. scaler2 = scaler2 - 0.01*value
  2626. elseif type == "Divide" then
  2627. scaler2 = scaler2 - 0.01/value
  2628. end
  2629. rng.Transparency = rng.Transparency + 0.01
  2630. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2631. end
  2632. rng:Destroy()
  2633. end))
  2634. end
  2635.  
  2636.  
  2637. function wave(type,pos,scale,value)
  2638. local type = type
  2639. local rng = Instance.new("Part", char)
  2640. rng.Anchored = true
  2641. rng.BrickColor = origcolor
  2642. rng.CanCollide = false
  2643. rng.FormFactor = 3
  2644. rng.Name = "Ring"
  2645. rng.Size = Vector3.new(1, 1, 1)
  2646. rng.Transparency = 0
  2647. rng.TopSurface = 0
  2648. rng.BottomSurface = 0
  2649. rng.CFrame = pos
  2650. local rngm = Instance.new("SpecialMesh", rng)
  2651. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2652. rngm.Scale = scale
  2653. local scaler2 = 1
  2654. if type == "Add" then
  2655. scaler2 = 1*value
  2656. elseif type == "Divide" then
  2657. scaler2 = 1/value
  2658. end
  2659. coroutine.resume(coroutine.create(function()
  2660. for i = 0,10,0.1 do
  2661. swait()
  2662. if type == "Add" then
  2663. scaler2 = scaler2 - 0.01*value
  2664. elseif type == "Divide" then
  2665. scaler2 = scaler2 - 0.01/value
  2666. end
  2667. rng.Transparency = rng.Transparency + 0.01
  2668. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2669. end
  2670. rng:Destroy()
  2671. end))
  2672. end
  2673.  
  2674. function sphere(bonuspeed,type,pos,scale,value,color)
  2675. local type = type
  2676. local rng = Instance.new("Part", char)
  2677. rng.Anchored = true
  2678. if ModeOfGlitch ~= 9 then
  2679. rng.BrickColor = color
  2680. elseif ModeOfGlitch == 9 then
  2681. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2682. end
  2683. rng.CanCollide = false
  2684. rng.FormFactor = 3
  2685. rng.Name = "Ring"
  2686. rng.Material = "Neon"
  2687. rng.Size = Vector3.new(1, 1, 1)
  2688. rng.Transparency = 0
  2689. rng.TopSurface = 0
  2690. rng.BottomSurface = 0
  2691. rng.CFrame = pos
  2692. local rngm = Instance.new("SpecialMesh", rng)
  2693. rngm.MeshType = "Sphere"
  2694. rngm.Scale = scale
  2695. if rainbowmode == true then
  2696. rng.Color = Color3.new(r/255,g/255,b/255)
  2697. end
  2698. if ModeOfGlitch == 9 then
  2699. coroutine.resume(coroutine.create(function()
  2700. while true do
  2701. swait()
  2702. if rng.Parent ~= nil then
  2703. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2704. else
  2705. break
  2706. end
  2707. end
  2708. end))
  2709. end
  2710. local scaler2 = 1
  2711. if type == "Add" then
  2712. scaler2 = 1*value
  2713. elseif type == "Divide" then
  2714. scaler2 = 1/value
  2715. end
  2716. coroutine.resume(coroutine.create(function()
  2717. for i = 0,10/bonuspeed,0.1 do
  2718. swait()
  2719. if rainbowmode == true then
  2720. rng.Color = Color3.new(r/255,g/255,b/255)
  2721. end
  2722. if type == "Add" then
  2723. scaler2 = scaler2 - 0.01*value/bonuspeed
  2724. elseif type == "Divide" then
  2725. scaler2 = scaler2 - 0.01/value*bonuspeed
  2726. end
  2727. if chaosmode == true then
  2728. rng.BrickColor = BrickColor.random()
  2729. end
  2730. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2731. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2732. end
  2733. rng:Destroy()
  2734. end))
  2735. end
  2736.  
  2737. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2738. local type = type
  2739. local rng = Instance.new("Part", char)
  2740. rng.Anchored = true
  2741. if ModeOfGlitch ~= 9 then
  2742. rng.BrickColor = color
  2743. elseif ModeOfGlitch == 9 then
  2744. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2745. end
  2746. rng.CanCollide = false
  2747. rng.FormFactor = 3
  2748. rng.Name = "Ring"
  2749. rng.Material = "Neon"
  2750. rng.Size = Vector3.new(1, 1, 1)
  2751. rng.Transparency = 0
  2752. rng.TopSurface = 0
  2753. rng.BottomSurface = 0
  2754. rng.CFrame = pos
  2755. local rngm = Instance.new("SpecialMesh", rng)
  2756. rngm.MeshType = "Sphere"
  2757. rngm.Scale = scale
  2758. local scaler2 = 1
  2759. local scaler2b = 1
  2760. local scaler2c = 1
  2761. if type == "Add" then
  2762. scaler2 = 1*value
  2763. scaler2b = 1*value2
  2764. scaler2c = 1*value3
  2765. elseif type == "Divide" then
  2766. scaler2 = 1/value
  2767. scaler2b = 1/value2
  2768. scaler2c = 1/value3
  2769. end
  2770. if ModeOfGlitch == 9 then
  2771. coroutine.resume(coroutine.create(function()
  2772. while true do
  2773. swait()
  2774. if rng.Parent ~= nil then
  2775. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2776. else
  2777. break
  2778. end
  2779. end
  2780. end))
  2781. end
  2782. coroutine.resume(coroutine.create(function()
  2783. for i = 0,10/bonuspeed,0.1 do
  2784. swait()
  2785. if type == "Add" then
  2786. scaler2 = scaler2 - 0.01*value/bonuspeed
  2787. scaler2b = scaler2b - 0.01*value/bonuspeed
  2788. scaler2c = scaler2c - 0.01*value/bonuspeed
  2789. elseif type == "Divide" then
  2790. scaler2 = scaler2 - 0.01/value*bonuspeed
  2791. scaler2b = scaler2b - 0.01/value*bonuspeed
  2792. scaler2c = scaler2c - 0.01/value*bonuspeed
  2793. end
  2794. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2795. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2796. end
  2797. rng:Destroy()
  2798. end))
  2799. end
  2800.  
  2801. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2802. local type = type
  2803. local rotenable = rotatingop
  2804. local rng = Instance.new("Part", char)
  2805. rng.Anchored = true
  2806. rng.BrickColor = color
  2807. rng.CanCollide = false
  2808. rng.FormFactor = 3
  2809. rng.Name = "Ring"
  2810. rng.Material = "Neon"
  2811. rng.Size = Vector3.new(1, 1, 1)
  2812. rng.Transparency = 0
  2813. if typeoftrans == "In" then
  2814. rng.Transparency = 1
  2815. end
  2816. rng.TopSurface = 0
  2817. rng.BottomSurface = 0
  2818. rng.CFrame = pos
  2819. local rngm = Instance.new("SpecialMesh", rng)
  2820. rngm.MeshType = "FileMesh"
  2821. if typeofshape == "Normal" then
  2822. rngm.MeshId = "rbxassetid://662586858"
  2823. elseif typeofshape == "Round" then
  2824. rngm.MeshId = "rbxassetid://662585058"
  2825. end
  2826. rngm.Scale = scale
  2827. local scaler2 = 1/10
  2828. if type == "Add" then
  2829. scaler2 = 1*value/10
  2830. elseif type == "Divide" then
  2831. scaler2 = 1/value/10
  2832. end
  2833. local randomrot = math.random(1,2)
  2834. coroutine.resume(coroutine.create(function()
  2835. for i = 0,10/bonuspeed,0.1 do
  2836. swait()
  2837. if type == "Add" then
  2838. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2839. elseif type == "Divide" then
  2840. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2841. end
  2842. if rotenable == true then
  2843. if randomrot == 1 then
  2844. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2845. elseif randomrot == 2 then
  2846. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2847. end
  2848. end
  2849. if typeoftrans == "Out" then
  2850. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2851. elseif typeoftrans == "In" then
  2852. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2853. end
  2854. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2855. end
  2856. rng:Destroy()
  2857. end))
  2858. end
  2859.  
  2860. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2861. local type = type
  2862. local rng = Instance.new("Part", char)
  2863. rng.Anchored = true
  2864. rng.BrickColor = color
  2865. rng.CanCollide = false
  2866. rng.FormFactor = 3
  2867. rng.Name = "Ring"
  2868. rng.Material = "Neon"
  2869. rng.Size = Vector3.new(1, 1, 1)
  2870. rng.Transparency = 0
  2871. rng.TopSurface = 0
  2872. rng.BottomSurface = 0
  2873. rng.CFrame = pos
  2874. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2875. local rngm = Instance.new("SpecialMesh", rng)
  2876. rngm.MeshType = "Brick"
  2877. rngm.Scale = vt(x1,y1,z1)
  2878. if rainbowmode == true then
  2879. rng.Color = Color3.new(r/255,g/255,b/255)
  2880. end
  2881. local scaler2 = 1
  2882. local speeder = FastSpeed/10
  2883. if type == "Add" then
  2884. scaler2 = 1*value
  2885. elseif type == "Divide" then
  2886. scaler2 = 1/value
  2887. end
  2888. coroutine.resume(coroutine.create(function()
  2889. for i = 0,10/bonuspeed,0.1 do
  2890. swait()
  2891. if rainbowmode == true then
  2892. rng.Color = Color3.new(r/255,g/255,b/255)
  2893. end
  2894. if type == "Add" then
  2895. scaler2 = scaler2 - 0.01*value/bonuspeed
  2896. elseif type == "Divide" then
  2897. scaler2 = scaler2 - 0.01/value*bonuspeed
  2898. end
  2899. if chaosmode == true then
  2900. rng.BrickColor = BrickColor.random()
  2901. end
  2902. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2903. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2904. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2905. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2906. end
  2907. rng:Destroy()
  2908. end))
  2909. end
  2910.  
  2911. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2912. local type = type
  2913. local rng = Instance.new("Part", char)
  2914. rng.Anchored = true
  2915. rng.BrickColor = color
  2916. rng.CanCollide = false
  2917. rng.FormFactor = 3
  2918. rng.Name = "Ring"
  2919. rng.Material = "Neon"
  2920. rng.Size = Vector3.new(1, 1, 1)
  2921. rng.Transparency = 0
  2922. rng.TopSurface = 0
  2923. rng.BottomSurface = 0
  2924. rng.CFrame = pos
  2925. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2926. local rngm = Instance.new("SpecialMesh", rng)
  2927. rngm.MeshType = "Brick"
  2928. rngm.Scale = vt(x1,y1,z1)
  2929. if rainbowmode == true then
  2930. rng.Color = Color3.new(r/255,g/255,b/255)
  2931. end
  2932. local scaler2 = 1
  2933. local speeder = FastSpeed/10
  2934. if type == "Add" then
  2935. scaler2 = 1*value
  2936. elseif type == "Divide" then
  2937. scaler2 = 1/value
  2938. end
  2939. coroutine.resume(coroutine.create(function()
  2940. for i = 0,10/bonuspeed,0.1 do
  2941. swait()
  2942. if rainbowmode == true then
  2943. rng.Color = Color3.new(r/255,g/255,b/255)
  2944. end
  2945. if type == "Add" then
  2946. scaler2 = scaler2 - 0.01*value/bonuspeed
  2947. elseif type == "Divide" then
  2948. scaler2 = scaler2 - 0.01/value*bonuspeed
  2949. end
  2950. if chaosmode == true then
  2951. rng.BrickColor = BrickColor.random()
  2952. end
  2953. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2954. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2955. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2956. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2957. end
  2958. rng:Destroy()
  2959. end))
  2960. end
  2961.  
  2962. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2963. local type = type
  2964. local rng = Instance.new("Part", char)
  2965. rng.Anchored = true
  2966. rng.BrickColor = color
  2967. rng.CanCollide = false
  2968. rng.FormFactor = 3
  2969. rng.Name = "Ring"
  2970. rng.Material = "Neon"
  2971. rng.Size = Vector3.new(1, 1, 1)
  2972. rng.Transparency = 0
  2973. rng.TopSurface = 0
  2974. rng.BottomSurface = 0
  2975. rng.CFrame = pos
  2976. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2977. local rngm = Instance.new("SpecialMesh", rng)
  2978. rngm.MeshType = "Brick"
  2979. rngm.Scale = vt(x1,y1,z1)
  2980. if rainbowmode == true then
  2981. rng.Color = Color3.new(r/255,g/255,b/255)
  2982. end
  2983. local scaler2 = 0
  2984. local speeder = FastSpeed/10
  2985. if type == "Add" then
  2986. scaler2 = 1*value
  2987. elseif type == "Divide" then
  2988. scaler2 = 1/value
  2989. end
  2990. coroutine.resume(coroutine.create(function()
  2991. for i = 0,10/bonuspeed,0.1 do
  2992. swait()
  2993. if rainbowmode == true then
  2994. rng.Color = Color3.new(r/255,g/255,b/255)
  2995. end
  2996. if type == "Add" then
  2997. scaler2 = scaler2 - 0.01*value/bonuspeed
  2998. elseif type == "Divide" then
  2999. scaler2 = scaler2 - 0.01/value*bonuspeed
  3000. end
  3001. if chaosmode == true then
  3002. rng.BrickColor = BrickColor.random()
  3003. end
  3004. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3005. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3006. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3007. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3008. end
  3009. rng:Destroy()
  3010. end))
  3011. end
  3012.  
  3013. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3014. local type = type
  3015. local rng = Instance.new("Part", char)
  3016. rng.Anchored = true
  3017. rng.BrickColor = color
  3018. rng.Color = color3
  3019. rng.CanCollide = false
  3020. rng.FormFactor = 3
  3021. rng.Name = "Ring"
  3022. rng.Material = "Neon"
  3023. rng.Size = Vector3.new(1, 1, 1)
  3024. rng.Transparency = 0
  3025. rng.TopSurface = 0
  3026. rng.BottomSurface = 0
  3027. rng.CFrame = pos
  3028. local rngm = Instance.new("SpecialMesh", rng)
  3029. rngm.MeshType = "Brick"
  3030. rngm.Scale = scale
  3031. local scaler2 = 1
  3032. local scaler2b = 1
  3033. local scaler2c = 1
  3034. if type == "Add" then
  3035. scaler2 = 1*value
  3036. scaler2b = 1*value2
  3037. scaler2c = 1*value3
  3038. elseif type == "Divide" then
  3039. scaler2 = 1/value
  3040. scaler2b = 1/value2
  3041. scaler2c = 1/value3
  3042. end
  3043. coroutine.resume(coroutine.create(function()
  3044. for i = 0,10/bonuspeed,0.1 do
  3045. swait()
  3046. if type == "Add" then
  3047. scaler2 = scaler2 - 0.01*value/bonuspeed
  3048. scaler2b = scaler2b - 0.01*value/bonuspeed
  3049. scaler2c = scaler2c - 0.01*value/bonuspeed
  3050. elseif type == "Divide" then
  3051. scaler2 = scaler2 - 0.01/value*bonuspeed
  3052. scaler2b = scaler2b - 0.01/value*bonuspeed
  3053. scaler2c = scaler2c - 0.01/value*bonuspeed
  3054. end
  3055. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3056. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3057. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3058. end
  3059. rng:Destroy()
  3060. end))
  3061. end
  3062.  
  3063. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3064. local type = type
  3065. local rng = Instance.new("Part", char)
  3066. rng.Anchored = true
  3067. if ModeOfGlitch ~= 9 then
  3068. rng.BrickColor = color
  3069. elseif ModeOfGlitch == 9 then
  3070. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3071. end
  3072. rng.CanCollide = false
  3073. rng.FormFactor = 3
  3074. rng.Name = "Ring"
  3075. rng.Material = "Neon"
  3076. rng.Size = Vector3.new(1, 1, 1)
  3077. rng.Transparency = 0
  3078. rng.TopSurface = 0
  3079. rng.BottomSurface = 0
  3080. rng.CFrame = pos
  3081. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3082. local rngm = Instance.new("SpecialMesh", rng)
  3083. rngm.MeshType = "Sphere"
  3084. rngm.Scale = vt(x1,y1,z1)
  3085. if rainbowmode == true then
  3086. rng.Color = Color3.new(r/255,g/255,b/255)
  3087. end
  3088. if ModeOfGlitch == 9 then
  3089. coroutine.resume(coroutine.create(function()
  3090. while true do
  3091. swait()
  3092. if rng.Parent ~= nil then
  3093. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3094. else
  3095. break
  3096. end
  3097. end
  3098. end))
  3099. end
  3100. local scaler2 = 1
  3101. local speeder = FastSpeed
  3102. if type == "Add" then
  3103. scaler2 = 1*value
  3104. elseif type == "Divide" then
  3105. scaler2 = 1/value
  3106. end
  3107. coroutine.resume(coroutine.create(function()
  3108. for i = 0,10/bonuspeed,0.1 do
  3109. swait()
  3110. if rainbowmode == true then
  3111. rng.Color = Color3.new(r/255,g/255,b/255)
  3112. end
  3113. if type == "Add" then
  3114. scaler2 = scaler2 - 0.01*value/bonuspeed
  3115. elseif type == "Divide" then
  3116. scaler2 = scaler2 - 0.01/value*bonuspeed
  3117. end
  3118. if chaosmode == true then
  3119. rng.BrickColor = BrickColor.random()
  3120. end
  3121. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3122. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3123. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3124. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3125. end
  3126. rng:Destroy()
  3127. end))
  3128. end
  3129.  
  3130.  
  3131. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3132. local type = type
  3133. local rng = Instance.new("Part", char)
  3134. rng.Anchored = true
  3135. if ModeOfGlitch ~= 9 then
  3136. rng.BrickColor = color
  3137. elseif ModeOfGlitch == 9 then
  3138. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3139. end
  3140. rng.CanCollide = false
  3141. rng.FormFactor = 3
  3142. rng.Name = "Ring"
  3143. rng.Material = "Neon"
  3144. rng.Size = Vector3.new(1, 1, 1)
  3145. rng.Transparency = 1
  3146. rng.TopSurface = 0
  3147. rng.BottomSurface = 0
  3148. rng.CFrame = pos
  3149. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3150. local rngm = Instance.new("SpecialMesh", rng)
  3151. rngm.MeshType = "Sphere"
  3152. rngm.Scale = vt(x1,y1,z1)
  3153. if rainbowmode == true then
  3154. rng.Color = Color3.new(r/255,g/255,b/255)
  3155. end
  3156. if ModeOfGlitch == 9 then
  3157. coroutine.resume(coroutine.create(function()
  3158. while true do
  3159. swait()
  3160. if rng.Parent ~= nil then
  3161. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3162. else
  3163. break
  3164. end
  3165. end
  3166. end))
  3167. end
  3168. local scaler2 = 1
  3169. local speeder = FastSpeed
  3170. if type == "Add" then
  3171. scaler2 = 1*value
  3172. elseif type == "Divide" then
  3173. scaler2 = 1/value
  3174. end
  3175. coroutine.resume(coroutine.create(function()
  3176. for i = 0,10/bonuspeed,0.1 do
  3177. swait()
  3178. if rainbowmode == true then
  3179. rng.Color = Color3.new(r/255,g/255,b/255)
  3180. end
  3181. if type == "Add" then
  3182. scaler2 = scaler2 - 0.01*value/bonuspeed
  3183. elseif type == "Divide" then
  3184. scaler2 = scaler2 - 0.01/value*bonuspeed
  3185. end
  3186. if chaosmode == true then
  3187. rng.BrickColor = BrickColor.random()
  3188. end
  3189. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3190. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3191. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3192. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3193. end
  3194. rng:Destroy()
  3195. end))
  3196. end
  3197.  
  3198. function dmg(dude)
  3199. if dude.Name ~= Character then
  3200. local keptcolor = MAINRUINCOLOR
  3201. local bgf = Instance.new("BodyGyro",dude.Head)
  3202. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3203. --[[local val = Instance.new("BoolValue",dude)
  3204. val.Name = "IsHit"]]--
  3205. local ds = coroutine.wrap(function()
  3206. dude:WaitForChild("Head"):BreakJoints()
  3207. for i, v in pairs(dude:GetChildren()) do
  3208. if v:IsA("Part") or v:IsA("MeshPart") then
  3209. v.Name = "DEMINISHED"
  3210. end
  3211. end
  3212. wait(0.5)
  3213. targetted = nil
  3214. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3215. coroutine.resume(coroutine.create(function()
  3216. for i, v in pairs(dude:GetChildren()) do
  3217. if v:IsA("Accessory") then
  3218. v:Destroy()
  3219. end
  3220. if v:IsA("Humanoid") then
  3221. v:Destroy()
  3222. end
  3223. if v:IsA("CharacterMesh") then
  3224. v:Destroy()
  3225. end
  3226. if v:IsA("Model") then
  3227. v:Destroy()
  3228. end
  3229. if v:IsA("Part") or v:IsA("MeshPart") then
  3230. for x, o in pairs(v:GetChildren()) do
  3231. if o:IsA("Decal") then
  3232. o:Destroy()
  3233. end
  3234. end
  3235. coroutine.resume(coroutine.create(function()
  3236. v.Material = "Neon"
  3237. v.CanCollide = false
  3238. v.Anchored = false
  3239. local bld = Instance.new("ParticleEmitter",v)
  3240. bld.LightEmission = 0.75
  3241. bld.Texture = "rbxassetid://363275192" ---284205403
  3242. bld.Color = ColorSequence.new(keptcolor.Color)
  3243. bld.Rate = 500
  3244. bld.Lifetime = NumberRange.new(1)
  3245. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3246. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3247. bld.Speed = NumberRange.new(2,5)
  3248. bld.VelocitySpread = 50000
  3249. bld.Rotation = NumberRange.new(-500,500)
  3250. bld.RotSpeed = NumberRange.new(-500,500)
  3251. local sbs = Instance.new("BodyPosition", v)
  3252. sbs.P = 3000
  3253. sbs.D = 1000
  3254. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3255. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3256. v.Color = keptcolor.Color
  3257. coroutine.resume(coroutine.create(function()
  3258. for i = 0, 49 do
  3259. swait(1)
  3260. v:BreakJoints()
  3261. v.Transparency = v.Transparency + 0.02
  3262. end
  3263. v:BreakJoints()
  3264. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3265. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3266. bld.Speed = NumberRange.new(10,25)
  3267. bld.Drag = 5
  3268. bld.Acceleration = vt(0,2,0)
  3269. wait(0.5)
  3270. bld.Enabled = false
  3271. wait(8)
  3272. v:Destroy()
  3273. dude:Destroy()
  3274. end))
  3275. end))
  3276. end
  3277. end
  3278. end))
  3279. end)
  3280. ds()
  3281. end
  3282. end
  3283.  
  3284.  
  3285. function FindNearestHead(Position, Distance, SinglePlayer)
  3286. if SinglePlayer then
  3287. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3288. end
  3289. local List = {}
  3290. for i, v in pairs(workspace:GetChildren()) do
  3291. if v:IsA("Model") then
  3292. if v:findFirstChild("Head") then
  3293. if v ~= Character then
  3294. if (v.Head.Position - Position).magnitude <= Distance then
  3295. table.insert(List, v)
  3296. end
  3297. end
  3298. end
  3299. end
  3300. end
  3301. return List
  3302. end
  3303.  
  3304. function FaceMouse()
  3305. Cam = workspace.CurrentCamera
  3306. return {
  3307. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3308. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3309. }
  3310. end
  3311.  
  3312. function FaceMouse2()
  3313. Cam = workspace.CurrentCamera
  3314. return {
  3315. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3316. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3317. }
  3318. end
  3319.  
  3320. local ModeOfGlitch = 1
  3321. -- Functions are ready.
  3322. local storehumanoidWS = 16
  3323.  
  3324. function CorruptBlink()
  3325. for i = 0, 14 do
  3326. 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)
  3327. end
  3328. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3329. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3330. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3331. CameraEnshaking(2,10)
  3332. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3333. if v:FindFirstChild('Head') then
  3334. dmg(v)
  3335. end
  3336. end
  3337. for i = 0, 14 do
  3338. 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)
  3339. end
  3340. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3341. end
  3342. function PureBomb()
  3343. attack = true
  3344. hum.WalkSpeed = 0
  3345. local orb = Instance.new("Part", char)
  3346. orb.Anchored = true
  3347. orb.BrickColor = BrickColor.new("Toothpaste")
  3348. orb.CanCollide = false
  3349. orb.FormFactor = 3
  3350. orb.Name = "Ring"
  3351. orb.Material = "Neon"
  3352. orb.Size = Vector3.new(1, 1, 1)
  3353. orb.Transparency = 0
  3354. orb.TopSurface = 0
  3355. orb.BottomSurface = 0
  3356. local orbm = Instance.new("SpecialMesh", orb)
  3357. orbm.MeshType = "Sphere"
  3358. orbm.Name = "SizeMesh"
  3359. orbm.Scale = vt(0,0,0)
  3360. local scaled = 0.1
  3361. local posid = 0
  3362. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3363. for i = 0, 5, 0.1 do
  3364. swait()
  3365. scaled = scaled - 0.001
  3366. posid = posid - scaled
  3367. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3368. local scaled = 0.1
  3369. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3370. 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)
  3371. 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)
  3372. 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)
  3373. 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)
  3374. 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)
  3375. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3376. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3377. 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)
  3378. end
  3379. for i = 0, 2, 0.1 do
  3380. swait()
  3381. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3382. 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)
  3383. 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)
  3384. 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)
  3385. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3386. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3387. 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)
  3388. end
  3389. coroutine.resume(coroutine.create(function()
  3390. orb.Anchored = false
  3391. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3392. local a = Instance.new("Part",workspace)
  3393. a.Name = "Direction"
  3394. a.Anchored = true
  3395. a.BrickColor = bc("Bright red")
  3396. a.Material = "Neon"
  3397. a.Transparency = 1
  3398. a.CanCollide = false
  3399. local ray = Ray.new(
  3400. orb.CFrame.p, -- origin
  3401. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3402. )
  3403. local ignore = orb
  3404. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3405. a.BottomSurface = 10
  3406. a.TopSurface = 10
  3407. local distance = (orb.CFrame.p - position).magnitude
  3408. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3409. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3410. orb.CFrame = a.CFrame
  3411. a:Destroy()
  3412. local bv = Instance.new("BodyVelocity")
  3413. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3414. bv.velocity = orb.CFrame.lookVector*125
  3415. bv.Parent = orb
  3416. local hitted = false
  3417. game:GetService("Debris"):AddItem(orb, 15)
  3418. wait()
  3419. local hit =orb.Touched:connect(function(hit)
  3420. if hitted == false then
  3421. hitted = true
  3422. CameraEnshaking(10,2.5)
  3423. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3424. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3425. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3426. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3427. for i = 0, 49 do
  3428. 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)
  3429. end
  3430. for i = 0, 9 do
  3431. 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)
  3432. 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)
  3433. end
  3434. orb.Anchored = true
  3435. orb.Transparency = 1
  3436. wait(8)
  3437. orb:Destroy()
  3438. end
  3439. end)
  3440. end))
  3441. for i = 0, 1, 0.1 do
  3442. swait()
  3443. 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)
  3444. 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)
  3445. 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)
  3446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3448. 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)
  3449. end
  3450. hum.WalkSpeed = storehumanoidWS
  3451. attack = false
  3452. end
  3453.  
  3454. function BanishingOrb()
  3455. attack = true
  3456. hum.WalkSpeed = 0
  3457. local radm = math.random(1,3)
  3458. if radm == 1 then
  3459. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3460. elseif radm == 2 then
  3461. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3462. elseif radm == 3 then
  3463. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3464. end
  3465. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3466. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3467. local orb = Instance.new("Part", char)
  3468. orb.Anchored = true
  3469. orb.BrickColor = BrickColor.new("Lime green")
  3470. orb.CanCollide = false
  3471. orb.FormFactor = 3
  3472. orb.Name = "Ring"
  3473. orb.Material = "Neon"
  3474. orb.Size = Vector3.new(1, 1, 1)
  3475. orb.Transparency = 0
  3476. orb.TopSurface = 0
  3477. orb.BottomSurface = 0
  3478. local orbm = Instance.new("SpecialMesh", orb)
  3479. orbm.MeshType = "Sphere"
  3480. orbm.Name = "SizeMesh"
  3481. orbm.Scale = vt(0,0,0)
  3482. local scaled = 0.1
  3483. local posid = 0
  3484. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3485. for i = 0, 5, 0.1 do
  3486. swait()
  3487. scaled = scaled - 0.001
  3488. posid = posid - scaled
  3489. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3490. local scaled = 0.1
  3491. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3492. 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)
  3493. 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)
  3494. 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)
  3495. 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)
  3496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3497. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3498. 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)
  3499. end
  3500. for i = 0, 2, 0.1 do
  3501. swait()
  3502. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3503. 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)
  3504. 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)
  3505. 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)
  3506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3508. 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)
  3509. end
  3510. coroutine.resume(coroutine.create(function()
  3511. orb.Anchored = false
  3512. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3513. local a = Instance.new("Part",workspace)
  3514. a.Name = "Direction"
  3515. a.Anchored = true
  3516. a.BrickColor = bc("Lime green")
  3517. a.Material = "Neon"
  3518. a.Transparency = 1
  3519. a.CanCollide = false
  3520. local ray = Ray.new(
  3521. orb.CFrame.p, -- origin
  3522. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3523. )
  3524. local ignore = orb
  3525. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3526. a.BottomSurface = 10
  3527. a.TopSurface = 10
  3528. local distance = (orb.CFrame.p - position).magnitude
  3529. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3530. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3531. orb.CFrame = a.CFrame
  3532. a:Destroy()
  3533. local bv = Instance.new("BodyVelocity")
  3534. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3535. bv.velocity = orb.CFrame.lookVector*0
  3536. bv.Parent = orb
  3537. local hitted = false
  3538. local rate = 0
  3539. coroutine.resume(coroutine.create(function()
  3540. for i = 0, 24 do
  3541. wait(0.1)
  3542. rate = rate + 0.25
  3543. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3544. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3545. if v:FindFirstChild('Head') then
  3546. dmg(v)
  3547. end
  3548. end
  3549. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3550. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3551. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3552. end
  3553. orb.Anchored = true
  3554. orb.Transparency = 1
  3555. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3556. if v:FindFirstChild('Head') then
  3557. dmg(v)
  3558. end
  3559. end
  3560. local eff = Instance.new("ParticleEmitter",orb)
  3561. eff.Texture = "rbxassetid://296874871"
  3562. eff.LightEmission = 0.95
  3563. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3564. eff.Rate = 1000000000
  3565. eff.Lifetime = NumberRange.new(3)
  3566. 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)})
  3567. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3568. eff.Speed = NumberRange.new(30)
  3569. eff.Acceleration = vt(0,-15,0)
  3570. eff.Rotation = NumberRange.new(-500,500)
  3571. eff.VelocitySpread = 100000
  3572. eff.RotSpeed = NumberRange.new(-500,500)
  3573. coroutine.resume(coroutine.create(function()
  3574. wait(0.6)
  3575. eff.Enabled = false
  3576. end))
  3577. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3578. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3579. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3580. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3581. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3582. game:GetService("Debris"):AddItem(orb, 15)
  3583. end))
  3584. end))
  3585. for i = 0, 1, 0.1 do
  3586. swait()
  3587. 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)
  3588. 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)
  3589. 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)
  3590. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3591. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3592. 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)
  3593. end
  3594. hum.WalkSpeed = storehumanoidWS
  3595. attack = false
  3596. end
  3597.  
  3598.  
  3599. function ChaosGroundStrike()
  3600. attack = true
  3601. for i = 0, 2, 0.1 do
  3602. swait()
  3603. 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)
  3604. 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)
  3605. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3606. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3607. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3608. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3609. end
  3610. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3611. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3612. CameraEnshaking(4,12)
  3613. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3614. if v:FindFirstChild('Head') then
  3615. dmg(v)
  3616. end
  3617. end
  3618. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3619. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3620. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3621. for i = 0, 2, 0.1 do
  3622. swait()
  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. 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)
  3625. 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)
  3626. 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)
  3627. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3628. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3629. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3630. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3631. end
  3632. attack = false
  3633. end
  3634.  
  3635.  
  3636.  
  3637. function Starfall()
  3638. attack = true
  3639. hum.WalkSpeed = 0
  3640. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3641. for i = 0, 5, 0.1 do
  3642. swait()
  3643. 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)
  3644. 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)
  3645. 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)
  3646. 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)
  3647. 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)
  3648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3649. 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)
  3650. 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)
  3651. end
  3652. local Overed = false
  3653. CameraEnshaking(2,20)
  3654. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3655. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3656. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3657. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3658. local orb = Instance.new("Part", char)
  3659. orb.Anchored = true
  3660. orb.BrickColor = BrickColor.new("Toothpaste")
  3661. orb.CanCollide = false
  3662. orb.FormFactor = 3
  3663. orb.Name = "Remenant"
  3664. orb.Material = "Neon"
  3665. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3666. orb.Size = Vector3.new(1, 1, 1)
  3667. orb.Transparency = 1
  3668. orb.TopSurface = 0
  3669. orb.BottomSurface = 0
  3670. hum.WalkSpeed = storehumanoidWS
  3671. coroutine.resume(coroutine.create(function()
  3672. for i = 0, 9 do
  3673. swait(10)
  3674. local lb = Instance.new("Part")
  3675. lb.Color = MAINRUINCOLOR.Color
  3676. lb.CanCollide = false
  3677. lb.Material = "Neon"
  3678. lb.Anchored = true
  3679. lb.TopSurface = 0
  3680. lb.BottomSurface = 0
  3681. lb.Transparency = 0
  3682. lb.Size = vt(1,1,1)
  3683. 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)))
  3684. lb.Anchored = false
  3685. lb.Parent = char
  3686. local thingery = Instance.new("SpecialMesh",lb)
  3687. thingery.MeshType = "Sphere"
  3688. thingery.Scale = vt(20,20,20)
  3689. game:GetService("Debris"):AddItem(lb, 10)
  3690. local bv = Instance.new("BodyVelocity")
  3691. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3692. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3693. bv.Parent = lb
  3694. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3695. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3696. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3697. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3698. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3699. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3700. local hitted = false
  3701. coroutine.resume(coroutine.create(function()
  3702. while true do
  3703. swait(1)
  3704. if lb.Parent ~= nil and hitted == false then
  3705. 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)
  3706. elseif lb.Parent == nil then
  3707. break
  3708. end
  3709. end
  3710. end))
  3711.  
  3712. game:GetService("Debris"):AddItem(a, 0.1)
  3713.  
  3714. coroutine.resume(coroutine.create(function()
  3715. swait(1)
  3716. lb.Touched:connect(function(hit)
  3717. if hitted == false then
  3718. hitted = true
  3719. lb.Transparency = 1
  3720. lb.Anchored = true
  3721. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3722. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3723. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3724. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3725. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3726. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3727. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3728. CameraEnshaking(1,5)
  3729. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3730. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3731. for i = 0, 9 do
  3732. 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)
  3733. end
  3734. for i = 0, 49 do
  3735. swait()
  3736. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3737. 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)
  3738. end
  3739. end
  3740. end)
  3741. end))
  3742. end
  3743. Overed = true
  3744. orb:Destroy()
  3745. end))
  3746.  
  3747. attack = false
  3748. end
  3749.  
  3750. function StarfallEX()
  3751. attack = true
  3752. hum.WalkSpeed = 0
  3753. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3754. for i = 0, 10, 0.1 do
  3755. swait()
  3756. 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)
  3757. 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)
  3758. 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)
  3759. 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)
  3760. 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)
  3761. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3762. 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)
  3763. 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)
  3764. end
  3765. local Overed = false
  3766. CameraEnshaking(2,20)
  3767. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3768. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3769. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3770. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3771. local orb = Instance.new("Part", char)
  3772. orb.Anchored = true
  3773. orb.BrickColor = BrickColor.new("Toothpaste")
  3774. orb.CanCollide = false
  3775. orb.FormFactor = 3
  3776. orb.Name = "Remenant"
  3777. orb.Material = "Neon"
  3778. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3779. orb.Size = Vector3.new(1, 1, 1)
  3780. orb.Transparency = 1
  3781. orb.TopSurface = 0
  3782. orb.BottomSurface = 0
  3783. hum.WalkSpeed = storehumanoidWS
  3784. coroutine.resume(coroutine.create(function()
  3785. for i = 0, 4 do
  3786. swait(15)
  3787. local lb = Instance.new("Part")
  3788. lb.Color = MAINRUINCOLOR.Color
  3789. lb.CanCollide = false
  3790. lb.Material = "Neon"
  3791. lb.Anchored = true
  3792. lb.TopSurface = 0
  3793. lb.BottomSurface = 0
  3794. lb.Transparency = 0
  3795. lb.Size = vt(1,1,1)
  3796. 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)))
  3797. lb.Anchored = false
  3798. lb.Parent = char
  3799. local thingery = Instance.new("SpecialMesh",lb)
  3800. thingery.MeshType = "Sphere"
  3801. thingery.Scale = vt(50,50,50)
  3802. game:GetService("Debris"):AddItem(lb, 10)
  3803. local bv = Instance.new("BodyVelocity")
  3804. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3805. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3806. bv.Parent = lb
  3807. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3808. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3809. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3810. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3811. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3812. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3813. local hitted = false
  3814. coroutine.resume(coroutine.create(function()
  3815. while true do
  3816. swait(1)
  3817. if lb.Parent ~= nil and hitted == false then
  3818. 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)
  3819. elseif lb.Parent == nil then
  3820. break
  3821. end
  3822. end
  3823. end))
  3824.  
  3825. game:GetService("Debris"):AddItem(a, 0.1)
  3826.  
  3827. coroutine.resume(coroutine.create(function()
  3828. swait(1)
  3829. lb.Touched:connect(function(hit)
  3830. if hitted == false then
  3831. hitted = true
  3832. lb.Transparency = 1
  3833. lb.Anchored = true
  3834. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3835. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3836. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3837. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3838. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3839. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3840. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3841. CameraEnshaking(1,5)
  3842. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3843. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3844. for i = 0, 9 do
  3845. 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)
  3846. end
  3847. for i = 0, 99 do
  3848. swait()
  3849. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3850. 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)
  3851. end
  3852. end
  3853. end)
  3854. end))
  3855. end
  3856. Overed = true
  3857. orb:Destroy()
  3858. end))
  3859.  
  3860. attack = false
  3861. end
  3862.  
  3863. function DivineBlast()
  3864. attack = true
  3865. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3866. hum.WalkSpeed = 0
  3867. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3868. elocacenter.Anchored = true
  3869. elocacenter.CFrame = sorb.CFrame
  3870. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3871. eloca1.Anchored = true
  3872. eloca1.CFrame = elocacenter.CFrame
  3873. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3874. eloca2.Anchored = true
  3875. eloca2.CFrame = elocacenter.CFrame
  3876. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3877. eloca3.Anchored = true
  3878. eloca3.CFrame = elocacenter.CFrame
  3879. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3880. eloca4.Anchored = true
  3881. eloca4.CFrame = elocacenter.CFrame
  3882. local lookavec = 0
  3883. local speeds = 0
  3884. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3885. for i = 0, 3, 0.1 do
  3886. swait()
  3887. ---
  3888. lookavec = lookavec + 0.1
  3889. speeds = speeds + 10
  3890. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3891. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3892. 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)
  3893.  
  3894. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3895. 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)
  3896.  
  3897. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3898. 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)
  3899.  
  3900. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3901. 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)
  3902. ---
  3903. root.CFrame = FaceMouse()[1]
  3904. 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)
  3905. 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)
  3906. 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)
  3907. 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)
  3908. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3909. 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)
  3910. end
  3911. for i = 0, 3, 0.1 do
  3912. swait()
  3913. ---
  3914. speeds = speeds + 10
  3915. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3916. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3917. 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)
  3918.  
  3919. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3920. 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)
  3921.  
  3922. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3923. 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)
  3924.  
  3925. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3926. 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)
  3927. ---
  3928. root.CFrame = FaceMouse()[1]
  3929. 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)
  3930. 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)
  3931. 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)
  3932. 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)
  3933. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3934. 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)
  3935. end
  3936. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3937. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3938. for i = 0, 3, 0.1 do
  3939. swait()
  3940. ---
  3941. speeds = speeds + 10
  3942. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3943. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3944. 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)
  3945.  
  3946. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3947. 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)
  3948.  
  3949. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3950. 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)
  3951.  
  3952. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3953. 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)
  3954. ---
  3955. root.CFrame = FaceMouse()[1]
  3956. 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)
  3957. 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)
  3958. 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)
  3959. 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)
  3960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3961. 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)
  3962. end
  3963. coroutine.resume(coroutine.create(function()
  3964. local a = Instance.new("Part",Character)
  3965. a.Name = "Direction"
  3966. a.Anchored = true
  3967. a.BrickColor = bc("White")
  3968. a.Material = "Neon"
  3969. a.Transparency = 0
  3970. a.Shape = "Cylinder"
  3971. a.CanCollide = false
  3972. local a2 = Instance.new("Part",Character)
  3973. a2.Name = "Direction"
  3974. a2.Anchored = true
  3975. a2.BrickColor = bc("Bright yellow")
  3976. a2.Material = "Neon"
  3977. a2.Transparency = 0
  3978. a2.Shape = "Cylinder"
  3979. a2.CanCollide = false
  3980. local b = Instance.new("Part",Character)
  3981. b.Name = "HitDirect"
  3982. b.Anchored = true
  3983. b.BrickColor = bc("Cool yellow")
  3984. b.Material = "Neon"
  3985. b.Transparency = 1
  3986. b.CanCollide = false
  3987. local ray = Ray.new(
  3988. elocacenter.CFrame.p, -- origin
  3989. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3990. )
  3991. local ignore = Character
  3992. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3993. a.BottomSurface = 10
  3994. a.TopSurface = 10
  3995. a2.BottomSurface = 10
  3996. a2.TopSurface = 10
  3997. local distance = (elocacenter.CFrame.p - position).magnitude
  3998. a.Size = Vector3.new(distance, 1, 1)
  3999. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4000. a2.Size = Vector3.new(distance, 1, 1)
  4001. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4002. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4003. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4004. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4005. game:GetService("Debris"):AddItem(a, 10)
  4006. game:GetService("Debris"):AddItem(a2, 10)
  4007. game:GetService("Debris"):AddItem(b, 10)
  4008. local eff = Instance.new("ParticleEmitter",b)
  4009. eff.Texture = "rbxassetid://2273224484"
  4010. eff.LightEmission = 1
  4011. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4012. eff.Rate = 500000
  4013. eff.Lifetime = NumberRange.new(0.5,2)
  4014. 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)})
  4015. 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)})
  4016. eff.Speed = NumberRange.new(20,250)
  4017. eff.Drag = 5
  4018. eff.Rotation = NumberRange.new(-500,500)
  4019. eff.VelocitySpread = 9000
  4020. eff.RotSpeed = NumberRange.new(-50,50)
  4021. coroutine.resume(coroutine.create(function()
  4022. wait(0.25)
  4023. eff.Enabled = false
  4024. end))
  4025. local msh = Instance.new("SpecialMesh",a)
  4026. msh.MeshType = "Cylinder"
  4027. msh.Scale = vt(1,2,2)
  4028. local msh2 = Instance.new("SpecialMesh",a2)
  4029. msh2.MeshType = "Cylinder"
  4030. msh2.Scale = vt(1,2.5,2.5)
  4031. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4032. coroutine.resume(coroutine.create(function()
  4033. for i = 0,10,0.1 do
  4034. swait()
  4035. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4036. a.Transparency = a.Transparency + 0.025
  4037. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4038. a2.Transparency = a2.Transparency + 0.05
  4039. end
  4040. a:Destroy()
  4041. a2:Destroy()
  4042. end))
  4043. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4044. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4045. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4046. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4047. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4048. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4049. MagniDamage(b, 25, 40,65, 0, "Normal")
  4050. for i = 0, 49 do
  4051. 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)
  4052. 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)
  4053. end
  4054. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4055. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4056. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4057. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4058. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4059. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4060. end))
  4061. game:GetService("Debris"):AddItem(elocacenter, 5)
  4062. hum.WalkSpeed = storehumanoidWS
  4063. attack = false
  4064. end
  4065.  
  4066. function StarDivision()
  4067. attack = true
  4068. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4069. for i = 0, 2, 0.1 do
  4070. swait()
  4071. 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)
  4072. 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)
  4073. 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)
  4074. 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)
  4075. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4076. 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)
  4077. end
  4078. local orb = Instance.new("Part", char)
  4079. orb.BrickColor = MAINRUINCOLOR
  4080. orb.CanCollide = false
  4081. orb.FormFactor = 3
  4082. orb.Name = "Ring"
  4083. orb.Material = "Neon"
  4084. orb.Size = Vector3.new(1, 1, 1)
  4085. orb.Transparency = 0
  4086. orb.TopSurface = 0
  4087. orb.BottomSurface = 0
  4088. local orbm = Instance.new("SpecialMesh", orb)
  4089. orbm.MeshType = "Sphere"
  4090. orbm.Name = "SizeMesh"
  4091. orbm.Scale = vt(2,2,2)
  4092. local a = Instance.new("Part",workspace)
  4093. a.Name = "Direction"
  4094. a.Anchored = true
  4095. a.BrickColor = bc("Bright red")
  4096. a.Material = "Neon"
  4097. a.Transparency = 1
  4098. a.CanCollide = false
  4099. local ray = Ray.new(
  4100. sorb.CFrame.p, -- origin
  4101. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4102. )
  4103. local ignore = sorb
  4104. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4105. a.BottomSurface = 10
  4106. a.TopSurface = 10
  4107. local distance = (sorb.CFrame.p - position).magnitude
  4108. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4109. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4110. orb.CFrame = a.CFrame
  4111. a:Destroy()
  4112. local bv = Instance.new("BodyVelocity")
  4113. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4114. bv.velocity = orb.CFrame.lookVector*100
  4115. bv.Parent = orb
  4116. local hitted = false
  4117. game:GetService("Debris"):AddItem(orb, 10)
  4118. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4119. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4120. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4121. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4122. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4123. coroutine.resume(coroutine.create(function()
  4124. while true do
  4125. swait(1)
  4126. if orb.Parent ~= nil and hitted == false then
  4127. 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)
  4128. elseif orb.Parent == nil then
  4129. break
  4130. end
  4131. end
  4132. end))
  4133. coroutine.resume(coroutine.create(function()
  4134. swait(1)
  4135. orb.Touched:connect(function(hit)
  4136. if hitted == false then
  4137. hitted = true
  4138. game:GetService("Debris"):AddItem(orb, 5)
  4139. orb.Transparency = 1
  4140. orb.Anchored = true
  4141. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4142. elocacenter.Anchored = true
  4143. elocacenter.CFrame = orb.CFrame
  4144. elocacenter.Orientation = vt(0,0,0)
  4145. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4146. eloca1.Anchored = true
  4147. eloca1.CFrame = elocacenter.CFrame
  4148. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4149. eloca2.Anchored = true
  4150. eloca2.CFrame = elocacenter.CFrame
  4151. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4152. eloca3.Anchored = true
  4153. eloca3.CFrame = elocacenter.CFrame
  4154. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4155. eloca4.Anchored = true
  4156. eloca4.CFrame = elocacenter.CFrame
  4157. local lookavec = 0
  4158. local speeds = 0
  4159. CameraEnshaking(1,1)
  4160. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4161. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4162. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4163. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4164. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4165. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4166. for i = 0, 99 do
  4167. swait()
  4168. lookavec = lookavec + 1
  4169. speeds = speeds + 0.1
  4170. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4171. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4172. 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)
  4173.  
  4174. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4175. 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)
  4176.  
  4177. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4178. 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)
  4179.  
  4180. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4181. 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)
  4182. end
  4183.  
  4184. for i = 0, 149 do
  4185. swait()
  4186. speeds = speeds + 0.1
  4187. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4188. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4189. 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)
  4190.  
  4191. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4192. 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)
  4193.  
  4194. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4195. 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)
  4196.  
  4197. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4198. 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)
  4199. end
  4200. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4201. if v:FindFirstChild('Head') then
  4202. dmg(v)
  4203. end
  4204. end
  4205. CameraEnshaking(7,30)
  4206. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4207. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4208. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4209. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4210. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4211. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4212. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4213. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4214. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4215. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4216. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4217. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4218. for i = 0, 24 do
  4219. 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)
  4220. 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)
  4221. 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)
  4222. 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)
  4223. end
  4224. coroutine.resume(coroutine.create(function()
  4225. for i = 0, 499 do
  4226. swait(1)
  4227. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4228. 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)
  4229. end
  4230. elocacenter:Destroy()
  4231. eloca1:Destroy()
  4232. eloca2:Destroy()
  4233. eloca3:Destroy()
  4234. eloca4:Destroy()
  4235. end))
  4236. end
  4237. end)
  4238. end))
  4239. attack = false
  4240. end
  4241.  
  4242.  
  4243. function THE_TRUE_POWER_OF_VIOLENCE()
  4244. attack = true
  4245. hum.WalkSpeed = 0
  4246. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4247. for i = 0, 10, 0.1 do
  4248. swait()
  4249. 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)
  4250. 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)
  4251. 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)
  4252. 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)
  4253. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4254. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4255. 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)
  4256. end
  4257. local orb = Instance.new("Part", char)
  4258. orb.BrickColor = MAINRUINCOLOR
  4259. orb.CanCollide = false
  4260. orb.FormFactor = 3
  4261. orb.Name = "Ring"
  4262. orb.Material = "Neon"
  4263. orb.Size = Vector3.new(1, 1, 1)
  4264. orb.Transparency = 0
  4265. orb.TopSurface = 0
  4266. orb.BottomSurface = 0
  4267. orb.CFrame = sorb.CFrame
  4268. local orbm = Instance.new("SpecialMesh", orb)
  4269. orbm.MeshType = "Sphere"
  4270. orbm.Name = "SizeMesh"
  4271. orbm.Scale = vt(0,0,0)
  4272. local sbs = Instance.new("BodyPosition", orb)
  4273. sbs.P = 3000
  4274. sbs.D = 1000
  4275. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4276. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4277. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4278. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4279. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4280. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4281. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4282. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4283. for i = 0, 10, 0.1 do
  4284. swait()
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4290. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4291. 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)
  4292. end
  4293. orb.Anchored = true
  4294. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4295. elocacenter.Anchored = true
  4296. elocacenter.CFrame = orb.CFrame
  4297. elocacenter.Orientation = vt(0,0,0)
  4298. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4299. eloca1.Anchored = true
  4300. eloca1.CFrame = elocacenter.CFrame
  4301. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4302. eloca2.Anchored = true
  4303. eloca2.CFrame = elocacenter.CFrame
  4304. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4305. eloca3.Anchored = true
  4306. eloca3.CFrame = elocacenter.CFrame
  4307. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4308. eloca4.Anchored = true
  4309. eloca4.CFrame = elocacenter.CFrame
  4310. local lookavec = 0
  4311. local speeds = 0
  4312. CameraEnshaking(1,1)
  4313. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4314. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4315. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4316. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4317. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4318. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4319. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4320. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4321. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4322. for i = 0, 99 do
  4323. swait()
  4324. lookavec = lookavec + 2.5
  4325. speeds = speeds + 0.25
  4326. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4327. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4328. 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)
  4329.  
  4330. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4331. 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)
  4332.  
  4333. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4334. 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)
  4335.  
  4336. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4337. 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)
  4338. end
  4339.  
  4340. for i = 0, 149 do
  4341. swait()
  4342. speeds = speeds + 0.25
  4343. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4344. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4345. 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)
  4346.  
  4347. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4348. 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)
  4349.  
  4350. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4351. 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)
  4352.  
  4353. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4354. 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)
  4355. end
  4356. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4357. for i = 0, 99 do
  4358. swait()
  4359. lookavec = lookavec - 2.5
  4360. speeds = speeds + 0.25
  4361. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4362. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4363. 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)
  4364.  
  4365. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4366. 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)
  4367.  
  4368. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4369. 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)
  4370.  
  4371. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4372. 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)
  4373. end
  4374. local scaled = 0.1*75
  4375. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4376. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4377. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4378. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4379. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4380. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4381. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4382. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4383. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4384. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4385. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4386.  
  4387. for i = 0, 10, 0.1 do
  4388. swait()
  4389. scaled = scaled - 0.001*75
  4390. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4391. 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)
  4392. 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)
  4393. 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)
  4394. 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)
  4395. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4396. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4397. 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)
  4398. end
  4399. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4400. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4401. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4402. for x = 0, 4 do
  4403. for i = 0, 9 do
  4404. 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)
  4405. end
  4406. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4407. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4408. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4409. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4410. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4411. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4412. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4413. for i = 0, 5, 0.1 do
  4414. swait()
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. 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)
  4420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4421. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4422. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4423. end
  4424. end
  4425. local speedearn = 0
  4426. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4427. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4428. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4429. for i = 0, 30, 0.1 do
  4430. swait()
  4431. scaled = scaled - 0.001*75/10
  4432. speedearn = speedearn + 0.5
  4433. for i = 0, 4 do
  4434. 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)
  4435. end
  4436. 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)
  4437. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4438. 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)
  4439. 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)
  4440. 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)
  4441. 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)
  4442. 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)
  4443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4444. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4445. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4446. end
  4447. orb.Transparency = 1
  4448. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4449. if v:FindFirstChild('Head') then
  4450. dmg(v)
  4451. end
  4452. end
  4453. CameraEnshaking(7,30)
  4454. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4455. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4456. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4457. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4458. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4459. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4460. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4461. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4462. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4463. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4464. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4465. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4466. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4467. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4468. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4469. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. for i = 0, 99 do
  4474. 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)
  4475. 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)
  4476. end
  4477. for i = 0, 24 do
  4478. 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)
  4479. 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)
  4480. 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)
  4481. 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)
  4482. 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)
  4483. end
  4484. game:GetService("Debris"):AddItem(orb, 10)
  4485. hum.WalkSpeed = storehumanoidWS
  4486. attack = false
  4487. end
  4488.  
  4489.  
  4490. function ViolentRing()
  4491. attack = true
  4492. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4493. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4494. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4495. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4496. for i = 0, 2, 0.1 do
  4497. swait()
  4498. local snap = math.random(1,10)
  4499. if snap == 1 then
  4500. 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)
  4501. end
  4502. 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)
  4503. 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)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. 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)
  4508. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4510. 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)
  4511. RootPart.CFrame = FaceMouse()[1]
  4512. end
  4513. local orb = Instance.new("Part", char)
  4514. orb.BrickColor = MAINRUINCOLOR
  4515. orb.CanCollide = false
  4516. orb.FormFactor = 3
  4517. orb.Name = "Ring"
  4518. orb.Material = "Neon"
  4519. orb.Size = Vector3.new(1, 1, 1)
  4520. orb.Transparency = 0
  4521. orb.TopSurface = 0
  4522. orb.BottomSurface = 0
  4523. local orbm = Instance.new("SpecialMesh", orb)
  4524. orbm.MeshType = "Sphere"
  4525. orbm.Name = "SizeMesh"
  4526. orbm.Scale = vt(2,2,2)
  4527. orb.CFrame = mouse.Hit
  4528. local bv = Instance.new("BodyVelocity")
  4529. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4530. bv.velocity = orb.CFrame.lookVector*100
  4531. bv.Parent = orb
  4532. local hitted = false
  4533. coroutine.resume(coroutine.create(function()
  4534. game:GetService("Debris"):AddItem(orb, 5)
  4535. orb.Transparency = 1
  4536. orb.Anchored = true
  4537. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4538. elocacenter.Anchored = true
  4539. elocacenter.CFrame = orb.CFrame
  4540. elocacenter.Orientation = vt(0,0,0)
  4541. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4542. eloca1.Anchored = true
  4543. eloca1.CFrame = elocacenter.CFrame
  4544. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4545. eloca2.Anchored = true
  4546. eloca2.CFrame = elocacenter.CFrame
  4547. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4548. eloca3.Anchored = true
  4549. eloca3.CFrame = elocacenter.CFrame
  4550. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4551. eloca4.Anchored = true
  4552. eloca4.CFrame = elocacenter.CFrame
  4553. local lookavec = 0
  4554. local speeds = 0
  4555. CameraEnshaking(1,1)
  4556. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4557. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4558. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4559. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4560. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4561. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4562. for i = 0, 24 do
  4563. swait()
  4564. lookavec = lookavec + 3.5
  4565. speeds = speeds + 1
  4566. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4567. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4568. 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)
  4569.  
  4570. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4571. 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)
  4572.  
  4573. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4574. 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)
  4575.  
  4576. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4577. 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)
  4578. end
  4579.  
  4580. local risen = 0
  4581. for i = 0, 49 do
  4582. swait()
  4583. risen = risen + 0.05
  4584. speeds = speeds + 0.1
  4585. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4586. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4587. 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)
  4588.  
  4589. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4590. 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)
  4591.  
  4592. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4593. 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)
  4594.  
  4595. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4596. 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)
  4597. end
  4598. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4599. if v:FindFirstChild('Head') then
  4600. dmg(v)
  4601. end
  4602. end
  4603. CameraEnshaking(4,10)
  4604. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4605. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4606. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4607. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4608. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4609. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4610. local eff = Instance.new("ParticleEmitter",elocacenter)
  4611. eff.Texture = "rbxassetid://2273224484"
  4612. eff.LightEmission = 1
  4613. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4614. eff.Rate = 1000000
  4615. eff.Lifetime = NumberRange.new(0.5,2)
  4616. 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)})
  4617. 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)})
  4618. eff.Speed = NumberRange.new(20,250)
  4619. eff.Drag = 5
  4620. eff.Rotation = NumberRange.new(-500,500)
  4621. eff.VelocitySpread = 5000000
  4622. eff.RotSpeed = NumberRange.new(-50,50)
  4623. coroutine.resume(coroutine.create(function()
  4624. wait(1)
  4625. eff.Enabled = false
  4626. end))
  4627. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4628. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4629. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4630. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4631. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4632. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4633. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4634. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4635. for i = 0, 24 do
  4636. 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)
  4637. 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)
  4638. 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)
  4639. 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)
  4640. end
  4641. coroutine.resume(coroutine.create(function()
  4642. wait(10)
  4643. elocacenter:Destroy()
  4644. eloca1:Destroy()
  4645. eloca2:Destroy()
  4646. eloca3:Destroy()
  4647. eloca4:Destroy()
  4648. end))
  4649. end))
  4650. attack = false
  4651. end
  4652.  
  4653. function UniversalCollapse()
  4654. attack = true
  4655. local speedearn = 0
  4656. hum.WalkSpeed = 0
  4657. local sbs = Instance.new("BodyPosition", root)
  4658. sbs.P = 3000
  4659. sbs.D = 1000
  4660. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4661. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4662. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4663. for i = 0, 85, 0.1 do
  4664. swait()
  4665. speedearn = speedearn + 0.1
  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. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4671. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4672. 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)
  4673. 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)
  4674. 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)
  4675. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4676. 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)
  4677. 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)
  4678. end
  4679. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4680. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4681. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4682. for i = 0, 25, 0.1 do
  4683. swait()
  4684. speedearn = speedearn + 0.1
  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. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4690. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4691. 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)
  4692. 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)
  4693. 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)
  4694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4695. 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)
  4696. 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)
  4697. end
  4698. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4699. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4700. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4701. CameraEnshaking(5,50)
  4702. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4703. for i = 0, 2 do
  4704. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4705. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4706. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4707. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4708. end
  4709. for i = 0, 49 do
  4710. 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)
  4711. 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)
  4712. 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)
  4713. 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)
  4714. end
  4715. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4716. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4717. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4718. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4719. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4720. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4721. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4722. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4723. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4724. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4725. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4726. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4727. for i = 0, 99 do
  4728. 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)
  4729. 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)
  4730. end
  4731. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4732. if v:FindFirstChild('Head') then
  4733. dmg(v)
  4734. end
  4735. end
  4736. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4737. sbs:Destroy()
  4738. hum.WalkSpeed = storehumanoidWS
  4739. attack = false
  4740. end
  4741.  
  4742.  
  4743. function ChaosEND()
  4744. attack = true
  4745. local speedearn = 0
  4746. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4747. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4748. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4749. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4750. for i = 0, 15, 0.1 do
  4751. swait()
  4752. speedearn = speedearn + 0.25
  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. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4758. 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)
  4759. 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)
  4760. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4761. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4762. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4763. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4764. end
  4765. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4766. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4767. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4768. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4769. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4770. CameraEnshaking(5,25)
  4771. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4772. if v:FindFirstChild('Head') then
  4773. dmg(v)
  4774. end
  4775. end
  4776. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4777. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4778. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4779. for i = 0, 3, 0.1 do
  4780. swait()
  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. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4785. 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)
  4786. 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)
  4787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4788. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4790. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4791. end
  4792. attack = false
  4793. end
  4794.  
  4795. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4796. local orb = Instance.new("Part", char)
  4797. orb.Anchored = true
  4798. orb.BrickColor = color
  4799. orb.CanCollide = false
  4800. orb.FormFactor = 3
  4801. orb.Name = "Ring"
  4802. orb.Material = "Neon"
  4803. orb.Size = Vector3.new(1, 1, 1)
  4804. orb.Transparency = 0
  4805. orb.TopSurface = 0
  4806. orb.BottomSurface = 0
  4807. local orbm = Instance.new("SpecialMesh", orb)
  4808. orbm.MeshType = "Sphere"
  4809. orb.CFrame = positted
  4810. orbm.Name = "SizeMesh"
  4811. orbm.Scale = vt(1,1,1)
  4812. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4813. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4814. --[[for i = 0, 2 do
  4815. 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)
  4816. end]]--
  4817. coroutine.resume(coroutine.create(function()
  4818. wait(timer)
  4819. CameraEnshaking(3,ShakePower)
  4820. orb.Transparency = 1
  4821. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4822. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4823. --[[for i = 0, 4 do
  4824. 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)
  4825. end]]--
  4826. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4827. wait(3)
  4828. orb:Destroy()
  4829. end))
  4830. end
  4831.  
  4832. function orb_spawn(positted,timer)
  4833. local randomcol = math.random(1,2)
  4834. local orb = Instance.new("Part", char)
  4835. orb.Anchored = true
  4836. if randomcol == 1 then
  4837. orb.BrickColor = BrickColor.new("White")
  4838. elseif randomcol == 2 then
  4839. orb.BrickColor = BrickColor.new("Really black")
  4840. end
  4841. orb.CanCollide = false
  4842. orb.FormFactor = 3
  4843. orb.Name = "Ring"
  4844. orb.Material = "Neon"
  4845. orb.Size = Vector3.new(1, 1, 1)
  4846. orb.Transparency = 0
  4847. orb.TopSurface = 0
  4848. orb.BottomSurface = 0
  4849. local orbm = Instance.new("SpecialMesh", orb)
  4850. orbm.MeshType = "Sphere"
  4851. orb.CFrame = positted
  4852. orbm.Name = "SizeMesh"
  4853. orbm.Scale = vt(1,1,1)
  4854. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4855. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4856. for i = 0, 2 do
  4857. 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)
  4858. end
  4859. coroutine.resume(coroutine.create(function()
  4860. wait(timer)
  4861. CameraEnshaking(3,2)
  4862. orb.Transparency = 1
  4863. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4864. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4865. for i = 0, 4 do
  4866. 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)
  4867. end
  4868. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4869. wait(3)
  4870. orb:Destroy()
  4871. end))
  4872. end
  4873.  
  4874. function scattercorrupt()
  4875. attack = true
  4876. hum.WalkSpeed = 0
  4877. for i = 0, 2, 0.1 do
  4878. swait()
  4879. 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)
  4880. 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)
  4881. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4882. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4883. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4884. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4885. end
  4886. local rot = 0
  4887. local randomrotations = math.random(1,2)
  4888. local lookv = 2.5
  4889. local power = 7
  4890. local radm = math.random(1,3)
  4891. if radm == 1 then
  4892. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4893. elseif radm == 2 then
  4894. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4895. elseif radm == 3 then
  4896. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4897. end
  4898. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4899. for i = 0, 1, 0.1 do
  4900. swait()
  4901. 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)
  4902. 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)
  4903. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4904. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4905. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4906. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4907. end
  4908. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4909. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4910. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4911. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4912. for i = 0, 9 do
  4913. 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)
  4914. end
  4915. local hite = Instance.new("Part", char)
  4916. hite.Anchored = true
  4917. hite.CanCollide = false
  4918. hite.FormFactor = 3
  4919. hite.Name = "Ring"
  4920. hite.Material = "Neon"
  4921. hite.Size = Vector3.new(1, 1, 1)
  4922. hite.Transparency = 1
  4923. hite.TopSurface = 0
  4924. hite.BottomSurface = 0
  4925. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4926. local rem = Instance.new("Part", char)
  4927. rem.Anchored = true
  4928. rem.CanCollide = false
  4929. rem.FormFactor = 3
  4930. rem.Name = "Ring"
  4931. rem.Material = "Neon"
  4932. rem.Size = Vector3.new(1, 1, 1)
  4933. rem.Transparency = 1
  4934. rem.TopSurface = 0
  4935. rem.BottomSurface = 0
  4936. rem.CFrame = hite.CFrame
  4937. local rem2 = rem:Clone()
  4938. rem2.Parent = char
  4939. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4940. local rem3 = rem:Clone()
  4941. rem3.Parent = char
  4942. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4943. local rem4 = rem:Clone()
  4944. rem4.Parent = char
  4945. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4946. hite:Destroy()
  4947. coroutine.resume(coroutine.create(function()
  4948. for i = 0, 24 do
  4949. swait(1)
  4950. if randomrotations == 1 then
  4951. rot = rot + 1
  4952. elseif randomrotations == 2 then
  4953. rot = rot - 1
  4954. end
  4955. power = power + 0.5
  4956. lookv = lookv + 7.5
  4957. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4958. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4959. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4960. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4961. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4962. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4963. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4964. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4965. end
  4966. end))
  4967. wait(2)
  4968. hum.WalkSpeed = storehumanoidWS
  4969. attack = false
  4970. end
  4971. function yinyangi()
  4972. attack = true
  4973. for i = 0, 2, 0.1 do
  4974. swait()
  4975. 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)
  4976. 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)
  4977. 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)
  4978. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4979. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4980. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4981. end
  4982. local bv = Instance.new("BodyVelocity")
  4983. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4984. bv.velocity = root.CFrame.lookVector*175
  4985. bv.Parent = root
  4986. for Rotations = 0, 9 do
  4987. for i = 0, 1, 0.5 do
  4988. swait()
  4989. bv.velocity = root.CFrame.lookVector*175
  4990. 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)
  4991. 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)
  4992. 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)
  4993. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4995. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4996. end
  4997. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4998. for i = 0, 1, 0.5 do
  4999. swait()
  5000. bv.velocity = root.CFrame.lookVector*175
  5001. 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)
  5002. 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)
  5003. 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)
  5004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5006. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5007. end
  5008. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5009. for i = 0, 1, 0.5 do
  5010. swait()
  5011. bv.velocity = root.CFrame.lookVector*175
  5012. 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)
  5013. 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)
  5014. 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)
  5015. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5016. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5017. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5018. end
  5019. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5020. for i = 0, 1, 0.5 do
  5021. swait()
  5022. bv.velocity = root.CFrame.lookVector*175
  5023. 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)
  5024. 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)
  5025. 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)
  5026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5028. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5029. end
  5030. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5031. end
  5032. bv:Destroy()
  5033. attack = false
  5034. end
  5035.  
  5036. function createBGCircle(size,parent,color)
  5037. local bgui = Instance.new("BillboardGui",parent)
  5038. bgui.Size = UDim2.new(size, 0, size, 0)
  5039. local imgc = Instance.new("ImageLabel",bgui)
  5040. imgc.BackgroundTransparency = 1
  5041. imgc.ImageTransparency = 0
  5042. imgc.Size = UDim2.new(1,0,1,0)
  5043. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5044. imgc.ImageColor3 = color
  5045. return bgui,imgc
  5046. end
  5047.  
  5048. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5049. local bgui,imgc = createBGCircle(size,guipar,color)
  5050. bgui.AlwaysOnTop = true
  5051. imgc.Image = "rbxassetid://" ..img
  5052. local rrot = math.random(1,2)
  5053. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5054. coroutine.resume(coroutine.create(function()
  5055. for i = 0, 24*delay do
  5056. swait()
  5057. if rotationenabled == true then
  5058. if rrot == 1 then
  5059. imgc.Rotation = imgc.Rotation + rotsp
  5060. elseif rrot == 2 then
  5061. imgc.Rotation = imgc.Rotation - rotsp
  5062. end
  5063. end
  5064. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5065. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5066. end
  5067. bgui:Destroy()
  5068. end))
  5069. end
  5070. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5071. for i, v in pairs(mw2:GetChildren()) do
  5072. if v:IsA("Part") then
  5073. v.BrickColor = one
  5074. v.Material = "Neon"
  5075. end
  5076. end
  5077. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5078. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5079. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5080. tr1.Color = ColorSequence.new(one.Color)
  5081. tr2.Color = ColorSequence.new(one.Color)
  5082. tr3.Color = ColorSequence.new(one.Color)
  5083. for i, v in pairs(mw1:GetChildren()) do
  5084. if v:IsA("Part") then
  5085. if secondaryenabled == false then
  5086. v.Transparency = 1
  5087. elseif secondaryenabled == true then
  5088. v.Transparency = 0
  5089. end
  5090. v.BrickColor = two
  5091. v.Material = "Neon"
  5092. end
  5093. end
  5094. if secondaryenabled == false then
  5095. tl1.Enabled = false
  5096. tl2.Enabled = false
  5097. tl3.Enabled = false
  5098. elseif secondaryenabled == true then
  5099. tl1.Enabled = true
  5100. tl2.Enabled = true
  5101. tl3.Enabled = true
  5102. end
  5103. tl1.Color = ColorSequence.new(two.Color)
  5104. tl2.Color = ColorSequence.new(two.Color)
  5105. tl3.Color = ColorSequence.new(two.Color)
  5106. for i, v in pairs(m:GetChildren()) do
  5107. if v:IsA("Part") then
  5108. v.BrickColor = three
  5109. v.Material = "Ice"
  5110. end
  5111. end
  5112. for i, v in pairs(m2:GetChildren()) do
  5113. if v:IsA("Part") then
  5114. v.BrickColor = four
  5115. v.Material = "Ice"
  5116. end
  5117. end
  5118. for i, v in pairs(m3:GetChildren()) do
  5119. if v:IsA("Part") then
  5120. v.BrickColor = five
  5121. v.Material = "Neon"
  5122. end
  5123. end
  5124. for i, v in pairs(extrawingmod1:GetChildren()) do
  5125. if v:IsA("Part") then
  5126. v.Transparency = exonetran
  5127. v.BrickColor = exone
  5128. v.Material = "Neon"
  5129. end
  5130. end
  5131. for i, v in pairs(extrawingmod2:GetChildren()) do
  5132. if v:IsA("Part") then
  5133. v.Transparency = extwotran
  5134. v.BrickColor = extwo
  5135. v.Material = "Neon"
  5136. end
  5137. end
  5138. end
  5139.  
  5140.  
  5141. function normalmog()
  5142. attack = true
  5143. hum.WalkSpeed = 0
  5144. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5145. for i = 0,6,0.1 do
  5146. swait()
  5147. 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)
  5148. 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)
  5149. 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)
  5150. 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)
  5151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5152. 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)
  5153. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5154. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5155. end
  5156. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5157. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5158. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5159. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5160. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5161. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5162. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5163. rainbowmode = false
  5164. chaosmode = false
  5165. ModeOfGlitch = 1
  5166. storehumanoidWS = 16
  5167. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5168. RecolorTextAndRename("iiOmq_JacobXX2 The Cool Guy",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5169. CameraEnshaking(5,2.5)
  5170. MAINRUINCOLOR = BrickColor.new("Really red")
  5171. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5172. for i = 0, 49 do
  5173. 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)
  5174. end
  5175. for i = 0, 24 do
  5176. 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)
  5177. 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"))
  5178. end
  5179. for i = 0,3,0.1 do
  5180. 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)
  5181. end
  5182. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5183. for i = 0,2,0.1 do
  5184. swait()
  5185. 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)
  5186. 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)
  5187. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5188. 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)
  5189. 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)
  5190. 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)
  5191. end
  5192. hum.WalkSpeed = storehumanoidWS
  5193. attack = false
  5194. end
  5195.  
  5196. function attackone()
  5197. attack = true
  5198. local keptcolor = MAINRUINCOLOR
  5199. for i = 0,1,0.1 do
  5200. swait()
  5201. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5202. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5203. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5204. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5205. 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)
  5206. 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)
  5207. end
  5208. local distlook = 5
  5209. coroutine.resume(coroutine.create(function()
  5210. for i = 0, 4 do
  5211. swait(2)
  5212. CameraEnshaking(2,3)
  5213. local hite = Instance.new("Part", char)
  5214. hite.Anchored = true
  5215. hite.CanCollide = false
  5216. hite.FormFactor = 3
  5217. hite.Name = "Ring"
  5218. hite.Material = "Neon"
  5219. hite.Size = Vector3.new(1, 1, 1)
  5220. hite.Transparency = 1
  5221. hite.TopSurface = 0
  5222. hite.BottomSurface = 0
  5223. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5224. 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)
  5225. 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)
  5226. 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)
  5227. 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)
  5228. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5229. for i = 0, 14 do
  5230. local rsiz = math.random(5,20)
  5231. 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)
  5232. end
  5233. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5234. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5235. game:GetService("Debris"):AddItem(hite, 5)
  5236. distlook = distlook + 10
  5237. end
  5238. end))
  5239. for i = 0,1,0.1 do
  5240. swait()
  5241. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5242. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5243. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5244. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5245. 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)
  5246. 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)
  5247. end
  5248. attack = false
  5249. end
  5250.  
  5251. function attacktwo()
  5252. attack = true
  5253. hum.WalkSpeed = 2
  5254. local keptcolor = MAINRUINCOLOR
  5255. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5256. 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)
  5257. 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)
  5258. for i = 0, 14 do
  5259. 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)
  5260. end
  5261. for i = 0,1,0.1 do
  5262. swait()
  5263. 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)
  5264. 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)
  5265. 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)
  5266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5268. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5269. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5270. end
  5271. for i = 0, 1 do
  5272. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5273. for i = 0,1,0.6 do
  5274. swait()
  5275. 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)
  5276. 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"))
  5277. 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)
  5278. 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)
  5279. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5280. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5281. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5282. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5283. end
  5284. for i = 0,1,0.6 do
  5285. swait()
  5286. 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)
  5287. 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"))
  5288. 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)
  5289. 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)
  5290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5292. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5293. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5294. end
  5295. for i = 0,1,0.6 do
  5296. swait()
  5297. 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)
  5298. 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"))
  5299. 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)
  5300. 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)
  5301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5302. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5303. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5304. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5305. end
  5306. for i = 0,1,0.6 do
  5307. swait()
  5308. 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)
  5309. 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"))
  5310. 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)
  5311. 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)
  5312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5314. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5315. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5316. end
  5317. local rot = 0
  5318. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5319. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5320. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5321. CreateMesh(dis,"Sphere",10,1,10)
  5322. local at1 = Instance.new("Attachment",dis)
  5323. at1.Position = vt(-5,0,0)
  5324. local at2 = Instance.new("Attachment",dis)
  5325. at2.Position = vt(5,0,0)
  5326. local trl = Instance.new('Trail',wed)
  5327. trl.Attachment0 = at1
  5328. trl.Attachment1 = at2
  5329. trl.Texture = "rbxassetid://1049219073"
  5330. trl.LightEmission = 1
  5331. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5332. trl.Color = ColorSequence.new(dis.Color)
  5333. trl.Lifetime = 0.6
  5334. local a = Instance.new("Part",workspace)
  5335. a.Name = "Direction"
  5336. a.Anchored = true
  5337. a.BrickColor = bc("Bright red")
  5338. a.Material = "Neon"
  5339. a.Transparency = 1
  5340. a.CanCollide = false
  5341. local ray = Ray.new(
  5342. dis.CFrame.p, -- origin
  5343. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5344. )
  5345. local ignore = dis
  5346. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5347. a.BottomSurface = 10
  5348. a.TopSurface = 10
  5349. local distance = (dis.CFrame.p - position).magnitude
  5350. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5351. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5352. dis.CFrame = a.CFrame
  5353. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5354. a:Destroy()
  5355. local bv = Instance.new("BodyVelocity")
  5356. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5357. bv.velocity = dis.CFrame.lookVector*250
  5358. bv.Parent = dis
  5359. game:GetService("Debris"):AddItem(dis, 5)
  5360. local hitted = false
  5361. coroutine.resume(coroutine.create(function()
  5362. dis.Touched:connect(function(hit)
  5363. if hitted == false and hit.Parent ~= char then
  5364. hitted = true
  5365. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5366. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5367. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5368. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5369. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5370. coroutine.resume(coroutine.create(function()
  5371. for i = 0, 9 do
  5372. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5373. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5374. local at1 = Instance.new("Attachment",disr)
  5375. at1.Position = vt(-5,0,0)
  5376. local at2 = Instance.new("Attachment",disr)
  5377. at2.Position = vt(5,0,0)
  5378. local trl = Instance.new('Trail',disr)
  5379. trl.Attachment0 = at1
  5380. trl.FaceCamera = true
  5381. trl.Attachment1 = at2
  5382. trl.Texture = "rbxassetid://2342682798"
  5383. trl.LightEmission = 1
  5384. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5385. trl.Color = ColorSequence.new(keptcolor.Color)
  5386. trl.Lifetime = 0.5
  5387. local bv = Instance.new("BodyVelocity")
  5388. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5389. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5390. bv.Parent = disr
  5391. local val = 0
  5392. coroutine.resume(coroutine.create(function()
  5393. swait(30)
  5394. for i = 0, 9 do
  5395. swait()
  5396. val = val + 0.1
  5397. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5398. end
  5399. game:GetService("Debris"):AddItem(disr, 3)
  5400. end))
  5401. end
  5402. local eff = Instance.new("ParticleEmitter",dis)
  5403. eff.Texture = "rbxassetid://2273224484"
  5404. eff.LightEmission = 1
  5405. eff.Color = ColorSequence.new(keptcolor.Color)
  5406. eff.Rate = 500000
  5407. eff.Lifetime = NumberRange.new(0.5,2)
  5408. 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)})
  5409. 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)})
  5410. eff.Speed = NumberRange.new(20,250)
  5411. eff.Drag = 5
  5412. eff.Rotation = NumberRange.new(-500,500)
  5413. eff.VelocitySpread = 9000
  5414. eff.RotSpeed = NumberRange.new(-50,50)
  5415. wait(0.25)
  5416. eff.Enabled = false
  5417. end))
  5418. for i = 0, 9 do
  5419. 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"))
  5420. end
  5421. for i = 0, 19 do
  5422. 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)
  5423. end
  5424. coroutine.resume(coroutine.create(function()
  5425. for i = 0, 19 do
  5426. swait()
  5427. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5428. end
  5429. hum.CameraOffset = vt(0,0,0)
  5430. end))
  5431. dis.Anchored = true
  5432. dis.Transparency = 1
  5433. wait(8)
  5434. dis:Destroy()
  5435. end
  5436. end)
  5437. end))
  5438. rot = rot - 15
  5439. end
  5440. for i = 0,2,0.1 do
  5441. swait()
  5442. 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)
  5443. 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)
  5444. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5447. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5448. end
  5449. attack = false
  5450. hum.WalkSpeed = storehumanoidWS
  5451. end
  5452.  
  5453. function attackthree()
  5454. attack = true
  5455. local keptcolor = MAINRUINCOLOR
  5456. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5457. for i = 0,2,0.1 do
  5458. swait()
  5459. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5460. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5462. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5463. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5464. 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)
  5465. 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)
  5466. end
  5467. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5468. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5469. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5470. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5471. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5472. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5473. for i = 0, 24 do
  5474. 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"))
  5475. end
  5476. for i = 0,4,0.1 do
  5477. swait()
  5478. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5479. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5480. CreateMesh(dis,"Sphere",1,1,1)
  5481. dis.Anchored = true
  5482. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5483. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5484. coroutine.resume(coroutine.create(function()
  5485. swait(30)
  5486. dis.Transparency = 1
  5487. coroutine.resume(coroutine.create(function()
  5488. for i = 0, 19 do
  5489. swait()
  5490. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5491. end
  5492. hum.CameraOffset = vt(0,0,0)
  5493. end))
  5494. coroutine.resume(coroutine.create(function()
  5495. local eff = Instance.new("ParticleEmitter",dis)
  5496. eff.Texture = "rbxassetid://2273224484"
  5497. eff.LightEmission = 1
  5498. eff.Color = ColorSequence.new(dis.Color)
  5499. eff.Rate = 500000
  5500. eff.Lifetime = NumberRange.new(0.5,2)
  5501. 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)})
  5502. 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)})
  5503. eff.Speed = NumberRange.new(50,450)
  5504. eff.Drag = 5
  5505. eff.Rotation = NumberRange.new(-500,500)
  5506. eff.VelocitySpread = 9000
  5507. eff.RotSpeed = NumberRange.new(-50,50)
  5508. wait(0.125)
  5509. eff.Enabled = false
  5510. end))
  5511. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5512. for i = 0, 2 do
  5513. 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)
  5514. end
  5515. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5516. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5517. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5518. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5519. end))
  5520. game:GetService("Debris"):AddItem(dis, 5)
  5521. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5522. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5523. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5524. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5525. 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)
  5526. 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)
  5527. end
  5528. attack = false
  5529. end
  5530. ----------------------------------- Abilities
  5531.  
  5532. function ExtinctiveHeartbreak()
  5533. local targetted = nil
  5534. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5535. targetted = mouse.Target.Parent
  5536. end
  5537. if targetted ~= nil then
  5538. attack = true
  5539. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5540. for i = 0, 9 do
  5541. 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)
  5542. end
  5543. for i = 0, 24 do
  5544. 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)
  5545. end
  5546. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5547. local originalpos = root.CFrame
  5548. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5549. for i = 0, 9 do
  5550. 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)
  5551. end
  5552. for i = 0, 24 do
  5553. 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)
  5554. end
  5555. hum.WalkSpeed = 0
  5556. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5557. local radm = math.random(1,3)
  5558. if radm == 1 then
  5559. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5560. elseif radm == 2 then
  5561. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5562. elseif radm == 3 then
  5563. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5564. end
  5565. for i = 0,2,0.1 do
  5566. swait()
  5567. 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)
  5568. 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)
  5569. 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)
  5570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5571. 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)
  5572. 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)
  5573. end
  5574. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5575. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5576. for i = 0,2,0.1 do
  5577. swait()
  5578. coroutine.resume(coroutine.create(function()
  5579. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5580. for i,v in pairs(targetted:GetChildren()) do
  5581. if v:IsA("Part") or v:IsA("MeshPart") then
  5582. v.Velocity = vt(0,0,0)
  5583. end
  5584. end
  5585. end))
  5586. 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)
  5587. 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)
  5588. 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)
  5589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5590. 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)
  5591. 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)
  5592. end
  5593. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5594. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5595. for i = 0, 1 do
  5596. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5597. end
  5598. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5599. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5600. for i = 0,4,0.1 do
  5601. swait()
  5602. coroutine.resume(coroutine.create(function()
  5603. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5604. 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)))
  5605. local at1 = Instance.new("Attachment",dis)
  5606. at1.Position = vt(-25000,0,0)
  5607. local at2 = Instance.new("Attachment",dis)
  5608. at2.Position = vt(25000,0,0)
  5609. local trl = Instance.new('Trail',dis)
  5610. trl.Attachment0 = at1
  5611. trl.FaceCamera = true
  5612. trl.Attachment1 = at2
  5613. trl.Texture = "rbxassetid://1049219073"
  5614. trl.LightEmission = 1
  5615. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5616. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5617. trl.Lifetime = 5
  5618. local bv = Instance.new("BodyVelocity")
  5619. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5620. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5621. bv.Parent = dis
  5622. game:GetService("Debris"):AddItem(dis, 5)
  5623. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5624. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5625. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5626. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5627. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5628. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5629. 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)
  5630. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5631. for i = 0, 2 do
  5632. 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"))
  5633. end
  5634. 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)
  5635. for i,v in pairs(targetted:GetChildren()) do
  5636. if v:IsA("Part") or v:IsA("MeshPart") then
  5637. v.Velocity = vt(0,0,0)
  5638. end
  5639. end
  5640. end))
  5641. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5642. 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)
  5643. 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)
  5644. 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)
  5645. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5646. 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)
  5647. 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)
  5648. end
  5649. hum.CameraOffset = vt(0,0,0)
  5650. for i = 0, 49 do
  5651. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5652. 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)))
  5653. local at1 = Instance.new("Attachment",dis)
  5654. at1.Position = vt(-50000,0,0)
  5655. local at2 = Instance.new("Attachment",dis)
  5656. at2.Position = vt(50000,0,0)
  5657. local trl = Instance.new('Trail',dis)
  5658. trl.Attachment0 = at1
  5659. trl.FaceCamera = true
  5660. trl.Attachment1 = at2
  5661. trl.Texture = "rbxassetid://1049219073"
  5662. trl.LightEmission = 1
  5663. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5664. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5665. trl.Lifetime = 5
  5666. local bv = Instance.new("BodyVelocity")
  5667. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5668. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5669. bv.Parent = dis
  5670. game:GetService("Debris"):AddItem(dis, 5)
  5671. end
  5672. for i = 0, 49 do
  5673. 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)
  5674. 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"))
  5675. end
  5676. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5677. for i = 0, 1 do
  5678. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5679. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5680. end
  5681. for i = 0, 4 do
  5682. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5683. end
  5684. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5685. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5686. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5687. dmg(targetted)
  5688. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5689. for i = 0, 9 do
  5690. 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)
  5691. end
  5692. for i = 0, 24 do
  5693. 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)
  5694. end
  5695. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5696. root.CFrame = originalpos
  5697. for i = 0, 9 do
  5698. 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)
  5699. end
  5700. for i = 0, 24 do
  5701. 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)
  5702. end
  5703. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5704. attack = false
  5705. hum.WalkSpeed = storehumanoidWS
  5706. end
  5707. end
  5708.  
  5709. function CorruptionEvent()
  5710. attack = true
  5711. hum.WalkSpeed = 0
  5712. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5713. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5714. local keptcolor = MAINRUINCOLOR
  5715. for i = 0,4,0.1 do
  5716. swait()
  5717. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5718. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5719. 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)
  5720. 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)
  5721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5722. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5723. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5724. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5725. end
  5726. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5727. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5728. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5729. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5730. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5731. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5732. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5733. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5734. hum.CameraOffset = vt(0,0,0)
  5735. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5736. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5737. for i = 0, 24 do
  5738. 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"))
  5739. end
  5740. local rrot = 0
  5741. coroutine.resume(coroutine.create(function()
  5742. for i = 0, 4 do
  5743. rrot = rrot + 45
  5744. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5745. xa.Anchored = true
  5746. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5747. xb.Anchored = true
  5748. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5749. xc.Anchored = true
  5750. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5751. xd.Anchored = true
  5752. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5753. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5754. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5755. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5756. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5757. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5758. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5759. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5760. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5761. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5762. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5763. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5764. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5765. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5766. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5767. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5768. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5769. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5770. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5771. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5772. for i = 0, 9 do
  5773. 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"))
  5774. 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"))
  5775. 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"))
  5776. 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"))
  5777. end
  5778. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5779. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5780. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5781. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5782. 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)
  5783. 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)
  5784. 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)
  5785. 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)
  5786. 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))
  5787. 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))
  5788. 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))
  5789. 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))
  5790. game:GetService("Debris"):AddItem(xa, 5)
  5791. game:GetService("Debris"):AddItem(xb, 5)
  5792. game:GetService("Debris"):AddItem(xc, 5)
  5793. game:GetService("Debris"):AddItem(xd, 5)
  5794. coroutine.resume(coroutine.create(function()
  5795. for i = 0, 19 do
  5796. swait()
  5797. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5798. end
  5799. hum.CameraOffset = vt(0,0,0)
  5800. end))
  5801. swait(9)
  5802. end
  5803. end))
  5804. for i = 0,2,0.1 do
  5805. swait()
  5806. 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)
  5807. 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)
  5808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5810. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5811. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5812. end
  5813. attack = false
  5814. hum.WalkSpeed = storehumanoidWS
  5815. end
  5816.  
  5817. function EndGROUND()
  5818. attack = true
  5819. hum.WalkSpeed = 0
  5820. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5821. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5822. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5823. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5824. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5825. local keptcolor = MAINRUINCOLOR
  5826. for i = 0,4,0.1 do
  5827. swait()
  5828. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5829. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5830. 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"))
  5831. 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)
  5832. 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)
  5833. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5835. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5836. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5837. end
  5838. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5839. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5840. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5841. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5842. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5843. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5844. coroutine.resume(coroutine.create(function()
  5845. local shval = 10
  5846. for i = 0, 99 do
  5847. swait()
  5848. shval = shval - 0.1
  5849. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5850. end
  5851. hum.CameraOffset = vt(0,0,0)
  5852. end))
  5853. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5854. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5855. for i = 0, 24 do
  5856. 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"))
  5857. end
  5858. local rrot = 0
  5859. local xam = 1
  5860. coroutine.resume(coroutine.create(function()
  5861. for i = 0, 14 do
  5862. --swait()
  5863. rrot = rrot + 40*xam
  5864. xam = xam + 0.25
  5865. local bonus = xam
  5866. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5867. xa.Anchored = true
  5868. xa.Color = Color3.new(0,0,0)
  5869. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5870. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5871. local xc = 0
  5872. coroutine.resume(coroutine.create(function()
  5873. for i = 0, 99 do
  5874. swait()
  5875. xc = xc + 0.01
  5876. xa.Color = Color3.new(xc,0,0)
  5877. end
  5878. xa.Transparency = 1
  5879. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5880. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5881. for i = 0, 9 do
  5882. 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"))
  5883. end
  5884. 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)
  5885. 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)
  5886. 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))
  5887. game:GetService("Debris"):AddItem(xa, 5)
  5888. coroutine.resume(coroutine.create(function()
  5889. for i = 0, 19 do
  5890. swait()
  5891. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5892. end
  5893. hum.CameraOffset = vt(0,0,0)
  5894. end))
  5895. end))
  5896. end
  5897. end))
  5898. for i = 0,2,0.1 do
  5899. swait()
  5900. 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)
  5901. 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)
  5902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5904. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5905. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5906. end
  5907. attack = false
  5908. hum.WalkSpeed = storehumanoidWS
  5909. end
  5910.  
  5911. function HeavenlyDisk()
  5912. attack = true
  5913. hum.WalkSpeed = 2
  5914. local keptcolor = MAINRUINCOLOR
  5915. local radm = math.random(1,3)
  5916. if radm == 1 then
  5917. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5918. elseif radm == 2 then
  5919. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5920. elseif radm == 3 then
  5921. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5922. end
  5923. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5924. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5925. 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)
  5926. 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)
  5927. for i = 0, 14 do
  5928. 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)
  5929. end
  5930. for i = 0,2,0.1 do
  5931. swait()
  5932. 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)
  5933. 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)
  5934. 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)
  5935. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5936. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5937. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5938. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5939. end
  5940. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5941. for i = 0,1,0.6 do
  5942. swait()
  5943. 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)
  5944. 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"))
  5945. 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)
  5946. 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)
  5947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5948. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5949. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5950. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5951. end
  5952. for i = 0,1,0.6 do
  5953. swait()
  5954. 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)
  5955. 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"))
  5956. 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)
  5957. 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)
  5958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5961. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5962. end
  5963. for i = 0,1,0.6 do
  5964. swait()
  5965. 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)
  5966. 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"))
  5967. 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)
  5968. 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)
  5969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5971. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5972. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5973. end
  5974. for i = 0,1,0.6 do
  5975. swait()
  5976. 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)
  5977. 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"))
  5978. 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)
  5979. 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)
  5980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5983. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5984. end
  5985. local rot = 15
  5986. for i = 0, 2 do
  5987. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5988. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5989. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5990. CreateMesh(dis,"Sphere",10,1,10)
  5991. local at1 = Instance.new("Attachment",dis)
  5992. at1.Position = vt(-5,0,0)
  5993. local at2 = Instance.new("Attachment",dis)
  5994. at2.Position = vt(5,0,0)
  5995. local trl = Instance.new('Trail',wed)
  5996. trl.Attachment0 = at1
  5997. trl.Attachment1 = at2
  5998. trl.Texture = "rbxassetid://1049219073"
  5999. trl.LightEmission = 1
  6000. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6001. trl.Color = ColorSequence.new(dis.Color)
  6002. trl.Lifetime = 0.6
  6003. local a = Instance.new("Part",workspace)
  6004. a.Name = "Direction"
  6005. a.Anchored = true
  6006. a.BrickColor = bc("Bright red")
  6007. a.Material = "Neon"
  6008. a.Transparency = 1
  6009. a.CanCollide = false
  6010. local ray = Ray.new(
  6011. dis.CFrame.p, -- origin
  6012. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6013. )
  6014. local ignore = dis
  6015. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6016. a.BottomSurface = 10
  6017. a.TopSurface = 10
  6018. local distance = (dis.CFrame.p - position).magnitude
  6019. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6020. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6021. dis.CFrame = a.CFrame
  6022. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6023. a:Destroy()
  6024. local bv = Instance.new("BodyVelocity")
  6025. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6026. bv.velocity = dis.CFrame.lookVector*250
  6027. bv.Parent = dis
  6028. game:GetService("Debris"):AddItem(dis, 5)
  6029. local hitted = false
  6030. coroutine.resume(coroutine.create(function()
  6031. dis.Touched:connect(function(hit)
  6032. if hitted == false and hit.Parent ~= char then
  6033. hitted = true
  6034. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6035. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6036. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6037. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6038. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6039. coroutine.resume(coroutine.create(function()
  6040. for i = 0, 9 do
  6041. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6042. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6043. local at1 = Instance.new("Attachment",disr)
  6044. at1.Position = vt(-2,0,0)
  6045. local at2 = Instance.new("Attachment",disr)
  6046. at2.Position = vt(2,0,0)
  6047. local trl = Instance.new('Trail',disr)
  6048. trl.Attachment0 = at1
  6049. trl.FaceCamera = true
  6050. trl.Attachment1 = at2
  6051. trl.Texture = "rbxassetid://2342682798"
  6052. trl.LightEmission = 1
  6053. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6054. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6055. trl.Lifetime = 0.5
  6056. local bv = Instance.new("BodyVelocity")
  6057. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6058. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6059. bv.Parent = disr
  6060. local val = 0
  6061. coroutine.resume(coroutine.create(function()
  6062. swait(30)
  6063. for i = 0, 9 do
  6064. swait()
  6065. val = val + 0.1
  6066. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6067. end
  6068. game:GetService("Debris"):AddItem(disr, 3)
  6069. end))
  6070. end
  6071. local eff = Instance.new("ParticleEmitter",dis)
  6072. eff.Texture = "rbxassetid://2273224484"
  6073. eff.LightEmission = 1
  6074. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6075. eff.Rate = 500000
  6076. eff.Lifetime = NumberRange.new(0.5,2)
  6077. 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)})
  6078. 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)})
  6079. eff.Speed = NumberRange.new(20,250)
  6080. eff.Drag = 5
  6081. eff.Rotation = NumberRange.new(-500,500)
  6082. eff.VelocitySpread = 9000
  6083. eff.RotSpeed = NumberRange.new(-50,50)
  6084. wait(0.25)
  6085. eff.Enabled = false
  6086. end))
  6087. for i = 0, 9 do
  6088. 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"))
  6089. end
  6090. for i = 0, 19 do
  6091. 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)
  6092. end
  6093. coroutine.resume(coroutine.create(function()
  6094. for i = 0, 19 do
  6095. swait()
  6096. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6097. end
  6098. hum.CameraOffset = vt(0,0,0)
  6099. end))
  6100. dis.Anchored = true
  6101. dis.Transparency = 1
  6102. wait(8)
  6103. dis:Destroy()
  6104. end
  6105. end)
  6106. end))
  6107. rot = rot - 15
  6108. end
  6109. for i = 0,2,0.1 do
  6110. swait()
  6111. 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)
  6112. 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)
  6113. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6114. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6115. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6116. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6117. end
  6118. attack = false
  6119. hum.WalkSpeed = storehumanoidWS
  6120. end
  6121.  
  6122.  
  6123. function RapidBurst()
  6124. attack = true
  6125. hum.WalkSpeed = 0
  6126. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6127. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6128. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6129. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6130. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6131. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6132. local keptcolor = MAINRUINCOLOR
  6133. for i = 0,8,0.1 do
  6134. swait()
  6135. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6136. 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())
  6137. 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)
  6138. 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)
  6139. 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)
  6140. 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)
  6141. 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)
  6142. 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)
  6143. 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)
  6144. end
  6145. for i = 0, 99 do
  6146. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6147. 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)))
  6148. local at1 = Instance.new("Attachment",dis)
  6149. at1.Position = vt(-25000,0,0)
  6150. local at2 = Instance.new("Attachment",dis)
  6151. at2.Position = vt(25000,0,0)
  6152. local trl = Instance.new('Trail',dis)
  6153. trl.Attachment0 = at1
  6154. trl.FaceCamera = true
  6155. trl.Attachment1 = at2
  6156. trl.Texture = "rbxassetid://1049219073"
  6157. trl.LightEmission = 1
  6158. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6159. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6160. trl.Lifetime = 5
  6161. local bv = Instance.new("BodyVelocity")
  6162. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6163. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6164. bv.Parent = dis
  6165. game:GetService("Debris"):AddItem(dis, 5)
  6166. end
  6167. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6168. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6169. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6170. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6171. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6172. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6173. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6174. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6175. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6176. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6177. hum.CameraOffset = vt(0,0,0)
  6178. for i = 0, 24 do
  6179. 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())
  6180. end
  6181. local distam = 0
  6182. coroutine.resume(coroutine.create(function()
  6183. for i = 0, 99 do
  6184. wait()
  6185. distam = distam + 1
  6186. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6187. xa.Anchored = true
  6188. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6189. game:GetService("Debris"):AddItem(xa, 5)
  6190. for i = 0, 4 do
  6191. 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())
  6192. end
  6193. coroutine.resume(coroutine.create(function()
  6194. local eff = Instance.new("ParticleEmitter",xa)
  6195. eff.Texture = "rbxassetid://2273224484"
  6196. eff.LightEmission = 1
  6197. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6198. eff.Rate = 500000
  6199. eff.Lifetime = NumberRange.new(1,3)
  6200. 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)})
  6201. 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)})
  6202. eff.Speed = NumberRange.new(50,500)
  6203. eff.Drag = 5
  6204. eff.Rotation = NumberRange.new(-500,500)
  6205. eff.VelocitySpread = 9000
  6206. eff.RotSpeed = NumberRange.new(-50,50)
  6207. wait(0.25)
  6208. eff.Enabled = false
  6209. end))
  6210. coroutine.resume(coroutine.create(function()
  6211. for i = 0, 19 do
  6212. swait()
  6213. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6214. end
  6215. hum.CameraOffset = vt(0,0,0)
  6216. end))
  6217. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6218. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6219. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6220. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6221. end
  6222. end))
  6223. attack = false
  6224. hum.WalkSpeed = storehumanoidWS
  6225. end
  6226.  
  6227. function InsaneDrop()
  6228. attack = true
  6229. hum.WalkSpeed = 0
  6230. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6231. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6232. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6233. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6234. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6235. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6236. local keptcolor = MAINRUINCOLOR
  6237. for i = 0,8,0.1 do
  6238. swait()
  6239. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6240. 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())
  6241. 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)
  6242. 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)
  6243. 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)
  6244. 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)
  6245. 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)
  6246. 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)
  6247. 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)
  6248. end
  6249. for i = 0, 99 do
  6250. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6251. 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)))
  6252. local at1 = Instance.new("Attachment",dis)
  6253. at1.Position = vt(-25000,0,0)
  6254. local at2 = Instance.new("Attachment",dis)
  6255. at2.Position = vt(25000,0,0)
  6256. local trl = Instance.new('Trail',dis)
  6257. trl.Attachment0 = at1
  6258. trl.FaceCamera = true
  6259. trl.Attachment1 = at2
  6260. trl.Texture = "rbxassetid://1049219073"
  6261. trl.LightEmission = 1
  6262. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6263. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6264. trl.Lifetime = 5
  6265. local bv = Instance.new("BodyVelocity")
  6266. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6267. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6268. bv.Parent = dis
  6269. game:GetService("Debris"):AddItem(dis, 5)
  6270. end
  6271. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6272. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6273. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6274. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6275. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6276. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6277. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6278. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6279. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6280. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6281. hum.CameraOffset = vt(0,0,0)
  6282. for i = 0, 24 do
  6283. 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())
  6284. end
  6285. local distam = 0
  6286. coroutine.resume(coroutine.create(function()
  6287. for i = 0, 99 do
  6288. wait()
  6289. distam = distam + 1
  6290. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6291. xa.Anchored = true
  6292. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6293. game:GetService("Debris"):AddItem(xa, 5)
  6294. for i = 0, 4 do
  6295. 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())
  6296. end
  6297. coroutine.resume(coroutine.create(function()
  6298. local eff = Instance.new("ParticleEmitter",xa)
  6299. eff.Texture = "rbxassetid://2273224484"
  6300. eff.LightEmission = 1
  6301. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6302. eff.Rate = 500000
  6303. eff.Lifetime = NumberRange.new(1,3)
  6304. 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)})
  6305. 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)})
  6306. eff.Speed = NumberRange.new(50,500)
  6307. eff.Drag = 5
  6308. eff.Rotation = NumberRange.new(-500,500)
  6309. eff.VelocitySpread = 9000
  6310. eff.RotSpeed = NumberRange.new(-50,50)
  6311. wait(0.25)
  6312. eff.Enabled = false
  6313. end))
  6314. coroutine.resume(coroutine.create(function()
  6315. for i = 0, 19 do
  6316. swait()
  6317. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6318. end
  6319. hum.CameraOffset = vt(0,0,0)
  6320. end))
  6321. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6322. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6323. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6324. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6325. end
  6326. end))
  6327. attack = false
  6328. hum.WalkSpeed = storehumanoidWS
  6329. end
  6330.  
  6331. function FallenOrbs()
  6332. attack = true
  6333. hum.WalkSpeed = 2
  6334. local keptcolor = MAINRUINCOLOR
  6335. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6336. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6337. local radm = math.random(1,3)
  6338. if radm == 1 then
  6339. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6340. elseif radm == 2 then
  6341. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6342. elseif radm == 3 then
  6343. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6344. end
  6345. coroutine.resume(coroutine.create(function()
  6346. for i = 0, 29 do
  6347. swait(2)
  6348. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6349. dis.Anchored = true
  6350. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6351. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6352. CreateMesh(dis,"Sphere",2,2,2)
  6353. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6354. 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"))
  6355. coroutine.resume(coroutine.create(function()
  6356. wait(0.5)
  6357. dis.Anchored = false
  6358. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6359. local at1 = Instance.new("Attachment",dis)
  6360. at1.Position = vt(-1,0,0)
  6361. local at2 = Instance.new("Attachment",dis)
  6362. at2.Position = vt(1,0,0)
  6363. local trl = Instance.new('Trail',dis)
  6364. trl.Attachment0 = at1
  6365. trl.FaceCamera = true
  6366. trl.Attachment1 = at2
  6367. trl.Texture = "rbxassetid://1049219073"
  6368. trl.LightEmission = 1
  6369. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6370. trl.Color = ColorSequence.new(dis.Color)
  6371. trl.Lifetime = 0.6
  6372. local a = Instance.new("Part",workspace)
  6373. a.Name = "Direction"
  6374. a.Anchored = true
  6375. a.BrickColor = bc("Bright red")
  6376. a.Material = "Neon"
  6377. a.Transparency = 1
  6378. a.CanCollide = false
  6379. local ray = Ray.new(
  6380. dis.CFrame.p, -- origin
  6381. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6382. )
  6383. local ignore = dis
  6384. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6385. a.BottomSurface = 10
  6386. a.TopSurface = 10
  6387. local distance = (dis.CFrame.p - position).magnitude
  6388. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6389. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6390. dis.CFrame = a.CFrame
  6391. a:Destroy()
  6392. local bv = Instance.new("BodyVelocity")
  6393. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6394. bv.velocity = dis.CFrame.lookVector*500
  6395. bv.Parent = dis
  6396. game:GetService("Debris"):AddItem(dis, 5)
  6397. local hitted = false
  6398. coroutine.resume(coroutine.create(function()
  6399. dis.Touched:connect(function(hit)
  6400. if hitted == false and hit.Parent ~= char then
  6401. hitted = true
  6402. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6403. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6404. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6405. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6406. coroutine.resume(coroutine.create(function()
  6407. for i = 0, 4 do
  6408. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6409. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6410. local at1 = Instance.new("Attachment",disr)
  6411. at1.Position = vt(-10,0,0)
  6412. local at2 = Instance.new("Attachment",disr)
  6413. at2.Position = vt(10,0,0)
  6414. local trl = Instance.new('Trail',disr)
  6415. trl.Attachment0 = at1
  6416. trl.FaceCamera = true
  6417. trl.Attachment1 = at2
  6418. trl.Texture = "rbxassetid://2342682798"
  6419. trl.LightEmission = 1
  6420. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6421. trl.Color = ColorSequence.new(disr.Color)
  6422. trl.Lifetime = 0.5
  6423. local bv = Instance.new("BodyVelocity")
  6424. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6425. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6426. bv.Parent = disr
  6427. local val = 0
  6428. coroutine.resume(coroutine.create(function()
  6429. swait(30)
  6430. for i = 0, 9 do
  6431. swait()
  6432. val = val + 0.1
  6433. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6434. end
  6435. game:GetService("Debris"):AddItem(disr, 3)
  6436. end))
  6437. end
  6438. local eff = Instance.new("ParticleEmitter",dis)
  6439. eff.Texture = "rbxassetid://1049219073"
  6440. eff.LightEmission = 1
  6441. eff.Color = ColorSequence.new(dis.Color)
  6442. eff.Rate = 500000
  6443. eff.Lifetime = NumberRange.new(0.5,2)
  6444. 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)})
  6445. 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)})
  6446. eff.Speed = NumberRange.new(20,250)
  6447. eff.Drag = 5
  6448. eff.Rotation = NumberRange.new(-500,500)
  6449. eff.VelocitySpread = 9000
  6450. eff.RotSpeed = NumberRange.new(-50,50)
  6451. wait(0.5)
  6452. eff.Enabled = false
  6453. end))
  6454. for i = 0, 4 do
  6455. 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"))
  6456. end
  6457. coroutine.resume(coroutine.create(function()
  6458. for i = 0, 19 do
  6459. swait()
  6460. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6461. end
  6462. hum.CameraOffset = vt(0,0,0)
  6463. end))
  6464. dis.Anchored = true
  6465. dis.Transparency = 1
  6466. wait(8)
  6467. dis:Destroy()
  6468. end
  6469. end)
  6470. end))
  6471. end))
  6472. end
  6473. end))
  6474. for i = 0,9,0.1 do
  6475. swait()
  6476. 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)
  6477. 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)
  6478. 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)
  6479. 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)
  6480. 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)
  6481. 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)
  6482. 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)
  6483. end
  6484. attack = false
  6485. hum.WalkSpeed = storehumanoidWS
  6486. end
  6487.  
  6488. function CyberSlash()
  6489. local posit = -2
  6490. attack = true
  6491. hum.WalkSpeed = 5
  6492. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6493. local radm = math.random(1,3)
  6494. if radm == 1 then
  6495. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6496. elseif radm == 2 then
  6497. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6498. elseif radm == 3 then
  6499. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6500. end
  6501. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6502. for i = 0,2,0.1 do
  6503. swait()
  6504. 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)
  6505. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6506. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6507. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6508. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6509. 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)
  6510. 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)
  6511. end
  6512. for i = 0, 2 do
  6513. CameraEnshaking(1,2)
  6514. local hite = Instance.new("Part", char)
  6515. hite.Anchored = true
  6516. hite.CanCollide = false
  6517. hite.FormFactor = 3
  6518. hite.Name = "Ring"
  6519. hite.Material = "Neon"
  6520. hite.Size = Vector3.new(1, 1, 1)
  6521. hite.Transparency = 1
  6522. hite.TopSurface = 0
  6523. hite.BottomSurface = 0
  6524. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6525. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6526. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6527. coroutine.resume(coroutine.create(function()
  6528. for i = 0, 1 do
  6529. swait()
  6530. 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)
  6531. 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)
  6532. 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)
  6533. end
  6534. end))
  6535. 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)
  6536. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6537. game:GetService("Debris"):AddItem(hite, 5)
  6538. posit = posit + 2
  6539. end
  6540. for i = 0,1,0.1 do
  6541. swait()
  6542. 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)
  6543. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6544. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6545. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6546. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6547. 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)
  6548. 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)
  6549. end
  6550. for i = 0,1,0.1 do
  6551. swait()
  6552. 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)
  6553. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6554. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6557. 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)
  6558. 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)
  6559. end
  6560. posit = -6
  6561. for i = 0, 6 do
  6562. CameraEnshaking(1,3)
  6563. local hite = Instance.new("Part", char)
  6564. hite.Anchored = true
  6565. hite.CanCollide = false
  6566. hite.FormFactor = 3
  6567. hite.Name = "Ring"
  6568. hite.Material = "Neon"
  6569. hite.Size = Vector3.new(1, 1, 1)
  6570. hite.Transparency = 1
  6571. hite.TopSurface = 0
  6572. hite.BottomSurface = 0
  6573. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6574. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6575. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6576. 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)
  6577. coroutine.resume(coroutine.create(function()
  6578. for i = 0, 2 do
  6579. swait()
  6580. 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)
  6581. 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)
  6582. 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)
  6583. end
  6584. end))
  6585. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6586. game:GetService("Debris"):AddItem(hite, 5)
  6587. posit = posit + 2
  6588. end
  6589. for i = 0,1,0.1 do
  6590. swait()
  6591. 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)
  6592. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6593. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6594. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6595. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6596. 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)
  6597. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  6598. end
  6599. hum.WalkSpeed = storehumanoidWS
  6600. attack = false
  6601. end
  6602.  
  6603. function EquinoxOrbs()
  6604. hum.WalkSpeed = 0
  6605. attack = true
  6606. local radm = math.random(1,3)
  6607. if radm == 1 then
  6608. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6609. elseif radm == 2 then
  6610. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6611. elseif radm == 3 then
  6612. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6613. end
  6614. for i = 0,1,0.1 do
  6615. swait()
  6616. 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)
  6617. 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)
  6618. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6620. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6621. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6622. end
  6623. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6624. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6625. for i = 0, 24 do
  6626. 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"))
  6627. end
  6628. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6629. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6630. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6631. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6632. for i = 0,4,0.1 do
  6633. swait()
  6634. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6635. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6636. CreateMesh(dis,"Sphere",1,1,1)
  6637. dis.Anchored = true
  6638. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6639. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6640. CreateMesh(dis2,"Sphere",1,1,1)
  6641. dis2.Anchored = true
  6642. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6643. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6644. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6645. coroutine.resume(coroutine.create(function()
  6646. swait(60)
  6647. dis.Transparency = 1
  6648. dis2.Transparency = 1
  6649. coroutine.resume(coroutine.create(function()
  6650. for i = 0, 19 do
  6651. swait()
  6652. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6653. end
  6654. hum.CameraOffset = vt(0,0,0)
  6655. end))
  6656. coroutine.resume(coroutine.create(function()
  6657. local eff = Instance.new("ParticleEmitter",dis)
  6658. eff.Texture = "rbxassetid://2273224484"
  6659. eff.LightEmission = 1
  6660. eff.Color = ColorSequence.new(dis.Color)
  6661. eff.Rate = 500000
  6662. eff.Lifetime = NumberRange.new(0.5,2)
  6663. 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)})
  6664. 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)})
  6665. eff.Speed = NumberRange.new(50,450)
  6666. eff.Drag = 5
  6667. eff.Rotation = NumberRange.new(-500,500)
  6668. eff.VelocitySpread = 9000
  6669. eff.RotSpeed = NumberRange.new(-50,50)
  6670. local eff2 = eff:Clone()
  6671. eff2.Parent = dis2
  6672. eff2.LightEmission = 0
  6673. eff2.Color = ColorSequence.new(dis2.Color)
  6674. wait(0.25)
  6675. eff.Enabled = false
  6676. eff2.Enabled = false
  6677. end))
  6678. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6679. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6680. for i = 0, 2 do
  6681. 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)
  6682. 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)
  6683. end
  6684. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6685. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6686. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6687. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6688. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6689. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6690. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6691. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6692. end))
  6693. game:GetService("Debris"):AddItem(dis, 5)
  6694. game:GetService("Debris"):AddItem(dis2, 5)
  6695. 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)
  6696. 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)
  6697. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6699. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6700. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6701. end
  6702. attack = false
  6703. hum.WalkSpeed = storehumanoidWS
  6704. end
  6705. function FallenDEMISE()
  6706. attack = true
  6707. hum.WalkSpeed = 0
  6708. local keptcolor = MAINRUINCOLOR
  6709. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6710. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6711. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6712. for i = 0, 15, 0.1 do
  6713. swait()
  6714. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6715. 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)))
  6716. local at1 = Instance.new("Attachment",dis)
  6717. at1.Position = vt(-25000,0,0)
  6718. local at2 = Instance.new("Attachment",dis)
  6719. at2.Position = vt(25000,0,0)
  6720. local trl = Instance.new('Trail',dis)
  6721. trl.Attachment0 = at1
  6722. trl.FaceCamera = true
  6723. trl.Attachment1 = at2
  6724. trl.Texture = "rbxassetid://1049219073"
  6725. trl.LightEmission = 1
  6726. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6727. trl.Color = ColorSequence.new(dis.Color)
  6728. trl.Lifetime = 5
  6729. local bv = Instance.new("BodyVelocity")
  6730. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6731. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6732. bv.Parent = dis
  6733. game:GetService("Debris"):AddItem(dis, 1)
  6734. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6735. 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"))
  6736. 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"))
  6737. 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)
  6738. 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)
  6739. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6740. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6741. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6742. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6743. end
  6744. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6745. for i = 0, 30, 0.1 do
  6746. swait()
  6747. coroutine.resume(coroutine.create(function()
  6748. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6749. if v:FindFirstChild('Head') then
  6750. dmg(v)
  6751. end
  6752. end
  6753. end))
  6754. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6755. 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)))
  6756. local at1 = Instance.new("Attachment",dis)
  6757. at1.Position = vt(-50000,0,0)
  6758. local at2 = Instance.new("Attachment",dis)
  6759. at2.Position = vt(50000,0,0)
  6760. local trl = Instance.new('Trail',dis)
  6761. trl.Attachment0 = at1
  6762. trl.FaceCamera = true
  6763. trl.Attachment1 = at2
  6764. trl.Texture = "rbxassetid://1049219073"
  6765. trl.LightEmission = 1
  6766. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6767. trl.Color = ColorSequence.new(dis.Color)
  6768. trl.Lifetime = 10
  6769. local bv = Instance.new("BodyVelocity")
  6770. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6771. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6772. bv.Parent = dis
  6773. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6774. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6775. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6776. 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"))
  6777. 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"))
  6778. 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"))
  6779. 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"))
  6780. for i = 0, 2 do
  6781. 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)
  6782. end
  6783. 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)
  6784. 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)
  6785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6787. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6788. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6789. end
  6790. attack = false
  6791. hum.WalkSpeed = storehumanoidWS
  6792. end
  6793.  
  6794. function SpeedDrop()
  6795. attack = true
  6796. hum.WalkSpeed = 0
  6797. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6798. local poste = 3
  6799. local rotation = 0
  6800. local rate = 0
  6801. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6802. for i = 0, 124 do
  6803. swait()
  6804. rotation = rotation + rate
  6805. poste = poste + 0.1
  6806. rate = rate + 0.1
  6807. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6808. 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)
  6809. 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)
  6810. 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)
  6811. 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)
  6812. 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)
  6813. 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)
  6814. 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)
  6815. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6817. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6818. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6819. end
  6820. CameraEnshaking(3,7)
  6821. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6822. local loc = Instance.new("Part", char)
  6823. loc.BrickColor = MAINRUINCOLOR
  6824. loc.CanCollide = false
  6825. loc.FormFactor = 3
  6826. loc.Name = "Ring"
  6827. loc.Material = "Neon"
  6828. loc.Size = Vector3.new(1, 1, 1)
  6829. loc.Transparency = 1
  6830. loc.TopSurface = 0
  6831. loc.BottomSurface = 0
  6832. loc.Anchored = true
  6833. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6834. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6835. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6836. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6837. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6838. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6839. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6840. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6841. coroutine.resume(coroutine.create(function()
  6842. local eff = Instance.new("ParticleEmitter",loc)
  6843. eff.Texture = "rbxassetid://363275192"
  6844. eff.LightEmission = 0.95
  6845. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6846. eff.Rate = 10000
  6847. eff.Lifetime = NumberRange.new(1)
  6848. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6849. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6850. eff.Speed = NumberRange.new(100,500)
  6851. eff.Drag = 5
  6852. eff.Rotation = NumberRange.new(-500,500)
  6853. eff.VelocitySpread = 9000
  6854. eff.RotSpeed = NumberRange.new(-50,50)
  6855. wait(0.5)
  6856. eff.Enabled = false
  6857. end))
  6858. for i = 0, 49 do
  6859. 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)
  6860. end
  6861. for i = 0, 9 do
  6862. 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)
  6863. end
  6864. game:GetService("Debris"):AddItem(loc, 5)
  6865. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6866. hum.WalkSpeed = storehumanoidWS
  6867. attack = false
  6868. end
  6869.  
  6870. function cutesigh()
  6871. attack = true
  6872. hum.WalkSpeed = 0
  6873. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6874. local blush = Instance.new("Decal",hed)
  6875. blush.Texture = "rbxassetid://898404027"
  6876. blush.Face = "Front"
  6877. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6878. for i = 0, 9, 0.1 do
  6879. swait()
  6880. 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)
  6881. 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)
  6882. 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)
  6883. 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)
  6884. 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)
  6885. 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)
  6886. end
  6887. coroutine.resume(coroutine.create(function()
  6888. for i = 0, 49 do
  6889. swait()
  6890. blush.Transparency = blush.Transparency + 0.02
  6891. end
  6892. blush:Destroy()
  6893. end))
  6894. hum.WalkSpeed = storehumanoidWS
  6895. attack = false
  6896. end
  6897.  
  6898. function smiter()
  6899. local targetted = nil
  6900. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6901. targetted = mouse.Target.Parent
  6902. end
  6903. if targetted ~= nil then
  6904. RootPart.CFrame = FaceMouse()[1]
  6905. attack = true
  6906. local radm = math.random(1,3)
  6907. if radm == 1 then
  6908. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6909. elseif radm == 2 then
  6910. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6911. elseif radm == 3 then
  6912. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6913. end
  6914. hum.WalkSpeed = 0
  6915. coroutine.resume(coroutine.create(function()
  6916. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6917. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6918. local vel = Instance.new("BodyPosition", targetted.Head)
  6919. vel.P = 12500
  6920. vel.D = 1000
  6921. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6922. vel.position = targetted.Head.CFrame.p
  6923. end))
  6924. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6925. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6926. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6927. for i = 0,4,0.1 do
  6928. swait()
  6929. 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)
  6930. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6931. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6932. 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)
  6933. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6934. 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)
  6935. 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)
  6936. end
  6937. coroutine.resume(coroutine.create(function()
  6938. CameraEnshaking(6,5)
  6939. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  6940. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  6941. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  6942. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  6943. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6944. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6945. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6946. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6947. coroutine.resume(coroutine.create(function()
  6948. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6949. eff.Texture = "rbxassetid://2273224484"
  6950. eff.LightEmission = 1
  6951. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6952. eff.Rate = 500000
  6953. eff.Lifetime = NumberRange.new(0.5,2)
  6954. 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)})
  6955. 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)})
  6956. eff.Speed = NumberRange.new(20,250)
  6957. eff.Drag = 5
  6958. eff.Rotation = NumberRange.new(-500,500)
  6959. eff.VelocitySpread = 9000
  6960. eff.RotSpeed = NumberRange.new(-50,50)
  6961. wait(0.25)
  6962. eff.Enabled = false
  6963. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6964. eff.Texture = "rbxassetid://363275192"
  6965. eff.LightEmission = 0.95
  6966. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6967. eff.Rate = 10000
  6968. eff.Lifetime = NumberRange.new(1.5)
  6969. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6970. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6971. eff.Speed = NumberRange.new(25,150)
  6972. eff.Drag = 5
  6973. eff.Rotation = NumberRange.new(-500,500)
  6974. eff.VelocitySpread = 9000
  6975. eff.RotSpeed = NumberRange.new(-50,50)
  6976. local eff2 = eff:Clone()
  6977. eff2.Parent = targetted.Head
  6978. eff2.Texture = "rbxassetid://284205403"
  6979. eff2.Rate = 10000
  6980. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6981. eff2.Drag = 5
  6982. eff2.Rotation = NumberRange.new(-500,500)
  6983. eff2.VelocitySpread = 9000
  6984. wait(0.5)
  6985. eff2.Enabled = false
  6986. eff.Enabled = false
  6987. end))
  6988. for i = 0, 9 do
  6989. 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)
  6990. end
  6991. for i = 0, 49 do
  6992. local rsiz = math.random(10,50)
  6993. 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)
  6994. end
  6995. game:GetService("Debris"):AddItem(vel,1)
  6996. dmg(targetted)
  6997. end))
  6998. for i = 0,1,0.1 do
  6999. swait()
  7000. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7001. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7002. 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)
  7003. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7004. 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)
  7005. 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)
  7006. end
  7007. attack = false
  7008. hum.WalkSpeed = storehumanoidWS
  7009. end
  7010. end
  7011.  
  7012. function shytaunty()
  7013. attack = true
  7014. hum.WalkSpeed = 0
  7015. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7016. local blush = Instance.new("Decal",hed)
  7017. blush.Texture = "rbxassetid://898404027"
  7018. blush.Face = "Front"
  7019. for i = 0, 13, 0.1 do
  7020. swait()
  7021. 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)
  7022. 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)
  7023. 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)
  7024. 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)
  7025. 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)
  7026. 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)
  7027. end
  7028. coroutine.resume(coroutine.create(function()
  7029. for i = 0, 49 do
  7030. swait()
  7031. blush.Transparency = blush.Transparency + 0.02
  7032. end
  7033. blush:Destroy()
  7034. end))
  7035. hum.WalkSpeed = storehumanoidWS
  7036. attack = false
  7037. end
  7038.  
  7039. function PureBomb()
  7040. attack = true
  7041. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7042. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7043. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7044. local orb = Instance.new("Part", char)
  7045. orb.Anchored = true
  7046. orb.BrickColor = BrickColor.new("Toothpaste")
  7047. orb.CanCollide = false
  7048. orb.FormFactor = 3
  7049. orb.Name = "Ring"
  7050. orb.Material = "Neon"
  7051. orb.Size = Vector3.new(1, 1, 1)
  7052. orb.Transparency = 0
  7053. orb.TopSurface = 0
  7054. orb.BottomSurface = 0
  7055. local orbm = Instance.new("SpecialMesh", orb)
  7056. orbm.MeshType = "Sphere"
  7057. orbm.Name = "SizeMesh"
  7058. orbm.Scale = vt(0,0,0)
  7059. local scaled = 0.1
  7060. local posid = 0
  7061. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7062. for i = 0, 5, 0.1 do
  7063. swait()
  7064. scaled = scaled - 0.001
  7065. posid = posid - scaled
  7066. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7067. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7068. 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)
  7069. 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)
  7070. 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)
  7071. 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)
  7072. 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)
  7073. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7074. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7075. 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)
  7076. end
  7077. for i = 0, 2, 0.1 do
  7078. swait()
  7079. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7080. 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)
  7081. 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)
  7082. 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)
  7083. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7084. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7085. 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)
  7086. end
  7087. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7088. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7089. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7090. coroutine.resume(coroutine.create(function()
  7091. orb.Anchored = false
  7092. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7093. local a = Instance.new("Part",workspace)
  7094. a.Name = "Direction"
  7095. a.Anchored = true
  7096. a.BrickColor = bc("Bright red")
  7097. a.Material = "Neon"
  7098. a.Transparency = 1
  7099. a.CanCollide = false
  7100. local ray = Ray.new(
  7101. orb.CFrame.p, -- origin
  7102. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7103. )
  7104. local ignore = orb
  7105. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7106. a.BottomSurface = 10
  7107. a.TopSurface = 10
  7108. local distance = (orb.CFrame.p - position).magnitude
  7109. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7110. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7111. orb.CFrame = a.CFrame
  7112. a:Destroy()
  7113. local bv = Instance.new("BodyVelocity")
  7114. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7115. bv.velocity = orb.CFrame.lookVector*125
  7116. bv.Parent = orb
  7117. local hitted = false
  7118. game:GetService("Debris"):AddItem(orb, 15)
  7119. wait()
  7120. local hit =orb.Touched:connect(function(hit)
  7121. if hitted == false then
  7122. hitted = true
  7123. CameraEnshaking(10,2.5)
  7124. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7125. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7126. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7127. for i = 0, 49 do
  7128. 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)
  7129. end
  7130. local eff = Instance.new("ParticleEmitter",orb)
  7131. eff.Texture = "rbxassetid://2273224484"
  7132. eff.LightEmission = 1
  7133. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7134. eff.Rate = 500000
  7135. eff.Lifetime = NumberRange.new(0.5,2)
  7136. 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)})
  7137. 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)})
  7138. eff.Speed = NumberRange.new(20,250)
  7139. eff.Drag = 5
  7140. eff.Rotation = NumberRange.new(-500,500)
  7141. eff.VelocitySpread = 9000
  7142. eff.RotSpeed = NumberRange.new(-50,50)
  7143. coroutine.resume(coroutine.create(function()
  7144. wait(0.25)
  7145. eff.Enabled = false
  7146. end))
  7147. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7148. for i = 0, 9 do
  7149. 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)
  7150. 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)
  7151. end
  7152. orb.Anchored = true
  7153. orb.Transparency = 1
  7154. local eff = Instance.new("ParticleEmitter",orb)
  7155. eff.Texture = "rbxassetid://2273224484"
  7156. eff.LightEmission = 1
  7157. eff.Color = ColorSequence.new(Color3.new(M))
  7158. eff.Rate = 500000
  7159. eff.Lifetime = NumberRange.new(0.5,2)
  7160. 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)})
  7161. 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)})
  7162. eff.Speed = NumberRange.new(20,250)
  7163. eff.Drag = 5
  7164. eff.Rotation = NumberRange.new(-500,500)
  7165. eff.VelocitySpread = 9000
  7166. eff.RotSpeed = NumberRange.new(-50,50)
  7167. coroutine.resume(coroutine.create(function()
  7168. wait(1)
  7169. eff.Enabled = false
  7170. end))
  7171. wait(8)
  7172. orb:Destroy()
  7173. end
  7174. end)
  7175. end))
  7176. for i = 0, 1, 0.1 do
  7177. swait()
  7178. 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)
  7179. 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)
  7180. 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)
  7181. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7182. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7183. 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)
  7184. end
  7185. attack = false
  7186. end
  7187.  
  7188.  
  7189. function BeamOfDeath()
  7190. coroutine.resume(coroutine.create(function()
  7191. attack = true
  7192. hum.WalkSpeed = 0
  7193. for i = 0, 11, 0.1 do
  7194. swait()
  7195. 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)
  7196. 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)
  7197. 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)
  7198. 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)
  7199. 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)
  7200. 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)
  7201. end
  7202. for i = 0, 1, 0.1 do
  7203. swait()
  7204. 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)
  7205. 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)
  7206. 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)
  7207. 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)
  7208. 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)
  7209. 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)
  7210. end
  7211. hum.WalkSpeed = storehumanoidWS
  7212. attack = false
  7213. end))
  7214. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7215. local radm = math.random(1,3)
  7216. if radm == 1 then
  7217. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7218. elseif radm == 2 then
  7219. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7220. elseif radm == 3 then
  7221. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7222. end
  7223. local keptcolor = MAINRUINCOLOR
  7224. local orb = Instance.new("Part", char)
  7225. orb.BrickColor = keptcolor
  7226. orb.CanCollide = false
  7227. orb.FormFactor = 3
  7228. orb.Name = "Ring"
  7229. orb.Material = "Neon"
  7230. orb.Size = Vector3.new(1, 1, 1)
  7231. orb.Transparency = 1
  7232. orb.TopSurface = 0
  7233. orb.BottomSurface = 0
  7234. local orbm = Instance.new("SpecialMesh", orb)
  7235. orbm.MeshType = "Sphere"
  7236. orbm.Name = "SizeMesh"
  7237. orbm.Scale = vt(22.5,10000,22.5)
  7238. orb.CFrame = mouse.Hit
  7239. orb.Anchored = true
  7240. orb.Orientation = vt(0,0,0)
  7241. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7242. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7243. coroutine.resume(coroutine.create(function()
  7244. coroutine.resume(coroutine.create(function()
  7245. for i = 0, 175 do
  7246. swait()
  7247. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7248. orb.Transparency = orb.Transparency - 0.005
  7249. end
  7250. end))
  7251. wait(2)
  7252. coroutine.resume(coroutine.create(function()
  7253. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7254. if hfr ~= nil then
  7255. for i = 0, 24.5 do
  7256. local deb = Instance.new("Part", char)
  7257. deb.Anchored = true
  7258. deb.CanCollide = false
  7259. deb.FormFactor = 3
  7260. deb.Name = "Ring"
  7261. deb.Material = hitfloor.Material
  7262. deb.Color = hitfloor.Color
  7263. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7264. deb.Transparency = 0
  7265. deb.TopSurface = 0
  7266. deb.BottomSurface = 0
  7267. 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)))
  7268. local deb2 = Instance.new("Part", char)
  7269. deb2.CanCollide = false
  7270. deb2.FormFactor = 3
  7271. deb2.Name = "Ring"
  7272. deb2.Material = hitfloor.Material
  7273. deb2.Color = hitfloor.Color
  7274. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7275. deb2.Transparency = 0
  7276. deb2.TopSurface = 0
  7277. deb2.BottomSurface = 0
  7278. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7279. 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)))
  7280. local eff = Instance.new("ParticleEmitter",deb)
  7281. eff.Texture = "rbxassetid://363275192"
  7282. eff.LightEmission = 0.95
  7283. eff.Color = ColorSequence.new(keptcolor.Color)
  7284. eff.Rate = 100
  7285. eff.Lifetime = NumberRange.new(1)
  7286. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7287. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7288. eff.Speed = NumberRange.new(0,5)
  7289. eff.Rotation = NumberRange.new(-500,500)
  7290. eff.VelocitySpread = 9000
  7291. eff.RotSpeed = NumberRange.new(-10,10)
  7292. local at1 = Instance.new('Attachment',deb2)
  7293. at1.Position = vt(0,15,0)
  7294. local at2 = Instance.new('Attachment',deb2)
  7295. at2.Position = vt(0,-15,0)
  7296. local tl = Instance.new('Trail',deb2)
  7297. tl.Attachment0 = at1
  7298. tl.Attachment1 = at2
  7299. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7300. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7301. tl.Lifetime = 1
  7302. game:GetService("Debris"):AddItem(deb,30)
  7303. game:GetService("Debris"):AddItem(deb2,30)
  7304. coroutine.resume(coroutine.create(function()
  7305. wait(15)
  7306. eff.Enabled = false
  7307. for i = 0, 49 do
  7308. swait()
  7309. deb.Transparency = deb.Transparency + 0.02
  7310. end
  7311. wait(1)
  7312. deb:Destroy()
  7313. end))
  7314. end
  7315. end
  7316. end))
  7317. for i = 0, 199 do
  7318. swait(1.5)
  7319. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7320. if v:FindFirstChild('Head') then
  7321. dmg(v)
  7322. end
  7323. end
  7324. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7325. 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)
  7326. 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)
  7327. 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)
  7328. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7329. end
  7330. orb:Destroy()
  7331. end))
  7332. end
  7333.  
  7334. function Beams()
  7335. attack = true
  7336. hum.WalkSpeed = 0
  7337. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7338. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7339. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7340. local keptcolor = MAINRUINCOLOR
  7341. coroutine.resume(coroutine.create(function()
  7342. for i = 0, 96 do
  7343. swait(5)
  7344. local orb = Instance.new("Part", char)
  7345. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7346. orb.BrickColor = keptcolor
  7347. orb.CanCollide = false
  7348. orb.FormFactor = 3
  7349. orb.Name = "Ring"
  7350. orb.Material = "Neon"
  7351. orb.Size = Vector3.new(1, 1, 1)
  7352. orb.Transparency = 0
  7353. orb.TopSurface = 0
  7354. orb.BottomSurface = 0
  7355. orb.Anchored = true
  7356. local orbm = Instance.new("SpecialMesh", orb)
  7357. orbm.MeshType = "Sphere"
  7358. orbm.Name = "SizeMesh"
  7359. orbm.Scale = vt(1.25,1.25,1.25)
  7360. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7361. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7362. coroutine.resume(coroutine.create(function()
  7363. wait(0.5)
  7364. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7365. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7366. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7367. orb.Transparency = 1
  7368. local a = Instance.new("Part",char)
  7369. a.Name = "Direction"
  7370. a.Anchored = true
  7371. a.BrickColor = keptcolor
  7372. a.Material = "Neon"
  7373. a.Transparency = 0.25
  7374. a.Shape = "Cylinder"
  7375. local ht = Instance.new("Part",char)
  7376. ht.Name = "DirectionHit"
  7377. ht.Anchored = true
  7378. ht.BrickColor = keptcolor
  7379. ht.CanCollide = false
  7380. ht.Transparency = 1
  7381. ht.Size = vt(0.1,0.1,0.1)
  7382. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7383. a.CanCollide = false
  7384. local ray = Ray.new(
  7385. orb.CFrame.p, -- origin
  7386. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7387. )
  7388. local ignore = char
  7389. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7390. a.BottomSurface = 10
  7391. a.TopSurface = 10
  7392. local distance = (orb.CFrame.p - position).magnitude
  7393. a.Size = Vector3.new(distance,1,1)
  7394. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7395. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7396. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7397. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7398. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7399. coroutine.resume(coroutine.create(function()
  7400. local eff = Instance.new("ParticleEmitter",ht)
  7401. eff.Texture = "rbxassetid://284205403"
  7402. eff.LightEmission = 0.95
  7403. eff.Color = ColorSequence.new(keptcolor.Color)
  7404. eff.Rate = 500
  7405. eff.Lifetime = NumberRange.new(0.5)
  7406. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7407. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7408. eff.Speed = NumberRange.new(10,50)
  7409. eff.Drag = 5
  7410. eff.Rotation = NumberRange.new(-500,500)
  7411. eff.VelocitySpread = 9000
  7412. eff.RotSpeed = NumberRange.new(-500,500)
  7413. wait(0.25)
  7414. eff.Enabled = false
  7415. end))
  7416. for i = 0, 4 do
  7417. 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)
  7418. 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)
  7419. local rsiz = math.random(10,30)
  7420. 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)
  7421. end
  7422. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7423. local msh = Instance.new("SpecialMesh",a)
  7424. msh.MeshType = "Cylinder"
  7425. msh.Scale = vt(1,1,1)
  7426. for i = 0, 49 do
  7427. swait()
  7428. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7429. a.Transparency = a.Transparency + 0.02
  7430. end
  7431. orb:Destroy()
  7432. a:Destroy()
  7433. ht:Destroy()
  7434. end))
  7435. game:GetService("Debris"):AddItem(orb, 10)
  7436. end
  7437. end))
  7438. for i = 0,6,0.1 do
  7439. swait()
  7440. 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)
  7441. 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)
  7442. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7443. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7444. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7445. 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)
  7446. 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)
  7447. end
  7448. hum.WalkSpeed = storehumanoidWS
  7449. attack = false
  7450. end
  7451.  
  7452. function CalamityTrans()
  7453. attack = true
  7454. rainbowmode = false
  7455. chaosmode = false
  7456. ModeOfGlitch = 8889
  7457. hum.WalkSpeed = 0
  7458. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7459. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7460. elocacenter.Anchored = true
  7461. elocacenter.CFrame = root.CFrame
  7462. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7463. eloca1.Anchored = true
  7464. eloca1.CFrame = elocacenter.CFrame
  7465. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7466. eloca2.Anchored = true
  7467. eloca2.CFrame = elocacenter.CFrame
  7468. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7469. eloca3.Anchored = true
  7470. eloca3.CFrame = elocacenter.CFrame
  7471. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7472. eloca4.Anchored = true
  7473. eloca4.CFrame = elocacenter.CFrame
  7474. local lookavec = 0
  7475. local speeds = 0
  7476. CameraEnshaking(3,2.5)
  7477. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7478. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7479. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7480. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7481. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7482. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7483. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7484. for i = 0, 5, 0.1 do
  7485. swait()
  7486. ---
  7487. lookavec = lookavec + 1
  7488. speeds = speeds + 10
  7489. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7490. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7491. 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)
  7492. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7493. 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)
  7494. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7495. 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)
  7496. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7497. 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)
  7498. ---
  7499. 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)
  7500. 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)
  7501. 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)
  7502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7503. 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)
  7504. 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)
  7505. end
  7506. for i = 0, 5, 0.1 do
  7507. swait()
  7508. ---
  7509. speeds = speeds + 10
  7510. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7511. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7512. 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)
  7513. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7514. 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)
  7515. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7516. 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)
  7517. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7518. 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)
  7519. ---
  7520. 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)
  7521. 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)
  7522. 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)
  7523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7524. 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)
  7525. 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)
  7526. end
  7527. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7528. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7529. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7530. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7531. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7532. CameraEnshaking(1,3)
  7533. for i = 0, 24 do
  7534. 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)
  7535. 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)
  7536. 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)
  7537. 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)
  7538. end
  7539. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7540. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7541. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7542. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7543. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7544. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7545. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7546. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7547. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7548. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7549. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7550. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7551. for i = 0, 5, 0.1 do
  7552. swait()
  7553. ---
  7554. lookavec = lookavec - 1
  7555. speeds = speeds + 10
  7556. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7557. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7558. 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)
  7559. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7560. 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)
  7561. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7562. 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)
  7563. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7564. 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)
  7565. ---
  7566. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7567. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7568. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7570. 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)
  7571. 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)
  7572. end
  7573. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7574. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7575. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7576. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7577. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7578. for i = 0, 49 do
  7579. 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)
  7580. 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)
  7581. end
  7582. CameraEnshaking(5,6)
  7583. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7584. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7585. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7586. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7587. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7588. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7589. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7590. storehumanoidWS = 100
  7591. hum.WalkSpeed = 100
  7592. rainbowmode = false
  7593. chaosmode = false
  7594. tl1.Enabled = true
  7595. tl2.Enabled = true
  7596. tl3.Enabled = true
  7597. RecolorTextAndRename("Killer",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7598. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7599. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7600. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7601. for i, v in pairs(mw2:GetChildren()) do
  7602. if v:IsA("Part") then
  7603. v.BrickColor = MAINRUINCOLOR
  7604. v.Material = "Neon"
  7605. end
  7606. end
  7607. for i, v in pairs(mw1:GetChildren()) do
  7608. if v:IsA("Part") then
  7609. v.Transparency = 0
  7610. v.BrickColor = MAINRUINCOLOR
  7611. v.Material = "Neon"
  7612. end
  7613. end
  7614. for i, v in pairs(m:GetChildren()) do
  7615. if v:IsA("Part") then
  7616. v.Color = Color3.new(0.5,0,1)
  7617. v.Material = "Neon"
  7618. end
  7619. end
  7620. for i, v in pairs(m2:GetChildren()) do
  7621. if v:IsA("Part") then
  7622. v.Color = Color3.new(0.25,0,1)
  7623. v.Material = "Neon"
  7624. end
  7625. end
  7626. for i, v in pairs(m3:GetChildren()) do
  7627. if v:IsA("Part") then
  7628. v.Color = Color3.new(0.45,0,1)
  7629. v.Material = "Neon"
  7630. end
  7631. end
  7632. for i, v in pairs(extrawingmod1:GetChildren()) do
  7633. if v:IsA("Part") then
  7634. v.Transparency = 0.75
  7635. v.Color = Color3.new(0.25,0,1)
  7636. v.Material = "Neon"
  7637. end
  7638. end
  7639. for i, v in pairs(extrawingmod2:GetChildren()) do
  7640. if v:IsA("Part") then
  7641. v.Transparency = 0.75
  7642. v.Color = Color3.new(0.5,0,1)
  7643. v.Material = "Neon"
  7644. end
  7645. end
  7646. attack = false
  7647. end
  7648.  
  7649. function InsaneTrans()
  7650. attack = true
  7651. rainbowmode = false
  7652. chaosmode = false
  7653. ModeOfGlitch = 8889
  7654. hum.WalkSpeed = 0
  7655. newThemeCust("rbxassetid://183142252",1,1,10)
  7656. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7657. elocacenter.Anchored = true
  7658. elocacenter.CFrame = root.CFrame
  7659. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7660. eloca1.Anchored = true
  7661. eloca1.CFrame = elocacenter.CFrame
  7662. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7663. eloca2.Anchored = true
  7664. eloca2.CFrame = elocacenter.CFrame
  7665. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7666. eloca3.Anchored = true
  7667. eloca3.CFrame = elocacenter.CFrame
  7668. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7669. eloca4.Anchored = true
  7670. eloca4.CFrame = elocacenter.CFrame
  7671. local lookavec = 0
  7672. local speeds = 0
  7673. CameraEnshaking(3,2.5)
  7674. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7675. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7676. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7677. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7678. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7679. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7680. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7681. for i = 0, 5, 0.1 do
  7682. swait()
  7683. ---
  7684. lookavec = lookavec + 1
  7685. speeds = speeds + 10
  7686. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7687. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7688. 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)
  7689. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7690. 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)
  7691. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7692. 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)
  7693. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7694. 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)
  7695. ---
  7696. 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)
  7697. 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)
  7698. 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)
  7699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7700. 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)
  7701. 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)
  7702. end
  7703. for i = 0, 5, 0.1 do
  7704. swait()
  7705. ---
  7706. speeds = speeds + 10
  7707. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7708. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7709. 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)
  7710. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7711. 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)
  7712. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7713. 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)
  7714. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7715. 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)
  7716. ---
  7717. 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)
  7718. 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)
  7719. 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)
  7720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7721. 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)
  7722. 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)
  7723. end
  7724. MAINRUINCOLOR = BrickColor.new("Really black")
  7725. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7726. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7727. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7728. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7729. CameraEnshaking(1,3)
  7730. for i = 0, 24 do
  7731. 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)
  7732. 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)
  7733. 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)
  7734. 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)
  7735. end
  7736. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7737. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7738. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7739. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7740. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7741. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7742. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7743. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7744. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7745. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7746. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7747. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7748. for i = 0, 5, 0.1 do
  7749. swait()
  7750. ---
  7751. lookavec = lookavec - 1
  7752. speeds = speeds + 10
  7753. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7754. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7755. 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)
  7756. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7757. 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)
  7758. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7759. 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)
  7760. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7761. 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)
  7762. ---
  7763. 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)
  7764. 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)
  7765. 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)
  7766. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7767. 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)
  7768. 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)
  7769. end
  7770. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7771. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7772. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7773. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7774. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7775. for i = 0, 49 do
  7776. 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)
  7777. 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)
  7778. end
  7779. CameraEnshaking(5,6)
  7780. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7781. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7782. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7783. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7784. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7785. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7786. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7787. storehumanoidWS = 100
  7788. hum.WalkSpeed = 100
  7789. rainbowmode = false
  7790. chaosmode = false
  7791. tl1.Enabled = true
  7792. tl2.Enabled = true
  7793. tl3.Enabled = true
  7794. RecolorTextAndRename("The Insane Killer",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7795. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7796. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7797. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7798. for i, v in pairs(mw2:GetChildren()) do
  7799. if v:IsA("Part") then
  7800. v.BrickColor = MAINRUINCOLOR
  7801. v.Material = "Neon"
  7802. end
  7803. end
  7804. for i, v in pairs(mw1:GetChildren()) do
  7805. if v:IsA("Part") then
  7806. v.Transparency = 0
  7807. v.BrickColor = MAINRUINCOLOR
  7808. v.Material = "Neon"
  7809. end
  7810. end
  7811. for i, v in pairs(m:GetChildren()) do
  7812. if v:IsA("Part") then
  7813. v.Color = Color3.new(170,0,0)
  7814. v.Material = "Neon"
  7815. end
  7816. end
  7817. for i, v in pairs(m2:GetChildren()) do
  7818. if v:IsA("Part") then
  7819. v.Color = Color3.new(0,0,0)
  7820. v.Material = "Neon"
  7821. end
  7822. end
  7823. for i, v in pairs(m3:GetChildren()) do
  7824. if v:IsA("Part") then
  7825. v.Color = Color3.new(0,0,0)
  7826. v.Material = "Neon"
  7827. end
  7828. end
  7829. for i, v in pairs(extrawingmod1:GetChildren()) do
  7830. if v:IsA("Part") then
  7831. v.Transparency = 0.75
  7832. v.Color = Color3.new(0,0,0)
  7833. v.Material = "Neon"
  7834. end
  7835. end
  7836. for i, v in pairs(extrawingmod2:GetChildren()) do
  7837. if v:IsA("Part") then
  7838. v.Transparency = 0.75
  7839. v.Color = Color3.new(0,0,0)
  7840. v.Material = "Neon"
  7841. end
  7842. end
  7843. attack = false
  7844. end
  7845.  
  7846. function GleamingBeam()
  7847. attack = true
  7848. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7849. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7850. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7851. local rsiz = math.random(1,15)
  7852. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7853. hb.Anchored = true
  7854. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7855. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7856. for i = 0, 16, 0.1 do
  7857. swait()
  7858. rsiz = math.random(5,15)
  7859. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7860. 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)
  7861. 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)
  7862. 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)
  7863. 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)
  7864. 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)
  7865. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7866. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7867. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7868. end
  7869. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7870. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7871. for i = 0, 2 do
  7872. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7873. end
  7874. 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)
  7875. 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)
  7876. 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)
  7877. for i = 0, 49 do
  7878. local rsiza = math.random(1,15)
  7879. 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)
  7880. end
  7881. local a = Instance.new("Part",Character)
  7882. a.Name = "Direction"
  7883. a.Anchored = true
  7884. a.BrickColor = MAINRUINCOLOR
  7885. a.Material = "Neon"
  7886. a.Transparency = 0
  7887. a.Shape = "Cylinder"
  7888. a.CanCollide = false
  7889. local ba = Instance.new("Part",Character)
  7890. ba.Name = "HitDirect"
  7891. ba.Anchored = true
  7892. ba.BrickColor = bc("Cool yellow")
  7893. ba.Material = "Neon"
  7894. ba.Transparency = 1
  7895. ba.CanCollide = false
  7896. local ray = Ray.new(
  7897. hb.CFrame.p, -- origin
  7898. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7899. )
  7900. local ignore = Character
  7901. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7902. a.BottomSurface = 10
  7903. a.TopSurface = 10
  7904. local distance = (hb.CFrame.p - position).magnitude
  7905. a.Size = Vector3.new(distance, 1, 1)
  7906. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7907. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7908. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7909. local msh = Instance.new("SpecialMesh",a)
  7910. msh.MeshType = "Cylinder"
  7911. msh.Scale = vt(1,4,4)
  7912. game:GetService("Debris"):AddItem(a, 30)
  7913. game:GetService("Debris"):AddItem(ba, 30)
  7914. for i = 0, 25, 0.1 do
  7915. swait()
  7916. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7917. ray = Ray.new(
  7918. hb.CFrame.p, -- origin
  7919. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7920. )
  7921. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7922. distance = (hb.CFrame.p - position).magnitude
  7923. a.Size = Vector3.new(distance, 1, 1)
  7924. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7925. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7926. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7927. rsiz = math.random(5,25)
  7928. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7929. 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)
  7930. for c = 0, 2 do
  7931. 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)
  7932. end
  7933. 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)
  7934. 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)
  7935. 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)
  7936. 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)
  7937. 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)
  7938. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7939. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7940. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7941. end
  7942. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7943. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7944. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7945. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7946. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7947. 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)
  7948. 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)
  7949. 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)
  7950. 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)
  7951. 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)
  7952. 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)
  7953. for i = 0, 49 do
  7954. local rsiza = math.random(1,15)
  7955. 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)
  7956. end
  7957. for i = 0, 49 do
  7958. rsiz = math.random(1,8)
  7959. 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)
  7960. end
  7961. coroutine.resume(coroutine.create(function()
  7962. for i = 0, 99 do
  7963. swait()
  7964. a.Transparency = a.Transparency + 0.01
  7965. end
  7966. a:Destroy()
  7967. ba:Destroy()
  7968. end))
  7969. hb:Destroy()
  7970. attack = false
  7971. end
  7972.  
  7973. function DualGleamingBeam()
  7974. attack = true
  7975. hum.WalkSpeed = 0
  7976. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7977. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7978. local radm = math.random(1,3)
  7979. if radm == 1 then
  7980. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7981. elseif radm == 2 then
  7982. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7983. elseif radm == 3 then
  7984. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7985. end
  7986. local rsiz = math.random(1,15)
  7987. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7988. hb.Anchored = true
  7989. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7990. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7991. hb2.Anchored = true
  7992. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7993. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7994. for i = 0, 14, 0.1 do
  7995. swait()
  7996. rsiz = math.random(5,15)
  7997. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7998. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7999. 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)
  8000. 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)
  8001. 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)
  8002. 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"))
  8003. 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)
  8004. 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)
  8005. 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)
  8006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8007. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8008. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8009. end
  8010. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8011. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8012. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8013. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8014. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8015. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8016. 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)
  8017. 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)
  8018. 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)
  8019. 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"))
  8020. 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"))
  8021. 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"))
  8022. for i = 0, 49 do
  8023. local rsiza = math.random(1,15)
  8024. 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)
  8025. 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)
  8026. end
  8027. local a = Instance.new("Part",Character)
  8028. a.Name = "Direction"
  8029. a.Anchored = true
  8030. a.BrickColor = MAINRUINCOLOR
  8031. a.Material = "Neon"
  8032. a.Transparency = 0
  8033. a.Shape = "Cylinder"
  8034. a.CanCollide = false
  8035. local a2 = Instance.new("Part",Character)
  8036. a2.Name = "Direction"
  8037. a2.Anchored = true
  8038. a2.BrickColor = MAINRUINCOLOR
  8039. a2.Material = "Neon"
  8040. a2.Transparency = 0
  8041. a2.Shape = "Cylinder"
  8042. a2.CanCollide = false
  8043. local ba = Instance.new("Part",Character)
  8044. ba.Name = "HitDirect"
  8045. ba.Anchored = true
  8046. ba.BrickColor = MAINRUINCOLOR
  8047. ba.Material = "Neon"
  8048. ba.Transparency = 1
  8049. ba.CanCollide = false
  8050. local ba2 = Instance.new("Part",Character)
  8051. ba2.Name = "HitDirect"
  8052. ba2.Anchored = true
  8053. ba2.BrickColor = MAINRUINCOLOR
  8054. ba2.Material = "Neon"
  8055. ba2.Transparency = 1
  8056. ba2.CanCollide = false
  8057. local ray = Ray.new(
  8058. hb.CFrame.p, -- origin
  8059. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8060. )
  8061. local ignore = Character
  8062. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8063. local ray2 = Ray.new(
  8064. hb2.CFrame.p, -- origin
  8065. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8066. )
  8067. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8068. local distance2 = (hb2.CFrame.p - position).magnitude
  8069.  
  8070. a.BottomSurface = 10
  8071. a.TopSurface = 10
  8072. local distance = (hb.CFrame.p - position).magnitude
  8073. a.Size = Vector3.new(distance, 1, 1)
  8074. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8075. a2.BottomSurface = 10
  8076. a2.TopSurface = 10
  8077. a2.Size = Vector3.new(distance2, 1, 1)
  8078. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8079. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8080. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8081. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8082. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8083. local msh = Instance.new("SpecialMesh",a)
  8084. msh.MeshType = "Cylinder"
  8085. msh.Scale = vt(1,4,4)
  8086. local msh2 = Instance.new("SpecialMesh",a2)
  8087. msh2.MeshType = "Cylinder"
  8088. msh2.Scale = vt(1,4,4)
  8089. game:GetService("Debris"):AddItem(a, 30)
  8090. game:GetService("Debris"):AddItem(a2, 30)
  8091. game:GetService("Debris"):AddItem(ba, 30)
  8092. game:GetService("Debris"):AddItem(ba2, 30)
  8093. for i = 0, 20, 0.1 do
  8094. swait()
  8095. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8096. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8097. ray = Ray.new(
  8098. hb.CFrame.p, -- origin
  8099. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8100. )
  8101. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8102. distance = (hb.CFrame.p - position).magnitude
  8103. ray2 = Ray.new(
  8104. hb2.CFrame.p, -- origin
  8105. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8106. )
  8107. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8108. distance2 = (hb2.CFrame.p - position).magnitude
  8109. a.Size = Vector3.new(distance, 1, 1)
  8110. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8111. a2.Size = Vector3.new(distance2, 1, 1)
  8112. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8113. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8114. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8115. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8116. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8117. rsiz = math.random(5,25)
  8118. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8119. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8120. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8121. if v:FindFirstChild('Head') then
  8122. dmg(v)
  8123. end
  8124. end
  8125. coroutine.resume(coroutine.create(function()
  8126. local bx = Instance.new("Part",Character)
  8127. bx.Name = "Location"
  8128. bx.Anchored = true
  8129. bx.BrickColor = MAINRUINCOLOR
  8130. bx.Material = "Neon"
  8131. bx.Transparency = 1
  8132. bx.CanCollide = false
  8133. bx.Position = ba.Position
  8134. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8135. wait(math.random(1,2))
  8136. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8137. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8138. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8139. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8140. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8141. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8142. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8143. if v:FindFirstChild('Head') then
  8144. dmg(v)
  8145. end
  8146. end
  8147. wait(5)
  8148. bx:Destroy()
  8149. end))
  8150. 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)
  8151. 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)
  8152. for c = 0, 2 do
  8153. 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)
  8154. end
  8155. 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)
  8156. 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)
  8157. 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)
  8158. 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)
  8159. 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)
  8160. 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)
  8161. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8162. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8163. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8164. end
  8165. for i = 0, 1 do
  8166. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8167. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8168. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8169. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8170. end
  8171. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8172. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8173. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8174. if v:FindFirstChild('Head') then
  8175. dmg(v)
  8176. end
  8177. end
  8178. 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)
  8179. 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)
  8180. 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)
  8181. 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)
  8182. 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)
  8183. 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)
  8184. 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"))
  8185. 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"))
  8186. 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"))
  8187. for i = 0, 49 do
  8188. local rsiza = math.random(1,15)
  8189. 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)
  8190. 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)
  8191. end
  8192. for i = 0, 49 do
  8193. rsiz = math.random(1,8)
  8194. 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)
  8195. end
  8196. coroutine.resume(coroutine.create(function()
  8197. for i = 0, 99 do
  8198. swait()
  8199. a.Transparency = a.Transparency + 0.01
  8200. a2.Transparency = a2.Transparency + 0.01
  8201. end
  8202. a:Destroy()
  8203. ba:Destroy()
  8204. a2:Destroy()
  8205. ba2:Destroy()
  8206. end))
  8207. hum.WalkSpeed = storehumanoidWS
  8208. hb:Destroy()
  8209. hb2:Destroy()
  8210. attack = false
  8211. end
  8212.  
  8213. function dragin()
  8214. local targetted = nil
  8215. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8216. targetted = mouse.Target.Parent
  8217. end
  8218. if targetted ~= nil then
  8219. RootPart.CFrame = FaceMouse()[1]
  8220. attack = true
  8221. hum.WalkSpeed = 0
  8222. for x = 0, 1 do
  8223. for i = 0,1,0.5 do
  8224. swait()
  8225. 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)
  8226. 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)
  8227. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8228. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8229. 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)
  8230. 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)
  8231. end
  8232. for i = 0,1,0.5 do
  8233. swait()
  8234. 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)
  8235. 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)
  8236. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8237. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8238. 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)
  8239. 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)
  8240. end
  8241. for i = 0,1,0.5 do
  8242. swait()
  8243. 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)
  8244. 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)
  8245. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8247. 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)
  8248. 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)
  8249. end
  8250. for i = 0,1,0.5 do
  8251. swait()
  8252. 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)
  8253. 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)
  8254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8256. 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)
  8257. 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)
  8258. end
  8259. end
  8260. coroutine.resume(coroutine.create(function()
  8261. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8262. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8263. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8264. end))
  8265. local A1 = Instance.new("Attachment",targetted.Head)
  8266. local A2 = Instance.new("Attachment",sorb)
  8267. local Beem = Instance.new("Beam",tors)
  8268. Beem.Attachment0 = A1
  8269. Beem.Attachment1 = A2
  8270. Beem.Texture = "rbxassetid://897585362"
  8271. Beem.LightEmission = 0.75
  8272. Beem.FaceCamera = true
  8273. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8274. Beem.Width0 = 1
  8275. Beem.Width1 = 1
  8276. Beem.TextureMode = "Wrap"
  8277. Beem.TextureLength = 1
  8278. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8279. 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)
  8280. 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)
  8281. for x = 0, 24 do
  8282. local rsiz = math.random(5,15)
  8283. 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)
  8284. end
  8285.  
  8286. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8287. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8288. local radm = math.random(1,2)
  8289. if radm == 1 then
  8290. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8291. elseif radm == 2 then
  8292. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8293. end
  8294. for i = 0,3,0.1 do
  8295. swait()
  8296. coroutine.resume(coroutine.create(function()
  8297. local rsiz = math.random(5,15)
  8298. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8299. 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)
  8300. end))
  8301. 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)
  8302. 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)
  8303. 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)
  8304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8306. 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)
  8307. 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)
  8308. end
  8309. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8310. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8311. local vel = Instance.new("BodyPosition", targetted.Head)
  8312. vel.P = 12500
  8313. vel.D = 1000
  8314. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8315. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8316. for i = 0,4,0.1 do
  8317. swait()
  8318. coroutine.resume(coroutine.create(function()
  8319. local rsiz = math.random(5,15)
  8320. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8321. 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)
  8322. end))
  8323. 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)
  8324. 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)
  8325. 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)
  8326. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8327. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8328. 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)
  8329. 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)
  8330. end
  8331. local visibility = 0
  8332. coroutine.resume(coroutine.create(function()
  8333. for i = 0, 49 do
  8334. swait()
  8335. visibility = visibility + 0.02
  8336. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8337. end
  8338. Beem:Destroy()
  8339. A1:Destroy()
  8340. A2:Destroy()
  8341. end))
  8342. game:GetService("Debris"):AddItem(vel,0.75)
  8343. attack = false
  8344. hum.WalkSpeed = storehumanoidWS
  8345.  
  8346. end
  8347. end
  8348.  
  8349. function hugg()
  8350. attack = true
  8351. hum.WalkSpeed = 5
  8352. local rsiz = math.random(5,15)
  8353. for i = 0, 2, 0.1 do
  8354. swait()
  8355. 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)
  8356. 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)
  8357. 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)
  8358. 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)
  8359. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8360. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8361. end
  8362. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8363. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8364. hb.Anchored = true
  8365. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8366. local huggedperson = nil
  8367. local act = false
  8368. local alreadydid = false
  8369. for i = 0, 3, 0.1 do
  8370. swait()
  8371. if act == false then
  8372. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8373. if v:FindFirstChild('Head') then
  8374. if alreadydid == false then
  8375. huggedperson = v
  8376. hum.WalkSpeed = 0
  8377. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8378. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8379. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8380. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8381. local radm = math.random(1,3)
  8382. if radm == 1 then
  8383. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8384. elseif radm == 2 then
  8385. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8386. elseif radm == 3 then
  8387. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8388. end
  8389. root.Anchored = true
  8390. coroutine.resume(coroutine.create(function()
  8391. huggedperson.Humanoid.WalkSpeed = 0
  8392. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8393. end))
  8394. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8395. alreadydid = true
  8396. act = true
  8397. print(huggedperson.Name)
  8398. end
  8399. end
  8400. end
  8401. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8402. 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)
  8403. elseif act == true then
  8404. coroutine.resume(coroutine.create(function()
  8405. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8406. end))
  8407. rsiz = math.random(5,15)
  8408. 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)
  8409. 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)
  8410. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8411. end
  8412. 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)
  8413. 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)
  8414. 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)
  8415. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8416. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8417. end
  8418. hb:Destroy()
  8419. if act == true then
  8420. for x = 0, 2 do
  8421. for i = 0, 2, 0.1 do
  8422. swait()
  8423. coroutine.resume(coroutine.create(function()
  8424. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8425. end))
  8426. rsiz = math.random(5,15)
  8427. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  8429. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8430. 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)
  8431. 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)
  8432. 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)
  8433. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8434. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8435. end
  8436. for i = 0, 2, 0.1 do
  8437. swait()
  8438. coroutine.resume(coroutine.create(function()
  8439. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8440. end))
  8441. rsiz = math.random(5,15)
  8442. 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)
  8443. 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)
  8444. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8445. 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)
  8446. 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)
  8447. 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)
  8448. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8449. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8450. end
  8451. end
  8452. end
  8453. hum.WalkSpeed = storehumanoidWS
  8454. root.Anchored = false
  8455. if act == true then
  8456. coroutine.resume(coroutine.create(function()
  8457. huggedperson.Humanoid.WalkSpeed = 16
  8458. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8459. end))
  8460. end
  8461. hum.WalkSpeed = storehumanoidWS
  8462. attack = false
  8463. end
  8464.  
  8465. function Counter()
  8466. hum.WalkSpeed = 0
  8467. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8468. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8469. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8470. attack = true
  8471. for i = 0,1,0.1 do
  8472. swait()
  8473. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8474. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8475. 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)
  8476. 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)
  8477. 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)
  8478. 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)
  8479. end
  8480. CameraEnshaking(3,4)
  8481. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8482. 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)
  8483. 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)
  8484. 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)
  8485. coroutine.resume(coroutine.create(function()
  8486. local eff = Instance.new("ParticleEmitter",root)
  8487. eff.Texture = "rbxassetid://363275192"
  8488. eff.LightEmission = 0.95
  8489. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8490. eff.Rate = 10000
  8491. eff.Lifetime = NumberRange.new(1)
  8492. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8493. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8494. eff.Speed = NumberRange.new(10,125)
  8495. eff.Drag = 5
  8496. eff.Rotation = NumberRange.new(-500,500)
  8497. eff.VelocitySpread = 9000
  8498. eff.RotSpeed = NumberRange.new(-50,50)
  8499. local eff2 = eff:Clone()
  8500. eff2.Parent = root
  8501. eff2.Texture = "rbxassetid://284205403"
  8502. eff2.Rate = 10000
  8503. 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)})
  8504. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8505. eff2.Drag = 5
  8506. eff2.Speed = NumberRange.new(10,50)
  8507. eff2.Rotation = NumberRange.new(-500,500)
  8508. eff2.VelocitySpread = 9000
  8509. wait(0.25)
  8510. eff2.Enabled = false
  8511. eff.Enabled = false
  8512. wait(3)
  8513. eff2:Destroy()
  8514. eff:Destroy()
  8515. end))
  8516. for i = 0, 9 do
  8517. 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)
  8518. end
  8519. for i = 0, 24 do
  8520. local rsiz = math.random(5,20)
  8521. 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)
  8522. end
  8523. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8524. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8525. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8526. for i = 0,2,0.1 do
  8527. swait()
  8528. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8529. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8530. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8531. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8532. RH.C0=clerp(RH.C0,cf(1,-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)
  8533. 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)
  8534. end
  8535. hum.WalkSpeed = storehumanoidWS
  8536. attack = false
  8537. end
  8538.  
  8539. function superjump()
  8540. attack = true
  8541. hum.WalkSpeed = 0
  8542. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8543. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8544. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8545. for i = 0, 2, 0.1 do
  8546. swait()
  8547. root.Velocity = vt(0,0,0)
  8548. 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"))
  8549. 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)
  8550. 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)
  8551. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8553. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8554. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8555. end
  8556. MagniDamage(root, 28, 25,50, 25, "Normal")
  8557. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8558. hum.Jump = true
  8559. swait()
  8560. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8561. 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)
  8562. 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)
  8563. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8564. for i = 0, 3, 0.1 do
  8565. swait()
  8566. 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)
  8567. 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)
  8568. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8570. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8571. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8572. end
  8573. attack = false
  8574. if equipped == false then
  8575. hum.WalkSpeed = 16
  8576. else
  8577. hum.WalkSpeed = 24
  8578. end
  8579. end
  8580.  
  8581.  
  8582. -------------------------------------
  8583.  
  8584.  
  8585.  
  8586. Humanoid.Animator.Parent = nil
  8587.  
  8588.  
  8589.  
  8590. -------------------------------------
  8591.  
  8592. local attacktype = 1
  8593. mouse.Button1Down:connect(function()
  8594. if attack == false and attacktype == 1 then
  8595. attacktype = 2
  8596. attackone()
  8597. elseif attack == false and attacktype == 2 then
  8598. attacktype = 3
  8599. attacktwo()
  8600. elseif attack == false and attacktype == 3 then
  8601. attacktype = 1
  8602. attackthree()
  8603. elseif attack == false and attacktype == 4 then
  8604. attacktype = 1
  8605. --attackfour()
  8606. end
  8607. end)
  8608. mouse.KeyDown:connect(function(k)
  8609. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8610. --normalmog()
  8611. ModeOfGlitch = 1
  8612. storehumanoidWS = 16
  8613. hum.WalkSpeed = 16
  8614. rainbowmode = false
  8615. chaosmode = false
  8616. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8617. RecolorTextAndRename("iiOmq_JacobXX2 The Cool Guy",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8618. MAINRUINCOLOR = BrickColor.new("Really red")
  8619. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8620. end
  8621. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8622. ModeOfGlitch = 2
  8623. storehumanoidWS = 16
  8624. hum.WalkSpeed = 16
  8625. rainbowmode = false
  8626. chaosmode = false
  8627. RecolorTextAndRename("Serene Killer",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8628. newTheme("rbxassetid://1539245059",0,1,0.85)
  8629. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8630. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8631. end
  8632. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8633. ModeOfGlitch = 3
  8634. storehumanoidWS = 14
  8635. hum.WalkSpeed = 14
  8636. rainbowmode = false
  8637. chaosmode = false
  8638. RecolorTextAndRename("Stable Player",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8639. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8640. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8641. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8642. end
  8643. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8644. ModeOfGlitch = 4
  8645. storehumanoidWS = 14
  8646. hum.WalkSpeed = 14
  8647. rainbowmode = false
  8648. chaosmode = true
  8649. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8650. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8651. MAINRUINCOLOR = BrickColor.new("Crimson")
  8652. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8653. end
  8654. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8655. ModeOfGlitch = 5
  8656. storehumanoidWS = 14
  8657. hum.WalkSpeed = 14
  8658. rainbowmode = false
  8659. chaosmode = false
  8660. RecolorTextAndRename("Divine Guy",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8661. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8662. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8663. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8664. end
  8665. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8666. ModeOfGlitch = 6
  8667. storehumanoidWS = 65
  8668. hum.WalkSpeed = 65
  8669. rainbowmode = false
  8670. chaosmode = false
  8671. RecolorTextAndRename("Justice Guest Killer",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8672. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8673. MAINRUINCOLOR = BrickColor.new("White")
  8674. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8675. end
  8676. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8677. ModeOfGlitch = 8
  8678. storehumanoidWS = 100
  8679. hum.WalkSpeed = 100
  8680. rainbowmode = false
  8681. chaosmode = false
  8682. RecolorTextAndRename("Destiny Jacob",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8683. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8684. MAINRUINCOLOR = BrickColor.new("Alder")
  8685. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8686. end
  8687. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8688. ModeOfGlitch = 9
  8689. storehumanoidWS = 85
  8690. hum.WalkSpeed = 85
  8691. rainbowmode = false
  8692. chaosmode = false
  8693. RecolorTextAndRename("Infected Guy",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8694. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8695. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8696. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8697. end
  8698. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8699. ModeOfGlitch = 5555
  8700. storehumanoidWS = 30
  8701. hum.WalkSpeed = 30
  8702. rainbowmode = false
  8703. chaosmode = false
  8704. RecolorTextAndRename("Lover Jacob",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8705. newTheme("rbxassetid://736003449",0,1,1.25)
  8706. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8707. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8708. end
  8709. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8710. CalamityTrans()
  8711. end
  8712. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8713. InsaneTrans()
  8714. end
  8715. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8716. ModeOfGlitch = 55469696922
  8717. storehumanoidWS = 95
  8718. hum.WalkSpeed = 95
  8719. rainbowmode = false
  8720. chaosmode = false
  8721. RecolorTextAndRename("Nanodeath",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8722. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8723. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8724. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8725. end
  8726. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8727. ModeOfGlitch = 4367677813
  8728. storehumanoidWS = 75
  8729. hum.WalkSpeed = 75
  8730. rainbowmode = false
  8731. chaosmode = false
  8732. RecolorTextAndRename("Mysterious Jacob",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8733. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8734. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8735. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8736. end
  8737. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8738. ModeOfGlitch = 9999999921111
  8739. storehumanoidWS = 145
  8740. hum.WalkSpeed = 145
  8741. rainbowmode = false
  8742. chaosmode = false
  8743. RecolorTextAndRename("Omega Jacob",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8744. newTheme("rbxassetid://643309199",0,1.01,1)
  8745. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8746. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8747. end
  8748. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8749. ModeOfGlitch = 999999999556
  8750. storehumanoidWS = 115
  8751. hum.WalkSpeed = 115
  8752. rainbowmode = false
  8753. chaosmode = false
  8754. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8755. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8756. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8757. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8758. end
  8759. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8760. ModeOfGlitch = 12
  8761. storehumanoidWS = 19
  8762. hum.WalkSpeed = 19
  8763. rainbowmode = false
  8764. chaosmode = false
  8765. print'Mode was meant for Vengeful Program or those other fans out there'
  8766. RecolorTextAndRename("Neptunia Player",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8767. newTheme("rbxassetid://1873219898",0,1,1.7)
  8768. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8769. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8770. end
  8771.  
  8772. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8773. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8774. for i = 0, 49 do
  8775. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Institutional white"),0)
  8776. end
  8777. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8778. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8779. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8780. hum.WalkSpeed = storehumanoidWS
  8781. attack = false
  8782. ModeOfGlitch = 50
  8783. storehumanoidWS = 18
  8784. hum.WalkSpeed = 18
  8785. rainbowmode = false
  8786. chaosmode = false
  8787. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8788. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8789. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8790. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8791. end
  8792.  
  8793. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8794. hum.WalkSpeed = 0
  8795. attack = true
  8796. for i = 0,1,0.1 do
  8797. swait()
  8798. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8799. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8800. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8801. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8802. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8803. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8804. end
  8805. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8806. for i = 0, 148 do
  8807. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  8808. end
  8809. for i = 0,3,0.1 do
  8810. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  8811. end
  8812. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8813. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8814. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8815. hum.WalkSpeed = storehumanoidWS
  8816. attack = false
  8817. ModeOfGlitch = 66
  8818. storehumanoidWS = 16
  8819. hum.WalkSpeed = 16
  8820. rainbowmode = false
  8821. chaosmode = false
  8822. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8823. MAINRUINCOLOR = BrickColor.new("Really black")
  8824. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8825. for i = 0,2,0.1 do
  8826. swait()
  8827. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8828. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8829. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8830. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8831. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8832. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8833. end
  8834. end
  8835.  
  8836. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8837. hum.WalkSpeed = 0
  8838. attack = true
  8839. for i = 0,1,0.1 do
  8840. swait()
  8841. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8842. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8843. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  8844. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  8845. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8846. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8847. end
  8848. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8849. for i = 0, 49 do
  8850. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  8851. end
  8852. for i = 0,3,0.1 do
  8853. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  8854. end
  8855. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8856. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8857. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8858. hum.WalkSpeed = storehumanoidWS
  8859. attack = false
  8860. ModeOfGlitch = 13
  8861. storehumanoidWS = 45
  8862. hum.WalkSpeed = 45
  8863. rainbowmode = false
  8864. chaosmode = false
  8865. RecolorTextAndRename("Judicial Jacob",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8866. newTheme("rbxassetid://190845741",0,1,1.35)
  8867. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8868. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8869. for i = 0,2,0.1 do
  8870. swait()
  8871. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8872. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8873. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8874. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8875. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8876. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8877. end
  8878. end
  8879. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8880. ModeOfGlitch = 1002
  8881. storehumanoidWS = 45
  8882. hum.WalkSpeed = 45
  8883. rainbowmode = false
  8884. chaosmode = false
  8885. RecolorTextAndRename("Pixeled Player",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8886. newTheme("rbxassetid://2027652726",0,1,0.85)
  8887. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8888. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8889. end
  8890. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8891. ModeOfGlitch = 1003
  8892. storehumanoidWS = 90
  8893. hum.WalkSpeed = 90
  8894. rainbowmode = false
  8895. chaosmode = false
  8896. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8897. newTheme("rbxassetid://257453119",0,1,0.85)
  8898. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8899. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8900. end
  8901. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8902. ModeOfGlitch = 1264532489
  8903. storehumanoidWS = 175
  8904. hum.WalkSpeed = 175
  8905. rainbowmode = false
  8906. chaosmode = false
  8907. RecolorTextAndRename("Fallenx",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8908. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8909. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8910. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8911. end
  8912. if k == "l" and mutedtog == false then
  8913. mutedtog = true
  8914. kan.Volume = 0.85
  8915. elseif k == "l" and mutedtog == true then
  8916. mutedtog = false
  8917. kan.Volume = 0.85
  8918. end
  8919. if k == "p" and toggleTag == false then
  8920. toggleTag = true
  8921. modet.TextTransparency = 0
  8922. modet.TextStrokeTransparency = 0
  8923. elseif k == "p" and toggleTag == true then
  8924. toggleTag = false
  8925. modet.TextTransparency = 1
  8926. modet.TextStrokeTransparency = 1
  8927. end
  8928. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8929. ExtinctiveHeartbreak()
  8930. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8931. HeavenlyDisk()
  8932. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8933. DualGleamingBeam()
  8934. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8935. BanishingOrb()
  8936. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8937. hugg()
  8938. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8939. cutesigh()
  8940. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8941. Counter()
  8942. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8943. superjump()
  8944. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8945. dragin()
  8946. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8947. UniversalCollapse()
  8948. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8949. PureBomb()
  8950. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8951. Beams()
  8952. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8953. BeamOfDeath()
  8954. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8955. THE_TRUE_POWER_OF_VIOLENCE()
  8956. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8957. GleamingBeam()
  8958. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8959. ViolentRing()
  8960. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8961. CorruptionEvent()
  8962. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8963. CorruptBlink()
  8964. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8965. scattercorrupt()
  8966. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8967. shytaunty()
  8968. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8969. RapidBurst()
  8970. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  8971. InsaneDrop()
  8972. wait(2)
  8973. ChaosEND()
  8974. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8975. ChaosEND()
  8976. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8977. CyberSlash()
  8978. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8979. smiter()
  8980. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8981. SpeedDrop()
  8982. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8983. --DivineLights()
  8984. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8985. DivineBlast()
  8986. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8987. EquinoxOrbs()
  8988. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8989. yinyangi()
  8990. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8991. FallenOrbs()
  8992. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8993. StarfallEX()
  8994. end
  8995. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8996. FallenDEMISE()
  8997. end
  8998. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8999. EndGROUND()
  9000. end
  9001. end)
  9002.  
  9003. coroutine.resume(coroutine.create(function()
  9004. while true do
  9005. swait()
  9006. 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
  9007. 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)
  9008. end
  9009. if ModeOfGlitch == 5555 then
  9010. 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)
  9011. end
  9012. end
  9013. end))
  9014. --[[coroutine.resume(coroutine.create(function()
  9015. while true do
  9016. swait(2)
  9017. if chaosmode == true then
  9018. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9019. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9020. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9021. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9022. for i, v in pairs(mw1:GetChildren()) do
  9023. if v:IsA("Part") then
  9024. v.Transparency = 0.75
  9025. v.BrickColor = BrickColor.random()
  9026. v.Material = "Neon"
  9027. end
  9028. end
  9029. for i, v in pairs(m2:GetChildren()) do
  9030. if v:IsA("Part") then
  9031. v.BrickColor = BrickColor.random()
  9032. v.Material = "Neon"
  9033. end
  9034. end
  9035. end
  9036. end
  9037. end))]]
  9038.  
  9039.  
  9040.  
  9041. ff = Instance.new("ForceField",char)
  9042. ff.Visible = false
  9043. hum.Name = "Base"
  9044. hum.MaxHealth = 1.0E298
  9045. hum.Health = 1.0E298
  9046. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9047. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9048. hum.MaxHealth = 1.0E298
  9049. hum.Health = 1.0E298
  9050. end
  9051. end)
  9052.  
  9053. local Hair = Instance.new("Part", char)
  9054. Hair.Name = "Hair"
  9055. Hair.CanCollide = false
  9056. Hair.BrickColor = BrickColor.new("Institutional white")
  9057. Hair.Transparency = 0
  9058. Hair.Material = "Plastic"
  9059. Hair.Size = Vector3.new(1, 1, 2)
  9060. Hair.TopSurface = Enum.SurfaceType.Smooth
  9061. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9062.  
  9063.  
  9064. local bguis = Instance.new("BillboardGui",tors)
  9065. bguis.Size = UDim2.new(25, 0, 25, 0)
  9066. local imgca = Instance.new("ImageLabel",bguis)
  9067. imgca.BackgroundTransparency = 1
  9068. imgca.ImageTransparency = 1
  9069. imgca.Size = UDim2.new(1,0,1,0)
  9070. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9071. imgca.ImageColor3 = Color3.new(0,0,0)
  9072.  
  9073.  
  9074. local bguis2 = Instance.new("BillboardGui",tors)
  9075. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9076. local imgca2 = Instance.new("ImageLabel",bguis)
  9077. imgca2.BackgroundTransparency = 1
  9078. imgca2.ImageTransparency = 1
  9079. imgca2.Size = UDim2.new(1,0,1,0)
  9080. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9081. imgca2.ImageColor3 = Color3.new(0,0,0)
  9082.  
  9083.  
  9084.  
  9085. idleanim=.4
  9086. while true do
  9087. if mutedtog == false then
  9088. kan.Volume = currentVol
  9089. elseif mutedtog == true then
  9090. kan.Volume = 0
  9091. end
  9092. kan.PlaybackSpeed = currentPitch
  9093. kan.Pitch = currentPitch
  9094. kan.SoundId = currentThemePlaying
  9095. kan.Looped = true
  9096. kan.Parent = char
  9097. kan:Resume()
  9098. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9099. imgca.ImageTransparency = 1
  9100. imgca2.ImageTransparency = 1
  9101. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9102. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9103. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9104. elseif ModeOfGlitch == 13 then
  9105. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9106. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9107. end
  9108. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9109. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9110. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9111. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9112. coroutine.resume(coroutine.create(function()
  9113. if chaosmode == true then
  9114. for i, v in pairs(mw1:GetChildren()) do
  9115. if v:IsA("Part") then
  9116. v.Transparency = 0
  9117. v.BrickColor = BrickColor.random()
  9118. v.Material = "Neon"
  9119. end
  9120. end
  9121. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9122. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9123. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9124. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9125. end
  9126. end))
  9127. coroutine.resume(coroutine.create(function()
  9128. if ModeOfGlitch == 66 then
  9129. for i, v in pairs(m:GetChildren()) do
  9130. if v:IsA("Part") then
  9131. v.Transparency = 0
  9132. v.BrickColor = BrickColor.random()
  9133. v.Material = "Neon"
  9134. end
  9135. end
  9136. for i, v in pairs(m2:GetChildren()) do
  9137. if v:IsA("Part") then
  9138. v.Transparency = 0
  9139. v.BrickColor = BrickColor.random()
  9140. v.Material = "Neon"
  9141. end
  9142. end
  9143. for i, v in pairs(mw1:GetChildren()) do
  9144. if v:IsA("Part") then
  9145. v.Transparency = 0
  9146. v.BrickColor = BrickColor.random()
  9147. v.Material = "Neon"
  9148. end
  9149. end
  9150. for i, v in pairs(extrawingmod1:GetChildren()) do
  9151. if v:IsA("Part") then
  9152. v.Transparency = 0.5
  9153. v.BrickColor = BrickColor.random()
  9154. v.Material = "Neon"
  9155. end
  9156. end
  9157. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9158. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9159. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9160. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9161. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9162. end
  9163. end))
  9164.  
  9165. coroutine.resume(coroutine.create(function()
  9166. if ModeOfGlitch == 66 then
  9167. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9168. end
  9169. end))
  9170.  
  9171. if chaosmode == false then
  9172. modet.Position = UDim2.new(0,0,0,0)
  9173. modet.Rotation = -5 * math.cos(sine / 32)
  9174. techc.Rotation = techc.Rotation + 1
  9175. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9176. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9177. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9178. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9179. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9180. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9181. else
  9182. techc.Rotation = techc.Rotation + 1
  9183. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9184. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9185. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9186. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9187. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9188. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9189. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9190. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9191. end
  9192. CameraManager()
  9193. swait()
  9194. 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)
  9195. 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)
  9196. 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)
  9197. 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)
  9198. 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)
  9199. 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)
  9200. 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)
  9201. 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)
  9202. 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)
  9203. 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)
  9204. 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)
  9205. 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)
  9206. sine = sine + change
  9207. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9208. local velderp=RootPart.Velocity.y
  9209. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9210. coroutine.resume(coroutine.create(function()
  9211. 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
  9212. if hitfloor ~= nil then
  9213. 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"))
  9214. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9215. 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)
  9216. end
  9217. end
  9218. end
  9219. end))
  9220. if equipped==true or equipped==false then
  9221. if attack==false then
  9222. idle=idle+1
  9223. else
  9224. idle=0
  9225. end
  9226. if idle>=500 then
  9227. if attack==false then
  9228. --Sheath()
  9229. end
  9230. end
  9231. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9232. Anim="Jump"
  9233. if attack==false then
  9234. 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)
  9235. 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)
  9236. 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)
  9237. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9238. 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)
  9239. 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)
  9240. end
  9241. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9242. Anim="Fall"
  9243. if attack==false then
  9244. 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)
  9245. 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)
  9246. 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)
  9247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9248. 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)
  9249. 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)
  9250. end
  9251. elseif torvel<1 and hitfloor~=nil then
  9252. Anim="Idle"
  9253. if attack==false then
  9254. if ModeOfGlitch == 1 then
  9255. local snap = math.random(1,10)
  9256. if snap == 1 then
  9257. 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)
  9258. end
  9259. 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)
  9260. 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)
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. elseif ModeOfGlitch == 2 then
  9266. 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)
  9267. 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)
  9268. 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)
  9269. 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)
  9270. 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)
  9271. 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)
  9272. elseif ModeOfGlitch == 2 then
  9273. 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)
  9274. 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)
  9275. 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)
  9276. 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)
  9277. 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)
  9278. 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)
  9279. elseif ModeOfGlitch == 50 then
  9280. 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)
  9281. 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)
  9282. 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)
  9283. 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)
  9284. 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)
  9285. 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)
  9286. elseif ModeOfGlitch == 5555 then --5555
  9287. 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)
  9288. 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)
  9289. 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)
  9290. 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)
  9291. 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)
  9292. 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)
  9293. elseif ModeOfGlitch == 1002 then
  9294. 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)
  9295. 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)
  9296. 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)
  9297. 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)
  9298. 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)
  9299. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9300. elseif ModeOfGlitch == 12 then
  9301. 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)
  9302. 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)
  9303. 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)
  9304. 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)
  9305. 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)
  9306. 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)
  9307. elseif ModeOfGlitch == 3 then
  9308. local snap = math.random(1,32)
  9309. if snap == 1 then
  9310. 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)
  9311. end
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. elseif ModeOfGlitch == 4 then
  9319. local snap = math.random(1,5)
  9320. if snap == 1 then
  9321. 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)
  9322. 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)
  9323. 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)
  9324. end
  9325. 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)
  9326. 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)
  9327. 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)
  9328. 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)
  9329. 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)
  9330. 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)
  9331. elseif ModeOfGlitch == 66 then
  9332. local snap = math.random(1,2)
  9333. if snap == 1 then
  9334. 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)
  9335. 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)
  9336. 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)
  9337. end
  9338. 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)
  9339. 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)
  9340. 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)
  9341. 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)
  9342. 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)
  9343. 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)
  9344. elseif ModeOfGlitch == 5 then
  9345. 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)
  9346. 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)
  9347. 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)
  9348. 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)
  9349. 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)
  9350. 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)
  9351. elseif ModeOfGlitch == 6 then
  9352. 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)
  9353. 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)
  9354. 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)
  9355. 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)
  9356. 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)
  9357. 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)
  9358. elseif ModeOfGlitch == 13 then
  9359. 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)
  9360. 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)
  9361. 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)
  9362. 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)
  9363. 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)
  9364. 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)
  9365. elseif ModeOfGlitch == 8 then
  9366. 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)
  9367. 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)
  9368. 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)
  9369. 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)
  9370. 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)
  9371. 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)
  9372. elseif ModeOfGlitch == 9 then
  9373. 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)
  9374. 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))
  9375. 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)
  9376. 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)
  9377. 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)
  9378. 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)
  9379. 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)
  9380. 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)
  9381. elseif ModeOfGlitch == 1003 then
  9382. 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)
  9383. 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)
  9384. 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)
  9385. 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)
  9386. 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)
  9387. 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)
  9388.  
  9389. elseif ModeOfGlitch == 8889 then
  9390. 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)
  9391. 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)
  9392. 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)
  9393. 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)
  9394. 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)
  9395. 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)
  9396. elseif ModeOfGlitch == 1264532489 then
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9405. 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)
  9406. 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)
  9407. 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)
  9408. 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)
  9409. 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)
  9410. 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)
  9411. elseif ModeOfGlitch == 4367677813 then
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. 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)
  9417. 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)
  9418. elseif ModeOfGlitch == 55469696922 then --5555
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. 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)
  9424. 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)
  9425. elseif ModeOfGlitch == 999999999556 then
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. 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)
  9432. end
  9433. end
  9434. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9435. Anim="Walk"
  9436. if attack==false and ModeOfGlitch ~= 66 then
  9437. 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)
  9438. 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)
  9439. 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)
  9440. 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)
  9441. 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)
  9442. 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)
  9443. elseif attack==false and ModeOfGlitch == 66 then
  9444. 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)
  9445. 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)
  9446. 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)
  9447. 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)
  9448. 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)
  9449. 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)
  9450. end
  9451. elseif torvel>=22 and hitfloor~=nil then
  9452. Anim="Run"
  9453. if attack==false then
  9454. 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
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. 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)
  9460. 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)
  9461. if ModeOfGlitch == 12 then
  9462. 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)
  9463. 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)
  9464. 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)
  9465. 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)
  9466. 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)
  9467. 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)
  9468. end
  9469. if ModeOfGlitch == 9 then
  9470. 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)
  9471. 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))
  9472. 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)
  9473. end
  9474. 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
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. 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)
  9480. 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)
  9481. elseif ModeOfGlitch == 13 then
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. end
  9489. end
  9490. end
  9491. end
  9492. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement