Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game:GetService("Players").Lundo_Fett
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Lundo_fett
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62. wait(0.2)
  63.  
  64.  
  65. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  66. The super switcher.
  67. Velnorum is one of the first wielders.
  68.  
  69. Created, Reworked by NoobyGames12
  70. Edited by GodzPlaysRB
  71. Edited by wanTH092 (Gam_Filano CH)
  72. SpectrumGlitcher Developers ^^^
  73. ]])
  74.  
  75.  
  76. ------------- ORIGINAL WIELDER OC: Velnorum
  77. print([[Icons:
  78. ! = New
  79. ? = Spoilers
  80. * = Exclusivity
  81. C = Changes
  82.  
  83. ]])
  84. warn([[V 4.35 Update Log:
  85. ! - Added Betrayal mode (Chaos M)
  86.  
  87. !? - Added z move to destiny
  88. !c? = Added calamity transition
  89. !? - upcoming transition for some mode..
  90. - Removed some voice sound effects because they didnt sound right
  91. ]])
  92. --- its obs smooth af do not touch
  93. ---- Sources and functions might be taken from others
  94. plr = game:GetService("Players").Lundo_Fett
  95. char = plr.Character
  96. hum = char.Humanoid
  97. local cam = game.Workspace.CurrentCamera
  98. Camera = cam
  99. local CamInterrupt = false
  100. local TwoD = false
  101. local TargetInfo = {nil, nil}
  102. cam.CameraType = "Custom"
  103. t = char.Torso
  104. h = char.Head
  105. ra = char["Right Arm"]
  106. la = char["Left Arm"]
  107. rl = char["Right Leg"]
  108. ll = char["Left Leg"]
  109. tors = char.Torso
  110. lleg = char["Left Leg"]
  111. root = char.HumanoidRootPart
  112. hed = char.Head
  113. rleg = char["Right Leg"]
  114. rarm = char["Right Arm"]
  115. larm = char["Left Arm"]
  116. radian = math.rad
  117. random = math.random
  118. Vec3 = Vector3.new
  119. Inst = Instance.new
  120. cFrame = CFrame.new
  121. Euler = CFrame.fromEulerAnglesXYZ
  122. vt = Vector3.new
  123. bc = BrickColor.new
  124. br = BrickColor.random
  125. it = Instance.new
  126. cf = CFrame.new
  127. local Player_Size = 0
  128. cam = game.Workspace.CurrentCamera
  129. CF = CFrame.new
  130. angles = CFrame.Angles
  131. attack = false
  132. Euler = CFrame.fromEulerAnglesXYZ
  133. Rad = math.rad
  134. IT = Instance.new
  135. BrickC = BrickColor.new
  136. Cos = math.cos
  137. Acos = math.acos
  138. Sin = math.sin
  139. Asin = math.asin
  140. Abs = math.abs
  141. Mrandom = math.random
  142. Floor = math.floor
  143. IT = Instance.new
  144. CF = CFrame.new
  145. VT = Vector3.new
  146. RAD = math.rad
  147. C3 = Color3.new
  148. UD2 = UDim2.new
  149. BRICKC = BrickColor.new
  150. ANGLES = CFrame.Angles
  151. EULER = CFrame.fromEulerAnglesXYZ
  152. COS = math.cos
  153. ACOS = math.acos
  154. SIN = math.sin
  155. ASIN = math.asin
  156. ABS = math.abs
  157. MRANDOM = math.random
  158. FLOOR = math.floor
  159. local SINE = 0
  160.  
  161. local Booleans = {
  162. CamFollow = true,
  163. GyroUse = true
  164. }
  165.  
  166. function lerp(object, newCFrame, alpha)
  167. return object:lerp(newCFrame, alpha)
  168. end
  169.  
  170. local Directer = Inst("BodyGyro", root)
  171. Directer.MaxTorque = Vec3(0, 0, 0)
  172. Directer.P = 600000
  173. local CPart = Inst("Part")
  174. CPart.Anchored = true
  175. CPart.CanCollide = false
  176. CPart.Locked = true
  177. CPart.Transparency = 1
  178.  
  179. local rainbowmode = false
  180. local chaosmode = false
  181.  
  182. local kan = Instance.new("Sound",tors)
  183. kan.Volume = 0.85
  184. kan.TimePosition = 0
  185. kan.PlaybackSpeed = 1
  186. kan.Pitch = 1
  187. kan.SoundId = "rbxassetid://1255569288"
  188. kan.Name = "wrecked"
  189. kan.Looped = true
  190. kan:Play()
  191.  
  192. local currentThemePlaying = kan.SoundId
  193. local currentPitch = kan.Pitch
  194. local currentVol = kan.Volume
  195. function newTheme(ID,timepos,pitch,vol)
  196. local kanz = kan
  197. --kanz:Stop()
  198. kanz.Volume = vol
  199. --kanz.TimePosition = timepos
  200. kanz.PlaybackSpeed = pitch
  201. kanz.Pitch = pitch
  202. kanz.SoundId = ID
  203. kanz.Name = "wrecked"
  204. kanz.Looped = true
  205. currentThemePlaying = kanz.SoundId
  206. currentVol = kanz.Volume
  207. currentPitch = kanz.Pitch
  208. --kanz:Play()
  209. --coroutine.resume(coroutine.create(function()
  210. --wait(0.05)
  211. --end))
  212. end
  213.  
  214.  
  215. function newThemeCust(ID,timepos,pitch,vol)
  216. local kanz = kan
  217. kanz:Stop()
  218. kanz.Volume = vol
  219. kanz.TimePosition = timepos
  220. kanz.PlaybackSpeed = pitch
  221. kanz.Pitch = pitch
  222. kanz.SoundId = ID
  223. kanz.Name = "wrecked"
  224. kanz.Looped = true
  225. currentThemePlaying = kanz.SoundId
  226. currentVol = kanz.Volume
  227. currentPitch = kanz.Pitch
  228. kanz:Play()
  229. coroutine.resume(coroutine.create(function()
  230. wait(0.05)
  231. end))
  232. end
  233.  
  234. local mutedtog = false
  235.  
  236. function CameraEnshaking(Length,Intensity)
  237. coroutine.resume(coroutine.create(function()
  238. local intensity = 1*Intensity
  239. local rotM = 0.01*Intensity
  240. for i = 0, Length, 0.1 do
  241. swait()
  242. intensity = intensity - 0.05*Intensity/Length
  243. rotM = rotM - 0.0005*Intensity/Length
  244. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  245. 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)
  246. end
  247. Humanoid.CameraOffset = Vec3(0, 0, 0)
  248. end))
  249. end
  250. CamShake=function(Part,Distan,Power,Times)
  251. local de=Part.Position
  252. for i,v in pairs(workspace:children()) do
  253. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  254. for _,c in pairs(v:children()) do
  255. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  256. local Noob=v.Humanoid
  257. if Noob~=nil then
  258. coroutine.resume(coroutine.create(function()
  259. FV = Instance.new("BoolValue", Noob)
  260. FV.Name = "CameraShake"
  261. for ShakeNum=1,Times do
  262. swait()
  263. local ef=Power
  264. if ef>=1 then
  265. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  266. else
  267. ef=Power*10
  268. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  269. end
  270. end
  271. Humanoid.CameraOffset = Vector3.new(0,0,0)
  272. FV:Destroy()
  273. end))
  274. CameraShake(Times, Power, Noob)
  275. end
  276. end
  277. end
  278. end
  279. end
  280. end
  281.  
  282. local toggleTag = true
  283. local bilguit = Instance.new("BillboardGui", hed)
  284. bilguit.Adornee = nil
  285. bilguit.Name = "ModeName"
  286. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  287. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  288. local modet = Instance.new("TextLabel", bilguit)
  289. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  290. modet.FontSize = "Size8"
  291. modet.TextScaled = true
  292. modet.TextTransparency = 0
  293. modet.BackgroundTransparency = 1
  294. modet.TextTransparency = 0
  295. modet.TextStrokeTransparency = 0
  296. modet.Font = "Antique"
  297. modet.TextStrokeColor3 = Color3.new(1,0,0)
  298. modet.TextColor3 = Color3.new(0.25,0,0)
  299. modet.Text = "GOD GLITCHER"
  300.  
  301.  
  302. function chatfunc(text,color,typet,font,timeex)
  303. local chat = coroutine.wrap(function()
  304. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  305. Character:FindFirstChild("TalkingBillBoard"):destroy()
  306. end
  307. local naeeym2 = Instance.new("BillboardGui",Character)
  308. naeeym2.Size = UDim2.new(0,100,0,40)
  309. naeeym2.StudsOffset = Vector3.new(0,3,0)
  310. naeeym2.Adornee = Character.Head
  311. naeeym2.Name = "TalkingBillBoard"
  312. local tecks2 = Instance.new("TextLabel",naeeym2)
  313. tecks2.BackgroundTransparency = 1
  314. tecks2.BorderSizePixel = 0
  315. tecks2.Text = ""
  316. tecks2.Font = font
  317. tecks2.TextSize = 30
  318. tecks2.TextStrokeTransparency = 0
  319. tecks2.TextColor3 = color
  320. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  321. tecks2.Size = UDim2.new(1,0,0.5,0)
  322. local tecks3 = Instance.new("TextLabel",naeeym2)
  323. tecks3.BackgroundTransparency = 1
  324. tecks3.BorderSizePixel = 0
  325. tecks3.Text = ""
  326. tecks3.Font = font
  327. tecks3.TextSize = 30
  328. tecks3.TextStrokeTransparency = 0
  329. if typet == "Inverted" then
  330. tecks3.TextColor3 = Color3.new(0,0,0)
  331. tecks3.TextStrokeColor3 = color
  332. elseif typet == "Normal" then
  333. tecks3.TextColor3 = color
  334. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  335. end
  336. tecks3.Size = UDim2.new(1,0,0.5,0)
  337. coroutine.resume(coroutine.create(function()
  338. while true do
  339. swait(1)
  340. if chaosmode == true then
  341. tecks2.TextColor3 = BrickColor.random().Color
  342. tecks3.TextStrokeColor3 = BrickColor.random().Color
  343. end
  344. end
  345. end))
  346. modet.TextTransparency = modet.TextTransparency + 1
  347. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  348. for i = 0, 74*timeex do
  349. swait()
  350. modet.TextTransparency = 1
  351. modet.TextStrokeTransparency = 1
  352. tecks2.Text = text
  353. tecks3.Text = text
  354. end
  355. local randomrot = math.random(1,2)
  356. if randomrot == 1 then
  357. for i = 1, 50 do
  358. swait()
  359. tecks2.Text = text
  360. tecks3.Text = text
  361. modet.TextTransparency = modet.TextTransparency - .02
  362. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  363. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  364. tecks2.TextTransparency = tecks2.TextTransparency + .04
  365. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  366. tecks3.TextTransparency = tecks2.TextTransparency + .04
  367. end
  368. elseif randomrot == 2 then
  369. for i = 1, 50 do
  370. swait()
  371. tecks2.Text = text
  372. tecks3.Text = text
  373. modet.TextTransparency = modet.TextTransparency - .02
  374. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  375. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  376. tecks2.TextTransparency = tecks2.TextTransparency + .04
  377. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks3.TextTransparency = tecks2.TextTransparency + .04
  379. end
  380. end
  381. modet.TextTransparency = 0
  382. modet.TextStrokeTransparency = 0
  383. if toggleTag == false then
  384. modet.TextTransparency = 1
  385. modet.TextStrokeTransparency = 1
  386. end
  387. naeeym2:Destroy()
  388. end)
  389. chat()
  390. end
  391.  
  392. function bosschatfunc(text,color,watval)
  393. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  394. coroutine.resume(coroutine.create(function()
  395. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  396. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  397. end
  398. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  399. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  400. scrg.Name = "Dialog"
  401. local txtlb = Instance.new("TextLabel",scrg)
  402. txtlb.Text = ""
  403. txtlb.Font = "Bodoni"
  404. txtlb.TextColor3 = Color3.new(0,0,0)
  405. txtlb.TextStrokeTransparency = 0
  406. txtlb.BackgroundTransparency = 0.75
  407. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  408. txtlb.TextStrokeColor3 = color
  409. txtlb.TextScaled = true
  410. txtlb.Size = UDim2.new(1,0,0.25,0)
  411. txtlb.TextXAlignment = "Left"
  412. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  413. local txtlb2 = Instance.new("TextLabel",scrg)
  414. txtlb2.Text = plr.Name.." The Glitcher:"
  415. txtlb2.Font = "Arcade"
  416. txtlb2.TextColor3 = Color3.new(0,0,0)
  417. txtlb2.TextStrokeTransparency = 0
  418. txtlb2.BackgroundTransparency = 1
  419. txtlb2.TextStrokeColor3 = color
  420. txtlb2.TextSize = 40
  421. txtlb2.Size = UDim2.new(1,0,0.25,0)
  422. txtlb2.TextXAlignment = "Left"
  423. txtlb2.Position = UDim2.new(0,0,1,0)
  424. local fvalen = 0.55
  425. local fval = -0.49
  426. coroutine.resume(coroutine.create(function()
  427. while true do
  428. swait()
  429. if chaosmode == true then
  430. txtlb.Rotation = math.random(-1,1)
  431. txtlb2.Rotation = math.random(-1,1)
  432. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  433. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  434. txtlb.TextStrokeColor3 = BrickColor.random().Color
  435. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  436. end
  437. end
  438. end))
  439. coroutine.resume(coroutine.create(function()
  440. while true do
  441. swait()
  442. if scrg.Parent ~= nil then
  443. fvalen = fvalen - 0.0001
  444. elseif scrg.Parent == nil then
  445. break
  446. end
  447. end
  448. end))
  449. local flol = 1.75
  450. local flil = 1.6
  451. coroutine.resume(coroutine.create(function()
  452. for i = 0, 9 do
  453. swait()
  454. fval = fval + 0.05
  455. flol = flol - 0.1
  456. flil = flil - 0.1
  457. txtlb.Text = ""
  458. txtlb.Position = UDim2.new(0,0,flol,0)
  459. txtlb2.Position = UDim2.new(0,0,flil,0)
  460. end
  461. txtlb.Text = text
  462. wait(watval)
  463. local valinc = 0
  464. for i = 0, 99 do
  465. swait()
  466. valinc = valinc + 0.0001
  467. flol = flol + valinc
  468. flil = flil + valinc
  469. txtlb.Rotation = txtlb.Rotation + valinc*20
  470. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  471. txtlb.Position = UDim2.new(0,0,flol,0)
  472. txtlb2.Position = UDim2.new(0,0,flil,0)
  473. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  474. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  475. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  476. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  477. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  478. end
  479. scrg:Destroy()
  480. end))
  481. end))
  482. end
  483. end
  484.  
  485.  
  486. local Create = LoadLibrary("RbxUtility").Create
  487.  
  488. CFuncs = {
  489. ["Part"] = {
  490. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  491. local Part = Create("Part"){
  492. Parent = Parent,
  493. Reflectance = Reflectance,
  494. Transparency = Transparency,
  495. CanCollide = false,
  496. Locked = true,
  497. BrickColor = BrickColor.new(tostring(BColor)),
  498. Name = Name,
  499. Size = Size,
  500. Material = Material,
  501. }
  502. RemoveOutlines(Part)
  503. return Part
  504. end;
  505. };
  506.  
  507. ["Mesh"] = {
  508. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  509. local Msh = Create(Mesh){
  510. Parent = Part,
  511. Offset = OffSet,
  512. Scale = Scale,
  513. }
  514. if Mesh == "SpecialMesh" then
  515. Msh.MeshType = MeshType
  516. Msh.MeshId = MeshId
  517. end
  518. return Msh
  519. end;
  520. };
  521.  
  522. ["Mesh"] = {
  523. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  524. local Msh = Create(Mesh){
  525. Parent = Part,
  526. Offset = OffSet,
  527. Scale = Scale,
  528. }
  529. if Mesh == "SpecialMesh" then
  530. Msh.MeshType = MeshType
  531. Msh.MeshId = MeshId
  532. end
  533. return Msh
  534. end;
  535. };
  536.  
  537. ["Weld"] = {
  538. Create = function(Parent, Part0, Part1, C0, C1)
  539. local Weld = Create("Weld"){
  540. Parent = Parent,
  541. Part0 = Part0,
  542. Part1 = Part1,
  543. C0 = C0,
  544. C1 = C1,
  545. }
  546. return Weld
  547. end;
  548. };
  549.  
  550. ["Sound"] = {
  551. Create = function(id, par, vol, pit)
  552. coroutine.resume(coroutine.create(function()
  553. local S = Create("Sound"){
  554. Volume = vol,
  555. Name = "EffectSoundo",
  556. Pitch = pit or 1,
  557. SoundId = id,
  558. Parent = par or workspace,
  559. }
  560. wait()
  561. S:play()
  562. game:GetService("Debris"):AddItem(S, 10)
  563. end))
  564. end;
  565. };
  566.  
  567. ["TimeSound"] = {
  568. Create = function(id, par, vol, pit, timepos)
  569. coroutine.resume(coroutine.create(function()
  570. local S = Create("Sound"){
  571. Volume = vol,
  572. Name = "EffectSoundo",
  573. Pitch = pit or 1,
  574. SoundId = id,
  575. TimePosition = timepos,
  576. Parent = par or workspace,
  577. }
  578. wait()
  579. S:play()
  580. game:GetService("Debris"):AddItem(S, 10)
  581. end))
  582. end;
  583. };
  584. ["EchoSound"] = {
  585. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  586. coroutine.resume(coroutine.create(function()
  587. local Sas = Create("Sound"){
  588. Volume = vol,
  589. Name = "EffectSoundo",
  590. Pitch = pit or 1,
  591. SoundId = id,
  592. TimePosition = timepos,
  593. Parent = par or workspace,
  594. }
  595. local E = Create("EchoSoundEffect"){
  596. Delay = echodelay,
  597. Name = "Echo",
  598. Feedback = fedb,
  599. DryLevel = dryl,
  600. Parent = Sas,
  601. }
  602. wait()
  603. Sas:play()
  604. game:GetService("Debris"):AddItem(Sas, delays)
  605. end))
  606. end;
  607. };
  608.  
  609. ["LongSound"] = {
  610. Create = function(id, par, vol, pit)
  611. coroutine.resume(coroutine.create(function()
  612. local S = Create("Sound"){
  613. Volume = vol,
  614. Pitch = pit or 1,
  615. SoundId = id,
  616. Parent = par or workspace,
  617. }
  618. wait()
  619. S:play()
  620. game:GetService("Debris"):AddItem(S, 60)
  621. end))
  622. end;
  623. };
  624.  
  625. ["ParticleEmitter"] = {
  626. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  627. local fp = Create("ParticleEmitter"){
  628. Parent = Parent,
  629. Color = ColorSequence.new(Color1, Color2),
  630. LightEmission = LightEmission,
  631. Size = Size,
  632. Texture = Texture,
  633. Transparency = Transparency,
  634. ZOffset = ZOffset,
  635. Acceleration = Accel,
  636. Drag = Drag,
  637. LockedToPart = LockedToPart,
  638. VelocityInheritance = VelocityInheritance,
  639. EmissionDirection = EmissionDirection,
  640. Enabled = Enabled,
  641. Lifetime = LifeTime,
  642. Rate = Rate,
  643. Rotation = Rotation,
  644. RotSpeed = RotSpeed,
  645. Speed = Speed,
  646. VelocitySpread = VelocitySpread,
  647. }
  648. return fp
  649. end;
  650. };
  651.  
  652. CreateTemplate = {
  653.  
  654. };
  655. }
  656.  
  657.  
  658.  
  659. New = function(Object, Parent, Name, Data)
  660. local Object = Instance.new(Object)
  661. for Index, Value in pairs(Data or {}) do
  662. Object[Index] = Value
  663. end
  664. Object.Parent = Parent
  665. Object.Name = Name
  666. return Object
  667. end
  668. local halocolor = BrickColor.new("Pastel light blue")
  669. local halocolor2 = BrickColor.new("Cool yellow")
  670. local starcolor = BrickColor.new("Bright yellow")
  671. local lunacolor = BrickColor.new("Navy blue")
  672. local lunacolor2 = BrickColor.new("Bright blue")
  673. local wepcolor = BrickColor.new("Really black")
  674. local maincolor = BrickColor.new("Really black")
  675. local m = Instance.new("Model",char)
  676. local m2 = Instance.new("Model",char)
  677. local m3 = Instance.new("Model",char)
  678. local mw1 = Instance.new("Model",char)
  679. local mw2 = Instance.new("Model",char)
  680.  
  681.  
  682. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  683. local gui = it(GuiType)
  684. gui.Parent = parent
  685. gui.Text = text
  686. gui.BackgroundTransparency = backtrans
  687. gui.BackgroundColor3 = backcol
  688. gui.SizeConstraint = "RelativeXY"
  689. gui.TextXAlignment = "Center"
  690. gui.TextYAlignment = "Center"
  691. gui.Position = pos
  692. gui.Size = size
  693. gui.Font = "SourceSans"
  694. gui.FontSize = "Size14"
  695. gui.TextWrapped = false
  696. gui.TextStrokeTransparency = 0
  697. gui.TextColor = BrickColor.new("White")
  698. return gui
  699. end
  700. --------------------------- GUI STUFF
  701. local basgui = it("GuiMain")
  702. basgui.Parent = plr.PlayerGui
  703. basgui.Name = "VISgui"
  704. local fullscreenz = it("Frame")
  705. fullscreenz.Parent = basgui
  706. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  707. fullscreenz.BackgroundTransparency = 1
  708. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  709. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  710. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  711. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  712. imgl2.BackgroundTransparency = 1
  713. imgl2.BorderSizePixel = 0
  714. imgl2.ImageTransparency = 0.5
  715. imgl2.ImageColor3 = Color3.new(1,0,0)
  716. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  717. imgl2.Size = UDim2.new(0,1000,0,1000)
  718. imgl2.Image = "rbxassetid://2325939897"
  719. local techc = imgl2:Clone()
  720. techc.Parent = fullscreenz
  721. techc.ImageTransparency = 0
  722. techc.Size = UDim2.new(0,900,0,900)
  723. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  724. techc.ImageColor3 = Color3.new(1,0,0)
  725. techc.Image = "rbxassetid://2273224484"
  726. local circl = imgl2:Clone()
  727. circl.Parent = fullscreenz
  728. circl.ImageTransparency = 0
  729. circl.Size = UDim2.new(0,550,0,550)
  730. circl.Position = UDim2.new(0.75,25,0.55,25)
  731. circl.ImageColor3 = Color3.new(0,0,0)
  732. circl.Image = "rbxassetid://2312119891"
  733. local circl2 = imgl2:Clone()
  734. circl2.Parent = fullscreenz
  735. circl2.ImageTransparency = 0
  736. circl2.Size = UDim2.new(0,700,0,700)
  737. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  738. circl2.ImageColor3 = Color3.new(1,0,0)
  739. circl2.Image = "rbxassetid://2312119891"
  740. local imgl2b = imgl2:Clone()
  741. imgl2b.Parent = fullscreenz
  742. imgl2b.ImageTransparency = 0
  743. imgl2b.Size = UDim2.new(0,800,0,800)
  744. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  745. imgl2b.ImageColor3 = Color3.new(0,0,0)
  746. local ned = Instance.new("TextLabel",fullscreenz)
  747. ned.ZIndex = 2
  748. ned.Font = "Arcade"
  749. ned.BackgroundTransparency = 1
  750. ned.BorderSizePixel = 0.65
  751. ned.Size = UDim2.new(0.3,0,0.2,0)
  752. ned.Position = UDim2.new(0.7,0,0.8,0)
  753. ned.TextColor3 = BrickColor.new("Really red").Color
  754. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  755. ned.TextScaled = true
  756. ned.TextStrokeTransparency = 0
  757. ned.Text = "MAYHEM"
  758. ned.TextSize = 24
  759. ned.Rotation = 1
  760. ned.TextXAlignment = "Right"
  761. ned.TextYAlignment = "Bottom"
  762.  
  763. local extrawingmod1 = Instance.new("Model",char)
  764. local extrawingmod2 = Instance.new("Model",char)
  765.  
  766. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  767. local p = Instance.new("Part")
  768. p.TopSurface = 0
  769. p.BottomSurface = 0
  770. p.Parent = parent
  771. p.Size = Vector3.new(0.1,0.1,0.1)
  772. p.Transparency = transparency
  773. p.Reflectance = reflectance
  774. p.CanCollide = false
  775. p.Locked = true
  776. p.BrickColor = brickcolor
  777. p.Material = material
  778. return p
  779. end
  780.  
  781. function CreateMesh(parent,meshtype,x1,y1,z1)
  782. local mesh = Instance.new("SpecialMesh",parent)
  783. mesh.MeshType = meshtype
  784. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  785. return mesh
  786. end
  787.  
  788. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  789. local mesh = Instance.new("SpecialMesh",parent)
  790. mesh.MeshType = "FileMesh"
  791. mesh.MeshId = meshid
  792. mesh.Scale = Vector3.new(x1,y1,z1)
  793. return mesh
  794. end
  795.  
  796.  
  797. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  798. local mesh = Instance.new("SpecialMesh",parent)
  799. mesh.MeshType = "FileMesh"
  800. mesh.MeshId = meshid
  801. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  802. mesh.Scale = Vector3.new(x1,y1,z1)
  803. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  804. return mesh
  805. end
  806.  
  807. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  808. local weld = Instance.new("Weld")
  809. weld.Parent = parent
  810. weld.Part0 = part0
  811. weld.Part1 = part1
  812. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  813. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  814. return weld
  815. end
  816.  
  817.  
  818. --------------
  819. --------------
  820. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  821. 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))
  822. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  823. 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))
  824.  
  825. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  826. CreateMesh(handle,"Brick",0,0,0)
  827. 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))
  828. local valuaring = 10
  829. for i = 0, 49 do
  830. valuaring = valuaring + 10
  831. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  832. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  833. 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))
  834. end
  835.  
  836. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  837. CreateMesh(handle,"Brick",0,0,0)
  838. 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))
  839. local valuaring = 10
  840. for i = 0, 49 do
  841. valuaring = valuaring + 10
  842. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  843. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  844. 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))
  845. end
  846.  
  847.  
  848. local handle = CreateParta(m,1,1,"Neon",maincolor)
  849. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  850. 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))
  851.  
  852. --- Left wing.
  853.  
  854. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  855. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  856. 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))
  857.  
  858. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. 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))
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. A0 = Instance.new('Attachment',wed)
  865. A0.Position = vt(0,0.25,0.25)
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,0.5,3)
  868. 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))
  869. A1 = Instance.new('Attachment',wed)
  870. A1.Position = vt(0,-0.25,-2)
  871. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,3,0.5)
  873. 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))
  874.  
  875. tl1 = Instance.new('Trail',wed)
  876. tl1.Attachment0 = A1
  877. tl1.Attachment1 = A0
  878. tl1.Texture = "rbxassetid://2108945559"
  879. tl1.LightEmission = 1
  880. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  881. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  882. tl1.Lifetime = 0.6
  883.  
  884.  
  885. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  886. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  887. 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))
  888.  
  889. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. 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))
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. 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))
  895. A0 = Instance.new('Attachment',wed)
  896. A0.Position = vt(0,0.25,0.25)
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,3)
  899. 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))
  900. A1 = Instance.new('Attachment',wed)
  901. A1.Position = vt(0,-0.25,-2)
  902. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,3,0.5)
  904. 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))
  905.  
  906. tl2 = Instance.new('Trail',wed)
  907. tl2.Attachment0 = A1
  908. tl2.Attachment1 = A0
  909. tl2.Texture = "rbxassetid://2108945559"
  910. tl2.LightEmission = 1
  911. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  912. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  913. tl2.Lifetime = 0.6
  914.  
  915. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  916. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  917. 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))
  918.  
  919. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  920. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  921. 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))
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. 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))
  925. A0 = Instance.new('Attachment',wed)
  926. A0.Position = vt(0,0.25,0.25)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,3)
  929. 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))
  930. A1 = Instance.new('Attachment',wed)
  931. A1.Position = vt(0,-0.25,-2)
  932. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,3,0.5)
  934. 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))
  935.  
  936. tl3 = Instance.new('Trail',wed)
  937. tl3.Attachment0 = A1
  938. tl3.Attachment1 = A0
  939. tl3.Texture = "rbxassetid://2108945559"
  940. tl3.LightEmission = 1
  941. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  942. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  943. tl3.Lifetime = 0.6
  944.  
  945. tl1.Enabled = false
  946. tl2.Enabled = false
  947. tl3.Enabled = false
  948. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  949. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  950. 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))
  951.  
  952. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. 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))
  955. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. 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))
  958. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,3)
  960. 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))
  961. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,3,0.5)
  963. 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))
  964.  
  965. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  966. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  967. 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))
  968.  
  969. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  970. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  971. 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))
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. 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))
  975. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  976. CreateMesh(wed,"Wedge",0.05,0.5,3)
  977. 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))
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,3,0.5)
  980. 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))
  981.  
  982. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  983. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  984. 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))
  985.  
  986. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  988. 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))
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. 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))
  992. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  993. CreateMesh(wed,"Wedge",0.05,0.5,3)
  994. 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))
  995. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  996. CreateMesh(wed,"Wedge",0.05,3,0.5)
  997. 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))
  998.  
  999. -- Right wing.
  1000.  
  1001. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1002. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1003. 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))
  1004.  
  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. A0 = Instance.new('Attachment',wed)
  1009. A0.Position = vt(0,0.25,0.25)
  1010. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1015. 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))
  1016. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1018. 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))
  1019. A1 = Instance.new('Attachment',wed)
  1020. A1.Position = vt(0,2,0.25)
  1021.  
  1022. tr1 = Instance.new('Trail',wed)
  1023. tr1.Attachment0 = A1
  1024. tr1.Attachment1 = A0
  1025. tr1.Texture = "rbxassetid://2108945559"
  1026. tr1.LightEmission = 1
  1027. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1028. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1029. tr1.Lifetime = 0.6
  1030.  
  1031. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1032. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1033. 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))
  1034.  
  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. A0 = Instance.new('Attachment',wed)
  1039. A0.Position = vt(0,0.25,0.25)
  1040. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1041. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1042. 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))
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1045. 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))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1048. 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))
  1049. A1 = Instance.new('Attachment',wed)
  1050. A1.Position = vt(0,2,0.25)
  1051.  
  1052. tr2 = Instance.new('Trail',wed)
  1053. tr2.Attachment0 = A1
  1054. tr2.Attachment1 = A0
  1055. tr2.Texture = "rbxassetid://2108945559"
  1056. tr2.LightEmission = 1
  1057. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1058. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1059. tr2.Lifetime = 0.6
  1060.  
  1061. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1062. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1063. 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))
  1064.  
  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. A0 = Instance.new('Attachment',wed)
  1069. A0.Position = vt(0,0.25,0.25)
  1070. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1071. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1072. 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))
  1073. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1075. 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))
  1076. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1078. 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))
  1079. A1 = Instance.new('Attachment',wed)
  1080. A1.Position = vt(0,2,0.25)
  1081.  
  1082. tr3 = Instance.new('Trail',wed)
  1083. tr3.Attachment0 = A1
  1084. tr3.Attachment1 = A0
  1085. tr3.Texture = "rbxassetid://2108945559"
  1086. tr3.LightEmission = 1
  1087. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1088. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1089. tr3.Lifetime = 0.6
  1090.  
  1091.  
  1092. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1093. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1094. 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))
  1095.  
  1096. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. 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))
  1099. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. 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))
  1102. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1104. 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))
  1105. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1107. 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))
  1108.  
  1109. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1110. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1111. 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))
  1112.  
  1113. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1114. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1115. 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))
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1118. 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))
  1119. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1120. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1121. 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))
  1122. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1123. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1124. 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))
  1125.  
  1126. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1127. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1128. 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))
  1129.  
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1132. 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))
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1135. 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))
  1136. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1137. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1138. 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))
  1139. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1140. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1141. 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))
  1142.  
  1143. --HERES THE RING
  1144.  
  1145.  
  1146. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1147. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1148. 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))
  1149. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1150. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1151. 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))
  1152. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1154. 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))
  1155.  
  1156.  
  1157. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1158. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1159. 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))
  1160.  
  1161. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1162. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1163. 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))
  1164.  
  1165.  
  1166.  
  1167. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1168. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1169. 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))
  1170.  
  1171. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1172. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1173. 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))
  1174.  
  1175. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1176. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1177. 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))
  1178.  
  1179. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1180. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1181. 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))
  1182. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1183. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1184. 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))]]--
  1185.  
  1186. --- second ring
  1187.  
  1188.  
  1189. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1190. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1191. 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))
  1192.  
  1193. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1194. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1195. 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))
  1196.  
  1197.  
  1198.  
  1199. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1200. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1201. 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))
  1202.  
  1203. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1204. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1205. 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))
  1206.  
  1207. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1208. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1209. 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))
  1210.  
  1211. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1212. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1213. 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))
  1214. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1215. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1216. 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))
  1217.  
  1218.  
  1219.  
  1220. for i, v in pairs(m:GetChildren()) do
  1221. if v:IsA("Part") then
  1222. v.BrickColor = BrickColor.new("Really black")
  1223. v.Material = "Glass"
  1224. end
  1225. end
  1226. for i, v in pairs(m2:GetChildren()) do
  1227. if v:IsA("Part") then
  1228. v.BrickColor = BrickColor.new("Crimson")
  1229. v.Material = "Granite"
  1230. end
  1231. end
  1232. for i, v in pairs(m3:GetChildren()) do
  1233. if v:IsA("Part") then
  1234. v.BrickColor = BrickColor.new("Really red")
  1235. v.Material = "Neon"
  1236. end
  1237. end
  1238. for i, v in pairs(mw2:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.BrickColor = BrickColor.new("Really red")
  1241. v.Material = "Neon"
  1242. end
  1243. end
  1244. for i, v in pairs(mw1:GetChildren()) do
  1245. if v:IsA("Part") then
  1246. v.Transparency = 1
  1247. v.BrickColor = BrickColor.new("Really red")
  1248. v.Material = "Neon"
  1249. end
  1250. end
  1251. for i, v in pairs(extrawingmod1:GetChildren()) do
  1252. if v:IsA("Part") then
  1253. v.Transparency = 1
  1254. v.BrickColor = BrickColor.new("White")
  1255. v.Material = "Neon"
  1256. end
  1257. end
  1258. for i, v in pairs(extrawingmod2:GetChildren()) do
  1259. if v:IsA("Part") then
  1260. v.Transparency = 1
  1261. v.BrickColor = BrickColor.new("White")
  1262. v.Material = "Neon"
  1263. end
  1264. end
  1265. local MAINRUINCOLOR = BrickColor.new("Really red")
  1266. ------
  1267.  
  1268.  
  1269. function RemoveOutlines(part)
  1270. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1271. end
  1272. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1273. local Part = Create("Part")({
  1274. Parent = Parent,
  1275. Reflectance = Reflectance,
  1276. Transparency = Transparency,
  1277. CanCollide = false,
  1278. Locked = true,
  1279. BrickColor = BrickColor.new(tostring(BColor)),
  1280. Name = Name,
  1281. Size = Size,
  1282. Material = Material
  1283. })
  1284. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1285. RemoveOutlines(Part)
  1286. return Part
  1287. end
  1288. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1289. local Msh = Create(Mesh)({
  1290. Parent = Part,
  1291. Offset = OffSet,
  1292. Scale = Scale
  1293. })
  1294. if Mesh == "SpecialMesh" then
  1295. Msh.MeshType = MeshType
  1296. Msh.MeshId = MeshId
  1297. end
  1298. return Msh
  1299. end
  1300. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1301. local Weld = Create("Weld")({
  1302. Parent = Parent,
  1303. Part0 = Part0,
  1304. Part1 = Part1,
  1305. C0 = C0,
  1306. C1 = C1
  1307. })
  1308. return Weld
  1309. end
  1310.  
  1311. Player = plr
  1312. Character=Player.Character
  1313. PlayerGui=Player.PlayerGui
  1314. Backpack=Player.Backpack
  1315. Torso=Character.Torso
  1316. Head=Character.Head
  1317. Humanoid=Character.Humanoid
  1318. m=Instance.new('Model',Character)
  1319. LeftArm=Character["Left Arm"]
  1320. LeftLeg=Character["Left Leg"]
  1321. RightArm=Character["Right Arm"]
  1322. RightLeg=Character["Right Leg"]
  1323. LS=Torso["Left Shoulder"]
  1324. LH=Torso["Left Hip"]
  1325. RS=Torso["Right Shoulder"]
  1326. RH=Torso["Right Hip"]
  1327. Face = Head.face
  1328. Neck=Torso.Neck
  1329. it=Instance.new
  1330. attacktype=1
  1331. vt=Vector3.new
  1332. cf=CFrame.new
  1333. euler=CFrame.fromEulerAnglesXYZ
  1334. angles=CFrame.Angles
  1335. cloaked=false
  1336. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1337. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1338. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1339. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1340. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1341. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1342. RootPart=Character.HumanoidRootPart
  1343. RootJoint=RootPart.RootJoint
  1344. RootCF=euler(-1.57,0,3.14)
  1345. attack = false
  1346. attackdebounce = false
  1347. deb=false
  1348. equipped=true
  1349. hand=false
  1350. combo=0
  1351. mana=0
  1352. trispeed=.2
  1353. attackmode='none'
  1354. local idle=0
  1355. local Anim="Idle"
  1356. local Effects={}
  1357. local gun=false
  1358. local shoot=false
  1359. local sine = 0
  1360. local change = 1
  1361.  
  1362. function RecolorTextAndRename(name,col1,col2,font)
  1363. modet.TextStrokeColor3 = col2
  1364. modet.TextColor3 = col1
  1365. modet.Font = font
  1366. modet.Text = name
  1367. techc.ImageColor3 = col2
  1368. circl.ImageColor3 = col2
  1369. circl2.ImageColor3 = col1
  1370. imgl2.ImageColor3 = col1
  1371. imgl2b.ImageColor3 = col2
  1372. ned.Text = name
  1373. ned.TextColor3 = col1
  1374. ned.TextStrokeColor3 = col2
  1375. end
  1376. --save shoulders
  1377. RSH, LSH=nil, nil
  1378. --welds
  1379. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1380. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1381. LH=Torso["Left Hip"]
  1382. RH=Torso["Right Hip"]
  1383. TorsoColor=Torso.BrickColor
  1384. function NoOutline(Part)
  1385. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1386. end
  1387. ch=Character
  1388. RSH=ch.Torso["Right Shoulder"]
  1389. LSH=ch.Torso["Left Shoulder"]
  1390. --
  1391. RSH.Parent=nil
  1392. LSH.Parent=nil
  1393. --
  1394. RW.Name="Right Shoulder"
  1395. RW.Part0=ch.Torso
  1396. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1397. RW.C1=cf(0, 0.5, 0)
  1398. RW.Part1=ch["Right Arm"]
  1399. RW.Parent=ch.Torso
  1400. --
  1401. LW.Name="Left Shoulder"
  1402. LW.Part0=ch.Torso
  1403. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1404. LW.C1=cf(0, 0.5, 0)
  1405. LW.Part1=ch["Left Arm"]
  1406. LW.Parent=ch.Torso
  1407.  
  1408. local Stats=Instance.new("BoolValue")
  1409. Stats.Name="Stats"
  1410. Stats.Parent=Character
  1411. local Atk=Instance.new("NumberValue")
  1412. Atk.Name="Damage"
  1413. Atk.Parent=Stats
  1414. Atk.Value=1
  1415. local Def=Instance.new("NumberValue")
  1416. Def.Name="Defense"
  1417. Def.Parent=Stats
  1418. Def.Value=1
  1419. local Speed=Instance.new("NumberValue")
  1420. Speed.Name="Speed"
  1421. Speed.Parent=Stats
  1422. Speed.Value=1
  1423. local Mvmt=Instance.new("NumberValue")
  1424. Mvmt.Name="Movement"
  1425. Mvmt.Parent=Stats
  1426. Mvmt.Value=1
  1427.  
  1428. local donum=0
  1429. local ast = {744586075,385254610}
  1430.  
  1431. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1432. local fp=it("Part")
  1433. fp.formFactor=formfactor
  1434. fp.Parent=parent
  1435. fp.Reflectance=reflectance
  1436. fp.Transparency=transparency
  1437. fp.CanCollide=false
  1438. fp.Locked=true
  1439. fp.BrickColor=brickcolor
  1440. fp.Name=name
  1441. fp.Size=size
  1442. fp.Position=Torso.Position
  1443. NoOutline(fp)
  1444. fp.Material="SmoothPlastic"
  1445. fp:BreakJoints()
  1446. return fp
  1447. end
  1448.  
  1449. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1450. local mesh=it(Mesh)
  1451. mesh.Parent=part
  1452. if Mesh=="SpecialMesh" then
  1453. mesh.MeshType=meshtype
  1454. if meshid~="nil" then
  1455. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1456. end
  1457. end
  1458. mesh.Offset=offset
  1459. mesh.Scale=scale
  1460. return mesh
  1461. end
  1462.  
  1463. function weld(parent,part0,part1,c0)
  1464. local weld=it("Weld")
  1465. weld.Parent=parent
  1466. weld.Part0=part0
  1467. weld.Part1=part1
  1468. weld.C0=c0
  1469. return weld
  1470. end
  1471.  
  1472. local Color1=Torso.BrickColor
  1473.  
  1474. local bodvel=Instance.new("BodyVelocity")
  1475. local bg=Instance.new("BodyGyro")
  1476.  
  1477. --------- SazEreno's Artificial HB --------------
  1478. ArtificialHB = Instance.new("BindableEvent", script)
  1479. ArtificialHB.Name = "ArtificialHB"
  1480.  
  1481. script:WaitForChild("ArtificialHB")
  1482. Frame_Speed = 1 / 60
  1483. frame = Frame_Speed
  1484. tf = 0
  1485. allowframeloss = false
  1486. tossremainder = false
  1487. lastframe = tick()
  1488. script.ArtificialHB:Fire()
  1489.  
  1490. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1491. tf = tf + s
  1492. if tf >= frame then
  1493. if allowframeloss then
  1494. script.ArtificialHB:Fire()
  1495. lastframe = tick()
  1496. else
  1497. for i = 1, math.floor(tf / frame) do
  1498. script.ArtificialHB:Fire()
  1499. end
  1500. lastframe = tick()
  1501. end
  1502. if tossremainder then
  1503. tf = 0
  1504. else
  1505. tf = tf - frame * math.floor(tf / frame)
  1506. end
  1507. end
  1508. end)
  1509.  
  1510. ------------------
  1511. function swait(num)
  1512. if num == 0 or num == nil then
  1513. ArtificialHB.Event:wait()
  1514. else
  1515. for i = 1, num do
  1516. ArtificialHB.Event:wait()
  1517. end
  1518. end
  1519. end
  1520. -------- RAINBOW LEAVE IT TO ME
  1521. local r = 255
  1522. local g = 0
  1523. local b = 0
  1524. coroutine.resume(coroutine.create(function()
  1525. while wait() do
  1526. for i = 0, 254/5 do
  1527. swait()
  1528. g = g + 5
  1529. end
  1530. for i = 0, 254/5 do
  1531. swait()
  1532. r = r - 5
  1533. end
  1534. for i = 0, 254/5 do
  1535. swait()
  1536. b = b + 5
  1537. end
  1538. for i = 0, 254/5 do
  1539. swait()
  1540. g = g - 5
  1541. end
  1542. for i = 0, 254/5 do
  1543. swait()
  1544. r = r + 5
  1545. end
  1546. for i = 0, 254/5 do
  1547. swait()
  1548. b = b - 5
  1549. end
  1550. end
  1551. end))
  1552.  
  1553.  
  1554. so = function(id,par,vol,pit)
  1555. coroutine.resume(coroutine.create(function()
  1556. local sou = Instance.new("Sound",par or workspace)
  1557. sou.Volume=vol
  1558. sou.Pitch=pit or 1
  1559. sou.SoundId=id
  1560. swait()
  1561. sou:play()
  1562. game:GetService("Debris"):AddItem(sou,6)
  1563. end))
  1564. end
  1565.  
  1566. function clerp(a,b,t)
  1567. local qa = {QuaternionFromCFrame(a)}
  1568. local qb = {QuaternionFromCFrame(b)}
  1569. local ax, ay, az = a.x, a.y, a.z
  1570. local bx, by, bz = b.x, b.y, b.z
  1571. local _t = 1-t
  1572. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1573. end
  1574.  
  1575. function QuaternionFromCFrame(cf)
  1576. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1577. local trace = m00 + m11 + m22
  1578. if trace > 0 then
  1579. local s = math.sqrt(1 + trace)
  1580. local recip = 0.5/s
  1581. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1582. else
  1583. local i = 0
  1584. if m11 > m00 then
  1585. i = 1
  1586. end
  1587. if m22 > (i == 0 and m00 or m11) then
  1588. i = 2
  1589. end
  1590. if i == 0 then
  1591. local s = math.sqrt(m00-m11-m22+1)
  1592. local recip = 0.5/s
  1593. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1594. elseif i == 1 then
  1595. local s = math.sqrt(m11-m22-m00+1)
  1596. local recip = 0.5/s
  1597. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1598. elseif i == 2 then
  1599. local s = math.sqrt(m22-m00-m11+1)
  1600. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1601. end
  1602. end
  1603. end
  1604.  
  1605. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1606. local xs, ys, zs = x + x, y + y, z + z
  1607. local wx, wy, wz = w*xs, w*ys, w*zs
  1608. local xx = x*xs
  1609. local xy = x*ys
  1610. local xz = x*zs
  1611. local yy = y*ys
  1612. local yz = y*zs
  1613. local zz = z*zs
  1614. 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))
  1615. end
  1616.  
  1617. function QuaternionSlerp(a, b, t)
  1618. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1619. local startInterp, finishInterp;
  1620. if cosTheta >= 0.0001 then
  1621. if (1 - cosTheta) > 0.0001 then
  1622. local theta = math.acos(cosTheta)
  1623. local invSinTheta = 1/math.sin(theta)
  1624. startInterp = math.sin((1-t)*theta)*invSinTheta
  1625. finishInterp = math.sin(t*theta)*invSinTheta
  1626. else
  1627. startInterp = 1-t
  1628. finishInterp = t
  1629. end
  1630. else
  1631. if (1+cosTheta) > 0.0001 then
  1632. local theta = math.acos(-cosTheta)
  1633. local invSinTheta = 1/math.sin(theta)
  1634. startInterp = math.sin((t-1)*theta)*invSinTheta
  1635. finishInterp = math.sin(t*theta)*invSinTheta
  1636. else
  1637. startInterp = t-1
  1638. finishInterp = t
  1639. end
  1640. end
  1641. 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
  1642. end
  1643.  
  1644. local function CFrameFromTopBack(at, top, back)
  1645. local right = top:Cross(back)
  1646. return CFrame.new(at.x, at.y, at.z,
  1647. right.x, top.x, back.x,
  1648. right.y, top.y, back.y,
  1649. right.z, top.z, back.z)
  1650. end
  1651.  
  1652. function Triangle(a, b, c)
  1653. local edg1 = (c-a):Dot((b-a).unit)
  1654. local edg2 = (a-b):Dot((c-b).unit)
  1655. local edg3 = (b-c):Dot((a-c).unit)
  1656. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1657. a, b, c = a, b, c
  1658. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1659. a, b, c = b, c, a
  1660. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1661. a, b, c = c, a, b
  1662. else
  1663. assert(false, "unreachable")
  1664. end
  1665.  
  1666. local len1 = (c-a):Dot((b-a).unit)
  1667. local len2 = (b-a).magnitude - len1
  1668. local width = (a + (b-a).unit*len1 - c).magnitude
  1669.  
  1670. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1671.  
  1672. local list = {}
  1673.  
  1674. if len1 > 0.01 then
  1675. local w1 = Instance.new('WedgePart', m)
  1676. game:GetService("Debris"):AddItem(w1,5)
  1677. w1.Material = "SmoothPlastic"
  1678. w1.FormFactor = 'Custom'
  1679. w1.BrickColor = BrickColor.new("Really red")
  1680. w1.Transparency = 0
  1681. w1.Reflectance = 0
  1682. w1.Material = "SmoothPlastic"
  1683. w1.CanCollide = false
  1684. local l1 = Instance.new("PointLight",w1)
  1685. l1.Color = Color3.new(170,0,0)
  1686. NoOutline(w1)
  1687. local sz = Vector3.new(0.2, width, len1)
  1688. w1.Size = sz
  1689. local sp = Instance.new("SpecialMesh",w1)
  1690. sp.MeshType = "Wedge"
  1691. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1692. w1:BreakJoints()
  1693. w1.Anchored = true
  1694. w1.Parent = workspace
  1695. w1.Transparency = 0.7
  1696. table.insert(Effects,{w1,"Disappear",.01})
  1697. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1698. table.insert(list,w1)
  1699. end
  1700.  
  1701. if len2 > 0.01 then
  1702. local w2 = Instance.new('WedgePart', m)
  1703. game:GetService("Debris"):AddItem(w2,5)
  1704. w2.Material = "SmoothPlastic"
  1705. w2.FormFactor = 'Custom'
  1706. w2.BrickColor = BrickColor.new("Really red")
  1707. w2.Transparency = 0
  1708. w2.Reflectance = 0
  1709. w2.Material = "SmoothPlastic"
  1710. w2.CanCollide = false
  1711. local l2 = Instance.new("PointLight",w2)
  1712. l2.Color = Color3.new(170,0,0)
  1713. NoOutline(w2)
  1714. local sz = Vector3.new(0.2, width, len2)
  1715. w2.Size = sz
  1716. local sp = Instance.new("SpecialMesh",w2)
  1717. sp.MeshType = "Wedge"
  1718. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1719. w2:BreakJoints()
  1720. w2.Anchored = true
  1721. w2.Parent = workspace
  1722. w2.Transparency = 0.7
  1723. table.insert(Effects,{w2,"Disappear",.01})
  1724. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1725. table.insert(list,w2)
  1726. end
  1727. return unpack(list)
  1728. end
  1729.  
  1730.  
  1731. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1732. if hit.Parent == nil then
  1733. return
  1734. end
  1735. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1736. for _, v in pairs(hit.Parent:children()) do
  1737. if v:IsA("Humanoid") then
  1738. h = v
  1739. end
  1740. end
  1741. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1742. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1743. return
  1744. end
  1745. local c = Create("ObjectValue")({
  1746. Name = "creator",
  1747. Value = game:GetService("Players").wwwargos,
  1748. Parent = h
  1749. })
  1750. game:GetService("Debris"):AddItem(c, 0.5)
  1751. if HitSound ~= nil and HitPitch ~= nil then
  1752. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1753. end
  1754. local Damage = math.random(minim, maxim)
  1755. local blocked = false
  1756. local block = hit.Parent:findFirstChild("Block")
  1757. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1758. blocked = true
  1759. block.Value = block.Value - 1
  1760. print(block.Value)
  1761. end
  1762. if blocked == false then
  1763. HitHealth = h.Health
  1764. h.MaxHealth = 100
  1765. h.Health = h.Health - Damage
  1766. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1767. print("gained kill")
  1768. dmg(h.Parent)
  1769. end
  1770. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1771. else
  1772. h.Health = h.Health - Damage / 2
  1773. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1774. end
  1775. if Type == "Knockdown" then
  1776. local hum = hit.Parent.Humanoid
  1777. hum.PlatformStand = true
  1778. coroutine.resume(coroutine.create(function(HHumanoid)
  1779. swait(1)
  1780. HHumanoid.PlatformStand = false
  1781. end), hum)
  1782. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1783. local bodvol = Create("BodyVelocity")({
  1784. velocity = angle * knockback,
  1785. P = 5000,
  1786. maxForce = Vector3.new(8000, 8000, 8000),
  1787. Parent = hit
  1788. })
  1789. local rl = Create("BodyAngularVelocity")({
  1790. P = 3000,
  1791. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1792. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1793. Parent = hit
  1794. })
  1795. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1796. game:GetService("Debris"):AddItem(rl, 0.5)
  1797. elseif Type == "Normal" then
  1798. local vp = Create("BodyVelocity")({
  1799. P = 500,
  1800. maxForce = Vector3.new(math.huge, 0, math.huge),
  1801. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1802. })
  1803. if knockback > 0 then
  1804. vp.Parent = hit.Parent.Head
  1805. end
  1806. game:GetService("Debris"):AddItem(vp, 0.5)
  1807. elseif Type == "Up" then
  1808. local bodyVelocity = Create("BodyVelocity")({
  1809. velocity = Vector3.new(0, 20, 0),
  1810. P = 5000,
  1811. maxForce = Vector3.new(8000, 8000, 8000),
  1812. Parent = hit
  1813. })
  1814. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1815. local bodyVelocity = Create("BodyVelocity")({
  1816. velocity = Vector3.new(0, 20, 0),
  1817. P = 5000,
  1818. maxForce = Vector3.new(8000, 8000, 8000),
  1819. Parent = hit
  1820. })
  1821. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1822. elseif Type == "Leech" then
  1823. local hum = hit.Parent.Humanoid
  1824. if hum ~= nil then
  1825. for i = 0, 2 do
  1826. 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)
  1827. end
  1828. Humanoid.Health = Humanoid.Health + 10
  1829. end
  1830. elseif Type == "UpKnock" then
  1831. local hum = hit.Parent.Humanoid
  1832. hum.PlatformStand = true
  1833. if hum ~= nil then
  1834. hitr = true
  1835. end
  1836. coroutine.resume(coroutine.create(function(HHumanoid)
  1837. swait(5)
  1838. HHumanoid.PlatformStand = false
  1839. hitr = false
  1840. end), hum)
  1841. local bodyVelocity = Create("BodyVelocity")({
  1842. velocity = Vector3.new(0, 20, 0),
  1843. P = 5000,
  1844. maxForce = Vector3.new(8000, 8000, 8000),
  1845. Parent = hit
  1846. })
  1847. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1848. local bodyVelocity = Create("BodyVelocity")({
  1849. velocity = Vector3.new(0, 20, 0),
  1850. P = 5000,
  1851. maxForce = Vector3.new(8000, 8000, 8000),
  1852. Parent = hit
  1853. })
  1854. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1855. elseif Type == "Snare" then
  1856. local bp = Create("BodyPosition")({
  1857. P = 2000,
  1858. D = 100,
  1859. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1860. position = hit.Parent.Torso.Position,
  1861. Parent = hit.Parent.Torso
  1862. })
  1863. game:GetService("Debris"):AddItem(bp, 1)
  1864. elseif Type == "Slashnare" then
  1865. 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)
  1866. for i = 1, math.random(4, 5) do
  1867. 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)
  1868. end
  1869. local bp = Create("BodyPosition")({
  1870. P = 2000,
  1871. D = 100,
  1872. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1873. position = hit.Parent.Torso.Position,
  1874. Parent = hit.Parent.Torso
  1875. })
  1876. game:GetService("Debris"):AddItem(bp, 1)
  1877. elseif Type == "Spike" then
  1878. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1879. local bp = Create("BodyPosition")({
  1880. P = 2000,
  1881. D = 100,
  1882. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1883. position = hit.Parent.Torso.Position,
  1884. Parent = hit.Parent.Torso
  1885. })
  1886. game:GetService("Debris"):AddItem(bp, 1)
  1887. elseif Type == "Freeze" then
  1888. local BodPos = Create("BodyPosition")({
  1889. P = 50000,
  1890. D = 1000,
  1891. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1892. position = hit.Parent.Torso.Position,
  1893. Parent = hit.Parent.Torso
  1894. })
  1895. local BodGy = Create("BodyGyro")({
  1896. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1897. P = 20000,
  1898. Parent = hit.Parent.Torso,
  1899. cframe = hit.Parent.Torso.CFrame
  1900. })
  1901. hit.Parent.Torso.Anchored = true
  1902. coroutine.resume(coroutine.create(function(Part)
  1903. swait(1.5)
  1904. Part.Anchored = false
  1905. end), hit.Parent.Torso)
  1906. game:GetService("Debris"):AddItem(BodPos, 3)
  1907. game:GetService("Debris"):AddItem(BodGy, 3)
  1908. end
  1909. local debounce = Create("BoolValue")({
  1910. Name = "DebounceHit",
  1911. Parent = hit.Parent,
  1912. Value = true
  1913. })
  1914. game:GetService("Debris"):AddItem(debounce, Delay)
  1915. c = Instance.new("ObjectValue")
  1916. c.Name = "creator"
  1917. c.Value = Player
  1918. c.Parent = h
  1919. game:GetService("Debris"):AddItem(c, 0.5)
  1920. end
  1921. end
  1922. function ShowDamage(Pos, Text, Time, Color)
  1923. local Rate = 0.03333333333333333
  1924. local Pos = Pos or Vector3.new(0, 0, 0)
  1925. local Text = Text or ""
  1926. local Time = Time or 2
  1927. local Color = Color or Color3.new(1, 0, 1)
  1928. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1929. EffectPart.Anchored = true
  1930. local BillboardGui = Create("BillboardGui")({
  1931. Size = UDim2.new(3, 0, 3, 0),
  1932. Adornee = EffectPart,
  1933. Parent = EffectPart
  1934. })
  1935. local TextLabel = Create("TextLabel")({
  1936. BackgroundTransparency = 1,
  1937. Size = UDim2.new(1, 0, 1, 0),
  1938. Text = Text,
  1939. TextColor3 = Color,
  1940. TextScaled = true,
  1941. Font = Enum.Font.ArialBold,
  1942. Parent = BillboardGui
  1943. })
  1944. game.Debris:AddItem(EffectPart, Time + 0.1)
  1945. EffectPart.Parent = game:GetService("Workspace")
  1946. delay(0, function()
  1947. local Frames = Time / Rate
  1948. for Frame = 1, Frames do
  1949. wait(Rate)
  1950. local Percent = Frame / Frames
  1951. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1952. TextLabel.TextTransparency = Percent
  1953. end
  1954. if EffectPart and EffectPart.Parent then
  1955. EffectPart:Destroy()
  1956. end
  1957. end)
  1958. end
  1959. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1960. for _, c in pairs(workspace:children()) do
  1961. local hum = c:findFirstChildOfClass("Humanoid")
  1962. if hum ~= nil then
  1963. local head = c:findFirstChild("Head")
  1964. if head ~= nil then
  1965. local targ = head.Position - Part.Position
  1966. local mag = targ.magnitude
  1967. if magni >= mag and c.Name ~= Player.Name then
  1968. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974.  
  1975. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1976. for _, c in pairs(workspace:children()) do
  1977. local hum = c:findFirstChild("Humanoid")
  1978. if hum ~= nil then
  1979. local head = c:findFirstChild("Torso")
  1980. if head ~= nil then
  1981. local targ = head.Position - Part.Position
  1982. local mag = targ.magnitude
  1983. if magni >= mag and c.Name ~= Player.Name then
  1984. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1985. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991.  
  1992. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1993. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1994. end
  1995.  
  1996. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1997. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1998. prt.Anchored=true
  1999. prt.CFrame=cframe
  2000. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2001. --http://www.roblox.com/asset/?id=4770560
  2002. game:GetService("Debris"):AddItem(prt,2)
  2003. CF=prt.CFrame
  2004. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2005. for i=0,1,0.2 do
  2006. wait()
  2007. Part.CFrame=CF*cf(0,0,-0.4)
  2008. end
  2009. for i=0,1,delay do
  2010. wait()
  2011. --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)
  2012. Mesh.Scale=Mesh.Scale
  2013. end
  2014. for i=0,1,0.1 do
  2015. wait()
  2016. Part.Transparency=i
  2017. end
  2018. Part.Parent=nil
  2019. end),prt,msh,CF)
  2020. end
  2021.  
  2022. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2023. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2024. prt.Anchored=true
  2025. prt.Material = "Neon"
  2026. prt.CFrame=cframe
  2027. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh)
  2031. for i=0,1,delay do
  2032. swait()
  2033. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2034. Part.Transparency=i
  2035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2036. end
  2037. Part.Parent=nil
  2038. end),prt,msh)
  2039. end
  2040.  
  2041. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2042. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2043. prt.Anchored=true
  2044. prt.Material = "Neon"
  2045. prt.CFrame=cframe
  2046. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,5)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh)
  2049. local rtype = rottype
  2050. for i=0,1,delay do
  2051. swait()
  2052. if rtype == 1 then
  2053. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2054. elseif rtype == 2 then
  2055. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2056. end
  2057. Part.Transparency=i
  2058. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2059. end
  2060. Part.Parent=nil
  2061. end),prt,msh)
  2062. end
  2063.  
  2064. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2065. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2066. prt.Anchored=true
  2067. prt.CFrame=cframe
  2068. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2069. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2070. game:GetService("Debris"):AddItem(prt,5)
  2071. coroutine.resume(coroutine.create(function(Part,Mesh)
  2072. for i=0,1,delay do
  2073. wait()
  2074. Part.Transparency=i
  2075. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2076. end
  2077. Part.Parent=nil
  2078. end),prt,msh)
  2079. end
  2080.  
  2081. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2082. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2083. prt.Anchored=true
  2084. prt.Material = "Neon"
  2085. prt.CFrame=cframe
  2086. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2087. game:GetService("Debris"):AddItem(prt,5)
  2088. coroutine.resume(coroutine.create(function(Part,Mesh)
  2089. local rtype = rottype
  2090. for i=0,1,delay do
  2091. swait()
  2092. if rtype == 1 then
  2093. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2094. elseif rtype == 2 then
  2095. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2096. end
  2097. Part.Transparency=i
  2098. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2099. end
  2100. Part.Parent=nil
  2101. end),prt,msh)
  2102. end
  2103.  
  2104. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2105. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2106. prt.Anchored=true
  2107. prt.Material = "Neon"
  2108. prt.CFrame=cframe
  2109. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2110. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2111. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2112. game:GetService("Debris"):AddItem(prt,5)
  2113. coroutine.resume(coroutine.create(function(Part,Mesh)
  2114. local rtype = rottype
  2115. for i=0,1,delay do
  2116. swait()
  2117. if rtype == 1 then
  2118. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2119. elseif rtype == 2 then
  2120. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2121. end
  2122. dec.Transparency=i
  2123. dec2.Transparency=i
  2124. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2125. end
  2126. Part.Parent=nil
  2127. end),prt,msh)
  2128. end
  2129.  
  2130. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt.Anchored=true
  2133. prt.Material = "Neon"
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2136. game:GetService("Debris"):AddItem(prt,5)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. local rtype = rottype
  2139. for i=0,1,delay do
  2140. swait()
  2141. if rtype == 1 then
  2142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2143. elseif rtype == 2 then
  2144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2145. end
  2146. prt.Transparency=i
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=true
  2156. prt.Material = "Neon"
  2157. prt.CFrame=cframe
  2158. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2159. game:GetService("Debris"):AddItem(prt,5)
  2160. coroutine.resume(coroutine.create(function(Part,Mesh)
  2161. local rtype = rottype
  2162. for i=0,1,delay do
  2163. swait()
  2164. if rtype == 1 then
  2165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2166. elseif rtype == 2 then
  2167. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2168. end
  2169. prt.Transparency=i
  2170. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2171. end
  2172. Part.Parent=nil
  2173. end),prt,msh)
  2174. end
  2175.  
  2176. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2177. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2178. prt.Anchored=true
  2179. prt.Material = "Neon"
  2180. prt.CFrame=cframe
  2181. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2182. game:GetService("Debris"):AddItem(prt,5)
  2183. coroutine.resume(coroutine.create(function(Part,Mesh)
  2184. local rtype = rottype
  2185. for i=0,1,delay do
  2186. swait()
  2187. if rtype == 1 then
  2188. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2189. elseif rtype == 2 then
  2190. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2191. end
  2192. prt.Transparency=i
  2193. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2194. end
  2195. Part.Parent=nil
  2196. end),prt,msh)
  2197. end
  2198.  
  2199. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2200. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2201. prt.Anchored=true
  2202. prt.Material = "Neon"
  2203. prt.CFrame=cframe
  2204. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2205. game:GetService("Debris"):AddItem(prt,5)
  2206. coroutine.resume(coroutine.create(function(Part,Mesh)
  2207. local rtype = rottype
  2208. for i=0,1,delay do
  2209. swait()
  2210. if rtype == 1 then
  2211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2212. elseif rtype == 2 then
  2213. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2214. end
  2215. prt.Transparency=i
  2216. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2217. end
  2218. Part.Parent=nil
  2219. end),prt,msh)
  2220. end
  2221.  
  2222. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2223. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2224. prt.Anchored=false
  2225. prt.CFrame=cframe
  2226. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2227. local wld=weld(prt,prt,Parent,cframe)
  2228. game:GetService("Debris"):AddItem(prt,5)
  2229. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2230. for i=0,1,delay do
  2231. wait()
  2232. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2233. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2234. Part.Transparency=i
  2235. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2236. end
  2237. Part.Parent=nil
  2238. end),prt,msh,wld)
  2239. end
  2240.  
  2241. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2243. prt.Anchored=false
  2244. prt.CFrame=cframe
  2245. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2246. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2247. game:GetService("Debris"):AddItem(prt,5)
  2248. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2249. for i=0,1,delay do
  2250. wait()
  2251. Weld.C0=euler(i*20,0,0)
  2252. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2253. Part.Transparency=i
  2254. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2255. end
  2256. Part.Parent=nil
  2257. end),prt,msh,wld)
  2258. end
  2259.  
  2260. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2261. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2262. prt.Anchored=true
  2263. prt.CFrame=cframe
  2264. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2265. game:GetService("Debris"):AddItem(prt,2)
  2266. coroutine.resume(coroutine.create(function(Part,Mesh)
  2267. for i=0,1,delay do
  2268. wait()
  2269. Part.CFrame=Part.CFrame
  2270. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2271. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt2.Anchored=true
  2273. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2274. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2275. game:GetService("Debris"):AddItem(prt2,2)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,0.1 do
  2278. wait()
  2279. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2280. end
  2281. Part.Parent=nil
  2282. end),prt2,msh2)
  2283. end
  2284. for i=0,1,delay*2 do
  2285. wait()
  2286. Part.CFrame=Part.CFrame
  2287. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2288. end
  2289. Part.Parent=nil
  2290. end),prt,msh)
  2291. end
  2292.  
  2293. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2294. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2295. prt.Anchored=true
  2296. prt.CFrame=cframe
  2297. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2298. game:GetService("Debris"):AddItem(prt,2)
  2299. coroutine.resume(coroutine.create(function(Part,Mesh)
  2300. for i=0,1,delay do
  2301. wait()
  2302. Part.CFrame=Part.CFrame
  2303. Part.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh)
  2308. end
  2309.  
  2310. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=true
  2313. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2314. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2315. game:GetService("Debris"):AddItem(prt,2)
  2316. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2317. CF=Part.CFrame
  2318. Numbb=0
  2319. randnumb=math.random()/10
  2320. rand1=math.random()/10
  2321. for i=0,1,rand1 do
  2322. wait()
  2323. CF=CF*cf(0,math.random()/2,0)
  2324. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2325. Part.CFrame=CF*euler(Numbb,0,0)
  2326. Part.Transparency=i
  2327. Numbb=Numbb+randnumb
  2328. end
  2329. Part.Parent=nil
  2330. end),prt,CF,Numbb,randnumb)
  2331. end
  2332.  
  2333. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2334. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2335. prt.Anchored=true
  2336. prt.CFrame=cframe
  2337. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2338. game:GetService("Debris"):AddItem(prt,5)
  2339. coroutine.resume(coroutine.create(function(Part,Mesh)
  2340. for i=0,1,delay do
  2341. wait()
  2342. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2343. Part.Transparency=i
  2344. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2345. end
  2346. Part.Parent=nil
  2347. end),prt,msh)
  2348. end
  2349.  
  2350. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2351. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2352. prt.Anchored=true
  2353. prt.CFrame=cframe
  2354. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2355. game:GetService("Debris"):AddItem(prt,2)
  2356. coroutine.resume(coroutine.create(function(Part,Mesh)
  2357. for i=0,1,delay do
  2358. wait()
  2359. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2360. Part.Transparency=i
  2361. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2362. end
  2363. Part.Parent=nil
  2364. end),prt,msh)
  2365. end
  2366.  
  2367. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2368. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2369. prt.Anchored=true
  2370. prt.CFrame=cframe*cf(x,y,z)
  2371. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2372. game:GetService("Debris"):AddItem(prt,5)
  2373. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2374. local num=math.random()
  2375. local num2=math.random(-3,2)+math.random()
  2376. local numm=0
  2377. for i=0,1,delay*2 do
  2378. swait()
  2379. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2380. Part.Transparency=i
  2381. numm=numm+0.01
  2382. end
  2383. Part.Parent=nil
  2384. Mesh.Parent=nil
  2385. end),prt,msh,x,y,z)
  2386. end
  2387.  
  2388. function dmgstart(dmg,what)
  2389. hitcon = what.Touched:connect(function(hit)
  2390. local hum = hit.Parent:FindFirstChild("Humanoid")
  2391. if hum and not hum:IsDescendantOf(Character) then
  2392. hum:TakeDamage(dmg)
  2393. end
  2394. end)
  2395. end
  2396.  
  2397. function dmgstop()
  2398. hitcon:disconnect()
  2399. end
  2400.  
  2401. function Cloak()
  2402. Face.Parent=nil
  2403. cloaked=true
  2404. for _,v in pairs(Torso.Parent:children()) do
  2405. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2406. coroutine.resume(coroutine.create(function()
  2407. for i=0,1,0.2 do
  2408. wait()
  2409. v.Transparency=i
  2410. end
  2411. v.Transparency=1
  2412. end))
  2413. end
  2414. if v.className=="Hat" then
  2415. hatp=v.Handle
  2416. coroutine.resume(coroutine.create(function(derp)
  2417. for i=0,1,0.2 do
  2418. wait()
  2419. derp.Transparency=i
  2420. end
  2421. derp.Transparency=1
  2422. end),hatp)
  2423. end
  2424. end
  2425. for _,v in pairs(m:children()) do
  2426. if v.className=="Part" then
  2427. coroutine.resume(coroutine.create(function()
  2428. for i=0,1,0.2 do
  2429. wait()
  2430. v.Transparency=i
  2431. end
  2432. v.Transparency=1
  2433. end))
  2434. end
  2435. end
  2436. end
  2437.  
  2438. function UnCloak()
  2439. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2440. Face.Parent=Head
  2441. cloaked=false
  2442. for _,v in pairs(Torso.Parent:children()) do
  2443. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2444. coroutine.resume(coroutine.create(function()
  2445. for i=0,1,0.1 do
  2446. wait()
  2447. v.Transparency=v.Transparency-0.1
  2448. end
  2449. v.Transparency=0
  2450. end))
  2451. end
  2452. if v.className=="Hat" then
  2453. hatp=v.Handle
  2454. coroutine.resume(coroutine.create(function(derp)
  2455. for i=0,1,0.1 do
  2456. wait()
  2457. derp.Transparency=derp.Transparency-0.1
  2458. end
  2459. derp.Transparency=0
  2460. end),hatp)
  2461. end
  2462. end
  2463. for _,v in pairs(m:children()) do
  2464. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2465. coroutine.resume(coroutine.create(function()
  2466. for i=0,1,0.1 do
  2467. wait()
  2468. v.Transparency=v.Transparency-0.1
  2469. end
  2470. v.Transparency=0
  2471. end))
  2472. v.Transparency=0
  2473. end
  2474. end
  2475. end
  2476.  
  2477. local origcolor = BrickColor.new("Pastel light blue")
  2478. ---- This section of explosions.
  2479.  
  2480. ----
  2481.  
  2482.  
  2483. function ring(type,pos,scale,value)
  2484. local type = type
  2485. local rng = Instance.new("Part", char)
  2486. rng.Anchored = true
  2487. rng.BrickColor = origcolor
  2488. rng.CanCollide = false
  2489. rng.FormFactor = 3
  2490. rng.Name = "Ring"
  2491. rng.Size = Vector3.new(1, 1, 1)
  2492. rng.Transparency = 0
  2493. rng.TopSurface = 0
  2494. rng.BottomSurface = 0
  2495. rng.CFrame = pos
  2496. local rngm = Instance.new("SpecialMesh", rng)
  2497. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2498. rngm.Scale = scale
  2499. local scaler2 = 1
  2500. if type == "Add" then
  2501. scaler2 = 1*value
  2502. elseif type == "Divide" then
  2503. scaler2 = 1/value
  2504. end
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0,10,0.1 do
  2507. swait()
  2508. if type == "Add" then
  2509. scaler2 = scaler2 - 0.01*value
  2510. elseif type == "Divide" then
  2511. scaler2 = scaler2 - 0.01/value
  2512. end
  2513. rng.Transparency = rng.Transparency + 0.01
  2514. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2515. end
  2516. rng:Destroy()
  2517. end))
  2518. end
  2519.  
  2520.  
  2521. function wave(type,pos,scale,value)
  2522. local type = type
  2523. local rng = Instance.new("Part", char)
  2524. rng.Anchored = true
  2525. rng.BrickColor = origcolor
  2526. rng.CanCollide = false
  2527. rng.FormFactor = 3
  2528. rng.Name = "Ring"
  2529. rng.Size = Vector3.new(1, 1, 1)
  2530. rng.Transparency = 0
  2531. rng.TopSurface = 0
  2532. rng.BottomSurface = 0
  2533. rng.CFrame = pos
  2534. local rngm = Instance.new("SpecialMesh", rng)
  2535. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2536. rngm.Scale = scale
  2537. local scaler2 = 1
  2538. if type == "Add" then
  2539. scaler2 = 1*value
  2540. elseif type == "Divide" then
  2541. scaler2 = 1/value
  2542. end
  2543. coroutine.resume(coroutine.create(function()
  2544. for i = 0,10,0.1 do
  2545. swait()
  2546. if type == "Add" then
  2547. scaler2 = scaler2 - 0.01*value
  2548. elseif type == "Divide" then
  2549. scaler2 = scaler2 - 0.01/value
  2550. end
  2551. rng.Transparency = rng.Transparency + 0.01
  2552. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2553. end
  2554. rng:Destroy()
  2555. end))
  2556. end
  2557.  
  2558. function wind(type,pos,scale,value,speed)
  2559. local type = type
  2560. local rng = Instance.new("Part", char)
  2561. rng.Anchored = true
  2562. rng.BrickColor = origcolor
  2563. rng.CanCollide = false
  2564. rng.FormFactor = 3
  2565. rng.Name = "Ring"
  2566. rng.Size = Vector3.new(1, 1, 1)
  2567. rng.Transparency = 0
  2568. rng.TopSurface = 0
  2569. rng.BottomSurface = 0
  2570. rng.CFrame = pos
  2571. local rngm = Instance.new("SpecialMesh", rng)
  2572. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2573. rngm.Scale = scale
  2574. local scaler2 = 1
  2575. if type == "Add" then
  2576. scaler2 = 1*value
  2577. elseif type == "Divide" then
  2578. scaler2 = 1/value
  2579. end
  2580. coroutine.resume(coroutine.create(function()
  2581. for i = 0,10,0.1 do
  2582. swait()
  2583. if type == "Add" then
  2584. scaler2 = scaler2 - 0.01*value
  2585. elseif type == "Divide" then
  2586. scaler2 = scaler2 - 0.01/value
  2587. end
  2588. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2589. rng.Transparency = rng.Transparency + 0.01
  2590. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2591. end
  2592. rng:Destroy()
  2593. end))
  2594. end
  2595.  
  2596. function groundwind(type,pos,scale,value,speed)
  2597. local type = type
  2598. local rng = Instance.new("Part", char)
  2599. rng.Anchored = true
  2600. rng.BrickColor = origcolor
  2601. rng.CanCollide = false
  2602. rng.FormFactor = 3
  2603. rng.Name = "Ring"
  2604. rng.Size = Vector3.new(1, 1, 1)
  2605. rng.Transparency = 0
  2606. rng.TopSurface = 0
  2607. rng.BottomSurface = 0
  2608. rng.CFrame = pos
  2609. local rngm = Instance.new("SpecialMesh", rng)
  2610. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2611. rngm.Scale = scale
  2612. local scaler2 = 1
  2613. if type == "Add" then
  2614. scaler2 = 1*value
  2615. elseif type == "Divide" then
  2616. scaler2 = 1/value
  2617. end
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,10,0.1 do
  2620. swait()
  2621. if type == "Add" then
  2622. scaler2 = scaler2 - 0.01*value
  2623. elseif type == "Divide" then
  2624. scaler2 = scaler2 - 0.01/value
  2625. end
  2626. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2627. rng.Transparency = rng.Transparency + 0.01
  2628. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2629. end
  2630. rng:Destroy()
  2631. end))
  2632. end
  2633.  
  2634. function CameraManager()
  2635. if TwoD and not CamInterrupt then
  2636. if Humanoid.Health > 0 then
  2637. Camera.CameraSubject = Humanoid
  2638. Camera.CameraType = "Scriptable"
  2639. Humanoid.AutoRotate = false
  2640. if Booleans.GyroUse then
  2641. Directer.MaxTorque = Vec3(0, huge, 0)
  2642. else
  2643. Directer.MaxTorque = Vec3(0, 0, 0)
  2644. end
  2645. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2646. if Booleans.CamFollow then
  2647. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2648. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2649. else
  2650. CPart.Position = RootPart.Position
  2651. end
  2652. else
  2653. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2654. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2655. end
  2656. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2657. else
  2658. Camera.CameraSubject = Humanoid
  2659. Camera.CameraType = "Custom"
  2660. Controller.Disabled = false
  2661. end
  2662. end
  2663. end
  2664.  
  2665. function ring(type,pos,scale,value)
  2666. local type = type
  2667. local rng = Instance.new("Part", char)
  2668. rng.Anchored = true
  2669. rng.BrickColor = origcolor
  2670. rng.CanCollide = false
  2671. rng.FormFactor = 3
  2672. rng.Name = "Ring"
  2673. rng.Size = Vector3.new(1, 1, 1)
  2674. rng.Transparency = 0
  2675. rng.TopSurface = 0
  2676. rng.BottomSurface = 0
  2677. rng.CFrame = pos
  2678. local rngm = Instance.new("SpecialMesh", rng)
  2679. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2680. rngm.Scale = scale
  2681. local scaler2 = 1
  2682. if type == "Add" then
  2683. scaler2 = 1*value
  2684. elseif type == "Divide" then
  2685. scaler2 = 1/value
  2686. end
  2687. coroutine.resume(coroutine.create(function()
  2688. for i = 0,10,0.1 do
  2689. swait()
  2690. if type == "Add" then
  2691. scaler2 = scaler2 - 0.01*value
  2692. elseif type == "Divide" then
  2693. scaler2 = scaler2 - 0.01/value
  2694. end
  2695. rng.Transparency = rng.Transparency + 0.01
  2696. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2697. end
  2698. rng:Destroy()
  2699. end))
  2700. end
  2701.  
  2702.  
  2703. function wave(type,pos,scale,value)
  2704. local type = type
  2705. local rng = Instance.new("Part", char)
  2706. rng.Anchored = true
  2707. rng.BrickColor = origcolor
  2708. rng.CanCollide = false
  2709. rng.FormFactor = 3
  2710. rng.Name = "Ring"
  2711. rng.Size = Vector3.new(1, 1, 1)
  2712. rng.Transparency = 0
  2713. rng.TopSurface = 0
  2714. rng.BottomSurface = 0
  2715. rng.CFrame = pos
  2716. local rngm = Instance.new("SpecialMesh", rng)
  2717. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2718. rngm.Scale = scale
  2719. local scaler2 = 1
  2720. if type == "Add" then
  2721. scaler2 = 1*value
  2722. elseif type == "Divide" then
  2723. scaler2 = 1/value
  2724. end
  2725. coroutine.resume(coroutine.create(function()
  2726. for i = 0,10,0.1 do
  2727. swait()
  2728. if type == "Add" then
  2729. scaler2 = scaler2 - 0.01*value
  2730. elseif type == "Divide" then
  2731. scaler2 = scaler2 - 0.01/value
  2732. end
  2733. rng.Transparency = rng.Transparency + 0.01
  2734. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2735. end
  2736. rng:Destroy()
  2737. end))
  2738. end
  2739.  
  2740. function sphere(bonuspeed,type,pos,scale,value,color)
  2741. local type = type
  2742. local rng = Instance.new("Part", char)
  2743. rng.Anchored = true
  2744. if ModeOfGlitch ~= 9 then
  2745. rng.BrickColor = color
  2746. elseif ModeOfGlitch == 9 then
  2747. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2748. end
  2749. rng.CanCollide = false
  2750. rng.FormFactor = 3
  2751. rng.Name = "Ring"
  2752. rng.Material = "Neon"
  2753. rng.Size = Vector3.new(1, 1, 1)
  2754. rng.Transparency = 0
  2755. rng.TopSurface = 0
  2756. rng.BottomSurface = 0
  2757. rng.CFrame = pos
  2758. local rngm = Instance.new("SpecialMesh", rng)
  2759. rngm.MeshType = "Sphere"
  2760. rngm.Scale = scale
  2761. if rainbowmode == true then
  2762. rng.Color = Color3.new(r/255,g/255,b/255)
  2763. end
  2764. if ModeOfGlitch == 9 then
  2765. coroutine.resume(coroutine.create(function()
  2766. while true do
  2767. swait()
  2768. if rng.Parent ~= nil then
  2769. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2770. else
  2771. break
  2772. end
  2773. end
  2774. end))
  2775. end
  2776. local scaler2 = 1
  2777. if type == "Add" then
  2778. scaler2 = 1*value
  2779. elseif type == "Divide" then
  2780. scaler2 = 1/value
  2781. end
  2782. coroutine.resume(coroutine.create(function()
  2783. for i = 0,10/bonuspeed,0.1 do
  2784. swait()
  2785. if rainbowmode == true then
  2786. rng.Color = Color3.new(r/255,g/255,b/255)
  2787. end
  2788. if type == "Add" then
  2789. scaler2 = scaler2 - 0.01*value/bonuspeed
  2790. elseif type == "Divide" then
  2791. scaler2 = scaler2 - 0.01/value*bonuspeed
  2792. end
  2793. if chaosmode == true then
  2794. rng.BrickColor = BrickColor.random()
  2795. end
  2796. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2797. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2798. end
  2799. rng:Destroy()
  2800. end))
  2801. end
  2802.  
  2803. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2804. local type = type
  2805. local rng = Instance.new("Part", char)
  2806. rng.Anchored = true
  2807. if ModeOfGlitch ~= 9 then
  2808. rng.BrickColor = color
  2809. elseif ModeOfGlitch == 9 then
  2810. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2811. end
  2812. rng.CanCollide = false
  2813. rng.FormFactor = 3
  2814. rng.Name = "Ring"
  2815. rng.Material = "Neon"
  2816. rng.Size = Vector3.new(1, 1, 1)
  2817. rng.Transparency = 0
  2818. rng.TopSurface = 0
  2819. rng.BottomSurface = 0
  2820. rng.CFrame = pos
  2821. local rngm = Instance.new("SpecialMesh", rng)
  2822. rngm.MeshType = "Sphere"
  2823. rngm.Scale = scale
  2824. local scaler2 = 1
  2825. local scaler2b = 1
  2826. local scaler2c = 1
  2827. if type == "Add" then
  2828. scaler2 = 1*value
  2829. scaler2b = 1*value2
  2830. scaler2c = 1*value3
  2831. elseif type == "Divide" then
  2832. scaler2 = 1/value
  2833. scaler2b = 1/value2
  2834. scaler2c = 1/value3
  2835. end
  2836. if ModeOfGlitch == 9 then
  2837. coroutine.resume(coroutine.create(function()
  2838. while true do
  2839. swait()
  2840. if rng.Parent ~= nil then
  2841. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2842. else
  2843. break
  2844. end
  2845. end
  2846. end))
  2847. end
  2848. coroutine.resume(coroutine.create(function()
  2849. for i = 0,10/bonuspeed,0.1 do
  2850. swait()
  2851. if type == "Add" then
  2852. scaler2 = scaler2 - 0.01*value/bonuspeed
  2853. scaler2b = scaler2b - 0.01*value/bonuspeed
  2854. scaler2c = scaler2c - 0.01*value/bonuspeed
  2855. elseif type == "Divide" then
  2856. scaler2 = scaler2 - 0.01/value*bonuspeed
  2857. scaler2b = scaler2b - 0.01/value*bonuspeed
  2858. scaler2c = scaler2c - 0.01/value*bonuspeed
  2859. end
  2860. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2861. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2862. end
  2863. rng:Destroy()
  2864. end))
  2865. end
  2866.  
  2867. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2868. local type = type
  2869. local rotenable = rotatingop
  2870. local rng = Instance.new("Part", char)
  2871. rng.Anchored = true
  2872. rng.BrickColor = color
  2873. rng.CanCollide = false
  2874. rng.FormFactor = 3
  2875. rng.Name = "Ring"
  2876. rng.Material = "Neon"
  2877. rng.Size = Vector3.new(1, 1, 1)
  2878. rng.Transparency = 0
  2879. if typeoftrans == "In" then
  2880. rng.Transparency = 1
  2881. end
  2882. rng.TopSurface = 0
  2883. rng.BottomSurface = 0
  2884. rng.CFrame = pos
  2885. local rngm = Instance.new("SpecialMesh", rng)
  2886. rngm.MeshType = "FileMesh"
  2887. if typeofshape == "Normal" then
  2888. rngm.MeshId = "rbxassetid://662586858"
  2889. elseif typeofshape == "Round" then
  2890. rngm.MeshId = "rbxassetid://662585058"
  2891. end
  2892. rngm.Scale = scale
  2893. local scaler2 = 1/10
  2894. if type == "Add" then
  2895. scaler2 = 1*value/10
  2896. elseif type == "Divide" then
  2897. scaler2 = 1/value/10
  2898. end
  2899. local randomrot = math.random(1,2)
  2900. coroutine.resume(coroutine.create(function()
  2901. for i = 0,10/bonuspeed,0.1 do
  2902. swait()
  2903. if type == "Add" then
  2904. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2905. elseif type == "Divide" then
  2906. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2907. end
  2908. if rotenable == true then
  2909. if randomrot == 1 then
  2910. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2911. elseif randomrot == 2 then
  2912. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2913. end
  2914. end
  2915. if typeoftrans == "Out" then
  2916. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2917. elseif typeoftrans == "In" then
  2918. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2919. end
  2920. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2921. end
  2922. rng:Destroy()
  2923. end))
  2924. end
  2925.  
  2926. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2927. local type = type
  2928. local rng = Instance.new("Part", char)
  2929. rng.Anchored = true
  2930. rng.BrickColor = color
  2931. rng.CanCollide = false
  2932. rng.FormFactor = 3
  2933. rng.Name = "Ring"
  2934. rng.Material = "Neon"
  2935. rng.Size = Vector3.new(1, 1, 1)
  2936. rng.Transparency = 0
  2937. rng.TopSurface = 0
  2938. rng.BottomSurface = 0
  2939. rng.CFrame = pos
  2940. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2941. local rngm = Instance.new("SpecialMesh", rng)
  2942. rngm.MeshType = "Brick"
  2943. rngm.Scale = vt(x1,y1,z1)
  2944. if rainbowmode == true then
  2945. rng.Color = Color3.new(r/255,g/255,b/255)
  2946. end
  2947. local scaler2 = 1
  2948. local speeder = FastSpeed/10
  2949. if type == "Add" then
  2950. scaler2 = 1*value
  2951. elseif type == "Divide" then
  2952. scaler2 = 1/value
  2953. end
  2954. coroutine.resume(coroutine.create(function()
  2955. for i = 0,10/bonuspeed,0.1 do
  2956. swait()
  2957. if rainbowmode == true then
  2958. rng.Color = Color3.new(r/255,g/255,b/255)
  2959. end
  2960. if type == "Add" then
  2961. scaler2 = scaler2 - 0.01*value/bonuspeed
  2962. elseif type == "Divide" then
  2963. scaler2 = scaler2 - 0.01/value*bonuspeed
  2964. end
  2965. if chaosmode == true then
  2966. rng.BrickColor = BrickColor.random()
  2967. end
  2968. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2969. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2970. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2971. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2972. end
  2973. rng:Destroy()
  2974. end))
  2975. end
  2976.  
  2977. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2978. local type = type
  2979. local rng = Instance.new("Part", char)
  2980. rng.Anchored = true
  2981. rng.BrickColor = color
  2982. rng.CanCollide = false
  2983. rng.FormFactor = 3
  2984. rng.Name = "Ring"
  2985. rng.Material = "Neon"
  2986. rng.Size = Vector3.new(1, 1, 1)
  2987. rng.Transparency = 0
  2988. rng.TopSurface = 0
  2989. rng.BottomSurface = 0
  2990. rng.CFrame = pos
  2991. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2992. local rngm = Instance.new("SpecialMesh", rng)
  2993. rngm.MeshType = "Brick"
  2994. rngm.Scale = vt(x1,y1,z1)
  2995. if rainbowmode == true then
  2996. rng.Color = Color3.new(r/255,g/255,b/255)
  2997. end
  2998. local scaler2 = 1
  2999. local speeder = FastSpeed/10
  3000. if type == "Add" then
  3001. scaler2 = 1*value
  3002. elseif type == "Divide" then
  3003. scaler2 = 1/value
  3004. end
  3005. coroutine.resume(coroutine.create(function()
  3006. for i = 0,10/bonuspeed,0.1 do
  3007. swait()
  3008. if rainbowmode == true then
  3009. rng.Color = Color3.new(r/255,g/255,b/255)
  3010. end
  3011. if type == "Add" then
  3012. scaler2 = scaler2 - 0.01*value/bonuspeed
  3013. elseif type == "Divide" then
  3014. scaler2 = scaler2 - 0.01/value*bonuspeed
  3015. end
  3016. if chaosmode == true then
  3017. rng.BrickColor = BrickColor.random()
  3018. end
  3019. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3020. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3021. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3022. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3023. end
  3024. rng:Destroy()
  3025. end))
  3026. end
  3027.  
  3028. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3029. local type = type
  3030. local rng = Instance.new("Part", char)
  3031. rng.Anchored = true
  3032. rng.BrickColor = color
  3033. rng.CanCollide = false
  3034. rng.FormFactor = 3
  3035. rng.Name = "Ring"
  3036. rng.Material = "Neon"
  3037. rng.Size = Vector3.new(1, 1, 1)
  3038. rng.Transparency = 0
  3039. rng.TopSurface = 0
  3040. rng.BottomSurface = 0
  3041. rng.CFrame = pos
  3042. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3043. local rngm = Instance.new("SpecialMesh", rng)
  3044. rngm.MeshType = "Brick"
  3045. rngm.Scale = vt(x1,y1,z1)
  3046. if rainbowmode == true then
  3047. rng.Color = Color3.new(r/255,g/255,b/255)
  3048. end
  3049. local scaler2 = 0
  3050. local speeder = FastSpeed/10
  3051. if type == "Add" then
  3052. scaler2 = 1*value
  3053. elseif type == "Divide" then
  3054. scaler2 = 1/value
  3055. end
  3056. coroutine.resume(coroutine.create(function()
  3057. for i = 0,10/bonuspeed,0.1 do
  3058. swait()
  3059. if rainbowmode == true then
  3060. rng.Color = Color3.new(r/255,g/255,b/255)
  3061. end
  3062. if type == "Add" then
  3063. scaler2 = scaler2 - 0.01*value/bonuspeed
  3064. elseif type == "Divide" then
  3065. scaler2 = scaler2 - 0.01/value*bonuspeed
  3066. end
  3067. if chaosmode == true then
  3068. rng.BrickColor = BrickColor.random()
  3069. end
  3070. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3071. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3072. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3073. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3074. end
  3075. rng:Destroy()
  3076. end))
  3077. end
  3078.  
  3079. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3080. local type = type
  3081. local rng = Instance.new("Part", char)
  3082. rng.Anchored = true
  3083. rng.BrickColor = color
  3084. rng.Color = color3
  3085. rng.CanCollide = false
  3086. rng.FormFactor = 3
  3087. rng.Name = "Ring"
  3088. rng.Material = "Neon"
  3089. rng.Size = Vector3.new(1, 1, 1)
  3090. rng.Transparency = 0
  3091. rng.TopSurface = 0
  3092. rng.BottomSurface = 0
  3093. rng.CFrame = pos
  3094. local rngm = Instance.new("SpecialMesh", rng)
  3095. rngm.MeshType = "Brick"
  3096. rngm.Scale = scale
  3097. local scaler2 = 1
  3098. local scaler2b = 1
  3099. local scaler2c = 1
  3100. if type == "Add" then
  3101. scaler2 = 1*value
  3102. scaler2b = 1*value2
  3103. scaler2c = 1*value3
  3104. elseif type == "Divide" then
  3105. scaler2 = 1/value
  3106. scaler2b = 1/value2
  3107. scaler2c = 1/value3
  3108. end
  3109. coroutine.resume(coroutine.create(function()
  3110. for i = 0,10/bonuspeed,0.1 do
  3111. swait()
  3112. if type == "Add" then
  3113. scaler2 = scaler2 - 0.01*value/bonuspeed
  3114. scaler2b = scaler2b - 0.01*value/bonuspeed
  3115. scaler2c = scaler2c - 0.01*value/bonuspeed
  3116. elseif type == "Divide" then
  3117. scaler2 = scaler2 - 0.01/value*bonuspeed
  3118. scaler2b = scaler2b - 0.01/value*bonuspeed
  3119. scaler2c = scaler2c - 0.01/value*bonuspeed
  3120. end
  3121. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3122. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3123. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3124. end
  3125. rng:Destroy()
  3126. end))
  3127. end
  3128.  
  3129. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3130. local type = type
  3131. local rng = Instance.new("Part", char)
  3132. rng.Anchored = true
  3133. if ModeOfGlitch ~= 9 then
  3134. rng.BrickColor = color
  3135. elseif ModeOfGlitch == 9 then
  3136. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3137. end
  3138. rng.CanCollide = false
  3139. rng.FormFactor = 3
  3140. rng.Name = "Ring"
  3141. rng.Material = "Neon"
  3142. rng.Size = Vector3.new(1, 1, 1)
  3143. rng.Transparency = 0
  3144. rng.TopSurface = 0
  3145. rng.BottomSurface = 0
  3146. rng.CFrame = pos
  3147. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3148. local rngm = Instance.new("SpecialMesh", rng)
  3149. rngm.MeshType = "Sphere"
  3150. rngm.Scale = vt(x1,y1,z1)
  3151. if rainbowmode == true then
  3152. rng.Color = Color3.new(r/255,g/255,b/255)
  3153. end
  3154. if ModeOfGlitch == 9 then
  3155. coroutine.resume(coroutine.create(function()
  3156. while true do
  3157. swait()
  3158. if rng.Parent ~= nil then
  3159. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3160. else
  3161. break
  3162. end
  3163. end
  3164. end))
  3165. end
  3166. local scaler2 = 1
  3167. local speeder = FastSpeed
  3168. if type == "Add" then
  3169. scaler2 = 1*value
  3170. elseif type == "Divide" then
  3171. scaler2 = 1/value
  3172. end
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0,10/bonuspeed,0.1 do
  3175. swait()
  3176. if rainbowmode == true then
  3177. rng.Color = Color3.new(r/255,g/255,b/255)
  3178. end
  3179. if type == "Add" then
  3180. scaler2 = scaler2 - 0.01*value/bonuspeed
  3181. elseif type == "Divide" then
  3182. scaler2 = scaler2 - 0.01/value*bonuspeed
  3183. end
  3184. if chaosmode == true then
  3185. rng.BrickColor = BrickColor.random()
  3186. end
  3187. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3188. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3189. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3190. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3191. end
  3192. rng:Destroy()
  3193. end))
  3194. end
  3195.  
  3196.  
  3197. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3198. local type = type
  3199. local rng = Instance.new("Part", char)
  3200. rng.Anchored = true
  3201. if ModeOfGlitch ~= 9 then
  3202. rng.BrickColor = color
  3203. elseif ModeOfGlitch == 9 then
  3204. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3205. end
  3206. rng.CanCollide = false
  3207. rng.FormFactor = 3
  3208. rng.Name = "Ring"
  3209. rng.Material = "Neon"
  3210. rng.Size = Vector3.new(1, 1, 1)
  3211. rng.Transparency = 1
  3212. rng.TopSurface = 0
  3213. rng.BottomSurface = 0
  3214. rng.CFrame = pos
  3215. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3216. local rngm = Instance.new("SpecialMesh", rng)
  3217. rngm.MeshType = "Sphere"
  3218. rngm.Scale = vt(x1,y1,z1)
  3219. if rainbowmode == true then
  3220. rng.Color = Color3.new(r/255,g/255,b/255)
  3221. end
  3222. if ModeOfGlitch == 9 then
  3223. coroutine.resume(coroutine.create(function()
  3224. while true do
  3225. swait()
  3226. if rng.Parent ~= nil then
  3227. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3228. else
  3229. break
  3230. end
  3231. end
  3232. end))
  3233. end
  3234. local scaler2 = 1
  3235. local speeder = FastSpeed
  3236. if type == "Add" then
  3237. scaler2 = 1*value
  3238. elseif type == "Divide" then
  3239. scaler2 = 1/value
  3240. end
  3241. coroutine.resume(coroutine.create(function()
  3242. for i = 0,10/bonuspeed,0.1 do
  3243. swait()
  3244. if rainbowmode == true then
  3245. rng.Color = Color3.new(r/255,g/255,b/255)
  3246. end
  3247. if type == "Add" then
  3248. scaler2 = scaler2 - 0.01*value/bonuspeed
  3249. elseif type == "Divide" then
  3250. scaler2 = scaler2 - 0.01/value*bonuspeed
  3251. end
  3252. if chaosmode == true then
  3253. rng.BrickColor = BrickColor.random()
  3254. end
  3255. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3256. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3257. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3258. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3259. end
  3260. rng:Destroy()
  3261. end))
  3262. end
  3263.  
  3264. function dmg(dude)
  3265. if dude.Name ~= Character then
  3266. local keptcolor = MAINRUINCOLOR
  3267. local bgf = Instance.new("BodyGyro",dude.Head)
  3268. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3269. --[[local val = Instance.new("BoolValue",dude)
  3270. val.Name = "IsHit"]]--
  3271. local ds = coroutine.wrap(function()
  3272. dude:WaitForChild("Head"):BreakJoints()
  3273. for i, v in pairs(dude:GetChildren()) do
  3274. if v:IsA("Part") or v:IsA("MeshPart") then
  3275. v.Name = "DEMINISHED"
  3276. end
  3277. end
  3278. wait(0.5)
  3279. targetted = nil
  3280. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3281. coroutine.resume(coroutine.create(function()
  3282. for i, v in pairs(dude:GetChildren()) do
  3283. if v:IsA("Accessory") then
  3284. v:Destroy()
  3285. end
  3286. if v:IsA("Humanoid") then
  3287. v:Destroy()
  3288. end
  3289. if v:IsA("CharacterMesh") then
  3290. v:Destroy()
  3291. end
  3292. if v:IsA("Model") then
  3293. v:Destroy()
  3294. end
  3295. if v:IsA("Part") or v:IsA("MeshPart") then
  3296. for x, o in pairs(v:GetChildren()) do
  3297. if o:IsA("Decal") then
  3298. o:Destroy()
  3299. end
  3300. end
  3301. coroutine.resume(coroutine.create(function()
  3302. v.Material = "Neon"
  3303. v.CanCollide = false
  3304. v.Anchored = false
  3305. local bld = Instance.new("ParticleEmitter",v)
  3306. bld.LightEmission = 0.75
  3307. bld.Texture = "rbxassetid://363275192" ---284205403
  3308. bld.Color = ColorSequence.new(keptcolor.Color)
  3309. bld.Rate = 500
  3310. bld.Lifetime = NumberRange.new(1)
  3311. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3312. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3313. bld.Speed = NumberRange.new(2,5)
  3314. bld.VelocitySpread = 50000
  3315. bld.Rotation = NumberRange.new(-500,500)
  3316. bld.RotSpeed = NumberRange.new(-500,500)
  3317. local sbs = Instance.new("BodyPosition", v)
  3318. sbs.P = 3000
  3319. sbs.D = 1000
  3320. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3321. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3322. v.Color = keptcolor.Color
  3323. coroutine.resume(coroutine.create(function()
  3324. for i = 0, 49 do
  3325. swait(1)
  3326. v:BreakJoints()
  3327. v.Transparency = v.Transparency + 0.02
  3328. end
  3329. v:BreakJoints()
  3330. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3331. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3332. bld.Speed = NumberRange.new(10,25)
  3333. bld.Drag = 5
  3334. bld.Acceleration = vt(0,2,0)
  3335. wait(0.5)
  3336. bld.Enabled = false
  3337. wait(8)
  3338. v:Destroy()
  3339. dude:Destroy()
  3340. end))
  3341. end))
  3342. end
  3343. end
  3344. end))
  3345. end)
  3346. ds()
  3347. end
  3348. end
  3349.  
  3350.  
  3351. function FindNearestHead(Position, Distance, SinglePlayer)
  3352. if SinglePlayer then
  3353. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3354. end
  3355. local List = {}
  3356. for i, v in pairs(workspace:GetChildren()) do
  3357. if v:IsA("Model") then
  3358. if v:findFirstChild("Head") then
  3359. if v ~= Character then
  3360. if (v.Head.Position - Position).magnitude <= Distance then
  3361. table.insert(List, v)
  3362. end
  3363. end
  3364. end
  3365. end
  3366. end
  3367. return List
  3368. end
  3369.  
  3370. function FaceMouse()
  3371. Cam = workspace.CurrentCamera
  3372. return {
  3373. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3374. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3375. }
  3376. end
  3377.  
  3378. function FaceMouse2()
  3379. Cam = workspace.CurrentCamera
  3380. return {
  3381. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3382. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3383. }
  3384. end
  3385.  
  3386. local ModeOfGlitch = 1
  3387. -- Functions are ready.
  3388. local storehumanoidWS = 16
  3389.  
  3390. function CorruptBlink()
  3391. for i = 0, 14 do
  3392. 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)
  3393. end
  3394. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3395. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3396. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3397. CameraEnshaking(2,10)
  3398. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3399. if v:FindFirstChild('Head') then
  3400. dmg(v)
  3401. end
  3402. end
  3403. for i = 0, 14 do
  3404. 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)
  3405. end
  3406. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3407. end
  3408. function PureBomb()
  3409. attack = true
  3410. hum.WalkSpeed = 0
  3411. local orb = Instance.new("Part", char)
  3412. orb.Anchored = true
  3413. orb.BrickColor = BrickColor.new("Toothpaste")
  3414. orb.CanCollide = false
  3415. orb.FormFactor = 3
  3416. orb.Name = "Ring"
  3417. orb.Material = "Neon"
  3418. orb.Size = Vector3.new(1, 1, 1)
  3419. orb.Transparency = 0
  3420. orb.TopSurface = 0
  3421. orb.BottomSurface = 0
  3422. local orbm = Instance.new("SpecialMesh", orb)
  3423. orbm.MeshType = "Sphere"
  3424. orbm.Name = "SizeMesh"
  3425. orbm.Scale = vt(0,0,0)
  3426. local scaled = 0.1
  3427. local posid = 0
  3428. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3429. for i = 0, 5, 0.1 do
  3430. swait()
  3431. scaled = scaled - 0.001
  3432. posid = posid - scaled
  3433. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3434. local scaled = 0.1
  3435. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3436. 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)
  3437. 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)
  3438. 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)
  3439. 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)
  3440. 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)
  3441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3443. 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)
  3444. end
  3445. for i = 0, 2, 0.1 do
  3446. swait()
  3447. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3448. 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)
  3449. 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)
  3450. 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)
  3451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3453. 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)
  3454. end
  3455. coroutine.resume(coroutine.create(function()
  3456. orb.Anchored = false
  3457. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3458. local a = Instance.new("Part",workspace)
  3459. a.Name = "Direction"
  3460. a.Anchored = true
  3461. a.BrickColor = bc("Bright red")
  3462. a.Material = "Neon"
  3463. a.Transparency = 1
  3464. a.CanCollide = false
  3465. local ray = Ray.new(
  3466. orb.CFrame.p, -- origin
  3467. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3468. )
  3469. local ignore = orb
  3470. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3471. a.BottomSurface = 10
  3472. a.TopSurface = 10
  3473. local distance = (orb.CFrame.p - position).magnitude
  3474. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3475. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3476. orb.CFrame = a.CFrame
  3477. a:Destroy()
  3478. local bv = Instance.new("BodyVelocity")
  3479. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3480. bv.velocity = orb.CFrame.lookVector*125
  3481. bv.Parent = orb
  3482. local hitted = false
  3483. game:GetService("Debris"):AddItem(orb, 15)
  3484. wait()
  3485. local hit =orb.Touched:connect(function(hit)
  3486. if hitted == false then
  3487. hitted = true
  3488. CameraEnshaking(10,2.5)
  3489. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3490. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3491. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3492. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3493. for i = 0, 49 do
  3494. 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)
  3495. end
  3496. for i = 0, 9 do
  3497. 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)
  3498. 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)
  3499. end
  3500. orb.Anchored = true
  3501. orb.Transparency = 1
  3502. wait(8)
  3503. orb:Destroy()
  3504. end
  3505. end)
  3506. end))
  3507. for i = 0, 1, 0.1 do
  3508. swait()
  3509. 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)
  3510. 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)
  3511. 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)
  3512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3514. 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)
  3515. end
  3516. hum.WalkSpeed = storehumanoidWS
  3517. attack = false
  3518. end
  3519.  
  3520. function BanishingOrb()
  3521. attack = true
  3522. hum.WalkSpeed = 0
  3523. local radm = math.random(1,3)
  3524. if radm == 1 then
  3525. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3526. elseif radm == 2 then
  3527. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3528. elseif radm == 3 then
  3529. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3530. end
  3531. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3532. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3533. local orb = Instance.new("Part", char)
  3534. orb.Anchored = true
  3535. orb.BrickColor = BrickColor.new("Lime green")
  3536. orb.CanCollide = false
  3537. orb.FormFactor = 3
  3538. orb.Name = "Ring"
  3539. orb.Material = "Neon"
  3540. orb.Size = Vector3.new(1, 1, 1)
  3541. orb.Transparency = 0
  3542. orb.TopSurface = 0
  3543. orb.BottomSurface = 0
  3544. local orbm = Instance.new("SpecialMesh", orb)
  3545. orbm.MeshType = "Sphere"
  3546. orbm.Name = "SizeMesh"
  3547. orbm.Scale = vt(0,0,0)
  3548. local scaled = 0.1
  3549. local posid = 0
  3550. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3551. for i = 0, 5, 0.1 do
  3552. swait()
  3553. scaled = scaled - 0.001
  3554. posid = posid - scaled
  3555. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3556. local scaled = 0.1
  3557. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3558. 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)
  3559. 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)
  3560. 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)
  3561. 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)
  3562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3563. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3564. 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)
  3565. end
  3566. for i = 0, 2, 0.1 do
  3567. swait()
  3568. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3569. 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)
  3570. 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)
  3571. 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)
  3572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3574. 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)
  3575. end
  3576. coroutine.resume(coroutine.create(function()
  3577. orb.Anchored = false
  3578. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3579. local a = Instance.new("Part",workspace)
  3580. a.Name = "Direction"
  3581. a.Anchored = true
  3582. a.BrickColor = bc("Lime green")
  3583. a.Material = "Neon"
  3584. a.Transparency = 1
  3585. a.CanCollide = false
  3586. local ray = Ray.new(
  3587. orb.CFrame.p, -- origin
  3588. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3589. )
  3590. local ignore = orb
  3591. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3592. a.BottomSurface = 10
  3593. a.TopSurface = 10
  3594. local distance = (orb.CFrame.p - position).magnitude
  3595. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3596. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3597. orb.CFrame = a.CFrame
  3598. a:Destroy()
  3599. local bv = Instance.new("BodyVelocity")
  3600. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3601. bv.velocity = orb.CFrame.lookVector*0
  3602. bv.Parent = orb
  3603. local hitted = false
  3604. local rate = 0
  3605. coroutine.resume(coroutine.create(function()
  3606. for i = 0, 24 do
  3607. wait(0.1)
  3608. rate = rate + 0.25
  3609. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3610. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3611. if v:FindFirstChild('Head') then
  3612. dmg(v)
  3613. end
  3614. end
  3615. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3616. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3617. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3618. end
  3619. orb.Anchored = true
  3620. orb.Transparency = 1
  3621. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3622. if v:FindFirstChild('Head') then
  3623. dmg(v)
  3624. end
  3625. end
  3626. local eff = Instance.new("ParticleEmitter",orb)
  3627. eff.Texture = "rbxassetid://296874871"
  3628. eff.LightEmission = 0.95
  3629. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3630. eff.Rate = 1000000000
  3631. eff.Lifetime = NumberRange.new(3)
  3632. 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)})
  3633. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3634. eff.Speed = NumberRange.new(30)
  3635. eff.Acceleration = vt(0,-15,0)
  3636. eff.Rotation = NumberRange.new(-500,500)
  3637. eff.VelocitySpread = 100000
  3638. eff.RotSpeed = NumberRange.new(-500,500)
  3639. coroutine.resume(coroutine.create(function()
  3640. wait(0.6)
  3641. eff.Enabled = false
  3642. end))
  3643. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3644. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3645. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3646. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3647. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3648. game:GetService("Debris"):AddItem(orb, 15)
  3649. end))
  3650. end))
  3651. for i = 0, 1, 0.1 do
  3652. swait()
  3653. 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)
  3654. 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)
  3655. 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)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3658. 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)
  3659. end
  3660. hum.WalkSpeed = storehumanoidWS
  3661. attack = false
  3662. end
  3663.  
  3664.  
  3665. function ChaosGroundStrike()
  3666. attack = true
  3667. for i = 0, 2, 0.1 do
  3668. swait()
  3669. 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)
  3670. 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)
  3671. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3673. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3674. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3675. end
  3676. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3677. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3678. CameraEnshaking(4,12)
  3679. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3680. if v:FindFirstChild('Head') then
  3681. dmg(v)
  3682. end
  3683. end
  3684. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3685. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3686. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3687. for i = 0, 2, 0.1 do
  3688. swait()
  3689. 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)
  3690. 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)
  3691. 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)
  3692. 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)
  3693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3697. end
  3698. attack = false
  3699. end
  3700.  
  3701.  
  3702.  
  3703. function Starfall()
  3704. attack = true
  3705. hum.WalkSpeed = 0
  3706. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3707. for i = 0, 5, 0.1 do
  3708. swait()
  3709. 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)
  3710. 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)
  3711. 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)
  3712. 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)
  3713. 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)
  3714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3715. 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)
  3716. 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)
  3717. end
  3718. local Overed = false
  3719. CameraEnshaking(2,20)
  3720. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3721. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3722. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3723. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3724. local orb = Instance.new("Part", char)
  3725. orb.Anchored = true
  3726. orb.BrickColor = BrickColor.new("Toothpaste")
  3727. orb.CanCollide = false
  3728. orb.FormFactor = 3
  3729. orb.Name = "Remenant"
  3730. orb.Material = "Neon"
  3731. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3732. orb.Size = Vector3.new(1, 1, 1)
  3733. orb.Transparency = 1
  3734. orb.TopSurface = 0
  3735. orb.BottomSurface = 0
  3736. hum.WalkSpeed = storehumanoidWS
  3737. coroutine.resume(coroutine.create(function()
  3738. for i = 0, 9 do
  3739. swait(10)
  3740. local lb = Instance.new("Part")
  3741. lb.Color = MAINRUINCOLOR.Color
  3742. lb.CanCollide = false
  3743. lb.Material = "Neon"
  3744. lb.Anchored = true
  3745. lb.TopSurface = 0
  3746. lb.BottomSurface = 0
  3747. lb.Transparency = 0
  3748. lb.Size = vt(1,1,1)
  3749. 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)))
  3750. lb.Anchored = false
  3751. lb.Parent = char
  3752. local thingery = Instance.new("SpecialMesh",lb)
  3753. thingery.MeshType = "Sphere"
  3754. thingery.Scale = vt(20,20,20)
  3755. game:GetService("Debris"):AddItem(lb, 10)
  3756. local bv = Instance.new("BodyVelocity")
  3757. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3758. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3759. bv.Parent = lb
  3760. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3761. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3762. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3763. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3764. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3765. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3766. local hitted = false
  3767. coroutine.resume(coroutine.create(function()
  3768. while true do
  3769. swait(1)
  3770. if lb.Parent ~= nil and hitted == false then
  3771. 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)
  3772. elseif lb.Parent == nil then
  3773. break
  3774. end
  3775. end
  3776. end))
  3777.  
  3778. game:GetService("Debris"):AddItem(a, 0.1)
  3779.  
  3780. coroutine.resume(coroutine.create(function()
  3781. swait(1)
  3782. lb.Touched:connect(function(hit)
  3783. if hitted == false then
  3784. hitted = true
  3785. lb.Transparency = 1
  3786. lb.Anchored = true
  3787. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3788. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3789. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3790. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3791. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3792. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3793. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3794. CameraEnshaking(1,5)
  3795. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3796. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3797. for i = 0, 9 do
  3798. 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)
  3799. end
  3800. for i = 0, 49 do
  3801. swait()
  3802. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3803. 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)
  3804. end
  3805. end
  3806. end)
  3807. end))
  3808. end
  3809. Overed = true
  3810. orb:Destroy()
  3811. end))
  3812.  
  3813. attack = false
  3814. end
  3815.  
  3816. function StarfallEX()
  3817. attack = true
  3818. hum.WalkSpeed = 0
  3819. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3820. for i = 0, 10, 0.1 do
  3821. swait()
  3822. 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)
  3823. 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)
  3824. 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)
  3825. 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)
  3826. 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)
  3827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3828. 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)
  3829. 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)
  3830. end
  3831. local Overed = false
  3832. CameraEnshaking(2,20)
  3833. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3834. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3835. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3836. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3837. local orb = Instance.new("Part", char)
  3838. orb.Anchored = true
  3839. orb.BrickColor = BrickColor.new("Toothpaste")
  3840. orb.CanCollide = false
  3841. orb.FormFactor = 3
  3842. orb.Name = "Remenant"
  3843. orb.Material = "Neon"
  3844. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3845. orb.Size = Vector3.new(1, 1, 1)
  3846. orb.Transparency = 1
  3847. orb.TopSurface = 0
  3848. orb.BottomSurface = 0
  3849. hum.WalkSpeed = storehumanoidWS
  3850. coroutine.resume(coroutine.create(function()
  3851. for i = 0, 4 do
  3852. swait(15)
  3853. local lb = Instance.new("Part")
  3854. lb.Color = MAINRUINCOLOR.Color
  3855. lb.CanCollide = false
  3856. lb.Material = "Neon"
  3857. lb.Anchored = true
  3858. lb.TopSurface = 0
  3859. lb.BottomSurface = 0
  3860. lb.Transparency = 0
  3861. lb.Size = vt(1,1,1)
  3862. 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)))
  3863. lb.Anchored = false
  3864. lb.Parent = char
  3865. local thingery = Instance.new("SpecialMesh",lb)
  3866. thingery.MeshType = "Sphere"
  3867. thingery.Scale = vt(50,50,50)
  3868. game:GetService("Debris"):AddItem(lb, 10)
  3869. local bv = Instance.new("BodyVelocity")
  3870. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3871. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3872. bv.Parent = lb
  3873. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3874. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3875. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3876. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3877. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3878. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3879. local hitted = false
  3880. coroutine.resume(coroutine.create(function()
  3881. while true do
  3882. swait(1)
  3883. if lb.Parent ~= nil and hitted == false then
  3884. 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)
  3885. elseif lb.Parent == nil then
  3886. break
  3887. end
  3888. end
  3889. end))
  3890.  
  3891. game:GetService("Debris"):AddItem(a, 0.1)
  3892.  
  3893. coroutine.resume(coroutine.create(function()
  3894. swait(1)
  3895. lb.Touched:connect(function(hit)
  3896. if hitted == false then
  3897. hitted = true
  3898. lb.Transparency = 1
  3899. lb.Anchored = true
  3900. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3901. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3902. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3903. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3904. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3905. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3906. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3907. CameraEnshaking(1,5)
  3908. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3909. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3910. for i = 0, 9 do
  3911. 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)
  3912. end
  3913. for i = 0, 99 do
  3914. swait()
  3915. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3916. 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)
  3917. end
  3918. end
  3919. end)
  3920. end))
  3921. end
  3922. Overed = true
  3923. orb:Destroy()
  3924. end))
  3925.  
  3926. attack = false
  3927. end
  3928.  
  3929. function DivineBlast()
  3930. attack = true
  3931. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3932. hum.WalkSpeed = 0
  3933. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3934. elocacenter.Anchored = true
  3935. elocacenter.CFrame = sorb.CFrame
  3936. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3937. eloca1.Anchored = true
  3938. eloca1.CFrame = elocacenter.CFrame
  3939. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3940. eloca2.Anchored = true
  3941. eloca2.CFrame = elocacenter.CFrame
  3942. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3943. eloca3.Anchored = true
  3944. eloca3.CFrame = elocacenter.CFrame
  3945. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3946. eloca4.Anchored = true
  3947. eloca4.CFrame = elocacenter.CFrame
  3948. local lookavec = 0
  3949. local speeds = 0
  3950. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3951. for i = 0, 3, 0.1 do
  3952. swait()
  3953. ---
  3954. lookavec = lookavec + 0.1
  3955. speeds = speeds + 10
  3956. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3957. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3958. 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)
  3959.  
  3960. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3961. 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)
  3962.  
  3963. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3964. 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)
  3965.  
  3966. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3967. 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)
  3968. ---
  3969. root.CFrame = FaceMouse()[1]
  3970. 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)
  3971. 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)
  3972. 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)
  3973. 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)
  3974. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3975. 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)
  3976. end
  3977. for i = 0, 3, 0.1 do
  3978. swait()
  3979. ---
  3980. speeds = speeds + 10
  3981. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3982. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3983. 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)
  3984.  
  3985. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3986. 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)
  3987.  
  3988. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3989. 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)
  3990.  
  3991. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3992. 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)
  3993. ---
  3994. root.CFrame = FaceMouse()[1]
  3995. 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)
  3996. 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)
  3997. 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)
  3998. 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)
  3999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4000. 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)
  4001. end
  4002. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4003. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4004. for i = 0, 3, 0.1 do
  4005. swait()
  4006. ---
  4007. speeds = speeds + 10
  4008. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4009. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4010. 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)
  4011.  
  4012. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4013. 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)
  4014.  
  4015. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4016. 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)
  4017.  
  4018. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4019. 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)
  4020. ---
  4021. root.CFrame = FaceMouse()[1]
  4022. 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)
  4023. 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)
  4024. 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)
  4025. 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)
  4026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4027. 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)
  4028. end
  4029. coroutine.resume(coroutine.create(function()
  4030. local a = Instance.new("Part",Character)
  4031. a.Name = "Direction"
  4032. a.Anchored = true
  4033. a.BrickColor = bc("White")
  4034. a.Material = "Neon"
  4035. a.Transparency = 0
  4036. a.Shape = "Cylinder"
  4037. a.CanCollide = false
  4038. local a2 = Instance.new("Part",Character)
  4039. a2.Name = "Direction"
  4040. a2.Anchored = true
  4041. a2.BrickColor = bc("Bright yellow")
  4042. a2.Material = "Neon"
  4043. a2.Transparency = 0
  4044. a2.Shape = "Cylinder"
  4045. a2.CanCollide = false
  4046. local b = Instance.new("Part",Character)
  4047. b.Name = "HitDirect"
  4048. b.Anchored = true
  4049. b.BrickColor = bc("Cool yellow")
  4050. b.Material = "Neon"
  4051. b.Transparency = 1
  4052. b.CanCollide = false
  4053. local ray = Ray.new(
  4054. elocacenter.CFrame.p, -- origin
  4055. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4056. )
  4057. local ignore = Character
  4058. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4059. a.BottomSurface = 10
  4060. a.TopSurface = 10
  4061. a2.BottomSurface = 10
  4062. a2.TopSurface = 10
  4063. local distance = (elocacenter.CFrame.p - position).magnitude
  4064. a.Size = Vector3.new(distance, 1, 1)
  4065. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4066. a2.Size = Vector3.new(distance, 1, 1)
  4067. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4068. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4069. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4070. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4071. game:GetService("Debris"):AddItem(a, 10)
  4072. game:GetService("Debris"):AddItem(a2, 10)
  4073. game:GetService("Debris"):AddItem(b, 10)
  4074. local eff = Instance.new("ParticleEmitter",b)
  4075. eff.Texture = "rbxassetid://2273224484"
  4076. eff.LightEmission = 1
  4077. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4078. eff.Rate = 500000
  4079. eff.Lifetime = NumberRange.new(0.5,2)
  4080. 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)})
  4081. 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)})
  4082. eff.Speed = NumberRange.new(20,250)
  4083. eff.Drag = 5
  4084. eff.Rotation = NumberRange.new(-500,500)
  4085. eff.VelocitySpread = 9000
  4086. eff.RotSpeed = NumberRange.new(-50,50)
  4087. coroutine.resume(coroutine.create(function()
  4088. wait(0.25)
  4089. eff.Enabled = false
  4090. end))
  4091. local msh = Instance.new("SpecialMesh",a)
  4092. msh.MeshType = "Cylinder"
  4093. msh.Scale = vt(1,2,2)
  4094. local msh2 = Instance.new("SpecialMesh",a2)
  4095. msh2.MeshType = "Cylinder"
  4096. msh2.Scale = vt(1,2.5,2.5)
  4097. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4098. coroutine.resume(coroutine.create(function()
  4099. for i = 0,10,0.1 do
  4100. swait()
  4101. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4102. a.Transparency = a.Transparency + 0.025
  4103. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4104. a2.Transparency = a2.Transparency + 0.05
  4105. end
  4106. a:Destroy()
  4107. a2:Destroy()
  4108. end))
  4109. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4110. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4111. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4112. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4113. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4114. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4115. MagniDamage(b, 25, 40,65, 0, "Normal")
  4116. for i = 0, 49 do
  4117. 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)
  4118. 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)
  4119. end
  4120. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4121. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4122. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4123. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4124. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4125. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4126. end))
  4127. game:GetService("Debris"):AddItem(elocacenter, 5)
  4128. hum.WalkSpeed = storehumanoidWS
  4129. attack = false
  4130. end
  4131.  
  4132. function StarDivision()
  4133. attack = true
  4134. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4135. for i = 0, 2, 0.1 do
  4136. swait()
  4137. 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)
  4138. 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)
  4139. 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)
  4140. 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)
  4141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4142. 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)
  4143. end
  4144. local orb = Instance.new("Part", char)
  4145. orb.BrickColor = MAINRUINCOLOR
  4146. orb.CanCollide = false
  4147. orb.FormFactor = 3
  4148. orb.Name = "Ring"
  4149. orb.Material = "Neon"
  4150. orb.Size = Vector3.new(1, 1, 1)
  4151. orb.Transparency = 0
  4152. orb.TopSurface = 0
  4153. orb.BottomSurface = 0
  4154. local orbm = Instance.new("SpecialMesh", orb)
  4155. orbm.MeshType = "Sphere"
  4156. orbm.Name = "SizeMesh"
  4157. orbm.Scale = vt(2,2,2)
  4158. local a = Instance.new("Part",workspace)
  4159. a.Name = "Direction"
  4160. a.Anchored = true
  4161. a.BrickColor = bc("Bright red")
  4162. a.Material = "Neon"
  4163. a.Transparency = 1
  4164. a.CanCollide = false
  4165. local ray = Ray.new(
  4166. sorb.CFrame.p, -- origin
  4167. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4168. )
  4169. local ignore = sorb
  4170. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4171. a.BottomSurface = 10
  4172. a.TopSurface = 10
  4173. local distance = (sorb.CFrame.p - position).magnitude
  4174. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4175. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4176. orb.CFrame = a.CFrame
  4177. a:Destroy()
  4178. local bv = Instance.new("BodyVelocity")
  4179. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4180. bv.velocity = orb.CFrame.lookVector*100
  4181. bv.Parent = orb
  4182. local hitted = false
  4183. game:GetService("Debris"):AddItem(orb, 10)
  4184. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4185. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4186. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4187. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4188. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4189. coroutine.resume(coroutine.create(function()
  4190. while true do
  4191. swait(1)
  4192. if orb.Parent ~= nil and hitted == false then
  4193. 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)
  4194. elseif orb.Parent == nil then
  4195. break
  4196. end
  4197. end
  4198. end))
  4199. coroutine.resume(coroutine.create(function()
  4200. swait(1)
  4201. orb.Touched:connect(function(hit)
  4202. if hitted == false then
  4203. hitted = true
  4204. game:GetService("Debris"):AddItem(orb, 5)
  4205. orb.Transparency = 1
  4206. orb.Anchored = true
  4207. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4208. elocacenter.Anchored = true
  4209. elocacenter.CFrame = orb.CFrame
  4210. elocacenter.Orientation = vt(0,0,0)
  4211. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4212. eloca1.Anchored = true
  4213. eloca1.CFrame = elocacenter.CFrame
  4214. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4215. eloca2.Anchored = true
  4216. eloca2.CFrame = elocacenter.CFrame
  4217. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4218. eloca3.Anchored = true
  4219. eloca3.CFrame = elocacenter.CFrame
  4220. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4221. eloca4.Anchored = true
  4222. eloca4.CFrame = elocacenter.CFrame
  4223. local lookavec = 0
  4224. local speeds = 0
  4225. CameraEnshaking(1,1)
  4226. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4227. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4228. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4229. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4230. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4231. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4232. for i = 0, 99 do
  4233. swait()
  4234. lookavec = lookavec + 1
  4235. speeds = speeds + 0.1
  4236. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4237. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4238. 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)
  4239.  
  4240. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4241. 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)
  4242.  
  4243. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4244. 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)
  4245.  
  4246. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4247. 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)
  4248. end
  4249.  
  4250. for i = 0, 149 do
  4251. swait()
  4252. speeds = speeds + 0.1
  4253. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4254. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4255. 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)
  4256.  
  4257. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4258. 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)
  4259.  
  4260. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4261. 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)
  4262.  
  4263. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4264. 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)
  4265. end
  4266. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4267. if v:FindFirstChild('Head') then
  4268. dmg(v)
  4269. end
  4270. end
  4271. CameraEnshaking(7,30)
  4272. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4273. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4274. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4275. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4276. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4277. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4278. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4279. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4280. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4281. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4282. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4283. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4284. for i = 0, 24 do
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. end
  4290. coroutine.resume(coroutine.create(function()
  4291. for i = 0, 499 do
  4292. swait(1)
  4293. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4294. 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)
  4295. end
  4296. elocacenter:Destroy()
  4297. eloca1:Destroy()
  4298. eloca2:Destroy()
  4299. eloca3:Destroy()
  4300. eloca4:Destroy()
  4301. end))
  4302. end
  4303. end)
  4304. end))
  4305. attack = false
  4306. end
  4307.  
  4308.  
  4309. function THE_TRUE_POWER_OF_VIOLENCE()
  4310. attack = true
  4311. hum.WalkSpeed = 0
  4312. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4313. for i = 0, 10, 0.1 do
  4314. swait()
  4315. 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)
  4316. 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)
  4317. 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)
  4318. 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)
  4319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4320. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4321. 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)
  4322. end
  4323. local orb = Instance.new("Part", char)
  4324. orb.BrickColor = MAINRUINCOLOR
  4325. orb.CanCollide = false
  4326. orb.FormFactor = 3
  4327. orb.Name = "Ring"
  4328. orb.Material = "Neon"
  4329. orb.Size = Vector3.new(1, 1, 1)
  4330. orb.Transparency = 0
  4331. orb.TopSurface = 0
  4332. orb.BottomSurface = 0
  4333. orb.CFrame = sorb.CFrame
  4334. local orbm = Instance.new("SpecialMesh", orb)
  4335. orbm.MeshType = "Sphere"
  4336. orbm.Name = "SizeMesh"
  4337. orbm.Scale = vt(0,0,0)
  4338. local sbs = Instance.new("BodyPosition", orb)
  4339. sbs.P = 3000
  4340. sbs.D = 1000
  4341. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4342. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4343. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4344. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4345. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4346. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4347. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4348. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4349. for i = 0, 10, 0.1 do
  4350. swait()
  4351. 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)
  4352. 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)
  4353. 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)
  4354. 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)
  4355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4357. 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)
  4358. end
  4359. orb.Anchored = true
  4360. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4361. elocacenter.Anchored = true
  4362. elocacenter.CFrame = orb.CFrame
  4363. elocacenter.Orientation = vt(0,0,0)
  4364. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4365. eloca1.Anchored = true
  4366. eloca1.CFrame = elocacenter.CFrame
  4367. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4368. eloca2.Anchored = true
  4369. eloca2.CFrame = elocacenter.CFrame
  4370. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4371. eloca3.Anchored = true
  4372. eloca3.CFrame = elocacenter.CFrame
  4373. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4374. eloca4.Anchored = true
  4375. eloca4.CFrame = elocacenter.CFrame
  4376. local lookavec = 0
  4377. local speeds = 0
  4378. CameraEnshaking(1,1)
  4379. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4380. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4381. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4382. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4383. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4384. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4385. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4386. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4387. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4388. for i = 0, 99 do
  4389. swait()
  4390. lookavec = lookavec + 2.5
  4391. speeds = speeds + 0.25
  4392. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4393. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4394. 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)
  4395.  
  4396. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4397. 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)
  4398.  
  4399. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4400. 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)
  4401.  
  4402. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4403. 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)
  4404. end
  4405.  
  4406. for i = 0, 149 do
  4407. swait()
  4408. speeds = speeds + 0.25
  4409. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4410. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4411. 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)
  4412.  
  4413. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4414. 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)
  4415.  
  4416. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4417. 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)
  4418.  
  4419. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4420. 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)
  4421. end
  4422. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4423. for i = 0, 99 do
  4424. swait()
  4425. lookavec = lookavec - 2.5
  4426. speeds = speeds + 0.25
  4427. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4428. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4429. 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)
  4430.  
  4431. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4432. 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)
  4433.  
  4434. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4435. 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)
  4436.  
  4437. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4438. 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)
  4439. end
  4440. local scaled = 0.1*75
  4441. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4442. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4443. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4444. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4445. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4446. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4447. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4448. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4449. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4450. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4451. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4452.  
  4453. for i = 0, 10, 0.1 do
  4454. swait()
  4455. scaled = scaled - 0.001*75
  4456. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4457. 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)
  4458. 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)
  4459. 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)
  4460. 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)
  4461. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4462. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4463. 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)
  4464. end
  4465. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4466. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4467. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4468. for x = 0, 4 do
  4469. for i = 0, 9 do
  4470. 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)
  4471. end
  4472. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4473. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4474. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4475. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4476. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4477. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. for i = 0, 5, 0.1 do
  4480. swait()
  4481. 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)
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4487. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4488. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4489. end
  4490. end
  4491. local speedearn = 0
  4492. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4493. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4494. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4495. for i = 0, 30, 0.1 do
  4496. swait()
  4497. scaled = scaled - 0.001*75/10
  4498. speedearn = speedearn + 0.5
  4499. for i = 0, 4 do
  4500. 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)
  4501. end
  4502. 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)
  4503. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4504. 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)
  4505. 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)
  4506. 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)
  4507. 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)
  4508. 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)
  4509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4511. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4512. end
  4513. orb.Transparency = 1
  4514. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4515. if v:FindFirstChild('Head') then
  4516. dmg(v)
  4517. end
  4518. end
  4519. CameraEnshaking(7,30)
  4520. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4521. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4522. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4523. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4524. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4525. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4526. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4527. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4528. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4529. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4530. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4531. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4532. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4533. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4534. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4535. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4536. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4537. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. for i = 0, 99 do
  4540. 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)
  4541. 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)
  4542. end
  4543. for i = 0, 24 do
  4544. 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)
  4545. 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)
  4546. 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)
  4547. 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)
  4548. 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)
  4549. end
  4550. game:GetService("Debris"):AddItem(orb, 10)
  4551. hum.WalkSpeed = storehumanoidWS
  4552. attack = false
  4553. end
  4554.  
  4555.  
  4556. function ViolentRing()
  4557. attack = true
  4558. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4559. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4560. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4561. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4562. for i = 0, 2, 0.1 do
  4563. swait()
  4564. local snap = math.random(1,10)
  4565. if snap == 1 then
  4566. 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)
  4567. end
  4568. 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)
  4569. 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)
  4570. 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)
  4571. 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)
  4572. 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)
  4573. 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)
  4574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4576. 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)
  4577. RootPart.CFrame = FaceMouse()[1]
  4578. end
  4579. local orb = Instance.new("Part", char)
  4580. orb.BrickColor = MAINRUINCOLOR
  4581. orb.CanCollide = false
  4582. orb.FormFactor = 3
  4583. orb.Name = "Ring"
  4584. orb.Material = "Neon"
  4585. orb.Size = Vector3.new(1, 1, 1)
  4586. orb.Transparency = 0
  4587. orb.TopSurface = 0
  4588. orb.BottomSurface = 0
  4589. local orbm = Instance.new("SpecialMesh", orb)
  4590. orbm.MeshType = "Sphere"
  4591. orbm.Name = "SizeMesh"
  4592. orbm.Scale = vt(2,2,2)
  4593. orb.CFrame = mouse.Hit
  4594. local bv = Instance.new("BodyVelocity")
  4595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4596. bv.velocity = orb.CFrame.lookVector*100
  4597. bv.Parent = orb
  4598. local hitted = false
  4599. coroutine.resume(coroutine.create(function()
  4600. game:GetService("Debris"):AddItem(orb, 5)
  4601. orb.Transparency = 1
  4602. orb.Anchored = true
  4603. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4604. elocacenter.Anchored = true
  4605. elocacenter.CFrame = orb.CFrame
  4606. elocacenter.Orientation = vt(0,0,0)
  4607. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4608. eloca1.Anchored = true
  4609. eloca1.CFrame = elocacenter.CFrame
  4610. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4611. eloca2.Anchored = true
  4612. eloca2.CFrame = elocacenter.CFrame
  4613. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4614. eloca3.Anchored = true
  4615. eloca3.CFrame = elocacenter.CFrame
  4616. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4617. eloca4.Anchored = true
  4618. eloca4.CFrame = elocacenter.CFrame
  4619. local lookavec = 0
  4620. local speeds = 0
  4621. CameraEnshaking(1,1)
  4622. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4623. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4624. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4625. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4626. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4627. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4628. for i = 0, 24 do
  4629. swait()
  4630. lookavec = lookavec + 3.5
  4631. speeds = speeds + 1
  4632. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4633. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4634. 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)
  4635.  
  4636. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4637. 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)
  4638.  
  4639. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4640. 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)
  4641.  
  4642. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4643. 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)
  4644. end
  4645.  
  4646. local risen = 0
  4647. for i = 0, 49 do
  4648. swait()
  4649. risen = risen + 0.05
  4650. speeds = speeds + 0.1
  4651. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4652. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4653. 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)
  4654.  
  4655. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4656. 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)
  4657.  
  4658. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4659. 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)
  4660.  
  4661. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4662. 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)
  4663. end
  4664. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4665. if v:FindFirstChild('Head') then
  4666. dmg(v)
  4667. end
  4668. end
  4669. CameraEnshaking(4,10)
  4670. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4671. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4672. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4673. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4674. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4675. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4676. local eff = Instance.new("ParticleEmitter",elocacenter)
  4677. eff.Texture = "rbxassetid://2273224484"
  4678. eff.LightEmission = 1
  4679. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4680. eff.Rate = 1000000
  4681. eff.Lifetime = NumberRange.new(0.5,2)
  4682. 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)})
  4683. 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)})
  4684. eff.Speed = NumberRange.new(20,250)
  4685. eff.Drag = 5
  4686. eff.Rotation = NumberRange.new(-500,500)
  4687. eff.VelocitySpread = 5000000
  4688. eff.RotSpeed = NumberRange.new(-50,50)
  4689. coroutine.resume(coroutine.create(function()
  4690. wait(1)
  4691. eff.Enabled = false
  4692. end))
  4693. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4694. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4695. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4696. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4697. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4698. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4699. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4700. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4701. for i = 0, 24 do
  4702. 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)
  4703. 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)
  4704. 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)
  4705. 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)
  4706. end
  4707. coroutine.resume(coroutine.create(function()
  4708. wait(10)
  4709. elocacenter:Destroy()
  4710. eloca1:Destroy()
  4711. eloca2:Destroy()
  4712. eloca3:Destroy()
  4713. eloca4:Destroy()
  4714. end))
  4715. end))
  4716. attack = false
  4717. end
  4718.  
  4719. function UniversalCollapse()
  4720. attack = true
  4721. local speedearn = 0
  4722. hum.WalkSpeed = 0
  4723. local sbs = Instance.new("BodyPosition", root)
  4724. sbs.P = 3000
  4725. sbs.D = 1000
  4726. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4727. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4728. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4729. for i = 0, 85, 0.1 do
  4730. swait()
  4731. speedearn = speedearn + 0.1
  4732. 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)
  4733. 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)
  4734. 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)
  4735. 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)
  4736. 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)
  4737. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4738. 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)
  4739. 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)
  4740. 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)
  4741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4742. 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)
  4743. 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)
  4744. end
  4745. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4746. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4747. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4748. for i = 0, 25, 0.1 do
  4749. swait()
  4750. speedearn = speedearn + 0.1
  4751. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4752. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4753. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4754. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4755. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4756. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4757. 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)
  4758. 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)
  4759. 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)
  4760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4761. 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)
  4762. 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)
  4763. end
  4764. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4765. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4766. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4767. CameraEnshaking(5,50)
  4768. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4769. for i = 0, 2 do
  4770. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4771. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4772. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4773. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4774. end
  4775. for i = 0, 49 do
  4776. 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)
  4777. 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)
  4778. 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)
  4779. 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)
  4780. end
  4781. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4782. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4783. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4784. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4785. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4786. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4787. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4789. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4790. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4791. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4792. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4793. for i = 0, 99 do
  4794. 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)
  4795. 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)
  4796. end
  4797. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4798. if v:FindFirstChild('Head') then
  4799. dmg(v)
  4800. end
  4801. end
  4802. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4803. sbs:Destroy()
  4804. hum.WalkSpeed = storehumanoidWS
  4805. attack = false
  4806. end
  4807.  
  4808.  
  4809. function ChaosEND()
  4810. attack = true
  4811. local speedearn = 0
  4812. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4813. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4814. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4815. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4816. for i = 0, 15, 0.1 do
  4817. swait()
  4818. speedearn = speedearn + 0.25
  4819. 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)
  4820. 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)
  4821. 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)
  4822. 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)
  4823. 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)
  4824. 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)
  4825. 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)
  4826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4828. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4829. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4830. end
  4831. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4832. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4833. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4834. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4835. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4836. CameraEnshaking(5,25)
  4837. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4838. if v:FindFirstChild('Head') then
  4839. dmg(v)
  4840. end
  4841. end
  4842. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4843. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4844. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4845. for i = 0, 3, 0.1 do
  4846. swait()
  4847. 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)
  4848. 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)
  4849. 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)
  4850. 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)
  4851. 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)
  4852. 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)
  4853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4855. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4856. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4857. end
  4858. attack = false
  4859. end
  4860.  
  4861. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4862. local orb = Instance.new("Part", char)
  4863. orb.Anchored = true
  4864. orb.BrickColor = color
  4865. orb.CanCollide = false
  4866. orb.FormFactor = 3
  4867. orb.Name = "Ring"
  4868. orb.Material = "Neon"
  4869. orb.Size = Vector3.new(1, 1, 1)
  4870. orb.Transparency = 0
  4871. orb.TopSurface = 0
  4872. orb.BottomSurface = 0
  4873. local orbm = Instance.new("SpecialMesh", orb)
  4874. orbm.MeshType = "Sphere"
  4875. orb.CFrame = positted
  4876. orbm.Name = "SizeMesh"
  4877. orbm.Scale = vt(1,1,1)
  4878. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4879. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4880. --[[for i = 0, 2 do
  4881. 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)
  4882. end]]--
  4883. coroutine.resume(coroutine.create(function()
  4884. wait(timer)
  4885. CameraEnshaking(3,ShakePower)
  4886. orb.Transparency = 1
  4887. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4888. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4889. --[[for i = 0, 4 do
  4890. 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)
  4891. end]]--
  4892. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4893. wait(3)
  4894. orb:Destroy()
  4895. end))
  4896. end
  4897.  
  4898. function orb_spawn(positted,timer)
  4899. local randomcol = math.random(1,2)
  4900. local orb = Instance.new("Part", char)
  4901. orb.Anchored = true
  4902. if randomcol == 1 then
  4903. orb.BrickColor = BrickColor.new("White")
  4904. elseif randomcol == 2 then
  4905. orb.BrickColor = BrickColor.new("Really black")
  4906. end
  4907. orb.CanCollide = false
  4908. orb.FormFactor = 3
  4909. orb.Name = "Ring"
  4910. orb.Material = "Neon"
  4911. orb.Size = Vector3.new(1, 1, 1)
  4912. orb.Transparency = 0
  4913. orb.TopSurface = 0
  4914. orb.BottomSurface = 0
  4915. local orbm = Instance.new("SpecialMesh", orb)
  4916. orbm.MeshType = "Sphere"
  4917. orb.CFrame = positted
  4918. orbm.Name = "SizeMesh"
  4919. orbm.Scale = vt(1,1,1)
  4920. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4921. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4922. for i = 0, 2 do
  4923. 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)
  4924. end
  4925. coroutine.resume(coroutine.create(function()
  4926. wait(timer)
  4927. CameraEnshaking(3,2)
  4928. orb.Transparency = 1
  4929. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4930. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4931. for i = 0, 4 do
  4932. 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)
  4933. end
  4934. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4935. wait(3)
  4936. orb:Destroy()
  4937. end))
  4938. end
  4939.  
  4940. function scattercorrupt()
  4941. attack = true
  4942. hum.WalkSpeed = 0
  4943. for i = 0, 2, 0.1 do
  4944. swait()
  4945. 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)
  4946. 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)
  4947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4948. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4949. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4950. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4951. end
  4952. local rot = 0
  4953. local randomrotations = math.random(1,2)
  4954. local lookv = 2.5
  4955. local power = 7
  4956. local radm = math.random(1,3)
  4957. if radm == 1 then
  4958. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4959. elseif radm == 2 then
  4960. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4961. elseif radm == 3 then
  4962. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4963. end
  4964. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4965. for i = 0, 1, 0.1 do
  4966. swait()
  4967. 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)
  4968. 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)
  4969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4971. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4972. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4973. end
  4974. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4975. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4976. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4977. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4978. for i = 0, 9 do
  4979. 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)
  4980. end
  4981. local hite = Instance.new("Part", char)
  4982. hite.Anchored = true
  4983. hite.CanCollide = false
  4984. hite.FormFactor = 3
  4985. hite.Name = "Ring"
  4986. hite.Material = "Neon"
  4987. hite.Size = Vector3.new(1, 1, 1)
  4988. hite.Transparency = 1
  4989. hite.TopSurface = 0
  4990. hite.BottomSurface = 0
  4991. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4992. local rem = Instance.new("Part", char)
  4993. rem.Anchored = true
  4994. rem.CanCollide = false
  4995. rem.FormFactor = 3
  4996. rem.Name = "Ring"
  4997. rem.Material = "Neon"
  4998. rem.Size = Vector3.new(1, 1, 1)
  4999. rem.Transparency = 1
  5000. rem.TopSurface = 0
  5001. rem.BottomSurface = 0
  5002. rem.CFrame = hite.CFrame
  5003. local rem2 = rem:Clone()
  5004. rem2.Parent = char
  5005. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5006. local rem3 = rem:Clone()
  5007. rem3.Parent = char
  5008. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5009. local rem4 = rem:Clone()
  5010. rem4.Parent = char
  5011. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5012. hite:Destroy()
  5013. coroutine.resume(coroutine.create(function()
  5014. for i = 0, 24 do
  5015. swait(1)
  5016. if randomrotations == 1 then
  5017. rot = rot + 1
  5018. elseif randomrotations == 2 then
  5019. rot = rot - 1
  5020. end
  5021. power = power + 0.5
  5022. lookv = lookv + 7.5
  5023. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5024. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5025. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5026. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5027. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5028. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5029. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5030. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5031. end
  5032. end))
  5033. wait(2)
  5034. hum.WalkSpeed = storehumanoidWS
  5035. attack = false
  5036. end
  5037. function yinyangi()
  5038. attack = true
  5039. for i = 0, 2, 0.1 do
  5040. swait()
  5041. 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)
  5042. 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)
  5043. 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)
  5044. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5045. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5046. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5047. end
  5048. local bv = Instance.new("BodyVelocity")
  5049. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5050. bv.velocity = root.CFrame.lookVector*175
  5051. bv.Parent = root
  5052. for Rotations = 0, 9 do
  5053. for i = 0, 1, 0.5 do
  5054. swait()
  5055. bv.velocity = root.CFrame.lookVector*175
  5056. 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)
  5057. 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)
  5058. 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)
  5059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5060. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5061. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5062. end
  5063. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5064. for i = 0, 1, 0.5 do
  5065. swait()
  5066. bv.velocity = root.CFrame.lookVector*175
  5067. 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)
  5068. 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)
  5069. 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)
  5070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5071. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5072. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5073. end
  5074. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5075. for i = 0, 1, 0.5 do
  5076. swait()
  5077. bv.velocity = root.CFrame.lookVector*175
  5078. 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)
  5079. 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)
  5080. 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)
  5081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5083. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5084. end
  5085. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5086. for i = 0, 1, 0.5 do
  5087. swait()
  5088. bv.velocity = root.CFrame.lookVector*175
  5089. 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)
  5090. 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)
  5091. 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)
  5092. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5093. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5094. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5095. end
  5096. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5097. end
  5098. bv:Destroy()
  5099. attack = false
  5100. end
  5101.  
  5102. function createBGCircle(size,parent,color)
  5103. local bgui = Instance.new("BillboardGui",parent)
  5104. bgui.Size = UDim2.new(size, 0, size, 0)
  5105. local imgc = Instance.new("ImageLabel",bgui)
  5106. imgc.BackgroundTransparency = 1
  5107. imgc.ImageTransparency = 0
  5108. imgc.Size = UDim2.new(1,0,1,0)
  5109. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5110. imgc.ImageColor3 = color
  5111. return bgui,imgc
  5112. end
  5113.  
  5114. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5115. local bgui,imgc = createBGCircle(size,guipar,color)
  5116. bgui.AlwaysOnTop = true
  5117. imgc.Image = "rbxassetid://" ..img
  5118. local rrot = math.random(1,2)
  5119. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5120. coroutine.resume(coroutine.create(function()
  5121. for i = 0, 24*delay do
  5122. swait()
  5123. if rotationenabled == true then
  5124. if rrot == 1 then
  5125. imgc.Rotation = imgc.Rotation + rotsp
  5126. elseif rrot == 2 then
  5127. imgc.Rotation = imgc.Rotation - rotsp
  5128. end
  5129. end
  5130. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5131. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5132. end
  5133. bgui:Destroy()
  5134. end))
  5135. end
  5136. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5137. for i, v in pairs(mw2:GetChildren()) do
  5138. if v:IsA("Part") then
  5139. v.BrickColor = one
  5140. v.Material = "Neon"
  5141. end
  5142. end
  5143. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5144. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5145. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5146. tr1.Color = ColorSequence.new(one.Color)
  5147. tr2.Color = ColorSequence.new(one.Color)
  5148. tr3.Color = ColorSequence.new(one.Color)
  5149. for i, v in pairs(mw1:GetChildren()) do
  5150. if v:IsA("Part") then
  5151. if secondaryenabled == false then
  5152. v.Transparency = 1
  5153. elseif secondaryenabled == true then
  5154. v.Transparency = 0
  5155. end
  5156. v.BrickColor = two
  5157. v.Material = "Neon"
  5158. end
  5159. end
  5160. if secondaryenabled == false then
  5161. tl1.Enabled = false
  5162. tl2.Enabled = false
  5163. tl3.Enabled = false
  5164. elseif secondaryenabled == true then
  5165. tl1.Enabled = true
  5166. tl2.Enabled = true
  5167. tl3.Enabled = true
  5168. end
  5169. tl1.Color = ColorSequence.new(two.Color)
  5170. tl2.Color = ColorSequence.new(two.Color)
  5171. tl3.Color = ColorSequence.new(two.Color)
  5172. for i, v in pairs(m:GetChildren()) do
  5173. if v:IsA("Part") then
  5174. v.BrickColor = three
  5175. v.Material = "Ice"
  5176. end
  5177. end
  5178. for i, v in pairs(m2:GetChildren()) do
  5179. if v:IsA("Part") then
  5180. v.BrickColor = four
  5181. v.Material = "Ice"
  5182. end
  5183. end
  5184. for i, v in pairs(m3:GetChildren()) do
  5185. if v:IsA("Part") then
  5186. v.BrickColor = five
  5187. v.Material = "Neon"
  5188. end
  5189. end
  5190. for i, v in pairs(extrawingmod1:GetChildren()) do
  5191. if v:IsA("Part") then
  5192. v.Transparency = exonetran
  5193. v.BrickColor = exone
  5194. v.Material = "Neon"
  5195. end
  5196. end
  5197. for i, v in pairs(extrawingmod2:GetChildren()) do
  5198. if v:IsA("Part") then
  5199. v.Transparency = extwotran
  5200. v.BrickColor = extwo
  5201. v.Material = "Neon"
  5202. end
  5203. end
  5204. end
  5205.  
  5206.  
  5207. function normalmog()
  5208. attack = true
  5209. hum.WalkSpeed = 0
  5210. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5211. for i = 0,6,0.1 do
  5212. swait()
  5213. 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)
  5214. 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)
  5215. 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)
  5216. 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)
  5217. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5218. 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)
  5219. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5220. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5221. end
  5222. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5223. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5224. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5225. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5226. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5227. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5228. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5229. rainbowmode = false
  5230. chaosmode = false
  5231. ModeOfGlitch = 1
  5232. storehumanoidWS = 16
  5233. newTheme("rbxassetid://1255569288",48.6,1,1.25)
  5234. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5235. CameraEnshaking(5,2.5)
  5236. MAINRUINCOLOR = BrickColor.new("Really red")
  5237. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5238. for i = 0, 49 do
  5239. 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)
  5240. end
  5241. for i = 0, 24 do
  5242. 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)
  5243. 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"))
  5244. end
  5245. for i = 0,3,0.1 do
  5246. 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)
  5247. end
  5248. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5249. for i = 0,2,0.1 do
  5250. swait()
  5251. 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)
  5252. 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)
  5253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5254. 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)
  5255. 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)
  5256. 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)
  5257. end
  5258. hum.WalkSpeed = storehumanoidWS
  5259. attack = false
  5260. end
  5261.  
  5262. function attackone()
  5263. attack = true
  5264. local keptcolor = MAINRUINCOLOR
  5265. for i = 0,1,0.1 do
  5266. swait()
  5267. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5268. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5269. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5270. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5271. 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)
  5272. 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)
  5273. end
  5274. local distlook = 5
  5275. coroutine.resume(coroutine.create(function()
  5276. for i = 0, 4 do
  5277. swait(2)
  5278. CameraEnshaking(2,3)
  5279. local hite = Instance.new("Part", char)
  5280. hite.Anchored = true
  5281. hite.CanCollide = false
  5282. hite.FormFactor = 3
  5283. hite.Name = "Ring"
  5284. hite.Material = "Neon"
  5285. hite.Size = Vector3.new(1, 1, 1)
  5286. hite.Transparency = 1
  5287. hite.TopSurface = 0
  5288. hite.BottomSurface = 0
  5289. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5290. 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)
  5291. 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)
  5292. 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)
  5293. 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)
  5294. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5295. for i = 0, 14 do
  5296. local rsiz = math.random(5,20)
  5297. 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)
  5298. end
  5299. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5300. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5301. game:GetService("Debris"):AddItem(hite, 5)
  5302. distlook = distlook + 10
  5303. end
  5304. end))
  5305. for i = 0,1,0.1 do
  5306. swait()
  5307. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5308. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5309. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5310. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5311. 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)
  5312. 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)
  5313. end
  5314. attack = false
  5315. end
  5316.  
  5317. function attacktwo()
  5318. attack = true
  5319. hum.WalkSpeed = 2
  5320. local keptcolor = MAINRUINCOLOR
  5321. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5322. 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)
  5323. 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)
  5324. for i = 0, 14 do
  5325. 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)
  5326. end
  5327. for i = 0,1,0.1 do
  5328. swait()
  5329. 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)
  5330. 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)
  5331. 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)
  5332. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5333. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5334. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5335. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5336. end
  5337. for i = 0, 1 do
  5338. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5339. for i = 0,1,0.6 do
  5340. swait()
  5341. 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)
  5342. 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"))
  5343. 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)
  5344. 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)
  5345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5347. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5348. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5349. end
  5350. for i = 0,1,0.6 do
  5351. swait()
  5352. 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)
  5353. 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"))
  5354. 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)
  5355. 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)
  5356. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5357. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5358. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5359. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5360. end
  5361. for i = 0,1,0.6 do
  5362. swait()
  5363. 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)
  5364. 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"))
  5365. 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)
  5366. 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)
  5367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5369. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5370. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5371. end
  5372. for i = 0,1,0.6 do
  5373. swait()
  5374. 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)
  5375. 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"))
  5376. 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)
  5377. 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)
  5378. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5379. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5380. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5381. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5382. end
  5383. local rot = 0
  5384. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5385. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5386. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5387. CreateMesh(dis,"Sphere",10,1,10)
  5388. local at1 = Instance.new("Attachment",dis)
  5389. at1.Position = vt(-5,0,0)
  5390. local at2 = Instance.new("Attachment",dis)
  5391. at2.Position = vt(5,0,0)
  5392. local trl = Instance.new('Trail',wed)
  5393. trl.Attachment0 = at1
  5394. trl.Attachment1 = at2
  5395. trl.Texture = "rbxassetid://1049219073"
  5396. trl.LightEmission = 1
  5397. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5398. trl.Color = ColorSequence.new(dis.Color)
  5399. trl.Lifetime = 0.6
  5400. local a = Instance.new("Part",workspace)
  5401. a.Name = "Direction"
  5402. a.Anchored = true
  5403. a.BrickColor = bc("Bright red")
  5404. a.Material = "Neon"
  5405. a.Transparency = 1
  5406. a.CanCollide = false
  5407. local ray = Ray.new(
  5408. dis.CFrame.p, -- origin
  5409. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5410. )
  5411. local ignore = dis
  5412. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5413. a.BottomSurface = 10
  5414. a.TopSurface = 10
  5415. local distance = (dis.CFrame.p - position).magnitude
  5416. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5417. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5418. dis.CFrame = a.CFrame
  5419. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5420. a:Destroy()
  5421. local bv = Instance.new("BodyVelocity")
  5422. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5423. bv.velocity = dis.CFrame.lookVector*250
  5424. bv.Parent = dis
  5425. game:GetService("Debris"):AddItem(dis, 5)
  5426. local hitted = false
  5427. coroutine.resume(coroutine.create(function()
  5428. dis.Touched:connect(function(hit)
  5429. if hitted == false and hit.Parent ~= char then
  5430. hitted = true
  5431. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5432. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5433. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5434. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5435. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5436. coroutine.resume(coroutine.create(function()
  5437. for i = 0, 9 do
  5438. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5439. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5440. local at1 = Instance.new("Attachment",disr)
  5441. at1.Position = vt(-5,0,0)
  5442. local at2 = Instance.new("Attachment",disr)
  5443. at2.Position = vt(5,0,0)
  5444. local trl = Instance.new('Trail',disr)
  5445. trl.Attachment0 = at1
  5446. trl.FaceCamera = true
  5447. trl.Attachment1 = at2
  5448. trl.Texture = "rbxassetid://2342682798"
  5449. trl.LightEmission = 1
  5450. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5451. trl.Color = ColorSequence.new(keptcolor.Color)
  5452. trl.Lifetime = 0.5
  5453. local bv = Instance.new("BodyVelocity")
  5454. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5455. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5456. bv.Parent = disr
  5457. local val = 0
  5458. coroutine.resume(coroutine.create(function()
  5459. swait(30)
  5460. for i = 0, 9 do
  5461. swait()
  5462. val = val + 0.1
  5463. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5464. end
  5465. game:GetService("Debris"):AddItem(disr, 3)
  5466. end))
  5467. end
  5468. local eff = Instance.new("ParticleEmitter",dis)
  5469. eff.Texture = "rbxassetid://2273224484"
  5470. eff.LightEmission = 1
  5471. eff.Color = ColorSequence.new(keptcolor.Color)
  5472. eff.Rate = 500000
  5473. eff.Lifetime = NumberRange.new(0.5,2)
  5474. 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)})
  5475. 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)})
  5476. eff.Speed = NumberRange.new(20,250)
  5477. eff.Drag = 5
  5478. eff.Rotation = NumberRange.new(-500,500)
  5479. eff.VelocitySpread = 9000
  5480. eff.RotSpeed = NumberRange.new(-50,50)
  5481. wait(0.25)
  5482. eff.Enabled = false
  5483. end))
  5484. for i = 0, 9 do
  5485. 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"))
  5486. end
  5487. for i = 0, 19 do
  5488. 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)
  5489. end
  5490. coroutine.resume(coroutine.create(function()
  5491. for i = 0, 19 do
  5492. swait()
  5493. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5494. end
  5495. hum.CameraOffset = vt(0,0,0)
  5496. end))
  5497. dis.Anchored = true
  5498. dis.Transparency = 1
  5499. wait(8)
  5500. dis:Destroy()
  5501. end
  5502. end)
  5503. end))
  5504. rot = rot - 15
  5505. end
  5506. for i = 0,2,0.1 do
  5507. swait()
  5508. 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)
  5509. 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)
  5510. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5511. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5512. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5513. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5514. end
  5515. attack = false
  5516. hum.WalkSpeed = storehumanoidWS
  5517. end
  5518.  
  5519. function attackthree()
  5520. attack = true
  5521. local keptcolor = MAINRUINCOLOR
  5522. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5523. for i = 0,2,0.1 do
  5524. swait()
  5525. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5526. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5527. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5528. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5529. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5530. 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)
  5531. 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)
  5532. end
  5533. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5534. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5535. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5536. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5537. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5538. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5539. for i = 0, 24 do
  5540. 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"))
  5541. end
  5542. for i = 0,4,0.1 do
  5543. swait()
  5544. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5545. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5546. CreateMesh(dis,"Sphere",1,1,1)
  5547. dis.Anchored = true
  5548. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5549. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5550. coroutine.resume(coroutine.create(function()
  5551. swait(30)
  5552. dis.Transparency = 1
  5553. coroutine.resume(coroutine.create(function()
  5554. for i = 0, 19 do
  5555. swait()
  5556. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5557. end
  5558. hum.CameraOffset = vt(0,0,0)
  5559. end))
  5560. coroutine.resume(coroutine.create(function()
  5561. local eff = Instance.new("ParticleEmitter",dis)
  5562. eff.Texture = "rbxassetid://2273224484"
  5563. eff.LightEmission = 1
  5564. eff.Color = ColorSequence.new(dis.Color)
  5565. eff.Rate = 500000
  5566. eff.Lifetime = NumberRange.new(0.5,2)
  5567. 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)})
  5568. 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)})
  5569. eff.Speed = NumberRange.new(50,450)
  5570. eff.Drag = 5
  5571. eff.Rotation = NumberRange.new(-500,500)
  5572. eff.VelocitySpread = 9000
  5573. eff.RotSpeed = NumberRange.new(-50,50)
  5574. wait(0.125)
  5575. eff.Enabled = false
  5576. end))
  5577. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5578. for i = 0, 2 do
  5579. 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)
  5580. end
  5581. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5582. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5583. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5584. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5585. end))
  5586. game:GetService("Debris"):AddItem(dis, 5)
  5587. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5589. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5590. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5591. 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)
  5592. 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)
  5593. end
  5594. attack = false
  5595. end
  5596. ----------------------------------- Abilities
  5597.  
  5598. function ExtinctiveHeartbreak()
  5599. local targetted = nil
  5600. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5601. targetted = mouse.Target.Parent
  5602. end
  5603. if targetted ~= nil then
  5604. attack = true
  5605. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5606. for i = 0, 9 do
  5607. 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)
  5608. end
  5609. for i = 0, 24 do
  5610. 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)
  5611. end
  5612. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5613. local originalpos = root.CFrame
  5614. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5615. for i = 0, 9 do
  5616. 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)
  5617. end
  5618. for i = 0, 24 do
  5619. 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)
  5620. end
  5621. hum.WalkSpeed = 0
  5622. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5623. local radm = math.random(1,3)
  5624. if radm == 1 then
  5625. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5626. elseif radm == 2 then
  5627. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5628. elseif radm == 3 then
  5629. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5630. end
  5631. for i = 0,2,0.1 do
  5632. swait()
  5633. 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)
  5634. 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)
  5635. 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)
  5636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5637. 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)
  5638. 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)
  5639. end
  5640. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5641. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5642. for i = 0,2,0.1 do
  5643. swait()
  5644. coroutine.resume(coroutine.create(function()
  5645. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5646. for i,v in pairs(targetted:GetChildren()) do
  5647. if v:IsA("Part") or v:IsA("MeshPart") then
  5648. v.Velocity = vt(0,0,0)
  5649. end
  5650. end
  5651. end))
  5652. 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)
  5653. 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)
  5654. 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)
  5655. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5656. 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)
  5657. 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)
  5658. end
  5659. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5660. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5661. for i = 0, 1 do
  5662. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5663. end
  5664. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5665. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5666. for i = 0,4,0.1 do
  5667. swait()
  5668. coroutine.resume(coroutine.create(function()
  5669. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5670. 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)))
  5671. local at1 = Instance.new("Attachment",dis)
  5672. at1.Position = vt(-25000,0,0)
  5673. local at2 = Instance.new("Attachment",dis)
  5674. at2.Position = vt(25000,0,0)
  5675. local trl = Instance.new('Trail',dis)
  5676. trl.Attachment0 = at1
  5677. trl.FaceCamera = true
  5678. trl.Attachment1 = at2
  5679. trl.Texture = "rbxassetid://1049219073"
  5680. trl.LightEmission = 1
  5681. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5682. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5683. trl.Lifetime = 5
  5684. local bv = Instance.new("BodyVelocity")
  5685. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5686. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5687. bv.Parent = dis
  5688. game:GetService("Debris"):AddItem(dis, 5)
  5689. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5690. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5691. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5692. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5693. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5694. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5695. 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)
  5696. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5697. for i = 0, 2 do
  5698. 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"))
  5699. end
  5700. 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)
  5701. for i,v in pairs(targetted:GetChildren()) do
  5702. if v:IsA("Part") or v:IsA("MeshPart") then
  5703. v.Velocity = vt(0,0,0)
  5704. end
  5705. end
  5706. end))
  5707. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5708. 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)
  5709. 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)
  5710. 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)
  5711. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5712. 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)
  5713. 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)
  5714. end
  5715. hum.CameraOffset = vt(0,0,0)
  5716. for i = 0, 49 do
  5717. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5718. 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)))
  5719. local at1 = Instance.new("Attachment",dis)
  5720. at1.Position = vt(-50000,0,0)
  5721. local at2 = Instance.new("Attachment",dis)
  5722. at2.Position = vt(50000,0,0)
  5723. local trl = Instance.new('Trail',dis)
  5724. trl.Attachment0 = at1
  5725. trl.FaceCamera = true
  5726. trl.Attachment1 = at2
  5727. trl.Texture = "rbxassetid://1049219073"
  5728. trl.LightEmission = 1
  5729. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5730. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5731. trl.Lifetime = 5
  5732. local bv = Instance.new("BodyVelocity")
  5733. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5734. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5735. bv.Parent = dis
  5736. game:GetService("Debris"):AddItem(dis, 5)
  5737. end
  5738. for i = 0, 49 do
  5739. 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)
  5740. 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"))
  5741. end
  5742. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5743. for i = 0, 1 do
  5744. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5745. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5746. end
  5747. for i = 0, 4 do
  5748. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5749. end
  5750. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5751. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5752. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5753. dmg(targetted)
  5754. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5755. for i = 0, 9 do
  5756. 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)
  5757. end
  5758. for i = 0, 24 do
  5759. 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)
  5760. end
  5761. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5762. root.CFrame = originalpos
  5763. for i = 0, 9 do
  5764. 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)
  5765. end
  5766. for i = 0, 24 do
  5767. 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)
  5768. end
  5769. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5770. attack = false
  5771. hum.WalkSpeed = storehumanoidWS
  5772. end
  5773. end
  5774.  
  5775. function CorruptionEvent()
  5776. attack = true
  5777. hum.WalkSpeed = 0
  5778. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5779. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5780. local keptcolor = MAINRUINCOLOR
  5781. for i = 0,4,0.1 do
  5782. swait()
  5783. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5784. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5785. 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)
  5786. 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)
  5787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5788. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5789. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5790. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5791. end
  5792. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5793. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5794. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5795. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5796. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5797. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5798. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5799. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5800. hum.CameraOffset = vt(0,0,0)
  5801. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5802. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5803. for i = 0, 24 do
  5804. 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"))
  5805. end
  5806. local rrot = 0
  5807. coroutine.resume(coroutine.create(function()
  5808. for i = 0, 4 do
  5809. rrot = rrot + 45
  5810. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5811. xa.Anchored = true
  5812. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5813. xb.Anchored = true
  5814. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5815. xc.Anchored = true
  5816. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5817. xd.Anchored = true
  5818. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5819. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5820. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5821. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5822. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5823. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5824. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5825. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5826. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5827. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5828. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5829. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5830. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5831. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5832. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5833. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5834. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5835. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5836. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5837. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5838. for i = 0, 9 do
  5839. 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"))
  5840. 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"))
  5841. 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"))
  5842. 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"))
  5843. end
  5844. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5845. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5846. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5847. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5848. 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)
  5849. 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)
  5850. 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)
  5851. 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)
  5852. 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))
  5853. 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))
  5854. 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))
  5855. 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))
  5856. game:GetService("Debris"):AddItem(xa, 5)
  5857. game:GetService("Debris"):AddItem(xb, 5)
  5858. game:GetService("Debris"):AddItem(xc, 5)
  5859. game:GetService("Debris"):AddItem(xd, 5)
  5860. coroutine.resume(coroutine.create(function()
  5861. for i = 0, 19 do
  5862. swait()
  5863. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5864. end
  5865. hum.CameraOffset = vt(0,0,0)
  5866. end))
  5867. swait(9)
  5868. end
  5869. end))
  5870. for i = 0,2,0.1 do
  5871. swait()
  5872. 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)
  5873. 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)
  5874. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5876. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5877. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5878. end
  5879. attack = false
  5880. hum.WalkSpeed = storehumanoidWS
  5881. end
  5882.  
  5883. function EndGROUND()
  5884. attack = true
  5885. hum.WalkSpeed = 0
  5886. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5887. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5888. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5889. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5890. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5891. local keptcolor = MAINRUINCOLOR
  5892. for i = 0,4,0.1 do
  5893. swait()
  5894. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5895. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5896. 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"))
  5897. 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)
  5898. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5899. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5901. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5902. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5903. end
  5904. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5905. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5906. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5907. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5908. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5909. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5910. coroutine.resume(coroutine.create(function()
  5911. local shval = 10
  5912. for i = 0, 99 do
  5913. swait()
  5914. shval = shval - 0.1
  5915. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5916. end
  5917. hum.CameraOffset = vt(0,0,0)
  5918. end))
  5919. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5920. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5921. for i = 0, 24 do
  5922. 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"))
  5923. end
  5924. local rrot = 0
  5925. local xam = 1
  5926. coroutine.resume(coroutine.create(function()
  5927. for i = 0, 14 do
  5928. --swait()
  5929. rrot = rrot + 40*xam
  5930. xam = xam + 0.25
  5931. local bonus = xam
  5932. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5933. xa.Anchored = true
  5934. xa.Color = Color3.new(0,0,0)
  5935. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5936. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5937. local xc = 0
  5938. coroutine.resume(coroutine.create(function()
  5939. for i = 0, 99 do
  5940. swait()
  5941. xc = xc + 0.01
  5942. xa.Color = Color3.new(xc,0,0)
  5943. end
  5944. xa.Transparency = 1
  5945. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5946. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5947. for i = 0, 9 do
  5948. 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"))
  5949. end
  5950. 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)
  5951. 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)
  5952. 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))
  5953. game:GetService("Debris"):AddItem(xa, 5)
  5954. coroutine.resume(coroutine.create(function()
  5955. for i = 0, 19 do
  5956. swait()
  5957. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5958. end
  5959. hum.CameraOffset = vt(0,0,0)
  5960. end))
  5961. end))
  5962. end
  5963. end))
  5964. for i = 0,2,0.1 do
  5965. swait()
  5966. 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)
  5967. 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)
  5968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5970. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5971. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5972. end
  5973. attack = false
  5974. hum.WalkSpeed = storehumanoidWS
  5975. end
  5976.  
  5977. function HeavenlyDisk()
  5978. attack = true
  5979. hum.WalkSpeed = 2
  5980. local keptcolor = MAINRUINCOLOR
  5981. local radm = math.random(1,3)
  5982. if radm == 1 then
  5983. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5984. elseif radm == 2 then
  5985. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5986. elseif radm == 3 then
  5987. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5988. end
  5989. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5990. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5991. 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)
  5992. 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)
  5993. for i = 0, 14 do
  5994. 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)
  5995. end
  5996. for i = 0,2,0.1 do
  5997. swait()
  5998. 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)
  5999. 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)
  6000. 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)
  6001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6002. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6003. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6004. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6005. end
  6006. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6007. for i = 0,1,0.6 do
  6008. swait()
  6009. 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)
  6010. 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"))
  6011. 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)
  6012. 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)
  6013. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6014. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6015. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6016. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6017. end
  6018. for i = 0,1,0.6 do
  6019. swait()
  6020. 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)
  6021. 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"))
  6022. 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)
  6023. 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)
  6024. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6025. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6026. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6027. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6028. end
  6029. for i = 0,1,0.6 do
  6030. swait()
  6031. 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)
  6032. 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"))
  6033. 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)
  6034. 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)
  6035. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6036. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6037. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6038. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6039. end
  6040. for i = 0,1,0.6 do
  6041. swait()
  6042. 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)
  6043. 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"))
  6044. 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)
  6045. 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)
  6046. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6048. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6049. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6050. end
  6051. local rot = 15
  6052. for i = 0, 2 do
  6053. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6054. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6055. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6056. CreateMesh(dis,"Sphere",10,1,10)
  6057. local at1 = Instance.new("Attachment",dis)
  6058. at1.Position = vt(-5,0,0)
  6059. local at2 = Instance.new("Attachment",dis)
  6060. at2.Position = vt(5,0,0)
  6061. local trl = Instance.new('Trail',wed)
  6062. trl.Attachment0 = at1
  6063. trl.Attachment1 = at2
  6064. trl.Texture = "rbxassetid://1049219073"
  6065. trl.LightEmission = 1
  6066. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6067. trl.Color = ColorSequence.new(dis.Color)
  6068. trl.Lifetime = 0.6
  6069. local a = Instance.new("Part",workspace)
  6070. a.Name = "Direction"
  6071. a.Anchored = true
  6072. a.BrickColor = bc("Bright red")
  6073. a.Material = "Neon"
  6074. a.Transparency = 1
  6075. a.CanCollide = false
  6076. local ray = Ray.new(
  6077. dis.CFrame.p, -- origin
  6078. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6079. )
  6080. local ignore = dis
  6081. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6082. a.BottomSurface = 10
  6083. a.TopSurface = 10
  6084. local distance = (dis.CFrame.p - position).magnitude
  6085. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6086. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6087. dis.CFrame = a.CFrame
  6088. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6089. a:Destroy()
  6090. local bv = Instance.new("BodyVelocity")
  6091. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6092. bv.velocity = dis.CFrame.lookVector*250
  6093. bv.Parent = dis
  6094. game:GetService("Debris"):AddItem(dis, 5)
  6095. local hitted = false
  6096. coroutine.resume(coroutine.create(function()
  6097. dis.Touched:connect(function(hit)
  6098. if hitted == false and hit.Parent ~= char then
  6099. hitted = true
  6100. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6101. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6102. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6103. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6104. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6105. coroutine.resume(coroutine.create(function()
  6106. for i = 0, 9 do
  6107. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6108. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6109. local at1 = Instance.new("Attachment",disr)
  6110. at1.Position = vt(-2,0,0)
  6111. local at2 = Instance.new("Attachment",disr)
  6112. at2.Position = vt(2,0,0)
  6113. local trl = Instance.new('Trail',disr)
  6114. trl.Attachment0 = at1
  6115. trl.FaceCamera = true
  6116. trl.Attachment1 = at2
  6117. trl.Texture = "rbxassetid://2342682798"
  6118. trl.LightEmission = 1
  6119. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6120. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6121. trl.Lifetime = 0.5
  6122. local bv = Instance.new("BodyVelocity")
  6123. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6124. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6125. bv.Parent = disr
  6126. local val = 0
  6127. coroutine.resume(coroutine.create(function()
  6128. swait(30)
  6129. for i = 0, 9 do
  6130. swait()
  6131. val = val + 0.1
  6132. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6133. end
  6134. game:GetService("Debris"):AddItem(disr, 3)
  6135. end))
  6136. end
  6137. local eff = Instance.new("ParticleEmitter",dis)
  6138. eff.Texture = "rbxassetid://2273224484"
  6139. eff.LightEmission = 1
  6140. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6141. eff.Rate = 500000
  6142. eff.Lifetime = NumberRange.new(0.5,2)
  6143. 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)})
  6144. 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)})
  6145. eff.Speed = NumberRange.new(20,250)
  6146. eff.Drag = 5
  6147. eff.Rotation = NumberRange.new(-500,500)
  6148. eff.VelocitySpread = 9000
  6149. eff.RotSpeed = NumberRange.new(-50,50)
  6150. wait(0.25)
  6151. eff.Enabled = false
  6152. end))
  6153. for i = 0, 9 do
  6154. 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"))
  6155. end
  6156. for i = 0, 19 do
  6157. 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)
  6158. end
  6159. coroutine.resume(coroutine.create(function()
  6160. for i = 0, 19 do
  6161. swait()
  6162. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6163. end
  6164. hum.CameraOffset = vt(0,0,0)
  6165. end))
  6166. dis.Anchored = true
  6167. dis.Transparency = 1
  6168. wait(8)
  6169. dis:Destroy()
  6170. end
  6171. end)
  6172. end))
  6173. rot = rot - 15
  6174. end
  6175. for i = 0,2,0.1 do
  6176. swait()
  6177. 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)
  6178. 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)
  6179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6183. end
  6184. attack = false
  6185. hum.WalkSpeed = storehumanoidWS
  6186. end
  6187.  
  6188. function FuckMeSidewaysAndCallMeGay()
  6189. local whom = (mouse.Target and mouse.Target.Parent)
  6190. --[[local fuckThisBoi = false
  6191. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6192. for _,v in next, ODers do
  6193. if(v == whom)then
  6194. fuckThisBoi = false
  6195. end
  6196. end
  6197. end
  6198. if(not fuckThisBoi)then
  6199. attack = false
  6200. warn'to fuck that boi you need to target them with z'
  6201. else]]
  6202. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6203. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6204. local hum = whom:FindFirstChildOfClass'Humanoid'
  6205. local ocf = RootPart.CFrame
  6206. hum.WalkSpeed = 0
  6207.  
  6208. hed.Anchored = true
  6209. RootPart.Anchored = true
  6210. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6211. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6212. for i = 0, 9 do
  6213. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6214. end
  6215. for i = 0, 24 do
  6216. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6217. end
  6218. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6219. attack = true
  6220. bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6221. local speed = 1
  6222. local heck;
  6223. local stopitlol = false;
  6224. heck = mouse.KeyUp:connect(function(k)
  6225. if(k:lower() == 'x')then
  6226. stopitlol = true
  6227. heck:disconnect()
  6228. end
  6229. end)
  6230. local times = 0
  6231. repeat swait()
  6232. speed = speed - .01
  6233. times = times + 1
  6234. if(speed < .1)then
  6235. speed = .1
  6236. end
  6237. for i = 0, speed, .05 do
  6238. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6239. swait()
  6240. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6241. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6242. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6243. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6244. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6245. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6246. end
  6247. CameraEnshaking(5,5)
  6248.  
  6249. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6250.  
  6251. for i = 0, speed, .05 do
  6252. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6253. swait()
  6254. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6255. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6256. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6257. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6258. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6259. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6260. end
  6261. until stopitlol and times >= 3
  6262. for i = 1, 3 do
  6263. for i = 0, 1.5, .05 do
  6264. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6265. swait()
  6266. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6267. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6268. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6269. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6270. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6271. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6272. end
  6273. CameraEnshaking(5,25)
  6274.  
  6275. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6276.  
  6277.  
  6278. coroutine.resume(coroutine.create(function()
  6279. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6280. bld.LightEmission = 0.1
  6281. bld.Texture = "rbxassetid://284205403"
  6282. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6283. bld.Rate = 500
  6284. bld.Lifetime = NumberRange.new(1)
  6285. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6286. bld.Acceleration = vt(0,-25,0)
  6287. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6288. bld.Speed = NumberRange.new(10,50)
  6289. bld.EmissionDirection = "Back"
  6290. bld.VelocitySpread = 25
  6291. bld.Rotation = NumberRange.new(-500,500)
  6292. bld.RotSpeed = NumberRange.new(-500,500)
  6293. bld.Enabled = false
  6294. bld:Emit(250)
  6295. end))
  6296. coroutine.resume(coroutine.create(function()
  6297. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6298. bld.LightEmission = 0.1
  6299. bld.Texture = "rbxassetid://284205403"
  6300. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6301. bld.Rate = 500
  6302. bld.Lifetime = NumberRange.new(1)
  6303. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6304. bld.Acceleration = vt(0,-25,0)
  6305. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6306. bld.Speed = NumberRange.new(10,50)
  6307. bld.EmissionDirection = "Back"
  6308. bld.VelocitySpread = 25
  6309. bld.Rotation = NumberRange.new(-500,500)
  6310. bld.RotSpeed = NumberRange.new(-500,500)
  6311. bld.Enabled = false
  6312. bld:Emit(250)
  6313. end))
  6314. for i = 0, 1.5, .05 do
  6315. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6316. swait()
  6317. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6318. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6319. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6320. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6321. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6322. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6323. end
  6324. end
  6325. for i = 0, 4, .05 do
  6326. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6327. swait()
  6328. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6329. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6330. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6333. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6334. end
  6335. CameraEnshaking(5,25)
  6336. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6337. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6338.  
  6339. dmg(whom)
  6340. coroutine.resume(coroutine.create(function()
  6341. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6342. bld.LightEmission = 0.1
  6343. bld.Texture = "rbxassetid://284205403"
  6344. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6345. bld.Rate = 500
  6346. bld.Lifetime = NumberRange.new(1)
  6347. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6348. bld.Acceleration = vt(0,-25,0)
  6349. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6350. bld.Speed = NumberRange.new(10,50)
  6351. bld.EmissionDirection = "Back"
  6352. bld.VelocitySpread = 25
  6353. bld.Rotation = NumberRange.new(-500,500)
  6354. bld.RotSpeed = NumberRange.new(-500,500)
  6355. bld.Enabled = true
  6356. end))
  6357. coroutine.resume(coroutine.create(function()
  6358. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6359. bld.LightEmission = 0.1
  6360. bld.Texture = "rbxassetid://284205403"
  6361. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6362. bld.Rate = 500
  6363. bld.Lifetime = NumberRange.new(1)
  6364. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6365. bld.Acceleration = vt(0,-25,0)
  6366. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6367. bld.Speed = NumberRange.new(10,50)
  6368. bld.EmissionDirection = "Back"
  6369. bld.VelocitySpread = 25
  6370. bld.Rotation = NumberRange.new(-500,500)
  6371. bld.RotSpeed = NumberRange.new(-500,500)
  6372. bld.Enabled = true
  6373. end))
  6374. for i = 0, 3, .05 do
  6375. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6376. swait()
  6377. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6378. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6379. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6381. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6382. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6383. end
  6384.  
  6385. RootPart.CFrame = ocf
  6386. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6387. for i = 0, 9 do
  6388. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6389. end
  6390. for i = 0, 24 do
  6391. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6392. end
  6393. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6394. RootPart.Anchored = false
  6395. Humanoid.WalkSpeed = storehumanoidWS
  6396. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6397. attack = false
  6398. end
  6399. end
  6400.  
  6401. function RapidBurst()
  6402. attack = true
  6403. hum.WalkSpeed = 0
  6404. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6405. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6406. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6407. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6408. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6409. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6410. local keptcolor = MAINRUINCOLOR
  6411. for i = 0,8,0.1 do
  6412. swait()
  6413. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6414. 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())
  6415. 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)
  6416. 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)
  6417. 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)
  6418. 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)
  6419. 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)
  6420. 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)
  6421. 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)
  6422. end
  6423. for i = 0, 99 do
  6424. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6425. 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)))
  6426. local at1 = Instance.new("Attachment",dis)
  6427. at1.Position = vt(-25000,0,0)
  6428. local at2 = Instance.new("Attachment",dis)
  6429. at2.Position = vt(25000,0,0)
  6430. local trl = Instance.new('Trail',dis)
  6431. trl.Attachment0 = at1
  6432. trl.FaceCamera = true
  6433. trl.Attachment1 = at2
  6434. trl.Texture = "rbxassetid://1049219073"
  6435. trl.LightEmission = 1
  6436. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6437. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6438. trl.Lifetime = 5
  6439. local bv = Instance.new("BodyVelocity")
  6440. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6441. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6442. bv.Parent = dis
  6443. game:GetService("Debris"):AddItem(dis, 5)
  6444. end
  6445. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6446. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6447. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6448. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6449. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6450. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6451. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6452. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6453. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6454. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6455. hum.CameraOffset = vt(0,0,0)
  6456. for i = 0, 24 do
  6457. 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())
  6458. end
  6459. local distam = 0
  6460. coroutine.resume(coroutine.create(function()
  6461. for i = 0, 99 do
  6462. wait()
  6463. distam = distam + 1
  6464. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6465. xa.Anchored = true
  6466. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6467. game:GetService("Debris"):AddItem(xa, 5)
  6468. for i = 0, 4 do
  6469. 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())
  6470. end
  6471. coroutine.resume(coroutine.create(function()
  6472. local eff = Instance.new("ParticleEmitter",xa)
  6473. eff.Texture = "rbxassetid://2273224484"
  6474. eff.LightEmission = 1
  6475. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6476. eff.Rate = 500000
  6477. eff.Lifetime = NumberRange.new(1,3)
  6478. 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)})
  6479. 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)})
  6480. eff.Speed = NumberRange.new(50,500)
  6481. eff.Drag = 5
  6482. eff.Rotation = NumberRange.new(-500,500)
  6483. eff.VelocitySpread = 9000
  6484. eff.RotSpeed = NumberRange.new(-50,50)
  6485. wait(0.25)
  6486. eff.Enabled = false
  6487. end))
  6488. coroutine.resume(coroutine.create(function()
  6489. for i = 0, 19 do
  6490. swait()
  6491. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6492. end
  6493. hum.CameraOffset = vt(0,0,0)
  6494. end))
  6495. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6496. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6497. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6498. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6499. end
  6500. end))
  6501. attack = false
  6502. hum.WalkSpeed = storehumanoidWS
  6503. end
  6504.  
  6505.  
  6506. function FallenOrbs()
  6507. attack = true
  6508. hum.WalkSpeed = 2
  6509. local keptcolor = MAINRUINCOLOR
  6510. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6511. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6512. local radm = math.random(1,3)
  6513. if radm == 1 then
  6514. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6515. elseif radm == 2 then
  6516. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6517. elseif radm == 3 then
  6518. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6519. end
  6520. coroutine.resume(coroutine.create(function()
  6521. for i = 0, 29 do
  6522. swait(2)
  6523. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6524. dis.Anchored = true
  6525. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6526. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6527. CreateMesh(dis,"Sphere",2,2,2)
  6528. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6529. 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"))
  6530. coroutine.resume(coroutine.create(function()
  6531. wait(0.5)
  6532. dis.Anchored = false
  6533. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6534. local at1 = Instance.new("Attachment",dis)
  6535. at1.Position = vt(-1,0,0)
  6536. local at2 = Instance.new("Attachment",dis)
  6537. at2.Position = vt(1,0,0)
  6538. local trl = Instance.new('Trail',dis)
  6539. trl.Attachment0 = at1
  6540. trl.FaceCamera = true
  6541. trl.Attachment1 = at2
  6542. trl.Texture = "rbxassetid://1049219073"
  6543. trl.LightEmission = 1
  6544. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6545. trl.Color = ColorSequence.new(dis.Color)
  6546. trl.Lifetime = 0.6
  6547. local a = Instance.new("Part",workspace)
  6548. a.Name = "Direction"
  6549. a.Anchored = true
  6550. a.BrickColor = bc("Bright red")
  6551. a.Material = "Neon"
  6552. a.Transparency = 1
  6553. a.CanCollide = false
  6554. local ray = Ray.new(
  6555. dis.CFrame.p, -- origin
  6556. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6557. )
  6558. local ignore = dis
  6559. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6560. a.BottomSurface = 10
  6561. a.TopSurface = 10
  6562. local distance = (dis.CFrame.p - position).magnitude
  6563. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6564. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6565. dis.CFrame = a.CFrame
  6566. a:Destroy()
  6567. local bv = Instance.new("BodyVelocity")
  6568. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6569. bv.velocity = dis.CFrame.lookVector*500
  6570. bv.Parent = dis
  6571. game:GetService("Debris"):AddItem(dis, 5)
  6572. local hitted = false
  6573. coroutine.resume(coroutine.create(function()
  6574. dis.Touched:connect(function(hit)
  6575. if hitted == false and hit.Parent ~= char then
  6576. hitted = true
  6577. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6578. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6579. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6580. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6581. coroutine.resume(coroutine.create(function()
  6582. for i = 0, 4 do
  6583. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6584. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6585. local at1 = Instance.new("Attachment",disr)
  6586. at1.Position = vt(-10,0,0)
  6587. local at2 = Instance.new("Attachment",disr)
  6588. at2.Position = vt(10,0,0)
  6589. local trl = Instance.new('Trail',disr)
  6590. trl.Attachment0 = at1
  6591. trl.FaceCamera = true
  6592. trl.Attachment1 = at2
  6593. trl.Texture = "rbxassetid://2342682798"
  6594. trl.LightEmission = 1
  6595. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6596. trl.Color = ColorSequence.new(disr.Color)
  6597. trl.Lifetime = 0.5
  6598. local bv = Instance.new("BodyVelocity")
  6599. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6600. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6601. bv.Parent = disr
  6602. local val = 0
  6603. coroutine.resume(coroutine.create(function()
  6604. swait(30)
  6605. for i = 0, 9 do
  6606. swait()
  6607. val = val + 0.1
  6608. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6609. end
  6610. game:GetService("Debris"):AddItem(disr, 3)
  6611. end))
  6612. end
  6613. local eff = Instance.new("ParticleEmitter",dis)
  6614. eff.Texture = "rbxassetid://1049219073"
  6615. eff.LightEmission = 1
  6616. eff.Color = ColorSequence.new(dis.Color)
  6617. eff.Rate = 500000
  6618. eff.Lifetime = NumberRange.new(0.5,2)
  6619. 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)})
  6620. 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)})
  6621. eff.Speed = NumberRange.new(20,250)
  6622. eff.Drag = 5
  6623. eff.Rotation = NumberRange.new(-500,500)
  6624. eff.VelocitySpread = 9000
  6625. eff.RotSpeed = NumberRange.new(-50,50)
  6626. wait(0.5)
  6627. eff.Enabled = false
  6628. end))
  6629. for i = 0, 4 do
  6630. 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"))
  6631. end
  6632. coroutine.resume(coroutine.create(function()
  6633. for i = 0, 19 do
  6634. swait()
  6635. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6636. end
  6637. hum.CameraOffset = vt(0,0,0)
  6638. end))
  6639. dis.Anchored = true
  6640. dis.Transparency = 1
  6641. wait(8)
  6642. dis:Destroy()
  6643. end
  6644. end)
  6645. end))
  6646. end))
  6647. end
  6648. end))
  6649. for i = 0,9,0.1 do
  6650. swait()
  6651. 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)
  6652. 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)
  6653. 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)
  6654. 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)
  6655. 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)
  6656. 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)
  6657. 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)
  6658. end
  6659. attack = false
  6660. hum.WalkSpeed = storehumanoidWS
  6661. end
  6662.  
  6663. function CyberSlash()
  6664. local posit = -2
  6665. attack = true
  6666. hum.WalkSpeed = 5
  6667. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6668. local radm = math.random(1,3)
  6669. if radm == 1 then
  6670. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6671. elseif radm == 2 then
  6672. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6673. elseif radm == 3 then
  6674. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6675. end
  6676. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6677. for i = 0,2,0.1 do
  6678. swait()
  6679. 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)
  6680. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6681. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6682. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6683. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6684. 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)
  6685. 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)
  6686. end
  6687. for i = 0, 2 do
  6688. CameraEnshaking(1,2)
  6689. local hite = Instance.new("Part", char)
  6690. hite.Anchored = true
  6691. hite.CanCollide = false
  6692. hite.FormFactor = 3
  6693. hite.Name = "Ring"
  6694. hite.Material = "Neon"
  6695. hite.Size = Vector3.new(1, 1, 1)
  6696. hite.Transparency = 1
  6697. hite.TopSurface = 0
  6698. hite.BottomSurface = 0
  6699. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6700. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6701. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6702. coroutine.resume(coroutine.create(function()
  6703. for i = 0, 1 do
  6704. swait()
  6705. 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)
  6706. 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)
  6707. 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)
  6708. end
  6709. end))
  6710. 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)
  6711. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6712. game:GetService("Debris"):AddItem(hite, 5)
  6713. posit = posit + 2
  6714. end
  6715. for i = 0,1,0.1 do
  6716. swait()
  6717. 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)
  6718. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6720. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6721. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6722. 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)
  6723. 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)
  6724. end
  6725. for i = 0,1,0.1 do
  6726. swait()
  6727. 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)
  6728. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6729. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6730. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6731. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6732. 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)
  6733. 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)
  6734. end
  6735. posit = -6
  6736. for i = 0, 6 do
  6737. CameraEnshaking(1,3)
  6738. local hite = Instance.new("Part", char)
  6739. hite.Anchored = true
  6740. hite.CanCollide = false
  6741. hite.FormFactor = 3
  6742. hite.Name = "Ring"
  6743. hite.Material = "Neon"
  6744. hite.Size = Vector3.new(1, 1, 1)
  6745. hite.Transparency = 1
  6746. hite.TopSurface = 0
  6747. hite.BottomSurface = 0
  6748. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6749. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6750. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6751. 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)
  6752. coroutine.resume(coroutine.create(function()
  6753. for i = 0, 2 do
  6754. swait()
  6755. 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)
  6756. 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)
  6757. 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)
  6758. end
  6759. end))
  6760. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6761. game:GetService("Debris"):AddItem(hite, 5)
  6762. posit = posit + 2
  6763. end
  6764. for i = 0,1,0.1 do
  6765. swait()
  6766. 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)
  6767. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6768. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6770. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6771. 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)
  6772. 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)
  6773. end
  6774. hum.WalkSpeed = storehumanoidWS
  6775. attack = false
  6776. end
  6777.  
  6778. function EquinoxOrbs()
  6779. hum.WalkSpeed = 0
  6780. attack = true
  6781. local radm = math.random(1,3)
  6782. if radm == 1 then
  6783. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6784. elseif radm == 2 then
  6785. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6786. elseif radm == 3 then
  6787. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6788. end
  6789. for i = 0,1,0.1 do
  6790. swait()
  6791. 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)
  6792. 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)
  6793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6795. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6796. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6797. end
  6798. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6799. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6800. for i = 0, 24 do
  6801. 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"))
  6802. end
  6803. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6804. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6805. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6806. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6807. for i = 0,4,0.1 do
  6808. swait()
  6809. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6810. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6811. CreateMesh(dis,"Sphere",1,1,1)
  6812. dis.Anchored = true
  6813. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6814. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6815. CreateMesh(dis2,"Sphere",1,1,1)
  6816. dis2.Anchored = true
  6817. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6818. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6819. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6820. coroutine.resume(coroutine.create(function()
  6821. swait(60)
  6822. dis.Transparency = 1
  6823. dis2.Transparency = 1
  6824. coroutine.resume(coroutine.create(function()
  6825. for i = 0, 19 do
  6826. swait()
  6827. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6828. end
  6829. hum.CameraOffset = vt(0,0,0)
  6830. end))
  6831. coroutine.resume(coroutine.create(function()
  6832. local eff = Instance.new("ParticleEmitter",dis)
  6833. eff.Texture = "rbxassetid://2273224484"
  6834. eff.LightEmission = 1
  6835. eff.Color = ColorSequence.new(dis.Color)
  6836. eff.Rate = 500000
  6837. eff.Lifetime = NumberRange.new(0.5,2)
  6838. 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)})
  6839. 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)})
  6840. eff.Speed = NumberRange.new(50,450)
  6841. eff.Drag = 5
  6842. eff.Rotation = NumberRange.new(-500,500)
  6843. eff.VelocitySpread = 9000
  6844. eff.RotSpeed = NumberRange.new(-50,50)
  6845. local eff2 = eff:Clone()
  6846. eff2.Parent = dis2
  6847. eff2.LightEmission = 0
  6848. eff2.Color = ColorSequence.new(dis2.Color)
  6849. wait(0.25)
  6850. eff.Enabled = false
  6851. eff2.Enabled = false
  6852. end))
  6853. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6854. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6855. for i = 0, 2 do
  6856. 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)
  6857. 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)
  6858. end
  6859. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6860. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6861. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6862. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6863. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6864. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6865. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6866. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6867. end))
  6868. game:GetService("Debris"):AddItem(dis, 5)
  6869. game:GetService("Debris"):AddItem(dis2, 5)
  6870. 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)
  6871. 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)
  6872. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6873. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6874. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6875. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6876. end
  6877. attack = false
  6878. hum.WalkSpeed = storehumanoidWS
  6879. end
  6880. function FallenDEMISE()
  6881. attack = true
  6882. hum.WalkSpeed = 0
  6883. local keptcolor = MAINRUINCOLOR
  6884. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6885. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6886. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6887. for i = 0, 15, 0.1 do
  6888. swait()
  6889. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6890. 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)))
  6891. local at1 = Instance.new("Attachment",dis)
  6892. at1.Position = vt(-25000,0,0)
  6893. local at2 = Instance.new("Attachment",dis)
  6894. at2.Position = vt(25000,0,0)
  6895. local trl = Instance.new('Trail',dis)
  6896. trl.Attachment0 = at1
  6897. trl.FaceCamera = true
  6898. trl.Attachment1 = at2
  6899. trl.Texture = "rbxassetid://1049219073"
  6900. trl.LightEmission = 1
  6901. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6902. trl.Color = ColorSequence.new(dis.Color)
  6903. trl.Lifetime = 5
  6904. local bv = Instance.new("BodyVelocity")
  6905. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6906. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6907. bv.Parent = dis
  6908. game:GetService("Debris"):AddItem(dis, 1)
  6909. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6910. 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"))
  6911. 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"))
  6912. 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)
  6913. 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)
  6914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6916. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6917. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6918. end
  6919. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6920. for i = 0, 30, 0.1 do
  6921. swait()
  6922. coroutine.resume(coroutine.create(function()
  6923. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6924. if v:FindFirstChild('Head') then
  6925. dmg(v)
  6926. end
  6927. end
  6928. end))
  6929. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6930. 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)))
  6931. local at1 = Instance.new("Attachment",dis)
  6932. at1.Position = vt(-50000,0,0)
  6933. local at2 = Instance.new("Attachment",dis)
  6934. at2.Position = vt(50000,0,0)
  6935. local trl = Instance.new('Trail',dis)
  6936. trl.Attachment0 = at1
  6937. trl.FaceCamera = true
  6938. trl.Attachment1 = at2
  6939. trl.Texture = "rbxassetid://1049219073"
  6940. trl.LightEmission = 1
  6941. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6942. trl.Color = ColorSequence.new(dis.Color)
  6943. trl.Lifetime = 10
  6944. local bv = Instance.new("BodyVelocity")
  6945. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6946. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6947. bv.Parent = dis
  6948. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6949. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6950. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6951. 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"))
  6952. 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"))
  6953. 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"))
  6954. 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"))
  6955. for i = 0, 2 do
  6956. 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)
  6957. end
  6958. 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)
  6959. 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)
  6960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6962. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6963. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6964. end
  6965. attack = false
  6966. hum.WalkSpeed = storehumanoidWS
  6967. end
  6968.  
  6969. function SpeedDrop()
  6970. attack = true
  6971. hum.WalkSpeed = 0
  6972. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6973. local poste = 3
  6974. local rotation = 0
  6975. local rate = 0
  6976. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6977. for i = 0, 124 do
  6978. swait()
  6979. rotation = rotation + rate
  6980. poste = poste + 0.1
  6981. rate = rate + 0.1
  6982. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6983. 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)
  6984. 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)
  6985. 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)
  6986. 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)
  6987. 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)
  6988. 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)
  6989. 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)
  6990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6994. end
  6995. CameraEnshaking(3,7)
  6996. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6997. local loc = Instance.new("Part", char)
  6998. loc.BrickColor = MAINRUINCOLOR
  6999. loc.CanCollide = false
  7000. loc.FormFactor = 3
  7001. loc.Name = "Ring"
  7002. loc.Material = "Neon"
  7003. loc.Size = Vector3.new(1, 1, 1)
  7004. loc.Transparency = 1
  7005. loc.TopSurface = 0
  7006. loc.BottomSurface = 0
  7007. loc.Anchored = true
  7008. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7009. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7010. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7011. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7012. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7013. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7014. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7015. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7016. coroutine.resume(coroutine.create(function()
  7017. local eff = Instance.new("ParticleEmitter",loc)
  7018. eff.Texture = "rbxassetid://363275192"
  7019. eff.LightEmission = 0.95
  7020. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7021. eff.Rate = 10000
  7022. eff.Lifetime = NumberRange.new(1)
  7023. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7024. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7025. eff.Speed = NumberRange.new(100,500)
  7026. eff.Drag = 5
  7027. eff.Rotation = NumberRange.new(-500,500)
  7028. eff.VelocitySpread = 9000
  7029. eff.RotSpeed = NumberRange.new(-50,50)
  7030. wait(0.5)
  7031. eff.Enabled = false
  7032. end))
  7033. for i = 0, 49 do
  7034. 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)
  7035. end
  7036. for i = 0, 9 do
  7037. 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)
  7038. end
  7039. game:GetService("Debris"):AddItem(loc, 5)
  7040. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7041. hum.WalkSpeed = storehumanoidWS
  7042. attack = false
  7043. end
  7044.  
  7045. function cutesigh()
  7046. attack = true
  7047. hum.WalkSpeed = 0
  7048. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7049. local blush = Instance.new("Decal",hed)
  7050. blush.Texture = "rbxassetid://898404027"
  7051. blush.Face = "Front"
  7052. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7053. for i = 0, 9, 0.1 do
  7054. swait()
  7055. 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)
  7056. 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)
  7057. 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)
  7058. 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)
  7059. 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)
  7060. 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)
  7061. end
  7062. coroutine.resume(coroutine.create(function()
  7063. for i = 0, 49 do
  7064. swait()
  7065. blush.Transparency = blush.Transparency + 0.02
  7066. end
  7067. blush:Destroy()
  7068. end))
  7069. hum.WalkSpeed = storehumanoidWS
  7070. attack = false
  7071. end
  7072.  
  7073. function smiter()
  7074. local targetted = nil
  7075. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7076. targetted = mouse.Target.Parent
  7077. end
  7078. if targetted ~= nil then
  7079. RootPart.CFrame = FaceMouse()[1]
  7080. attack = true
  7081. local radm = math.random(1,3)
  7082. if radm == 1 then
  7083. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7084. elseif radm == 2 then
  7085. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7086. elseif radm == 3 then
  7087. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7088. end
  7089. hum.WalkSpeed = 0
  7090. coroutine.resume(coroutine.create(function()
  7091. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7092. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7093. local vel = Instance.new("BodyPosition", targetted.Head)
  7094. vel.P = 12500
  7095. vel.D = 1000
  7096. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7097. vel.position = targetted.Head.CFrame.p
  7098. end))
  7099. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7100. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7101. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7102. for i = 0,4,0.1 do
  7103. swait()
  7104. 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)
  7105. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7106. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7107. 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)
  7108. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7109. 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)
  7110. 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)
  7111. end
  7112. coroutine.resume(coroutine.create(function()
  7113. CameraEnshaking(6,5)
  7114. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7115. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7116. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7117. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7118. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7119. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7120. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7121. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7122. coroutine.resume(coroutine.create(function()
  7123. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7124. eff.Texture = "rbxassetid://2273224484"
  7125. eff.LightEmission = 1
  7126. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7127. eff.Rate = 500000
  7128. eff.Lifetime = NumberRange.new(0.5,2)
  7129. 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)})
  7130. 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)})
  7131. eff.Speed = NumberRange.new(20,250)
  7132. eff.Drag = 5
  7133. eff.Rotation = NumberRange.new(-500,500)
  7134. eff.VelocitySpread = 9000
  7135. eff.RotSpeed = NumberRange.new(-50,50)
  7136. wait(0.25)
  7137. eff.Enabled = false
  7138. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7139. eff.Texture = "rbxassetid://363275192"
  7140. eff.LightEmission = 0.95
  7141. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7142. eff.Rate = 10000
  7143. eff.Lifetime = NumberRange.new(1.5)
  7144. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7145. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7146. eff.Speed = NumberRange.new(25,150)
  7147. eff.Drag = 5
  7148. eff.Rotation = NumberRange.new(-500,500)
  7149. eff.VelocitySpread = 9000
  7150. eff.RotSpeed = NumberRange.new(-50,50)
  7151. local eff2 = eff:Clone()
  7152. eff2.Parent = targetted.Head
  7153. eff2.Texture = "rbxassetid://284205403"
  7154. eff2.Rate = 10000
  7155. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7156. eff2.Drag = 5
  7157. eff2.Rotation = NumberRange.new(-500,500)
  7158. eff2.VelocitySpread = 9000
  7159. wait(0.5)
  7160. eff2.Enabled = false
  7161. eff.Enabled = false
  7162. end))
  7163. for i = 0, 9 do
  7164. 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)
  7165. end
  7166. for i = 0, 49 do
  7167. local rsiz = math.random(10,50)
  7168. 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)
  7169. end
  7170. game:GetService("Debris"):AddItem(vel,1)
  7171. dmg(targetted)
  7172. end))
  7173. for i = 0,1,0.1 do
  7174. swait()
  7175. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7176. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7177. 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)
  7178. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7179. 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)
  7180. 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)
  7181. end
  7182. attack = false
  7183. hum.WalkSpeed = storehumanoidWS
  7184. end
  7185. end
  7186.  
  7187. function shytaunty()
  7188. attack = true
  7189. hum.WalkSpeed = 0
  7190. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7191. local blush = Instance.new("Decal",hed)
  7192. blush.Texture = "rbxassetid://898404027"
  7193. blush.Face = "Front"
  7194. for i = 0, 13, 0.1 do
  7195. swait()
  7196. 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)
  7197. 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)
  7198. 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)
  7199. 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)
  7200. 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)
  7201. 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)
  7202. end
  7203. coroutine.resume(coroutine.create(function()
  7204. for i = 0, 49 do
  7205. swait()
  7206. blush.Transparency = blush.Transparency + 0.02
  7207. end
  7208. blush:Destroy()
  7209. end))
  7210. hum.WalkSpeed = storehumanoidWS
  7211. attack = false
  7212. end
  7213.  
  7214. function PureBomb()
  7215. attack = true
  7216. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7217. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7218. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7219. local orb = Instance.new("Part", char)
  7220. orb.Anchored = true
  7221. orb.BrickColor = BrickColor.new("Toothpaste")
  7222. orb.CanCollide = false
  7223. orb.FormFactor = 3
  7224. orb.Name = "Ring"
  7225. orb.Material = "Neon"
  7226. orb.Size = Vector3.new(1, 1, 1)
  7227. orb.Transparency = 0
  7228. orb.TopSurface = 0
  7229. orb.BottomSurface = 0
  7230. local orbm = Instance.new("SpecialMesh", orb)
  7231. orbm.MeshType = "Sphere"
  7232. orbm.Name = "SizeMesh"
  7233. orbm.Scale = vt(0,0,0)
  7234. local scaled = 0.1
  7235. local posid = 0
  7236. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7237. for i = 0, 5, 0.1 do
  7238. swait()
  7239. scaled = scaled - 0.001
  7240. posid = posid - scaled
  7241. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7242. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7243. 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)
  7244. 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)
  7245. 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)
  7246. 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)
  7247. 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)
  7248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7250. 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)
  7251. end
  7252. for i = 0, 2, 0.1 do
  7253. swait()
  7254. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7255. 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)
  7256. 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)
  7257. 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)
  7258. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7259. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7260. 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)
  7261. end
  7262. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7263. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7264. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7265. coroutine.resume(coroutine.create(function()
  7266. orb.Anchored = false
  7267. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7268. local a = Instance.new("Part",workspace)
  7269. a.Name = "Direction"
  7270. a.Anchored = true
  7271. a.BrickColor = bc("Bright red")
  7272. a.Material = "Neon"
  7273. a.Transparency = 1
  7274. a.CanCollide = false
  7275. local ray = Ray.new(
  7276. orb.CFrame.p, -- origin
  7277. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7278. )
  7279. local ignore = orb
  7280. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7281. a.BottomSurface = 10
  7282. a.TopSurface = 10
  7283. local distance = (orb.CFrame.p - position).magnitude
  7284. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7285. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7286. orb.CFrame = a.CFrame
  7287. a:Destroy()
  7288. local bv = Instance.new("BodyVelocity")
  7289. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7290. bv.velocity = orb.CFrame.lookVector*125
  7291. bv.Parent = orb
  7292. local hitted = false
  7293. game:GetService("Debris"):AddItem(orb, 15)
  7294. wait()
  7295. local hit =orb.Touched:connect(function(hit)
  7296. if hitted == false then
  7297. hitted = true
  7298. CameraEnshaking(10,2.5)
  7299. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7300. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7301. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7302. for i = 0, 49 do
  7303. 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)
  7304. end
  7305. local eff = Instance.new("ParticleEmitter",orb)
  7306. eff.Texture = "rbxassetid://2273224484"
  7307. eff.LightEmission = 1
  7308. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7309. eff.Rate = 500000
  7310. eff.Lifetime = NumberRange.new(0.5,2)
  7311. 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)})
  7312. 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)})
  7313. eff.Speed = NumberRange.new(20,250)
  7314. eff.Drag = 5
  7315. eff.Rotation = NumberRange.new(-500,500)
  7316. eff.VelocitySpread = 9000
  7317. eff.RotSpeed = NumberRange.new(-50,50)
  7318. coroutine.resume(coroutine.create(function()
  7319. wait(0.25)
  7320. eff.Enabled = false
  7321. end))
  7322. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7323. for i = 0, 9 do
  7324. 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)
  7325. 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)
  7326. end
  7327. orb.Anchored = true
  7328. orb.Transparency = 1
  7329. local eff = Instance.new("ParticleEmitter",orb)
  7330. eff.Texture = "rbxassetid://2273224484"
  7331. eff.LightEmission = 1
  7332. eff.Color = ColorSequence.new(Color3.new(M))
  7333. eff.Rate = 500000
  7334. eff.Lifetime = NumberRange.new(0.5,2)
  7335. 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)})
  7336. 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)})
  7337. eff.Speed = NumberRange.new(20,250)
  7338. eff.Drag = 5
  7339. eff.Rotation = NumberRange.new(-500,500)
  7340. eff.VelocitySpread = 9000
  7341. eff.RotSpeed = NumberRange.new(-50,50)
  7342. coroutine.resume(coroutine.create(function()
  7343. wait(1)
  7344. eff.Enabled = false
  7345. end))
  7346. wait(8)
  7347. orb:Destroy()
  7348. end
  7349. end)
  7350. end))
  7351. for i = 0, 1, 0.1 do
  7352. swait()
  7353. 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)
  7354. 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)
  7355. 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)
  7356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7358. 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)
  7359. end
  7360. attack = false
  7361. end
  7362.  
  7363.  
  7364. function BeamOfDeath()
  7365. coroutine.resume(coroutine.create(function()
  7366. attack = true
  7367. hum.WalkSpeed = 0
  7368. for i = 0, 11, 0.1 do
  7369. swait()
  7370. 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)
  7371. 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)
  7372. 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)
  7373. 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)
  7374. 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)
  7375. 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)
  7376. end
  7377. for i = 0, 1, 0.1 do
  7378. swait()
  7379. 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)
  7380. 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)
  7381. 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)
  7382. 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)
  7383. 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)
  7384. 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)
  7385. end
  7386. hum.WalkSpeed = storehumanoidWS
  7387. attack = false
  7388. end))
  7389. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7390. local radm = math.random(1,3)
  7391. if radm == 1 then
  7392. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7393. elseif radm == 2 then
  7394. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7395. elseif radm == 3 then
  7396. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7397. end
  7398. local keptcolor = MAINRUINCOLOR
  7399. local orb = Instance.new("Part", char)
  7400. orb.BrickColor = keptcolor
  7401. orb.CanCollide = false
  7402. orb.FormFactor = 3
  7403. orb.Name = "Ring"
  7404. orb.Material = "Neon"
  7405. orb.Size = Vector3.new(1, 1, 1)
  7406. orb.Transparency = 1
  7407. orb.TopSurface = 0
  7408. orb.BottomSurface = 0
  7409. local orbm = Instance.new("SpecialMesh", orb)
  7410. orbm.MeshType = "Sphere"
  7411. orbm.Name = "SizeMesh"
  7412. orbm.Scale = vt(22.5,10000,22.5)
  7413. orb.CFrame = mouse.Hit
  7414. orb.Anchored = true
  7415. orb.Orientation = vt(0,0,0)
  7416. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7417. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7418. coroutine.resume(coroutine.create(function()
  7419. coroutine.resume(coroutine.create(function()
  7420. for i = 0, 175 do
  7421. swait()
  7422. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7423. orb.Transparency = orb.Transparency - 0.005
  7424. end
  7425. end))
  7426. wait(2)
  7427. coroutine.resume(coroutine.create(function()
  7428. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7429. if hfr ~= nil then
  7430. for i = 0, 24.5 do
  7431. local deb = Instance.new("Part", char)
  7432. deb.Anchored = true
  7433. deb.CanCollide = false
  7434. deb.FormFactor = 3
  7435. deb.Name = "Ring"
  7436. deb.Material = hitfloor.Material
  7437. deb.Color = hitfloor.Color
  7438. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7439. deb.Transparency = 0
  7440. deb.TopSurface = 0
  7441. deb.BottomSurface = 0
  7442. 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)))
  7443. local deb2 = Instance.new("Part", char)
  7444. deb2.CanCollide = false
  7445. deb2.FormFactor = 3
  7446. deb2.Name = "Ring"
  7447. deb2.Material = hitfloor.Material
  7448. deb2.Color = hitfloor.Color
  7449. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7450. deb2.Transparency = 0
  7451. deb2.TopSurface = 0
  7452. deb2.BottomSurface = 0
  7453. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7454. 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)))
  7455. local eff = Instance.new("ParticleEmitter",deb)
  7456. eff.Texture = "rbxassetid://363275192"
  7457. eff.LightEmission = 0.95
  7458. eff.Color = ColorSequence.new(keptcolor.Color)
  7459. eff.Rate = 100
  7460. eff.Lifetime = NumberRange.new(1)
  7461. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7462. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7463. eff.Speed = NumberRange.new(0,5)
  7464. eff.Rotation = NumberRange.new(-500,500)
  7465. eff.VelocitySpread = 9000
  7466. eff.RotSpeed = NumberRange.new(-10,10)
  7467. local at1 = Instance.new('Attachment',deb2)
  7468. at1.Position = vt(0,15,0)
  7469. local at2 = Instance.new('Attachment',deb2)
  7470. at2.Position = vt(0,-15,0)
  7471. local tl = Instance.new('Trail',deb2)
  7472. tl.Attachment0 = at1
  7473. tl.Attachment1 = at2
  7474. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7475. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7476. tl.Lifetime = 1
  7477. game:GetService("Debris"):AddItem(deb,30)
  7478. game:GetService("Debris"):AddItem(deb2,30)
  7479. coroutine.resume(coroutine.create(function()
  7480. wait(15)
  7481. eff.Enabled = false
  7482. for i = 0, 49 do
  7483. swait()
  7484. deb.Transparency = deb.Transparency + 0.02
  7485. end
  7486. wait(1)
  7487. deb:Destroy()
  7488. end))
  7489. end
  7490. end
  7491. end))
  7492. for i = 0, 199 do
  7493. swait(1.5)
  7494. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7495. if v:FindFirstChild('Head') then
  7496. dmg(v)
  7497. end
  7498. end
  7499. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7500. 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)
  7501. 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)
  7502. 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)
  7503. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7504. end
  7505. orb:Destroy()
  7506. end))
  7507. end
  7508.  
  7509. function Beams()
  7510. attack = true
  7511. hum.WalkSpeed = 0
  7512. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7513. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7514. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7515. local keptcolor = MAINRUINCOLOR
  7516. coroutine.resume(coroutine.create(function()
  7517. for i = 0, 96 do
  7518. swait(5)
  7519. local orb = Instance.new("Part", char)
  7520. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7521. orb.BrickColor = keptcolor
  7522. orb.CanCollide = false
  7523. orb.FormFactor = 3
  7524. orb.Name = "Ring"
  7525. orb.Material = "Neon"
  7526. orb.Size = Vector3.new(1, 1, 1)
  7527. orb.Transparency = 0
  7528. orb.TopSurface = 0
  7529. orb.BottomSurface = 0
  7530. orb.Anchored = true
  7531. local orbm = Instance.new("SpecialMesh", orb)
  7532. orbm.MeshType = "Sphere"
  7533. orbm.Name = "SizeMesh"
  7534. orbm.Scale = vt(1.25,1.25,1.25)
  7535. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7536. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7537. coroutine.resume(coroutine.create(function()
  7538. wait(0.5)
  7539. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7540. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7541. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7542. orb.Transparency = 1
  7543. local a = Instance.new("Part",char)
  7544. a.Name = "Direction"
  7545. a.Anchored = true
  7546. a.BrickColor = keptcolor
  7547. a.Material = "Neon"
  7548. a.Transparency = 0.25
  7549. a.Shape = "Cylinder"
  7550. local ht = Instance.new("Part",char)
  7551. ht.Name = "DirectionHit"
  7552. ht.Anchored = true
  7553. ht.BrickColor = keptcolor
  7554. ht.CanCollide = false
  7555. ht.Transparency = 1
  7556. ht.Size = vt(0.1,0.1,0.1)
  7557. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7558. a.CanCollide = false
  7559. local ray = Ray.new(
  7560. orb.CFrame.p, -- origin
  7561. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7562. )
  7563. local ignore = char
  7564. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7565. a.BottomSurface = 10
  7566. a.TopSurface = 10
  7567. local distance = (orb.CFrame.p - position).magnitude
  7568. a.Size = Vector3.new(distance,1,1)
  7569. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7570. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7571. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7572. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7573. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7574. coroutine.resume(coroutine.create(function()
  7575. local eff = Instance.new("ParticleEmitter",ht)
  7576. eff.Texture = "rbxassetid://284205403"
  7577. eff.LightEmission = 0.95
  7578. eff.Color = ColorSequence.new(keptcolor.Color)
  7579. eff.Rate = 500
  7580. eff.Lifetime = NumberRange.new(0.5)
  7581. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7582. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7583. eff.Speed = NumberRange.new(10,50)
  7584. eff.Drag = 5
  7585. eff.Rotation = NumberRange.new(-500,500)
  7586. eff.VelocitySpread = 9000
  7587. eff.RotSpeed = NumberRange.new(-500,500)
  7588. wait(0.25)
  7589. eff.Enabled = false
  7590. end))
  7591. for i = 0, 4 do
  7592. 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)
  7593. 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)
  7594. local rsiz = math.random(10,30)
  7595. 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)
  7596. end
  7597. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7598. local msh = Instance.new("SpecialMesh",a)
  7599. msh.MeshType = "Cylinder"
  7600. msh.Scale = vt(1,1,1)
  7601. for i = 0, 49 do
  7602. swait()
  7603. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7604. a.Transparency = a.Transparency + 0.02
  7605. end
  7606. orb:Destroy()
  7607. a:Destroy()
  7608. ht:Destroy()
  7609. end))
  7610. game:GetService("Debris"):AddItem(orb, 10)
  7611. end
  7612. end))
  7613. for i = 0,6,0.1 do
  7614. swait()
  7615. 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)
  7616. 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)
  7617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7620. 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)
  7621. 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)
  7622. end
  7623. hum.WalkSpeed = storehumanoidWS
  7624. attack = false
  7625. end
  7626.  
  7627. function CalamityTrans()
  7628. attack = true
  7629. rainbowmode = false
  7630. chaosmode = false
  7631. ModeOfGlitch = 8889
  7632. hum.WalkSpeed = 0
  7633. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7634. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7635. elocacenter.Anchored = true
  7636. elocacenter.CFrame = root.CFrame
  7637. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7638. eloca1.Anchored = true
  7639. eloca1.CFrame = elocacenter.CFrame
  7640. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7641. eloca2.Anchored = true
  7642. eloca2.CFrame = elocacenter.CFrame
  7643. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7644. eloca3.Anchored = true
  7645. eloca3.CFrame = elocacenter.CFrame
  7646. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7647. eloca4.Anchored = true
  7648. eloca4.CFrame = elocacenter.CFrame
  7649. local lookavec = 0
  7650. local speeds = 0
  7651. CameraEnshaking(3,2.5)
  7652. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7653. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7654. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7655. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7656. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7657. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7658. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7659. for i = 0, 5, 0.1 do
  7660. swait()
  7661. ---
  7662. lookavec = lookavec + 1
  7663. speeds = speeds + 10
  7664. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7665. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7666. 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)
  7667. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7668. 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)
  7669. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7670. 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)
  7671. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7672. 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)
  7673. ---
  7674. 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)
  7675. 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)
  7676. 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)
  7677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7678. 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)
  7679. 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)
  7680. end
  7681. for i = 0, 5, 0.1 do
  7682. swait()
  7683. ---
  7684. speeds = speeds + 10
  7685. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7686. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7687. 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)
  7688. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7689. 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)
  7690. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7691. 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)
  7692. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7693. 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)
  7694. ---
  7695. 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)
  7696. 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)
  7697. 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)
  7698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7699. 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)
  7700. 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)
  7701. end
  7702. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7703. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7704. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7705. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7706. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7707. CameraEnshaking(1,3)
  7708. for i = 0, 24 do
  7709. 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)
  7710. 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)
  7711. 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)
  7712. 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)
  7713. end
  7714. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7715. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7716. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7717. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7718. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7719. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7720. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7721. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7722. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7723. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7724. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7725. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7726. for i = 0, 5, 0.1 do
  7727. swait()
  7728. ---
  7729. lookavec = lookavec - 1
  7730. speeds = speeds + 10
  7731. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7732. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7733. 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)
  7734. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7735. 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)
  7736. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7737. 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)
  7738. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7739. 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)
  7740. ---
  7741. 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)
  7742. 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)
  7743. 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)
  7744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7745. 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)
  7746. 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)
  7747. end
  7748. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7749. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7750. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7751. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7752. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7753. for i = 0, 49 do
  7754. 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)
  7755. 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)
  7756. end
  7757. CameraEnshaking(5,6)
  7758. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7759. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7760. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7761. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7762. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7763. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7764. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7765. storehumanoidWS = 100
  7766. hum.WalkSpeed = 100
  7767. rainbowmode = false
  7768. chaosmode = false
  7769. tl1.Enabled = true
  7770. tl2.Enabled = true
  7771. tl3.Enabled = true
  7772. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7773. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7774. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7775. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7776. for i, v in pairs(mw2:GetChildren()) do
  7777. if v:IsA("Part") then
  7778. v.BrickColor = MAINRUINCOLOR
  7779. v.Material = "Neon"
  7780. end
  7781. end
  7782. for i, v in pairs(mw1:GetChildren()) do
  7783. if v:IsA("Part") then
  7784. v.Transparency = 0
  7785. v.BrickColor = MAINRUINCOLOR
  7786. v.Material = "Neon"
  7787. end
  7788. end
  7789. for i, v in pairs(m:GetChildren()) do
  7790. if v:IsA("Part") then
  7791. v.Color = Color3.new(0.5,0,1)
  7792. v.Material = "Neon"
  7793. end
  7794. end
  7795. for i, v in pairs(m2:GetChildren()) do
  7796. if v:IsA("Part") then
  7797. v.Color = Color3.new(0.25,0,1)
  7798. v.Material = "Neon"
  7799. end
  7800. end
  7801. for i, v in pairs(m3:GetChildren()) do
  7802. if v:IsA("Part") then
  7803. v.Color = Color3.new(0.45,0,1)
  7804. v.Material = "Neon"
  7805. end
  7806. end
  7807. for i, v in pairs(extrawingmod1:GetChildren()) do
  7808. if v:IsA("Part") then
  7809. v.Transparency = 0.75
  7810. v.Color = Color3.new(0.25,0,1)
  7811. v.Material = "Neon"
  7812. end
  7813. end
  7814. for i, v in pairs(extrawingmod2:GetChildren()) do
  7815. if v:IsA("Part") then
  7816. v.Transparency = 0.75
  7817. v.Color = Color3.new(0.5,0,1)
  7818. v.Material = "Neon"
  7819. end
  7820. end
  7821. attack = false
  7822. end
  7823.  
  7824. function GleamingBeam()
  7825. attack = true
  7826. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7827. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7828. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7829. local rsiz = math.random(1,15)
  7830. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7831. hb.Anchored = true
  7832. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7833. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7834. for i = 0, 16, 0.1 do
  7835. swait()
  7836. rsiz = math.random(5,15)
  7837. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7838. 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)
  7839. 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)
  7840. 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)
  7841. 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)
  7842. 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)
  7843. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7844. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7845. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7846. end
  7847. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7848. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7849. for i = 0, 2 do
  7850. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7851. end
  7852. 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)
  7853. 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)
  7854. 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)
  7855. for i = 0, 49 do
  7856. local rsiza = math.random(1,15)
  7857. 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)
  7858. end
  7859. local a = Instance.new("Part",Character)
  7860. a.Name = "Direction"
  7861. a.Anchored = true
  7862. a.BrickColor = MAINRUINCOLOR
  7863. a.Material = "Neon"
  7864. a.Transparency = 0
  7865. a.Shape = "Cylinder"
  7866. a.CanCollide = false
  7867. local ba = Instance.new("Part",Character)
  7868. ba.Name = "HitDirect"
  7869. ba.Anchored = true
  7870. ba.BrickColor = bc("Cool yellow")
  7871. ba.Material = "Neon"
  7872. ba.Transparency = 1
  7873. ba.CanCollide = false
  7874. local ray = Ray.new(
  7875. hb.CFrame.p, -- origin
  7876. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7877. )
  7878. local ignore = Character
  7879. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7880. a.BottomSurface = 10
  7881. a.TopSurface = 10
  7882. local distance = (hb.CFrame.p - position).magnitude
  7883. a.Size = Vector3.new(distance, 1, 1)
  7884. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7885. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7886. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7887. local msh = Instance.new("SpecialMesh",a)
  7888. msh.MeshType = "Cylinder"
  7889. msh.Scale = vt(1,4,4)
  7890. game:GetService("Debris"):AddItem(a, 30)
  7891. game:GetService("Debris"):AddItem(ba, 30)
  7892. for i = 0, 25, 0.1 do
  7893. swait()
  7894. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7895. ray = Ray.new(
  7896. hb.CFrame.p, -- origin
  7897. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7898. )
  7899. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7900. distance = (hb.CFrame.p - position).magnitude
  7901. a.Size = Vector3.new(distance, 1, 1)
  7902. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7903. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7904. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7905. rsiz = math.random(5,25)
  7906. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7907. 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)
  7908. for c = 0, 2 do
  7909. 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)
  7910. end
  7911. 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)
  7912. 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)
  7913. 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)
  7914. 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)
  7915. 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)
  7916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7917. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7918. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7919. end
  7920. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7921. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7922. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7923. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7924. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7925. 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)
  7926. 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)
  7927. 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)
  7928. 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)
  7929. 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)
  7930. 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)
  7931. for i = 0, 49 do
  7932. local rsiza = math.random(1,15)
  7933. 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)
  7934. end
  7935. for i = 0, 49 do
  7936. rsiz = math.random(1,8)
  7937. 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)
  7938. end
  7939. coroutine.resume(coroutine.create(function()
  7940. for i = 0, 99 do
  7941. swait()
  7942. a.Transparency = a.Transparency + 0.01
  7943. end
  7944. a:Destroy()
  7945. ba:Destroy()
  7946. end))
  7947. hb:Destroy()
  7948. attack = false
  7949. end
  7950.  
  7951. function DualGleamingBeam()
  7952. attack = true
  7953. hum.WalkSpeed = 0
  7954. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7955. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7956. local radm = math.random(1,3)
  7957. if radm == 1 then
  7958. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7959. elseif radm == 2 then
  7960. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7961. elseif radm == 3 then
  7962. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7963. end
  7964. local rsiz = math.random(1,15)
  7965. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7966. hb.Anchored = true
  7967. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7968. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7969. hb2.Anchored = true
  7970. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7971. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7972. for i = 0, 14, 0.1 do
  7973. swait()
  7974. rsiz = math.random(5,15)
  7975. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7976. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7977. 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)
  7978. 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)
  7979. 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)
  7980. 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"))
  7981. 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)
  7982. 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)
  7983. 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)
  7984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7987. end
  7988. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7989. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7990. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7991. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7992. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7993. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7994. 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)
  7995. 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)
  7996. 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)
  7997. 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"))
  7998. 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"))
  7999. 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"))
  8000. for i = 0, 49 do
  8001. local rsiza = math.random(1,15)
  8002. 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)
  8003. 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)
  8004. end
  8005. local a = Instance.new("Part",Character)
  8006. a.Name = "Direction"
  8007. a.Anchored = true
  8008. a.BrickColor = MAINRUINCOLOR
  8009. a.Material = "Neon"
  8010. a.Transparency = 0
  8011. a.Shape = "Cylinder"
  8012. a.CanCollide = false
  8013. local a2 = Instance.new("Part",Character)
  8014. a2.Name = "Direction"
  8015. a2.Anchored = true
  8016. a2.BrickColor = MAINRUINCOLOR
  8017. a2.Material = "Neon"
  8018. a2.Transparency = 0
  8019. a2.Shape = "Cylinder"
  8020. a2.CanCollide = false
  8021. local ba = Instance.new("Part",Character)
  8022. ba.Name = "HitDirect"
  8023. ba.Anchored = true
  8024. ba.BrickColor = MAINRUINCOLOR
  8025. ba.Material = "Neon"
  8026. ba.Transparency = 1
  8027. ba.CanCollide = false
  8028. local ba2 = Instance.new("Part",Character)
  8029. ba2.Name = "HitDirect"
  8030. ba2.Anchored = true
  8031. ba2.BrickColor = MAINRUINCOLOR
  8032. ba2.Material = "Neon"
  8033. ba2.Transparency = 1
  8034. ba2.CanCollide = false
  8035. local ray = Ray.new(
  8036. hb.CFrame.p, -- origin
  8037. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8038. )
  8039. local ignore = Character
  8040. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8041. local ray2 = Ray.new(
  8042. hb2.CFrame.p, -- origin
  8043. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8044. )
  8045. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8046. local distance2 = (hb2.CFrame.p - position).magnitude
  8047.  
  8048. a.BottomSurface = 10
  8049. a.TopSurface = 10
  8050. local distance = (hb.CFrame.p - position).magnitude
  8051. a.Size = Vector3.new(distance, 1, 1)
  8052. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8053. a2.BottomSurface = 10
  8054. a2.TopSurface = 10
  8055. a2.Size = Vector3.new(distance2, 1, 1)
  8056. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8057. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8058. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8059. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8060. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8061. local msh = Instance.new("SpecialMesh",a)
  8062. msh.MeshType = "Cylinder"
  8063. msh.Scale = vt(1,4,4)
  8064. local msh2 = Instance.new("SpecialMesh",a2)
  8065. msh2.MeshType = "Cylinder"
  8066. msh2.Scale = vt(1,4,4)
  8067. game:GetService("Debris"):AddItem(a, 30)
  8068. game:GetService("Debris"):AddItem(a2, 30)
  8069. game:GetService("Debris"):AddItem(ba, 30)
  8070. game:GetService("Debris"):AddItem(ba2, 30)
  8071. for i = 0, 20, 0.1 do
  8072. swait()
  8073. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8074. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8075. ray = Ray.new(
  8076. hb.CFrame.p, -- origin
  8077. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8078. )
  8079. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8080. distance = (hb.CFrame.p - position).magnitude
  8081. ray2 = Ray.new(
  8082. hb2.CFrame.p, -- origin
  8083. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8084. )
  8085. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8086. distance2 = (hb2.CFrame.p - position).magnitude
  8087. a.Size = Vector3.new(distance, 1, 1)
  8088. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8089. a2.Size = Vector3.new(distance2, 1, 1)
  8090. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8091. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8092. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8093. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8094. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8095. rsiz = math.random(5,25)
  8096. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8097. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8098. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8099. if v:FindFirstChild('Head') then
  8100. dmg(v)
  8101. end
  8102. end
  8103. coroutine.resume(coroutine.create(function()
  8104. local bx = Instance.new("Part",Character)
  8105. bx.Name = "Location"
  8106. bx.Anchored = true
  8107. bx.BrickColor = MAINRUINCOLOR
  8108. bx.Material = "Neon"
  8109. bx.Transparency = 1
  8110. bx.CanCollide = false
  8111. bx.Position = ba.Position
  8112. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8113. wait(math.random(1,2))
  8114. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8115. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8116. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8117. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8118. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8119. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8120. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8121. if v:FindFirstChild('Head') then
  8122. dmg(v)
  8123. end
  8124. end
  8125. wait(5)
  8126. bx:Destroy()
  8127. end))
  8128. 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)
  8129. 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)
  8130. for c = 0, 2 do
  8131. 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)
  8132. end
  8133. 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)
  8134. 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)
  8135. 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)
  8136. 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)
  8137. 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)
  8138. 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)
  8139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8140. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8141. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8142. end
  8143. for i = 0, 1 do
  8144. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8145. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8146. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8147. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8148. end
  8149. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8150. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8151. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8152. if v:FindFirstChild('Head') then
  8153. dmg(v)
  8154. end
  8155. end
  8156. 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)
  8157. 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)
  8158. 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)
  8159. 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)
  8160. 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)
  8161. 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)
  8162. 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"))
  8163. 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"))
  8164. 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"))
  8165. for i = 0, 49 do
  8166. local rsiza = math.random(1,15)
  8167. 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)
  8168. 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)
  8169. end
  8170. for i = 0, 49 do
  8171. rsiz = math.random(1,8)
  8172. 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)
  8173. end
  8174. coroutine.resume(coroutine.create(function()
  8175. for i = 0, 99 do
  8176. swait()
  8177. a.Transparency = a.Transparency + 0.01
  8178. a2.Transparency = a2.Transparency + 0.01
  8179. end
  8180. a:Destroy()
  8181. ba:Destroy()
  8182. a2:Destroy()
  8183. ba2:Destroy()
  8184. end))
  8185. hum.WalkSpeed = storehumanoidWS
  8186. hb:Destroy()
  8187. hb2:Destroy()
  8188. attack = false
  8189. end
  8190.  
  8191. function dragin()
  8192. local targetted = nil
  8193. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8194. targetted = mouse.Target.Parent
  8195. end
  8196. if targetted ~= nil then
  8197. RootPart.CFrame = FaceMouse()[1]
  8198. attack = true
  8199. hum.WalkSpeed = 0
  8200. for x = 0, 1 do
  8201. for i = 0,1,0.5 do
  8202. swait()
  8203. 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)
  8204. 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)
  8205. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8207. 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)
  8208. 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)
  8209. end
  8210. for i = 0,1,0.5 do
  8211. swait()
  8212. 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)
  8213. 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)
  8214. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8215. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8216. 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)
  8217. 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)
  8218. end
  8219. for i = 0,1,0.5 do
  8220. swait()
  8221. 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)
  8222. 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)
  8223. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8225. 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)
  8226. 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)
  8227. end
  8228. for i = 0,1,0.5 do
  8229. swait()
  8230. 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)
  8231. 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)
  8232. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8233. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8234. 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)
  8235. 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)
  8236. end
  8237. end
  8238. coroutine.resume(coroutine.create(function()
  8239. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8240. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8241. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8242. end))
  8243. local A1 = Instance.new("Attachment",targetted.Head)
  8244. local A2 = Instance.new("Attachment",sorb)
  8245. local Beem = Instance.new("Beam",tors)
  8246. Beem.Attachment0 = A1
  8247. Beem.Attachment1 = A2
  8248. Beem.Texture = "rbxassetid://897585362"
  8249. Beem.LightEmission = 0.75
  8250. Beem.FaceCamera = true
  8251. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8252. Beem.Width0 = 1
  8253. Beem.Width1 = 1
  8254. Beem.TextureMode = "Wrap"
  8255. Beem.TextureLength = 1
  8256. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8257. 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)
  8258. 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)
  8259. for x = 0, 24 do
  8260. local rsiz = math.random(5,15)
  8261. 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)
  8262. end
  8263.  
  8264. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8265. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8266. local radm = math.random(1,2)
  8267. if radm == 1 then
  8268. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8269. elseif radm == 2 then
  8270. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8271. end
  8272. for i = 0,3,0.1 do
  8273. swait()
  8274. coroutine.resume(coroutine.create(function()
  8275. local rsiz = math.random(5,15)
  8276. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8277. 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)
  8278. end))
  8279. 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)
  8280. 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)
  8281. 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)
  8282. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8283. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8284. 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)
  8285. 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)
  8286. end
  8287. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8288. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8289. local vel = Instance.new("BodyPosition", targetted.Head)
  8290. vel.P = 12500
  8291. vel.D = 1000
  8292. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8293. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8294. for i = 0,4,0.1 do
  8295. swait()
  8296. coroutine.resume(coroutine.create(function()
  8297. local rsiz = math.random(5,15)
  8298. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8299. sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  8300. end))
  8301. sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR)
  8302. RH.C0=clerp(RH.C0,cf(1,-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)
  8303. 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)
  8304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8306. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  8307. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  8308. end
  8309. local visibility = 0
  8310. coroutine.resume(coroutine.create(function()
  8311. for i = 0, 49 do
  8312. swait()
  8313. visibility = visibility + 0.02
  8314. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8315. end
  8316. Beem:Destroy()
  8317. A1:Destroy()
  8318. A2:Destroy()
  8319. end))
  8320. game:GetService("Debris"):AddItem(vel,0.75)
  8321. attack = false
  8322. hum.WalkSpeed = storehumanoidWS
  8323.  
  8324. end
  8325. end
  8326.  
  8327. function hugg()
  8328. attack = true
  8329. hum.WalkSpeed = 5
  8330. local rsiz = math.random(5,15)
  8331. for i = 0, 2, 0.1 do
  8332. swait()
  8333. 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)
  8334. 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)
  8335. 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)
  8336. 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)
  8337. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8338. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8339. end
  8340. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8341. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8342. hb.Anchored = true
  8343. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8344. local huggedperson = nil
  8345. local act = false
  8346. local alreadydid = false
  8347. for i = 0, 3, 0.1 do
  8348. swait()
  8349. if act == false then
  8350. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8351. if v:FindFirstChild('Head') then
  8352. if alreadydid == false then
  8353. huggedperson = v
  8354. hum.WalkSpeed = 0
  8355. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8356. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8357. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8358. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8359. local radm = math.random(1,3)
  8360. if radm == 1 then
  8361. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8362. elseif radm == 2 then
  8363. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8364. elseif radm == 3 then
  8365. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8366. end
  8367. root.Anchored = true
  8368. coroutine.resume(coroutine.create(function()
  8369. huggedperson.Humanoid.WalkSpeed = 0
  8370. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8371. end))
  8372. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8373. alreadydid = true
  8374. act = true
  8375. print(huggedperson.Name)
  8376. end
  8377. end
  8378. end
  8379. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8380. 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)
  8381. elseif act == true then
  8382. coroutine.resume(coroutine.create(function()
  8383. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8384. end))
  8385. rsiz = math.random(5,15)
  8386. 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)
  8387. 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)
  8388. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8389. end
  8390. 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)
  8391. 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)
  8392. 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)
  8393. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8394. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8395. end
  8396. hb:Destroy()
  8397. if act == true then
  8398. for x = 0, 2 do
  8399. for i = 0, 2, 0.1 do
  8400. swait()
  8401. coroutine.resume(coroutine.create(function()
  8402. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8403. end))
  8404. rsiz = math.random(5,15)
  8405. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  8406. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  8407. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8408. 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)
  8409. 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)
  8410. 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)
  8411. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8412. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8413. end
  8414. for i = 0, 2, 0.1 do
  8415. swait()
  8416. coroutine.resume(coroutine.create(function()
  8417. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8418. end))
  8419. rsiz = math.random(5,15)
  8420. 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)
  8421. 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)
  8422. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8423. 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)
  8424. 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)
  8425. 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)
  8426. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8427. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8428. end
  8429. end
  8430. end
  8431. hum.WalkSpeed = storehumanoidWS
  8432. root.Anchored = false
  8433. if act == true then
  8434. coroutine.resume(coroutine.create(function()
  8435. huggedperson.Humanoid.WalkSpeed = 16
  8436. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8437. end))
  8438. end
  8439. hum.WalkSpeed = storehumanoidWS
  8440. attack = false
  8441. end
  8442.  
  8443. function Counter()
  8444. hum.WalkSpeed = 0
  8445. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8446. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8447. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8448. attack = true
  8449. for i = 0,1,0.1 do
  8450. swait()
  8451. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8452. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8453. 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)
  8454. 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)
  8455. 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)
  8456. 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)
  8457. end
  8458. CameraEnshaking(3,4)
  8459. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8460. 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)
  8461. 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)
  8462. 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)
  8463. coroutine.resume(coroutine.create(function()
  8464. local eff = Instance.new("ParticleEmitter",root)
  8465. eff.Texture = "rbxassetid://363275192"
  8466. eff.LightEmission = 0.95
  8467. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8468. eff.Rate = 10000
  8469. eff.Lifetime = NumberRange.new(1)
  8470. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8471. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8472. eff.Speed = NumberRange.new(10,125)
  8473. eff.Drag = 5
  8474. eff.Rotation = NumberRange.new(-500,500)
  8475. eff.VelocitySpread = 9000
  8476. eff.RotSpeed = NumberRange.new(-50,50)
  8477. local eff2 = eff:Clone()
  8478. eff2.Parent = root
  8479. eff2.Texture = "rbxassetid://284205403"
  8480. eff2.Rate = 10000
  8481. 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)})
  8482. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8483. eff2.Drag = 5
  8484. eff2.Speed = NumberRange.new(10,50)
  8485. eff2.Rotation = NumberRange.new(-500,500)
  8486. eff2.VelocitySpread = 9000
  8487. wait(0.25)
  8488. eff2.Enabled = false
  8489. eff.Enabled = false
  8490. wait(3)
  8491. eff2:Destroy()
  8492. eff:Destroy()
  8493. end))
  8494. for i = 0, 9 do
  8495. 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)
  8496. end
  8497. for i = 0, 24 do
  8498. local rsiz = math.random(5,20)
  8499. 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)
  8500. end
  8501. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8502. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8503. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8504. for i = 0,2,0.1 do
  8505. swait()
  8506. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8507. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8508. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8509. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8510. 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)
  8511. 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)
  8512. end
  8513. hum.WalkSpeed = storehumanoidWS
  8514. attack = false
  8515. end
  8516.  
  8517. function superjump()
  8518. attack = true
  8519. hum.WalkSpeed = 0
  8520. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8521. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8522. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8523. for i = 0, 2, 0.1 do
  8524. swait()
  8525. root.Velocity = vt(0,0,0)
  8526. 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"))
  8527. 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)
  8528. 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)
  8529. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8530. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8531. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8532. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8533. end
  8534. MagniDamage(root, 28, 25,50, 25, "Normal")
  8535. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8536. hum.Jump = true
  8537. swait()
  8538. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8539. 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)
  8540. 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)
  8541. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8542. for i = 0, 3, 0.1 do
  8543. swait()
  8544. 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)
  8545. 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)
  8546. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8547. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8548. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8549. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8550. end
  8551. attack = false
  8552. if equipped == false then
  8553. hum.WalkSpeed = 16
  8554. else
  8555. hum.WalkSpeed = 24
  8556. end
  8557. end
  8558.  
  8559.  
  8560. -------------------------------------
  8561.  
  8562.  
  8563.  
  8564. Humanoid.Animator.Parent = nil
  8565.  
  8566.  
  8567.  
  8568. -------------------------------------
  8569.  
  8570. local attacktype = 1
  8571. mouse.Button1Down:connect(function()
  8572. if attack == false and attacktype == 1 then
  8573. attacktype = 2
  8574. attackone()
  8575. elseif attack == false and attacktype == 2 then
  8576. attacktype = 3
  8577. attacktwo()
  8578. elseif attack == false and attacktype == 3 then
  8579. attacktype = 1
  8580. attackthree()
  8581. elseif attack == false and attacktype == 4 then
  8582. attacktype = 1
  8583. --attackfour()
  8584. end
  8585. end)
  8586. mouse.KeyDown:connect(function(k)
  8587. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8588. --normalmog()
  8589. ModeOfGlitch = 1
  8590. storehumanoidWS = 16
  8591. hum.WalkSpeed = 16
  8592. rainbowmode = false
  8593. chaosmode = false
  8594. newTheme("rbxassetid://1255569288",48.6,1,0.85)
  8595. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8596. MAINRUINCOLOR = BrickColor.new("Really red")
  8597. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8598. end
  8599. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8600. ModeOfGlitch = 2
  8601. storehumanoidWS = 16
  8602. hum.WalkSpeed = 16
  8603. rainbowmode = false
  8604. chaosmode = false
  8605. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8606. newTheme("rbxassetid://1539245059",0,1,0.85)
  8607. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8608. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8609. end
  8610. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8611. ModeOfGlitch = 3
  8612. storehumanoidWS = 14
  8613. hum.WalkSpeed = 14
  8614. rainbowmode = false
  8615. chaosmode = false
  8616. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8617. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8618. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8619. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8620. end
  8621. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8622. ModeOfGlitch = 4
  8623. storehumanoidWS = 14
  8624. hum.WalkSpeed = 14
  8625. rainbowmode = true
  8626. chaosmode = false
  8627. RecolorTextAndRename("God of THE UNIVERSE",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8628. newTheme("rbxassetid://1369263130",0,1.01,0.85)
  8629. MAINRUINCOLOR = BrickColor.new("Black")
  8630. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8631. end
  8632. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8633. ModeOfGlitch = 5
  8634. storehumanoidWS = 14
  8635. hum.WalkSpeed = 14
  8636. rainbowmode = false
  8637. chaosmode = false
  8638. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8639. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8640. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8641. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8642. end
  8643. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8644. ModeOfGlitch = 6
  8645. storehumanoidWS = 65
  8646. hum.WalkSpeed = 65
  8647. rainbowmode = false
  8648. chaosmode = false
  8649. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8650. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8651. MAINRUINCOLOR = BrickColor.new("White")
  8652. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8653. end
  8654. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8655. ModeOfGlitch = 8
  8656. storehumanoidWS = 100
  8657. hum.WalkSpeed = 100
  8658. rainbowmode = false
  8659. chaosmode = false
  8660. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8661. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8662. MAINRUINCOLOR = BrickColor.new("Alder")
  8663. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8664. end
  8665. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8666. ModeOfGlitch = 9
  8667. storehumanoidWS = 85
  8668. hum.WalkSpeed = 85
  8669. rainbowmode = false
  8670. chaosmode = false
  8671. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8672. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8673. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8674. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8675. end
  8676. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8677. ModeOfGlitch = 5555
  8678. storehumanoidWS = 30
  8679. hum.WalkSpeed = 30
  8680. rainbowmode = false
  8681. chaosmode = false
  8682. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8683. newTheme("rbxassetid://736003449",0,1,1.25)
  8684. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8685. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8686. end
  8687. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8688. CalamityTrans()
  8689. end
  8690. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8691. ModeOfGlitch = 55469696922
  8692. storehumanoidWS = 95
  8693. hum.WalkSpeed = 95
  8694. rainbowmode = false
  8695. chaosmode = false
  8696. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8697. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8698. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8699. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8700. end
  8701. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8702. ModeOfGlitch = 4367677813
  8703. storehumanoidWS = 75
  8704. hum.WalkSpeed = 75
  8705. rainbowmode = false
  8706. chaosmode = false
  8707. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8708. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8709. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8710. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8711. end
  8712. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8713. ModeOfGlitch = 9999999921111
  8714. storehumanoidWS = 145
  8715. hum.WalkSpeed = 145
  8716. rainbowmode = false
  8717. chaosmode = false
  8718. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8719. newTheme("rbxassetid://643309199",0,1.01,1)
  8720. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8721. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8722. end
  8723. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8724. ModeOfGlitch = 999999999556
  8725. storehumanoidWS = 115
  8726. hum.WalkSpeed = 115
  8727. rainbowmode = false
  8728. chaosmode = false
  8729. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8730. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8731. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8732. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8733. end
  8734. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8735. ModeOfGlitch = 12
  8736. storehumanoidWS = 19
  8737. hum.WalkSpeed = 19
  8738. rainbowmode = false
  8739. chaosmode = false
  8740. print'Mode was meant for Vengeful Program or those other fans out there'
  8741. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8742. newTheme("rbxassetid://1873219898",0,1,1.7)
  8743. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8744. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8745. end
  8746.  
  8747. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8748. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8749. for i = 0, 49 do
  8750. 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)
  8751. end
  8752. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8753. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8754. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8755. hum.WalkSpeed = storehumanoidWS
  8756. attack = false
  8757. ModeOfGlitch = 50
  8758. storehumanoidWS = 18
  8759. hum.WalkSpeed = 18
  8760. rainbowmode = false
  8761. chaosmode = false
  8762. RecolorTextAndRename("God of the Gods!!!",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Arcade")
  8763. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8764. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8765. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8766. end
  8767.  
  8768. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8769. hum.WalkSpeed = 0
  8770. attack = true
  8771. for i = 0,1,0.1 do
  8772. swait()
  8773. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8774. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8775. 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)
  8776. 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)
  8777. 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)
  8778. 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)
  8779. end
  8780. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8781. for i = 0, 148 do
  8782. 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)
  8783. end
  8784. for i = 0,3,0.1 do
  8785. 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)
  8786. end
  8787. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8788. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8789. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8790. hum.WalkSpeed = storehumanoidWS
  8791. attack = false
  8792. ModeOfGlitch = 66
  8793. storehumanoidWS = 16
  8794. hum.WalkSpeed = 16
  8795. rainbowmode = false
  8796. chaosmode = false
  8797. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8798. MAINRUINCOLOR = BrickColor.new("Really black")
  8799. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8800. for i = 0,2,0.1 do
  8801. swait()
  8802. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8803. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8804. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8805. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8806. 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)
  8807. 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)
  8808. end
  8809. end
  8810.  
  8811. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8812. hum.WalkSpeed = 0
  8813. attack = true
  8814. for i = 0,1,0.1 do
  8815. swait()
  8816. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8817. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8818. 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)
  8819. 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)
  8820. 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)
  8821. 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)
  8822. end
  8823. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8824. for i = 0, 49 do
  8825. 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)
  8826. end
  8827. for i = 0,3,0.1 do
  8828. 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)
  8829. end
  8830. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8831. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8832. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8833. hum.WalkSpeed = storehumanoidWS
  8834. attack = false
  8835. ModeOfGlitch = 13
  8836. storehumanoidWS = 45
  8837. hum.WalkSpeed = 45
  8838. rainbowmode = false
  8839. chaosmode = false
  8840. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8841. newTheme("rbxassetid://190845741",0,1,1.35)
  8842. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8843. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8844. for i = 0,2,0.1 do
  8845. swait()
  8846. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8847. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8848. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8849. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8850. 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)
  8851. 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)
  8852. end
  8853. end
  8854. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8855. ModeOfGlitch = 1002
  8856. storehumanoidWS = 45
  8857. hum.WalkSpeed = 45
  8858. rainbowmode = false
  8859. chaosmode = false
  8860. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8861. newTheme("rbxassetid://2027652726",0,1,0.85)
  8862. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8863. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8864. end
  8865. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8866. ModeOfGlitch = 1003
  8867. storehumanoidWS = 90
  8868. hum.WalkSpeed = 90
  8869. rainbowmode = false
  8870. chaosmode = false
  8871. RecolorTextAndRename("ASCENDED",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8872. newTheme("rbxassetid://257453119",0,1,0.85)
  8873. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8874. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8875. end
  8876. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8877. ModeOfGlitch = 1264532489
  8878. storehumanoidWS = 175
  8879. hum.WalkSpeed = 175
  8880. rainbowmode = false
  8881. chaosmode = false
  8882. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8883. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8884. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8885. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8886. end
  8887. if k == "l" and mutedtog == false then
  8888. mutedtog = true
  8889. kan.Volume = 0.85
  8890. elseif k == "l" and mutedtog == true then
  8891. mutedtog = false
  8892. kan.Volume = 0.85
  8893. end
  8894. if k == "p" and toggleTag == false then
  8895. toggleTag = true
  8896. modet.TextTransparency = 0
  8897. modet.TextStrokeTransparency = 0
  8898. elseif k == "p" and toggleTag == true then
  8899. toggleTag = false
  8900. modet.TextTransparency = 1
  8901. modet.TextStrokeTransparency = 1
  8902. end
  8903. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8904. ExtinctiveHeartbreak()
  8905. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8906. HeavenlyDisk()
  8907. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8908. DualGleamingBeam()
  8909. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8910. BanishingOrb()
  8911. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8912. hugg()
  8913. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8914. cutesigh()
  8915. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8916. Counter()
  8917. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8918. superjump()
  8919. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8920. dragin()
  8921. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8922. UniversalCollapse()
  8923. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8924. PureBomb()
  8925. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8926. Beams()
  8927. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8928. BeamOfDeath()
  8929. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8930. THE_TRUE_POWER_OF_VIOLENCE()
  8931. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8932. GleamingBeam()
  8933. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8934. ViolentRing()
  8935. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8936. CorruptionEvent()
  8937. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8938. CorruptBlink()
  8939. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8940. scattercorrupt()
  8941. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8942. shytaunty()
  8943. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8944. RapidBurst()
  8945. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8946. ChaosEND()
  8947. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8948. CyberSlash()
  8949. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8950. smiter()
  8951. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8952. SpeedDrop()
  8953. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  8954. FuckMeSidewaysAndCallMeGay()
  8955. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8956. --DivineLights()
  8957. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8958. DivineBlast()
  8959. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8960. EquinoxOrbs()
  8961. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8962. yinyangi()
  8963. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8964. FallenOrbs()
  8965. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8966. StarfallEX()
  8967. end
  8968. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8969. FallenDEMISE()
  8970. end
  8971. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8972. EndGROUND()
  8973. end
  8974. end)
  8975.  
  8976. coroutine.resume(coroutine.create(function()
  8977. while true do
  8978. swait()
  8979. 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
  8980. 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)
  8981. end
  8982. if ModeOfGlitch == 5555 then
  8983. 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)
  8984. end
  8985. end
  8986. end))
  8987. --[[coroutine.resume(coroutine.create(function()
  8988. while true do
  8989. swait(2)
  8990. if chaosmode == true then
  8991. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8992. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8993. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8994. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8995. for i, v in pairs(mw1:GetChildren()) do
  8996. if v:IsA("Part") then
  8997. v.Transparency = 0.75
  8998. v.BrickColor = BrickColor.random()
  8999. v.Material = "Neon"
  9000. end
  9001. end
  9002. for i, v in pairs(m2:GetChildren()) do
  9003. if v:IsA("Part") then
  9004. v.BrickColor = BrickColor.random()
  9005. v.Material = "Neon"
  9006. end
  9007. end
  9008. end
  9009. end
  9010. end))]]
  9011.  
  9012.  
  9013.  
  9014. ff = Instance.new("ForceField",char)
  9015. ff.Visible = false
  9016. hum.Name = "Base"
  9017. hum.MaxHealth = 1.0E298
  9018. hum.Health = 1.0E298
  9019. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9020. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9021. hum.MaxHealth = 1.0E298
  9022. hum.Health = 1.0E298
  9023. end
  9024. end)
  9025.  
  9026. local Hair = Instance.new("Part", char)
  9027. Hair.Name = "Hair"
  9028. Hair.CanCollide = false
  9029. Hair.BrickColor = BrickColor.new("Institutional white")
  9030. Hair.Transparency = 0
  9031. Hair.Material = "Plastic"
  9032. Hair.Size = Vector3.new(1, 1, 2)
  9033. Hair.TopSurface = Enum.SurfaceType.Smooth
  9034. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9035.  
  9036.  
  9037. local bguis = Instance.new("BillboardGui",tors)
  9038. bguis.Size = UDim2.new(25, 0, 25, 0)
  9039. local imgca = Instance.new("ImageLabel",bguis)
  9040. imgca.BackgroundTransparency = 1
  9041. imgca.ImageTransparency = 1
  9042. imgca.Size = UDim2.new(1,0,1,0)
  9043. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9044. imgca.ImageColor3 = Color3.new(0,0,0)
  9045.  
  9046.  
  9047. local bguis2 = Instance.new("BillboardGui",tors)
  9048. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9049. local imgca2 = Instance.new("ImageLabel",bguis)
  9050. imgca2.BackgroundTransparency = 1
  9051. imgca2.ImageTransparency = 1
  9052. imgca2.Size = UDim2.new(1,0,1,0)
  9053. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9054. imgca2.ImageColor3 = Color3.new(0,0,0)
  9055.  
  9056.  
  9057.  
  9058. idleanim=.4
  9059. while true do
  9060. if mutedtog == false then
  9061. kan.Volume = currentVol
  9062. elseif mutedtog == true then
  9063. kan.Volume = 0
  9064. end
  9065. kan.PlaybackSpeed = currentPitch
  9066. kan.Pitch = currentPitch
  9067. kan.SoundId = currentThemePlaying
  9068. kan.Looped = true
  9069. kan.Parent = char
  9070. kan:Resume()
  9071. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9072. imgca.ImageTransparency = 1
  9073. imgca2.ImageTransparency = 1
  9074. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9075. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9076. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9077. elseif ModeOfGlitch == 13 then
  9078. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9079. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9080. end
  9081. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9082. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9083. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9084. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9085. coroutine.resume(coroutine.create(function()
  9086. if chaosmode == true then
  9087. for i, v in pairs(mw1:GetChildren()) do
  9088. if v:IsA("Part") then
  9089. v.Transparency = 0
  9090. v.BrickColor = BrickColor.random()
  9091. v.Material = "Neon"
  9092. end
  9093. end
  9094. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9095. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9096. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9097. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9098. end
  9099. end))
  9100. coroutine.resume(coroutine.create(function()
  9101. if ModeOfGlitch == 66 then
  9102. for i, v in pairs(m:GetChildren()) do
  9103. if v:IsA("Part") then
  9104. v.Transparency = 0
  9105. v.BrickColor = BrickColor.random()
  9106. v.Material = "Neon"
  9107. end
  9108. end
  9109. for i, v in pairs(m2:GetChildren()) do
  9110. if v:IsA("Part") then
  9111. v.Transparency = 0
  9112. v.BrickColor = BrickColor.random()
  9113. v.Material = "Neon"
  9114. end
  9115. end
  9116. for i, v in pairs(mw1:GetChildren()) do
  9117. if v:IsA("Part") then
  9118. v.Transparency = 0
  9119. v.BrickColor = BrickColor.random()
  9120. v.Material = "Neon"
  9121. end
  9122. end
  9123. for i, v in pairs(extrawingmod1:GetChildren()) do
  9124. if v:IsA("Part") then
  9125. v.Transparency = 0.5
  9126. v.BrickColor = BrickColor.random()
  9127. v.Material = "Neon"
  9128. end
  9129. end
  9130. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9131. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9132. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9133. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9134. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9135. end
  9136. end))
  9137.  
  9138. coroutine.resume(coroutine.create(function()
  9139. if ModeOfGlitch == 66 then
  9140. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9141. end
  9142. end))
  9143.  
  9144. if chaosmode == false then
  9145. modet.Position = UDim2.new(0,0,0,0)
  9146. modet.Rotation = -5 * math.cos(sine / 32)
  9147. techc.Rotation = techc.Rotation + 1
  9148. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9149. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9150. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9151. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9152. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9153. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9154. else
  9155. techc.Rotation = techc.Rotation + 1
  9156. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9157. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9158. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9159. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9160. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9161. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9162. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9163. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9164. end
  9165. CameraManager()
  9166. swait()
  9167. 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)
  9168. 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)
  9169. 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)
  9170. 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)
  9171. 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)
  9172. 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)
  9173. 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)
  9174. 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)
  9175. 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)
  9176. 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)
  9177. 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)
  9178. 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)
  9179. sine = sine + change
  9180. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9181. local velderp=RootPart.Velocity.y
  9182. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9183. coroutine.resume(coroutine.create(function()
  9184. 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
  9185. if hitfloor ~= nil then
  9186. 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"))
  9187. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9188. 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)
  9189. end
  9190. end
  9191. end
  9192. end))
  9193. if equipped==true or equipped==false then
  9194. if attack==false then
  9195. idle=idle+1
  9196. else
  9197. idle=0
  9198. end
  9199. if idle>=500 then
  9200. if attack==false then
  9201. --Sheath()
  9202. end
  9203. end
  9204. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9205. Anim="Jump"
  9206. if attack==false then
  9207. 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)
  9208. 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)
  9209. 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)
  9210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9211. 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)
  9212. 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)
  9213. end
  9214. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9215. Anim="Fall"
  9216. if attack==false then
  9217. 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)
  9218. 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)
  9219. 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)
  9220. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9221. 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)
  9222. 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)
  9223. end
  9224. elseif torvel<1 and hitfloor~=nil then
  9225. Anim="Idle"
  9226. if attack==false then
  9227. if ModeOfGlitch == 1 then
  9228. local snap = math.random(1,10)
  9229. if snap == 1 then
  9230. 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)
  9231. end
  9232. 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)
  9233. 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)
  9234. 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)
  9235. 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)
  9236. 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)
  9237. 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)
  9238. elseif ModeOfGlitch == 2 then
  9239. 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)
  9240. 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)
  9241. 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)
  9242. 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)
  9243. 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)
  9244. 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)
  9245. elseif ModeOfGlitch == 2 then
  9246. 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)
  9247. 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)
  9248. 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)
  9249. 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)
  9250. 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)
  9251. 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)
  9252. elseif ModeOfGlitch == 50 then
  9253. 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)
  9254. 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)
  9255. 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)
  9256. 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)
  9257. 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)
  9258. 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)
  9259. elseif ModeOfGlitch == 5555 then --5555
  9260. 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)
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. 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)
  9266. elseif ModeOfGlitch == 1002 then
  9267. 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)
  9268. 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)
  9269. 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)
  9270. 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)
  9271. 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)
  9272. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9273. elseif ModeOfGlitch == 12 then
  9274. 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)
  9275. 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)
  9276. 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)
  9277. 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)
  9278. 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)
  9279. 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)
  9280. elseif ModeOfGlitch == 3 then
  9281. local snap = math.random(1,32)
  9282. if snap == 1 then
  9283. 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)
  9284. end
  9285. 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)
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. 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)
  9291. elseif ModeOfGlitch == 4 then
  9292. local snap = math.random(1,5)
  9293. if snap == 1 then
  9294. 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)
  9295. 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)
  9296. 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)
  9297. end
  9298. 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)
  9299. 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)
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304. elseif ModeOfGlitch == 66 then
  9305. local snap = math.random(1,2)
  9306. if snap == 1 then
  9307. 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)
  9308. 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)
  9309. 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)
  9310. end
  9311. 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)
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. elseif ModeOfGlitch == 5 then
  9318. 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)
  9319. 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)
  9320. 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)
  9321. 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)
  9322. 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)
  9323. 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)
  9324. elseif ModeOfGlitch == 6 then
  9325. 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)
  9326. 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)
  9327. 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)
  9328. 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)
  9329. 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)
  9330. 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)
  9331. elseif ModeOfGlitch == 13 then
  9332. 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)
  9333. 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)
  9334. 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)
  9335. 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)
  9336. 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)
  9337. 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)
  9338. elseif ModeOfGlitch == 8 then
  9339. 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)
  9340. 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)
  9341. 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)
  9342. 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)
  9343. 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)
  9344. 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)
  9345. elseif ModeOfGlitch == 9 then
  9346. 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)
  9347. 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))
  9348. 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)
  9349. 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)
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. elseif ModeOfGlitch == 1003 then
  9355. 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)
  9356. 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)
  9357. 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)
  9358. 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)
  9359. 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)
  9360. 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)
  9361.  
  9362. elseif ModeOfGlitch == 8889 then
  9363. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  9364. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  9365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  9367. 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)
  9368. 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)
  9369. elseif ModeOfGlitch == 1264532489 then
  9370. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9371. 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)
  9372. 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)
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9378. 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)
  9379. 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)
  9380. 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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. elseif ModeOfGlitch == 4367677813 then
  9385. 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)
  9386. 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)
  9387. 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)
  9388. 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)
  9389. 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)
  9390. 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)
  9391. elseif ModeOfGlitch == 55469696922 then --5555
  9392. 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)
  9393. 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)
  9394. 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)
  9395. 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)
  9396. 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)
  9397. 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)
  9398. elseif ModeOfGlitch == 999999999556 then
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. 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)
  9405. end
  9406. end
  9407. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9408. Anim="Walk"
  9409. if attack==false and ModeOfGlitch ~= 66 then
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. elseif attack==false and ModeOfGlitch == 66 then
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. end
  9424. elseif torvel>=22 and hitfloor~=nil then
  9425. Anim="Run"
  9426. if attack==false then
  9427. 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
  9428. 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)
  9429. 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)
  9430. 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)
  9431. 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)
  9432. 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)
  9433. 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)
  9434. if ModeOfGlitch == 12 then
  9435. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  9436. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  9437. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(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)
  9438. 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)
  9439. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  9440. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  9441. end
  9442. if ModeOfGlitch == 9 then
  9443. 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)
  9444. 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))
  9445. 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)
  9446. end
  9447. 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
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. 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)
  9453. 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)
  9454. elseif ModeOfGlitch == 13 then
  9455. 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)
  9456. 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)
  9457. 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)
  9458. 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)
  9459. 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)
  9460. 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)
  9461. end
  9462. end
  9463. end
  9464. end
  9465. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement