Advertisement
Toey8415

Hopeless (new)

Oct 7th, 2018
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 445.03 KB | None | 0 0
  1. local Player = game:GetService("Players").Toey8418
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInputService"
  8. Event.Parent = Player.Character
  9. end
  10. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  11. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  12. function CAS:BindAction(name,fun,touch,...)
  13. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  14. end
  15. function CAS:UnbindAction(name)
  16. CAS.Actions[name] = nil
  17. end
  18. local function te(self,ev,...)
  19. local t = m[ev]
  20. if t and t._fakeEvent and t.Function then
  21. t.Function(...)
  22. end
  23. end
  24. m.TrigEvent = te
  25. UIS.TrigEvent = te
  26. Event.OnServerEvent:Connect(function(plr,io)
  27. if plr~=Player then return end
  28. if io.isMouse then
  29. m.Target = io.Target
  30. m.Hit = io.Hit
  31. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  32. if io.UserInputState == Enum.UserInputState.Begin then
  33. m:TrigEvent("Button1Down")
  34. else
  35. m:TrigEvent("Button1Up")
  36. end
  37. else
  38. for n,t in pairs(CAS.Actions) do
  39. for _,k in pairs(t.Keys) do
  40. if k==io.KeyCode then
  41. t.Function(t.Name,io.UserInputState,io)
  42. end
  43. end
  44. end
  45. if io.UserInputState == Enum.UserInputState.Begin then
  46. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  47. UIS:TrigEvent("InputBegan",io,false)
  48. else
  49. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  50. UIS:TrigEvent("InputEnded",io,false)
  51. end
  52. end
  53. end)
  54. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  55. end
  56.  
  57. wait(0.2)
  58.  
  59.  
  60. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  61. The super switcher.
  62. Velnorum is one of the first wielders.
  63.  
  64. Created, Reworked by NoobyGames12
  65. Edited by GodzPlaysRB
  66. Edited by wanTH092 (Gam_Filano CH)
  67. SpectrumGlitcher Developers ^^^
  68. ]])
  69.  
  70.  
  71. ------------- ORIGINAL WIELDER OC: Velnorum
  72. print([[Icons:
  73. ! = New
  74. ? = Spoilers
  75. * = Exclusivity
  76. C = Changes
  77.  
  78. ]])
  79. warn([[V 4.35 Update Log:
  80. ! - Added Betrayal mode (Chaos M)
  81.  
  82. !? - Added z move to destiny
  83. !c? = Added calamity transition
  84. !? - upcoming transition for some mode..
  85. - Removed some voice sound effects because they didnt sound right
  86. ]])
  87. --- its obs smooth af do not touch
  88. ---- Sources and functions might be taken from others
  89. plr = game:GetService("Players").Toey8418
  90. char = plr.Character
  91. hum = char.Humanoid
  92. local cam = game.Workspace.CurrentCamera
  93. Camera = cam
  94. local CamInterrupt = false
  95. local TwoD = false
  96. local TargetInfo = {nil, nil}
  97. cam.CameraType = "Custom"
  98. t = char.Torso
  99. h = char.Head
  100. ra = char["Right Arm"]
  101. la = char["Left Arm"]
  102. rl = char["Right Leg"]
  103. ll = char["Left Leg"]
  104. tors = char.Torso
  105. lleg = char["Left Leg"]
  106. root = char.HumanoidRootPart
  107. hed = char.Head
  108. rleg = char["Right Leg"]
  109. rarm = char["Right Arm"]
  110. larm = char["Left Arm"]
  111. radian = math.rad
  112. random = math.random
  113. Vec3 = Vector3.new
  114. Inst = Instance.new
  115. cFrame = CFrame.new
  116. Euler = CFrame.fromEulerAnglesXYZ
  117. vt = Vector3.new
  118. bc = BrickColor.new
  119. br = BrickColor.random
  120. it = Instance.new
  121. cf = CFrame.new
  122. local Player_Size = 0
  123. cam = game.Workspace.CurrentCamera
  124. CF = CFrame.new
  125. angles = CFrame.Angles
  126. attack = false
  127. Euler = CFrame.fromEulerAnglesXYZ
  128. Rad = math.rad
  129. IT = Instance.new
  130. BrickC = BrickColor.new
  131. Cos = math.cos
  132. Acos = math.acos
  133. Sin = math.sin
  134. Asin = math.asin
  135. Abs = math.abs
  136. Mrandom = math.random
  137. Floor = math.floor
  138. IT = Instance.new
  139. CF = CFrame.new
  140. VT = Vector3.new
  141. RAD = math.rad
  142. C3 = Color3.new
  143. UD2 = UDim2.new
  144. BRICKC = BrickColor.new
  145. ANGLES = CFrame.Angles
  146. EULER = CFrame.fromEulerAnglesXYZ
  147. COS = math.cos
  148. ACOS = math.acos
  149. SIN = math.sin
  150. ASIN = math.asin
  151. ABS = math.abs
  152. MRANDOM = math.random
  153. FLOOR = math.floor
  154. local SINE = 0
  155.  
  156. local Booleans = {
  157. CamFollow = true,
  158. GyroUse = true
  159. }
  160.  
  161. function lerp(object, newCFrame, alpha)
  162. return object:lerp(newCFrame, alpha)
  163. end
  164.  
  165. local Directer = Inst("BodyGyro", root)
  166. Directer.MaxTorque = Vec3(0, 0, 0)
  167. Directer.P = 600000
  168. local CPart = Inst("Part")
  169. CPart.Anchored = true
  170. CPart.CanCollide = false
  171. CPart.Locked = true
  172. CPart.Transparency = 1
  173.  
  174. local rainbowmode = false
  175. local chaosmode = false
  176.  
  177. local kan = Instance.new("Sound",tors)
  178. kan.Volume = 0.85
  179. kan.TimePosition = 0
  180. kan.PlaybackSpeed = 1
  181. kan.Pitch = 1
  182. kan.SoundId = "rbxassetid://1255569288"
  183. kan.Name = "wrecked"
  184. kan.Looped = true
  185. kan:Play()
  186.  
  187. local currentThemePlaying = kan.SoundId
  188. local currentPitch = kan.Pitch
  189. local currentVol = kan.Volume
  190. function newTheme(ID,timepos,pitch,vol)
  191. local kanz = kan
  192. --kanz:Stop()
  193. kanz.Volume = vol
  194. --kanz.TimePosition = timepos
  195. kanz.PlaybackSpeed = pitch
  196. kanz.Pitch = pitch
  197. kanz.SoundId = ID
  198. kanz.Name = "wrecked"
  199. kanz.Looped = true
  200. currentThemePlaying = kanz.SoundId
  201. currentVol = kanz.Volume
  202. currentPitch = kanz.Pitch
  203. --kanz:Play()
  204. --coroutine.resume(coroutine.create(function()
  205. --wait(0.05)
  206. --end))
  207. end
  208.  
  209.  
  210. function newThemeCust(ID,timepos,pitch,vol)
  211. local kanz = kan
  212. kanz:Stop()
  213. kanz.Volume = vol
  214. kanz.TimePosition = timepos
  215. kanz.PlaybackSpeed = pitch
  216. kanz.Pitch = pitch
  217. kanz.SoundId = ID
  218. kanz.Name = "wrecked"
  219. kanz.Looped = true
  220. currentThemePlaying = kanz.SoundId
  221. currentVol = kanz.Volume
  222. currentPitch = kanz.Pitch
  223. kanz:Play()
  224. coroutine.resume(coroutine.create(function()
  225. wait(0.05)
  226. end))
  227. end
  228.  
  229. local mutedtog = false
  230.  
  231. function CameraEnshaking(Length,Intensity)
  232. coroutine.resume(coroutine.create(function()
  233. local intensity = 1*Intensity
  234. local rotM = 0.01*Intensity
  235. for i = 0, Length, 0.1 do
  236. swait()
  237. intensity = intensity - 0.05*Intensity/Length
  238. rotM = rotM - 0.0005*Intensity/Length
  239. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  240. 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)
  241. end
  242. Humanoid.CameraOffset = Vec3(0, 0, 0)
  243. end))
  244. end
  245. CamShake=function(Part,Distan,Power,Times)
  246. local de=Part.Position
  247. for i,v in pairs(workspace:children()) do
  248. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  249. for _,c in pairs(v:children()) do
  250. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  251. local Noob=v.Humanoid
  252. if Noob~=nil then
  253. coroutine.resume(coroutine.create(function()
  254. FV = Instance.new("BoolValue", Noob)
  255. FV.Name = "CameraShake"
  256. for ShakeNum=1,Times do
  257. swait()
  258. local ef=Power
  259. if ef>=1 then
  260. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  261. else
  262. ef=Power*10
  263. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  264. end
  265. end
  266. Humanoid.CameraOffset = Vector3.new(0,0,0)
  267. FV:Destroy()
  268. end))
  269. CameraShake(Times, Power, Noob)
  270. end
  271. end
  272. end
  273. end
  274. end
  275. end
  276.  
  277. local toggleTag = true
  278. local bilguit = Instance.new("BillboardGui", hed)
  279. bilguit.Adornee = nil
  280. bilguit.Name = "ModeName"
  281. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  282. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  283. local modet = Instance.new("TextLabel", bilguit)
  284. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  285. modet.FontSize = "Size8"
  286. modet.TextScaled = true
  287. modet.TextTransparency = 0
  288. modet.BackgroundTransparency = 1
  289. modet.TextTransparency = 0
  290. modet.TextStrokeTransparency = 0
  291. modet.Font = "Antique"
  292. modet.TextStrokeColor3 = Color3.new(1,0,0)
  293. modet.TextColor3 = Color3.new(0.25,0,0)
  294. modet.Text = "Hopeless Guest"
  295.  
  296.  
  297. function chatfunc(text,color,typet,font,timeex)
  298. local chat = coroutine.wrap(function()
  299. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  300. Character:FindFirstChild("TalkingBillBoard"):destroy()
  301. end
  302. local naeeym2 = Instance.new("BillboardGui",Character)
  303. naeeym2.Size = UDim2.new(0,100,0,40)
  304. naeeym2.StudsOffset = Vector3.new(0,3,0)
  305. naeeym2.Adornee = Character.Head
  306. naeeym2.Name = "TalkingBillBoard"
  307. local tecks2 = Instance.new("TextLabel",naeeym2)
  308. tecks2.BackgroundTransparency = 1
  309. tecks2.BorderSizePixel = 0
  310. tecks2.Text = ""
  311. tecks2.Font = font
  312. tecks2.TextSize = 30
  313. tecks2.TextStrokeTransparency = 0
  314. tecks2.TextColor3 = color
  315. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  316. tecks2.Size = UDim2.new(1,0,0.5,0)
  317. local tecks3 = Instance.new("TextLabel",naeeym2)
  318. tecks3.BackgroundTransparency = 1
  319. tecks3.BorderSizePixel = 0
  320. tecks3.Text = ""
  321. tecks3.Font = font
  322. tecks3.TextSize = 30
  323. tecks3.TextStrokeTransparency = 0
  324. if typet == "Inverted" then
  325. tecks3.TextColor3 = Color3.new(0,0,0)
  326. tecks3.TextStrokeColor3 = color
  327. elseif typet == "Normal" then
  328. tecks3.TextColor3 = color
  329. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  330. end
  331. tecks3.Size = UDim2.new(1,0,0.5,0)
  332. coroutine.resume(coroutine.create(function()
  333. while true do
  334. swait(1)
  335. if chaosmode == true then
  336. tecks2.TextColor3 = BrickColor.random().Color
  337. tecks3.TextStrokeColor3 = BrickColor.random().Color
  338. end
  339. end
  340. end))
  341. modet.TextTransparency = modet.TextTransparency + 1
  342. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  343. for i = 0, 74*timeex do
  344. swait()
  345. modet.TextTransparency = 1
  346. modet.TextStrokeTransparency = 1
  347. tecks2.Text = text
  348. tecks3.Text = text
  349. end
  350. local randomrot = math.random(1,2)
  351. if randomrot == 1 then
  352. for i = 1, 50 do
  353. swait()
  354. tecks2.Text = text
  355. tecks3.Text = text
  356. modet.TextTransparency = modet.TextTransparency - .02
  357. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  358. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  359. tecks2.TextTransparency = tecks2.TextTransparency + .04
  360. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  361. tecks3.TextTransparency = tecks2.TextTransparency + .04
  362. end
  363. elseif randomrot == 2 then
  364. for i = 1, 50 do
  365. swait()
  366. tecks2.Text = text
  367. tecks3.Text = text
  368. modet.TextTransparency = modet.TextTransparency - .02
  369. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  370. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks2.TextTransparency = tecks2.TextTransparency + .04
  372. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  373. tecks3.TextTransparency = tecks2.TextTransparency + .04
  374. end
  375. end
  376. modet.TextTransparency = 0
  377. modet.TextStrokeTransparency = 0
  378. if toggleTag == false then
  379. modet.TextTransparency = 1
  380. modet.TextStrokeTransparency = 1
  381. end
  382. naeeym2:Destroy()
  383. end)
  384. chat()
  385. end
  386.  
  387. function bosschatfunc(text,color,watval)
  388. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  389. coroutine.resume(coroutine.create(function()
  390. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  391. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  392. end
  393. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  394. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  395. scrg.Name = "Dialog"
  396. local txtlb = Instance.new("TextLabel",scrg)
  397. txtlb.Text = ""
  398. txtlb.Font = "Bodoni"
  399. txtlb.TextColor3 = Color3.new(0,0,0)
  400. txtlb.TextStrokeTransparency = 0
  401. txtlb.BackgroundTransparency = 0.75
  402. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  403. txtlb.TextStrokeColor3 = color
  404. txtlb.TextScaled = true
  405. txtlb.Size = UDim2.new(1,0,0.25,0)
  406. txtlb.TextXAlignment = "Left"
  407. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  408. local txtlb2 = Instance.new("TextLabel",scrg)
  409. txtlb2.Text = plr.Name.." The Glitcher:"
  410. txtlb2.Font = "Arcade"
  411. txtlb2.TextColor3 = Color3.new(0,0,0)
  412. txtlb2.TextStrokeTransparency = 0
  413. txtlb2.BackgroundTransparency = 1
  414. txtlb2.TextStrokeColor3 = color
  415. txtlb2.TextSize = 40
  416. txtlb2.Size = UDim2.new(1,0,0.25,0)
  417. txtlb2.TextXAlignment = "Left"
  418. txtlb2.Position = UDim2.new(0,0,1,0)
  419. local fvalen = 0.55
  420. local fval = -0.49
  421. coroutine.resume(coroutine.create(function()
  422. while true do
  423. swait()
  424. if chaosmode == true then
  425. txtlb.Rotation = math.random(-1,1)
  426. txtlb2.Rotation = math.random(-1,1)
  427. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  428. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  429. txtlb.TextStrokeColor3 = BrickColor.random().Color
  430. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  431. end
  432. end
  433. end))
  434. coroutine.resume(coroutine.create(function()
  435. while true do
  436. swait()
  437. if scrg.Parent ~= nil then
  438. fvalen = fvalen - 0.0001
  439. elseif scrg.Parent == nil then
  440. break
  441. end
  442. end
  443. end))
  444. local flol = 1.75
  445. local flil = 1.6
  446. coroutine.resume(coroutine.create(function()
  447. for i = 0, 9 do
  448. swait()
  449. fval = fval + 0.05
  450. flol = flol - 0.1
  451. flil = flil - 0.1
  452. txtlb.Text = ""
  453. txtlb.Position = UDim2.new(0,0,flol,0)
  454. txtlb2.Position = UDim2.new(0,0,flil,0)
  455. end
  456. txtlb.Text = text
  457. wait(watval)
  458. local valinc = 0
  459. for i = 0, 99 do
  460. swait()
  461. valinc = valinc + 0.0001
  462. flol = flol + valinc
  463. flil = flil + valinc
  464. txtlb.Rotation = txtlb.Rotation + valinc*20
  465. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  466. txtlb.Position = UDim2.new(0,0,flol,0)
  467. txtlb2.Position = UDim2.new(0,0,flil,0)
  468. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  469. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  470. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  471. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  472. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  473. end
  474. scrg:Destroy()
  475. end))
  476. end))
  477. end
  478. end
  479.  
  480.  
  481. local Create = LoadLibrary("RbxUtility").Create
  482.  
  483. CFuncs = {
  484. ["Part"] = {
  485. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  486. local Part = Create("Part"){
  487. Parent = Parent,
  488. Reflectance = Reflectance,
  489. Transparency = Transparency,
  490. CanCollide = false,
  491. Locked = true,
  492. BrickColor = BrickColor.new(tostring(BColor)),
  493. Name = Name,
  494. Size = Size,
  495. Material = Material,
  496. }
  497. RemoveOutlines(Part)
  498. return Part
  499. end;
  500. };
  501.  
  502. ["Mesh"] = {
  503. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  504. local Msh = Create(Mesh){
  505. Parent = Part,
  506. Offset = OffSet,
  507. Scale = Scale,
  508. }
  509. if Mesh == "SpecialMesh" then
  510. Msh.MeshType = MeshType
  511. Msh.MeshId = MeshId
  512. end
  513. return Msh
  514. end;
  515. };
  516.  
  517. ["Mesh"] = {
  518. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  519. local Msh = Create(Mesh){
  520. Parent = Part,
  521. Offset = OffSet,
  522. Scale = Scale,
  523. }
  524. if Mesh == "SpecialMesh" then
  525. Msh.MeshType = MeshType
  526. Msh.MeshId = MeshId
  527. end
  528. return Msh
  529. end;
  530. };
  531.  
  532. ["Weld"] = {
  533. Create = function(Parent, Part0, Part1, C0, C1)
  534. local Weld = Create("Weld"){
  535. Parent = Parent,
  536. Part0 = Part0,
  537. Part1 = Part1,
  538. C0 = C0,
  539. C1 = C1,
  540. }
  541. return Weld
  542. end;
  543. };
  544.  
  545. ["Sound"] = {
  546. Create = function(id, par, vol, pit)
  547. coroutine.resume(coroutine.create(function()
  548. local S = Create("Sound"){
  549. Volume = vol,
  550. Name = "EffectSoundo",
  551. Pitch = pit or 1,
  552. SoundId = id,
  553. Parent = par or workspace,
  554. }
  555. wait()
  556. S:play()
  557. game:GetService("Debris"):AddItem(S, 10)
  558. end))
  559. end;
  560. };
  561.  
  562. ["TimeSound"] = {
  563. Create = function(id, par, vol, pit, timepos)
  564. coroutine.resume(coroutine.create(function()
  565. local S = Create("Sound"){
  566. Volume = vol,
  567. Name = "EffectSoundo",
  568. Pitch = pit or 1,
  569. SoundId = id,
  570. TimePosition = timepos,
  571. Parent = par or workspace,
  572. }
  573. wait()
  574. S:play()
  575. game:GetService("Debris"):AddItem(S, 10)
  576. end))
  577. end;
  578. };
  579. ["EchoSound"] = {
  580. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  581. coroutine.resume(coroutine.create(function()
  582. local Sas = Create("Sound"){
  583. Volume = vol,
  584. Name = "EffectSoundo",
  585. Pitch = pit or 1,
  586. SoundId = id,
  587. TimePosition = timepos,
  588. Parent = par or workspace,
  589. }
  590. local E = Create("EchoSoundEffect"){
  591. Delay = echodelay,
  592. Name = "Echo",
  593. Feedback = fedb,
  594. DryLevel = dryl,
  595. Parent = Sas,
  596. }
  597. wait()
  598. Sas:play()
  599. game:GetService("Debris"):AddItem(Sas, delays)
  600. end))
  601. end;
  602. };
  603.  
  604. ["LongSound"] = {
  605. Create = function(id, par, vol, pit)
  606. coroutine.resume(coroutine.create(function()
  607. local S = Create("Sound"){
  608. Volume = vol,
  609. Pitch = pit or 1,
  610. SoundId = id,
  611. Parent = par or workspace,
  612. }
  613. wait()
  614. S:play()
  615. game:GetService("Debris"):AddItem(S, 60)
  616. end))
  617. end;
  618. };
  619.  
  620. ["ParticleEmitter"] = {
  621. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  622. local fp = Create("ParticleEmitter"){
  623. Parent = Parent,
  624. Color = ColorSequence.new(Color1, Color2),
  625. LightEmission = LightEmission,
  626. Size = Size,
  627. Texture = Texture,
  628. Transparency = Transparency,
  629. ZOffset = ZOffset,
  630. Acceleration = Accel,
  631. Drag = Drag,
  632. LockedToPart = LockedToPart,
  633. VelocityInheritance = VelocityInheritance,
  634. EmissionDirection = EmissionDirection,
  635. Enabled = Enabled,
  636. Lifetime = LifeTime,
  637. Rate = Rate,
  638. Rotation = Rotation,
  639. RotSpeed = RotSpeed,
  640. Speed = Speed,
  641. VelocitySpread = VelocitySpread,
  642. }
  643. return fp
  644. end;
  645. };
  646.  
  647. CreateTemplate = {
  648.  
  649. };
  650. }
  651.  
  652.  
  653.  
  654. New = function(Object, Parent, Name, Data)
  655. local Object = Instance.new(Object)
  656. for Index, Value in pairs(Data or {}) do
  657. Object[Index] = Value
  658. end
  659. Object.Parent = Parent
  660. Object.Name = Name
  661. return Object
  662. end
  663. local halocolor = BrickColor.new("Pastel light blue")
  664. local halocolor2 = BrickColor.new("Cool yellow")
  665. local starcolor = BrickColor.new("Bright yellow")
  666. local lunacolor = BrickColor.new("Navy blue")
  667. local lunacolor2 = BrickColor.new("Bright blue")
  668. local wepcolor = BrickColor.new("Really black")
  669. local maincolor = BrickColor.new("Really black")
  670. local m = Instance.new("Model",char)
  671. local m2 = Instance.new("Model",char)
  672. local m3 = Instance.new("Model",char)
  673. local mw1 = Instance.new("Model",char)
  674. local mw2 = Instance.new("Model",char)
  675.  
  676.  
  677. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  678. local gui = it(GuiType)
  679. gui.Parent = parent
  680. gui.Text = text
  681. gui.BackgroundTransparency = backtrans
  682. gui.BackgroundColor3 = backcol
  683. gui.SizeConstraint = "RelativeXY"
  684. gui.TextXAlignment = "Center"
  685. gui.TextYAlignment = "Center"
  686. gui.Position = pos
  687. gui.Size = size
  688. gui.Font = "SourceSans"
  689. gui.FontSize = "Size14"
  690. gui.TextWrapped = false
  691. gui.TextStrokeTransparency = 0
  692. gui.TextColor = BrickColor.new("White")
  693. return gui
  694. end
  695. --------------------------- GUI STUFF
  696. local basgui = it("GuiMain")
  697. basgui.Parent = plr.PlayerGui
  698. basgui.Name = "VISgui"
  699. local fullscreenz = it("Frame")
  700. fullscreenz.Parent = basgui
  701. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  702. fullscreenz.BackgroundTransparency = 1
  703. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  704. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  705. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  706. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  707. imgl2.BackgroundTransparency = 1
  708. imgl2.BorderSizePixel = 0
  709. imgl2.ImageTransparency = 0.5
  710. imgl2.ImageColor3 = Color3.new(1,0,0)
  711. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  712. imgl2.Size = UDim2.new(0,1000,0,1000)
  713. imgl2.Image = "rbxassetid://2325939897"
  714. local techc = imgl2:Clone()
  715. techc.Parent = fullscreenz
  716. techc.ImageTransparency = 0
  717. techc.Size = UDim2.new(0,900,0,900)
  718. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  719. techc.ImageColor3 = Color3.new(1,0,0)
  720. techc.Image = "rbxassetid://2273224484"
  721. local circl = imgl2:Clone()
  722. circl.Parent = fullscreenz
  723. circl.ImageTransparency = 0
  724. circl.Size = UDim2.new(0,550,0,550)
  725. circl.Position = UDim2.new(0.75,25,0.55,25)
  726. circl.ImageColor3 = Color3.new(0,0,0)
  727. circl.Image = "rbxassetid://2312119891"
  728. local circl2 = imgl2:Clone()
  729. circl2.Parent = fullscreenz
  730. circl2.ImageTransparency = 0
  731. circl2.Size = UDim2.new(0,700,0,700)
  732. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  733. circl2.ImageColor3 = Color3.new(1,0,0)
  734. circl2.Image = "rbxassetid://2312119891"
  735. local imgl2b = imgl2:Clone()
  736. imgl2b.Parent = fullscreenz
  737. imgl2b.ImageTransparency = 0
  738. imgl2b.Size = UDim2.new(0,800,0,800)
  739. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  740. imgl2b.ImageColor3 = Color3.new(0,0,0)
  741. local ned = Instance.new("TextLabel",fullscreenz)
  742. ned.ZIndex = 2
  743. ned.Font = "Arcade"
  744. ned.BackgroundTransparency = 1
  745. ned.BorderSizePixel = 0.65
  746. ned.Size = UDim2.new(0.3,0,0.2,0)
  747. ned.Position = UDim2.new(0.7,0,0.8,0)
  748. ned.TextColor3 = BrickColor.new("Really red").Color
  749. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  750. ned.TextScaled = true
  751. ned.TextStrokeTransparency = 0
  752. ned.Text = "Hopeless Guest"
  753. ned.TextSize = 24
  754. ned.Rotation = 1
  755. ned.TextXAlignment = "Right"
  756. ned.TextYAlignment = "Bottom"
  757.  
  758. local extrawingmod1 = Instance.new("Model",char)
  759. local extrawingmod2 = Instance.new("Model",char)
  760.  
  761. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  762. local p = Instance.new("Part")
  763. p.TopSurface = 0
  764. p.BottomSurface = 0
  765. p.Parent = parent
  766. p.Size = Vector3.new(0.1,0.1,0.1)
  767. p.Transparency = transparency
  768. p.Reflectance = reflectance
  769. p.CanCollide = false
  770. p.Locked = true
  771. p.BrickColor = brickcolor
  772. p.Material = material
  773. return p
  774. end
  775.  
  776. function CreateMesh(parent,meshtype,x1,y1,z1)
  777. local mesh = Instance.new("SpecialMesh",parent)
  778. mesh.MeshType = meshtype
  779. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  780. return mesh
  781. end
  782.  
  783. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  784. local mesh = Instance.new("SpecialMesh",parent)
  785. mesh.MeshType = "FileMesh"
  786. mesh.MeshId = meshid
  787. mesh.Scale = Vector3.new(x1,y1,z1)
  788. return mesh
  789. end
  790.  
  791.  
  792. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  793. local mesh = Instance.new("SpecialMesh",parent)
  794. mesh.MeshType = "FileMesh"
  795. mesh.MeshId = meshid
  796. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  797. mesh.Scale = Vector3.new(x1,y1,z1)
  798. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  799. return mesh
  800. end
  801.  
  802. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  803. local weld = Instance.new("Weld")
  804. weld.Parent = parent
  805. weld.Part0 = part0
  806. weld.Part1 = part1
  807. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  808. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  809. return weld
  810. end
  811.  
  812.  
  813. --------------
  814. --------------
  815. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  816. 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))
  817. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  818. 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))
  819.  
  820. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0,0,0)
  822. 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))
  823. local valuaring = 10
  824. for i = 0, 49 do
  825. valuaring = valuaring + 10
  826. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  827. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  828. 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))
  829. end
  830.  
  831. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  832. CreateMesh(handle,"Brick",0,0,0)
  833. 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))
  834. local valuaring = 10
  835. for i = 0, 49 do
  836. valuaring = valuaring + 10
  837. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  838. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  839. 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))
  840. end
  841.  
  842.  
  843. local handle = CreateParta(m,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  845. 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))
  846.  
  847. --- Left wing.
  848.  
  849. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  850. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  851. 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))
  852.  
  853. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. 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))
  856. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. 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))
  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,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))
  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,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))
  869.  
  870. tl1 = Instance.new('Trail',wed)
  871. tl1.Attachment0 = A1
  872. tl1.Attachment1 = A0
  873. tl1.Texture = "rbxassetid://2108945559"
  874. tl1.LightEmission = 1
  875. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  876. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  877. tl1.Lifetime = 0.6
  878.  
  879.  
  880. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  881. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  882. 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))
  883.  
  884. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  885. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  886. 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))
  887. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  889. 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))
  890. A0 = Instance.new('Attachment',wed)
  891. A0.Position = vt(0,0.25,0.25)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,3)
  894. 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))
  895. A1 = Instance.new('Attachment',wed)
  896. A1.Position = vt(0,-0.25,-2)
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,3,0.5)
  899. 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))
  900.  
  901. tl2 = Instance.new('Trail',wed)
  902. tl2.Attachment0 = A1
  903. tl2.Attachment1 = A0
  904. tl2.Texture = "rbxassetid://2108945559"
  905. tl2.LightEmission = 1
  906. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  907. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  908. tl2.Lifetime = 0.6
  909.  
  910. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  911. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  912. 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))
  913.  
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. 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))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. 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))
  920. A0 = Instance.new('Attachment',wed)
  921. A0.Position = vt(0,0.25,0.25)
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,3)
  924. 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))
  925. A1 = Instance.new('Attachment',wed)
  926. A1.Position = vt(0,-0.25,-2)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,3,0.5)
  929. 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))
  930.  
  931. tl3 = Instance.new('Trail',wed)
  932. tl3.Attachment0 = A1
  933. tl3.Attachment1 = A0
  934. tl3.Texture = "rbxassetid://2108945559"
  935. tl3.LightEmission = 1
  936. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  937. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  938. tl3.Lifetime = 0.6
  939.  
  940. tl1.Enabled = false
  941. tl2.Enabled = false
  942. tl3.Enabled = false
  943. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. 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))
  946.  
  947. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. 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))
  953. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,3)
  955. 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))
  956. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,3,0.5)
  958. 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))
  959.  
  960. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  961. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  962. 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))
  963.  
  964. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  966. 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))
  967. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  969. 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))
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,3)
  972. 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))
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,3,0.5)
  975. 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))
  976.  
  977. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  978. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  979. 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))
  980.  
  981. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  983. 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))
  984. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  986. 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))
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,3)
  989. 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))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,3,0.5)
  992. 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))
  993.  
  994. -- Right wing.
  995.  
  996. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  997. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  998. 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))
  999.  
  1000. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1002. 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))
  1003. A0 = Instance.new('Attachment',wed)
  1004. A0.Position = vt(0,0.25,0.25)
  1005. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1007. 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))
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1010. 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))
  1011. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1013. 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))
  1014. A1 = Instance.new('Attachment',wed)
  1015. A1.Position = vt(0,2,0.25)
  1016.  
  1017. tr1 = Instance.new('Trail',wed)
  1018. tr1.Attachment0 = A1
  1019. tr1.Attachment1 = A0
  1020. tr1.Texture = "rbxassetid://2108945559"
  1021. tr1.LightEmission = 1
  1022. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1023. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1024. tr1.Lifetime = 0.6
  1025.  
  1026. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. 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))
  1029.  
  1030. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. 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))
  1033. A0 = Instance.new('Attachment',wed)
  1034. A0.Position = vt(0,0.25,0.25)
  1035. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1037. 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))
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1040. 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))
  1041. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1043. 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))
  1044. A1 = Instance.new('Attachment',wed)
  1045. A1.Position = vt(0,2,0.25)
  1046.  
  1047. tr2 = Instance.new('Trail',wed)
  1048. tr2.Attachment0 = A1
  1049. tr2.Attachment1 = A0
  1050. tr2.Texture = "rbxassetid://2108945559"
  1051. tr2.LightEmission = 1
  1052. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1053. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1054. tr2.Lifetime = 0.6
  1055.  
  1056. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. 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))
  1059.  
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. 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))
  1063. A0 = Instance.new('Attachment',wed)
  1064. A0.Position = vt(0,0.25,0.25)
  1065. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1067. 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))
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1070. 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))
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1073. 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))
  1074. A1 = Instance.new('Attachment',wed)
  1075. A1.Position = vt(0,2,0.25)
  1076.  
  1077. tr3 = Instance.new('Trail',wed)
  1078. tr3.Attachment0 = A1
  1079. tr3.Attachment1 = A0
  1080. tr3.Texture = "rbxassetid://2108945559"
  1081. tr3.LightEmission = 1
  1082. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1083. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1084. tr3.Lifetime = 0.6
  1085.  
  1086.  
  1087. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1088. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1089. 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))
  1090.  
  1091. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. 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))
  1094. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1096. 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))
  1097. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1099. 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))
  1100. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1102. 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))
  1103.  
  1104. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1105. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1106. 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))
  1107.  
  1108. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1110. 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))
  1111. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1112. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1113. 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))
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1116. 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))
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1119. 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))
  1120.  
  1121. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1122. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1123. 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))
  1124.  
  1125. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1126. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1127. 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))
  1128. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1129. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1130. 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))
  1131. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1133. 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))
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1136. 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))
  1137.  
  1138. --HERES THE RING
  1139.  
  1140.  
  1141. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1142. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1143. 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))
  1144. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1145. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1146. 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))
  1147. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1148. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1149. 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))
  1150.  
  1151.  
  1152. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1154. 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))
  1155.  
  1156. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1157. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1158. 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))
  1159.  
  1160.  
  1161.  
  1162. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1163. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1164. 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))
  1165.  
  1166. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1167. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1168. 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))
  1169.  
  1170. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1171. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1172. 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))
  1173.  
  1174. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1175. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1176. 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))
  1177. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1178. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1179. 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))]]--
  1180.  
  1181. --- second ring
  1182.  
  1183.  
  1184. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1185. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1186. 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))
  1187.  
  1188. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1189. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1190. 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))
  1191.  
  1192.  
  1193.  
  1194. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1195. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1196. 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))
  1197.  
  1198. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1199. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1200. 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))
  1201.  
  1202. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1203. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1204. 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))
  1205.  
  1206. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1207. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1208. 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))
  1209. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1210. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1211. 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))
  1212.  
  1213.  
  1214.  
  1215. for i, v in pairs(m:GetChildren()) do
  1216. if v:IsA("Part") then
  1217. v.BrickColor = BrickColor.new("Really black")
  1218. v.Material = "Glass"
  1219. end
  1220. end
  1221. for i, v in pairs(m2:GetChildren()) do
  1222. if v:IsA("Part") then
  1223. v.BrickColor = BrickColor.new("Crimson")
  1224. v.Material = "Granite"
  1225. end
  1226. end
  1227. for i, v in pairs(m3:GetChildren()) do
  1228. if v:IsA("Part") then
  1229. v.BrickColor = BrickColor.new("Really red")
  1230. v.Material = "Neon"
  1231. end
  1232. end
  1233. for i, v in pairs(mw2:GetChildren()) do
  1234. if v:IsA("Part") then
  1235. v.BrickColor = BrickColor.new("Really red")
  1236. v.Material = "Neon"
  1237. end
  1238. end
  1239. for i, v in pairs(mw1:GetChildren()) do
  1240. if v:IsA("Part") then
  1241. v.Transparency = 1
  1242. v.BrickColor = BrickColor.new("Really red")
  1243. v.Material = "Neon"
  1244. end
  1245. end
  1246. for i, v in pairs(extrawingmod1:GetChildren()) do
  1247. if v:IsA("Part") then
  1248. v.Transparency = 1
  1249. v.BrickColor = BrickColor.new("White")
  1250. v.Material = "Neon"
  1251. end
  1252. end
  1253. for i, v in pairs(extrawingmod2:GetChildren()) do
  1254. if v:IsA("Part") then
  1255. v.Transparency = 1
  1256. v.BrickColor = BrickColor.new("White")
  1257. v.Material = "Neon"
  1258. end
  1259. end
  1260. local MAINRUINCOLOR = BrickColor.new("Really red")
  1261. ------
  1262.  
  1263.  
  1264. function RemoveOutlines(part)
  1265. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1266. end
  1267. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1268. local Part = Create("Part")({
  1269. Parent = Parent,
  1270. Reflectance = Reflectance,
  1271. Transparency = Transparency,
  1272. CanCollide = false,
  1273. Locked = true,
  1274. BrickColor = BrickColor.new(tostring(BColor)),
  1275. Name = Name,
  1276. Size = Size,
  1277. Material = Material
  1278. })
  1279. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1280. RemoveOutlines(Part)
  1281. return Part
  1282. end
  1283. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1284. local Msh = Create(Mesh)({
  1285. Parent = Part,
  1286. Offset = OffSet,
  1287. Scale = Scale
  1288. })
  1289. if Mesh == "SpecialMesh" then
  1290. Msh.MeshType = MeshType
  1291. Msh.MeshId = MeshId
  1292. end
  1293. return Msh
  1294. end
  1295. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1296. local Weld = Create("Weld")({
  1297. Parent = Parent,
  1298. Part0 = Part0,
  1299. Part1 = Part1,
  1300. C0 = C0,
  1301. C1 = C1
  1302. })
  1303. return Weld
  1304. end
  1305.  
  1306. Player = plr
  1307. Character=Player.Character
  1308. PlayerGui=Player.PlayerGui
  1309. Backpack=Player.Backpack
  1310. Torso=Character.Torso
  1311. Head=Character.Head
  1312. Humanoid=Character.Humanoid
  1313. m=Instance.new('Model',Character)
  1314. LeftArm=Character["Left Arm"]
  1315. LeftLeg=Character["Left Leg"]
  1316. RightArm=Character["Right Arm"]
  1317. RightLeg=Character["Right Leg"]
  1318. LS=Torso["Left Shoulder"]
  1319. LH=Torso["Left Hip"]
  1320. RS=Torso["Right Shoulder"]
  1321. RH=Torso["Right Hip"]
  1322. Face = Head.face
  1323. Neck=Torso.Neck
  1324. it=Instance.new
  1325. attacktype=1
  1326. vt=Vector3.new
  1327. cf=CFrame.new
  1328. euler=CFrame.fromEulerAnglesXYZ
  1329. angles=CFrame.Angles
  1330. cloaked=false
  1331. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1332. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1333. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1334. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1335. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1336. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1337. RootPart=Character.HumanoidRootPart
  1338. RootJoint=RootPart.RootJoint
  1339. RootCF=euler(-1.57,0,3.14)
  1340. attack = false
  1341. attackdebounce = false
  1342. deb=false
  1343. equipped=true
  1344. hand=false
  1345. combo=0
  1346. mana=0
  1347. trispeed=.2
  1348. attackmode='none'
  1349. local idle=0
  1350. local Anim="Idle"
  1351. local Effects={}
  1352. local gun=false
  1353. local shoot=false
  1354. local sine = 0
  1355. local change = 1
  1356.  
  1357. function RecolorTextAndRename(name,col1,col2,font)
  1358. modet.TextStrokeColor3 = col2
  1359. modet.TextColor3 = col1
  1360. modet.Font = font
  1361. modet.Text = name
  1362. techc.ImageColor3 = col2
  1363. circl.ImageColor3 = col2
  1364. circl2.ImageColor3 = col1
  1365. imgl2.ImageColor3 = col1
  1366. imgl2b.ImageColor3 = col2
  1367. ned.Text = name
  1368. ned.TextColor3 = col1
  1369. ned.TextStrokeColor3 = col2
  1370. end
  1371. --save shoulders
  1372. RSH, LSH=nil, nil
  1373. --welds
  1374. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1375. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1376. LH=Torso["Left Hip"]
  1377. RH=Torso["Right Hip"]
  1378. TorsoColor=Torso.BrickColor
  1379. function NoOutline(Part)
  1380. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1381. end
  1382. ch=Character
  1383. RSH=ch.Torso["Right Shoulder"]
  1384. LSH=ch.Torso["Left Shoulder"]
  1385. --
  1386. RSH.Parent=nil
  1387. LSH.Parent=nil
  1388. --
  1389. RW.Name="Right Shoulder"
  1390. RW.Part0=ch.Torso
  1391. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1392. RW.C1=cf(0, 0.5, 0)
  1393. RW.Part1=ch["Right Arm"]
  1394. RW.Parent=ch.Torso
  1395. --
  1396. LW.Name="Left Shoulder"
  1397. LW.Part0=ch.Torso
  1398. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1399. LW.C1=cf(0, 0.5, 0)
  1400. LW.Part1=ch["Left Arm"]
  1401. LW.Parent=ch.Torso
  1402.  
  1403. local Stats=Instance.new("BoolValue")
  1404. Stats.Name="Stats"
  1405. Stats.Parent=Character
  1406. local Atk=Instance.new("NumberValue")
  1407. Atk.Name="Damage"
  1408. Atk.Parent=Stats
  1409. Atk.Value=1
  1410. local Def=Instance.new("NumberValue")
  1411. Def.Name="Defense"
  1412. Def.Parent=Stats
  1413. Def.Value=1
  1414. local Speed=Instance.new("NumberValue")
  1415. Speed.Name="Speed"
  1416. Speed.Parent=Stats
  1417. Speed.Value=1
  1418. local Mvmt=Instance.new("NumberValue")
  1419. Mvmt.Name="Movement"
  1420. Mvmt.Parent=Stats
  1421. Mvmt.Value=1
  1422.  
  1423. local donum=0
  1424. local ast = {744586075,385254610}
  1425.  
  1426. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1427. local fp=it("Part")
  1428. fp.formFactor=formfactor
  1429. fp.Parent=parent
  1430. fp.Reflectance=reflectance
  1431. fp.Transparency=transparency
  1432. fp.CanCollide=false
  1433. fp.Locked=true
  1434. fp.BrickColor=brickcolor
  1435. fp.Name=name
  1436. fp.Size=size
  1437. fp.Position=Torso.Position
  1438. NoOutline(fp)
  1439. fp.Material="SmoothPlastic"
  1440. fp:BreakJoints()
  1441. return fp
  1442. end
  1443.  
  1444. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1445. local mesh=it(Mesh)
  1446. mesh.Parent=part
  1447. if Mesh=="SpecialMesh" then
  1448. mesh.MeshType=meshtype
  1449. if meshid~="nil" then
  1450. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1451. end
  1452. end
  1453. mesh.Offset=offset
  1454. mesh.Scale=scale
  1455. return mesh
  1456. end
  1457.  
  1458. function weld(parent,part0,part1,c0)
  1459. local weld=it("Weld")
  1460. weld.Parent=parent
  1461. weld.Part0=part0
  1462. weld.Part1=part1
  1463. weld.C0=c0
  1464. return weld
  1465. end
  1466.  
  1467. local Color1=Torso.BrickColor
  1468.  
  1469. local bodvel=Instance.new("BodyVelocity")
  1470. local bg=Instance.new("BodyGyro")
  1471.  
  1472. --------- SazEreno's Artificial HB --------------
  1473. ArtificialHB = Instance.new("BindableEvent", script)
  1474. ArtificialHB.Name = "ArtificialHB"
  1475.  
  1476. script:WaitForChild("ArtificialHB")
  1477. Frame_Speed = 1 / 60
  1478. frame = Frame_Speed
  1479. tf = 0
  1480. allowframeloss = false
  1481. tossremainder = false
  1482. lastframe = tick()
  1483. script.ArtificialHB:Fire()
  1484.  
  1485. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1486. tf = tf + s
  1487. if tf >= frame then
  1488. if allowframeloss then
  1489. script.ArtificialHB:Fire()
  1490. lastframe = tick()
  1491. else
  1492. for i = 1, math.floor(tf / frame) do
  1493. script.ArtificialHB:Fire()
  1494. end
  1495. lastframe = tick()
  1496. end
  1497. if tossremainder then
  1498. tf = 0
  1499. else
  1500. tf = tf - frame * math.floor(tf / frame)
  1501. end
  1502. end
  1503. end)
  1504.  
  1505. ------------------
  1506. function swait(num)
  1507. if num == 0 or num == nil then
  1508. ArtificialHB.Event:wait()
  1509. else
  1510. for i = 1, num do
  1511. ArtificialHB.Event:wait()
  1512. end
  1513. end
  1514. end
  1515. -------- RAINBOW LEAVE IT TO ME
  1516. local r = 255
  1517. local g = 0
  1518. local b = 0
  1519. coroutine.resume(coroutine.create(function()
  1520. while wait() do
  1521. for i = 0, 254/5 do
  1522. swait()
  1523. g = g + 5
  1524. end
  1525. for i = 0, 254/5 do
  1526. swait()
  1527. r = r - 5
  1528. end
  1529. for i = 0, 254/5 do
  1530. swait()
  1531. b = b + 5
  1532. end
  1533. for i = 0, 254/5 do
  1534. swait()
  1535. g = g - 5
  1536. end
  1537. for i = 0, 254/5 do
  1538. swait()
  1539. r = r + 5
  1540. end
  1541. for i = 0, 254/5 do
  1542. swait()
  1543. b = b - 5
  1544. end
  1545. end
  1546. end))
  1547.  
  1548.  
  1549. so = function(id,par,vol,pit)
  1550. coroutine.resume(coroutine.create(function()
  1551. local sou = Instance.new("Sound",par or workspace)
  1552. sou.Volume=vol
  1553. sou.Pitch=pit or 1
  1554. sou.SoundId=id
  1555. swait()
  1556. sou:play()
  1557. game:GetService("Debris"):AddItem(sou,6)
  1558. end))
  1559. end
  1560.  
  1561. function clerp(a,b,t)
  1562. local qa = {QuaternionFromCFrame(a)}
  1563. local qb = {QuaternionFromCFrame(b)}
  1564. local ax, ay, az = a.x, a.y, a.z
  1565. local bx, by, bz = b.x, b.y, b.z
  1566. local _t = 1-t
  1567. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1568. end
  1569.  
  1570. function QuaternionFromCFrame(cf)
  1571. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1572. local trace = m00 + m11 + m22
  1573. if trace > 0 then
  1574. local s = math.sqrt(1 + trace)
  1575. local recip = 0.5/s
  1576. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1577. else
  1578. local i = 0
  1579. if m11 > m00 then
  1580. i = 1
  1581. end
  1582. if m22 > (i == 0 and m00 or m11) then
  1583. i = 2
  1584. end
  1585. if i == 0 then
  1586. local s = math.sqrt(m00-m11-m22+1)
  1587. local recip = 0.5/s
  1588. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1589. elseif i == 1 then
  1590. local s = math.sqrt(m11-m22-m00+1)
  1591. local recip = 0.5/s
  1592. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1593. elseif i == 2 then
  1594. local s = math.sqrt(m22-m00-m11+1)
  1595. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1596. end
  1597. end
  1598. end
  1599.  
  1600. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1601. local xs, ys, zs = x + x, y + y, z + z
  1602. local wx, wy, wz = w*xs, w*ys, w*zs
  1603. local xx = x*xs
  1604. local xy = x*ys
  1605. local xz = x*zs
  1606. local yy = y*ys
  1607. local yz = y*zs
  1608. local zz = z*zs
  1609. 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))
  1610. end
  1611.  
  1612. function QuaternionSlerp(a, b, t)
  1613. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1614. local startInterp, finishInterp;
  1615. if cosTheta >= 0.0001 then
  1616. if (1 - cosTheta) > 0.0001 then
  1617. local theta = math.acos(cosTheta)
  1618. local invSinTheta = 1/math.sin(theta)
  1619. startInterp = math.sin((1-t)*theta)*invSinTheta
  1620. finishInterp = math.sin(t*theta)*invSinTheta
  1621. else
  1622. startInterp = 1-t
  1623. finishInterp = t
  1624. end
  1625. else
  1626. if (1+cosTheta) > 0.0001 then
  1627. local theta = math.acos(-cosTheta)
  1628. local invSinTheta = 1/math.sin(theta)
  1629. startInterp = math.sin((t-1)*theta)*invSinTheta
  1630. finishInterp = math.sin(t*theta)*invSinTheta
  1631. else
  1632. startInterp = t-1
  1633. finishInterp = t
  1634. end
  1635. end
  1636. 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
  1637. end
  1638.  
  1639. local function CFrameFromTopBack(at, top, back)
  1640. local right = top:Cross(back)
  1641. return CFrame.new(at.x, at.y, at.z,
  1642. right.x, top.x, back.x,
  1643. right.y, top.y, back.y,
  1644. right.z, top.z, back.z)
  1645. end
  1646.  
  1647. function Triangle(a, b, c)
  1648. local edg1 = (c-a):Dot((b-a).unit)
  1649. local edg2 = (a-b):Dot((c-b).unit)
  1650. local edg3 = (b-c):Dot((a-c).unit)
  1651. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1652. a, b, c = a, b, c
  1653. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1654. a, b, c = b, c, a
  1655. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1656. a, b, c = c, a, b
  1657. else
  1658. assert(false, "unreachable")
  1659. end
  1660.  
  1661. local len1 = (c-a):Dot((b-a).unit)
  1662. local len2 = (b-a).magnitude - len1
  1663. local width = (a + (b-a).unit*len1 - c).magnitude
  1664.  
  1665. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1666.  
  1667. local list = {}
  1668.  
  1669. if len1 > 0.01 then
  1670. local w1 = Instance.new('WedgePart', m)
  1671. game:GetService("Debris"):AddItem(w1,5)
  1672. w1.Material = "SmoothPlastic"
  1673. w1.FormFactor = 'Custom'
  1674. w1.BrickColor = BrickColor.new("Really red")
  1675. w1.Transparency = 0
  1676. w1.Reflectance = 0
  1677. w1.Material = "SmoothPlastic"
  1678. w1.CanCollide = false
  1679. local l1 = Instance.new("PointLight",w1)
  1680. l1.Color = Color3.new(170,0,0)
  1681. NoOutline(w1)
  1682. local sz = Vector3.new(0.2, width, len1)
  1683. w1.Size = sz
  1684. local sp = Instance.new("SpecialMesh",w1)
  1685. sp.MeshType = "Wedge"
  1686. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1687. w1:BreakJoints()
  1688. w1.Anchored = true
  1689. w1.Parent = workspace
  1690. w1.Transparency = 0.7
  1691. table.insert(Effects,{w1,"Disappear",.01})
  1692. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1693. table.insert(list,w1)
  1694. end
  1695.  
  1696. if len2 > 0.01 then
  1697. local w2 = Instance.new('WedgePart', m)
  1698. game:GetService("Debris"):AddItem(w2,5)
  1699. w2.Material = "SmoothPlastic"
  1700. w2.FormFactor = 'Custom'
  1701. w2.BrickColor = BrickColor.new("Really red")
  1702. w2.Transparency = 0
  1703. w2.Reflectance = 0
  1704. w2.Material = "SmoothPlastic"
  1705. w2.CanCollide = false
  1706. local l2 = Instance.new("PointLight",w2)
  1707. l2.Color = Color3.new(170,0,0)
  1708. NoOutline(w2)
  1709. local sz = Vector3.new(0.2, width, len2)
  1710. w2.Size = sz
  1711. local sp = Instance.new("SpecialMesh",w2)
  1712. sp.MeshType = "Wedge"
  1713. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1714. w2:BreakJoints()
  1715. w2.Anchored = true
  1716. w2.Parent = workspace
  1717. w2.Transparency = 0.7
  1718. table.insert(Effects,{w2,"Disappear",.01})
  1719. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1720. table.insert(list,w2)
  1721. end
  1722. return unpack(list)
  1723. end
  1724.  
  1725.  
  1726. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1727. if hit.Parent == nil then
  1728. return
  1729. end
  1730. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1731. for _, v in pairs(hit.Parent:children()) do
  1732. if v:IsA("Humanoid") then
  1733. h = v
  1734. end
  1735. end
  1736. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1737. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1738. return
  1739. end
  1740. local c = Create("ObjectValue")({
  1741. Name = "creator",
  1742. Value = game:GetService("Players").yjw0592,
  1743. Parent = h
  1744. })
  1745. game:GetService("Debris"):AddItem(c, 0.5)
  1746. if HitSound ~= nil and HitPitch ~= nil then
  1747. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1748. end
  1749. local Damage = math.random(minim, maxim)
  1750. local blocked = false
  1751. local block = hit.Parent:findFirstChild("Block")
  1752. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1753. blocked = true
  1754. block.Value = block.Value - 1
  1755. print(block.Value)
  1756. end
  1757. if blocked == false then
  1758. HitHealth = h.Health
  1759. h.MaxHealth = 100
  1760. h.Health = h.Health - Damage
  1761. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1762. print("gained kill")
  1763. dmg(h.Parent)
  1764. end
  1765. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1766. else
  1767. h.Health = h.Health - Damage / 2
  1768. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1769. end
  1770. if Type == "Knockdown" then
  1771. local hum = hit.Parent.Humanoid
  1772. hum.PlatformStand = true
  1773. coroutine.resume(coroutine.create(function(HHumanoid)
  1774. swait(1)
  1775. HHumanoid.PlatformStand = false
  1776. end), hum)
  1777. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1778. local bodvol = Create("BodyVelocity")({
  1779. velocity = angle * knockback,
  1780. P = 5000,
  1781. maxForce = Vector3.new(8000, 8000, 8000),
  1782. Parent = hit
  1783. })
  1784. local rl = Create("BodyAngularVelocity")({
  1785. P = 3000,
  1786. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1787. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1788. Parent = hit
  1789. })
  1790. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1791. game:GetService("Debris"):AddItem(rl, 0.5)
  1792. elseif Type == "Normal" then
  1793. local vp = Create("BodyVelocity")({
  1794. P = 500,
  1795. maxForce = Vector3.new(math.huge, 0, math.huge),
  1796. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1797. })
  1798. if knockback > 0 then
  1799. vp.Parent = hit.Parent.Head
  1800. end
  1801. game:GetService("Debris"):AddItem(vp, 0.5)
  1802. elseif Type == "Up" then
  1803. local bodyVelocity = Create("BodyVelocity")({
  1804. velocity = Vector3.new(0, 20, 0),
  1805. P = 5000,
  1806. maxForce = Vector3.new(8000, 8000, 8000),
  1807. Parent = hit
  1808. })
  1809. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1810. local bodyVelocity = Create("BodyVelocity")({
  1811. velocity = Vector3.new(0, 20, 0),
  1812. P = 5000,
  1813. maxForce = Vector3.new(8000, 8000, 8000),
  1814. Parent = hit
  1815. })
  1816. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1817. elseif Type == "Leech" then
  1818. local hum = hit.Parent.Humanoid
  1819. if hum ~= nil then
  1820. for i = 0, 2 do
  1821. 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)
  1822. end
  1823. Humanoid.Health = Humanoid.Health + 10
  1824. end
  1825. elseif Type == "UpKnock" then
  1826. local hum = hit.Parent.Humanoid
  1827. hum.PlatformStand = true
  1828. if hum ~= nil then
  1829. hitr = true
  1830. end
  1831. coroutine.resume(coroutine.create(function(HHumanoid)
  1832. swait(5)
  1833. HHumanoid.PlatformStand = false
  1834. hitr = false
  1835. end), hum)
  1836. local bodyVelocity = Create("BodyVelocity")({
  1837. velocity = Vector3.new(0, 20, 0),
  1838. P = 5000,
  1839. maxForce = Vector3.new(8000, 8000, 8000),
  1840. Parent = hit
  1841. })
  1842. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1843. local bodyVelocity = Create("BodyVelocity")({
  1844. velocity = Vector3.new(0, 20, 0),
  1845. P = 5000,
  1846. maxForce = Vector3.new(8000, 8000, 8000),
  1847. Parent = hit
  1848. })
  1849. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1850. elseif Type == "Snare" then
  1851. local bp = Create("BodyPosition")({
  1852. P = 2000,
  1853. D = 100,
  1854. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1855. position = hit.Parent.Torso.Position,
  1856. Parent = hit.Parent.Torso
  1857. })
  1858. game:GetService("Debris"):AddItem(bp, 1)
  1859. elseif Type == "Slashnare" then
  1860. 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)
  1861. for i = 1, math.random(4, 5) do
  1862. 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)
  1863. end
  1864. local bp = Create("BodyPosition")({
  1865. P = 2000,
  1866. D = 100,
  1867. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1868. position = hit.Parent.Torso.Position,
  1869. Parent = hit.Parent.Torso
  1870. })
  1871. game:GetService("Debris"):AddItem(bp, 1)
  1872. elseif Type == "Spike" then
  1873. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1874. local bp = Create("BodyPosition")({
  1875. P = 2000,
  1876. D = 100,
  1877. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1878. position = hit.Parent.Torso.Position,
  1879. Parent = hit.Parent.Torso
  1880. })
  1881. game:GetService("Debris"):AddItem(bp, 1)
  1882. elseif Type == "Freeze" then
  1883. local BodPos = Create("BodyPosition")({
  1884. P = 50000,
  1885. D = 1000,
  1886. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1887. position = hit.Parent.Torso.Position,
  1888. Parent = hit.Parent.Torso
  1889. })
  1890. local BodGy = Create("BodyGyro")({
  1891. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1892. P = 20000,
  1893. Parent = hit.Parent.Torso,
  1894. cframe = hit.Parent.Torso.CFrame
  1895. })
  1896. hit.Parent.Torso.Anchored = true
  1897. coroutine.resume(coroutine.create(function(Part)
  1898. swait(1.5)
  1899. Part.Anchored = false
  1900. end), hit.Parent.Torso)
  1901. game:GetService("Debris"):AddItem(BodPos, 3)
  1902. game:GetService("Debris"):AddItem(BodGy, 3)
  1903. end
  1904. local debounce = Create("BoolValue")({
  1905. Name = "DebounceHit",
  1906. Parent = hit.Parent,
  1907. Value = true
  1908. })
  1909. game:GetService("Debris"):AddItem(debounce, Delay)
  1910. c = Instance.new("ObjectValue")
  1911. c.Name = "creator"
  1912. c.Value = Player
  1913. c.Parent = h
  1914. game:GetService("Debris"):AddItem(c, 0.5)
  1915. end
  1916. end
  1917. function ShowDamage(Pos, Text, Time, Color)
  1918. local Rate = 0.03333333333333333
  1919. local Pos = Pos or Vector3.new(0, 0, 0)
  1920. local Text = Text or ""
  1921. local Time = Time or 2
  1922. local Color = Color or Color3.new(1, 0, 1)
  1923. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1924. EffectPart.Anchored = true
  1925. local BillboardGui = Create("BillboardGui")({
  1926. Size = UDim2.new(3, 0, 3, 0),
  1927. Adornee = EffectPart,
  1928. Parent = EffectPart
  1929. })
  1930. local TextLabel = Create("TextLabel")({
  1931. BackgroundTransparency = 1,
  1932. Size = UDim2.new(1, 0, 1, 0),
  1933. Text = Text,
  1934. TextColor3 = Color,
  1935. TextScaled = true,
  1936. Font = Enum.Font.ArialBold,
  1937. Parent = BillboardGui
  1938. })
  1939. game.Debris:AddItem(EffectPart, Time + 0.1)
  1940. EffectPart.Parent = game:GetService("Workspace")
  1941. delay(0, function()
  1942. local Frames = Time / Rate
  1943. for Frame = 1, Frames do
  1944. wait(Rate)
  1945. local Percent = Frame / Frames
  1946. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1947. TextLabel.TextTransparency = Percent
  1948. end
  1949. if EffectPart and EffectPart.Parent then
  1950. EffectPart:Destroy()
  1951. end
  1952. end)
  1953. end
  1954. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1955. for _, c in pairs(workspace:children()) do
  1956. local hum = c:findFirstChildOfClass("Humanoid")
  1957. if hum ~= nil then
  1958. local head = c:findFirstChild("Head")
  1959. if head ~= nil then
  1960. local targ = head.Position - Part.Position
  1961. local mag = targ.magnitude
  1962. if magni >= mag and c.Name ~= Player.Name then
  1963. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1964. end
  1965. end
  1966. end
  1967. end
  1968. end
  1969.  
  1970. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1971. for _, c in pairs(workspace:children()) do
  1972. local hum = c:findFirstChild("Humanoid")
  1973. if hum ~= nil then
  1974. local head = c:findFirstChild("Torso")
  1975. if head ~= nil then
  1976. local targ = head.Position - Part.Position
  1977. local mag = targ.magnitude
  1978. if magni >= mag and c.Name ~= Player.Name then
  1979. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1980. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1981. end
  1982. end
  1983. end
  1984. end
  1985. end
  1986.  
  1987. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1988. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1989. end
  1990.  
  1991. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1992. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1993. prt.Anchored=true
  1994. prt.CFrame=cframe
  1995. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1996. --http://www.roblox.com/asset/?id=4770560
  1997. game:GetService("Debris"):AddItem(prt,2)
  1998. CF=prt.CFrame
  1999. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2000. for i=0,1,0.2 do
  2001. wait()
  2002. Part.CFrame=CF*cf(0,0,-0.4)
  2003. end
  2004. for i=0,1,delay do
  2005. wait()
  2006. --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)
  2007. Mesh.Scale=Mesh.Scale
  2008. end
  2009. for i=0,1,0.1 do
  2010. wait()
  2011. Part.Transparency=i
  2012. end
  2013. Part.Parent=nil
  2014. end),prt,msh,CF)
  2015. end
  2016.  
  2017. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2018. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2019. prt.Anchored=true
  2020. prt.Material = "Neon"
  2021. prt.CFrame=cframe
  2022. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2023. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2024. game:GetService("Debris"):AddItem(prt,5)
  2025. coroutine.resume(coroutine.create(function(Part,Mesh)
  2026. for i=0,1,delay do
  2027. swait()
  2028. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2029. Part.Transparency=i
  2030. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh)
  2034. end
  2035.  
  2036. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=true
  2039. prt.Material = "Neon"
  2040. prt.CFrame=cframe
  2041. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2042. game:GetService("Debris"):AddItem(prt,5)
  2043. coroutine.resume(coroutine.create(function(Part,Mesh)
  2044. local rtype = rottype
  2045. for i=0,1,delay do
  2046. swait()
  2047. if rtype == 1 then
  2048. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2049. elseif rtype == 2 then
  2050. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2051. end
  2052. Part.Transparency=i
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2054. end
  2055. Part.Parent=nil
  2056. end),prt,msh)
  2057. end
  2058.  
  2059. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2060. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt.Anchored=true
  2062. prt.CFrame=cframe
  2063. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2064. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. for i=0,1,delay do
  2068. wait()
  2069. Part.Transparency=i
  2070. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2071. end
  2072. Part.Parent=nil
  2073. end),prt,msh)
  2074. end
  2075.  
  2076. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2077. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2078. prt.Anchored=true
  2079. prt.Material = "Neon"
  2080. prt.CFrame=cframe
  2081. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2082. game:GetService("Debris"):AddItem(prt,5)
  2083. coroutine.resume(coroutine.create(function(Part,Mesh)
  2084. local rtype = rottype
  2085. for i=0,1,delay do
  2086. swait()
  2087. if rtype == 1 then
  2088. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2089. elseif rtype == 2 then
  2090. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2091. end
  2092. Part.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2100. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=true
  2102. prt.Material = "Neon"
  2103. prt.CFrame=cframe
  2104. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2105. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2106. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2107. game:GetService("Debris"):AddItem(prt,5)
  2108. coroutine.resume(coroutine.create(function(Part,Mesh)
  2109. local rtype = rottype
  2110. for i=0,1,delay do
  2111. swait()
  2112. if rtype == 1 then
  2113. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2114. elseif rtype == 2 then
  2115. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2116. end
  2117. dec.Transparency=i
  2118. dec2.Transparency=i
  2119. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2120. end
  2121. Part.Parent=nil
  2122. end),prt,msh)
  2123. end
  2124.  
  2125. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2126. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2127. prt.Anchored=true
  2128. prt.Material = "Neon"
  2129. prt.CFrame=cframe
  2130. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2131. game:GetService("Debris"):AddItem(prt,5)
  2132. coroutine.resume(coroutine.create(function(Part,Mesh)
  2133. local rtype = rottype
  2134. for i=0,1,delay do
  2135. swait()
  2136. if rtype == 1 then
  2137. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2138. elseif rtype == 2 then
  2139. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2140. end
  2141. prt.Transparency=i
  2142. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2143. end
  2144. Part.Parent=nil
  2145. end),prt,msh)
  2146. end
  2147.  
  2148. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2149. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2150. prt.Anchored=true
  2151. prt.Material = "Neon"
  2152. prt.CFrame=cframe
  2153. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2154. game:GetService("Debris"):AddItem(prt,5)
  2155. coroutine.resume(coroutine.create(function(Part,Mesh)
  2156. local rtype = rottype
  2157. for i=0,1,delay do
  2158. swait()
  2159. if rtype == 1 then
  2160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2161. elseif rtype == 2 then
  2162. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2163. end
  2164. prt.Transparency=i
  2165. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2166. end
  2167. Part.Parent=nil
  2168. end),prt,msh)
  2169. end
  2170.  
  2171. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2172. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2173. prt.Anchored=true
  2174. prt.Material = "Neon"
  2175. prt.CFrame=cframe
  2176. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2177. game:GetService("Debris"):AddItem(prt,5)
  2178. coroutine.resume(coroutine.create(function(Part,Mesh)
  2179. local rtype = rottype
  2180. for i=0,1,delay do
  2181. swait()
  2182. if rtype == 1 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2184. elseif rtype == 2 then
  2185. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2186. end
  2187. prt.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh)
  2192. end
  2193.  
  2194. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202. local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. prt.Transparency=i
  2211. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2212. end
  2213. Part.Parent=nil
  2214. end),prt,msh)
  2215. end
  2216.  
  2217. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2218. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2219. prt.Anchored=false
  2220. prt.CFrame=cframe
  2221. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2222. local wld=weld(prt,prt,Parent,cframe)
  2223. game:GetService("Debris"):AddItem(prt,5)
  2224. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2225. for i=0,1,delay do
  2226. wait()
  2227. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2228. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2229. Part.Transparency=i
  2230. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh,wld)
  2234. end
  2235.  
  2236. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2237. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2238. prt.Anchored=false
  2239. prt.CFrame=cframe
  2240. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2241. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2242. game:GetService("Debris"):AddItem(prt,5)
  2243. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2244. for i=0,1,delay do
  2245. wait()
  2246. Weld.C0=euler(i*20,0,0)
  2247. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2248. Part.Transparency=i
  2249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2250. end
  2251. Part.Parent=nil
  2252. end),prt,msh,wld)
  2253. end
  2254.  
  2255. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2256. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2257. prt.Anchored=true
  2258. prt.CFrame=cframe
  2259. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2260. game:GetService("Debris"):AddItem(prt,2)
  2261. coroutine.resume(coroutine.create(function(Part,Mesh)
  2262. for i=0,1,delay do
  2263. wait()
  2264. Part.CFrame=Part.CFrame
  2265. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2266. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2267. prt2.Anchored=true
  2268. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2269. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2270. game:GetService("Debris"):AddItem(prt2,2)
  2271. coroutine.resume(coroutine.create(function(Part,Mesh)
  2272. for i=0,1,0.1 do
  2273. wait()
  2274. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2275. end
  2276. Part.Parent=nil
  2277. end),prt2,msh2)
  2278. end
  2279. for i=0,1,delay*2 do
  2280. wait()
  2281. Part.CFrame=Part.CFrame
  2282. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2283. end
  2284. Part.Parent=nil
  2285. end),prt,msh)
  2286. end
  2287.  
  2288. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2289. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt.Anchored=true
  2291. prt.CFrame=cframe
  2292. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2293. game:GetService("Debris"):AddItem(prt,2)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. for i=0,1,delay do
  2296. wait()
  2297. Part.CFrame=Part.CFrame
  2298. Part.Transparency=i
  2299. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2300. end
  2301. Part.Parent=nil
  2302. end),prt,msh)
  2303. end
  2304.  
  2305. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2306. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2307. prt.Anchored=true
  2308. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2309. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2310. game:GetService("Debris"):AddItem(prt,2)
  2311. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2312. CF=Part.CFrame
  2313. Numbb=0
  2314. randnumb=math.random()/10
  2315. rand1=math.random()/10
  2316. for i=0,1,rand1 do
  2317. wait()
  2318. CF=CF*cf(0,math.random()/2,0)
  2319. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2320. Part.CFrame=CF*euler(Numbb,0,0)
  2321. Part.Transparency=i
  2322. Numbb=Numbb+randnumb
  2323. end
  2324. Part.Parent=nil
  2325. end),prt,CF,Numbb,randnumb)
  2326. end
  2327.  
  2328. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2329. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2330. prt.Anchored=true
  2331. prt.CFrame=cframe
  2332. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2333. game:GetService("Debris"):AddItem(prt,5)
  2334. coroutine.resume(coroutine.create(function(Part,Mesh)
  2335. for i=0,1,delay do
  2336. wait()
  2337. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2338. Part.Transparency=i
  2339. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2340. end
  2341. Part.Parent=nil
  2342. end),prt,msh)
  2343. end
  2344.  
  2345. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2346. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2347. prt.Anchored=true
  2348. prt.CFrame=cframe
  2349. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2350. game:GetService("Debris"):AddItem(prt,2)
  2351. coroutine.resume(coroutine.create(function(Part,Mesh)
  2352. for i=0,1,delay do
  2353. wait()
  2354. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2355. Part.Transparency=i
  2356. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2357. end
  2358. Part.Parent=nil
  2359. end),prt,msh)
  2360. end
  2361.  
  2362. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2363. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2364. prt.Anchored=true
  2365. prt.CFrame=cframe*cf(x,y,z)
  2366. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2367. game:GetService("Debris"):AddItem(prt,5)
  2368. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2369. local num=math.random()
  2370. local num2=math.random(-3,2)+math.random()
  2371. local numm=0
  2372. for i=0,1,delay*2 do
  2373. swait()
  2374. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2375. Part.Transparency=i
  2376. numm=numm+0.01
  2377. end
  2378. Part.Parent=nil
  2379. Mesh.Parent=nil
  2380. end),prt,msh,x,y,z)
  2381. end
  2382.  
  2383. function dmgstart(dmg,what)
  2384. hitcon = what.Touched:connect(function(hit)
  2385. local hum = hit.Parent:FindFirstChild("Humanoid")
  2386. if hum and not hum:IsDescendantOf(Character) then
  2387. hum:TakeDamage(dmg)
  2388. end
  2389. end)
  2390. end
  2391.  
  2392. function dmgstop()
  2393. hitcon:disconnect()
  2394. end
  2395.  
  2396. function Cloak()
  2397. Face.Parent=nil
  2398. cloaked=true
  2399. for _,v in pairs(Torso.Parent:children()) do
  2400. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2401. coroutine.resume(coroutine.create(function()
  2402. for i=0,1,0.2 do
  2403. wait()
  2404. v.Transparency=i
  2405. end
  2406. v.Transparency=1
  2407. end))
  2408. end
  2409. if v.className=="Hat" then
  2410. hatp=v.Handle
  2411. coroutine.resume(coroutine.create(function(derp)
  2412. for i=0,1,0.2 do
  2413. wait()
  2414. derp.Transparency=i
  2415. end
  2416. derp.Transparency=1
  2417. end),hatp)
  2418. end
  2419. end
  2420. for _,v in pairs(m:children()) do
  2421. if v.className=="Part" then
  2422. coroutine.resume(coroutine.create(function()
  2423. for i=0,1,0.2 do
  2424. wait()
  2425. v.Transparency=i
  2426. end
  2427. v.Transparency=1
  2428. end))
  2429. end
  2430. end
  2431. end
  2432.  
  2433. function UnCloak()
  2434. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2435. Face.Parent=Head
  2436. cloaked=false
  2437. for _,v in pairs(Torso.Parent:children()) do
  2438. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2439. coroutine.resume(coroutine.create(function()
  2440. for i=0,1,0.1 do
  2441. wait()
  2442. v.Transparency=v.Transparency-0.1
  2443. end
  2444. v.Transparency=0
  2445. end))
  2446. end
  2447. if v.className=="Hat" then
  2448. hatp=v.Handle
  2449. coroutine.resume(coroutine.create(function(derp)
  2450. for i=0,1,0.1 do
  2451. wait()
  2452. derp.Transparency=derp.Transparency-0.1
  2453. end
  2454. derp.Transparency=0
  2455. end),hatp)
  2456. end
  2457. end
  2458. for _,v in pairs(m:children()) do
  2459. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2460. coroutine.resume(coroutine.create(function()
  2461. for i=0,1,0.1 do
  2462. wait()
  2463. v.Transparency=v.Transparency-0.1
  2464. end
  2465. v.Transparency=0
  2466. end))
  2467. v.Transparency=0
  2468. end
  2469. end
  2470. end
  2471.  
  2472. local origcolor = BrickColor.new("Pastel light blue")
  2473. ---- This section of explosions.
  2474.  
  2475. ----
  2476.  
  2477.  
  2478. function ring(type,pos,scale,value)
  2479. local type = type
  2480. local rng = Instance.new("Part", char)
  2481. rng.Anchored = true
  2482. rng.BrickColor = origcolor
  2483. rng.CanCollide = false
  2484. rng.FormFactor = 3
  2485. rng.Name = "Ring"
  2486. rng.Size = Vector3.new(1, 1, 1)
  2487. rng.Transparency = 0
  2488. rng.TopSurface = 0
  2489. rng.BottomSurface = 0
  2490. rng.CFrame = pos
  2491. local rngm = Instance.new("SpecialMesh", rng)
  2492. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2493. rngm.Scale = scale
  2494. local scaler2 = 1
  2495. if type == "Add" then
  2496. scaler2 = 1*value
  2497. elseif type == "Divide" then
  2498. scaler2 = 1/value
  2499. end
  2500. coroutine.resume(coroutine.create(function()
  2501. for i = 0,10,0.1 do
  2502. swait()
  2503. if type == "Add" then
  2504. scaler2 = scaler2 - 0.01*value
  2505. elseif type == "Divide" then
  2506. scaler2 = scaler2 - 0.01/value
  2507. end
  2508. rng.Transparency = rng.Transparency + 0.01
  2509. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2510. end
  2511. rng:Destroy()
  2512. end))
  2513. end
  2514.  
  2515.  
  2516. function wave(type,pos,scale,value)
  2517. local type = type
  2518. local rng = Instance.new("Part", char)
  2519. rng.Anchored = true
  2520. rng.BrickColor = origcolor
  2521. rng.CanCollide = false
  2522. rng.FormFactor = 3
  2523. rng.Name = "Ring"
  2524. rng.Size = Vector3.new(1, 1, 1)
  2525. rng.Transparency = 0
  2526. rng.TopSurface = 0
  2527. rng.BottomSurface = 0
  2528. rng.CFrame = pos
  2529. local rngm = Instance.new("SpecialMesh", rng)
  2530. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2531. rngm.Scale = scale
  2532. local scaler2 = 1
  2533. if type == "Add" then
  2534. scaler2 = 1*value
  2535. elseif type == "Divide" then
  2536. scaler2 = 1/value
  2537. end
  2538. coroutine.resume(coroutine.create(function()
  2539. for i = 0,10,0.1 do
  2540. swait()
  2541. if type == "Add" then
  2542. scaler2 = scaler2 - 0.01*value
  2543. elseif type == "Divide" then
  2544. scaler2 = scaler2 - 0.01/value
  2545. end
  2546. rng.Transparency = rng.Transparency + 0.01
  2547. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2548. end
  2549. rng:Destroy()
  2550. end))
  2551. end
  2552.  
  2553. function wind(type,pos,scale,value,speed)
  2554. local type = type
  2555. local rng = Instance.new("Part", char)
  2556. rng.Anchored = true
  2557. rng.BrickColor = origcolor
  2558. rng.CanCollide = false
  2559. rng.FormFactor = 3
  2560. rng.Name = "Ring"
  2561. rng.Size = Vector3.new(1, 1, 1)
  2562. rng.Transparency = 0
  2563. rng.TopSurface = 0
  2564. rng.BottomSurface = 0
  2565. rng.CFrame = pos
  2566. local rngm = Instance.new("SpecialMesh", rng)
  2567. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2568. rngm.Scale = scale
  2569. local scaler2 = 1
  2570. if type == "Add" then
  2571. scaler2 = 1*value
  2572. elseif type == "Divide" then
  2573. scaler2 = 1/value
  2574. end
  2575. coroutine.resume(coroutine.create(function()
  2576. for i = 0,10,0.1 do
  2577. swait()
  2578. if type == "Add" then
  2579. scaler2 = scaler2 - 0.01*value
  2580. elseif type == "Divide" then
  2581. scaler2 = scaler2 - 0.01/value
  2582. end
  2583. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2584. rng.Transparency = rng.Transparency + 0.01
  2585. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2586. end
  2587. rng:Destroy()
  2588. end))
  2589. end
  2590.  
  2591. function groundwind(type,pos,scale,value,speed)
  2592. local type = type
  2593. local rng = Instance.new("Part", char)
  2594. rng.Anchored = true
  2595. rng.BrickColor = origcolor
  2596. rng.CanCollide = false
  2597. rng.FormFactor = 3
  2598. rng.Name = "Ring"
  2599. rng.Size = Vector3.new(1, 1, 1)
  2600. rng.Transparency = 0
  2601. rng.TopSurface = 0
  2602. rng.BottomSurface = 0
  2603. rng.CFrame = pos
  2604. local rngm = Instance.new("SpecialMesh", rng)
  2605. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2606. rngm.Scale = scale
  2607. local scaler2 = 1
  2608. if type == "Add" then
  2609. scaler2 = 1*value
  2610. elseif type == "Divide" then
  2611. scaler2 = 1/value
  2612. end
  2613. coroutine.resume(coroutine.create(function()
  2614. for i = 0,10,0.1 do
  2615. swait()
  2616. if type == "Add" then
  2617. scaler2 = scaler2 - 0.01*value
  2618. elseif type == "Divide" then
  2619. scaler2 = scaler2 - 0.01/value
  2620. end
  2621. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2622. rng.Transparency = rng.Transparency + 0.01
  2623. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2624. end
  2625. rng:Destroy()
  2626. end))
  2627. end
  2628.  
  2629. function CameraManager()
  2630. if TwoD and not CamInterrupt then
  2631. if Humanoid.Health > 0 then
  2632. Camera.CameraSubject = Humanoid
  2633. Camera.CameraType = "Scriptable"
  2634. Humanoid.AutoRotate = false
  2635. if Booleans.GyroUse then
  2636. Directer.MaxTorque = Vec3(0, huge, 0)
  2637. else
  2638. Directer.MaxTorque = Vec3(0, 0, 0)
  2639. end
  2640. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2641. if Booleans.CamFollow then
  2642. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2643. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2644. else
  2645. CPart.Position = RootPart.Position
  2646. end
  2647. else
  2648. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2649. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2650. end
  2651. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2652. else
  2653. Camera.CameraSubject = Humanoid
  2654. Camera.CameraType = "Custom"
  2655. Controller.Disabled = false
  2656. end
  2657. end
  2658. end
  2659.  
  2660. function ring(type,pos,scale,value)
  2661. local type = type
  2662. local rng = Instance.new("Part", char)
  2663. rng.Anchored = true
  2664. rng.BrickColor = origcolor
  2665. rng.CanCollide = false
  2666. rng.FormFactor = 3
  2667. rng.Name = "Ring"
  2668. rng.Size = Vector3.new(1, 1, 1)
  2669. rng.Transparency = 0
  2670. rng.TopSurface = 0
  2671. rng.BottomSurface = 0
  2672. rng.CFrame = pos
  2673. local rngm = Instance.new("SpecialMesh", rng)
  2674. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2675. rngm.Scale = scale
  2676. local scaler2 = 1
  2677. if type == "Add" then
  2678. scaler2 = 1*value
  2679. elseif type == "Divide" then
  2680. scaler2 = 1/value
  2681. end
  2682. coroutine.resume(coroutine.create(function()
  2683. for i = 0,10,0.1 do
  2684. swait()
  2685. if type == "Add" then
  2686. scaler2 = scaler2 - 0.01*value
  2687. elseif type == "Divide" then
  2688. scaler2 = scaler2 - 0.01/value
  2689. end
  2690. rng.Transparency = rng.Transparency + 0.01
  2691. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2692. end
  2693. rng:Destroy()
  2694. end))
  2695. end
  2696.  
  2697.  
  2698. function wave(type,pos,scale,value)
  2699. local type = type
  2700. local rng = Instance.new("Part", char)
  2701. rng.Anchored = true
  2702. rng.BrickColor = origcolor
  2703. rng.CanCollide = false
  2704. rng.FormFactor = 3
  2705. rng.Name = "Ring"
  2706. rng.Size = Vector3.new(1, 1, 1)
  2707. rng.Transparency = 0
  2708. rng.TopSurface = 0
  2709. rng.BottomSurface = 0
  2710. rng.CFrame = pos
  2711. local rngm = Instance.new("SpecialMesh", rng)
  2712. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2713. rngm.Scale = scale
  2714. local scaler2 = 1
  2715. if type == "Add" then
  2716. scaler2 = 1*value
  2717. elseif type == "Divide" then
  2718. scaler2 = 1/value
  2719. end
  2720. coroutine.resume(coroutine.create(function()
  2721. for i = 0,10,0.1 do
  2722. swait()
  2723. if type == "Add" then
  2724. scaler2 = scaler2 - 0.01*value
  2725. elseif type == "Divide" then
  2726. scaler2 = scaler2 - 0.01/value
  2727. end
  2728. rng.Transparency = rng.Transparency + 0.01
  2729. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2730. end
  2731. rng:Destroy()
  2732. end))
  2733. end
  2734.  
  2735. function sphere(bonuspeed,type,pos,scale,value,color)
  2736. local type = type
  2737. local rng = Instance.new("Part", char)
  2738. rng.Anchored = true
  2739. if ModeOfGlitch ~= 9 then
  2740. rng.BrickColor = color
  2741. elseif ModeOfGlitch == 9 then
  2742. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2743. end
  2744. rng.CanCollide = false
  2745. rng.FormFactor = 3
  2746. rng.Name = "Ring"
  2747. rng.Material = "Neon"
  2748. rng.Size = Vector3.new(1, 1, 1)
  2749. rng.Transparency = 0
  2750. rng.TopSurface = 0
  2751. rng.BottomSurface = 0
  2752. rng.CFrame = pos
  2753. local rngm = Instance.new("SpecialMesh", rng)
  2754. rngm.MeshType = "Sphere"
  2755. rngm.Scale = scale
  2756. if rainbowmode == true then
  2757. rng.Color = Color3.new(r/255,g/255,b/255)
  2758. end
  2759. if ModeOfGlitch == 9 then
  2760. coroutine.resume(coroutine.create(function()
  2761. while true do
  2762. swait()
  2763. if rng.Parent ~= nil then
  2764. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2765. else
  2766. break
  2767. end
  2768. end
  2769. end))
  2770. end
  2771. local scaler2 = 1
  2772. if type == "Add" then
  2773. scaler2 = 1*value
  2774. elseif type == "Divide" then
  2775. scaler2 = 1/value
  2776. end
  2777. coroutine.resume(coroutine.create(function()
  2778. for i = 0,10/bonuspeed,0.1 do
  2779. swait()
  2780. if rainbowmode == true then
  2781. rng.Color = Color3.new(r/255,g/255,b/255)
  2782. end
  2783. if type == "Add" then
  2784. scaler2 = scaler2 - 0.01*value/bonuspeed
  2785. elseif type == "Divide" then
  2786. scaler2 = scaler2 - 0.01/value*bonuspeed
  2787. end
  2788. if chaosmode == true then
  2789. rng.BrickColor = BrickColor.random()
  2790. end
  2791. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2792. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2793. end
  2794. rng:Destroy()
  2795. end))
  2796. end
  2797.  
  2798. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2799. local type = type
  2800. local rng = Instance.new("Part", char)
  2801. rng.Anchored = true
  2802. if ModeOfGlitch ~= 9 then
  2803. rng.BrickColor = color
  2804. elseif ModeOfGlitch == 9 then
  2805. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2806. end
  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. rng.TopSurface = 0
  2814. rng.BottomSurface = 0
  2815. rng.CFrame = pos
  2816. local rngm = Instance.new("SpecialMesh", rng)
  2817. rngm.MeshType = "Sphere"
  2818. rngm.Scale = scale
  2819. local scaler2 = 1
  2820. local scaler2b = 1
  2821. local scaler2c = 1
  2822. if type == "Add" then
  2823. scaler2 = 1*value
  2824. scaler2b = 1*value2
  2825. scaler2c = 1*value3
  2826. elseif type == "Divide" then
  2827. scaler2 = 1/value
  2828. scaler2b = 1/value2
  2829. scaler2c = 1/value3
  2830. end
  2831. if ModeOfGlitch == 9 then
  2832. coroutine.resume(coroutine.create(function()
  2833. while true do
  2834. swait()
  2835. if rng.Parent ~= nil then
  2836. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2837. else
  2838. break
  2839. end
  2840. end
  2841. end))
  2842. end
  2843. coroutine.resume(coroutine.create(function()
  2844. for i = 0,10/bonuspeed,0.1 do
  2845. swait()
  2846. if type == "Add" then
  2847. scaler2 = scaler2 - 0.01*value/bonuspeed
  2848. scaler2b = scaler2b - 0.01*value/bonuspeed
  2849. scaler2c = scaler2c - 0.01*value/bonuspeed
  2850. elseif type == "Divide" then
  2851. scaler2 = scaler2 - 0.01/value*bonuspeed
  2852. scaler2b = scaler2b - 0.01/value*bonuspeed
  2853. scaler2c = scaler2c - 0.01/value*bonuspeed
  2854. end
  2855. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2856. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2857. end
  2858. rng:Destroy()
  2859. end))
  2860. end
  2861.  
  2862. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2863. local type = type
  2864. local rotenable = rotatingop
  2865. local rng = Instance.new("Part", char)
  2866. rng.Anchored = true
  2867. rng.BrickColor = color
  2868. rng.CanCollide = false
  2869. rng.FormFactor = 3
  2870. rng.Name = "Ring"
  2871. rng.Material = "Neon"
  2872. rng.Size = Vector3.new(1, 1, 1)
  2873. rng.Transparency = 0
  2874. if typeoftrans == "In" then
  2875. rng.Transparency = 1
  2876. end
  2877. rng.TopSurface = 0
  2878. rng.BottomSurface = 0
  2879. rng.CFrame = pos
  2880. local rngm = Instance.new("SpecialMesh", rng)
  2881. rngm.MeshType = "FileMesh"
  2882. if typeofshape == "Normal" then
  2883. rngm.MeshId = "rbxassetid://662586858"
  2884. elseif typeofshape == "Round" then
  2885. rngm.MeshId = "rbxassetid://662585058"
  2886. end
  2887. rngm.Scale = scale
  2888. local scaler2 = 1/10
  2889. if type == "Add" then
  2890. scaler2 = 1*value/10
  2891. elseif type == "Divide" then
  2892. scaler2 = 1/value/10
  2893. end
  2894. local randomrot = math.random(1,2)
  2895. coroutine.resume(coroutine.create(function()
  2896. for i = 0,10/bonuspeed,0.1 do
  2897. swait()
  2898. if type == "Add" then
  2899. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2900. elseif type == "Divide" then
  2901. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2902. end
  2903. if rotenable == true then
  2904. if randomrot == 1 then
  2905. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2906. elseif randomrot == 2 then
  2907. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2908. end
  2909. end
  2910. if typeoftrans == "Out" then
  2911. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2912. elseif typeoftrans == "In" then
  2913. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2914. end
  2915. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2916. end
  2917. rng:Destroy()
  2918. end))
  2919. end
  2920.  
  2921. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2922. local type = type
  2923. local rng = Instance.new("Part", char)
  2924. rng.Anchored = true
  2925. rng.BrickColor = color
  2926. rng.CanCollide = false
  2927. rng.FormFactor = 3
  2928. rng.Name = "Ring"
  2929. rng.Material = "Neon"
  2930. rng.Size = Vector3.new(1, 1, 1)
  2931. rng.Transparency = 0
  2932. rng.TopSurface = 0
  2933. rng.BottomSurface = 0
  2934. rng.CFrame = pos
  2935. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2936. local rngm = Instance.new("SpecialMesh", rng)
  2937. rngm.MeshType = "Brick"
  2938. rngm.Scale = vt(x1,y1,z1)
  2939. if rainbowmode == true then
  2940. rng.Color = Color3.new(r/255,g/255,b/255)
  2941. end
  2942. local scaler2 = 1
  2943. local speeder = FastSpeed/10
  2944. if type == "Add" then
  2945. scaler2 = 1*value
  2946. elseif type == "Divide" then
  2947. scaler2 = 1/value
  2948. end
  2949. coroutine.resume(coroutine.create(function()
  2950. for i = 0,10/bonuspeed,0.1 do
  2951. swait()
  2952. if rainbowmode == true then
  2953. rng.Color = Color3.new(r/255,g/255,b/255)
  2954. end
  2955. if type == "Add" then
  2956. scaler2 = scaler2 - 0.01*value/bonuspeed
  2957. elseif type == "Divide" then
  2958. scaler2 = scaler2 - 0.01/value*bonuspeed
  2959. end
  2960. if chaosmode == true then
  2961. rng.BrickColor = BrickColor.random()
  2962. end
  2963. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2964. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2965. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2966. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2967. end
  2968. rng:Destroy()
  2969. end))
  2970. end
  2971.  
  2972. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2973. local type = type
  2974. local rng = Instance.new("Part", char)
  2975. rng.Anchored = true
  2976. rng.BrickColor = color
  2977. rng.CanCollide = false
  2978. rng.FormFactor = 3
  2979. rng.Name = "Ring"
  2980. rng.Material = "Neon"
  2981. rng.Size = Vector3.new(1, 1, 1)
  2982. rng.Transparency = 0
  2983. rng.TopSurface = 0
  2984. rng.BottomSurface = 0
  2985. rng.CFrame = pos
  2986. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2987. local rngm = Instance.new("SpecialMesh", rng)
  2988. rngm.MeshType = "Brick"
  2989. rngm.Scale = vt(x1,y1,z1)
  2990. if rainbowmode == true then
  2991. rng.Color = Color3.new(r/255,g/255,b/255)
  2992. end
  2993. local scaler2 = 1
  2994. local speeder = FastSpeed/10
  2995. if type == "Add" then
  2996. scaler2 = 1*value
  2997. elseif type == "Divide" then
  2998. scaler2 = 1/value
  2999. end
  3000. coroutine.resume(coroutine.create(function()
  3001. for i = 0,10/bonuspeed,0.1 do
  3002. swait()
  3003. if rainbowmode == true then
  3004. rng.Color = Color3.new(r/255,g/255,b/255)
  3005. end
  3006. if type == "Add" then
  3007. scaler2 = scaler2 - 0.01*value/bonuspeed
  3008. elseif type == "Divide" then
  3009. scaler2 = scaler2 - 0.01/value*bonuspeed
  3010. end
  3011. if chaosmode == true then
  3012. rng.BrickColor = BrickColor.random()
  3013. end
  3014. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3015. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3016. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3017. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3018. end
  3019. rng:Destroy()
  3020. end))
  3021. end
  3022.  
  3023. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3024. local type = type
  3025. local rng = Instance.new("Part", char)
  3026. rng.Anchored = true
  3027. rng.BrickColor = color
  3028. rng.CanCollide = false
  3029. rng.FormFactor = 3
  3030. rng.Name = "Ring"
  3031. rng.Material = "Neon"
  3032. rng.Size = Vector3.new(1, 1, 1)
  3033. rng.Transparency = 0
  3034. rng.TopSurface = 0
  3035. rng.BottomSurface = 0
  3036. rng.CFrame = pos
  3037. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3038. local rngm = Instance.new("SpecialMesh", rng)
  3039. rngm.MeshType = "Brick"
  3040. rngm.Scale = vt(x1,y1,z1)
  3041. if rainbowmode == true then
  3042. rng.Color = Color3.new(r/255,g/255,b/255)
  3043. end
  3044. local scaler2 = 0
  3045. local speeder = FastSpeed/10
  3046. if type == "Add" then
  3047. scaler2 = 1*value
  3048. elseif type == "Divide" then
  3049. scaler2 = 1/value
  3050. end
  3051. coroutine.resume(coroutine.create(function()
  3052. for i = 0,10/bonuspeed,0.1 do
  3053. swait()
  3054. if rainbowmode == true then
  3055. rng.Color = Color3.new(r/255,g/255,b/255)
  3056. end
  3057. if type == "Add" then
  3058. scaler2 = scaler2 - 0.01*value/bonuspeed
  3059. elseif type == "Divide" then
  3060. scaler2 = scaler2 - 0.01/value*bonuspeed
  3061. end
  3062. if chaosmode == true then
  3063. rng.BrickColor = BrickColor.random()
  3064. end
  3065. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3066. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3067. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3068. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3069. end
  3070. rng:Destroy()
  3071. end))
  3072. end
  3073.  
  3074. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3075. local type = type
  3076. local rng = Instance.new("Part", char)
  3077. rng.Anchored = true
  3078. rng.BrickColor = color
  3079. rng.Color = color3
  3080. rng.CanCollide = false
  3081. rng.FormFactor = 3
  3082. rng.Name = "Ring"
  3083. rng.Material = "Neon"
  3084. rng.Size = Vector3.new(1, 1, 1)
  3085. rng.Transparency = 0
  3086. rng.TopSurface = 0
  3087. rng.BottomSurface = 0
  3088. rng.CFrame = pos
  3089. local rngm = Instance.new("SpecialMesh", rng)
  3090. rngm.MeshType = "Brick"
  3091. rngm.Scale = scale
  3092. local scaler2 = 1
  3093. local scaler2b = 1
  3094. local scaler2c = 1
  3095. if type == "Add" then
  3096. scaler2 = 1*value
  3097. scaler2b = 1*value2
  3098. scaler2c = 1*value3
  3099. elseif type == "Divide" then
  3100. scaler2 = 1/value
  3101. scaler2b = 1/value2
  3102. scaler2c = 1/value3
  3103. end
  3104. coroutine.resume(coroutine.create(function()
  3105. for i = 0,10/bonuspeed,0.1 do
  3106. swait()
  3107. if type == "Add" then
  3108. scaler2 = scaler2 - 0.01*value/bonuspeed
  3109. scaler2b = scaler2b - 0.01*value/bonuspeed
  3110. scaler2c = scaler2c - 0.01*value/bonuspeed
  3111. elseif type == "Divide" then
  3112. scaler2 = scaler2 - 0.01/value*bonuspeed
  3113. scaler2b = scaler2b - 0.01/value*bonuspeed
  3114. scaler2c = scaler2c - 0.01/value*bonuspeed
  3115. end
  3116. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3117. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3118. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3119. end
  3120. rng:Destroy()
  3121. end))
  3122. end
  3123.  
  3124. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3125. local type = type
  3126. local rng = Instance.new("Part", char)
  3127. rng.Anchored = true
  3128. if ModeOfGlitch ~= 9 then
  3129. rng.BrickColor = color
  3130. elseif ModeOfGlitch == 9 then
  3131. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3132. end
  3133. rng.CanCollide = false
  3134. rng.FormFactor = 3
  3135. rng.Name = "Ring"
  3136. rng.Material = "Neon"
  3137. rng.Size = Vector3.new(1, 1, 1)
  3138. rng.Transparency = 0
  3139. rng.TopSurface = 0
  3140. rng.BottomSurface = 0
  3141. rng.CFrame = pos
  3142. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3143. local rngm = Instance.new("SpecialMesh", rng)
  3144. rngm.MeshType = "Sphere"
  3145. rngm.Scale = vt(x1,y1,z1)
  3146. if rainbowmode == true then
  3147. rng.Color = Color3.new(r/255,g/255,b/255)
  3148. end
  3149. if ModeOfGlitch == 9 then
  3150. coroutine.resume(coroutine.create(function()
  3151. while true do
  3152. swait()
  3153. if rng.Parent ~= nil then
  3154. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3155. else
  3156. break
  3157. end
  3158. end
  3159. end))
  3160. end
  3161. local scaler2 = 1
  3162. local speeder = FastSpeed
  3163. if type == "Add" then
  3164. scaler2 = 1*value
  3165. elseif type == "Divide" then
  3166. scaler2 = 1/value
  3167. end
  3168. coroutine.resume(coroutine.create(function()
  3169. for i = 0,10/bonuspeed,0.1 do
  3170. swait()
  3171. if rainbowmode == true then
  3172. rng.Color = Color3.new(r/255,g/255,b/255)
  3173. end
  3174. if type == "Add" then
  3175. scaler2 = scaler2 - 0.01*value/bonuspeed
  3176. elseif type == "Divide" then
  3177. scaler2 = scaler2 - 0.01/value*bonuspeed
  3178. end
  3179. if chaosmode == true then
  3180. rng.BrickColor = BrickColor.random()
  3181. end
  3182. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3183. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3184. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3185. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3186. end
  3187. rng:Destroy()
  3188. end))
  3189. end
  3190.  
  3191.  
  3192. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3193. local type = type
  3194. local rng = Instance.new("Part", char)
  3195. rng.Anchored = true
  3196. if ModeOfGlitch ~= 9 then
  3197. rng.BrickColor = color
  3198. elseif ModeOfGlitch == 9 then
  3199. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3200. end
  3201. rng.CanCollide = false
  3202. rng.FormFactor = 3
  3203. rng.Name = "Ring"
  3204. rng.Material = "Neon"
  3205. rng.Size = Vector3.new(1, 1, 1)
  3206. rng.Transparency = 1
  3207. rng.TopSurface = 0
  3208. rng.BottomSurface = 0
  3209. rng.CFrame = pos
  3210. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3211. local rngm = Instance.new("SpecialMesh", rng)
  3212. rngm.MeshType = "Sphere"
  3213. rngm.Scale = vt(x1,y1,z1)
  3214. if rainbowmode == true then
  3215. rng.Color = Color3.new(r/255,g/255,b/255)
  3216. end
  3217. if ModeOfGlitch == 9 then
  3218. coroutine.resume(coroutine.create(function()
  3219. while true do
  3220. swait()
  3221. if rng.Parent ~= nil then
  3222. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3223. else
  3224. break
  3225. end
  3226. end
  3227. end))
  3228. end
  3229. local scaler2 = 1
  3230. local speeder = FastSpeed
  3231. if type == "Add" then
  3232. scaler2 = 1*value
  3233. elseif type == "Divide" then
  3234. scaler2 = 1/value
  3235. end
  3236. coroutine.resume(coroutine.create(function()
  3237. for i = 0,10/bonuspeed,0.1 do
  3238. swait()
  3239. if rainbowmode == true then
  3240. rng.Color = Color3.new(r/255,g/255,b/255)
  3241. end
  3242. if type == "Add" then
  3243. scaler2 = scaler2 - 0.01*value/bonuspeed
  3244. elseif type == "Divide" then
  3245. scaler2 = scaler2 - 0.01/value*bonuspeed
  3246. end
  3247. if chaosmode == true then
  3248. rng.BrickColor = BrickColor.random()
  3249. end
  3250. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3251. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3252. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3253. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3254. end
  3255. rng:Destroy()
  3256. end))
  3257. end
  3258.  
  3259. function dmg(dude)
  3260. if dude.Name ~= Character then
  3261. local keptcolor = MAINRUINCOLOR
  3262. local bgf = Instance.new("BodyGyro",dude.Head)
  3263. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3264. --[[local val = Instance.new("BoolValue",dude)
  3265. val.Name = "IsHit"]]--
  3266. local ds = coroutine.wrap(function()
  3267. dude:WaitForChild("Head"):BreakJoints()
  3268. for i, v in pairs(dude:GetChildren()) do
  3269. if v:IsA("Part") or v:IsA("MeshPart") then
  3270. v.Name = "DEMINISHED"
  3271. end
  3272. end
  3273. wait(0.5)
  3274. targetted = nil
  3275. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3276. coroutine.resume(coroutine.create(function()
  3277. for i, v in pairs(dude:GetChildren()) do
  3278. if v:IsA("Accessory") then
  3279. v:Destroy()
  3280. end
  3281. if v:IsA("Humanoid") then
  3282. v:Destroy()
  3283. end
  3284. if v:IsA("CharacterMesh") then
  3285. v:Destroy()
  3286. end
  3287. if v:IsA("Model") then
  3288. v:Destroy()
  3289. end
  3290. if v:IsA("Part") or v:IsA("MeshPart") then
  3291. for x, o in pairs(v:GetChildren()) do
  3292. if o:IsA("Decal") then
  3293. o:Destroy()
  3294. end
  3295. end
  3296. coroutine.resume(coroutine.create(function()
  3297. v.Material = "Neon"
  3298. v.CanCollide = false
  3299. v.Anchored = false
  3300. local bld = Instance.new("ParticleEmitter",v)
  3301. bld.LightEmission = 0.75
  3302. bld.Texture = "rbxassetid://363275192" ---284205403
  3303. bld.Color = ColorSequence.new(keptcolor.Color)
  3304. bld.Rate = 500
  3305. bld.Lifetime = NumberRange.new(1)
  3306. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3307. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3308. bld.Speed = NumberRange.new(2,5)
  3309. bld.VelocitySpread = 50000
  3310. bld.Rotation = NumberRange.new(-500,500)
  3311. bld.RotSpeed = NumberRange.new(-500,500)
  3312. local sbs = Instance.new("BodyPosition", v)
  3313. sbs.P = 3000
  3314. sbs.D = 1000
  3315. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3316. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3317. v.Color = keptcolor.Color
  3318. coroutine.resume(coroutine.create(function()
  3319. for i = 0, 49 do
  3320. swait(1)
  3321. v:BreakJoints()
  3322. v.Transparency = v.Transparency + 0.02
  3323. end
  3324. v:BreakJoints()
  3325. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3326. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3327. bld.Speed = NumberRange.new(10,25)
  3328. bld.Drag = 5
  3329. bld.Acceleration = vt(0,2,0)
  3330. wait(0.5)
  3331. bld.Enabled = false
  3332. wait(8)
  3333. v:Destroy()
  3334. dude:Destroy()
  3335. end))
  3336. end))
  3337. end
  3338. end
  3339. end))
  3340. end)
  3341. ds()
  3342. end
  3343. end
  3344.  
  3345.  
  3346. function FindNearestHead(Position, Distance, SinglePlayer)
  3347. if SinglePlayer then
  3348. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3349. end
  3350. local List = {}
  3351. for i, v in pairs(workspace:GetChildren()) do
  3352. if v:IsA("Model") then
  3353. if v:findFirstChild("Head") then
  3354. if v ~= Character then
  3355. if (v.Head.Position - Position).magnitude <= Distance then
  3356. table.insert(List, v)
  3357. end
  3358. end
  3359. end
  3360. end
  3361. end
  3362. return List
  3363. end
  3364.  
  3365. function FaceMouse()
  3366. Cam = workspace.CurrentCamera
  3367. return {
  3368. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3369. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3370. }
  3371. end
  3372.  
  3373. function FaceMouse2()
  3374. Cam = workspace.CurrentCamera
  3375. return {
  3376. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3377. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3378. }
  3379. end
  3380.  
  3381. local ModeOfGlitch = 1
  3382. -- Functions are ready.
  3383. local storehumanoidWS = 16
  3384.  
  3385. function CorruptBlink()
  3386. for i = 0, 14 do
  3387. 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)
  3388. end
  3389. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3390. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3391. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3392. CameraEnshaking(2,10)
  3393. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3394. if v:FindFirstChild('Head') then
  3395. dmg(v)
  3396. end
  3397. end
  3398. for i = 0, 14 do
  3399. 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)
  3400. end
  3401. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3402. end
  3403. function PureBomb()
  3404. attack = true
  3405. hum.WalkSpeed = 0
  3406. local orb = Instance.new("Part", char)
  3407. orb.Anchored = true
  3408. orb.BrickColor = BrickColor.new("Toothpaste")
  3409. orb.CanCollide = false
  3410. orb.FormFactor = 3
  3411. orb.Name = "Ring"
  3412. orb.Material = "Neon"
  3413. orb.Size = Vector3.new(1, 1, 1)
  3414. orb.Transparency = 0
  3415. orb.TopSurface = 0
  3416. orb.BottomSurface = 0
  3417. local orbm = Instance.new("SpecialMesh", orb)
  3418. orbm.MeshType = "Sphere"
  3419. orbm.Name = "SizeMesh"
  3420. orbm.Scale = vt(0,0,0)
  3421. local scaled = 0.1
  3422. local posid = 0
  3423. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3424. for i = 0, 5, 0.1 do
  3425. swait()
  3426. scaled = scaled - 0.001
  3427. posid = posid - scaled
  3428. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3429. local scaled = 0.1
  3430. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3431. 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)
  3432. 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)
  3433. 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)
  3434. 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)
  3435. 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)
  3436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3438. 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)
  3439. end
  3440. for i = 0, 2, 0.1 do
  3441. swait()
  3442. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  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(0),math.rad(0),math.rad(20)),.4)
  3447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.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. coroutine.resume(coroutine.create(function()
  3451. orb.Anchored = false
  3452. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3453. local a = Instance.new("Part",workspace)
  3454. a.Name = "Direction"
  3455. a.Anchored = true
  3456. a.BrickColor = bc("Bright red")
  3457. a.Material = "Neon"
  3458. a.Transparency = 1
  3459. a.CanCollide = false
  3460. local ray = Ray.new(
  3461. orb.CFrame.p, -- origin
  3462. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3463. )
  3464. local ignore = orb
  3465. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3466. a.BottomSurface = 10
  3467. a.TopSurface = 10
  3468. local distance = (orb.CFrame.p - position).magnitude
  3469. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3470. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3471. orb.CFrame = a.CFrame
  3472. a:Destroy()
  3473. local bv = Instance.new("BodyVelocity")
  3474. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3475. bv.velocity = orb.CFrame.lookVector*125
  3476. bv.Parent = orb
  3477. local hitted = false
  3478. game:GetService("Debris"):AddItem(orb, 15)
  3479. wait()
  3480. local hit =orb.Touched:connect(function(hit)
  3481. if hitted == false then
  3482. hitted = true
  3483. CameraEnshaking(10,2.5)
  3484. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3485. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3486. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3487. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3488. for i = 0, 49 do
  3489. 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)
  3490. end
  3491. for i = 0, 9 do
  3492. 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)
  3493. 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)
  3494. end
  3495. orb.Anchored = true
  3496. orb.Transparency = 1
  3497. wait(8)
  3498. orb:Destroy()
  3499. end
  3500. end)
  3501. end))
  3502. for i = 0, 1, 0.1 do
  3503. swait()
  3504. 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)
  3505. 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)
  3506. 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)
  3507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3509. 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)
  3510. end
  3511. hum.WalkSpeed = storehumanoidWS
  3512. attack = false
  3513. end
  3514.  
  3515. function BanishingOrb()
  3516. attack = true
  3517. hum.WalkSpeed = 0
  3518. local radm = math.random(1,3)
  3519. if radm == 1 then
  3520. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3521. elseif radm == 2 then
  3522. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3523. elseif radm == 3 then
  3524. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3525. end
  3526. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3527. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3528. local orb = Instance.new("Part", char)
  3529. orb.Anchored = true
  3530. orb.BrickColor = BrickColor.new("Lime green")
  3531. orb.CanCollide = false
  3532. orb.FormFactor = 3
  3533. orb.Name = "Ring"
  3534. orb.Material = "Neon"
  3535. orb.Size = Vector3.new(1, 1, 1)
  3536. orb.Transparency = 0
  3537. orb.TopSurface = 0
  3538. orb.BottomSurface = 0
  3539. local orbm = Instance.new("SpecialMesh", orb)
  3540. orbm.MeshType = "Sphere"
  3541. orbm.Name = "SizeMesh"
  3542. orbm.Scale = vt(0,0,0)
  3543. local scaled = 0.1
  3544. local posid = 0
  3545. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3546. for i = 0, 5, 0.1 do
  3547. swait()
  3548. scaled = scaled - 0.001
  3549. posid = posid - scaled
  3550. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3551. local scaled = 0.1
  3552. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3553. 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)
  3554. 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)
  3555. 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)
  3556. 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)
  3557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3559. 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)
  3560. end
  3561. for i = 0, 2, 0.1 do
  3562. swait()
  3563. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3564. 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)
  3565. 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)
  3566. 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)
  3567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3569. 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)
  3570. end
  3571. coroutine.resume(coroutine.create(function()
  3572. orb.Anchored = false
  3573. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3574. local a = Instance.new("Part",workspace)
  3575. a.Name = "Direction"
  3576. a.Anchored = true
  3577. a.BrickColor = bc("Lime green")
  3578. a.Material = "Neon"
  3579. a.Transparency = 1
  3580. a.CanCollide = false
  3581. local ray = Ray.new(
  3582. orb.CFrame.p, -- origin
  3583. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3584. )
  3585. local ignore = orb
  3586. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3587. a.BottomSurface = 10
  3588. a.TopSurface = 10
  3589. local distance = (orb.CFrame.p - position).magnitude
  3590. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3591. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3592. orb.CFrame = a.CFrame
  3593. a:Destroy()
  3594. local bv = Instance.new("BodyVelocity")
  3595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3596. bv.velocity = orb.CFrame.lookVector*0
  3597. bv.Parent = orb
  3598. local hitted = false
  3599. local rate = 0
  3600. coroutine.resume(coroutine.create(function()
  3601. for i = 0, 24 do
  3602. wait(0.1)
  3603. rate = rate + 0.25
  3604. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3605. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3606. if v:FindFirstChild('Head') then
  3607. dmg(v)
  3608. end
  3609. end
  3610. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3611. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3612. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3613. end
  3614. orb.Anchored = true
  3615. orb.Transparency = 1
  3616. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3617. if v:FindFirstChild('Head') then
  3618. dmg(v)
  3619. end
  3620. end
  3621. local eff = Instance.new("ParticleEmitter",orb)
  3622. eff.Texture = "rbxassetid://296874871"
  3623. eff.LightEmission = 0.95
  3624. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3625. eff.Rate = 1000000000
  3626. eff.Lifetime = NumberRange.new(3)
  3627. 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)})
  3628. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3629. eff.Speed = NumberRange.new(30)
  3630. eff.Acceleration = vt(0,-15,0)
  3631. eff.Rotation = NumberRange.new(-500,500)
  3632. eff.VelocitySpread = 100000
  3633. eff.RotSpeed = NumberRange.new(-500,500)
  3634. coroutine.resume(coroutine.create(function()
  3635. wait(0.6)
  3636. eff.Enabled = false
  3637. end))
  3638. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3639. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3640. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3641. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3642. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3643. game:GetService("Debris"):AddItem(orb, 15)
  3644. end))
  3645. end))
  3646. for i = 0, 1, 0.1 do
  3647. swait()
  3648. 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)
  3649. 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)
  3650. 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)
  3651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3653. 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)
  3654. end
  3655. hum.WalkSpeed = storehumanoidWS
  3656. attack = false
  3657. end
  3658.  
  3659.  
  3660. function ChaosGroundStrike()
  3661. attack = true
  3662. for i = 0, 2, 0.1 do
  3663. swait()
  3664. 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)
  3665. 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)
  3666. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3668. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3669. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3670. end
  3671. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3672. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3673. CameraEnshaking(4,12)
  3674. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3675. if v:FindFirstChild('Head') then
  3676. dmg(v)
  3677. end
  3678. end
  3679. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3680. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3681. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3682. for i = 0, 2, 0.1 do
  3683. swait()
  3684. 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)
  3685. 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)
  3686. 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)
  3687. 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)
  3688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3691. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3692. end
  3693. attack = false
  3694. end
  3695.  
  3696.  
  3697.  
  3698. function Starfall()
  3699. attack = true
  3700. hum.WalkSpeed = 0
  3701. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3702. for i = 0, 5, 0.1 do
  3703. swait()
  3704. 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)
  3705. 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)
  3706. 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)
  3707. 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)
  3708. 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)
  3709. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3710. 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)
  3711. 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)
  3712. end
  3713. local Overed = false
  3714. CameraEnshaking(2,20)
  3715. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3716. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3717. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3718. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3719. local orb = Instance.new("Part", char)
  3720. orb.Anchored = true
  3721. orb.BrickColor = BrickColor.new("Toothpaste")
  3722. orb.CanCollide = false
  3723. orb.FormFactor = 3
  3724. orb.Name = "Remenant"
  3725. orb.Material = "Neon"
  3726. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3727. orb.Size = Vector3.new(1, 1, 1)
  3728. orb.Transparency = 1
  3729. orb.TopSurface = 0
  3730. orb.BottomSurface = 0
  3731. hum.WalkSpeed = storehumanoidWS
  3732. coroutine.resume(coroutine.create(function()
  3733. for i = 0, 9 do
  3734. swait(10)
  3735. local lb = Instance.new("Part")
  3736. lb.Color = MAINRUINCOLOR.Color
  3737. lb.CanCollide = false
  3738. lb.Material = "Neon"
  3739. lb.Anchored = true
  3740. lb.TopSurface = 0
  3741. lb.BottomSurface = 0
  3742. lb.Transparency = 0
  3743. lb.Size = vt(1,1,1)
  3744. 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)))
  3745. lb.Anchored = false
  3746. lb.Parent = char
  3747. local thingery = Instance.new("SpecialMesh",lb)
  3748. thingery.MeshType = "Sphere"
  3749. thingery.Scale = vt(20,20,20)
  3750. game:GetService("Debris"):AddItem(lb, 10)
  3751. local bv = Instance.new("BodyVelocity")
  3752. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3753. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3754. bv.Parent = lb
  3755. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3756. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3757. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3758. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3759. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3760. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3761. local hitted = false
  3762. coroutine.resume(coroutine.create(function()
  3763. while true do
  3764. swait(1)
  3765. if lb.Parent ~= nil and hitted == false then
  3766. 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)
  3767. elseif lb.Parent == nil then
  3768. break
  3769. end
  3770. end
  3771. end))
  3772.  
  3773. game:GetService("Debris"):AddItem(a, 0.1)
  3774.  
  3775. coroutine.resume(coroutine.create(function()
  3776. swait(1)
  3777. lb.Touched:connect(function(hit)
  3778. if hitted == false then
  3779. hitted = true
  3780. lb.Transparency = 1
  3781. lb.Anchored = true
  3782. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3783. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3784. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3785. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3786. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3787. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3788. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3789. CameraEnshaking(1,5)
  3790. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3791. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3792. for i = 0, 9 do
  3793. 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)
  3794. end
  3795. for i = 0, 49 do
  3796. swait()
  3797. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3798. 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)
  3799. end
  3800. end
  3801. end)
  3802. end))
  3803. end
  3804. Overed = true
  3805. orb:Destroy()
  3806. end))
  3807.  
  3808. attack = false
  3809. end
  3810.  
  3811. function StarfallEX()
  3812. attack = true
  3813. hum.WalkSpeed = 0
  3814. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3815. for i = 0, 10, 0.1 do
  3816. swait()
  3817. 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)
  3818. 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)
  3819. 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)
  3820. 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)
  3821. 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)
  3822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3823. 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)
  3824. 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)
  3825. end
  3826. local Overed = false
  3827. CameraEnshaking(2,20)
  3828. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3829. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3830. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3831. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3832. local orb = Instance.new("Part", char)
  3833. orb.Anchored = true
  3834. orb.BrickColor = BrickColor.new("Toothpaste")
  3835. orb.CanCollide = false
  3836. orb.FormFactor = 3
  3837. orb.Name = "Remenant"
  3838. orb.Material = "Neon"
  3839. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3840. orb.Size = Vector3.new(1, 1, 1)
  3841. orb.Transparency = 1
  3842. orb.TopSurface = 0
  3843. orb.BottomSurface = 0
  3844. hum.WalkSpeed = storehumanoidWS
  3845. coroutine.resume(coroutine.create(function()
  3846. for i = 0, 4 do
  3847. swait(15)
  3848. local lb = Instance.new("Part")
  3849. lb.Color = MAINRUINCOLOR.Color
  3850. lb.CanCollide = false
  3851. lb.Material = "Neon"
  3852. lb.Anchored = true
  3853. lb.TopSurface = 0
  3854. lb.BottomSurface = 0
  3855. lb.Transparency = 0
  3856. lb.Size = vt(1,1,1)
  3857. 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)))
  3858. lb.Anchored = false
  3859. lb.Parent = char
  3860. local thingery = Instance.new("SpecialMesh",lb)
  3861. thingery.MeshType = "Sphere"
  3862. thingery.Scale = vt(50,50,50)
  3863. game:GetService("Debris"):AddItem(lb, 10)
  3864. local bv = Instance.new("BodyVelocity")
  3865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3866. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3867. bv.Parent = lb
  3868. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3869. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3870. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3871. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3872. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3873. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3874. local hitted = false
  3875. coroutine.resume(coroutine.create(function()
  3876. while true do
  3877. swait(1)
  3878. if lb.Parent ~= nil and hitted == false then
  3879. 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)
  3880. elseif lb.Parent == nil then
  3881. break
  3882. end
  3883. end
  3884. end))
  3885.  
  3886. game:GetService("Debris"):AddItem(a, 0.1)
  3887.  
  3888. coroutine.resume(coroutine.create(function()
  3889. swait(1)
  3890. lb.Touched:connect(function(hit)
  3891. if hitted == false then
  3892. hitted = true
  3893. lb.Transparency = 1
  3894. lb.Anchored = true
  3895. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3896. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3897. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3898. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3899. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3900. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3901. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3902. CameraEnshaking(1,5)
  3903. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3904. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3905. for i = 0, 9 do
  3906. 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)
  3907. end
  3908. for i = 0, 99 do
  3909. swait()
  3910. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3911. 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)
  3912. end
  3913. end
  3914. end)
  3915. end))
  3916. end
  3917. Overed = true
  3918. orb:Destroy()
  3919. end))
  3920.  
  3921. attack = false
  3922. end
  3923.  
  3924. function DivineBlast()
  3925. attack = true
  3926. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3927. hum.WalkSpeed = 0
  3928. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3929. elocacenter.Anchored = true
  3930. elocacenter.CFrame = sorb.CFrame
  3931. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3932. eloca1.Anchored = true
  3933. eloca1.CFrame = elocacenter.CFrame
  3934. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3935. eloca2.Anchored = true
  3936. eloca2.CFrame = elocacenter.CFrame
  3937. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3938. eloca3.Anchored = true
  3939. eloca3.CFrame = elocacenter.CFrame
  3940. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3941. eloca4.Anchored = true
  3942. eloca4.CFrame = elocacenter.CFrame
  3943. local lookavec = 0
  3944. local speeds = 0
  3945. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3946. for i = 0, 3, 0.1 do
  3947. swait()
  3948. ---
  3949. lookavec = lookavec + 0.1
  3950. speeds = speeds + 10
  3951. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3952. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3953. 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)
  3954.  
  3955. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3956. 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)
  3957.  
  3958. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3959. 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)
  3960.  
  3961. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3962. 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)
  3963. ---
  3964. root.CFrame = FaceMouse()[1]
  3965. 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)
  3966. 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)
  3967. 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)
  3968. 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)
  3969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3970. 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)
  3971. end
  3972. for i = 0, 3, 0.1 do
  3973. swait()
  3974. ---
  3975. speeds = speeds + 10
  3976. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3977. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3978. 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)
  3979.  
  3980. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3981. 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)
  3982.  
  3983. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3984. 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)
  3985.  
  3986. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3987. 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)
  3988. ---
  3989. root.CFrame = FaceMouse()[1]
  3990. 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)
  3991. 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)
  3992. 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)
  3993. 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)
  3994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3995. 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)
  3996. end
  3997. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3998. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3999. for i = 0, 3, 0.1 do
  4000. swait()
  4001. ---
  4002. speeds = speeds + 10
  4003. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4004. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4005. 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)
  4006.  
  4007. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4008. 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)
  4009.  
  4010. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4011. 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)
  4012.  
  4013. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4014. 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)
  4015. ---
  4016. root.CFrame = FaceMouse()[1]
  4017. 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)
  4018. 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)
  4019. 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)
  4020. 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)
  4021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4022. 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)
  4023. end
  4024. coroutine.resume(coroutine.create(function()
  4025. local a = Instance.new("Part",Character)
  4026. a.Name = "Direction"
  4027. a.Anchored = true
  4028. a.BrickColor = bc("White")
  4029. a.Material = "Neon"
  4030. a.Transparency = 0
  4031. a.Shape = "Cylinder"
  4032. a.CanCollide = false
  4033. local a2 = Instance.new("Part",Character)
  4034. a2.Name = "Direction"
  4035. a2.Anchored = true
  4036. a2.BrickColor = bc("Bright yellow")
  4037. a2.Material = "Neon"
  4038. a2.Transparency = 0
  4039. a2.Shape = "Cylinder"
  4040. a2.CanCollide = false
  4041. local b = Instance.new("Part",Character)
  4042. b.Name = "HitDirect"
  4043. b.Anchored = true
  4044. b.BrickColor = bc("Cool yellow")
  4045. b.Material = "Neon"
  4046. b.Transparency = 1
  4047. b.CanCollide = false
  4048. local ray = Ray.new(
  4049. elocacenter.CFrame.p, -- origin
  4050. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4051. )
  4052. local ignore = Character
  4053. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4054. a.BottomSurface = 10
  4055. a.TopSurface = 10
  4056. a2.BottomSurface = 10
  4057. a2.TopSurface = 10
  4058. local distance = (elocacenter.CFrame.p - position).magnitude
  4059. a.Size = Vector3.new(distance, 1, 1)
  4060. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4061. a2.Size = Vector3.new(distance, 1, 1)
  4062. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4063. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4064. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4065. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4066. game:GetService("Debris"):AddItem(a, 10)
  4067. game:GetService("Debris"):AddItem(a2, 10)
  4068. game:GetService("Debris"):AddItem(b, 10)
  4069. local eff = Instance.new("ParticleEmitter",b)
  4070. eff.Texture = "rbxassetid://2273224484"
  4071. eff.LightEmission = 1
  4072. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4073. eff.Rate = 500000
  4074. eff.Lifetime = NumberRange.new(0.5,2)
  4075. 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)})
  4076. 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)})
  4077. eff.Speed = NumberRange.new(20,250)
  4078. eff.Drag = 5
  4079. eff.Rotation = NumberRange.new(-500,500)
  4080. eff.VelocitySpread = 9000
  4081. eff.RotSpeed = NumberRange.new(-50,50)
  4082. coroutine.resume(coroutine.create(function()
  4083. wait(0.25)
  4084. eff.Enabled = false
  4085. end))
  4086. local msh = Instance.new("SpecialMesh",a)
  4087. msh.MeshType = "Cylinder"
  4088. msh.Scale = vt(1,2,2)
  4089. local msh2 = Instance.new("SpecialMesh",a2)
  4090. msh2.MeshType = "Cylinder"
  4091. msh2.Scale = vt(1,2.5,2.5)
  4092. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4093. coroutine.resume(coroutine.create(function()
  4094. for i = 0,10,0.1 do
  4095. swait()
  4096. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4097. a.Transparency = a.Transparency + 0.025
  4098. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4099. a2.Transparency = a2.Transparency + 0.05
  4100. end
  4101. a:Destroy()
  4102. a2:Destroy()
  4103. end))
  4104. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4105. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4106. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4107. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4108. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4109. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4110. MagniDamage(b, 25, 40,65, 0, "Normal")
  4111. for i = 0, 49 do
  4112. 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)
  4113. 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)
  4114. end
  4115. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4116. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4117. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4118. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4119. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4120. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4121. end))
  4122. game:GetService("Debris"):AddItem(elocacenter, 5)
  4123. hum.WalkSpeed = storehumanoidWS
  4124. attack = false
  4125. end
  4126.  
  4127. function StarDivision()
  4128. attack = true
  4129. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4130. for i = 0, 2, 0.1 do
  4131. swait()
  4132. 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)
  4133. 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)
  4134. 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)
  4135. 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)
  4136. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4137. 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)
  4138. end
  4139. local orb = Instance.new("Part", char)
  4140. orb.BrickColor = MAINRUINCOLOR
  4141. orb.CanCollide = false
  4142. orb.FormFactor = 3
  4143. orb.Name = "Ring"
  4144. orb.Material = "Neon"
  4145. orb.Size = Vector3.new(1, 1, 1)
  4146. orb.Transparency = 0
  4147. orb.TopSurface = 0
  4148. orb.BottomSurface = 0
  4149. local orbm = Instance.new("SpecialMesh", orb)
  4150. orbm.MeshType = "Sphere"
  4151. orbm.Name = "SizeMesh"
  4152. orbm.Scale = vt(2,2,2)
  4153. local a = Instance.new("Part",workspace)
  4154. a.Name = "Direction"
  4155. a.Anchored = true
  4156. a.BrickColor = bc("Bright red")
  4157. a.Material = "Neon"
  4158. a.Transparency = 1
  4159. a.CanCollide = false
  4160. local ray = Ray.new(
  4161. sorb.CFrame.p, -- origin
  4162. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4163. )
  4164. local ignore = sorb
  4165. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4166. a.BottomSurface = 10
  4167. a.TopSurface = 10
  4168. local distance = (sorb.CFrame.p - position).magnitude
  4169. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4170. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4171. orb.CFrame = a.CFrame
  4172. a:Destroy()
  4173. local bv = Instance.new("BodyVelocity")
  4174. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4175. bv.velocity = orb.CFrame.lookVector*100
  4176. bv.Parent = orb
  4177. local hitted = false
  4178. game:GetService("Debris"):AddItem(orb, 10)
  4179. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4180. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4181. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4182. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4183. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4184. coroutine.resume(coroutine.create(function()
  4185. while true do
  4186. swait(1)
  4187. if orb.Parent ~= nil and hitted == false then
  4188. 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)
  4189. elseif orb.Parent == nil then
  4190. break
  4191. end
  4192. end
  4193. end))
  4194. coroutine.resume(coroutine.create(function()
  4195. swait(1)
  4196. orb.Touched:connect(function(hit)
  4197. if hitted == false then
  4198. hitted = true
  4199. game:GetService("Debris"):AddItem(orb, 5)
  4200. orb.Transparency = 1
  4201. orb.Anchored = true
  4202. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4203. elocacenter.Anchored = true
  4204. elocacenter.CFrame = orb.CFrame
  4205. elocacenter.Orientation = vt(0,0,0)
  4206. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4207. eloca1.Anchored = true
  4208. eloca1.CFrame = elocacenter.CFrame
  4209. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4210. eloca2.Anchored = true
  4211. eloca2.CFrame = elocacenter.CFrame
  4212. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4213. eloca3.Anchored = true
  4214. eloca3.CFrame = elocacenter.CFrame
  4215. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4216. eloca4.Anchored = true
  4217. eloca4.CFrame = elocacenter.CFrame
  4218. local lookavec = 0
  4219. local speeds = 0
  4220. CameraEnshaking(1,1)
  4221. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4222. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4223. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4224. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4225. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4226. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4227. for i = 0, 99 do
  4228. swait()
  4229. lookavec = lookavec + 1
  4230. speeds = speeds + 0.1
  4231. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4232. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4233. 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)
  4234.  
  4235. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4236. 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)
  4237.  
  4238. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4239. 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)
  4240.  
  4241. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4242. 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)
  4243. end
  4244.  
  4245. for i = 0, 149 do
  4246. swait()
  4247. speeds = speeds + 0.1
  4248. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4249. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4250. 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)
  4251.  
  4252. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4253. 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)
  4254.  
  4255. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4256. 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)
  4257.  
  4258. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4259. 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)
  4260. end
  4261. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4262. if v:FindFirstChild('Head') then
  4263. dmg(v)
  4264. end
  4265. end
  4266. CameraEnshaking(7,30)
  4267. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4268. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4269. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4270. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4271. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4272. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4273. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4274. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4275. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4276. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4277. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4278. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4279. for i = 0, 24 do
  4280. 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)
  4281. 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)
  4282. 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)
  4283. 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)
  4284. end
  4285. coroutine.resume(coroutine.create(function()
  4286. for i = 0, 499 do
  4287. swait(1)
  4288. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4289. 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)
  4290. end
  4291. elocacenter:Destroy()
  4292. eloca1:Destroy()
  4293. eloca2:Destroy()
  4294. eloca3:Destroy()
  4295. eloca4:Destroy()
  4296. end))
  4297. end
  4298. end)
  4299. end))
  4300. attack = false
  4301. end
  4302.  
  4303.  
  4304. function THE_TRUE_POWER_OF_VIOLENCE()
  4305. attack = true
  4306. hum.WalkSpeed = 0
  4307. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4308. for i = 0, 10, 0.1 do
  4309. swait()
  4310. 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)
  4311. 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)
  4312. 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)
  4313. 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)
  4314. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4315. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4316. 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)
  4317. end
  4318. local orb = Instance.new("Part", char)
  4319. orb.BrickColor = MAINRUINCOLOR
  4320. orb.CanCollide = false
  4321. orb.FormFactor = 3
  4322. orb.Name = "Ring"
  4323. orb.Material = "Neon"
  4324. orb.Size = Vector3.new(1, 1, 1)
  4325. orb.Transparency = 0
  4326. orb.TopSurface = 0
  4327. orb.BottomSurface = 0
  4328. orb.CFrame = sorb.CFrame
  4329. local orbm = Instance.new("SpecialMesh", orb)
  4330. orbm.MeshType = "Sphere"
  4331. orbm.Name = "SizeMesh"
  4332. orbm.Scale = vt(0,0,0)
  4333. local sbs = Instance.new("BodyPosition", orb)
  4334. sbs.P = 3000
  4335. sbs.D = 1000
  4336. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4337. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4338. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4339. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4340. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4341. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4342. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4343. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4344. for i = 0, 10, 0.1 do
  4345. swait()
  4346. 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)
  4347. 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)
  4348. 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)
  4349. 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)
  4350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4351. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4352. 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)
  4353. end
  4354. orb.Anchored = true
  4355. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4356. elocacenter.Anchored = true
  4357. elocacenter.CFrame = orb.CFrame
  4358. elocacenter.Orientation = vt(0,0,0)
  4359. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4360. eloca1.Anchored = true
  4361. eloca1.CFrame = elocacenter.CFrame
  4362. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4363. eloca2.Anchored = true
  4364. eloca2.CFrame = elocacenter.CFrame
  4365. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4366. eloca3.Anchored = true
  4367. eloca3.CFrame = elocacenter.CFrame
  4368. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4369. eloca4.Anchored = true
  4370. eloca4.CFrame = elocacenter.CFrame
  4371. local lookavec = 0
  4372. local speeds = 0
  4373. CameraEnshaking(1,1)
  4374. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4375. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4376. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4377. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4378. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4379. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4380. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4381. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4382. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4383. for i = 0, 99 do
  4384. swait()
  4385. lookavec = lookavec + 2.5
  4386. speeds = speeds + 0.25
  4387. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4388. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4389. 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)
  4390.  
  4391. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4392. 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)
  4393.  
  4394. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4395. 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)
  4396.  
  4397. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4398. 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)
  4399. end
  4400.  
  4401. for i = 0, 149 do
  4402. swait()
  4403. speeds = speeds + 0.25
  4404. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4405. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4406. 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)
  4407.  
  4408. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4409. 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)
  4410.  
  4411. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4412. 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)
  4413.  
  4414. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4415. 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)
  4416. end
  4417. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4418. for i = 0, 99 do
  4419. swait()
  4420. lookavec = lookavec - 2.5
  4421. speeds = speeds + 0.25
  4422. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4423. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4424. 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)
  4425.  
  4426. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4427. 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)
  4428.  
  4429. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4430. 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)
  4431.  
  4432. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4433. 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)
  4434. end
  4435. local scaled = 0.1*75
  4436. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4437. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4438. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4439. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4440. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4441. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4442. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4443. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4444. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4445. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4446. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4447.  
  4448. for i = 0, 10, 0.1 do
  4449. swait()
  4450. scaled = scaled - 0.001*75
  4451. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4452. 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)
  4453. 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)
  4454. 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)
  4455. 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)
  4456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4457. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4458. 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)
  4459. end
  4460. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4461. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4462. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4463. for x = 0, 4 do
  4464. for i = 0, 9 do
  4465. 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)
  4466. end
  4467. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4468. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4469. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4474. for i = 0, 5, 0.1 do
  4475. swait()
  4476. 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)
  4477. 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)
  4478. 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)
  4479. 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)
  4480. 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)
  4481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4482. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4483. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4484. end
  4485. end
  4486. local speedearn = 0
  4487. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4488. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4489. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4490. for i = 0, 30, 0.1 do
  4491. swait()
  4492. scaled = scaled - 0.001*75/10
  4493. speedearn = speedearn + 0.5
  4494. for i = 0, 4 do
  4495. 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)
  4496. end
  4497. 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)
  4498. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4499. 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)
  4500. 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)
  4501. 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)
  4502. 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)
  4503. 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)
  4504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4506. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4507. end
  4508. orb.Transparency = 1
  4509. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4510. if v:FindFirstChild('Head') then
  4511. dmg(v)
  4512. end
  4513. end
  4514. CameraEnshaking(7,30)
  4515. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4516. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4517. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4518. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4519. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4520. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4521. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4522. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4523. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4524. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4525. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4526. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4527. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4528. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4529. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4530. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4531. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4532. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4533. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4534. for i = 0, 99 do
  4535. 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)
  4536. 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)
  4537. end
  4538. for i = 0, 24 do
  4539. 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)
  4540. 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)
  4541. 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)
  4542. 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)
  4543. 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)
  4544. end
  4545. game:GetService("Debris"):AddItem(orb, 10)
  4546. hum.WalkSpeed = storehumanoidWS
  4547. attack = false
  4548. end
  4549.  
  4550.  
  4551. function ViolentRing()
  4552. attack = true
  4553. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4554. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4555. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4556. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4557. for i = 0, 2, 0.1 do
  4558. swait()
  4559. local snap = math.random(1,10)
  4560. if snap == 1 then
  4561. 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)
  4562. end
  4563. 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)
  4564. 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)
  4565. 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)
  4566. 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)
  4567. 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)
  4568. 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)
  4569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4570. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4571. 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)
  4572. RootPart.CFrame = FaceMouse()[1]
  4573. end
  4574. local orb = Instance.new("Part", char)
  4575. orb.BrickColor = MAINRUINCOLOR
  4576. orb.CanCollide = false
  4577. orb.FormFactor = 3
  4578. orb.Name = "Ring"
  4579. orb.Material = "Neon"
  4580. orb.Size = Vector3.new(1, 1, 1)
  4581. orb.Transparency = 0
  4582. orb.TopSurface = 0
  4583. orb.BottomSurface = 0
  4584. local orbm = Instance.new("SpecialMesh", orb)
  4585. orbm.MeshType = "Sphere"
  4586. orbm.Name = "SizeMesh"
  4587. orbm.Scale = vt(2,2,2)
  4588. orb.CFrame = mouse.Hit
  4589. local bv = Instance.new("BodyVelocity")
  4590. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4591. bv.velocity = orb.CFrame.lookVector*100
  4592. bv.Parent = orb
  4593. local hitted = false
  4594. coroutine.resume(coroutine.create(function()
  4595. game:GetService("Debris"):AddItem(orb, 5)
  4596. orb.Transparency = 1
  4597. orb.Anchored = true
  4598. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4599. elocacenter.Anchored = true
  4600. elocacenter.CFrame = orb.CFrame
  4601. elocacenter.Orientation = vt(0,0,0)
  4602. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4603. eloca1.Anchored = true
  4604. eloca1.CFrame = elocacenter.CFrame
  4605. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4606. eloca2.Anchored = true
  4607. eloca2.CFrame = elocacenter.CFrame
  4608. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4609. eloca3.Anchored = true
  4610. eloca3.CFrame = elocacenter.CFrame
  4611. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4612. eloca4.Anchored = true
  4613. eloca4.CFrame = elocacenter.CFrame
  4614. local lookavec = 0
  4615. local speeds = 0
  4616. CameraEnshaking(1,1)
  4617. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4618. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4619. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4620. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4621. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4622. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4623. for i = 0, 24 do
  4624. swait()
  4625. lookavec = lookavec + 3.5
  4626. speeds = speeds + 1
  4627. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4628. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4629. 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)
  4630.  
  4631. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4632. 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)
  4633.  
  4634. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4635. 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)
  4636.  
  4637. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4638. 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)
  4639. end
  4640.  
  4641. local risen = 0
  4642. for i = 0, 49 do
  4643. swait()
  4644. risen = risen + 0.05
  4645. speeds = speeds + 0.1
  4646. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4647. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4648. 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)
  4649.  
  4650. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4651. 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)
  4652.  
  4653. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4654. 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)
  4655.  
  4656. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4657. 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)
  4658. end
  4659. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4660. if v:FindFirstChild('Head') then
  4661. dmg(v)
  4662. end
  4663. end
  4664. CameraEnshaking(4,10)
  4665. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4666. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4667. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4668. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4669. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4670. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4671. local eff = Instance.new("ParticleEmitter",elocacenter)
  4672. eff.Texture = "rbxassetid://2273224484"
  4673. eff.LightEmission = 1
  4674. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4675. eff.Rate = 1000000
  4676. eff.Lifetime = NumberRange.new(0.5,2)
  4677. 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)})
  4678. 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)})
  4679. eff.Speed = NumberRange.new(20,250)
  4680. eff.Drag = 5
  4681. eff.Rotation = NumberRange.new(-500,500)
  4682. eff.VelocitySpread = 5000000
  4683. eff.RotSpeed = NumberRange.new(-50,50)
  4684. coroutine.resume(coroutine.create(function()
  4685. wait(1)
  4686. eff.Enabled = false
  4687. end))
  4688. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4689. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4690. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4691. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4692. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4693. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4694. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4695. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4696. for i = 0, 24 do
  4697. 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)
  4698. 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)
  4699. 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)
  4700. 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)
  4701. end
  4702. coroutine.resume(coroutine.create(function()
  4703. wait(10)
  4704. elocacenter:Destroy()
  4705. eloca1:Destroy()
  4706. eloca2:Destroy()
  4707. eloca3:Destroy()
  4708. eloca4:Destroy()
  4709. end))
  4710. end))
  4711. attack = false
  4712. end
  4713.  
  4714. function UniversalCollapse()
  4715. attack = true
  4716. local speedearn = 0
  4717. hum.WalkSpeed = 0
  4718. local sbs = Instance.new("BodyPosition", root)
  4719. sbs.P = 3000
  4720. sbs.D = 1000
  4721. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4722. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4723. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4724. for i = 0, 85, 0.1 do
  4725. swait()
  4726. speedearn = speedearn + 0.1
  4727. 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)
  4728. 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)
  4729. 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)
  4730. 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)
  4731. 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)
  4732. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4733. 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)
  4734. 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)
  4735. 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)
  4736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4737. 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)
  4738. 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)
  4739. end
  4740. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4741. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4742. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4743. for i = 0, 25, 0.1 do
  4744. swait()
  4745. speedearn = speedearn + 0.1
  4746. 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)
  4747. 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)
  4748. 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)
  4749. 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)
  4750. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4751. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4752. 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)
  4753. 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)
  4754. 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)
  4755. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4756. 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)
  4757. 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)
  4758. end
  4759. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4760. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4761. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4762. CameraEnshaking(5,50)
  4763. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4764. for i = 0, 2 do
  4765. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4766. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4767. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4768. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4769. end
  4770. for i = 0, 49 do
  4771. 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)
  4772. 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)
  4773. 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)
  4774. 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)
  4775. end
  4776. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4777. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4778. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4779. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4780. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4781. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4782. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4783. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4784. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4785. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4786. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4787. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. for i = 0, 99 do
  4789. 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)
  4790. 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)
  4791. end
  4792. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4793. if v:FindFirstChild('Head') then
  4794. dmg(v)
  4795. end
  4796. end
  4797. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4798. sbs:Destroy()
  4799. hum.WalkSpeed = storehumanoidWS
  4800. attack = false
  4801. end
  4802.  
  4803.  
  4804. function ChaosEND()
  4805. attack = true
  4806. local speedearn = 0
  4807. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4808. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4809. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4810. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4811. for i = 0, 15, 0.1 do
  4812. swait()
  4813. speedearn = speedearn + 0.25
  4814. 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)
  4815. 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)
  4816. 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)
  4817. 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)
  4818. 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)
  4819. 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)
  4820. 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)
  4821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4825. end
  4826. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4827. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4828. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4829. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4830. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4831. CameraEnshaking(5,25)
  4832. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4833. if v:FindFirstChild('Head') then
  4834. dmg(v)
  4835. end
  4836. end
  4837. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4838. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4839. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4840. for i = 0, 3, 0.1 do
  4841. swait()
  4842. 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)
  4843. 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)
  4844. 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)
  4845. 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)
  4846. 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)
  4847. 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)
  4848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4850. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4851. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4852. end
  4853. attack = false
  4854. end
  4855.  
  4856. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4857. local orb = Instance.new("Part", char)
  4858. orb.Anchored = true
  4859. orb.BrickColor = color
  4860. orb.CanCollide = false
  4861. orb.FormFactor = 3
  4862. orb.Name = "Ring"
  4863. orb.Material = "Neon"
  4864. orb.Size = Vector3.new(1, 1, 1)
  4865. orb.Transparency = 0
  4866. orb.TopSurface = 0
  4867. orb.BottomSurface = 0
  4868. local orbm = Instance.new("SpecialMesh", orb)
  4869. orbm.MeshType = "Sphere"
  4870. orb.CFrame = positted
  4871. orbm.Name = "SizeMesh"
  4872. orbm.Scale = vt(1,1,1)
  4873. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4874. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4875. --[[for i = 0, 2 do
  4876. 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)
  4877. end]]--
  4878. coroutine.resume(coroutine.create(function()
  4879. wait(timer)
  4880. CameraEnshaking(3,ShakePower)
  4881. orb.Transparency = 1
  4882. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4883. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4884. --[[for i = 0, 4 do
  4885. 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)
  4886. end]]--
  4887. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4888. wait(3)
  4889. orb:Destroy()
  4890. end))
  4891. end
  4892.  
  4893. function orb_spawn(positted,timer)
  4894. local randomcol = math.random(1,2)
  4895. local orb = Instance.new("Part", char)
  4896. orb.Anchored = true
  4897. if randomcol == 1 then
  4898. orb.BrickColor = BrickColor.new("White")
  4899. elseif randomcol == 2 then
  4900. orb.BrickColor = BrickColor.new("Really black")
  4901. end
  4902. orb.CanCollide = false
  4903. orb.FormFactor = 3
  4904. orb.Name = "Ring"
  4905. orb.Material = "Neon"
  4906. orb.Size = Vector3.new(1, 1, 1)
  4907. orb.Transparency = 0
  4908. orb.TopSurface = 0
  4909. orb.BottomSurface = 0
  4910. local orbm = Instance.new("SpecialMesh", orb)
  4911. orbm.MeshType = "Sphere"
  4912. orb.CFrame = positted
  4913. orbm.Name = "SizeMesh"
  4914. orbm.Scale = vt(1,1,1)
  4915. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4916. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4917. for i = 0, 2 do
  4918. 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)
  4919. end
  4920. coroutine.resume(coroutine.create(function()
  4921. wait(timer)
  4922. CameraEnshaking(3,2)
  4923. orb.Transparency = 1
  4924. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4925. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4926. for i = 0, 4 do
  4927. 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)
  4928. end
  4929. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4930. wait(3)
  4931. orb:Destroy()
  4932. end))
  4933. end
  4934.  
  4935. function scattercorrupt()
  4936. attack = true
  4937. hum.WalkSpeed = 0
  4938. for i = 0, 2, 0.1 do
  4939. swait()
  4940. 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)
  4941. 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)
  4942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4945. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4946. end
  4947. local rot = 0
  4948. local randomrotations = math.random(1,2)
  4949. local lookv = 2.5
  4950. local power = 7
  4951. local radm = math.random(1,3)
  4952. if radm == 1 then
  4953. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4954. elseif radm == 2 then
  4955. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4956. elseif radm == 3 then
  4957. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4958. end
  4959. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4960. for i = 0, 1, 0.1 do
  4961. swait()
  4962. 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)
  4963. 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)
  4964. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4967. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4968. end
  4969. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4970. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4971. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4972. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4973. for i = 0, 9 do
  4974. 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)
  4975. end
  4976. local hite = Instance.new("Part", char)
  4977. hite.Anchored = true
  4978. hite.CanCollide = false
  4979. hite.FormFactor = 3
  4980. hite.Name = "Ring"
  4981. hite.Material = "Neon"
  4982. hite.Size = Vector3.new(1, 1, 1)
  4983. hite.Transparency = 1
  4984. hite.TopSurface = 0
  4985. hite.BottomSurface = 0
  4986. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4987. local rem = Instance.new("Part", char)
  4988. rem.Anchored = true
  4989. rem.CanCollide = false
  4990. rem.FormFactor = 3
  4991. rem.Name = "Ring"
  4992. rem.Material = "Neon"
  4993. rem.Size = Vector3.new(1, 1, 1)
  4994. rem.Transparency = 1
  4995. rem.TopSurface = 0
  4996. rem.BottomSurface = 0
  4997. rem.CFrame = hite.CFrame
  4998. local rem2 = rem:Clone()
  4999. rem2.Parent = char
  5000. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5001. local rem3 = rem:Clone()
  5002. rem3.Parent = char
  5003. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5004. local rem4 = rem:Clone()
  5005. rem4.Parent = char
  5006. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5007. hite:Destroy()
  5008. coroutine.resume(coroutine.create(function()
  5009. for i = 0, 24 do
  5010. swait(1)
  5011. if randomrotations == 1 then
  5012. rot = rot + 1
  5013. elseif randomrotations == 2 then
  5014. rot = rot - 1
  5015. end
  5016. power = power + 0.5
  5017. lookv = lookv + 7.5
  5018. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5019. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5020. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5021. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5022. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5023. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5024. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5025. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5026. end
  5027. end))
  5028. wait(2)
  5029. hum.WalkSpeed = storehumanoidWS
  5030. attack = false
  5031. end
  5032. function yinyangi()
  5033. attack = true
  5034. for i = 0, 2, 0.1 do
  5035. swait()
  5036. 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)
  5037. 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)
  5038. 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)
  5039. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5040. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5041. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5042. end
  5043. local bv = Instance.new("BodyVelocity")
  5044. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5045. bv.velocity = root.CFrame.lookVector*175
  5046. bv.Parent = root
  5047. for Rotations = 0, 9 do
  5048. for i = 0, 1, 0.5 do
  5049. swait()
  5050. bv.velocity = root.CFrame.lookVector*175
  5051. 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)
  5052. 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)
  5053. 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)
  5054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5056. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5057. end
  5058. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5059. for i = 0, 1, 0.5 do
  5060. swait()
  5061. bv.velocity = root.CFrame.lookVector*175
  5062. 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)
  5063. 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)
  5064. 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)
  5065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5068. end
  5069. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5070. for i = 0, 1, 0.5 do
  5071. swait()
  5072. bv.velocity = root.CFrame.lookVector*175
  5073. 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)
  5074. 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)
  5075. 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)
  5076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5079. end
  5080. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5081. for i = 0, 1, 0.5 do
  5082. swait()
  5083. bv.velocity = root.CFrame.lookVector*175
  5084. 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)
  5085. 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)
  5086. 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)
  5087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5088. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5089. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5090. end
  5091. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5092. end
  5093. bv:Destroy()
  5094. attack = false
  5095. end
  5096.  
  5097. function createBGCircle(size,parent,color)
  5098. local bgui = Instance.new("BillboardGui",parent)
  5099. bgui.Size = UDim2.new(size, 0, size, 0)
  5100. local imgc = Instance.new("ImageLabel",bgui)
  5101. imgc.BackgroundTransparency = 1
  5102. imgc.ImageTransparency = 0
  5103. imgc.Size = UDim2.new(1,0,1,0)
  5104. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5105. imgc.ImageColor3 = color
  5106. return bgui,imgc
  5107. end
  5108.  
  5109. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5110. local bgui,imgc = createBGCircle(size,guipar,color)
  5111. bgui.AlwaysOnTop = true
  5112. imgc.Image = "rbxassetid://" ..img
  5113. local rrot = math.random(1,2)
  5114. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5115. coroutine.resume(coroutine.create(function()
  5116. for i = 0, 24*delay do
  5117. swait()
  5118. if rotationenabled == true then
  5119. if rrot == 1 then
  5120. imgc.Rotation = imgc.Rotation + rotsp
  5121. elseif rrot == 2 then
  5122. imgc.Rotation = imgc.Rotation - rotsp
  5123. end
  5124. end
  5125. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5126. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5127. end
  5128. bgui:Destroy()
  5129. end))
  5130. end
  5131. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5132. for i, v in pairs(mw2:GetChildren()) do
  5133. if v:IsA("Part") then
  5134. v.BrickColor = one
  5135. v.Material = "Neon"
  5136. end
  5137. end
  5138. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5139. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5140. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5141. tr1.Color = ColorSequence.new(one.Color)
  5142. tr2.Color = ColorSequence.new(one.Color)
  5143. tr3.Color = ColorSequence.new(one.Color)
  5144. for i, v in pairs(mw1:GetChildren()) do
  5145. if v:IsA("Part") then
  5146. if secondaryenabled == false then
  5147. v.Transparency = 1
  5148. elseif secondaryenabled == true then
  5149. v.Transparency = 0
  5150. end
  5151. v.BrickColor = two
  5152. v.Material = "Neon"
  5153. end
  5154. end
  5155. if secondaryenabled == false then
  5156. tl1.Enabled = false
  5157. tl2.Enabled = false
  5158. tl3.Enabled = false
  5159. elseif secondaryenabled == true then
  5160. tl1.Enabled = true
  5161. tl2.Enabled = true
  5162. tl3.Enabled = true
  5163. end
  5164. tl1.Color = ColorSequence.new(two.Color)
  5165. tl2.Color = ColorSequence.new(two.Color)
  5166. tl3.Color = ColorSequence.new(two.Color)
  5167. for i, v in pairs(m:GetChildren()) do
  5168. if v:IsA("Part") then
  5169. v.BrickColor = three
  5170. v.Material = "Ice"
  5171. end
  5172. end
  5173. for i, v in pairs(m2:GetChildren()) do
  5174. if v:IsA("Part") then
  5175. v.BrickColor = four
  5176. v.Material = "Ice"
  5177. end
  5178. end
  5179. for i, v in pairs(m3:GetChildren()) do
  5180. if v:IsA("Part") then
  5181. v.BrickColor = five
  5182. v.Material = "Neon"
  5183. end
  5184. end
  5185. for i, v in pairs(extrawingmod1:GetChildren()) do
  5186. if v:IsA("Part") then
  5187. v.Transparency = exonetran
  5188. v.BrickColor = exone
  5189. v.Material = "Neon"
  5190. end
  5191. end
  5192. for i, v in pairs(extrawingmod2:GetChildren()) do
  5193. if v:IsA("Part") then
  5194. v.Transparency = extwotran
  5195. v.BrickColor = extwo
  5196. v.Material = "Neon"
  5197. end
  5198. end
  5199. end
  5200.  
  5201.  
  5202. function normalmog()
  5203. attack = true
  5204. hum.WalkSpeed = 0
  5205. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5206. for i = 0,6,0.1 do
  5207. swait()
  5208. 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)
  5209. 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)
  5210. 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)
  5211. 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)
  5212. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5213. 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)
  5214. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5215. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5216. end
  5217. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5218. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5219. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5220. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5221. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5222. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5223. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5224. rainbowmode = false
  5225. chaosmode = false
  5226. ModeOfGlitch = 1
  5227. storehumanoidWS = 16
  5228. newTheme("rbxassetid://723652641",48.6,1,1.25)
  5229. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5230. CameraEnshaking(5,2.5)
  5231. MAINRUINCOLOR = BrickColor.new("Really red")
  5232. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5233. for i = 0, 49 do
  5234. 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)
  5235. end
  5236. for i = 0, 24 do
  5237. 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)
  5238. 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"))
  5239. end
  5240. for i = 0,3,0.1 do
  5241. 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)
  5242. end
  5243. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5244. for i = 0,2,0.1 do
  5245. swait()
  5246. 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)
  5247. 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)
  5248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5249. 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)
  5250. 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)
  5251. 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)
  5252. end
  5253. hum.WalkSpeed = storehumanoidWS
  5254. attack = false
  5255. end
  5256.  
  5257. function attackone()
  5258. attack = true
  5259. local keptcolor = MAINRUINCOLOR
  5260. for i = 0,1,0.1 do
  5261. swait()
  5262. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5263. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5264. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5265. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5266. 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)
  5267. 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)
  5268. end
  5269. local distlook = 5
  5270. coroutine.resume(coroutine.create(function()
  5271. for i = 0, 4 do
  5272. swait(2)
  5273. CameraEnshaking(2,3)
  5274. local hite = Instance.new("Part", char)
  5275. hite.Anchored = true
  5276. hite.CanCollide = false
  5277. hite.FormFactor = 3
  5278. hite.Name = "Ring"
  5279. hite.Material = "Neon"
  5280. hite.Size = Vector3.new(1, 1, 1)
  5281. hite.Transparency = 1
  5282. hite.TopSurface = 0
  5283. hite.BottomSurface = 0
  5284. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5285. 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)
  5286. 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)
  5287. 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)
  5288. 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)
  5289. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5290. for i = 0, 14 do
  5291. local rsiz = math.random(5,20)
  5292. 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)
  5293. end
  5294. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5295. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5296. game:GetService("Debris"):AddItem(hite, 5)
  5297. distlook = distlook + 10
  5298. end
  5299. end))
  5300. for i = 0,1,0.1 do
  5301. swait()
  5302. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5303. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5304. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5305. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5306. 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)
  5307. 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)
  5308. end
  5309. attack = false
  5310. end
  5311.  
  5312. function attacktwo()
  5313. attack = true
  5314. hum.WalkSpeed = 2
  5315. local keptcolor = MAINRUINCOLOR
  5316. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5317. 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)
  5318. 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)
  5319. for i = 0, 14 do
  5320. 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)
  5321. end
  5322. for i = 0,1,0.1 do
  5323. swait()
  5324. 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)
  5325. 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)
  5326. 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)
  5327. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5328. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5329. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5330. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5331. end
  5332. for i = 0, 1 do
  5333. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5334. for i = 0,1,0.6 do
  5335. swait()
  5336. 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)
  5337. 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"))
  5338. 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)
  5339. 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)
  5340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5342. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5343. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5344. end
  5345. for i = 0,1,0.6 do
  5346. swait()
  5347. 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)
  5348. 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"))
  5349. 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)
  5350. 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)
  5351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5353. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5354. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5355. end
  5356. for i = 0,1,0.6 do
  5357. swait()
  5358. 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)
  5359. 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"))
  5360. 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)
  5361. 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)
  5362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5364. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5365. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5366. end
  5367. for i = 0,1,0.6 do
  5368. swait()
  5369. 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)
  5370. 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"))
  5371. 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)
  5372. 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)
  5373. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5374. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5375. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5376. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5377. end
  5378. local rot = 0
  5379. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5380. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5381. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5382. CreateMesh(dis,"Sphere",10,1,10)
  5383. local at1 = Instance.new("Attachment",dis)
  5384. at1.Position = vt(-5,0,0)
  5385. local at2 = Instance.new("Attachment",dis)
  5386. at2.Position = vt(5,0,0)
  5387. local trl = Instance.new('Trail',wed)
  5388. trl.Attachment0 = at1
  5389. trl.Attachment1 = at2
  5390. trl.Texture = "rbxassetid://1049219073"
  5391. trl.LightEmission = 1
  5392. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5393. trl.Color = ColorSequence.new(dis.Color)
  5394. trl.Lifetime = 0.6
  5395. local a = Instance.new("Part",workspace)
  5396. a.Name = "Direction"
  5397. a.Anchored = true
  5398. a.BrickColor = bc("Bright red")
  5399. a.Material = "Neon"
  5400. a.Transparency = 1
  5401. a.CanCollide = false
  5402. local ray = Ray.new(
  5403. dis.CFrame.p, -- origin
  5404. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5405. )
  5406. local ignore = dis
  5407. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5408. a.BottomSurface = 10
  5409. a.TopSurface = 10
  5410. local distance = (dis.CFrame.p - position).magnitude
  5411. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5412. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5413. dis.CFrame = a.CFrame
  5414. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5415. a:Destroy()
  5416. local bv = Instance.new("BodyVelocity")
  5417. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5418. bv.velocity = dis.CFrame.lookVector*250
  5419. bv.Parent = dis
  5420. game:GetService("Debris"):AddItem(dis, 5)
  5421. local hitted = false
  5422. coroutine.resume(coroutine.create(function()
  5423. dis.Touched:connect(function(hit)
  5424. if hitted == false and hit.Parent ~= char then
  5425. hitted = true
  5426. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5427. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5428. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5429. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5430. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5431. coroutine.resume(coroutine.create(function()
  5432. for i = 0, 9 do
  5433. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5434. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5435. local at1 = Instance.new("Attachment",disr)
  5436. at1.Position = vt(-5,0,0)
  5437. local at2 = Instance.new("Attachment",disr)
  5438. at2.Position = vt(5,0,0)
  5439. local trl = Instance.new('Trail',disr)
  5440. trl.Attachment0 = at1
  5441. trl.FaceCamera = true
  5442. trl.Attachment1 = at2
  5443. trl.Texture = "rbxassetid://2342682798"
  5444. trl.LightEmission = 1
  5445. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5446. trl.Color = ColorSequence.new(keptcolor.Color)
  5447. trl.Lifetime = 0.5
  5448. local bv = Instance.new("BodyVelocity")
  5449. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5450. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5451. bv.Parent = disr
  5452. local val = 0
  5453. coroutine.resume(coroutine.create(function()
  5454. swait(30)
  5455. for i = 0, 9 do
  5456. swait()
  5457. val = val + 0.1
  5458. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5459. end
  5460. game:GetService("Debris"):AddItem(disr, 3)
  5461. end))
  5462. end
  5463. local eff = Instance.new("ParticleEmitter",dis)
  5464. eff.Texture = "rbxassetid://2273224484"
  5465. eff.LightEmission = 1
  5466. eff.Color = ColorSequence.new(keptcolor.Color)
  5467. eff.Rate = 500000
  5468. eff.Lifetime = NumberRange.new(0.5,2)
  5469. 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)})
  5470. 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)})
  5471. eff.Speed = NumberRange.new(20,250)
  5472. eff.Drag = 5
  5473. eff.Rotation = NumberRange.new(-500,500)
  5474. eff.VelocitySpread = 9000
  5475. eff.RotSpeed = NumberRange.new(-50,50)
  5476. wait(0.25)
  5477. eff.Enabled = false
  5478. end))
  5479. for i = 0, 9 do
  5480. 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"))
  5481. end
  5482. for i = 0, 19 do
  5483. 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)
  5484. end
  5485. coroutine.resume(coroutine.create(function()
  5486. for i = 0, 19 do
  5487. swait()
  5488. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5489. end
  5490. hum.CameraOffset = vt(0,0,0)
  5491. end))
  5492. dis.Anchored = true
  5493. dis.Transparency = 1
  5494. wait(8)
  5495. dis:Destroy()
  5496. end
  5497. end)
  5498. end))
  5499. rot = rot - 15
  5500. end
  5501. for i = 0,2,0.1 do
  5502. swait()
  5503. 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)
  5504. 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)
  5505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5508. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5509. end
  5510. attack = false
  5511. hum.WalkSpeed = storehumanoidWS
  5512. end
  5513.  
  5514. function attackthree()
  5515. attack = true
  5516. local keptcolor = MAINRUINCOLOR
  5517. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5518. for i = 0,2,0.1 do
  5519. swait()
  5520. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5521. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5522. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5523. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5524. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5525. 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)
  5526. 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)
  5527. end
  5528. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5529. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5530. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5531. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5532. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5533. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5534. for i = 0, 24 do
  5535. 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"))
  5536. end
  5537. for i = 0,4,0.1 do
  5538. swait()
  5539. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5540. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5541. CreateMesh(dis,"Sphere",1,1,1)
  5542. dis.Anchored = true
  5543. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5544. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5545. coroutine.resume(coroutine.create(function()
  5546. swait(30)
  5547. dis.Transparency = 1
  5548. coroutine.resume(coroutine.create(function()
  5549. for i = 0, 19 do
  5550. swait()
  5551. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5552. end
  5553. hum.CameraOffset = vt(0,0,0)
  5554. end))
  5555. coroutine.resume(coroutine.create(function()
  5556. local eff = Instance.new("ParticleEmitter",dis)
  5557. eff.Texture = "rbxassetid://2273224484"
  5558. eff.LightEmission = 1
  5559. eff.Color = ColorSequence.new(dis.Color)
  5560. eff.Rate = 500000
  5561. eff.Lifetime = NumberRange.new(0.5,2)
  5562. 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)})
  5563. 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)})
  5564. eff.Speed = NumberRange.new(50,450)
  5565. eff.Drag = 5
  5566. eff.Rotation = NumberRange.new(-500,500)
  5567. eff.VelocitySpread = 9000
  5568. eff.RotSpeed = NumberRange.new(-50,50)
  5569. wait(0.125)
  5570. eff.Enabled = false
  5571. end))
  5572. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5573. for i = 0, 2 do
  5574. 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)
  5575. end
  5576. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5577. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5578. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5579. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5580. end))
  5581. game:GetService("Debris"):AddItem(dis, 5)
  5582. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5583. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5584. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5586. 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)
  5587. 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)
  5588. end
  5589. attack = false
  5590. end
  5591. ----------------------------------- Abilities
  5592.  
  5593. function ExtinctiveHeartbreak()
  5594. local targetted = nil
  5595. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5596. targetted = mouse.Target.Parent
  5597. end
  5598. if targetted ~= nil then
  5599. attack = true
  5600. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5601. for i = 0, 9 do
  5602. 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)
  5603. end
  5604. for i = 0, 24 do
  5605. 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)
  5606. end
  5607. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5608. local originalpos = root.CFrame
  5609. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5610. for i = 0, 9 do
  5611. 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)
  5612. end
  5613. for i = 0, 24 do
  5614. 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)
  5615. end
  5616. hum.WalkSpeed = 0
  5617. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5618. local radm = math.random(1,3)
  5619. if radm == 1 then
  5620. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5621. elseif radm == 2 then
  5622. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5623. elseif radm == 3 then
  5624. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5625. end
  5626. for i = 0,2,0.1 do
  5627. swait()
  5628. 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)
  5629. 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)
  5630. 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)
  5631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5632. 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)
  5633. 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)
  5634. end
  5635. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5636. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5637. for i = 0,2,0.1 do
  5638. swait()
  5639. coroutine.resume(coroutine.create(function()
  5640. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5641. for i,v in pairs(targetted:GetChildren()) do
  5642. if v:IsA("Part") or v:IsA("MeshPart") then
  5643. v.Velocity = vt(0,0,0)
  5644. end
  5645. end
  5646. end))
  5647. 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)
  5648. 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)
  5649. 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)
  5650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5651. 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)
  5652. 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)
  5653. end
  5654. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5655. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5656. for i = 0, 1 do
  5657. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5658. end
  5659. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5660. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5661. for i = 0,4,0.1 do
  5662. swait()
  5663. coroutine.resume(coroutine.create(function()
  5664. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5665. 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)))
  5666. local at1 = Instance.new("Attachment",dis)
  5667. at1.Position = vt(-25000,0,0)
  5668. local at2 = Instance.new("Attachment",dis)
  5669. at2.Position = vt(25000,0,0)
  5670. local trl = Instance.new('Trail',dis)
  5671. trl.Attachment0 = at1
  5672. trl.FaceCamera = true
  5673. trl.Attachment1 = at2
  5674. trl.Texture = "rbxassetid://1049219073"
  5675. trl.LightEmission = 1
  5676. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5677. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5678. trl.Lifetime = 5
  5679. local bv = Instance.new("BodyVelocity")
  5680. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5681. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5682. bv.Parent = dis
  5683. game:GetService("Debris"):AddItem(dis, 5)
  5684. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5685. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5686. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5687. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5688. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5689. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5690. 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)
  5691. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5692. for i = 0, 2 do
  5693. 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"))
  5694. end
  5695. 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)
  5696. for i,v in pairs(targetted:GetChildren()) do
  5697. if v:IsA("Part") or v:IsA("MeshPart") then
  5698. v.Velocity = vt(0,0,0)
  5699. end
  5700. end
  5701. end))
  5702. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5703. 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)
  5704. 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)
  5705. 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)
  5706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5707. 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)
  5708. 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)
  5709. end
  5710. hum.CameraOffset = vt(0,0,0)
  5711. for i = 0, 49 do
  5712. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5713. 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)))
  5714. local at1 = Instance.new("Attachment",dis)
  5715. at1.Position = vt(-50000,0,0)
  5716. local at2 = Instance.new("Attachment",dis)
  5717. at2.Position = vt(50000,0,0)
  5718. local trl = Instance.new('Trail',dis)
  5719. trl.Attachment0 = at1
  5720. trl.FaceCamera = true
  5721. trl.Attachment1 = at2
  5722. trl.Texture = "rbxassetid://1049219073"
  5723. trl.LightEmission = 1
  5724. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5725. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5726. trl.Lifetime = 5
  5727. local bv = Instance.new("BodyVelocity")
  5728. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5729. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5730. bv.Parent = dis
  5731. game:GetService("Debris"):AddItem(dis, 5)
  5732. end
  5733. for i = 0, 49 do
  5734. 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)
  5735. 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"))
  5736. end
  5737. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5738. for i = 0, 1 do
  5739. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5740. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5741. end
  5742. for i = 0, 4 do
  5743. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5744. end
  5745. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5746. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5747. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5748. dmg(targetted)
  5749. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5750. for i = 0, 9 do
  5751. 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)
  5752. end
  5753. for i = 0, 24 do
  5754. 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)
  5755. end
  5756. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5757. root.CFrame = originalpos
  5758. for i = 0, 9 do
  5759. 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)
  5760. end
  5761. for i = 0, 24 do
  5762. 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)
  5763. end
  5764. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5765. attack = false
  5766. hum.WalkSpeed = storehumanoidWS
  5767. end
  5768. end
  5769.  
  5770. function CorruptionEvent()
  5771. attack = true
  5772. hum.WalkSpeed = 0
  5773. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5774. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5775. local keptcolor = MAINRUINCOLOR
  5776. for i = 0,4,0.1 do
  5777. swait()
  5778. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5779. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5780. 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)
  5781. 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)
  5782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5784. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5785. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5786. end
  5787. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5788. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5789. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5790. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5791. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5792. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5793. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5794. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5795. hum.CameraOffset = vt(0,0,0)
  5796. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5797. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5798. for i = 0, 24 do
  5799. 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"))
  5800. end
  5801. local rrot = 0
  5802. coroutine.resume(coroutine.create(function()
  5803. for i = 0, 4 do
  5804. rrot = rrot + 45
  5805. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5806. xa.Anchored = true
  5807. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5808. xb.Anchored = true
  5809. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5810. xc.Anchored = true
  5811. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5812. xd.Anchored = true
  5813. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5814. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5815. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5816. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5817. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5818. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5819. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5820. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5821. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5822. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5823. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5824. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5825. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5826. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5827. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5828. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5829. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5830. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5831. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5832. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5833. for i = 0, 9 do
  5834. 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"))
  5835. 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"))
  5836. 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"))
  5837. 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"))
  5838. end
  5839. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5840. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5841. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5842. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5843. 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)
  5844. 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)
  5845. 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)
  5846. 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)
  5847. 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))
  5848. 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))
  5849. 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))
  5850. 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))
  5851. game:GetService("Debris"):AddItem(xa, 5)
  5852. game:GetService("Debris"):AddItem(xb, 5)
  5853. game:GetService("Debris"):AddItem(xc, 5)
  5854. game:GetService("Debris"):AddItem(xd, 5)
  5855. coroutine.resume(coroutine.create(function()
  5856. for i = 0, 19 do
  5857. swait()
  5858. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5859. end
  5860. hum.CameraOffset = vt(0,0,0)
  5861. end))
  5862. swait(9)
  5863. end
  5864. end))
  5865. for i = 0,2,0.1 do
  5866. swait()
  5867. 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)
  5868. 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)
  5869. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5871. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5872. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5873. end
  5874. attack = false
  5875. hum.WalkSpeed = storehumanoidWS
  5876. end
  5877.  
  5878. function EndGROUND()
  5879. attack = true
  5880. hum.WalkSpeed = 0
  5881. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5882. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5883. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5884. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5885. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5886. local keptcolor = MAINRUINCOLOR
  5887. for i = 0,4,0.1 do
  5888. swait()
  5889. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5890. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5891. 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"))
  5892. 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)
  5893. 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)
  5894. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5895. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5896. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5897. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5898. end
  5899. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5900. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5901. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5902. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5903. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5904. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5905. coroutine.resume(coroutine.create(function()
  5906. local shval = 10
  5907. for i = 0, 99 do
  5908. swait()
  5909. shval = shval - 0.1
  5910. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5911. end
  5912. hum.CameraOffset = vt(0,0,0)
  5913. end))
  5914. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5915. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5916. for i = 0, 24 do
  5917. 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"))
  5918. end
  5919. local rrot = 0
  5920. local xam = 1
  5921. coroutine.resume(coroutine.create(function()
  5922. for i = 0, 14 do
  5923. --swait()
  5924. rrot = rrot + 40*xam
  5925. xam = xam + 0.25
  5926. local bonus = xam
  5927. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5928. xa.Anchored = true
  5929. xa.Color = Color3.new(0,0,0)
  5930. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5931. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5932. local xc = 0
  5933. coroutine.resume(coroutine.create(function()
  5934. for i = 0, 99 do
  5935. swait()
  5936. xc = xc + 0.01
  5937. xa.Color = Color3.new(xc,0,0)
  5938. end
  5939. xa.Transparency = 1
  5940. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5941. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5942. for i = 0, 9 do
  5943. 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"))
  5944. end
  5945. 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)
  5946. 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)
  5947. 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))
  5948. game:GetService("Debris"):AddItem(xa, 5)
  5949. coroutine.resume(coroutine.create(function()
  5950. for i = 0, 19 do
  5951. swait()
  5952. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5953. end
  5954. hum.CameraOffset = vt(0,0,0)
  5955. end))
  5956. end))
  5957. end
  5958. end))
  5959. for i = 0,2,0.1 do
  5960. swait()
  5961. 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)
  5962. 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)
  5963. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5964. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5965. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5966. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5967. end
  5968. attack = false
  5969. hum.WalkSpeed = storehumanoidWS
  5970. end
  5971.  
  5972. function HeavenlyDisk()
  5973. attack = true
  5974. hum.WalkSpeed = 2
  5975. local keptcolor = MAINRUINCOLOR
  5976. local radm = math.random(1,3)
  5977. if radm == 1 then
  5978. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5979. elseif radm == 2 then
  5980. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5981. elseif radm == 3 then
  5982. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5983. end
  5984. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5985. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5986. 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)
  5987. 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)
  5988. for i = 0, 14 do
  5989. 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)
  5990. end
  5991. for i = 0,2,0.1 do
  5992. swait()
  5993. 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)
  5994. 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)
  5995. 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)
  5996. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5998. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5999. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6000. end
  6001. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6002. for i = 0,1,0.6 do
  6003. swait()
  6004. 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)
  6005. 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"))
  6006. 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)
  6007. 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)
  6008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6011. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6012. end
  6013. for i = 0,1,0.6 do
  6014. swait()
  6015. 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)
  6016. 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"))
  6017. 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)
  6018. 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)
  6019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6022. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6023. end
  6024. for i = 0,1,0.6 do
  6025. swait()
  6026. 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)
  6027. 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"))
  6028. 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)
  6029. 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)
  6030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6033. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6034. end
  6035. for i = 0,1,0.6 do
  6036. swait()
  6037. 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)
  6038. 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"))
  6039. 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)
  6040. 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)
  6041. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6042. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6044. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6045. end
  6046. local rot = 15
  6047. for i = 0, 2 do
  6048. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6049. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6050. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6051. CreateMesh(dis,"Sphere",10,1,10)
  6052. local at1 = Instance.new("Attachment",dis)
  6053. at1.Position = vt(-5,0,0)
  6054. local at2 = Instance.new("Attachment",dis)
  6055. at2.Position = vt(5,0,0)
  6056. local trl = Instance.new('Trail',wed)
  6057. trl.Attachment0 = at1
  6058. trl.Attachment1 = at2
  6059. trl.Texture = "rbxassetid://1049219073"
  6060. trl.LightEmission = 1
  6061. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6062. trl.Color = ColorSequence.new(dis.Color)
  6063. trl.Lifetime = 0.6
  6064. local a = Instance.new("Part",workspace)
  6065. a.Name = "Direction"
  6066. a.Anchored = true
  6067. a.BrickColor = bc("Bright red")
  6068. a.Material = "Neon"
  6069. a.Transparency = 1
  6070. a.CanCollide = false
  6071. local ray = Ray.new(
  6072. dis.CFrame.p, -- origin
  6073. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6074. )
  6075. local ignore = dis
  6076. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6077. a.BottomSurface = 10
  6078. a.TopSurface = 10
  6079. local distance = (dis.CFrame.p - position).magnitude
  6080. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6081. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6082. dis.CFrame = a.CFrame
  6083. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6084. a:Destroy()
  6085. local bv = Instance.new("BodyVelocity")
  6086. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6087. bv.velocity = dis.CFrame.lookVector*250
  6088. bv.Parent = dis
  6089. game:GetService("Debris"):AddItem(dis, 5)
  6090. local hitted = false
  6091. coroutine.resume(coroutine.create(function()
  6092. dis.Touched:connect(function(hit)
  6093. if hitted == false and hit.Parent ~= char then
  6094. hitted = true
  6095. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6096. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6097. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6098. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6099. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6100. coroutine.resume(coroutine.create(function()
  6101. for i = 0, 9 do
  6102. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6103. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6104. local at1 = Instance.new("Attachment",disr)
  6105. at1.Position = vt(-2,0,0)
  6106. local at2 = Instance.new("Attachment",disr)
  6107. at2.Position = vt(2,0,0)
  6108. local trl = Instance.new('Trail',disr)
  6109. trl.Attachment0 = at1
  6110. trl.FaceCamera = true
  6111. trl.Attachment1 = at2
  6112. trl.Texture = "rbxassetid://2342682798"
  6113. trl.LightEmission = 1
  6114. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6115. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6116. trl.Lifetime = 0.5
  6117. local bv = Instance.new("BodyVelocity")
  6118. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6119. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6120. bv.Parent = disr
  6121. local val = 0
  6122. coroutine.resume(coroutine.create(function()
  6123. swait(30)
  6124. for i = 0, 9 do
  6125. swait()
  6126. val = val + 0.1
  6127. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6128. end
  6129. game:GetService("Debris"):AddItem(disr, 3)
  6130. end))
  6131. end
  6132. local eff = Instance.new("ParticleEmitter",dis)
  6133. eff.Texture = "rbxassetid://2273224484"
  6134. eff.LightEmission = 1
  6135. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6136. eff.Rate = 500000
  6137. eff.Lifetime = NumberRange.new(0.5,2)
  6138. 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)})
  6139. 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)})
  6140. eff.Speed = NumberRange.new(20,250)
  6141. eff.Drag = 5
  6142. eff.Rotation = NumberRange.new(-500,500)
  6143. eff.VelocitySpread = 9000
  6144. eff.RotSpeed = NumberRange.new(-50,50)
  6145. wait(0.25)
  6146. eff.Enabled = false
  6147. end))
  6148. for i = 0, 9 do
  6149. 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"))
  6150. end
  6151. for i = 0, 19 do
  6152. 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)
  6153. end
  6154. coroutine.resume(coroutine.create(function()
  6155. for i = 0, 19 do
  6156. swait()
  6157. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6158. end
  6159. hum.CameraOffset = vt(0,0,0)
  6160. end))
  6161. dis.Anchored = true
  6162. dis.Transparency = 1
  6163. wait(8)
  6164. dis:Destroy()
  6165. end
  6166. end)
  6167. end))
  6168. rot = rot - 15
  6169. end
  6170. for i = 0,2,0.1 do
  6171. swait()
  6172. 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)
  6173. 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)
  6174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6176. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6177. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6178. end
  6179. attack = false
  6180. hum.WalkSpeed = storehumanoidWS
  6181. end
  6182.  
  6183.  
  6184. function RapidBurst()
  6185. attack = true
  6186. hum.WalkSpeed = 0
  6187. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6188. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6189. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6190. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6191. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6192. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6193. local keptcolor = MAINRUINCOLOR
  6194. for i = 0,8,0.1 do
  6195. swait()
  6196. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6197. 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())
  6198. 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)
  6199. 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)
  6200. 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)
  6201. 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)
  6202. 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)
  6203. 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)
  6204. 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)
  6205. end
  6206. for i = 0, 99 do
  6207. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6208. 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)))
  6209. local at1 = Instance.new("Attachment",dis)
  6210. at1.Position = vt(-25000,0,0)
  6211. local at2 = Instance.new("Attachment",dis)
  6212. at2.Position = vt(25000,0,0)
  6213. local trl = Instance.new('Trail',dis)
  6214. trl.Attachment0 = at1
  6215. trl.FaceCamera = true
  6216. trl.Attachment1 = at2
  6217. trl.Texture = "rbxassetid://1049219073"
  6218. trl.LightEmission = 1
  6219. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6220. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6221. trl.Lifetime = 5
  6222. local bv = Instance.new("BodyVelocity")
  6223. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6224. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6225. bv.Parent = dis
  6226. game:GetService("Debris"):AddItem(dis, 5)
  6227. end
  6228. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6229. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6230. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6231. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6232. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6233. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6234. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6235. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6236. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6237. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6238. hum.CameraOffset = vt(0,0,0)
  6239. for i = 0, 24 do
  6240. 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())
  6241. end
  6242. local distam = 0
  6243. coroutine.resume(coroutine.create(function()
  6244. for i = 0, 99 do
  6245. wait()
  6246. distam = distam + 1
  6247. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6248. xa.Anchored = true
  6249. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6250. game:GetService("Debris"):AddItem(xa, 5)
  6251. for i = 0, 4 do
  6252. 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())
  6253. end
  6254. coroutine.resume(coroutine.create(function()
  6255. local eff = Instance.new("ParticleEmitter",xa)
  6256. eff.Texture = "rbxassetid://2273224484"
  6257. eff.LightEmission = 1
  6258. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6259. eff.Rate = 500000
  6260. eff.Lifetime = NumberRange.new(1,3)
  6261. 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)})
  6262. 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)})
  6263. eff.Speed = NumberRange.new(50,500)
  6264. eff.Drag = 5
  6265. eff.Rotation = NumberRange.new(-500,500)
  6266. eff.VelocitySpread = 9000
  6267. eff.RotSpeed = NumberRange.new(-50,50)
  6268. wait(0.25)
  6269. eff.Enabled = false
  6270. end))
  6271. coroutine.resume(coroutine.create(function()
  6272. for i = 0, 19 do
  6273. swait()
  6274. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6275. end
  6276. hum.CameraOffset = vt(0,0,0)
  6277. end))
  6278. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6279. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6280. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6281. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6282. end
  6283. end))
  6284. attack = false
  6285. hum.WalkSpeed = storehumanoidWS
  6286. end
  6287.  
  6288.  
  6289. function FallenOrbs()
  6290. attack = true
  6291. hum.WalkSpeed = 2
  6292. local keptcolor = MAINRUINCOLOR
  6293. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6294. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6295. local radm = math.random(1,3)
  6296. if radm == 1 then
  6297. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6298. elseif radm == 2 then
  6299. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6300. elseif radm == 3 then
  6301. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6302. end
  6303. coroutine.resume(coroutine.create(function()
  6304. for i = 0, 29 do
  6305. swait(2)
  6306. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6307. dis.Anchored = true
  6308. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6309. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6310. CreateMesh(dis,"Sphere",2,2,2)
  6311. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6312. 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"))
  6313. coroutine.resume(coroutine.create(function()
  6314. wait(0.5)
  6315. dis.Anchored = false
  6316. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6317. local at1 = Instance.new("Attachment",dis)
  6318. at1.Position = vt(-1,0,0)
  6319. local at2 = Instance.new("Attachment",dis)
  6320. at2.Position = vt(1,0,0)
  6321. local trl = Instance.new('Trail',dis)
  6322. trl.Attachment0 = at1
  6323. trl.FaceCamera = true
  6324. trl.Attachment1 = at2
  6325. trl.Texture = "rbxassetid://1049219073"
  6326. trl.LightEmission = 1
  6327. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6328. trl.Color = ColorSequence.new(dis.Color)
  6329. trl.Lifetime = 0.6
  6330. local a = Instance.new("Part",workspace)
  6331. a.Name = "Direction"
  6332. a.Anchored = true
  6333. a.BrickColor = bc("Bright red")
  6334. a.Material = "Neon"
  6335. a.Transparency = 1
  6336. a.CanCollide = false
  6337. local ray = Ray.new(
  6338. dis.CFrame.p, -- origin
  6339. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6340. )
  6341. local ignore = dis
  6342. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6343. a.BottomSurface = 10
  6344. a.TopSurface = 10
  6345. local distance = (dis.CFrame.p - position).magnitude
  6346. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6347. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6348. dis.CFrame = a.CFrame
  6349. a:Destroy()
  6350. local bv = Instance.new("BodyVelocity")
  6351. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6352. bv.velocity = dis.CFrame.lookVector*500
  6353. bv.Parent = dis
  6354. game:GetService("Debris"):AddItem(dis, 5)
  6355. local hitted = false
  6356. coroutine.resume(coroutine.create(function()
  6357. dis.Touched:connect(function(hit)
  6358. if hitted == false and hit.Parent ~= char then
  6359. hitted = true
  6360. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6361. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6362. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6363. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6364. coroutine.resume(coroutine.create(function()
  6365. for i = 0, 4 do
  6366. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6367. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6368. local at1 = Instance.new("Attachment",disr)
  6369. at1.Position = vt(-10,0,0)
  6370. local at2 = Instance.new("Attachment",disr)
  6371. at2.Position = vt(10,0,0)
  6372. local trl = Instance.new('Trail',disr)
  6373. trl.Attachment0 = at1
  6374. trl.FaceCamera = true
  6375. trl.Attachment1 = at2
  6376. trl.Texture = "rbxassetid://2342682798"
  6377. trl.LightEmission = 1
  6378. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6379. trl.Color = ColorSequence.new(disr.Color)
  6380. trl.Lifetime = 0.5
  6381. local bv = Instance.new("BodyVelocity")
  6382. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6383. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6384. bv.Parent = disr
  6385. local val = 0
  6386. coroutine.resume(coroutine.create(function()
  6387. swait(30)
  6388. for i = 0, 9 do
  6389. swait()
  6390. val = val + 0.1
  6391. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6392. end
  6393. game:GetService("Debris"):AddItem(disr, 3)
  6394. end))
  6395. end
  6396. local eff = Instance.new("ParticleEmitter",dis)
  6397. eff.Texture = "rbxassetid://1049219073"
  6398. eff.LightEmission = 1
  6399. eff.Color = ColorSequence.new(dis.Color)
  6400. eff.Rate = 500000
  6401. eff.Lifetime = NumberRange.new(0.5,2)
  6402. 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)})
  6403. 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)})
  6404. eff.Speed = NumberRange.new(20,250)
  6405. eff.Drag = 5
  6406. eff.Rotation = NumberRange.new(-500,500)
  6407. eff.VelocitySpread = 9000
  6408. eff.RotSpeed = NumberRange.new(-50,50)
  6409. wait(0.5)
  6410. eff.Enabled = false
  6411. end))
  6412. for i = 0, 4 do
  6413. 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"))
  6414. end
  6415. coroutine.resume(coroutine.create(function()
  6416. for i = 0, 19 do
  6417. swait()
  6418. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6419. end
  6420. hum.CameraOffset = vt(0,0,0)
  6421. end))
  6422. dis.Anchored = true
  6423. dis.Transparency = 1
  6424. wait(8)
  6425. dis:Destroy()
  6426. end
  6427. end)
  6428. end))
  6429. end))
  6430. end
  6431. end))
  6432. for i = 0,9,0.1 do
  6433. swait()
  6434. 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)
  6435. 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)
  6436. 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)
  6437. 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)
  6438. 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)
  6439. 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)
  6440. 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)
  6441. end
  6442. attack = false
  6443. hum.WalkSpeed = storehumanoidWS
  6444. end
  6445.  
  6446. function CyberSlash()
  6447. local posit = -2
  6448. attack = true
  6449. hum.WalkSpeed = 5
  6450. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6451. local radm = math.random(1,3)
  6452. if radm == 1 then
  6453. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6454. elseif radm == 2 then
  6455. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6456. elseif radm == 3 then
  6457. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6458. end
  6459. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6460. for i = 0,2,0.1 do
  6461. swait()
  6462. 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)
  6463. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6464. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6466. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6467. 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)
  6468. 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)
  6469. end
  6470. for i = 0, 2 do
  6471. CameraEnshaking(1,2)
  6472. local hite = Instance.new("Part", char)
  6473. hite.Anchored = true
  6474. hite.CanCollide = false
  6475. hite.FormFactor = 3
  6476. hite.Name = "Ring"
  6477. hite.Material = "Neon"
  6478. hite.Size = Vector3.new(1, 1, 1)
  6479. hite.Transparency = 1
  6480. hite.TopSurface = 0
  6481. hite.BottomSurface = 0
  6482. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6483. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6484. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6485. coroutine.resume(coroutine.create(function()
  6486. for i = 0, 1 do
  6487. swait()
  6488. 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)
  6489. 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)
  6490. 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)
  6491. end
  6492. end))
  6493. 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)
  6494. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6495. game:GetService("Debris"):AddItem(hite, 5)
  6496. posit = posit + 2
  6497. end
  6498. for i = 0,1,0.1 do
  6499. swait()
  6500. 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)
  6501. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6502. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6503. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6504. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6505. 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)
  6506. 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)
  6507. end
  6508. for i = 0,1,0.1 do
  6509. swait()
  6510. 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)
  6511. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6512. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6513. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6514. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6515. 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)
  6516. 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)
  6517. end
  6518. posit = -6
  6519. for i = 0, 6 do
  6520. CameraEnshaking(1,3)
  6521. local hite = Instance.new("Part", char)
  6522. hite.Anchored = true
  6523. hite.CanCollide = false
  6524. hite.FormFactor = 3
  6525. hite.Name = "Ring"
  6526. hite.Material = "Neon"
  6527. hite.Size = Vector3.new(1, 1, 1)
  6528. hite.Transparency = 1
  6529. hite.TopSurface = 0
  6530. hite.BottomSurface = 0
  6531. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6532. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6533. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6534. 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)
  6535. coroutine.resume(coroutine.create(function()
  6536. for i = 0, 2 do
  6537. swait()
  6538. 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)
  6539. 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)
  6540. 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)
  6541. end
  6542. end))
  6543. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6544. game:GetService("Debris"):AddItem(hite, 5)
  6545. posit = posit + 2
  6546. end
  6547. for i = 0,1,0.1 do
  6548. swait()
  6549. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  6550. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6551. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6552. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6553. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6554. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  6555. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  6556. end
  6557. hum.WalkSpeed = storehumanoidWS
  6558. attack = false
  6559. end
  6560.  
  6561. function EquinoxOrbs()
  6562. hum.WalkSpeed = 0
  6563. attack = true
  6564. local radm = math.random(1,3)
  6565. if radm == 1 then
  6566. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6567. elseif radm == 2 then
  6568. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6569. elseif radm == 3 then
  6570. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6571. end
  6572. for i = 0,1,0.1 do
  6573. swait()
  6574. 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)
  6575. 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)
  6576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6578. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6579. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6580. end
  6581. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6582. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6583. for i = 0, 24 do
  6584. 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"))
  6585. end
  6586. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6587. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6588. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6589. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6590. for i = 0,4,0.1 do
  6591. swait()
  6592. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6593. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6594. CreateMesh(dis,"Sphere",1,1,1)
  6595. dis.Anchored = true
  6596. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6597. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6598. CreateMesh(dis2,"Sphere",1,1,1)
  6599. dis2.Anchored = true
  6600. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6601. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6602. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6603. coroutine.resume(coroutine.create(function()
  6604. swait(60)
  6605. dis.Transparency = 1
  6606. dis2.Transparency = 1
  6607. coroutine.resume(coroutine.create(function()
  6608. for i = 0, 19 do
  6609. swait()
  6610. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6611. end
  6612. hum.CameraOffset = vt(0,0,0)
  6613. end))
  6614. coroutine.resume(coroutine.create(function()
  6615. local eff = Instance.new("ParticleEmitter",dis)
  6616. eff.Texture = "rbxassetid://2273224484"
  6617. eff.LightEmission = 1
  6618. eff.Color = ColorSequence.new(dis.Color)
  6619. eff.Rate = 500000
  6620. eff.Lifetime = NumberRange.new(0.5,2)
  6621. 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)})
  6622. 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)})
  6623. eff.Speed = NumberRange.new(50,450)
  6624. eff.Drag = 5
  6625. eff.Rotation = NumberRange.new(-500,500)
  6626. eff.VelocitySpread = 9000
  6627. eff.RotSpeed = NumberRange.new(-50,50)
  6628. local eff2 = eff:Clone()
  6629. eff2.Parent = dis2
  6630. eff2.LightEmission = 0
  6631. eff2.Color = ColorSequence.new(dis2.Color)
  6632. wait(0.25)
  6633. eff.Enabled = false
  6634. eff2.Enabled = false
  6635. end))
  6636. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6637. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6638. for i = 0, 2 do
  6639. 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)
  6640. 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)
  6641. end
  6642. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6643. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6644. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6645. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6646. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6647. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6648. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6649. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6650. end))
  6651. game:GetService("Debris"):AddItem(dis, 5)
  6652. game:GetService("Debris"):AddItem(dis2, 5)
  6653. 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)
  6654. 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)
  6655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6657. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6658. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6659. end
  6660. attack = false
  6661. hum.WalkSpeed = storehumanoidWS
  6662. end
  6663. function FallenDEMISE()
  6664. attack = true
  6665. hum.WalkSpeed = 0
  6666. local keptcolor = MAINRUINCOLOR
  6667. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6668. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6669. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6670. for i = 0, 15, 0.1 do
  6671. swait()
  6672. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6673. 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)))
  6674. local at1 = Instance.new("Attachment",dis)
  6675. at1.Position = vt(-25000,0,0)
  6676. local at2 = Instance.new("Attachment",dis)
  6677. at2.Position = vt(25000,0,0)
  6678. local trl = Instance.new('Trail',dis)
  6679. trl.Attachment0 = at1
  6680. trl.FaceCamera = true
  6681. trl.Attachment1 = at2
  6682. trl.Texture = "rbxassetid://1049219073"
  6683. trl.LightEmission = 1
  6684. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6685. trl.Color = ColorSequence.new(dis.Color)
  6686. trl.Lifetime = 5
  6687. local bv = Instance.new("BodyVelocity")
  6688. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6689. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6690. bv.Parent = dis
  6691. game:GetService("Debris"):AddItem(dis, 1)
  6692. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6693. 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"))
  6694. 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"))
  6695. 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)
  6696. 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)
  6697. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6699. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6700. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6701. end
  6702. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6703. for i = 0, 30, 0.1 do
  6704. swait()
  6705. coroutine.resume(coroutine.create(function()
  6706. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6707. if v:FindFirstChild('Head') then
  6708. dmg(v)
  6709. end
  6710. end
  6711. end))
  6712. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6713. 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)))
  6714. local at1 = Instance.new("Attachment",dis)
  6715. at1.Position = vt(-50000,0,0)
  6716. local at2 = Instance.new("Attachment",dis)
  6717. at2.Position = vt(50000,0,0)
  6718. local trl = Instance.new('Trail',dis)
  6719. trl.Attachment0 = at1
  6720. trl.FaceCamera = true
  6721. trl.Attachment1 = at2
  6722. trl.Texture = "rbxassetid://1049219073"
  6723. trl.LightEmission = 1
  6724. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6725. trl.Color = ColorSequence.new(dis.Color)
  6726. trl.Lifetime = 10
  6727. local bv = Instance.new("BodyVelocity")
  6728. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6729. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6730. bv.Parent = dis
  6731. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6732. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6733. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6734. 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"))
  6735. 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"))
  6736. 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"))
  6737. 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"))
  6738. for i = 0, 2 do
  6739. 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)
  6740. end
  6741. 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)
  6742. 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)
  6743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6745. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6746. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6747. end
  6748. attack = false
  6749. hum.WalkSpeed = storehumanoidWS
  6750. end
  6751.  
  6752. function SpeedDrop()
  6753. attack = true
  6754. hum.WalkSpeed = 0
  6755. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6756. local poste = 3
  6757. local rotation = 0
  6758. local rate = 0
  6759. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6760. for i = 0, 124 do
  6761. swait()
  6762. rotation = rotation + rate
  6763. poste = poste + 0.1
  6764. rate = rate + 0.1
  6765. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6766. 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)
  6767. 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)
  6768. 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)
  6769. 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)
  6770. 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)
  6771. 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)
  6772. 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)
  6773. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6774. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6775. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6776. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6777. end
  6778. CameraEnshaking(3,7)
  6779. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6780. local loc = Instance.new("Part", char)
  6781. loc.BrickColor = MAINRUINCOLOR
  6782. loc.CanCollide = false
  6783. loc.FormFactor = 3
  6784. loc.Name = "Ring"
  6785. loc.Material = "Neon"
  6786. loc.Size = Vector3.new(1, 1, 1)
  6787. loc.Transparency = 1
  6788. loc.TopSurface = 0
  6789. loc.BottomSurface = 0
  6790. loc.Anchored = true
  6791. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6792. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6793. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6794. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6795. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6796. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6797. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6798. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6799. coroutine.resume(coroutine.create(function()
  6800. local eff = Instance.new("ParticleEmitter",loc)
  6801. eff.Texture = "rbxassetid://363275192"
  6802. eff.LightEmission = 0.95
  6803. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6804. eff.Rate = 10000
  6805. eff.Lifetime = NumberRange.new(1)
  6806. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6807. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6808. eff.Speed = NumberRange.new(100,500)
  6809. eff.Drag = 5
  6810. eff.Rotation = NumberRange.new(-500,500)
  6811. eff.VelocitySpread = 9000
  6812. eff.RotSpeed = NumberRange.new(-50,50)
  6813. wait(0.5)
  6814. eff.Enabled = false
  6815. end))
  6816. for i = 0, 49 do
  6817. 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)
  6818. end
  6819. for i = 0, 9 do
  6820. 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)
  6821. end
  6822. game:GetService("Debris"):AddItem(loc, 5)
  6823. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6824. hum.WalkSpeed = storehumanoidWS
  6825. attack = false
  6826. end
  6827.  
  6828. function cutesigh()
  6829. attack = true
  6830. hum.WalkSpeed = 0
  6831. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6832. local blush = Instance.new("Decal",hed)
  6833. blush.Texture = "rbxassetid://898404027"
  6834. blush.Face = "Front"
  6835. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6836. for i = 0, 9, 0.1 do
  6837. swait()
  6838. 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)
  6839. 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)
  6840. 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)
  6841. 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)
  6842. 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)
  6843. 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)
  6844. end
  6845. coroutine.resume(coroutine.create(function()
  6846. for i = 0, 49 do
  6847. swait()
  6848. blush.Transparency = blush.Transparency + 0.02
  6849. end
  6850. blush:Destroy()
  6851. end))
  6852. hum.WalkSpeed = storehumanoidWS
  6853. attack = false
  6854. end
  6855.  
  6856. function smiter()
  6857. local targetted = nil
  6858. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6859. targetted = mouse.Target.Parent
  6860. end
  6861. if targetted ~= nil then
  6862. RootPart.CFrame = FaceMouse()[1]
  6863. attack = true
  6864. local radm = math.random(1,3)
  6865. if radm == 1 then
  6866. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6867. elseif radm == 2 then
  6868. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6869. elseif radm == 3 then
  6870. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6871. end
  6872. hum.WalkSpeed = 0
  6873. coroutine.resume(coroutine.create(function()
  6874. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6875. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6876. local vel = Instance.new("BodyPosition", targetted.Head)
  6877. vel.P = 12500
  6878. vel.D = 1000
  6879. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6880. vel.position = targetted.Head.CFrame.p
  6881. end))
  6882. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6883. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6884. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6885. for i = 0,4,0.1 do
  6886. swait()
  6887. 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)
  6888. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6889. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6890. 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)
  6891. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6892. 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)
  6893. 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)
  6894. end
  6895. coroutine.resume(coroutine.create(function()
  6896. CameraEnshaking(6,5)
  6897. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  6898. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  6899. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  6900. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  6901. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6902. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6903. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6904. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6905. coroutine.resume(coroutine.create(function()
  6906. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6907. eff.Texture = "rbxassetid://2273224484"
  6908. eff.LightEmission = 1
  6909. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6910. eff.Rate = 500000
  6911. eff.Lifetime = NumberRange.new(0.5,2)
  6912. 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)})
  6913. 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)})
  6914. eff.Speed = NumberRange.new(20,250)
  6915. eff.Drag = 5
  6916. eff.Rotation = NumberRange.new(-500,500)
  6917. eff.VelocitySpread = 9000
  6918. eff.RotSpeed = NumberRange.new(-50,50)
  6919. wait(0.25)
  6920. eff.Enabled = false
  6921. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6922. eff.Texture = "rbxassetid://363275192"
  6923. eff.LightEmission = 0.95
  6924. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6925. eff.Rate = 10000
  6926. eff.Lifetime = NumberRange.new(1.5)
  6927. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6928. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6929. eff.Speed = NumberRange.new(25,150)
  6930. eff.Drag = 5
  6931. eff.Rotation = NumberRange.new(-500,500)
  6932. eff.VelocitySpread = 9000
  6933. eff.RotSpeed = NumberRange.new(-50,50)
  6934. local eff2 = eff:Clone()
  6935. eff2.Parent = targetted.Head
  6936. eff2.Texture = "rbxassetid://284205403"
  6937. eff2.Rate = 10000
  6938. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6939. eff2.Drag = 5
  6940. eff2.Rotation = NumberRange.new(-500,500)
  6941. eff2.VelocitySpread = 9000
  6942. wait(0.5)
  6943. eff2.Enabled = false
  6944. eff.Enabled = false
  6945. end))
  6946. for i = 0, 9 do
  6947. 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)
  6948. end
  6949. for i = 0, 49 do
  6950. local rsiz = math.random(10,50)
  6951. 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)
  6952. end
  6953. game:GetService("Debris"):AddItem(vel,1)
  6954. dmg(targetted)
  6955. end))
  6956. for i = 0,1,0.1 do
  6957. swait()
  6958. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  6959. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  6960. 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)
  6961. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6962. 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)
  6963. 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)
  6964. end
  6965. attack = false
  6966. hum.WalkSpeed = storehumanoidWS
  6967. end
  6968. end
  6969.  
  6970. function shytaunty()
  6971. attack = true
  6972. hum.WalkSpeed = 0
  6973. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  6974. local blush = Instance.new("Decal",hed)
  6975. blush.Texture = "rbxassetid://898404027"
  6976. blush.Face = "Front"
  6977. for i = 0, 13, 0.1 do
  6978. swait()
  6979. 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)
  6980. 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)
  6981. 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)
  6982. 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)
  6983. 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)
  6984. 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)
  6985. end
  6986. coroutine.resume(coroutine.create(function()
  6987. for i = 0, 49 do
  6988. swait()
  6989. blush.Transparency = blush.Transparency + 0.02
  6990. end
  6991. blush:Destroy()
  6992. end))
  6993. hum.WalkSpeed = storehumanoidWS
  6994. attack = false
  6995. end
  6996.  
  6997. function PureBomb()
  6998. attack = true
  6999. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7000. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7001. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7002. local orb = Instance.new("Part", char)
  7003. orb.Anchored = true
  7004. orb.BrickColor = BrickColor.new("Toothpaste")
  7005. orb.CanCollide = false
  7006. orb.FormFactor = 3
  7007. orb.Name = "Ring"
  7008. orb.Material = "Neon"
  7009. orb.Size = Vector3.new(1, 1, 1)
  7010. orb.Transparency = 0
  7011. orb.TopSurface = 0
  7012. orb.BottomSurface = 0
  7013. local orbm = Instance.new("SpecialMesh", orb)
  7014. orbm.MeshType = "Sphere"
  7015. orbm.Name = "SizeMesh"
  7016. orbm.Scale = vt(0,0,0)
  7017. local scaled = 0.1
  7018. local posid = 0
  7019. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7020. for i = 0, 5, 0.1 do
  7021. swait()
  7022. scaled = scaled - 0.001
  7023. posid = posid - scaled
  7024. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7025. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7026. 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)
  7027. 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)
  7028. 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)
  7029. 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)
  7030. 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)
  7031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7033. 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)
  7034. end
  7035. for i = 0, 2, 0.1 do
  7036. swait()
  7037. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7038. 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)
  7039. 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)
  7040. 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)
  7041. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7042. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7043. 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)
  7044. end
  7045. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7046. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7047. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7048. coroutine.resume(coroutine.create(function()
  7049. orb.Anchored = false
  7050. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7051. local a = Instance.new("Part",workspace)
  7052. a.Name = "Direction"
  7053. a.Anchored = true
  7054. a.BrickColor = bc("Bright red")
  7055. a.Material = "Neon"
  7056. a.Transparency = 1
  7057. a.CanCollide = false
  7058. local ray = Ray.new(
  7059. orb.CFrame.p, -- origin
  7060. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7061. )
  7062. local ignore = orb
  7063. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7064. a.BottomSurface = 10
  7065. a.TopSurface = 10
  7066. local distance = (orb.CFrame.p - position).magnitude
  7067. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7068. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7069. orb.CFrame = a.CFrame
  7070. a:Destroy()
  7071. local bv = Instance.new("BodyVelocity")
  7072. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7073. bv.velocity = orb.CFrame.lookVector*125
  7074. bv.Parent = orb
  7075. local hitted = false
  7076. game:GetService("Debris"):AddItem(orb, 15)
  7077. wait()
  7078. local hit =orb.Touched:connect(function(hit)
  7079. if hitted == false then
  7080. hitted = true
  7081. CameraEnshaking(10,2.5)
  7082. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7083. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7084. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7085. for i = 0, 49 do
  7086. 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)
  7087. end
  7088. local eff = Instance.new("ParticleEmitter",orb)
  7089. eff.Texture = "rbxassetid://2273224484"
  7090. eff.LightEmission = 1
  7091. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7092. eff.Rate = 500000
  7093. eff.Lifetime = NumberRange.new(0.5,2)
  7094. 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)})
  7095. 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)})
  7096. eff.Speed = NumberRange.new(20,250)
  7097. eff.Drag = 5
  7098. eff.Rotation = NumberRange.new(-500,500)
  7099. eff.VelocitySpread = 9000
  7100. eff.RotSpeed = NumberRange.new(-50,50)
  7101. coroutine.resume(coroutine.create(function()
  7102. wait(0.25)
  7103. eff.Enabled = false
  7104. end))
  7105. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7106. for i = 0, 9 do
  7107. 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)
  7108. 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)
  7109. end
  7110. orb.Anchored = true
  7111. orb.Transparency = 1
  7112. local eff = Instance.new("ParticleEmitter",orb)
  7113. eff.Texture = "rbxassetid://2273224484"
  7114. eff.LightEmission = 1
  7115. eff.Color = ColorSequence.new(Color3.new(M))
  7116. eff.Rate = 500000
  7117. eff.Lifetime = NumberRange.new(0.5,2)
  7118. 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)})
  7119. 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)})
  7120. eff.Speed = NumberRange.new(20,250)
  7121. eff.Drag = 5
  7122. eff.Rotation = NumberRange.new(-500,500)
  7123. eff.VelocitySpread = 9000
  7124. eff.RotSpeed = NumberRange.new(-50,50)
  7125. coroutine.resume(coroutine.create(function()
  7126. wait(1)
  7127. eff.Enabled = false
  7128. end))
  7129. wait(8)
  7130. orb:Destroy()
  7131. end
  7132. end)
  7133. end))
  7134. for i = 0, 1, 0.1 do
  7135. swait()
  7136. 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)
  7137. 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)
  7138. 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)
  7139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7140. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7141. 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)
  7142. end
  7143. attack = false
  7144. end
  7145.  
  7146.  
  7147. function BeamOfDeath()
  7148. coroutine.resume(coroutine.create(function()
  7149. attack = true
  7150. hum.WalkSpeed = 0
  7151. for i = 0, 11, 0.1 do
  7152. swait()
  7153. 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)
  7154. 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)
  7155. 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)
  7156. 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)
  7157. 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)
  7158. 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)
  7159. end
  7160. for i = 0, 1, 0.1 do
  7161. swait()
  7162. 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)
  7163. 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)
  7164. 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)
  7165. 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)
  7166. 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)
  7167. 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)
  7168. end
  7169. hum.WalkSpeed = storehumanoidWS
  7170. attack = false
  7171. end))
  7172. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7173. local radm = math.random(1,3)
  7174. if radm == 1 then
  7175. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7176. elseif radm == 2 then
  7177. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7178. elseif radm == 3 then
  7179. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7180. end
  7181. local keptcolor = MAINRUINCOLOR
  7182. local orb = Instance.new("Part", char)
  7183. orb.BrickColor = keptcolor
  7184. orb.CanCollide = false
  7185. orb.FormFactor = 3
  7186. orb.Name = "Ring"
  7187. orb.Material = "Neon"
  7188. orb.Size = Vector3.new(1, 1, 1)
  7189. orb.Transparency = 1
  7190. orb.TopSurface = 0
  7191. orb.BottomSurface = 0
  7192. local orbm = Instance.new("SpecialMesh", orb)
  7193. orbm.MeshType = "Sphere"
  7194. orbm.Name = "SizeMesh"
  7195. orbm.Scale = vt(22.5,10000,22.5)
  7196. orb.CFrame = mouse.Hit
  7197. orb.Anchored = true
  7198. orb.Orientation = vt(0,0,0)
  7199. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7200. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7201. coroutine.resume(coroutine.create(function()
  7202. coroutine.resume(coroutine.create(function()
  7203. for i = 0, 175 do
  7204. swait()
  7205. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7206. orb.Transparency = orb.Transparency - 0.005
  7207. end
  7208. end))
  7209. wait(2)
  7210. coroutine.resume(coroutine.create(function()
  7211. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7212. if hfr ~= nil then
  7213. for i = 0, 24.5 do
  7214. local deb = Instance.new("Part", char)
  7215. deb.Anchored = true
  7216. deb.CanCollide = false
  7217. deb.FormFactor = 3
  7218. deb.Name = "Ring"
  7219. deb.Material = hitfloor.Material
  7220. deb.Color = hitfloor.Color
  7221. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7222. deb.Transparency = 0
  7223. deb.TopSurface = 0
  7224. deb.BottomSurface = 0
  7225. 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)))
  7226. local deb2 = Instance.new("Part", char)
  7227. deb2.CanCollide = false
  7228. deb2.FormFactor = 3
  7229. deb2.Name = "Ring"
  7230. deb2.Material = hitfloor.Material
  7231. deb2.Color = hitfloor.Color
  7232. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7233. deb2.Transparency = 0
  7234. deb2.TopSurface = 0
  7235. deb2.BottomSurface = 0
  7236. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7237. 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)))
  7238. local eff = Instance.new("ParticleEmitter",deb)
  7239. eff.Texture = "rbxassetid://363275192"
  7240. eff.LightEmission = 0.95
  7241. eff.Color = ColorSequence.new(keptcolor.Color)
  7242. eff.Rate = 100
  7243. eff.Lifetime = NumberRange.new(1)
  7244. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7245. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7246. eff.Speed = NumberRange.new(0,5)
  7247. eff.Rotation = NumberRange.new(-500,500)
  7248. eff.VelocitySpread = 9000
  7249. eff.RotSpeed = NumberRange.new(-10,10)
  7250. local at1 = Instance.new('Attachment',deb2)
  7251. at1.Position = vt(0,15,0)
  7252. local at2 = Instance.new('Attachment',deb2)
  7253. at2.Position = vt(0,-15,0)
  7254. local tl = Instance.new('Trail',deb2)
  7255. tl.Attachment0 = at1
  7256. tl.Attachment1 = at2
  7257. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7258. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7259. tl.Lifetime = 1
  7260. game:GetService("Debris"):AddItem(deb,30)
  7261. game:GetService("Debris"):AddItem(deb2,30)
  7262. coroutine.resume(coroutine.create(function()
  7263. wait(15)
  7264. eff.Enabled = false
  7265. for i = 0, 49 do
  7266. swait()
  7267. deb.Transparency = deb.Transparency + 0.02
  7268. end
  7269. wait(1)
  7270. deb:Destroy()
  7271. end))
  7272. end
  7273. end
  7274. end))
  7275. for i = 0, 199 do
  7276. swait(1.5)
  7277. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7278. if v:FindFirstChild('Head') then
  7279. dmg(v)
  7280. end
  7281. end
  7282. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7283. 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)
  7284. 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)
  7285. 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)
  7286. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7287. end
  7288. orb:Destroy()
  7289. end))
  7290. end
  7291.  
  7292. function Beams()
  7293. attack = true
  7294. hum.WalkSpeed = 0
  7295. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7296. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7297. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7298. local keptcolor = MAINRUINCOLOR
  7299. coroutine.resume(coroutine.create(function()
  7300. for i = 0, 96 do
  7301. swait(5)
  7302. local orb = Instance.new("Part", char)
  7303. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7304. orb.BrickColor = keptcolor
  7305. orb.CanCollide = false
  7306. orb.FormFactor = 3
  7307. orb.Name = "Ring"
  7308. orb.Material = "Neon"
  7309. orb.Size = Vector3.new(1, 1, 1)
  7310. orb.Transparency = 0
  7311. orb.TopSurface = 0
  7312. orb.BottomSurface = 0
  7313. orb.Anchored = true
  7314. local orbm = Instance.new("SpecialMesh", orb)
  7315. orbm.MeshType = "Sphere"
  7316. orbm.Name = "SizeMesh"
  7317. orbm.Scale = vt(1.25,1.25,1.25)
  7318. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7319. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7320. coroutine.resume(coroutine.create(function()
  7321. wait(0.5)
  7322. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7323. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7324. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7325. orb.Transparency = 1
  7326. local a = Instance.new("Part",char)
  7327. a.Name = "Direction"
  7328. a.Anchored = true
  7329. a.BrickColor = keptcolor
  7330. a.Material = "Neon"
  7331. a.Transparency = 0.25
  7332. a.Shape = "Cylinder"
  7333. local ht = Instance.new("Part",char)
  7334. ht.Name = "DirectionHit"
  7335. ht.Anchored = true
  7336. ht.BrickColor = keptcolor
  7337. ht.CanCollide = false
  7338. ht.Transparency = 1
  7339. ht.Size = vt(0.1,0.1,0.1)
  7340. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7341. a.CanCollide = false
  7342. local ray = Ray.new(
  7343. orb.CFrame.p, -- origin
  7344. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7345. )
  7346. local ignore = char
  7347. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7348. a.BottomSurface = 10
  7349. a.TopSurface = 10
  7350. local distance = (orb.CFrame.p - position).magnitude
  7351. a.Size = Vector3.new(distance,1,1)
  7352. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7353. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7354. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7355. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7356. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7357. coroutine.resume(coroutine.create(function()
  7358. local eff = Instance.new("ParticleEmitter",ht)
  7359. eff.Texture = "rbxassetid://284205403"
  7360. eff.LightEmission = 0.95
  7361. eff.Color = ColorSequence.new(keptcolor.Color)
  7362. eff.Rate = 500
  7363. eff.Lifetime = NumberRange.new(0.5)
  7364. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7365. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7366. eff.Speed = NumberRange.new(10,50)
  7367. eff.Drag = 5
  7368. eff.Rotation = NumberRange.new(-500,500)
  7369. eff.VelocitySpread = 9000
  7370. eff.RotSpeed = NumberRange.new(-500,500)
  7371. wait(0.25)
  7372. eff.Enabled = false
  7373. end))
  7374. for i = 0, 4 do
  7375. 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)
  7376. 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)
  7377. local rsiz = math.random(10,30)
  7378. 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)
  7379. end
  7380. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7381. local msh = Instance.new("SpecialMesh",a)
  7382. msh.MeshType = "Cylinder"
  7383. msh.Scale = vt(1,1,1)
  7384. for i = 0, 49 do
  7385. swait()
  7386. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7387. a.Transparency = a.Transparency + 0.02
  7388. end
  7389. orb:Destroy()
  7390. a:Destroy()
  7391. ht:Destroy()
  7392. end))
  7393. game:GetService("Debris"):AddItem(orb, 10)
  7394. end
  7395. end))
  7396. for i = 0,6,0.1 do
  7397. swait()
  7398. 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)
  7399. 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)
  7400. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7401. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7402. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7403. 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)
  7404. 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)
  7405. end
  7406. hum.WalkSpeed = storehumanoidWS
  7407. attack = false
  7408. end
  7409.  
  7410. function CalamityTrans()
  7411. attack = true
  7412. rainbowmode = false
  7413. chaosmode = false
  7414. ModeOfGlitch = 8889
  7415. hum.WalkSpeed = 0
  7416. newThemeCust("rbxassetid://919231299",0,1,1.25)
  7417. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7418. elocacenter.Anchored = true
  7419. elocacenter.CFrame = root.CFrame
  7420. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7421. eloca1.Anchored = true
  7422. eloca1.CFrame = elocacenter.CFrame
  7423. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7424. eloca2.Anchored = true
  7425. eloca2.CFrame = elocacenter.CFrame
  7426. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7427. eloca3.Anchored = true
  7428. eloca3.CFrame = elocacenter.CFrame
  7429. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7430. eloca4.Anchored = true
  7431. eloca4.CFrame = elocacenter.CFrame
  7432. local lookavec = 0
  7433. local speeds = 0
  7434. CameraEnshaking(3,2.5)
  7435. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7436. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7437. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7438. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7439. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7440. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7441. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7442. for i = 0, 5, 0.1 do
  7443. swait()
  7444. ---
  7445. lookavec = lookavec + 1
  7446. speeds = speeds + 10
  7447. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7448. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7449. 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)
  7450. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7451. 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)
  7452. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7453. 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)
  7454. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7455. 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)
  7456. ---
  7457. 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)
  7458. 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)
  7459. 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)
  7460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7461. 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)
  7462. 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)
  7463. end
  7464. for i = 0, 5, 0.1 do
  7465. swait()
  7466. ---
  7467. speeds = speeds + 10
  7468. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7469. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7470. 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)
  7471. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7472. 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)
  7473. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7474. 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)
  7475. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7476. 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)
  7477. ---
  7478. 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)
  7479. 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)
  7480. 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)
  7481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7482. 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)
  7483. 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)
  7484. end
  7485. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7486. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7487. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7488. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7489. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7490. CameraEnshaking(1,3)
  7491. for i = 0, 24 do
  7492. 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)
  7493. 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)
  7494. 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)
  7495. 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)
  7496. end
  7497. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7498. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7499. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7500. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7501. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7502. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7503. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7504. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7505. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7506. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7507. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7508. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7509. for i = 0, 5, 0.1 do
  7510. swait()
  7511. ---
  7512. lookavec = lookavec - 1
  7513. speeds = speeds + 10
  7514. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7515. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7516. 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)
  7517. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7518. 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)
  7519. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7520. 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)
  7521. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7522. 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)
  7523. ---
  7524. 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)
  7525. 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)
  7526. 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)
  7527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7528. 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)
  7529. 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)
  7530. end
  7531. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7532. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7533. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7534. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7535. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7536. for i = 0, 49 do
  7537. 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)
  7538. 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)
  7539. end
  7540. CameraEnshaking(5,6)
  7541. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7542. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7543. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7544. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7545. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7546. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7547. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7548. storehumanoidWS = 100
  7549. hum.WalkSpeed = 100
  7550. rainbowmode = false
  7551. chaosmode = false
  7552. tl1.Enabled = true
  7553. tl2.Enabled = true
  7554. tl3.Enabled = true
  7555. RecolorTextAndRename("The Last Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7556. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7557. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7558. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7559. for i, v in pairs(mw2:GetChildren()) do
  7560. if v:IsA("Part") then
  7561. v.BrickColor = MAINRUINCOLOR
  7562. v.Material = "Neon"
  7563. end
  7564. end
  7565. for i, v in pairs(mw1:GetChildren()) do
  7566. if v:IsA("Part") then
  7567. v.Transparency = 0
  7568. v.BrickColor = MAINRUINCOLOR
  7569. v.Material = "Neon"
  7570. end
  7571. end
  7572. for i, v in pairs(m:GetChildren()) do
  7573. if v:IsA("Part") then
  7574. v.Color = Color3.new(0.5,0,1)
  7575. v.Material = "Neon"
  7576. end
  7577. end
  7578. for i, v in pairs(m2:GetChildren()) do
  7579. if v:IsA("Part") then
  7580. v.Color = Color3.new(0.25,0,1)
  7581. v.Material = "Neon"
  7582. end
  7583. end
  7584. for i, v in pairs(m3:GetChildren()) do
  7585. if v:IsA("Part") then
  7586. v.Color = Color3.new(0.45,0,1)
  7587. v.Material = "Neon"
  7588. end
  7589. end
  7590. for i, v in pairs(extrawingmod1:GetChildren()) do
  7591. if v:IsA("Part") then
  7592. v.Transparency = 0.75
  7593. v.Color = Color3.new(0.25,0,1)
  7594. v.Material = "Neon"
  7595. end
  7596. end
  7597. for i, v in pairs(extrawingmod2:GetChildren()) do
  7598. if v:IsA("Part") then
  7599. v.Transparency = 0.75
  7600. v.Color = Color3.new(0.5,0,1)
  7601. v.Material = "Neon"
  7602. end
  7603. end
  7604. attack = false
  7605. end
  7606.  
  7607. function GleamingBeam()
  7608. attack = true
  7609. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7610. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7611. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7612. local rsiz = math.random(1,15)
  7613. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7614. hb.Anchored = true
  7615. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7616. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7617. for i = 0, 16, 0.1 do
  7618. swait()
  7619. rsiz = math.random(5,15)
  7620. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7621. 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)
  7622. 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)
  7623. 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)
  7624. 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)
  7625. 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)
  7626. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7627. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7628. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7629. end
  7630. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7631. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7632. for i = 0, 2 do
  7633. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7634. end
  7635. 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)
  7636. 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)
  7637. 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)
  7638. for i = 0, 49 do
  7639. local rsiza = math.random(1,15)
  7640. 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)
  7641. end
  7642. local a = Instance.new("Part",Character)
  7643. a.Name = "Direction"
  7644. a.Anchored = true
  7645. a.BrickColor = MAINRUINCOLOR
  7646. a.Material = "Neon"
  7647. a.Transparency = 0
  7648. a.Shape = "Cylinder"
  7649. a.CanCollide = false
  7650. local ba = Instance.new("Part",Character)
  7651. ba.Name = "HitDirect"
  7652. ba.Anchored = true
  7653. ba.BrickColor = bc("Cool yellow")
  7654. ba.Material = "Neon"
  7655. ba.Transparency = 1
  7656. ba.CanCollide = false
  7657. local ray = Ray.new(
  7658. hb.CFrame.p, -- origin
  7659. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7660. )
  7661. local ignore = Character
  7662. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7663. a.BottomSurface = 10
  7664. a.TopSurface = 10
  7665. local distance = (hb.CFrame.p - position).magnitude
  7666. a.Size = Vector3.new(distance, 1, 1)
  7667. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7668. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7669. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7670. local msh = Instance.new("SpecialMesh",a)
  7671. msh.MeshType = "Cylinder"
  7672. msh.Scale = vt(1,4,4)
  7673. game:GetService("Debris"):AddItem(a, 30)
  7674. game:GetService("Debris"):AddItem(ba, 30)
  7675. for i = 0, 25, 0.1 do
  7676. swait()
  7677. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7678. ray = Ray.new(
  7679. hb.CFrame.p, -- origin
  7680. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7681. )
  7682. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7683. distance = (hb.CFrame.p - position).magnitude
  7684. a.Size = Vector3.new(distance, 1, 1)
  7685. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7686. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7687. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7688. rsiz = math.random(5,25)
  7689. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7690. 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)
  7691. for c = 0, 2 do
  7692. 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)
  7693. end
  7694. 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)
  7695. 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)
  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)),.6)
  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)),.6)
  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(80)),.6)
  7699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7700. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7701. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7702. end
  7703. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7704. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7705. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7706. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7707. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7708. 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)
  7709. 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)
  7710. 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)
  7711. 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)
  7712. 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)
  7713. 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)
  7714. for i = 0, 49 do
  7715. local rsiza = math.random(1,15)
  7716. 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)
  7717. end
  7718. for i = 0, 49 do
  7719. rsiz = math.random(1,8)
  7720. 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)
  7721. end
  7722. coroutine.resume(coroutine.create(function()
  7723. for i = 0, 99 do
  7724. swait()
  7725. a.Transparency = a.Transparency + 0.01
  7726. end
  7727. a:Destroy()
  7728. ba:Destroy()
  7729. end))
  7730. hb:Destroy()
  7731. attack = false
  7732. end
  7733.  
  7734. function DualGleamingBeam()
  7735. attack = true
  7736. hum.WalkSpeed = 0
  7737. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7738. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7739. local radm = math.random(1,3)
  7740. if radm == 1 then
  7741. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7742. elseif radm == 2 then
  7743. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7744. elseif radm == 3 then
  7745. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7746. end
  7747. local rsiz = math.random(1,15)
  7748. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7749. hb.Anchored = true
  7750. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7751. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7752. hb2.Anchored = true
  7753. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7754. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7755. for i = 0, 14, 0.1 do
  7756. swait()
  7757. rsiz = math.random(5,15)
  7758. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7759. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7760. 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)
  7761. 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)
  7762. 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)
  7763. 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"))
  7764. 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)
  7765. 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)
  7766. 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)
  7767. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7768. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7769. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7770. end
  7771. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7772. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7773. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7774. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7775. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7776. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7777. 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)
  7778. 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)
  7779. 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)
  7780. 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"))
  7781. 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"))
  7782. 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"))
  7783. for i = 0, 49 do
  7784. local rsiza = math.random(1,15)
  7785. 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)
  7786. 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)
  7787. end
  7788. local a = Instance.new("Part",Character)
  7789. a.Name = "Direction"
  7790. a.Anchored = true
  7791. a.BrickColor = MAINRUINCOLOR
  7792. a.Material = "Neon"
  7793. a.Transparency = 0
  7794. a.Shape = "Cylinder"
  7795. a.CanCollide = false
  7796. local a2 = Instance.new("Part",Character)
  7797. a2.Name = "Direction"
  7798. a2.Anchored = true
  7799. a2.BrickColor = MAINRUINCOLOR
  7800. a2.Material = "Neon"
  7801. a2.Transparency = 0
  7802. a2.Shape = "Cylinder"
  7803. a2.CanCollide = false
  7804. local ba = Instance.new("Part",Character)
  7805. ba.Name = "HitDirect"
  7806. ba.Anchored = true
  7807. ba.BrickColor = MAINRUINCOLOR
  7808. ba.Material = "Neon"
  7809. ba.Transparency = 1
  7810. ba.CanCollide = false
  7811. local ba2 = Instance.new("Part",Character)
  7812. ba2.Name = "HitDirect"
  7813. ba2.Anchored = true
  7814. ba2.BrickColor = MAINRUINCOLOR
  7815. ba2.Material = "Neon"
  7816. ba2.Transparency = 1
  7817. ba2.CanCollide = false
  7818. local ray = Ray.new(
  7819. hb.CFrame.p, -- origin
  7820. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7821. )
  7822. local ignore = Character
  7823. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7824. local ray2 = Ray.new(
  7825. hb2.CFrame.p, -- origin
  7826. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7827. )
  7828. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7829. local distance2 = (hb2.CFrame.p - position).magnitude
  7830.  
  7831. a.BottomSurface = 10
  7832. a.TopSurface = 10
  7833. local distance = (hb.CFrame.p - position).magnitude
  7834. a.Size = Vector3.new(distance, 1, 1)
  7835. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7836. a2.BottomSurface = 10
  7837. a2.TopSurface = 10
  7838. a2.Size = Vector3.new(distance2, 1, 1)
  7839. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7840. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7841. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7842. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7843. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7844. local msh = Instance.new("SpecialMesh",a)
  7845. msh.MeshType = "Cylinder"
  7846. msh.Scale = vt(1,4,4)
  7847. local msh2 = Instance.new("SpecialMesh",a2)
  7848. msh2.MeshType = "Cylinder"
  7849. msh2.Scale = vt(1,4,4)
  7850. game:GetService("Debris"):AddItem(a, 30)
  7851. game:GetService("Debris"):AddItem(a2, 30)
  7852. game:GetService("Debris"):AddItem(ba, 30)
  7853. game:GetService("Debris"):AddItem(ba2, 30)
  7854. for i = 0, 20, 0.1 do
  7855. swait()
  7856. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7857. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7858. ray = Ray.new(
  7859. hb.CFrame.p, -- origin
  7860. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7861. )
  7862. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7863. distance = (hb.CFrame.p - position).magnitude
  7864. ray2 = Ray.new(
  7865. hb2.CFrame.p, -- origin
  7866. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7867. )
  7868. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7869. distance2 = (hb2.CFrame.p - position).magnitude
  7870. a.Size = Vector3.new(distance, 1, 1)
  7871. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7872. a2.Size = Vector3.new(distance2, 1, 1)
  7873. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7874. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7875. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7876. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7877. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7878. rsiz = math.random(5,25)
  7879. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  7880. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  7881. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  7882. if v:FindFirstChild('Head') then
  7883. dmg(v)
  7884. end
  7885. end
  7886. coroutine.resume(coroutine.create(function()
  7887. local bx = Instance.new("Part",Character)
  7888. bx.Name = "Location"
  7889. bx.Anchored = true
  7890. bx.BrickColor = MAINRUINCOLOR
  7891. bx.Material = "Neon"
  7892. bx.Transparency = 1
  7893. bx.CanCollide = false
  7894. bx.Position = ba.Position
  7895. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  7896. wait(math.random(1,2))
  7897. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  7898. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  7899. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  7900. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  7901. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  7902. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  7903. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  7904. if v:FindFirstChild('Head') then
  7905. dmg(v)
  7906. end
  7907. end
  7908. wait(5)
  7909. bx:Destroy()
  7910. end))
  7911. 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)
  7912. 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)
  7913. for c = 0, 2 do
  7914. 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)
  7915. end
  7916. 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)
  7917. 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)
  7918. 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)
  7919. 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)
  7920. 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)
  7921. 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)
  7922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  7923. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  7924. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  7925. end
  7926. for i = 0, 1 do
  7927. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7928. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7929. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7930. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7931. end
  7932. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  7933. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  7934. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  7935. if v:FindFirstChild('Head') then
  7936. dmg(v)
  7937. end
  7938. end
  7939. 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)
  7940. 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)
  7941. 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)
  7942. 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)
  7943. 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)
  7944. 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)
  7945. 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"))
  7946. 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"))
  7947. 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"))
  7948. for i = 0, 49 do
  7949. local rsiza = math.random(1,15)
  7950. 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)
  7951. 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)
  7952. end
  7953. for i = 0, 49 do
  7954. rsiz = math.random(1,8)
  7955. 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)
  7956. end
  7957. coroutine.resume(coroutine.create(function()
  7958. for i = 0, 99 do
  7959. swait()
  7960. a.Transparency = a.Transparency + 0.01
  7961. a2.Transparency = a2.Transparency + 0.01
  7962. end
  7963. a:Destroy()
  7964. ba:Destroy()
  7965. a2:Destroy()
  7966. ba2:Destroy()
  7967. end))
  7968. hum.WalkSpeed = storehumanoidWS
  7969. hb:Destroy()
  7970. hb2:Destroy()
  7971. attack = false
  7972. end
  7973.  
  7974. function dragin()
  7975. local targetted = nil
  7976. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7977. targetted = mouse.Target.Parent
  7978. end
  7979. if targetted ~= nil then
  7980. RootPart.CFrame = FaceMouse()[1]
  7981. attack = true
  7982. hum.WalkSpeed = 0
  7983. for x = 0, 1 do
  7984. for i = 0,1,0.5 do
  7985. swait()
  7986. 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)
  7987. 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)
  7988. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7989. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7990. 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)
  7991. 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)
  7992. end
  7993. for i = 0,1,0.5 do
  7994. swait()
  7995. 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)
  7996. 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)
  7997. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  7998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7999. 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)
  8000. 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)
  8001. end
  8002. for i = 0,1,0.5 do
  8003. swait()
  8004. 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)
  8005. 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)
  8006. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8008. 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)
  8009. 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)
  8010. end
  8011. for i = 0,1,0.5 do
  8012. swait()
  8013. 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)
  8014. 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)
  8015. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8016. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8017. 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)
  8018. 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)
  8019. end
  8020. end
  8021. coroutine.resume(coroutine.create(function()
  8022. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8023. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8024. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8025. end))
  8026. local A1 = Instance.new("Attachment",targetted.Head)
  8027. local A2 = Instance.new("Attachment",sorb)
  8028. local Beem = Instance.new("Beam",tors)
  8029. Beem.Attachment0 = A1
  8030. Beem.Attachment1 = A2
  8031. Beem.Texture = "rbxassetid://897585362"
  8032. Beem.LightEmission = 0.75
  8033. Beem.FaceCamera = true
  8034. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8035. Beem.Width0 = 1
  8036. Beem.Width1 = 1
  8037. Beem.TextureMode = "Wrap"
  8038. Beem.TextureLength = 1
  8039. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8040. 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)
  8041. 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)
  8042. for x = 0, 24 do
  8043. local rsiz = math.random(5,15)
  8044. 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)
  8045. end
  8046.  
  8047. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8048. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8049. local radm = math.random(1,2)
  8050. if radm == 1 then
  8051. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8052. elseif radm == 2 then
  8053. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8054. end
  8055. for i = 0,3,0.1 do
  8056. swait()
  8057. coroutine.resume(coroutine.create(function()
  8058. local rsiz = math.random(5,15)
  8059. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8060. 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)
  8061. end))
  8062. 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)
  8063. 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)
  8064. 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)
  8065. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8066. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8067. 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)
  8068. 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)
  8069. end
  8070. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8071. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8072. local vel = Instance.new("BodyPosition", targetted.Head)
  8073. vel.P = 12500
  8074. vel.D = 1000
  8075. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8076. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8077. for i = 0,4,0.1 do
  8078. swait()
  8079. coroutine.resume(coroutine.create(function()
  8080. local rsiz = math.random(5,15)
  8081. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8082. 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)
  8083. end))
  8084. 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)
  8085. 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)
  8086. 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)
  8087. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8088. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8089. 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)
  8090. 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)
  8091. end
  8092. local visibility = 0
  8093. coroutine.resume(coroutine.create(function()
  8094. for i = 0, 49 do
  8095. swait()
  8096. visibility = visibility + 0.02
  8097. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8098. end
  8099. Beem:Destroy()
  8100. A1:Destroy()
  8101. A2:Destroy()
  8102. end))
  8103. game:GetService("Debris"):AddItem(vel,0.75)
  8104. attack = false
  8105. hum.WalkSpeed = storehumanoidWS
  8106.  
  8107. end
  8108. end
  8109.  
  8110. function hugg()
  8111. attack = true
  8112. hum.WalkSpeed = 5
  8113. local rsiz = math.random(5,15)
  8114. for i = 0, 2, 0.1 do
  8115. swait()
  8116. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8117. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8118. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8119. 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)
  8120. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8121. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8122. end
  8123. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8124. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8125. hb.Anchored = true
  8126. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8127. local huggedperson = nil
  8128. local act = false
  8129. local alreadydid = false
  8130. for i = 0, 3, 0.1 do
  8131. swait()
  8132. if act == false then
  8133. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8134. if v:FindFirstChild('Head') then
  8135. if alreadydid == false then
  8136. huggedperson = v
  8137. hum.WalkSpeed = 0
  8138. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8139. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8140. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8141. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8142. local radm = math.random(1,3)
  8143. if radm == 1 then
  8144. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8145. elseif radm == 2 then
  8146. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8147. elseif radm == 3 then
  8148. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8149. end
  8150. root.Anchored = true
  8151. coroutine.resume(coroutine.create(function()
  8152. huggedperson.Humanoid.WalkSpeed = 0
  8153. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8154. end))
  8155. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8156. alreadydid = true
  8157. act = true
  8158. print(huggedperson.Name)
  8159. end
  8160. end
  8161. end
  8162. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8163. 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)
  8164. elseif act == true then
  8165. coroutine.resume(coroutine.create(function()
  8166. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8167. end))
  8168. rsiz = math.random(5,15)
  8169. 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)
  8170. 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)
  8171. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8172. end
  8173. 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)
  8174. 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)
  8175. 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)
  8176. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8177. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8178. end
  8179. hb:Destroy()
  8180. if act == true then
  8181. for x = 0, 2 do
  8182. for i = 0, 2, 0.1 do
  8183. swait()
  8184. coroutine.resume(coroutine.create(function()
  8185. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8186. end))
  8187. rsiz = math.random(5,15)
  8188. 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)
  8189. 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)
  8190. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8191. 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)
  8192. 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)
  8193. 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)
  8194. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8195. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8196. end
  8197. for i = 0, 2, 0.1 do
  8198. swait()
  8199. coroutine.resume(coroutine.create(function()
  8200. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8201. end))
  8202. rsiz = math.random(5,15)
  8203. 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)
  8204. 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)
  8205. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8206. 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)
  8207. 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)
  8208. 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)
  8209. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8210. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8211. end
  8212. end
  8213. end
  8214. hum.WalkSpeed = storehumanoidWS
  8215. root.Anchored = false
  8216. if act == true then
  8217. coroutine.resume(coroutine.create(function()
  8218. huggedperson.Humanoid.WalkSpeed = 16
  8219. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8220. end))
  8221. end
  8222. hum.WalkSpeed = storehumanoidWS
  8223. attack = false
  8224. end
  8225.  
  8226. function Counter()
  8227. hum.WalkSpeed = 0
  8228. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8229. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8230. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8231. attack = true
  8232. for i = 0,1,0.1 do
  8233. swait()
  8234. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8235. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8236. 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)
  8237. 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)
  8238. 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)
  8239. 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)
  8240. end
  8241. CameraEnshaking(3,4)
  8242. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8243. 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)
  8244. 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)
  8245. 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)
  8246. coroutine.resume(coroutine.create(function()
  8247. local eff = Instance.new("ParticleEmitter",root)
  8248. eff.Texture = "rbxassetid://363275192"
  8249. eff.LightEmission = 0.95
  8250. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8251. eff.Rate = 10000
  8252. eff.Lifetime = NumberRange.new(1)
  8253. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8254. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8255. eff.Speed = NumberRange.new(10,125)
  8256. eff.Drag = 5
  8257. eff.Rotation = NumberRange.new(-500,500)
  8258. eff.VelocitySpread = 9000
  8259. eff.RotSpeed = NumberRange.new(-50,50)
  8260. local eff2 = eff:Clone()
  8261. eff2.Parent = root
  8262. eff2.Texture = "rbxassetid://284205403"
  8263. eff2.Rate = 10000
  8264. 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)})
  8265. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8266. eff2.Drag = 5
  8267. eff2.Speed = NumberRange.new(10,50)
  8268. eff2.Rotation = NumberRange.new(-500,500)
  8269. eff2.VelocitySpread = 9000
  8270. wait(0.25)
  8271. eff2.Enabled = false
  8272. eff.Enabled = false
  8273. wait(3)
  8274. eff2:Destroy()
  8275. eff:Destroy()
  8276. end))
  8277. for i = 0, 9 do
  8278. 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)
  8279. end
  8280. for i = 0, 24 do
  8281. local rsiz = math.random(5,20)
  8282. 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)
  8283. end
  8284. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8285. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8286. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8287. for i = 0,2,0.1 do
  8288. swait()
  8289. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8290. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8291. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8292. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8293. 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)
  8294. 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)
  8295. end
  8296. hum.WalkSpeed = storehumanoidWS
  8297. attack = false
  8298. end
  8299.  
  8300. function superjump()
  8301. attack = true
  8302. hum.WalkSpeed = 0
  8303. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8304. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8305. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8306. for i = 0, 2, 0.1 do
  8307. swait()
  8308. root.Velocity = vt(0,0,0)
  8309. 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"))
  8310. 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)
  8311. 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)
  8312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8314. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8315. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8316. end
  8317. MagniDamage(root, 28, 25,50, 25, "Normal")
  8318. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8319. hum.Jump = true
  8320. swait()
  8321. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8322. 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)
  8323. 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)
  8324. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8325. for i = 0, 3, 0.1 do
  8326. swait()
  8327. 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)
  8328. 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)
  8329. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8331. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8332. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8333. end
  8334. attack = false
  8335. if equipped == false then
  8336. hum.WalkSpeed = 16
  8337. else
  8338. hum.WalkSpeed = 24
  8339. end
  8340. end
  8341.  
  8342.  
  8343. -------------------------------------
  8344.  
  8345.  
  8346.  
  8347. Humanoid.Animator.Parent = nil
  8348.  
  8349.  
  8350.  
  8351. -------------------------------------
  8352.  
  8353. local attacktype = 1
  8354. mouse.Button1Down:connect(function()
  8355. if attack == false and attacktype == 1 then
  8356. attacktype = 2
  8357. attackone()
  8358. elseif attack == false and attacktype == 2 then
  8359. attacktype = 3
  8360. attacktwo()
  8361. elseif attack == false and attacktype == 3 then
  8362. attacktype = 1
  8363. attackthree()
  8364. elseif attack == false and attacktype == 4 then
  8365. attacktype = 1
  8366. --attackfour()
  8367. end
  8368. end)
  8369. mouse.KeyDown:connect(function(k)
  8370. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8371. --normalmog()
  8372. ModeOfGlitch = 1
  8373. storehumanoidWS = 16
  8374. hum.WalkSpeed = 16
  8375. rainbowmode = false
  8376. chaosmode = false
  8377. newTheme("rbxassetid://723652641",48.6,1,0.85)
  8378. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8379. MAINRUINCOLOR = BrickColor.new("Really red")
  8380. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8381. end
  8382. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8383. ModeOfGlitch = 2
  8384. storehumanoidWS = 16
  8385. hum.WalkSpeed = 16
  8386. rainbowmode = false
  8387. chaosmode = false
  8388. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8389. newTheme("rbxassetid://1539245059",0,1,0.85)
  8390. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8391. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8392. end
  8393. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8394. ModeOfGlitch = 3
  8395. storehumanoidWS = 14
  8396. hum.WalkSpeed = 14
  8397. rainbowmode = false
  8398. chaosmode = false
  8399. RecolorTextAndRename("Royal Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8400. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8401. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8402. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8403. end
  8404. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8405. ModeOfGlitch = 4
  8406. storehumanoidWS = 14
  8407. hum.WalkSpeed = 14
  8408. rainbowmode = false
  8409. chaosmode = true
  8410. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8411. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8412. MAINRUINCOLOR = BrickColor.new("Black")
  8413. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8414. end
  8415. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8416. ModeOfGlitch = 5
  8417. storehumanoidWS = 14
  8418. hum.WalkSpeed = 14
  8419. rainbowmode = false
  8420. chaosmode = false
  8421. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8422. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8423. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8424. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8425. end
  8426. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8427. ModeOfGlitch = 6
  8428. storehumanoidWS = 65
  8429. hum.WalkSpeed = 65
  8430. rainbowmode = false
  8431. chaosmode = false
  8432. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8433. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8434. MAINRUINCOLOR = BrickColor.new("White")
  8435. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8436. end
  8437. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8438. ModeOfGlitch = 8
  8439. storehumanoidWS = 100
  8440. hum.WalkSpeed = 100
  8441. rainbowmode = false
  8442. chaosmode = false
  8443. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8444. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8445. MAINRUINCOLOR = BrickColor.new("Alder")
  8446. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8447. end
  8448. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8449. ModeOfGlitch = 9
  8450. storehumanoidWS = 85
  8451. hum.WalkSpeed = 85
  8452. rainbowmode = false
  8453. chaosmode = false
  8454. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8455. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8456. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8457. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8458. end
  8459. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8460. ModeOfGlitch = 5555
  8461. storehumanoidWS = 30
  8462. hum.WalkSpeed = 30
  8463. rainbowmode = false
  8464. chaosmode = false
  8465. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8466. newTheme("rbxassetid://736003449",0,1,1.25)
  8467. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8468. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8469. end
  8470. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8471. CalamityTrans()
  8472. end
  8473. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8474. ModeOfGlitch = 55469696922
  8475. storehumanoidWS = 95
  8476. hum.WalkSpeed = 95
  8477. rainbowmode = false
  8478. chaosmode = false
  8479. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8480. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8481. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8482. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8483. end
  8484. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8485. ModeOfGlitch = 4367677813
  8486. storehumanoidWS = 75
  8487. hum.WalkSpeed = 75
  8488. rainbowmode = false
  8489. chaosmode = false
  8490. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8491. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8492. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8493. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8494. end
  8495. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8496. ModeOfGlitch = 9999999921111
  8497. storehumanoidWS = 145
  8498. hum.WalkSpeed = 145
  8499. rainbowmode = false
  8500. chaosmode = false
  8501. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8502. newTheme("rbxassetid://643309199",0,1.01,1)
  8503. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8504. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8505. end
  8506. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8507. ModeOfGlitch = 999999999556
  8508. storehumanoidWS = 115
  8509. hum.WalkSpeed = 115
  8510. rainbowmode = false
  8511. chaosmode = false
  8512. RecolorTextAndRename("Crazy Guest",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8513. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8514. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8515. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8516. end
  8517. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8518. ModeOfGlitch = 12
  8519. storehumanoidWS = 19
  8520. hum.WalkSpeed = 19
  8521. rainbowmode = false
  8522. chaosmode = false
  8523. print'Mode was meant for Vengeful Program or those other fans out there'
  8524. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8525. newTheme("rbxassetid://1873219898",0,1,1.7)
  8526. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8527. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8528. end
  8529.  
  8530. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8531. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8532. for i = 0, 49 do
  8533. 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)
  8534. end
  8535. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8536. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8537. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8538. hum.WalkSpeed = storehumanoidWS
  8539. attack = false
  8540. ModeOfGlitch = 50
  8541. storehumanoidWS = 18
  8542. hum.WalkSpeed = 18
  8543. rainbowmode = false
  8544. chaosmode = false
  8545. RecolorTextAndRename("Enbelieved Guest",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8546. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8547. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8548. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8549. end
  8550.  
  8551. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8552. hum.WalkSpeed = 0
  8553. attack = true
  8554. for i = 0,1,0.1 do
  8555. swait()
  8556. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8557. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8558. 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)
  8559. 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)
  8560. 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)
  8561. 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)
  8562. end
  8563. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8564. for i = 0, 148 do
  8565. 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)
  8566. end
  8567. for i = 0,3,0.1 do
  8568. 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)
  8569. end
  8570. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8571. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8572. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8573. hum.WalkSpeed = storehumanoidWS
  8574. attack = false
  8575. ModeOfGlitch = 66
  8576. storehumanoidWS = 16
  8577. hum.WalkSpeed = 16
  8578. rainbowmode = false
  8579. chaosmode = false
  8580. newTheme("rbxassetid://723652641"..ast[Mrandom(1,2)],0,1,1.35)
  8581. MAINRUINCOLOR = BrickColor.new("Really black")
  8582. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8583. for i = 0,2,0.1 do
  8584. swait()
  8585. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8586. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8587. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8588. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8589. 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)
  8590. 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)
  8591. end
  8592. end
  8593.  
  8594. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8595. hum.WalkSpeed = 0
  8596. attack = true
  8597. for i = 0,1,0.1 do
  8598. swait()
  8599. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8600. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8601. 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)
  8602. 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)
  8603. 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)
  8604. 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)
  8605. end
  8606. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8607. for i = 0, 49 do
  8608. 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)
  8609. end
  8610. for i = 0,3,0.1 do
  8611. 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)
  8612. end
  8613. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8614. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8615. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8616. hum.WalkSpeed = storehumanoidWS
  8617. attack = false
  8618. ModeOfGlitch = 13
  8619. storehumanoidWS = 45
  8620. hum.WalkSpeed = 45
  8621. rainbowmode = false
  8622. chaosmode = false
  8623. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8624. newTheme("rbxassetid://190845741",0,1,1.35)
  8625. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8626. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8627. for i = 0,2,0.1 do
  8628. swait()
  8629. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8630. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8631. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8632. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8633. 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)
  8634. 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)
  8635. end
  8636. end
  8637. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8638. ModeOfGlitch = 1002
  8639. storehumanoidWS = 45
  8640. hum.WalkSpeed = 45
  8641. rainbowmode = false
  8642. chaosmode = false
  8643. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8644. newTheme("rbxassetid://2027652726",0,1,0.85)
  8645. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8646. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8647. end
  8648. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8649. ModeOfGlitch = 1003
  8650. storehumanoidWS = 90
  8651. hum.WalkSpeed = 90
  8652. rainbowmode = false
  8653. chaosmode = false
  8654. RecolorTextAndRename("Ascended Guest",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8655. newTheme("rbxassetid://257453119",0,1,0.85)
  8656. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8657. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8658. end
  8659. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8660. ModeOfGlitch = 1264532489
  8661. storehumanoidWS = 175
  8662. hum.WalkSpeed = 175
  8663. rainbowmode = false
  8664. chaosmode = false
  8665. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8666. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8667. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8668. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8669. end
  8670. if k == "l" and mutedtog == false then
  8671. mutedtog = true
  8672. kan.Volume = 0.85
  8673. elseif k == "l" and mutedtog == true then
  8674. mutedtog = false
  8675. kan.Volume = 0.85
  8676. end
  8677. if k == "p" and toggleTag == false then
  8678. toggleTag = true
  8679. modet.TextTransparency = 0
  8680. modet.TextStrokeTransparency = 0
  8681. elseif k == "p" and toggleTag == true then
  8682. toggleTag = false
  8683. modet.TextTransparency = 1
  8684. modet.TextStrokeTransparency = 1
  8685. end
  8686. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8687. ExtinctiveHeartbreak()
  8688. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8689. HeavenlyDisk()
  8690. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8691. DualGleamingBeam()
  8692. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8693. BanishingOrb()
  8694. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8695. hugg()
  8696. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8697. cutesigh()
  8698. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8699. Counter()
  8700. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8701. superjump()
  8702. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8703. dragin()
  8704. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8705. UniversalCollapse()
  8706. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8707. PureBomb()
  8708. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8709. Beams()
  8710. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8711. BeamOfDeath()
  8712. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8713. THE_TRUE_POWER_OF_VIOLENCE()
  8714. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8715. GleamingBeam()
  8716. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8717. ViolentRing()
  8718. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8719. CorruptionEvent()
  8720. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8721. CorruptBlink()
  8722. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8723. scattercorrupt()
  8724. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8725. shytaunty()
  8726. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8727. RapidBurst()
  8728. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8729. ChaosEND()
  8730. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8731. CyberSlash()
  8732. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8733. smiter()
  8734. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8735. SpeedDrop()
  8736. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8737. --DivineLights()
  8738. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8739. DivineBlast()
  8740. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8741. EquinoxOrbs()
  8742. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8743. yinyangi()
  8744. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8745. FallenOrbs()
  8746. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8747. StarfallEX()
  8748. end
  8749. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8750. FallenDEMISE()
  8751. end
  8752. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8753. EndGROUND()
  8754. end
  8755. end)
  8756.  
  8757. coroutine.resume(coroutine.create(function()
  8758. while true do
  8759. swait()
  8760. 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
  8761. 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)
  8762. end
  8763. if ModeOfGlitch == 5555 then
  8764. 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)
  8765. end
  8766. end
  8767. end))
  8768. --[[coroutine.resume(coroutine.create(function()
  8769. while true do
  8770. swait(2)
  8771. if chaosmode == true then
  8772. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8773. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8774. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8775. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8776. for i, v in pairs(mw1:GetChildren()) do
  8777. if v:IsA("Part") then
  8778. v.Transparency = 0.75
  8779. v.BrickColor = BrickColor.random()
  8780. v.Material = "Neon"
  8781. end
  8782. end
  8783. for i, v in pairs(m2:GetChildren()) do
  8784. if v:IsA("Part") then
  8785. v.BrickColor = BrickColor.random()
  8786. v.Material = "Neon"
  8787. end
  8788. end
  8789. end
  8790. end
  8791. end))]]
  8792.  
  8793.  
  8794.  
  8795. ff = Instance.new("ForceField",char)
  8796. ff.Visible = false
  8797. hum.Name = "Base"
  8798. hum.MaxHealth = 1.0E298
  8799. hum.Health = 1.0E298
  8800. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  8801. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  8802. hum.MaxHealth = 1.0E298
  8803. hum.Health = 1.0E298
  8804. end
  8805. end)
  8806.  
  8807. local Hair = Instance.new("Part", char)
  8808. Hair.Name = "Hair"
  8809. Hair.CanCollide = false
  8810. Hair.BrickColor = BrickColor.new("Institutional white")
  8811. Hair.Transparency = 0
  8812. Hair.Material = "Plastic"
  8813. Hair.Size = Vector3.new(1, 1, 2)
  8814. Hair.TopSurface = Enum.SurfaceType.Smooth
  8815. Hair.BottomSurface = Enum.SurfaceType.Smooth
  8816.  
  8817.  
  8818. local bguis = Instance.new("BillboardGui",tors)
  8819. bguis.Size = UDim2.new(25, 0, 25, 0)
  8820. local imgca = Instance.new("ImageLabel",bguis)
  8821. imgca.BackgroundTransparency = 1
  8822. imgca.ImageTransparency = 1
  8823. imgca.Size = UDim2.new(1,0,1,0)
  8824. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  8825. imgca.ImageColor3 = Color3.new(0,0,0)
  8826.  
  8827.  
  8828. local bguis2 = Instance.new("BillboardGui",tors)
  8829. bguis2.Size = UDim2.new(25, 0, 25, 0)
  8830. local imgca2 = Instance.new("ImageLabel",bguis)
  8831. imgca2.BackgroundTransparency = 1
  8832. imgca2.ImageTransparency = 1
  8833. imgca2.Size = UDim2.new(1,0,1,0)
  8834. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  8835. imgca2.ImageColor3 = Color3.new(0,0,0)
  8836.  
  8837.  
  8838.  
  8839. idleanim=.4
  8840. while true do
  8841. if mutedtog == false then
  8842. kan.Volume = currentVol
  8843. elseif mutedtog == true then
  8844. kan.Volume = 0
  8845. end
  8846. kan.PlaybackSpeed = currentPitch
  8847. kan.Pitch = currentPitch
  8848. kan.SoundId = currentThemePlaying
  8849. kan.Looped = true
  8850. kan.Parent = char
  8851. kan:Resume()
  8852. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  8853. imgca.ImageTransparency = 1
  8854. imgca2.ImageTransparency = 1
  8855. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  8856. imgca.ImageColor3 = MAINRUINCOLOR.Color
  8857. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8858. elseif ModeOfGlitch == 13 then
  8859. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  8860. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  8861. end
  8862. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  8863. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  8864. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  8865. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  8866. coroutine.resume(coroutine.create(function()
  8867. if chaosmode == true then
  8868. for i, v in pairs(mw1:GetChildren()) do
  8869. if v:IsA("Part") then
  8870. v.Transparency = 0
  8871. v.BrickColor = BrickColor.random()
  8872. v.Material = "Neon"
  8873. end
  8874. end
  8875. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8876. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8877. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8878. RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  8879. end
  8880. end))
  8881. coroutine.resume(coroutine.create(function()
  8882. if ModeOfGlitch == 66 then
  8883. for i, v in pairs(m:GetChildren()) do
  8884. if v:IsA("Part") then
  8885. v.Transparency = 1
  8886. v.BrickColor = BrickColor.random()
  8887. v.Material = "Neon"
  8888. end
  8889. end
  8890. for i, v in pairs(m2:GetChildren()) do
  8891. if v:IsA("Part") then
  8892. v.Transparency = 1
  8893. v.BrickColor = BrickColor.random()
  8894. v.Material = "Neon"
  8895. end
  8896. end
  8897. for i, v in pairs(mw1:GetChildren()) do
  8898. if v:IsA("Part") then
  8899. v.Transparency = 1
  8900. v.BrickColor = BrickColor.random()
  8901. v.Material = "Neon"
  8902. end
  8903. end
  8904. for i, v in pairs(extrawingmod1:GetChildren()) do
  8905. if v:IsA("Part") then
  8906. v.Transparency = 0
  8907. v.BrickColor = BrickColor.random()
  8908. v.Material = "Neon"
  8909. end
  8910. end
  8911. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8912. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8913. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8914. gane.Color = ColorSequence.new(BrickColor.random().Color)
  8915. gan.Color = ColorSequence.new(BrickColor.random().Color)
  8916. end
  8917. end))
  8918.  
  8919. coroutine.resume(coroutine.create(function()
  8920. if ModeOfGlitch == 66 then
  8921. RecolorTextAndRename("Snapped Guest",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  8922. end
  8923. end))
  8924.  
  8925. if chaosmode == false then
  8926. modet.Position = UDim2.new(0,0,0,0)
  8927. modet.Rotation = -5 * math.cos(sine / 32)
  8928. techc.Rotation = techc.Rotation + 1
  8929. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  8930. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  8931. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  8932. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  8933. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  8934. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  8935. else
  8936. techc.Rotation = techc.Rotation + 1
  8937. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  8938. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  8939. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  8940. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  8941. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  8942. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  8943. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  8944. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  8945. end
  8946. CameraManager()
  8947. swait()
  8948. 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)
  8949. 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)
  8950. 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)
  8951. 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)
  8952. 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)
  8953. 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)
  8954. 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)
  8955. 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)
  8956. 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)
  8957. 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)
  8958. 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)
  8959. 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)
  8960. sine = sine + change
  8961. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  8962. local velderp=RootPart.Velocity.y
  8963. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  8964. coroutine.resume(coroutine.create(function()
  8965. 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
  8966. if hitfloor ~= nil then
  8967. 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"))
  8968. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  8969. 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)
  8970. end
  8971. end
  8972. end
  8973. end))
  8974. if equipped==true or equipped==false then
  8975. if attack==false then
  8976. idle=idle+1
  8977. else
  8978. idle=0
  8979. end
  8980. if idle>=500 then
  8981. if attack==false then
  8982. --Sheath()
  8983. end
  8984. end
  8985. if RootPart.Velocity.y > 1 and hitfloor==nil then
  8986. Anim="Jump"
  8987. if attack==false then
  8988. 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)
  8989. 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)
  8990. 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)
  8991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  8992. 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)
  8993. 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)
  8994. end
  8995. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  8996. Anim="Fall"
  8997. if attack==false then
  8998. 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)
  8999. 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)
  9000. 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)
  9001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9002. 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)
  9003. 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)
  9004. end
  9005. elseif torvel<1 and hitfloor~=nil then
  9006. Anim="Idle"
  9007. if attack==false then
  9008. if ModeOfGlitch == 1 then
  9009. local snap = math.random(1,10)
  9010. if snap == 1 then
  9011. 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)
  9012. end
  9013. 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)
  9014. 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)
  9015. 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)
  9016. 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)
  9017. 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)
  9018. 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)
  9019. elseif ModeOfGlitch == 2 then
  9020. 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)
  9021. 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)
  9022. 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)
  9023. 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)
  9024. 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)
  9025. 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)
  9026. elseif ModeOfGlitch == 2 then
  9027. 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)
  9028. 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)
  9029. 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)
  9030. 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)
  9031. 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)
  9032. 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)
  9033. elseif ModeOfGlitch == 50 then
  9034. 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)
  9035. 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)
  9036. 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)
  9037. 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)
  9038. 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)
  9039. 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)
  9040. elseif ModeOfGlitch == 5555 then --5555
  9041. 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)
  9042. 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)
  9043. 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)
  9044. 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)
  9045. 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)
  9046. 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)
  9047. elseif ModeOfGlitch == 1002 then
  9048. 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)
  9049. 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)
  9050. 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)
  9051. 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)
  9052. 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)
  9053. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9054. elseif ModeOfGlitch == 12 then
  9055. 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)
  9056. 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)
  9057. 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)
  9058. 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)
  9059. 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)
  9060. 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)
  9061. elseif ModeOfGlitch == 3 then
  9062. local snap = math.random(1,32)
  9063. if snap == 1 then
  9064. 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)
  9065. end
  9066. 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)
  9067. 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)
  9068. 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)
  9069. 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)
  9070. 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)
  9071. 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)
  9072. elseif ModeOfGlitch == 4 then
  9073. local snap = math.random(1,5)
  9074. if snap == 1 then
  9075. 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)
  9076. 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)
  9077. 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)
  9078. end
  9079. 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)
  9080. 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)
  9081. 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)
  9082. 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)
  9083. 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)
  9084. 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)
  9085. elseif ModeOfGlitch == 66 then
  9086. local snap = math.random(1,2)
  9087. if snap == 1 then
  9088. 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)
  9089. 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)
  9090. 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)
  9091. end
  9092. 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)
  9093. 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)
  9094. 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)
  9095. 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)
  9096. 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)
  9097. 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)
  9098. elseif ModeOfGlitch == 5 then
  9099. 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)
  9100. 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)
  9101. 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)
  9102. 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)
  9103. 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)
  9104. 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)
  9105. elseif ModeOfGlitch == 6 then
  9106. 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)
  9107. 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)
  9108. 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)
  9109. 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)
  9110. 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)
  9111. 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)
  9112. elseif ModeOfGlitch == 13 then
  9113. 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)
  9114. 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)
  9115. 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)
  9116. 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)
  9117. 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)
  9118. 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)
  9119. elseif ModeOfGlitch == 8 then
  9120. 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)
  9121. 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)
  9122. 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)
  9123. 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)
  9124. 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)
  9125. 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)
  9126. elseif ModeOfGlitch == 9 then
  9127. 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)
  9128. 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))
  9129. 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)
  9130. 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)
  9131. 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)
  9132. 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)
  9133. 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)
  9134. 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)
  9135. elseif ModeOfGlitch == 1003 then
  9136. 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)
  9137. 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)
  9138. 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)
  9139. 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)
  9140. 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)
  9141. 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)
  9142.  
  9143. elseif ModeOfGlitch == 8889 then
  9144. 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)
  9145. 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)
  9146. 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)
  9147. 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)
  9148. 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)
  9149. 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)
  9150. elseif ModeOfGlitch == 1264532489 then
  9151. 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)
  9152. 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)
  9153. 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)
  9154. 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)
  9155. 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)
  9156. 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)
  9157. 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)
  9158. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9159. 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)
  9160. 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)
  9161. 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)
  9162. 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)
  9163. 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)
  9164. 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)
  9165. elseif ModeOfGlitch == 4367677813 then
  9166. 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)
  9167. 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)
  9168. 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)
  9169. 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)
  9170. 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)
  9171. 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)
  9172. elseif ModeOfGlitch == 55469696922 then --5555
  9173. 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)
  9174. 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)
  9175. 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)
  9176. 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)
  9177. 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)
  9178. 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)
  9179. elseif ModeOfGlitch == 999999999556 then
  9180. 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)
  9181. 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)
  9182. 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)
  9183. 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)
  9184. 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)
  9185. 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)
  9186. end
  9187. end
  9188. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9189. Anim="Walk"
  9190. if attack==false and ModeOfGlitch ~= 66 then
  9191. 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)
  9192. 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)
  9193. 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)
  9194. 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)
  9195. 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)
  9196. 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)
  9197. elseif attack==false and ModeOfGlitch == 66 then
  9198. 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)
  9199. 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)
  9200. 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)
  9201. 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)
  9202. 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)
  9203. 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)
  9204. end
  9205. elseif torvel>=22 and hitfloor~=nil then
  9206. Anim="Run"
  9207. if attack==false then
  9208. 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
  9209. 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)
  9210. 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)
  9211. 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)
  9212. 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)
  9213. 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)
  9214. 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)
  9215. if ModeOfGlitch == 12 then
  9216. 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)
  9217. 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)
  9218. 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)
  9219. 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)
  9220. 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)
  9221. 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)
  9222. end
  9223. if ModeOfGlitch == 9 then
  9224. 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)
  9225. 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))
  9226. 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)
  9227. end
  9228. 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
  9229. 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)
  9230. 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)
  9231. 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)
  9232. 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)
  9233. 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)
  9234. 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)
  9235. elseif ModeOfGlitch == 13 then
  9236. 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)
  9237. 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)
  9238. 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)
  9239. 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)
  9240. 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)
  9241. 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)
  9242. end
  9243. end
  9244. end
  9245. end
  9246. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement