Advertisement
bruh9191

Untitled

Feb 22nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 454.48 KB | None | 0 0
  1. local Player = game:GetService("Players").tommy73738
  2.  
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  61. end
  62.  
  63. wait(0.2)
  64.  
  65.  
  66. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  67. The super switcher.
  68. Velnorum is one of the first wielders.
  69.  
  70. Created, Reworked by NoobyGames12
  71. Edited by GodzPlaysRB
  72. Edited by wanTH092 (Gam_Filano CH)
  73. SpectrumGlitcher Developers ^^^
  74. ]])
  75.  
  76.  
  77. ------------- ORIGINAL WIELDER OC: Velnorum
  78. print([[Icons:
  79. ! = New
  80. ? = Spoilers
  81. * = Exclusivity
  82. C = Changes
  83.  
  84. ]])
  85. warn([[V 4.35 Update Log:
  86. ! - Added Betrayal mode (Chaos M)
  87.  
  88. !? - Added z move to destiny
  89. !c? = Added calamity transition
  90. !? - upcoming transition for some mode..
  91. - Removed some voice sound effects because they didnt sound right
  92. ]])
  93. --- its obs smooth af do not touch
  94. ---- Sources and functions might be taken from others
  95. plr = game:GetService("Players").tommy73738
  96. char = plr.Character
  97. hum = char.Humanoid
  98. local cam = game.Workspace.CurrentCamera
  99. Camera = cam
  100. local CamInterrupt = false
  101. local TwoD = false
  102. local TargetInfo = {nil, nil}
  103. cam.CameraType = "Custom"
  104. t = char.Torso
  105. h = char.Head
  106. ra = char["Right Arm"]
  107. la = char["Left Arm"]
  108. rl = char["Right Leg"]
  109. ll = char["Left Leg"]
  110. tors = char.Torso
  111. lleg = char["Left Leg"]
  112. root = char.HumanoidRootPart
  113. hed = char.Head
  114. rleg = char["Right Leg"]
  115. rarm = char["Right Arm"]
  116. larm = char["Left Arm"]
  117. radian = math.rad
  118. random = math.random
  119. Vec3 = Vector3.new
  120. Inst = Instance.new
  121. cFrame = CFrame.new
  122. Euler = CFrame.fromEulerAnglesXYZ
  123. vt = Vector3.new
  124. bc = BrickColor.new
  125. br = BrickColor.random
  126. it = Instance.new
  127. cf = CFrame.new
  128. local Player_Size = 0
  129. cam = game.Workspace.CurrentCamera
  130. CF = CFrame.new
  131. angles = CFrame.Angles
  132. attack = false
  133. Euler = CFrame.fromEulerAnglesXYZ
  134. Rad = math.rad
  135. IT = Instance.new
  136. BrickC = BrickColor.new
  137. Cos = math.cos
  138. Acos = math.acos
  139. Sin = math.sin
  140. Asin = math.asin
  141. Abs = math.abs
  142. Mrandom = math.random
  143. Floor = math.floor
  144. IT = Instance.new
  145. CF = CFrame.new
  146. VT = Vector3.new
  147. RAD = math.rad
  148. C3 = Color3.new
  149. UD2 = UDim2.new
  150. BRICKC = BrickColor.new
  151. ANGLES = CFrame.Angles
  152. EULER = CFrame.fromEulerAnglesXYZ
  153. COS = math.cos
  154. ACOS = math.acos
  155. SIN = math.sin
  156. ASIN = math.asin
  157. ABS = math.abs
  158. MRANDOM = math.random
  159. FLOOR = math.floor
  160. local SINE = 0
  161.  
  162. local Booleans = {
  163. CamFollow = true,
  164. GyroUse = true
  165. }
  166.  
  167. function lerp(object, newCFrame, alpha)
  168. return object:lerp(newCFrame, alpha)
  169. end
  170.  
  171. local Directer = Inst("BodyGyro", root)
  172. Directer.MaxTorque = Vec3(0, 0, 0)
  173. Directer.P = 600000
  174. local CPart = Inst("Part")
  175. CPart.Anchored = true
  176. CPart.CanCollide = false
  177. CPart.Locked = true
  178. CPart.Transparency = 1
  179.  
  180. local rainbowmode = false
  181. local chaosmode = false
  182.  
  183. local kan = Instance.new("Sound",tors)
  184. kan.Volume = 0.85
  185. kan.TimePosition = 0
  186. kan.PlaybackSpeed = 1
  187. kan.Pitch = 1
  188. kan.SoundId = "rbxassetid://1255569288"
  189. kan.Name = "wrecked"
  190. kan.Looped = true
  191. kan:Play()
  192.  
  193. local currentThemePlaying = kan.SoundId
  194. local currentPitch = kan.Pitch
  195. local currentVol = kan.Volume
  196. function newTheme(ID,timepos,pitch,vol)
  197. local kanz = kan
  198. --kanz:Stop()
  199. kanz.Volume = vol
  200. --kanz.TimePosition = timepos
  201. kanz.PlaybackSpeed = pitch
  202. kanz.Pitch = pitch
  203. kanz.SoundId = ID
  204. kanz.Name = "wrecked"
  205. kanz.Looped = true
  206. currentThemePlaying = kanz.SoundId
  207. currentVol = kanz.Volume
  208. currentPitch = kanz.Pitch
  209. --kanz:Play()
  210. --coroutine.resume(coroutine.create(function()
  211. --wait(0.05)
  212. --end))
  213. end
  214.  
  215.  
  216. function newThemeCust(ID,timepos,pitch,vol)
  217. local kanz = kan
  218. kanz:Stop()
  219. kanz.Volume = vol
  220. kanz.TimePosition = timepos
  221. kanz.PlaybackSpeed = pitch
  222. kanz.Pitch = pitch
  223. kanz.SoundId = ID
  224. kanz.Name = "wrecked"
  225. kanz.Looped = true
  226. currentThemePlaying = kanz.SoundId
  227. currentVol = kanz.Volume
  228. currentPitch = kanz.Pitch
  229. kanz:Play()
  230. coroutine.resume(coroutine.create(function()
  231. wait(0.05)
  232. end))
  233. end
  234.  
  235. local mutedtog = false
  236.  
  237. function CameraEnshaking(Length,Intensity)
  238. coroutine.resume(coroutine.create(function()
  239. local intensity = 1*Intensity
  240. local rotM = 0.01*Intensity
  241. for i = 0, Length, 0.1 do
  242. swait()
  243. intensity = intensity - 0.05*Intensity/Length
  244. rotM = rotM - 0.0005*Intensity/Length
  245. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  246. 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)
  247. end
  248. Humanoid.CameraOffset = Vec3(0, 0, 0)
  249. end))
  250. end
  251. CamShake=function(Part,Distan,Power,Times)
  252. local de=Part.Position
  253. for i,v in pairs(workspace:children()) do
  254. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  255. for _,c in pairs(v:children()) do
  256. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  257. local Noob=v.Humanoid
  258. if Noob~=nil then
  259. coroutine.resume(coroutine.create(function()
  260. FV = Instance.new("BoolValue", Noob)
  261. FV.Name = "CameraShake"
  262. for ShakeNum=1,Times do
  263. swait()
  264. local ef=Power
  265. if ef>=1 then
  266. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  267. else
  268. ef=Power*10
  269. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  270. end
  271. end
  272. Humanoid.CameraOffset = Vector3.new(0,0,0)
  273. FV:Destroy()
  274. end))
  275. CameraShake(Times, Power, Noob)
  276. end
  277. end
  278. end
  279. end
  280. end
  281. end
  282.  
  283. local toggleTag = true
  284. local bilguit = Instance.new("BillboardGui", hed)
  285. bilguit.Adornee = nil
  286. bilguit.Name = "ModeName"
  287. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  288. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  289. local modet = Instance.new("TextLabel", bilguit)
  290. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  291. modet.FontSize = "Size8"
  292. modet.TextScaled = true
  293. modet.TextTransparency = 0
  294. modet.BackgroundTransparency = 1
  295. modet.TextTransparency = 0
  296. modet.TextStrokeTransparency = 0
  297. modet.Font = "Antique"
  298. modet.TextStrokeColor3 = Color3.new(1,0,0)
  299. modet.TextColor3 = Color3.new(0.25,0,0)
  300. modet.Text = "MAYHEM"
  301.  
  302.  
  303. function chatfunc(text,color,typet,font,timeex)
  304. local chat = coroutine.wrap(function()
  305. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  306. Character:FindFirstChild("TalkingBillBoard"):destroy()
  307. end
  308. local naeeym2 = Instance.new("BillboardGui",Character)
  309. naeeym2.Size = UDim2.new(0,100,0,40)
  310. naeeym2.StudsOffset = Vector3.new(0,3,0)
  311. naeeym2.Adornee = Character.Head
  312. naeeym2.Name = "TalkingBillBoard"
  313. local tecks2 = Instance.new("TextLabel",naeeym2)
  314. tecks2.BackgroundTransparency = 1
  315. tecks2.BorderSizePixel = 0
  316. tecks2.Text = ""
  317. tecks2.Font = font
  318. tecks2.TextSize = 30
  319. tecks2.TextStrokeTransparency = 0
  320. tecks2.TextColor3 = color
  321. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  322. tecks2.Size = UDim2.new(1,0,0.5,0)
  323. local tecks3 = Instance.new("TextLabel",naeeym2)
  324. tecks3.BackgroundTransparency = 1
  325. tecks3.BorderSizePixel = 0
  326. tecks3.Text = ""
  327. tecks3.Font = font
  328. tecks3.TextSize = 30
  329. tecks3.TextStrokeTransparency = 0
  330. if typet == "Inverted" then
  331. tecks3.TextColor3 = Color3.new(0,0,0)
  332. tecks3.TextStrokeColor3 = color
  333. elseif typet == "Normal" then
  334. tecks3.TextColor3 = color
  335. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  336. end
  337. tecks3.Size = UDim2.new(1,0,0.5,0)
  338. coroutine.resume(coroutine.create(function()
  339. while true do
  340. swait(1)
  341. if chaosmode == true then
  342. tecks2.TextColor3 = BrickColor.random().Color
  343. tecks3.TextStrokeColor3 = BrickColor.random().Color
  344. end
  345. end
  346. end))
  347. modet.TextTransparency = modet.TextTransparency + 1
  348. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  349. for i = 0, 74*timeex do
  350. swait()
  351. modet.TextTransparency = 1
  352. modet.TextStrokeTransparency = 1
  353. tecks2.Text = text
  354. tecks3.Text = text
  355. end
  356. local randomrot = math.random(1,2)
  357. if randomrot == 1 then
  358. for i = 1, 50 do
  359. swait()
  360. tecks2.Text = text
  361. tecks3.Text = text
  362. modet.TextTransparency = modet.TextTransparency - .02
  363. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  364. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  365. tecks2.TextTransparency = tecks2.TextTransparency + .04
  366. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  367. tecks3.TextTransparency = tecks2.TextTransparency + .04
  368. end
  369. elseif randomrot == 2 then
  370. for i = 1, 50 do
  371. swait()
  372. tecks2.Text = text
  373. tecks3.Text = text
  374. modet.TextTransparency = modet.TextTransparency - .02
  375. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  376. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  377. tecks2.TextTransparency = tecks2.TextTransparency + .04
  378. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks3.TextTransparency = tecks2.TextTransparency + .04
  380. end
  381. end
  382. modet.TextTransparency = 0
  383. modet.TextStrokeTransparency = 0
  384. if toggleTag == false then
  385. modet.TextTransparency = 1
  386. modet.TextStrokeTransparency = 1
  387. end
  388. naeeym2:Destroy()
  389. end)
  390. chat()
  391. end
  392.  
  393. function bosschatfunc(text,color,watval)
  394. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  395. coroutine.resume(coroutine.create(function()
  396. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  397. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  398. end
  399. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  400. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  401. scrg.Name = "Dialog"
  402. local txtlb = Instance.new("TextLabel",scrg)
  403. txtlb.Text = ""
  404. txtlb.Font = "Bodoni"
  405. txtlb.TextColor3 = Color3.new(0,0,0)
  406. txtlb.TextStrokeTransparency = 0
  407. txtlb.BackgroundTransparency = 0.75
  408. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  409. txtlb.TextStrokeColor3 = color
  410. txtlb.TextScaled = true
  411. txtlb.Size = UDim2.new(1,0,0.25,0)
  412. txtlb.TextXAlignment = "Left"
  413. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  414. local txtlb2 = Instance.new("TextLabel",scrg)
  415. txtlb2.Text = plr.Name.." The Glitcher:"
  416. txtlb2.Font = "Arcade"
  417. txtlb2.TextColor3 = Color3.new(0,0,0)
  418. txtlb2.TextStrokeTransparency = 0
  419. txtlb2.BackgroundTransparency = 1
  420. txtlb2.TextStrokeColor3 = color
  421. txtlb2.TextSize = 40
  422. txtlb2.Size = UDim2.new(1,0,0.25,0)
  423. txtlb2.TextXAlignment = "Left"
  424. txtlb2.Position = UDim2.new(0,0,1,0)
  425. local fvalen = 0.55
  426. local fval = -0.49
  427. coroutine.resume(coroutine.create(function()
  428. while true do
  429. swait()
  430. if chaosmode == true then
  431. txtlb.Rotation = math.random(-1,1)
  432. txtlb2.Rotation = math.random(-1,1)
  433. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  434. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  435. txtlb.TextStrokeColor3 = BrickColor.random().Color
  436. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  437. end
  438. end
  439. end))
  440. coroutine.resume(coroutine.create(function()
  441. while true do
  442. swait()
  443. if scrg.Parent ~= nil then
  444. fvalen = fvalen - 0.0001
  445. elseif scrg.Parent == nil then
  446. break
  447. end
  448. end
  449. end))
  450. local flol = 1.75
  451. local flil = 1.6
  452. coroutine.resume(coroutine.create(function()
  453. for i = 0, 9 do
  454. swait()
  455. fval = fval + 0.05
  456. flol = flol - 0.1
  457. flil = flil - 0.1
  458. txtlb.Text = ""
  459. txtlb.Position = UDim2.new(0,0,flol,0)
  460. txtlb2.Position = UDim2.new(0,0,flil,0)
  461. end
  462. txtlb.Text = text
  463. wait(watval)
  464. local valinc = 0
  465. for i = 0, 99 do
  466. swait()
  467. valinc = valinc + 0.0001
  468. flol = flol + valinc
  469. flil = flil + valinc
  470. txtlb.Rotation = txtlb.Rotation + valinc*20
  471. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  472. txtlb.Position = UDim2.new(0,0,flol,0)
  473. txtlb2.Position = UDim2.new(0,0,flil,0)
  474. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  475. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  476. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  477. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  478. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  479. end
  480. scrg:Destroy()
  481. end))
  482. end))
  483. end
  484. end
  485.  
  486.  
  487. local Create = LoadLibrary("RbxUtility").Create
  488.  
  489. CFuncs = {
  490. ["Part"] = {
  491. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  492. local Part = Create("Part"){
  493. Parent = Parent,
  494. Reflectance = Reflectance,
  495. Transparency = Transparency,
  496. CanCollide = false,
  497. Locked = true,
  498. BrickColor = BrickColor.new(tostring(BColor)),
  499. Name = Name,
  500. Size = Size,
  501. Material = Material,
  502. }
  503. RemoveOutlines(Part)
  504. return Part
  505. end;
  506. };
  507.  
  508. ["Mesh"] = {
  509. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  510. local Msh = Create(Mesh){
  511. Parent = Part,
  512. Offset = OffSet,
  513. Scale = Scale,
  514. }
  515. if Mesh == "SpecialMesh" then
  516. Msh.MeshType = MeshType
  517. Msh.MeshId = MeshId
  518. end
  519. return Msh
  520. end;
  521. };
  522.  
  523. ["Mesh"] = {
  524. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  525. local Msh = Create(Mesh){
  526. Parent = Part,
  527. Offset = OffSet,
  528. Scale = Scale,
  529. }
  530. if Mesh == "SpecialMesh" then
  531. Msh.MeshType = MeshType
  532. Msh.MeshId = MeshId
  533. end
  534. return Msh
  535. end;
  536. };
  537.  
  538. ["Weld"] = {
  539. Create = function(Parent, Part0, Part1, C0, C1)
  540. local Weld = Create("Weld"){
  541. Parent = Parent,
  542. Part0 = Part0,
  543. Part1 = Part1,
  544. C0 = C0,
  545. C1 = C1,
  546. }
  547. return Weld
  548. end;
  549. };
  550.  
  551. ["Sound"] = {
  552. Create = function(id, par, vol, pit)
  553. coroutine.resume(coroutine.create(function()
  554. local S = Create("Sound"){
  555. Volume = vol,
  556. Name = "EffectSoundo",
  557. Pitch = pit or 1,
  558. SoundId = id,
  559. Parent = par or workspace,
  560. }
  561. wait()
  562. S:play()
  563. game:GetService("Debris"):AddItem(S, 10)
  564. end))
  565. end;
  566. };
  567.  
  568. ["TimeSound"] = {
  569. Create = function(id, par, vol, pit, timepos)
  570. coroutine.resume(coroutine.create(function()
  571. local S = Create("Sound"){
  572. Volume = vol,
  573. Name = "EffectSoundo",
  574. Pitch = pit or 1,
  575. SoundId = id,
  576. TimePosition = timepos,
  577. Parent = par or workspace,
  578. }
  579. wait()
  580. S:play()
  581. game:GetService("Debris"):AddItem(S, 10)
  582. end))
  583. end;
  584. };
  585. ["EchoSound"] = {
  586. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  587. coroutine.resume(coroutine.create(function()
  588. local Sas = Create("Sound"){
  589. Volume = vol,
  590. Name = "EffectSoundo",
  591. Pitch = pit or 1,
  592. SoundId = id,
  593. TimePosition = timepos,
  594. Parent = par or workspace,
  595. }
  596. local E = Create("EchoSoundEffect"){
  597. Delay = echodelay,
  598. Name = "Echo",
  599. Feedback = fedb,
  600. DryLevel = dryl,
  601. Parent = Sas,
  602. }
  603. wait()
  604. Sas:play()
  605. game:GetService("Debris"):AddItem(Sas, delays)
  606. end))
  607. end;
  608. };
  609.  
  610. ["LongSound"] = {
  611. Create = function(id, par, vol, pit)
  612. coroutine.resume(coroutine.create(function()
  613. local S = Create("Sound"){
  614. Volume = vol,
  615. Pitch = pit or 1,
  616. SoundId = id,
  617. Parent = par or workspace,
  618. }
  619. wait()
  620. S:play()
  621. game:GetService("Debris"):AddItem(S, 60)
  622. end))
  623. end;
  624. };
  625.  
  626. ["ParticleEmitter"] = {
  627. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  628. local fp = Create("ParticleEmitter"){
  629. Parent = Parent,
  630. Color = ColorSequence.new(Color1, Color2),
  631. LightEmission = LightEmission,
  632. Size = Size,
  633. Texture = Texture,
  634. Transparency = Transparency,
  635. ZOffset = ZOffset,
  636. Acceleration = Accel,
  637. Drag = Drag,
  638. LockedToPart = LockedToPart,
  639. VelocityInheritance = VelocityInheritance,
  640. EmissionDirection = EmissionDirection,
  641. Enabled = Enabled,
  642. Lifetime = LifeTime,
  643. Rate = Rate,
  644. Rotation = Rotation,
  645. RotSpeed = RotSpeed,
  646. Speed = Speed,
  647. VelocitySpread = VelocitySpread,
  648. }
  649. return fp
  650. end;
  651. };
  652.  
  653. CreateTemplate = {
  654.  
  655. };
  656. }
  657.  
  658.  
  659.  
  660. New = function(Object, Parent, Name, Data)
  661. local Object = Instance.new(Object)
  662. for Index, Value in pairs(Data or {}) do
  663. Object[Index] = Value
  664. end
  665. Object.Parent = Parent
  666. Object.Name = Name
  667. return Object
  668. end
  669. local halocolor = BrickColor.new("Pastel light blue")
  670. local halocolor2 = BrickColor.new("Cool yellow")
  671. local starcolor = BrickColor.new("Bright yellow")
  672. local lunacolor = BrickColor.new("Navy blue")
  673. local lunacolor2 = BrickColor.new("Bright blue")
  674. local wepcolor = BrickColor.new("Really black")
  675. local maincolor = BrickColor.new("Really black")
  676. local m = Instance.new("Model",char)
  677. local m2 = Instance.new("Model",char)
  678. local m3 = Instance.new("Model",char)
  679. local mw1 = Instance.new("Model",char)
  680. local mw2 = Instance.new("Model",char)
  681.  
  682.  
  683. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  684. local gui = it(GuiType)
  685. gui.Parent = parent
  686. gui.Text = text
  687. gui.BackgroundTransparency = backtrans
  688. gui.BackgroundColor3 = backcol
  689. gui.SizeConstraint = "RelativeXY"
  690. gui.TextXAlignment = "Center"
  691. gui.TextYAlignment = "Center"
  692. gui.Position = pos
  693. gui.Size = size
  694. gui.Font = "SourceSans"
  695. gui.FontSize = "Size14"
  696. gui.TextWrapped = false
  697. gui.TextStrokeTransparency = 0
  698. gui.TextColor = BrickColor.new("White")
  699. return gui
  700. end
  701. --------------------------- GUI STUFF
  702. local basgui = it("GuiMain")
  703. basgui.Parent = plr.PlayerGui
  704. basgui.Name = "VISgui"
  705. local fullscreenz = it("Frame")
  706. fullscreenz.Parent = basgui
  707. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  708. fullscreenz.BackgroundTransparency = 1
  709. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  710. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  711. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  712. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  713. imgl2.BackgroundTransparency = 1
  714. imgl2.BorderSizePixel = 0
  715. imgl2.ImageTransparency = 0.5
  716. imgl2.ImageColor3 = Color3.new(1,0,0)
  717. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  718. imgl2.Size = UDim2.new(0,1000,0,1000)
  719. imgl2.Image = "rbxassetid://2325939897"
  720. local techc = imgl2:Clone()
  721. techc.Parent = fullscreenz
  722. techc.ImageTransparency = 0
  723. techc.Size = UDim2.new(0,900,0,900)
  724. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  725. techc.ImageColor3 = Color3.new(1,0,0)
  726. techc.Image = "rbxassetid://2273224484"
  727. local circl = imgl2:Clone()
  728. circl.Parent = fullscreenz
  729. circl.ImageTransparency = 0
  730. circl.Size = UDim2.new(0,550,0,550)
  731. circl.Position = UDim2.new(0.75,25,0.55,25)
  732. circl.ImageColor3 = Color3.new(0,0,0)
  733. circl.Image = "rbxassetid://2312119891"
  734. local circl2 = imgl2:Clone()
  735. circl2.Parent = fullscreenz
  736. circl2.ImageTransparency = 0
  737. circl2.Size = UDim2.new(0,700,0,700)
  738. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  739. circl2.ImageColor3 = Color3.new(1,0,0)
  740. circl2.Image = "rbxassetid://2312119891"
  741. local imgl2b = imgl2:Clone()
  742. imgl2b.Parent = fullscreenz
  743. imgl2b.ImageTransparency = 0
  744. imgl2b.Size = UDim2.new(0,800,0,800)
  745. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  746. imgl2b.ImageColor3 = Color3.new(0,0,0)
  747. local ned = Instance.new("TextLabel",fullscreenz)
  748. ned.ZIndex = 2
  749. ned.Font = "Arcade"
  750. ned.BackgroundTransparency = 1
  751. ned.BorderSizePixel = 0.65
  752. ned.Size = UDim2.new(0.3,0,0.2,0)
  753. ned.Position = UDim2.new(0.7,0,0.8,0)
  754. ned.TextColor3 = BrickColor.new("Really red").Color
  755. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  756. ned.TextScaled = true
  757. ned.TextStrokeTransparency = 0
  758. ned.Text = "MAYHEM"
  759. ned.TextSize = 24
  760. ned.Rotation = 1
  761. ned.TextXAlignment = "Right"
  762. ned.TextYAlignment = "Bottom"
  763.  
  764. local extrawingmod1 = Instance.new("Model",char)
  765. local extrawingmod2 = Instance.new("Model",char)
  766.  
  767. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  768. local p = Instance.new("Part")
  769. p.TopSurface = 0
  770. p.BottomSurface = 0
  771. p.Parent = parent
  772. p.Size = Vector3.new(0.1,0.1,0.1)
  773. p.Transparency = transparency
  774. p.Reflectance = reflectance
  775. p.CanCollide = false
  776. p.Locked = true
  777. p.BrickColor = brickcolor
  778. p.Material = material
  779. return p
  780. end
  781.  
  782. function CreateMesh(parent,meshtype,x1,y1,z1)
  783. local mesh = Instance.new("SpecialMesh",parent)
  784. mesh.MeshType = meshtype
  785. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  786. return mesh
  787. end
  788.  
  789. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  790. local mesh = Instance.new("SpecialMesh",parent)
  791. mesh.MeshType = "FileMesh"
  792. mesh.MeshId = meshid
  793. mesh.Scale = Vector3.new(x1,y1,z1)
  794. return mesh
  795. end
  796.  
  797.  
  798. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  799. local mesh = Instance.new("SpecialMesh",parent)
  800. mesh.MeshType = "FileMesh"
  801. mesh.MeshId = meshid
  802. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  803. mesh.Scale = Vector3.new(x1,y1,z1)
  804. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  805. return mesh
  806. end
  807.  
  808. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  809. local weld = Instance.new("Weld")
  810. weld.Parent = parent
  811. weld.Part0 = part0
  812. weld.Part1 = part1
  813. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  814. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  815. return weld
  816. end
  817.  
  818.  
  819. --------------
  820. --------------
  821. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  822. 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))
  823. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  824. 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))
  825.  
  826. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  827. CreateMesh(handle,"Brick",0,0,0)
  828. 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))
  829. local valuaring = 10
  830. for i = 0, 49 do
  831. valuaring = valuaring + 10
  832. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  833. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  834. 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))
  835. end
  836.  
  837. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  838. CreateMesh(handle,"Brick",0,0,0)
  839. 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))
  840. local valuaring = 10
  841. for i = 0, 49 do
  842. valuaring = valuaring + 10
  843. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  844. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  845. 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))
  846. end
  847.  
  848.  
  849. local handle = CreateParta(m,1,1,"Neon",maincolor)
  850. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  851. 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))
  852.  
  853. --- Left wing.
  854.  
  855. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  856. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  857. 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))
  858.  
  859. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  860. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  861. 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))
  862. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  863. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  864. 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))
  865. A0 = Instance.new('Attachment',wed)
  866. A0.Position = vt(0,0.25,0.25)
  867. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,3)
  869. 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))
  870. A1 = Instance.new('Attachment',wed)
  871. A1.Position = vt(0,-0.25,-2)
  872. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  873. CreateMesh(wed,"Wedge",0.05,3,0.5)
  874. 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))
  875.  
  876. tl1 = Instance.new('Trail',wed)
  877. tl1.Attachment0 = A1
  878. tl1.Attachment1 = A0
  879. tl1.Texture = "rbxassetid://2108945559"
  880. tl1.LightEmission = 1
  881. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  882. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  883. tl1.Lifetime = 0.6
  884.  
  885.  
  886. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  887. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  888. 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))
  889.  
  890. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  891. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  892. 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))
  893. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  895. 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))
  896. A0 = Instance.new('Attachment',wed)
  897. A0.Position = vt(0,0.25,0.25)
  898. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  899. CreateMesh(wed,"Wedge",0.05,0.5,3)
  900. 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))
  901. A1 = Instance.new('Attachment',wed)
  902. A1.Position = vt(0,-0.25,-2)
  903. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,3,0.5)
  905. 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))
  906.  
  907. tl2 = Instance.new('Trail',wed)
  908. tl2.Attachment0 = A1
  909. tl2.Attachment1 = A0
  910. tl2.Texture = "rbxassetid://2108945559"
  911. tl2.LightEmission = 1
  912. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  913. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  914. tl2.Lifetime = 0.6
  915.  
  916. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  917. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  918. 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))
  919.  
  920. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  922. 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))
  923. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. 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))
  926. A0 = Instance.new('Attachment',wed)
  927. A0.Position = vt(0,0.25,0.25)
  928. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,3)
  930. 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))
  931. A1 = Instance.new('Attachment',wed)
  932. A1.Position = vt(0,-0.25,-2)
  933. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05,3,0.5)
  935. 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))
  936.  
  937. tl3 = Instance.new('Trail',wed)
  938. tl3.Attachment0 = A1
  939. tl3.Attachment1 = A0
  940. tl3.Texture = "rbxassetid://2108945559"
  941. tl3.LightEmission = 1
  942. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  943. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  944. tl3.Lifetime = 0.6
  945.  
  946. tl1.Enabled = false
  947. tl2.Enabled = false
  948. tl3.Enabled = false
  949. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  950. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  951. 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))
  952.  
  953. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. 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))
  956. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  958. 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))
  959. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,0.5,3)
  961. 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))
  962. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,3,0.5)
  964. 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))
  965.  
  966. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  967. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  968. 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))
  969.  
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  972. 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))
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  975. 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))
  976. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,0.5,3)
  978. 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))
  979. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,3,0.5)
  981. 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))
  982.  
  983. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  984. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  985. 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))
  986.  
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  989. 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))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  992. 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))
  993. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,0.5,3)
  995. 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))
  996. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,3,0.5)
  998. 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))
  999.  
  1000. -- Right wing.
  1001.  
  1002. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1003. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1004. 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))
  1005.  
  1006. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1007. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1008. 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))
  1009. A0 = Instance.new('Attachment',wed)
  1010. A0.Position = vt(0,0.25,0.25)
  1011. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1013. 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))
  1014. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1015. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1016. 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))
  1017. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1018. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1019. 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))
  1020. A1 = Instance.new('Attachment',wed)
  1021. A1.Position = vt(0,2,0.25)
  1022.  
  1023. tr1 = Instance.new('Trail',wed)
  1024. tr1.Attachment0 = A1
  1025. tr1.Attachment1 = A0
  1026. tr1.Texture = "rbxassetid://2108945559"
  1027. tr1.LightEmission = 1
  1028. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1029. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1030. tr1.Lifetime = 0.6
  1031.  
  1032. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1033. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1034. 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))
  1035.  
  1036. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1038. 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))
  1039. A0 = Instance.new('Attachment',wed)
  1040. A0.Position = vt(0,0.25,0.25)
  1041. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1043. 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))
  1044. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1045. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1046. 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))
  1047. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1049. 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))
  1050. A1 = Instance.new('Attachment',wed)
  1051. A1.Position = vt(0,2,0.25)
  1052.  
  1053. tr2 = Instance.new('Trail',wed)
  1054. tr2.Attachment0 = A1
  1055. tr2.Attachment1 = A0
  1056. tr2.Texture = "rbxassetid://2108945559"
  1057. tr2.LightEmission = 1
  1058. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1059. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1060. tr2.Lifetime = 0.6
  1061.  
  1062. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1063. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1064. 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))
  1065.  
  1066. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1068. 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))
  1069. A0 = Instance.new('Attachment',wed)
  1070. A0.Position = vt(0,0.25,0.25)
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1073. 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))
  1074. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1076. 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))
  1077. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1079. 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))
  1080. A1 = Instance.new('Attachment',wed)
  1081. A1.Position = vt(0,2,0.25)
  1082.  
  1083. tr3 = Instance.new('Trail',wed)
  1084. tr3.Attachment0 = A1
  1085. tr3.Attachment1 = A0
  1086. tr3.Texture = "rbxassetid://2108945559"
  1087. tr3.LightEmission = 1
  1088. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1089. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1090. tr3.Lifetime = 0.6
  1091.  
  1092.  
  1093. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1094. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1095. 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))
  1096.  
  1097. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1099. 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))
  1100. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1102. 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))
  1103. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1104. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1105. 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))
  1106. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1107. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1108. 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))
  1109.  
  1110. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1111. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1112. 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))
  1113.  
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1116. 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))
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1119. 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))
  1120. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1121. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1122. 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))
  1123. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1124. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1125. 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))
  1126.  
  1127. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1128. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1129. 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))
  1130.  
  1131. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1133. 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))
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1136. 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))
  1137. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1139. 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))
  1140. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1142. 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))
  1143.  
  1144. --HERES THE RING
  1145.  
  1146.  
  1147. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1148. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1149. 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))
  1150. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1151. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1152. 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))
  1153. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1154. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1155. 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))
  1156.  
  1157.  
  1158. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1159. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1160. 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))
  1161.  
  1162. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1163. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1164. 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))
  1165.  
  1166.  
  1167.  
  1168. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1169. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1170. 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))
  1171.  
  1172. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1173. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1174. 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))
  1175.  
  1176. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1177. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1178. 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))
  1179.  
  1180. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1181. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1182. 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))
  1183. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1184. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1185. 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))]]--
  1186.  
  1187. --- second ring
  1188.  
  1189.  
  1190. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1191. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1192. 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))
  1193.  
  1194. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1195. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1196. 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))
  1197.  
  1198.  
  1199.  
  1200. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1201. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1202. 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))
  1203.  
  1204. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1205. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1206. 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))
  1207.  
  1208. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1209. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1210. 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))
  1211.  
  1212. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1213. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1214. 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))
  1215. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1216. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1217. 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))
  1218.  
  1219.  
  1220.  
  1221. for i, v in pairs(m:GetChildren()) do
  1222. if v:IsA("Part") then
  1223. v.BrickColor = BrickColor.new("Really black")
  1224. v.Material = "Glass"
  1225. end
  1226. end
  1227. for i, v in pairs(m2:GetChildren()) do
  1228. if v:IsA("Part") then
  1229. v.BrickColor = BrickColor.new("Crimson")
  1230. v.Material = "Granite"
  1231. end
  1232. end
  1233. for i, v in pairs(m3:GetChildren()) do
  1234. if v:IsA("Part") then
  1235. v.BrickColor = BrickColor.new("Really red")
  1236. v.Material = "Neon"
  1237. end
  1238. end
  1239. for i, v in pairs(mw2:GetChildren()) do
  1240. if v:IsA("Part") then
  1241. v.BrickColor = BrickColor.new("Really red")
  1242. v.Material = "Neon"
  1243. end
  1244. end
  1245. for i, v in pairs(mw1:GetChildren()) do
  1246. if v:IsA("Part") then
  1247. v.Transparency = 1
  1248. v.BrickColor = BrickColor.new("Really red")
  1249. v.Material = "Neon"
  1250. end
  1251. end
  1252. for i, v in pairs(extrawingmod1:GetChildren()) do
  1253. if v:IsA("Part") then
  1254. v.Transparency = 1
  1255. v.BrickColor = BrickColor.new("White")
  1256. v.Material = "Neon"
  1257. end
  1258. end
  1259. for i, v in pairs(extrawingmod2:GetChildren()) do
  1260. if v:IsA("Part") then
  1261. v.Transparency = 1
  1262. v.BrickColor = BrickColor.new("White")
  1263. v.Material = "Neon"
  1264. end
  1265. end
  1266. local MAINRUINCOLOR = BrickColor.new("Really red")
  1267. ------
  1268.  
  1269.  
  1270. function RemoveOutlines(part)
  1271. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1272. end
  1273. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1274. local Part = Create("Part")({
  1275. Parent = Parent,
  1276. Reflectance = Reflectance,
  1277. Transparency = Transparency,
  1278. CanCollide = false,
  1279. Locked = true,
  1280. BrickColor = BrickColor.new(tostring(BColor)),
  1281. Name = Name,
  1282. Size = Size,
  1283. Material = Material
  1284. })
  1285. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1286. RemoveOutlines(Part)
  1287. return Part
  1288. end
  1289. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1290. local Msh = Create(Mesh)({
  1291. Parent = Part,
  1292. Offset = OffSet,
  1293. Scale = Scale
  1294. })
  1295. if Mesh == "SpecialMesh" then
  1296. Msh.MeshType = MeshType
  1297. Msh.MeshId = MeshId
  1298. end
  1299. return Msh
  1300. end
  1301. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1302. local Weld = Create("Weld")({
  1303. Parent = Parent,
  1304. Part0 = Part0,
  1305. Part1 = Part1,
  1306. C0 = C0,
  1307. C1 = C1
  1308. })
  1309. return Weld
  1310. end
  1311.  
  1312. Player = plr
  1313. Character=Player.Character
  1314. PlayerGui=Player.PlayerGui
  1315. Backpack=Player.Backpack
  1316. Torso=Character.Torso
  1317. Head=Character.Head
  1318. Humanoid=Character.Humanoid
  1319. m=Instance.new('Model',Character)
  1320. LeftArm=Character["Left Arm"]
  1321. LeftLeg=Character["Left Leg"]
  1322. RightArm=Character["Right Arm"]
  1323. RightLeg=Character["Right Leg"]
  1324. LS=Torso["Left Shoulder"]
  1325. LH=Torso["Left Hip"]
  1326. RS=Torso["Right Shoulder"]
  1327. RH=Torso["Right Hip"]
  1328. Face = Head.face
  1329. Neck=Torso.Neck
  1330. it=Instance.new
  1331. attacktype=1
  1332. vt=Vector3.new
  1333. cf=CFrame.new
  1334. euler=CFrame.fromEulerAnglesXYZ
  1335. angles=CFrame.Angles
  1336. cloaked=false
  1337. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1338. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1339. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1340. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1341. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1342. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1343. RootPart=Character.HumanoidRootPart
  1344. RootJoint=RootPart.RootJoint
  1345. RootCF=euler(-1.57,0,3.14)
  1346. attack = false
  1347. attackdebounce = false
  1348. deb=false
  1349. equipped=true
  1350. hand=false
  1351. combo=0
  1352. mana=0
  1353. trispeed=.2
  1354. attackmode='none'
  1355. local idle=0
  1356. local Anim="Idle"
  1357. local Effects={}
  1358. local gun=false
  1359. local shoot=false
  1360. local sine = 0
  1361. local change = 1
  1362.  
  1363. function RecolorTextAndRename(name,col1,col2,font)
  1364. modet.TextStrokeColor3 = col2
  1365. modet.TextColor3 = col1
  1366. modet.Font = font
  1367. modet.Text = name
  1368. techc.ImageColor3 = col2
  1369. circl.ImageColor3 = col2
  1370. circl2.ImageColor3 = col1
  1371. imgl2.ImageColor3 = col1
  1372. imgl2b.ImageColor3 = col2
  1373. ned.Text = name
  1374. ned.TextColor3 = col1
  1375. ned.TextStrokeColor3 = col2
  1376. end
  1377. --save shoulders
  1378. RSH, LSH=nil, nil
  1379. --welds
  1380. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1381. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1382. LH=Torso["Left Hip"]
  1383. RH=Torso["Right Hip"]
  1384. TorsoColor=Torso.BrickColor
  1385. function NoOutline(Part)
  1386. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1387. end
  1388. ch=Character
  1389. RSH=ch.Torso["Right Shoulder"]
  1390. LSH=ch.Torso["Left Shoulder"]
  1391. --
  1392. RSH.Parent=nil
  1393. LSH.Parent=nil
  1394. --
  1395. RW.Name="Right Shoulder"
  1396. RW.Part0=ch.Torso
  1397. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1398. RW.C1=cf(0, 0.5, 0)
  1399. RW.Part1=ch["Right Arm"]
  1400. RW.Parent=ch.Torso
  1401. --
  1402. LW.Name="Left Shoulder"
  1403. LW.Part0=ch.Torso
  1404. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1405. LW.C1=cf(0, 0.5, 0)
  1406. LW.Part1=ch["Left Arm"]
  1407. LW.Parent=ch.Torso
  1408.  
  1409. local Stats=Instance.new("BoolValue")
  1410. Stats.Name="Stats"
  1411. Stats.Parent=Character
  1412. local Atk=Instance.new("NumberValue")
  1413. Atk.Name="Damage"
  1414. Atk.Parent=Stats
  1415. Atk.Value=1
  1416. local Def=Instance.new("NumberValue")
  1417. Def.Name="Defense"
  1418. Def.Parent=Stats
  1419. Def.Value=1
  1420. local Speed=Instance.new("NumberValue")
  1421. Speed.Name="Speed"
  1422. Speed.Parent=Stats
  1423. Speed.Value=1
  1424. local Mvmt=Instance.new("NumberValue")
  1425. Mvmt.Name="Movement"
  1426. Mvmt.Parent=Stats
  1427. Mvmt.Value=1
  1428.  
  1429. local donum=0
  1430. local ast = {744586075,385254610}
  1431.  
  1432. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1433. local fp=it("Part")
  1434. fp.formFactor=formfactor
  1435. fp.Parent=parent
  1436. fp.Reflectance=reflectance
  1437. fp.Transparency=transparency
  1438. fp.CanCollide=false
  1439. fp.Locked=true
  1440. fp.BrickColor=brickcolor
  1441. fp.Name=name
  1442. fp.Size=size
  1443. fp.Position=Torso.Position
  1444. NoOutline(fp)
  1445. fp.Material="SmoothPlastic"
  1446. fp:BreakJoints()
  1447. return fp
  1448. end
  1449.  
  1450. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1451. local mesh=it(Mesh)
  1452. mesh.Parent=part
  1453. if Mesh=="SpecialMesh" then
  1454. mesh.MeshType=meshtype
  1455. if meshid~="nil" then
  1456. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1457. end
  1458. end
  1459. mesh.Offset=offset
  1460. mesh.Scale=scale
  1461. return mesh
  1462. end
  1463.  
  1464. function weld(parent,part0,part1,c0)
  1465. local weld=it("Weld")
  1466. weld.Parent=parent
  1467. weld.Part0=part0
  1468. weld.Part1=part1
  1469. weld.C0=c0
  1470. return weld
  1471. end
  1472.  
  1473. local Color1=Torso.BrickColor
  1474.  
  1475. local bodvel=Instance.new("BodyVelocity")
  1476. local bg=Instance.new("BodyGyro")
  1477.  
  1478. --------- SazEreno's Artificial HB --------------
  1479. ArtificialHB = Instance.new("BindableEvent", script)
  1480. ArtificialHB.Name = "ArtificialHB"
  1481.  
  1482. script:WaitForChild("ArtificialHB")
  1483. Frame_Speed = 1 / 60
  1484. frame = Frame_Speed
  1485. tf = 0
  1486. allowframeloss = false
  1487. tossremainder = false
  1488. lastframe = tick()
  1489. script.ArtificialHB:Fire()
  1490.  
  1491. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1492. tf = tf + s
  1493. if tf >= frame then
  1494. if allowframeloss then
  1495. script.ArtificialHB:Fire()
  1496. lastframe = tick()
  1497. else
  1498. for i = 1, math.floor(tf / frame) do
  1499. script.ArtificialHB:Fire()
  1500. end
  1501. lastframe = tick()
  1502. end
  1503. if tossremainder then
  1504. tf = 0
  1505. else
  1506. tf = tf - frame * math.floor(tf / frame)
  1507. end
  1508. end
  1509. end)
  1510.  
  1511. ------------------
  1512. function swait(num)
  1513. if num == 0 or num == nil then
  1514. ArtificialHB.Event:wait()
  1515. else
  1516. for i = 1, num do
  1517. ArtificialHB.Event:wait()
  1518. end
  1519. end
  1520. end
  1521. -------- RAINBOW LEAVE IT TO ME
  1522. local r = 255
  1523. local g = 0
  1524. local b = 0
  1525. coroutine.resume(coroutine.create(function()
  1526. while wait() do
  1527. for i = 0, 254/5 do
  1528. swait()
  1529. g = g + 5
  1530. end
  1531. for i = 0, 254/5 do
  1532. swait()
  1533. r = r - 5
  1534. end
  1535. for i = 0, 254/5 do
  1536. swait()
  1537. b = b + 5
  1538. end
  1539. for i = 0, 254/5 do
  1540. swait()
  1541. g = g - 5
  1542. end
  1543. for i = 0, 254/5 do
  1544. swait()
  1545. r = r + 5
  1546. end
  1547. for i = 0, 254/5 do
  1548. swait()
  1549. b = b - 5
  1550. end
  1551. end
  1552. end))
  1553.  
  1554.  
  1555. so = function(id,par,vol,pit)
  1556. coroutine.resume(coroutine.create(function()
  1557. local sou = Instance.new("Sound",par or workspace)
  1558. sou.Volume=vol
  1559. sou.Pitch=pit or 1
  1560. sou.SoundId=id
  1561. swait()
  1562. sou:play()
  1563. game:GetService("Debris"):AddItem(sou,6)
  1564. end))
  1565. end
  1566.  
  1567. function clerp(a,b,t)
  1568. local qa = {QuaternionFromCFrame(a)}
  1569. local qb = {QuaternionFromCFrame(b)}
  1570. local ax, ay, az = a.x, a.y, a.z
  1571. local bx, by, bz = b.x, b.y, b.z
  1572. local _t = 1-t
  1573. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1574. end
  1575.  
  1576. function QuaternionFromCFrame(cf)
  1577. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1578. local trace = m00 + m11 + m22
  1579. if trace > 0 then
  1580. local s = math.sqrt(1 + trace)
  1581. local recip = 0.5/s
  1582. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1583. else
  1584. local i = 0
  1585. if m11 > m00 then
  1586. i = 1
  1587. end
  1588. if m22 > (i == 0 and m00 or m11) then
  1589. i = 2
  1590. end
  1591. if i == 0 then
  1592. local s = math.sqrt(m00-m11-m22+1)
  1593. local recip = 0.5/s
  1594. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1595. elseif i == 1 then
  1596. local s = math.sqrt(m11-m22-m00+1)
  1597. local recip = 0.5/s
  1598. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1599. elseif i == 2 then
  1600. local s = math.sqrt(m22-m00-m11+1)
  1601. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1602. end
  1603. end
  1604. end
  1605.  
  1606. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1607. local xs, ys, zs = x + x, y + y, z + z
  1608. local wx, wy, wz = w*xs, w*ys, w*zs
  1609. local xx = x*xs
  1610. local xy = x*ys
  1611. local xz = x*zs
  1612. local yy = y*ys
  1613. local yz = y*zs
  1614. local zz = z*zs
  1615. 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))
  1616. end
  1617.  
  1618. function QuaternionSlerp(a, b, t)
  1619. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1620. local startInterp, finishInterp;
  1621. if cosTheta >= 0.0001 then
  1622. if (1 - cosTheta) > 0.0001 then
  1623. local theta = math.acos(cosTheta)
  1624. local invSinTheta = 1/math.sin(theta)
  1625. startInterp = math.sin((1-t)*theta)*invSinTheta
  1626. finishInterp = math.sin(t*theta)*invSinTheta
  1627. else
  1628. startInterp = 1-t
  1629. finishInterp = t
  1630. end
  1631. else
  1632. if (1+cosTheta) > 0.0001 then
  1633. local theta = math.acos(-cosTheta)
  1634. local invSinTheta = 1/math.sin(theta)
  1635. startInterp = math.sin((t-1)*theta)*invSinTheta
  1636. finishInterp = math.sin(t*theta)*invSinTheta
  1637. else
  1638. startInterp = t-1
  1639. finishInterp = t
  1640. end
  1641. end
  1642. 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
  1643. end
  1644.  
  1645. local function CFrameFromTopBack(at, top, back)
  1646. local right = top:Cross(back)
  1647. return CFrame.new(at.x, at.y, at.z,
  1648. right.x, top.x, back.x,
  1649. right.y, top.y, back.y,
  1650. right.z, top.z, back.z)
  1651. end
  1652.  
  1653. function Triangle(a, b, c)
  1654. local edg1 = (c-a):Dot((b-a).unit)
  1655. local edg2 = (a-b):Dot((c-b).unit)
  1656. local edg3 = (b-c):Dot((a-c).unit)
  1657. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1658. a, b, c = a, b, c
  1659. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1660. a, b, c = b, c, a
  1661. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1662. a, b, c = c, a, b
  1663. else
  1664. assert(false, "unreachable")
  1665. end
  1666.  
  1667. local len1 = (c-a):Dot((b-a).unit)
  1668. local len2 = (b-a).magnitude - len1
  1669. local width = (a + (b-a).unit*len1 - c).magnitude
  1670.  
  1671. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1672.  
  1673. local list = {}
  1674.  
  1675. if len1 > 0.01 then
  1676. local w1 = Instance.new('WedgePart', m)
  1677. game:GetService("Debris"):AddItem(w1,5)
  1678. w1.Material = "SmoothPlastic"
  1679. w1.FormFactor = 'Custom'
  1680. w1.BrickColor = BrickColor.new("Really red")
  1681. w1.Transparency = 0
  1682. w1.Reflectance = 0
  1683. w1.Material = "SmoothPlastic"
  1684. w1.CanCollide = false
  1685. local l1 = Instance.new("PointLight",w1)
  1686. l1.Color = Color3.new(170,0,0)
  1687. NoOutline(w1)
  1688. local sz = Vector3.new(0.2, width, len1)
  1689. w1.Size = sz
  1690. local sp = Instance.new("SpecialMesh",w1)
  1691. sp.MeshType = "Wedge"
  1692. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1693. w1:BreakJoints()
  1694. w1.Anchored = true
  1695. w1.Parent = workspace
  1696. w1.Transparency = 0.7
  1697. table.insert(Effects,{w1,"Disappear",.01})
  1698. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1699. table.insert(list,w1)
  1700. end
  1701.  
  1702. if len2 > 0.01 then
  1703. local w2 = Instance.new('WedgePart', m)
  1704. game:GetService("Debris"):AddItem(w2,5)
  1705. w2.Material = "SmoothPlastic"
  1706. w2.FormFactor = 'Custom'
  1707. w2.BrickColor = BrickColor.new("Really red")
  1708. w2.Transparency = 0
  1709. w2.Reflectance = 0
  1710. w2.Material = "SmoothPlastic"
  1711. w2.CanCollide = false
  1712. local l2 = Instance.new("PointLight",w2)
  1713. l2.Color = Color3.new(170,0,0)
  1714. NoOutline(w2)
  1715. local sz = Vector3.new(0.2, width, len2)
  1716. w2.Size = sz
  1717. local sp = Instance.new("SpecialMesh",w2)
  1718. sp.MeshType = "Wedge"
  1719. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1720. w2:BreakJoints()
  1721. w2.Anchored = true
  1722. w2.Parent = workspace
  1723. w2.Transparency = 0.7
  1724. table.insert(Effects,{w2,"Disappear",.01})
  1725. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1726. table.insert(list,w2)
  1727. end
  1728. return unpack(list)
  1729. end
  1730.  
  1731.  
  1732. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1733. if hit.Parent == nil then
  1734. return
  1735. end
  1736. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1737. for _, v in pairs(hit.Parent:children()) do
  1738. if v:IsA("Humanoid") then
  1739. h = v
  1740. end
  1741. end
  1742. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1743. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1744. return
  1745. end
  1746. local c = Create("ObjectValue")({
  1747. Name = "creator",
  1748. Value = game:GetService("Players").tommy73738,
  1749. Parent = h
  1750. })
  1751. game:GetService("Debris"):AddItem(c, 0.5)
  1752. if HitSound ~= nil and HitPitch ~= nil then
  1753. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1754. end
  1755. local Damage = math.random(minim, maxim)
  1756. local blocked = false
  1757. local block = hit.Parent:findFirstChild("Block")
  1758. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1759. blocked = true
  1760. block.Value = block.Value - 1
  1761. print(block.Value)
  1762. end
  1763. if blocked == false then
  1764. HitHealth = h.Health
  1765. h.MaxHealth = 100
  1766. h.Health = h.Health - Damage
  1767. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1768. print("gained kill")
  1769. dmg(h.Parent)
  1770. end
  1771. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1772. else
  1773. h.Health = h.Health - Damage / 2
  1774. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1775. end
  1776. if Type == "Knockdown" then
  1777. local hum = hit.Parent.Humanoid
  1778. hum.PlatformStand = true
  1779. coroutine.resume(coroutine.create(function(HHumanoid)
  1780. swait(1)
  1781. HHumanoid.PlatformStand = false
  1782. end), hum)
  1783. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1784. local bodvol = Create("BodyVelocity")({
  1785. velocity = angle * knockback,
  1786. P = 5000,
  1787. maxForce = Vector3.new(8000, 8000, 8000),
  1788. Parent = hit
  1789. })
  1790. local rl = Create("BodyAngularVelocity")({
  1791. P = 3000,
  1792. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1793. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1794. Parent = hit
  1795. })
  1796. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1797. game:GetService("Debris"):AddItem(rl, 0.5)
  1798. elseif Type == "Normal" then
  1799. local vp = Create("BodyVelocity")({
  1800. P = 500,
  1801. maxForce = Vector3.new(math.huge, 0, math.huge),
  1802. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1803. })
  1804. if knockback > 0 then
  1805. vp.Parent = hit.Parent.Head
  1806. end
  1807. game:GetService("Debris"):AddItem(vp, 0.5)
  1808. elseif Type == "Up" then
  1809. local bodyVelocity = Create("BodyVelocity")({
  1810. velocity = Vector3.new(0, 20, 0),
  1811. P = 5000,
  1812. maxForce = Vector3.new(8000, 8000, 8000),
  1813. Parent = hit
  1814. })
  1815. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1816. local bodyVelocity = Create("BodyVelocity")({
  1817. velocity = Vector3.new(0, 20, 0),
  1818. P = 5000,
  1819. maxForce = Vector3.new(8000, 8000, 8000),
  1820. Parent = hit
  1821. })
  1822. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1823. elseif Type == "Leech" then
  1824. local hum = hit.Parent.Humanoid
  1825. if hum ~= nil then
  1826. for i = 0, 2 do
  1827. 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)
  1828. end
  1829. Humanoid.Health = Humanoid.Health + 10
  1830. end
  1831. elseif Type == "UpKnock" then
  1832. local hum = hit.Parent.Humanoid
  1833. hum.PlatformStand = true
  1834. if hum ~= nil then
  1835. hitr = true
  1836. end
  1837. coroutine.resume(coroutine.create(function(HHumanoid)
  1838. swait(5)
  1839. HHumanoid.PlatformStand = false
  1840. hitr = false
  1841. end), hum)
  1842. local bodyVelocity = Create("BodyVelocity")({
  1843. velocity = Vector3.new(0, 20, 0),
  1844. P = 5000,
  1845. maxForce = Vector3.new(8000, 8000, 8000),
  1846. Parent = hit
  1847. })
  1848. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1849. local bodyVelocity = Create("BodyVelocity")({
  1850. velocity = Vector3.new(0, 20, 0),
  1851. P = 5000,
  1852. maxForce = Vector3.new(8000, 8000, 8000),
  1853. Parent = hit
  1854. })
  1855. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1856. elseif Type == "Snare" then
  1857. local bp = Create("BodyPosition")({
  1858. P = 2000,
  1859. D = 100,
  1860. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1861. position = hit.Parent.Torso.Position,
  1862. Parent = hit.Parent.Torso
  1863. })
  1864. game:GetService("Debris"):AddItem(bp, 1)
  1865. elseif Type == "Slashnare" then
  1866. 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)
  1867. for i = 1, math.random(4, 5) do
  1868. 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)
  1869. end
  1870. local bp = Create("BodyPosition")({
  1871. P = 2000,
  1872. D = 100,
  1873. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1874. position = hit.Parent.Torso.Position,
  1875. Parent = hit.Parent.Torso
  1876. })
  1877. game:GetService("Debris"):AddItem(bp, 1)
  1878. elseif Type == "Spike" then
  1879. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1880. local bp = Create("BodyPosition")({
  1881. P = 2000,
  1882. D = 100,
  1883. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1884. position = hit.Parent.Torso.Position,
  1885. Parent = hit.Parent.Torso
  1886. })
  1887. game:GetService("Debris"):AddItem(bp, 1)
  1888. elseif Type == "Freeze" then
  1889. local BodPos = Create("BodyPosition")({
  1890. P = 50000,
  1891. D = 1000,
  1892. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1893. position = hit.Parent.Torso.Position,
  1894. Parent = hit.Parent.Torso
  1895. })
  1896. local BodGy = Create("BodyGyro")({
  1897. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1898. P = 20000,
  1899. Parent = hit.Parent.Torso,
  1900. cframe = hit.Parent.Torso.CFrame
  1901. })
  1902. hit.Parent.Torso.Anchored = true
  1903. coroutine.resume(coroutine.create(function(Part)
  1904. swait(1.5)
  1905. Part.Anchored = false
  1906. end), hit.Parent.Torso)
  1907. game:GetService("Debris"):AddItem(BodPos, 3)
  1908. game:GetService("Debris"):AddItem(BodGy, 3)
  1909. end
  1910. local debounce = Create("BoolValue")({
  1911. Name = "DebounceHit",
  1912. Parent = hit.Parent,
  1913. Value = true
  1914. })
  1915. game:GetService("Debris"):AddItem(debounce, Delay)
  1916. c = Instance.new("ObjectValue")
  1917. c.Name = "creator"
  1918. c.Value = Player
  1919. c.Parent = h
  1920. game:GetService("Debris"):AddItem(c, 0.5)
  1921. end
  1922. end
  1923. function ShowDamage(Pos, Text, Time, Color)
  1924. local Rate = 0.03333333333333333
  1925. local Pos = Pos or Vector3.new(0, 0, 0)
  1926. local Text = Text or ""
  1927. local Time = Time or 2
  1928. local Color = Color or Color3.new(1, 0, 1)
  1929. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1930. EffectPart.Anchored = true
  1931. local BillboardGui = Create("BillboardGui")({
  1932. Size = UDim2.new(3, 0, 3, 0),
  1933. Adornee = EffectPart,
  1934. Parent = EffectPart
  1935. })
  1936. local TextLabel = Create("TextLabel")({
  1937. BackgroundTransparency = 1,
  1938. Size = UDim2.new(1, 0, 1, 0),
  1939. Text = Text,
  1940. TextColor3 = Color,
  1941. TextScaled = true,
  1942. Font = Enum.Font.ArialBold,
  1943. Parent = BillboardGui
  1944. })
  1945. game.Debris:AddItem(EffectPart, Time + 0.1)
  1946. EffectPart.Parent = game:GetService("Workspace")
  1947. delay(0, function()
  1948. local Frames = Time / Rate
  1949. for Frame = 1, Frames do
  1950. wait(Rate)
  1951. local Percent = Frame / Frames
  1952. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1953. TextLabel.TextTransparency = Percent
  1954. end
  1955. if EffectPart and EffectPart.Parent then
  1956. EffectPart:Destroy()
  1957. end
  1958. end)
  1959. end
  1960. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1961. for _, c in pairs(workspace:children()) do
  1962. local hum = c:findFirstChildOfClass("Humanoid")
  1963. if hum ~= nil then
  1964. local head = c:findFirstChild("Head")
  1965. if head ~= nil then
  1966. local targ = head.Position - Part.Position
  1967. local mag = targ.magnitude
  1968. if magni >= mag and c.Name ~= Player.Name then
  1969. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975.  
  1976. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1977. for _, c in pairs(workspace:children()) do
  1978. local hum = c:findFirstChild("Humanoid")
  1979. if hum ~= nil then
  1980. local head = c:findFirstChild("Torso")
  1981. if head ~= nil then
  1982. local targ = head.Position - Part.Position
  1983. local mag = targ.magnitude
  1984. if magni >= mag and c.Name ~= Player.Name then
  1985. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1986. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992.  
  1993. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1994. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1995. end
  1996.  
  1997. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1998. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1999. prt.Anchored=true
  2000. prt.CFrame=cframe
  2001. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2002. --http://www.roblox.com/asset/?id=4770560
  2003. game:GetService("Debris"):AddItem(prt,2)
  2004. CF=prt.CFrame
  2005. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2006. for i=0,1,0.2 do
  2007. wait()
  2008. Part.CFrame=CF*cf(0,0,-0.4)
  2009. end
  2010. for i=0,1,delay do
  2011. wait()
  2012. --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)
  2013. Mesh.Scale=Mesh.Scale
  2014. end
  2015. for i=0,1,0.1 do
  2016. wait()
  2017. Part.Transparency=i
  2018. end
  2019. Part.Parent=nil
  2020. end),prt,msh,CF)
  2021. end
  2022.  
  2023. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2024. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2025. prt.Anchored=true
  2026. prt.Material = "Neon"
  2027. prt.CFrame=cframe
  2028. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2029. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. for i=0,1,delay do
  2033. swait()
  2034. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2035. Part.Transparency=i
  2036. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2037. end
  2038. Part.Parent=nil
  2039. end),prt,msh)
  2040. end
  2041.  
  2042. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2043. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2044. prt.Anchored=true
  2045. prt.Material = "Neon"
  2046. prt.CFrame=cframe
  2047. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2048. game:GetService("Debris"):AddItem(prt,5)
  2049. coroutine.resume(coroutine.create(function(Part,Mesh)
  2050. local rtype = rottype
  2051. for i=0,1,delay do
  2052. swait()
  2053. if rtype == 1 then
  2054. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2055. elseif rtype == 2 then
  2056. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2057. end
  2058. Part.Transparency=i
  2059. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2060. end
  2061. Part.Parent=nil
  2062. end),prt,msh)
  2063. end
  2064.  
  2065. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2066. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2067. prt.Anchored=true
  2068. prt.CFrame=cframe
  2069. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2070. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2071. game:GetService("Debris"):AddItem(prt,5)
  2072. coroutine.resume(coroutine.create(function(Part,Mesh)
  2073. for i=0,1,delay do
  2074. wait()
  2075. Part.Transparency=i
  2076. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2077. end
  2078. Part.Parent=nil
  2079. end),prt,msh)
  2080. end
  2081.  
  2082. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2083. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=true
  2085. prt.Material = "Neon"
  2086. prt.CFrame=cframe
  2087. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2088. game:GetService("Debris"):AddItem(prt,5)
  2089. coroutine.resume(coroutine.create(function(Part,Mesh)
  2090. local rtype = rottype
  2091. for i=0,1,delay do
  2092. swait()
  2093. if rtype == 1 then
  2094. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2095. elseif rtype == 2 then
  2096. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2097. end
  2098. Part.Transparency=i
  2099. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2100. end
  2101. Part.Parent=nil
  2102. end),prt,msh)
  2103. end
  2104.  
  2105. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2106. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2107. prt.Anchored=true
  2108. prt.Material = "Neon"
  2109. prt.CFrame=cframe
  2110. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2111. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2112. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2113. game:GetService("Debris"):AddItem(prt,5)
  2114. coroutine.resume(coroutine.create(function(Part,Mesh)
  2115. local rtype = rottype
  2116. for i=0,1,delay do
  2117. swait()
  2118. if rtype == 1 then
  2119. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2120. elseif rtype == 2 then
  2121. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2122. end
  2123. dec.Transparency=i
  2124. dec2.Transparency=i
  2125. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2126. end
  2127. Part.Parent=nil
  2128. end),prt,msh)
  2129. end
  2130.  
  2131. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2132. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2133. prt.Anchored=true
  2134. prt.Material = "Neon"
  2135. prt.CFrame=cframe
  2136. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2137. game:GetService("Debris"):AddItem(prt,5)
  2138. coroutine.resume(coroutine.create(function(Part,Mesh)
  2139. local rtype = rottype
  2140. for i=0,1,delay do
  2141. swait()
  2142. if rtype == 1 then
  2143. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2144. elseif rtype == 2 then
  2145. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2146. end
  2147. prt.Transparency=i
  2148. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2149. end
  2150. Part.Parent=nil
  2151. end),prt,msh)
  2152. end
  2153.  
  2154. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2155. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2156. prt.Anchored=true
  2157. prt.Material = "Neon"
  2158. prt.CFrame=cframe
  2159. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2160. game:GetService("Debris"):AddItem(prt,5)
  2161. coroutine.resume(coroutine.create(function(Part,Mesh)
  2162. local rtype = rottype
  2163. for i=0,1,delay do
  2164. swait()
  2165. if rtype == 1 then
  2166. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2167. elseif rtype == 2 then
  2168. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2169. end
  2170. prt.Transparency=i
  2171. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2172. end
  2173. Part.Parent=nil
  2174. end),prt,msh)
  2175. end
  2176.  
  2177. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2178. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2179. prt.Anchored=true
  2180. prt.Material = "Neon"
  2181. prt.CFrame=cframe
  2182. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2183. game:GetService("Debris"):AddItem(prt,5)
  2184. coroutine.resume(coroutine.create(function(Part,Mesh)
  2185. local rtype = rottype
  2186. for i=0,1,delay do
  2187. swait()
  2188. if rtype == 1 then
  2189. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2190. elseif rtype == 2 then
  2191. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2192. end
  2193. prt.Transparency=i
  2194. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2195. end
  2196. Part.Parent=nil
  2197. end),prt,msh)
  2198. end
  2199.  
  2200. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2201. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2202. prt.Anchored=true
  2203. prt.Material = "Neon"
  2204. prt.CFrame=cframe
  2205. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2206. game:GetService("Debris"):AddItem(prt,5)
  2207. coroutine.resume(coroutine.create(function(Part,Mesh)
  2208. local rtype = rottype
  2209. for i=0,1,delay do
  2210. swait()
  2211. if rtype == 1 then
  2212. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2213. elseif rtype == 2 then
  2214. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2215. end
  2216. prt.Transparency=i
  2217. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2218. end
  2219. Part.Parent=nil
  2220. end),prt,msh)
  2221. end
  2222.  
  2223. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2224. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2225. prt.Anchored=false
  2226. prt.CFrame=cframe
  2227. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2228. local wld=weld(prt,prt,Parent,cframe)
  2229. game:GetService("Debris"):AddItem(prt,5)
  2230. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2231. for i=0,1,delay do
  2232. wait()
  2233. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2234. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2235. Part.Transparency=i
  2236. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2237. end
  2238. Part.Parent=nil
  2239. end),prt,msh,wld)
  2240. end
  2241.  
  2242. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2243. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2244. prt.Anchored=false
  2245. prt.CFrame=cframe
  2246. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2247. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2248. game:GetService("Debris"):AddItem(prt,5)
  2249. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2250. for i=0,1,delay do
  2251. wait()
  2252. Weld.C0=euler(i*20,0,0)
  2253. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2254. Part.Transparency=i
  2255. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2256. end
  2257. Part.Parent=nil
  2258. end),prt,msh,wld)
  2259. end
  2260.  
  2261. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2262. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2263. prt.Anchored=true
  2264. prt.CFrame=cframe
  2265. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2266. game:GetService("Debris"):AddItem(prt,2)
  2267. coroutine.resume(coroutine.create(function(Part,Mesh)
  2268. for i=0,1,delay do
  2269. wait()
  2270. Part.CFrame=Part.CFrame
  2271. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2272. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2273. prt2.Anchored=true
  2274. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2275. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2276. game:GetService("Debris"):AddItem(prt2,2)
  2277. coroutine.resume(coroutine.create(function(Part,Mesh)
  2278. for i=0,1,0.1 do
  2279. wait()
  2280. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2281. end
  2282. Part.Parent=nil
  2283. end),prt2,msh2)
  2284. end
  2285. for i=0,1,delay*2 do
  2286. wait()
  2287. Part.CFrame=Part.CFrame
  2288. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2289. end
  2290. Part.Parent=nil
  2291. end),prt,msh)
  2292. end
  2293.  
  2294. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2295. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2296. prt.Anchored=true
  2297. prt.CFrame=cframe
  2298. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2299. game:GetService("Debris"):AddItem(prt,2)
  2300. coroutine.resume(coroutine.create(function(Part,Mesh)
  2301. for i=0,1,delay do
  2302. wait()
  2303. Part.CFrame=Part.CFrame
  2304. Part.Transparency=i
  2305. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2306. end
  2307. Part.Parent=nil
  2308. end),prt,msh)
  2309. end
  2310.  
  2311. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2312. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2313. prt.Anchored=true
  2314. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2315. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2316. game:GetService("Debris"):AddItem(prt,2)
  2317. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2318. CF=Part.CFrame
  2319. Numbb=0
  2320. randnumb=math.random()/10
  2321. rand1=math.random()/10
  2322. for i=0,1,rand1 do
  2323. wait()
  2324. CF=CF*cf(0,math.random()/2,0)
  2325. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2326. Part.CFrame=CF*euler(Numbb,0,0)
  2327. Part.Transparency=i
  2328. Numbb=Numbb+randnumb
  2329. end
  2330. Part.Parent=nil
  2331. end),prt,CF,Numbb,randnumb)
  2332. end
  2333.  
  2334. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2335. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2336. prt.Anchored=true
  2337. prt.CFrame=cframe
  2338. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2339. game:GetService("Debris"):AddItem(prt,5)
  2340. coroutine.resume(coroutine.create(function(Part,Mesh)
  2341. for i=0,1,delay do
  2342. wait()
  2343. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2344. Part.Transparency=i
  2345. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2346. end
  2347. Part.Parent=nil
  2348. end),prt,msh)
  2349. end
  2350.  
  2351. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2352. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2353. prt.Anchored=true
  2354. prt.CFrame=cframe
  2355. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2356. game:GetService("Debris"):AddItem(prt,2)
  2357. coroutine.resume(coroutine.create(function(Part,Mesh)
  2358. for i=0,1,delay do
  2359. wait()
  2360. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2361. Part.Transparency=i
  2362. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2363. end
  2364. Part.Parent=nil
  2365. end),prt,msh)
  2366. end
  2367.  
  2368. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2369. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2370. prt.Anchored=true
  2371. prt.CFrame=cframe*cf(x,y,z)
  2372. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2373. game:GetService("Debris"):AddItem(prt,5)
  2374. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2375. local num=math.random()
  2376. local num2=math.random(-3,2)+math.random()
  2377. local numm=0
  2378. for i=0,1,delay*2 do
  2379. swait()
  2380. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2381. Part.Transparency=i
  2382. numm=numm+0.01
  2383. end
  2384. Part.Parent=nil
  2385. Mesh.Parent=nil
  2386. end),prt,msh,x,y,z)
  2387. end
  2388.  
  2389. function dmgstart(dmg,what)
  2390. hitcon = what.Touched:connect(function(hit)
  2391. local hum = hit.Parent:FindFirstChild("Humanoid")
  2392. if hum and not hum:IsDescendantOf(Character) then
  2393. hum:TakeDamage(dmg)
  2394. end
  2395. end)
  2396. end
  2397.  
  2398. function dmgstop()
  2399. hitcon:disconnect()
  2400. end
  2401.  
  2402. function Cloak()
  2403. Face.Parent=nil
  2404. cloaked=true
  2405. for _,v in pairs(Torso.Parent:children()) do
  2406. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2407. coroutine.resume(coroutine.create(function()
  2408. for i=0,1,0.2 do
  2409. wait()
  2410. v.Transparency=i
  2411. end
  2412. v.Transparency=1
  2413. end))
  2414. end
  2415. if v.className=="Hat" then
  2416. hatp=v.Handle
  2417. coroutine.resume(coroutine.create(function(derp)
  2418. for i=0,1,0.2 do
  2419. wait()
  2420. derp.Transparency=i
  2421. end
  2422. derp.Transparency=1
  2423. end),hatp)
  2424. end
  2425. end
  2426. for _,v in pairs(m:children()) do
  2427. if v.className=="Part" then
  2428. coroutine.resume(coroutine.create(function()
  2429. for i=0,1,0.2 do
  2430. wait()
  2431. v.Transparency=i
  2432. end
  2433. v.Transparency=1
  2434. end))
  2435. end
  2436. end
  2437. end
  2438.  
  2439. function UnCloak()
  2440. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2441. Face.Parent=Head
  2442. cloaked=false
  2443. for _,v in pairs(Torso.Parent:children()) do
  2444. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2445. coroutine.resume(coroutine.create(function()
  2446. for i=0,1,0.1 do
  2447. wait()
  2448. v.Transparency=v.Transparency-0.1
  2449. end
  2450. v.Transparency=0
  2451. end))
  2452. end
  2453. if v.className=="Hat" then
  2454. hatp=v.Handle
  2455. coroutine.resume(coroutine.create(function(derp)
  2456. for i=0,1,0.1 do
  2457. wait()
  2458. derp.Transparency=derp.Transparency-0.1
  2459. end
  2460. derp.Transparency=0
  2461. end),hatp)
  2462. end
  2463. end
  2464. for _,v in pairs(m:children()) do
  2465. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2466. coroutine.resume(coroutine.create(function()
  2467. for i=0,1,0.1 do
  2468. wait()
  2469. v.Transparency=v.Transparency-0.1
  2470. end
  2471. v.Transparency=0
  2472. end))
  2473. v.Transparency=0
  2474. end
  2475. end
  2476. end
  2477.  
  2478. local origcolor = BrickColor.new("Pastel light blue")
  2479. ---- This section of explosions.
  2480.  
  2481. ----
  2482.  
  2483.  
  2484. function ring(type,pos,scale,value)
  2485. local type = type
  2486. local rng = Instance.new("Part", char)
  2487. rng.Anchored = true
  2488. rng.BrickColor = origcolor
  2489. rng.CanCollide = false
  2490. rng.FormFactor = 3
  2491. rng.Name = "Ring"
  2492. rng.Size = Vector3.new(1, 1, 1)
  2493. rng.Transparency = 0
  2494. rng.TopSurface = 0
  2495. rng.BottomSurface = 0
  2496. rng.CFrame = pos
  2497. local rngm = Instance.new("SpecialMesh", rng)
  2498. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2499. rngm.Scale = scale
  2500. local scaler2 = 1
  2501. if type == "Add" then
  2502. scaler2 = 1*value
  2503. elseif type == "Divide" then
  2504. scaler2 = 1/value
  2505. end
  2506. coroutine.resume(coroutine.create(function()
  2507. for i = 0,10,0.1 do
  2508. swait()
  2509. if type == "Add" then
  2510. scaler2 = scaler2 - 0.01*value
  2511. elseif type == "Divide" then
  2512. scaler2 = scaler2 - 0.01/value
  2513. end
  2514. rng.Transparency = rng.Transparency + 0.01
  2515. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2516. end
  2517. rng:Destroy()
  2518. end))
  2519. end
  2520.  
  2521.  
  2522. function wave(type,pos,scale,value)
  2523. local type = type
  2524. local rng = Instance.new("Part", char)
  2525. rng.Anchored = true
  2526. rng.BrickColor = origcolor
  2527. rng.CanCollide = false
  2528. rng.FormFactor = 3
  2529. rng.Name = "Ring"
  2530. rng.Size = Vector3.new(1, 1, 1)
  2531. rng.Transparency = 0
  2532. rng.TopSurface = 0
  2533. rng.BottomSurface = 0
  2534. rng.CFrame = pos
  2535. local rngm = Instance.new("SpecialMesh", rng)
  2536. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2537. rngm.Scale = scale
  2538. local scaler2 = 1
  2539. if type == "Add" then
  2540. scaler2 = 1*value
  2541. elseif type == "Divide" then
  2542. scaler2 = 1/value
  2543. end
  2544. coroutine.resume(coroutine.create(function()
  2545. for i = 0,10,0.1 do
  2546. swait()
  2547. if type == "Add" then
  2548. scaler2 = scaler2 - 0.01*value
  2549. elseif type == "Divide" then
  2550. scaler2 = scaler2 - 0.01/value
  2551. end
  2552. rng.Transparency = rng.Transparency + 0.01
  2553. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2554. end
  2555. rng:Destroy()
  2556. end))
  2557. end
  2558.  
  2559. function wind(type,pos,scale,value,speed)
  2560. local type = type
  2561. local rng = Instance.new("Part", char)
  2562. rng.Anchored = true
  2563. rng.BrickColor = origcolor
  2564. rng.CanCollide = false
  2565. rng.FormFactor = 3
  2566. rng.Name = "Ring"
  2567. rng.Size = Vector3.new(1, 1, 1)
  2568. rng.Transparency = 0
  2569. rng.TopSurface = 0
  2570. rng.BottomSurface = 0
  2571. rng.CFrame = pos
  2572. local rngm = Instance.new("SpecialMesh", rng)
  2573. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2574. rngm.Scale = scale
  2575. local scaler2 = 1
  2576. if type == "Add" then
  2577. scaler2 = 1*value
  2578. elseif type == "Divide" then
  2579. scaler2 = 1/value
  2580. end
  2581. coroutine.resume(coroutine.create(function()
  2582. for i = 0,10,0.1 do
  2583. swait()
  2584. if type == "Add" then
  2585. scaler2 = scaler2 - 0.01*value
  2586. elseif type == "Divide" then
  2587. scaler2 = scaler2 - 0.01/value
  2588. end
  2589. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2590. rng.Transparency = rng.Transparency + 0.01
  2591. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2592. end
  2593. rng:Destroy()
  2594. end))
  2595. end
  2596.  
  2597. function groundwind(type,pos,scale,value,speed)
  2598. local type = type
  2599. local rng = Instance.new("Part", char)
  2600. rng.Anchored = true
  2601. rng.BrickColor = origcolor
  2602. rng.CanCollide = false
  2603. rng.FormFactor = 3
  2604. rng.Name = "Ring"
  2605. rng.Size = Vector3.new(1, 1, 1)
  2606. rng.Transparency = 0
  2607. rng.TopSurface = 0
  2608. rng.BottomSurface = 0
  2609. rng.CFrame = pos
  2610. local rngm = Instance.new("SpecialMesh", rng)
  2611. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2612. rngm.Scale = scale
  2613. local scaler2 = 1
  2614. if type == "Add" then
  2615. scaler2 = 1*value
  2616. elseif type == "Divide" then
  2617. scaler2 = 1/value
  2618. end
  2619. coroutine.resume(coroutine.create(function()
  2620. for i = 0,10,0.1 do
  2621. swait()
  2622. if type == "Add" then
  2623. scaler2 = scaler2 - 0.01*value
  2624. elseif type == "Divide" then
  2625. scaler2 = scaler2 - 0.01/value
  2626. end
  2627. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2628. rng.Transparency = rng.Transparency + 0.01
  2629. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2630. end
  2631. rng:Destroy()
  2632. end))
  2633. end
  2634.  
  2635. function CameraManager()
  2636. if TwoD and not CamInterrupt then
  2637. if Humanoid.Health > 0 then
  2638. Camera.CameraSubject = Humanoid
  2639. Camera.CameraType = "Scriptable"
  2640. Humanoid.AutoRotate = false
  2641. if Booleans.GyroUse then
  2642. Directer.MaxTorque = Vec3(0, huge, 0)
  2643. else
  2644. Directer.MaxTorque = Vec3(0, 0, 0)
  2645. end
  2646. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2647. if Booleans.CamFollow then
  2648. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2649. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2650. else
  2651. CPart.Position = RootPart.Position
  2652. end
  2653. else
  2654. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2655. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2656. end
  2657. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2658. else
  2659. Camera.CameraSubject = Humanoid
  2660. Camera.CameraType = "Custom"
  2661. Controller.Disabled = false
  2662. end
  2663. end
  2664. end
  2665.  
  2666. function ring(type,pos,scale,value)
  2667. local type = type
  2668. local rng = Instance.new("Part", char)
  2669. rng.Anchored = true
  2670. rng.BrickColor = origcolor
  2671. rng.CanCollide = false
  2672. rng.FormFactor = 3
  2673. rng.Name = "Ring"
  2674. rng.Size = Vector3.new(1, 1, 1)
  2675. rng.Transparency = 0
  2676. rng.TopSurface = 0
  2677. rng.BottomSurface = 0
  2678. rng.CFrame = pos
  2679. local rngm = Instance.new("SpecialMesh", rng)
  2680. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2681. rngm.Scale = scale
  2682. local scaler2 = 1
  2683. if type == "Add" then
  2684. scaler2 = 1*value
  2685. elseif type == "Divide" then
  2686. scaler2 = 1/value
  2687. end
  2688. coroutine.resume(coroutine.create(function()
  2689. for i = 0,10,0.1 do
  2690. swait()
  2691. if type == "Add" then
  2692. scaler2 = scaler2 - 0.01*value
  2693. elseif type == "Divide" then
  2694. scaler2 = scaler2 - 0.01/value
  2695. end
  2696. rng.Transparency = rng.Transparency + 0.01
  2697. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2698. end
  2699. rng:Destroy()
  2700. end))
  2701. end
  2702.  
  2703.  
  2704. function wave(type,pos,scale,value)
  2705. local type = type
  2706. local rng = Instance.new("Part", char)
  2707. rng.Anchored = true
  2708. rng.BrickColor = origcolor
  2709. rng.CanCollide = false
  2710. rng.FormFactor = 3
  2711. rng.Name = "Ring"
  2712. rng.Size = Vector3.new(1, 1, 1)
  2713. rng.Transparency = 0
  2714. rng.TopSurface = 0
  2715. rng.BottomSurface = 0
  2716. rng.CFrame = pos
  2717. local rngm = Instance.new("SpecialMesh", rng)
  2718. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2719. rngm.Scale = scale
  2720. local scaler2 = 1
  2721. if type == "Add" then
  2722. scaler2 = 1*value
  2723. elseif type == "Divide" then
  2724. scaler2 = 1/value
  2725. end
  2726. coroutine.resume(coroutine.create(function()
  2727. for i = 0,10,0.1 do
  2728. swait()
  2729. if type == "Add" then
  2730. scaler2 = scaler2 - 0.01*value
  2731. elseif type == "Divide" then
  2732. scaler2 = scaler2 - 0.01/value
  2733. end
  2734. rng.Transparency = rng.Transparency + 0.01
  2735. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2736. end
  2737. rng:Destroy()
  2738. end))
  2739. end
  2740.  
  2741. function sphere(bonuspeed,type,pos,scale,value,color)
  2742. local type = type
  2743. local rng = Instance.new("Part", char)
  2744. rng.Anchored = true
  2745. if ModeOfGlitch ~= 9 then
  2746. rng.BrickColor = color
  2747. elseif ModeOfGlitch == 9 then
  2748. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2749. end
  2750. rng.CanCollide = false
  2751. rng.FormFactor = 3
  2752. rng.Name = "Ring"
  2753. rng.Material = "Neon"
  2754. rng.Size = Vector3.new(1, 1, 1)
  2755. rng.Transparency = 0
  2756. rng.TopSurface = 0
  2757. rng.BottomSurface = 0
  2758. rng.CFrame = pos
  2759. local rngm = Instance.new("SpecialMesh", rng)
  2760. rngm.MeshType = "Sphere"
  2761. rngm.Scale = scale
  2762. if rainbowmode == true then
  2763. rng.Color = Color3.new(r/255,g/255,b/255)
  2764. end
  2765. if ModeOfGlitch == 9 then
  2766. coroutine.resume(coroutine.create(function()
  2767. while true do
  2768. swait()
  2769. if rng.Parent ~= nil then
  2770. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2771. else
  2772. break
  2773. end
  2774. end
  2775. end))
  2776. end
  2777. local scaler2 = 1
  2778. if type == "Add" then
  2779. scaler2 = 1*value
  2780. elseif type == "Divide" then
  2781. scaler2 = 1/value
  2782. end
  2783. coroutine.resume(coroutine.create(function()
  2784. for i = 0,10/bonuspeed,0.1 do
  2785. swait()
  2786. if rainbowmode == true then
  2787. rng.Color = Color3.new(r/255,g/255,b/255)
  2788. end
  2789. if type == "Add" then
  2790. scaler2 = scaler2 - 0.01*value/bonuspeed
  2791. elseif type == "Divide" then
  2792. scaler2 = scaler2 - 0.01/value*bonuspeed
  2793. end
  2794. if chaosmode == true then
  2795. rng.BrickColor = BrickColor.random()
  2796. end
  2797. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2798. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2799. end
  2800. rng:Destroy()
  2801. end))
  2802. end
  2803.  
  2804. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2805. local type = type
  2806. local rng = Instance.new("Part", char)
  2807. rng.Anchored = true
  2808. if ModeOfGlitch ~= 9 then
  2809. rng.BrickColor = color
  2810. elseif ModeOfGlitch == 9 then
  2811. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2812. end
  2813. rng.CanCollide = false
  2814. rng.FormFactor = 3
  2815. rng.Name = "Ring"
  2816. rng.Material = "Neon"
  2817. rng.Size = Vector3.new(1, 1, 1)
  2818. rng.Transparency = 0
  2819. rng.TopSurface = 0
  2820. rng.BottomSurface = 0
  2821. rng.CFrame = pos
  2822. local rngm = Instance.new("SpecialMesh", rng)
  2823. rngm.MeshType = "Sphere"
  2824. rngm.Scale = scale
  2825. local scaler2 = 1
  2826. local scaler2b = 1
  2827. local scaler2c = 1
  2828. if type == "Add" then
  2829. scaler2 = 1*value
  2830. scaler2b = 1*value2
  2831. scaler2c = 1*value3
  2832. elseif type == "Divide" then
  2833. scaler2 = 1/value
  2834. scaler2b = 1/value2
  2835. scaler2c = 1/value3
  2836. end
  2837. if ModeOfGlitch == 9 then
  2838. coroutine.resume(coroutine.create(function()
  2839. while true do
  2840. swait()
  2841. if rng.Parent ~= nil then
  2842. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2843. else
  2844. break
  2845. end
  2846. end
  2847. end))
  2848. end
  2849. coroutine.resume(coroutine.create(function()
  2850. for i = 0,10/bonuspeed,0.1 do
  2851. swait()
  2852. if type == "Add" then
  2853. scaler2 = scaler2 - 0.01*value/bonuspeed
  2854. scaler2b = scaler2b - 0.01*value/bonuspeed
  2855. scaler2c = scaler2c - 0.01*value/bonuspeed
  2856. elseif type == "Divide" then
  2857. scaler2 = scaler2 - 0.01/value*bonuspeed
  2858. scaler2b = scaler2b - 0.01/value*bonuspeed
  2859. scaler2c = scaler2c - 0.01/value*bonuspeed
  2860. end
  2861. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2862. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2863. end
  2864. rng:Destroy()
  2865. end))
  2866. end
  2867.  
  2868. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2869. local type = type
  2870. local rotenable = rotatingop
  2871. local rng = Instance.new("Part", char)
  2872. rng.Anchored = true
  2873. rng.BrickColor = color
  2874. rng.CanCollide = false
  2875. rng.FormFactor = 3
  2876. rng.Name = "Ring"
  2877. rng.Material = "Neon"
  2878. rng.Size = Vector3.new(1, 1, 1)
  2879. rng.Transparency = 0
  2880. if typeoftrans == "In" then
  2881. rng.Transparency = 1
  2882. end
  2883. rng.TopSurface = 0
  2884. rng.BottomSurface = 0
  2885. rng.CFrame = pos
  2886. local rngm = Instance.new("SpecialMesh", rng)
  2887. rngm.MeshType = "FileMesh"
  2888. if typeofshape == "Normal" then
  2889. rngm.MeshId = "rbxassetid://662586858"
  2890. elseif typeofshape == "Round" then
  2891. rngm.MeshId = "rbxassetid://662585058"
  2892. end
  2893. rngm.Scale = scale
  2894. local scaler2 = 1/10
  2895. if type == "Add" then
  2896. scaler2 = 1*value/10
  2897. elseif type == "Divide" then
  2898. scaler2 = 1/value/10
  2899. end
  2900. local randomrot = math.random(1,2)
  2901. coroutine.resume(coroutine.create(function()
  2902. for i = 0,10/bonuspeed,0.1 do
  2903. swait()
  2904. if type == "Add" then
  2905. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2906. elseif type == "Divide" then
  2907. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2908. end
  2909. if rotenable == true then
  2910. if randomrot == 1 then
  2911. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2912. elseif randomrot == 2 then
  2913. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2914. end
  2915. end
  2916. if typeoftrans == "Out" then
  2917. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2918. elseif typeoftrans == "In" then
  2919. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2920. end
  2921. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2922. end
  2923. rng:Destroy()
  2924. end))
  2925. end
  2926.  
  2927. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2928. local type = type
  2929. local rng = Instance.new("Part", char)
  2930. rng.Anchored = true
  2931. rng.BrickColor = color
  2932. rng.CanCollide = false
  2933. rng.FormFactor = 3
  2934. rng.Name = "Ring"
  2935. rng.Material = "Neon"
  2936. rng.Size = Vector3.new(1, 1, 1)
  2937. rng.Transparency = 0
  2938. rng.TopSurface = 0
  2939. rng.BottomSurface = 0
  2940. rng.CFrame = pos
  2941. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2942. local rngm = Instance.new("SpecialMesh", rng)
  2943. rngm.MeshType = "Brick"
  2944. rngm.Scale = vt(x1,y1,z1)
  2945. if rainbowmode == true then
  2946. rng.Color = Color3.new(r/255,g/255,b/255)
  2947. end
  2948. local scaler2 = 1
  2949. local speeder = FastSpeed/10
  2950. if type == "Add" then
  2951. scaler2 = 1*value
  2952. elseif type == "Divide" then
  2953. scaler2 = 1/value
  2954. end
  2955. coroutine.resume(coroutine.create(function()
  2956. for i = 0,10/bonuspeed,0.1 do
  2957. swait()
  2958. if rainbowmode == true then
  2959. rng.Color = Color3.new(r/255,g/255,b/255)
  2960. end
  2961. if type == "Add" then
  2962. scaler2 = scaler2 - 0.01*value/bonuspeed
  2963. elseif type == "Divide" then
  2964. scaler2 = scaler2 - 0.01/value*bonuspeed
  2965. end
  2966. if chaosmode == true then
  2967. rng.BrickColor = BrickColor.random()
  2968. end
  2969. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2970. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2971. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2972. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2973. end
  2974. rng:Destroy()
  2975. end))
  2976. end
  2977.  
  2978. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2979. local type = type
  2980. local rng = Instance.new("Part", char)
  2981. rng.Anchored = true
  2982. rng.BrickColor = color
  2983. rng.CanCollide = false
  2984. rng.FormFactor = 3
  2985. rng.Name = "Ring"
  2986. rng.Material = "Neon"
  2987. rng.Size = Vector3.new(1, 1, 1)
  2988. rng.Transparency = 0
  2989. rng.TopSurface = 0
  2990. rng.BottomSurface = 0
  2991. rng.CFrame = pos
  2992. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2993. local rngm = Instance.new("SpecialMesh", rng)
  2994. rngm.MeshType = "Brick"
  2995. rngm.Scale = vt(x1,y1,z1)
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. local scaler2 = 1
  3000. local speeder = FastSpeed/10
  3001. if type == "Add" then
  3002. scaler2 = 1*value
  3003. elseif type == "Divide" then
  3004. scaler2 = 1/value
  3005. end
  3006. coroutine.resume(coroutine.create(function()
  3007. for i = 0,10/bonuspeed,0.1 do
  3008. swait()
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. if type == "Add" then
  3013. scaler2 = scaler2 - 0.01*value/bonuspeed
  3014. elseif type == "Divide" then
  3015. scaler2 = scaler2 - 0.01/value*bonuspeed
  3016. end
  3017. if chaosmode == true then
  3018. rng.BrickColor = BrickColor.random()
  3019. end
  3020. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3021. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3022. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3023. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3024. end
  3025. rng:Destroy()
  3026. end))
  3027. end
  3028.  
  3029. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3030. local type = type
  3031. local rng = Instance.new("Part", char)
  3032. rng.Anchored = true
  3033. rng.BrickColor = color
  3034. rng.CanCollide = false
  3035. rng.FormFactor = 3
  3036. rng.Name = "Ring"
  3037. rng.Material = "Neon"
  3038. rng.Size = Vector3.new(1, 1, 1)
  3039. rng.Transparency = 0
  3040. rng.TopSurface = 0
  3041. rng.BottomSurface = 0
  3042. rng.CFrame = pos
  3043. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3044. local rngm = Instance.new("SpecialMesh", rng)
  3045. rngm.MeshType = "Brick"
  3046. rngm.Scale = vt(x1,y1,z1)
  3047. if rainbowmode == true then
  3048. rng.Color = Color3.new(r/255,g/255,b/255)
  3049. end
  3050. local scaler2 = 0
  3051. local speeder = FastSpeed/10
  3052. if type == "Add" then
  3053. scaler2 = 1*value
  3054. elseif type == "Divide" then
  3055. scaler2 = 1/value
  3056. end
  3057. coroutine.resume(coroutine.create(function()
  3058. for i = 0,10/bonuspeed,0.1 do
  3059. swait()
  3060. if rainbowmode == true then
  3061. rng.Color = Color3.new(r/255,g/255,b/255)
  3062. end
  3063. if type == "Add" then
  3064. scaler2 = scaler2 - 0.01*value/bonuspeed
  3065. elseif type == "Divide" then
  3066. scaler2 = scaler2 - 0.01/value*bonuspeed
  3067. end
  3068. if chaosmode == true then
  3069. rng.BrickColor = BrickColor.random()
  3070. end
  3071. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3072. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3073. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3074. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3075. end
  3076. rng:Destroy()
  3077. end))
  3078. end
  3079.  
  3080. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3081. local type = type
  3082. local rng = Instance.new("Part", char)
  3083. rng.Anchored = true
  3084. rng.BrickColor = color
  3085. rng.Color = color3
  3086. rng.CanCollide = false
  3087. rng.FormFactor = 3
  3088. rng.Name = "Ring"
  3089. rng.Material = "Neon"
  3090. rng.Size = Vector3.new(1, 1, 1)
  3091. rng.Transparency = 0
  3092. rng.TopSurface = 0
  3093. rng.BottomSurface = 0
  3094. rng.CFrame = pos
  3095. local rngm = Instance.new("SpecialMesh", rng)
  3096. rngm.MeshType = "Brick"
  3097. rngm.Scale = scale
  3098. local scaler2 = 1
  3099. local scaler2b = 1
  3100. local scaler2c = 1
  3101. if type == "Add" then
  3102. scaler2 = 1*value
  3103. scaler2b = 1*value2
  3104. scaler2c = 1*value3
  3105. elseif type == "Divide" then
  3106. scaler2 = 1/value
  3107. scaler2b = 1/value2
  3108. scaler2c = 1/value3
  3109. end
  3110. coroutine.resume(coroutine.create(function()
  3111. for i = 0,10/bonuspeed,0.1 do
  3112. swait()
  3113. if type == "Add" then
  3114. scaler2 = scaler2 - 0.01*value/bonuspeed
  3115. scaler2b = scaler2b - 0.01*value/bonuspeed
  3116. scaler2c = scaler2c - 0.01*value/bonuspeed
  3117. elseif type == "Divide" then
  3118. scaler2 = scaler2 - 0.01/value*bonuspeed
  3119. scaler2b = scaler2b - 0.01/value*bonuspeed
  3120. scaler2c = scaler2c - 0.01/value*bonuspeed
  3121. end
  3122. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3123. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3124. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3125. end
  3126. rng:Destroy()
  3127. end))
  3128. end
  3129.  
  3130. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3131. local type = type
  3132. local rng = Instance.new("Part", char)
  3133. rng.Anchored = true
  3134. if ModeOfGlitch ~= 9 then
  3135. rng.BrickColor = color
  3136. elseif ModeOfGlitch == 9 then
  3137. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3138. end
  3139. rng.CanCollide = false
  3140. rng.FormFactor = 3
  3141. rng.Name = "Ring"
  3142. rng.Material = "Neon"
  3143. rng.Size = Vector3.new(1, 1, 1)
  3144. rng.Transparency = 0
  3145. rng.TopSurface = 0
  3146. rng.BottomSurface = 0
  3147. rng.CFrame = pos
  3148. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3149. local rngm = Instance.new("SpecialMesh", rng)
  3150. rngm.MeshType = "Sphere"
  3151. rngm.Scale = vt(x1,y1,z1)
  3152. if rainbowmode == true then
  3153. rng.Color = Color3.new(r/255,g/255,b/255)
  3154. end
  3155. if ModeOfGlitch == 9 then
  3156. coroutine.resume(coroutine.create(function()
  3157. while true do
  3158. swait()
  3159. if rng.Parent ~= nil then
  3160. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3161. else
  3162. break
  3163. end
  3164. end
  3165. end))
  3166. end
  3167. local scaler2 = 1
  3168. local speeder = FastSpeed
  3169. if type == "Add" then
  3170. scaler2 = 1*value
  3171. elseif type == "Divide" then
  3172. scaler2 = 1/value
  3173. end
  3174. coroutine.resume(coroutine.create(function()
  3175. for i = 0,10/bonuspeed,0.1 do
  3176. swait()
  3177. if rainbowmode == true then
  3178. rng.Color = Color3.new(r/255,g/255,b/255)
  3179. end
  3180. if type == "Add" then
  3181. scaler2 = scaler2 - 0.01*value/bonuspeed
  3182. elseif type == "Divide" then
  3183. scaler2 = scaler2 - 0.01/value*bonuspeed
  3184. end
  3185. if chaosmode == true then
  3186. rng.BrickColor = BrickColor.random()
  3187. end
  3188. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3189. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3190. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3191. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3192. end
  3193. rng:Destroy()
  3194. end))
  3195. end
  3196.  
  3197.  
  3198. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3199. local type = type
  3200. local rng = Instance.new("Part", char)
  3201. rng.Anchored = true
  3202. if ModeOfGlitch ~= 9 then
  3203. rng.BrickColor = color
  3204. elseif ModeOfGlitch == 9 then
  3205. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3206. end
  3207. rng.CanCollide = false
  3208. rng.FormFactor = 3
  3209. rng.Name = "Ring"
  3210. rng.Material = "Neon"
  3211. rng.Size = Vector3.new(1, 1, 1)
  3212. rng.Transparency = 1
  3213. rng.TopSurface = 0
  3214. rng.BottomSurface = 0
  3215. rng.CFrame = pos
  3216. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3217. local rngm = Instance.new("SpecialMesh", rng)
  3218. rngm.MeshType = "Sphere"
  3219. rngm.Scale = vt(x1,y1,z1)
  3220. if rainbowmode == true then
  3221. rng.Color = Color3.new(r/255,g/255,b/255)
  3222. end
  3223. if ModeOfGlitch == 9 then
  3224. coroutine.resume(coroutine.create(function()
  3225. while true do
  3226. swait()
  3227. if rng.Parent ~= nil then
  3228. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3229. else
  3230. break
  3231. end
  3232. end
  3233. end))
  3234. end
  3235. local scaler2 = 1
  3236. local speeder = FastSpeed
  3237. if type == "Add" then
  3238. scaler2 = 1*value
  3239. elseif type == "Divide" then
  3240. scaler2 = 1/value
  3241. end
  3242. coroutine.resume(coroutine.create(function()
  3243. for i = 0,10/bonuspeed,0.1 do
  3244. swait()
  3245. if rainbowmode == true then
  3246. rng.Color = Color3.new(r/255,g/255,b/255)
  3247. end
  3248. if type == "Add" then
  3249. scaler2 = scaler2 - 0.01*value/bonuspeed
  3250. elseif type == "Divide" then
  3251. scaler2 = scaler2 - 0.01/value*bonuspeed
  3252. end
  3253. if chaosmode == true then
  3254. rng.BrickColor = BrickColor.random()
  3255. end
  3256. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3257. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3258. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3259. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3260. end
  3261. rng:Destroy()
  3262. end))
  3263. end
  3264.  
  3265. function dmg(dude)
  3266. if dude.Name ~= Character then
  3267. local keptcolor = MAINRUINCOLOR
  3268. local bgf = Instance.new("BodyGyro",dude.Head)
  3269. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3270. --[[local val = Instance.new("BoolValue",dude)
  3271. val.Name = "IsHit"]]--
  3272. local ds = coroutine.wrap(function()
  3273. dude:WaitForChild("Head"):BreakJoints()
  3274. for i, v in pairs(dude:GetChildren()) do
  3275. if v:IsA("Part") or v:IsA("MeshPart") then
  3276. v.Name = "DEMINISHED"
  3277. end
  3278. end
  3279. wait(0.5)
  3280. targetted = nil
  3281. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3282. coroutine.resume(coroutine.create(function()
  3283. for i, v in pairs(dude:GetChildren()) do
  3284. if v:IsA("Accessory") then
  3285. v:Destroy()
  3286. end
  3287. if v:IsA("Humanoid") then
  3288. v:Destroy()
  3289. end
  3290. if v:IsA("CharacterMesh") then
  3291. v:Destroy()
  3292. end
  3293. if v:IsA("Model") then
  3294. v:Destroy()
  3295. end
  3296. if v:IsA("Part") or v:IsA("MeshPart") then
  3297. for x, o in pairs(v:GetChildren()) do
  3298. if o:IsA("Decal") then
  3299. o:Destroy()
  3300. end
  3301. end
  3302. coroutine.resume(coroutine.create(function()
  3303. v.Material = "Neon"
  3304. v.CanCollide = false
  3305. v.Anchored = false
  3306. local bld = Instance.new("ParticleEmitter",v)
  3307. bld.LightEmission = 0.75
  3308. bld.Texture = "rbxassetid://363275192" ---284205403
  3309. bld.Color = ColorSequence.new(keptcolor.Color)
  3310. bld.Rate = 500
  3311. bld.Lifetime = NumberRange.new(1)
  3312. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3313. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3314. bld.Speed = NumberRange.new(2,5)
  3315. bld.VelocitySpread = 50000
  3316. bld.Rotation = NumberRange.new(-500,500)
  3317. bld.RotSpeed = NumberRange.new(-500,500)
  3318. local sbs = Instance.new("BodyPosition", v)
  3319. sbs.P = 3000
  3320. sbs.D = 1000
  3321. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3322. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3323. v.Color = keptcolor.Color
  3324. coroutine.resume(coroutine.create(function()
  3325. for i = 0, 49 do
  3326. swait(1)
  3327. v:BreakJoints()
  3328. v.Transparency = v.Transparency + 0.02
  3329. end
  3330. v:BreakJoints()
  3331. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3332. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3333. bld.Speed = NumberRange.new(10,25)
  3334. bld.Drag = 5
  3335. bld.Acceleration = vt(0,2,0)
  3336. wait(0.5)
  3337. bld.Enabled = false
  3338. wait(8)
  3339. v:Destroy()
  3340. dude:Destroy()
  3341. end))
  3342. end))
  3343. end
  3344. end
  3345. end))
  3346. end)
  3347. ds()
  3348. end
  3349. end
  3350.  
  3351.  
  3352. function FindNearestHead(Position, Distance, SinglePlayer)
  3353. if SinglePlayer then
  3354. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3355. end
  3356. local List = {}
  3357. for i, v in pairs(workspace:GetChildren()) do
  3358. if v:IsA("Model") then
  3359. if v:findFirstChild("Head") then
  3360. if v ~= Character then
  3361. if (v.Head.Position - Position).magnitude <= Distance then
  3362. table.insert(List, v)
  3363. end
  3364. end
  3365. end
  3366. end
  3367. end
  3368. return List
  3369. end
  3370.  
  3371. function FaceMouse()
  3372. Cam = workspace.CurrentCamera
  3373. return {
  3374. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3375. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3376. }
  3377. end
  3378.  
  3379. function FaceMouse2()
  3380. Cam = workspace.CurrentCamera
  3381. return {
  3382. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3383. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3384. }
  3385. end
  3386.  
  3387. local ModeOfGlitch = 1
  3388. -- Functions are ready.
  3389. local storehumanoidWS = 16
  3390.  
  3391. function CorruptBlink()
  3392. for i = 0, 14 do
  3393. 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)
  3394. end
  3395. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3396. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3397. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3398. CameraEnshaking(2,10)
  3399. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3400. if v:FindFirstChild('Head') then
  3401. dmg(v)
  3402. end
  3403. end
  3404. for i = 0, 14 do
  3405. 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)
  3406. end
  3407. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3408. end
  3409. function PureBomb()
  3410. attack = true
  3411. hum.WalkSpeed = 0
  3412. local orb = Instance.new("Part", char)
  3413. orb.Anchored = true
  3414. orb.BrickColor = BrickColor.new("Toothpaste")
  3415. orb.CanCollide = false
  3416. orb.FormFactor = 3
  3417. orb.Name = "Ring"
  3418. orb.Material = "Neon"
  3419. orb.Size = Vector3.new(1, 1, 1)
  3420. orb.Transparency = 0
  3421. orb.TopSurface = 0
  3422. orb.BottomSurface = 0
  3423. local orbm = Instance.new("SpecialMesh", orb)
  3424. orbm.MeshType = "Sphere"
  3425. orbm.Name = "SizeMesh"
  3426. orbm.Scale = vt(0,0,0)
  3427. local scaled = 0.1
  3428. local posid = 0
  3429. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3430. for i = 0, 5, 0.1 do
  3431. swait()
  3432. scaled = scaled - 0.001
  3433. posid = posid - scaled
  3434. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3435. local scaled = 0.1
  3436. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3437. 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)
  3438. 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)
  3439. 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)
  3440. 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)
  3441. 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)
  3442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3444. 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)
  3445. end
  3446. for i = 0, 2, 0.1 do
  3447. swait()
  3448. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3449. 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)
  3450. 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)
  3451. 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)
  3452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3454. 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)
  3455. end
  3456. coroutine.resume(coroutine.create(function()
  3457. orb.Anchored = false
  3458. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3459. local a = Instance.new("Part",workspace)
  3460. a.Name = "Direction"
  3461. a.Anchored = true
  3462. a.BrickColor = bc("Bright red")
  3463. a.Material = "Neon"
  3464. a.Transparency = 1
  3465. a.CanCollide = false
  3466. local ray = Ray.new(
  3467. orb.CFrame.p, -- origin
  3468. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3469. )
  3470. local ignore = orb
  3471. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3472. a.BottomSurface = 10
  3473. a.TopSurface = 10
  3474. local distance = (orb.CFrame.p - position).magnitude
  3475. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3476. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3477. orb.CFrame = a.CFrame
  3478. a:Destroy()
  3479. local bv = Instance.new("BodyVelocity")
  3480. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3481. bv.velocity = orb.CFrame.lookVector*125
  3482. bv.Parent = orb
  3483. local hitted = false
  3484. game:GetService("Debris"):AddItem(orb, 15)
  3485. wait()
  3486. local hit =orb.Touched:connect(function(hit)
  3487. if hitted == false then
  3488. hitted = true
  3489. CameraEnshaking(10,2.5)
  3490. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3491. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3492. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3493. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3494. for i = 0, 49 do
  3495. 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)
  3496. end
  3497. for i = 0, 9 do
  3498. 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)
  3499. 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)
  3500. end
  3501. orb.Anchored = true
  3502. orb.Transparency = 1
  3503. wait(8)
  3504. orb:Destroy()
  3505. end
  3506. end)
  3507. end))
  3508. for i = 0, 1, 0.1 do
  3509. swait()
  3510. 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)
  3511. 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)
  3512. 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)
  3513. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3514. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3515. 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)
  3516. end
  3517. hum.WalkSpeed = storehumanoidWS
  3518. attack = false
  3519. end
  3520.  
  3521. function BanishingOrb()
  3522. attack = true
  3523. hum.WalkSpeed = 0
  3524. local radm = math.random(1,3)
  3525. if radm == 1 then
  3526. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3527. elseif radm == 2 then
  3528. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3529. elseif radm == 3 then
  3530. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3531. end
  3532. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3533. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3534. local orb = Instance.new("Part", char)
  3535. orb.Anchored = true
  3536. orb.BrickColor = BrickColor.new("Lime green")
  3537. orb.CanCollide = false
  3538. orb.FormFactor = 3
  3539. orb.Name = "Ring"
  3540. orb.Material = "Neon"
  3541. orb.Size = Vector3.new(1, 1, 1)
  3542. orb.Transparency = 0
  3543. orb.TopSurface = 0
  3544. orb.BottomSurface = 0
  3545. local orbm = Instance.new("SpecialMesh", orb)
  3546. orbm.MeshType = "Sphere"
  3547. orbm.Name = "SizeMesh"
  3548. orbm.Scale = vt(0,0,0)
  3549. local scaled = 0.1
  3550. local posid = 0
  3551. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3552. for i = 0, 5, 0.1 do
  3553. swait()
  3554. scaled = scaled - 0.001
  3555. posid = posid - scaled
  3556. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3557. local scaled = 0.1
  3558. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3559. 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)
  3560. 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)
  3561. 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)
  3562. 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)
  3563. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3564. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3565. 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)
  3566. end
  3567. for i = 0, 2, 0.1 do
  3568. swait()
  3569. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3570. 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)
  3571. 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)
  3572. 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)
  3573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3574. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3575. 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)
  3576. end
  3577. coroutine.resume(coroutine.create(function()
  3578. orb.Anchored = false
  3579. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3580. local a = Instance.new("Part",workspace)
  3581. a.Name = "Direction"
  3582. a.Anchored = true
  3583. a.BrickColor = bc("Lime green")
  3584. a.Material = "Neon"
  3585. a.Transparency = 1
  3586. a.CanCollide = false
  3587. local ray = Ray.new(
  3588. orb.CFrame.p, -- origin
  3589. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3590. )
  3591. local ignore = orb
  3592. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3593. a.BottomSurface = 10
  3594. a.TopSurface = 10
  3595. local distance = (orb.CFrame.p - position).magnitude
  3596. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3597. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3598. orb.CFrame = a.CFrame
  3599. a:Destroy()
  3600. local bv = Instance.new("BodyVelocity")
  3601. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3602. bv.velocity = orb.CFrame.lookVector*0
  3603. bv.Parent = orb
  3604. local hitted = false
  3605. local rate = 0
  3606. coroutine.resume(coroutine.create(function()
  3607. for i = 0, 24 do
  3608. wait(0.1)
  3609. rate = rate + 0.25
  3610. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3611. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3612. if v:FindFirstChild('Head') then
  3613. dmg(v)
  3614. end
  3615. end
  3616. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3617. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3618. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3619. end
  3620. orb.Anchored = true
  3621. orb.Transparency = 1
  3622. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3623. if v:FindFirstChild('Head') then
  3624. dmg(v)
  3625. end
  3626. end
  3627. local eff = Instance.new("ParticleEmitter",orb)
  3628. eff.Texture = "rbxassetid://296874871"
  3629. eff.LightEmission = 0.95
  3630. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3631. eff.Rate = 1000000000
  3632. eff.Lifetime = NumberRange.new(3)
  3633. 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)})
  3634. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3635. eff.Speed = NumberRange.new(30)
  3636. eff.Acceleration = vt(0,-15,0)
  3637. eff.Rotation = NumberRange.new(-500,500)
  3638. eff.VelocitySpread = 100000
  3639. eff.RotSpeed = NumberRange.new(-500,500)
  3640. coroutine.resume(coroutine.create(function()
  3641. wait(0.6)
  3642. eff.Enabled = false
  3643. end))
  3644. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3645. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3646. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3647. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3648. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3649. game:GetService("Debris"):AddItem(orb, 15)
  3650. end))
  3651. end))
  3652. for i = 0, 1, 0.1 do
  3653. swait()
  3654. 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)
  3655. 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)
  3656. 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)
  3657. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3658. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3659. 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)
  3660. end
  3661. hum.WalkSpeed = storehumanoidWS
  3662. attack = false
  3663. end
  3664.  
  3665.  
  3666. function ChaosGroundStrike()
  3667. attack = true
  3668. for i = 0, 2, 0.1 do
  3669. swait()
  3670. 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)
  3671. 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)
  3672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3674. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3675. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3676. end
  3677. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3678. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3679. CameraEnshaking(4,12)
  3680. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3681. if v:FindFirstChild('Head') then
  3682. dmg(v)
  3683. end
  3684. end
  3685. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3686. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3687. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3688. for i = 0, 2, 0.1 do
  3689. swait()
  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. 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)
  3692. 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)
  3693. 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)
  3694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3696. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3698. end
  3699. attack = false
  3700. end
  3701.  
  3702.  
  3703.  
  3704. function Starfall()
  3705. attack = true
  3706. hum.WalkSpeed = 0
  3707. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3708. for i = 0, 5, 0.1 do
  3709. swait()
  3710. 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)
  3711. 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)
  3712. 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)
  3713. 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)
  3714. 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)
  3715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3716. 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)
  3717. 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)
  3718. end
  3719. local Overed = false
  3720. CameraEnshaking(2,20)
  3721. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3722. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3723. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3724. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3725. local orb = Instance.new("Part", char)
  3726. orb.Anchored = true
  3727. orb.BrickColor = BrickColor.new("Toothpaste")
  3728. orb.CanCollide = false
  3729. orb.FormFactor = 3
  3730. orb.Name = "Remenant"
  3731. orb.Material = "Neon"
  3732. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3733. orb.Size = Vector3.new(1, 1, 1)
  3734. orb.Transparency = 1
  3735. orb.TopSurface = 0
  3736. orb.BottomSurface = 0
  3737. hum.WalkSpeed = storehumanoidWS
  3738. coroutine.resume(coroutine.create(function()
  3739. for i = 0, 9 do
  3740. swait(10)
  3741. local lb = Instance.new("Part")
  3742. lb.Color = MAINRUINCOLOR.Color
  3743. lb.CanCollide = false
  3744. lb.Material = "Neon"
  3745. lb.Anchored = true
  3746. lb.TopSurface = 0
  3747. lb.BottomSurface = 0
  3748. lb.Transparency = 0
  3749. lb.Size = vt(1,1,1)
  3750. 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)))
  3751. lb.Anchored = false
  3752. lb.Parent = char
  3753. local thingery = Instance.new("SpecialMesh",lb)
  3754. thingery.MeshType = "Sphere"
  3755. thingery.Scale = vt(20,20,20)
  3756. game:GetService("Debris"):AddItem(lb, 10)
  3757. local bv = Instance.new("BodyVelocity")
  3758. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3759. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3760. bv.Parent = lb
  3761. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3762. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3763. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3764. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3765. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3766. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3767. local hitted = false
  3768. coroutine.resume(coroutine.create(function()
  3769. while true do
  3770. swait(1)
  3771. if lb.Parent ~= nil and hitted == false then
  3772. 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)
  3773. elseif lb.Parent == nil then
  3774. break
  3775. end
  3776. end
  3777. end))
  3778.  
  3779. game:GetService("Debris"):AddItem(a, 0.1)
  3780.  
  3781. coroutine.resume(coroutine.create(function()
  3782. swait(1)
  3783. lb.Touched:connect(function(hit)
  3784. if hitted == false then
  3785. hitted = true
  3786. lb.Transparency = 1
  3787. lb.Anchored = true
  3788. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3789. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3790. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3791. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3792. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3793. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3794. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3795. CameraEnshaking(1,5)
  3796. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3797. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3798. for i = 0, 9 do
  3799. 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)
  3800. end
  3801. for i = 0, 49 do
  3802. swait()
  3803. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3804. 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)
  3805. end
  3806. end
  3807. end)
  3808. end))
  3809. end
  3810. Overed = true
  3811. orb:Destroy()
  3812. end))
  3813.  
  3814. attack = false
  3815. end
  3816.  
  3817. function StarfallEX()
  3818. attack = true
  3819. hum.WalkSpeed = 0
  3820. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3821. for i = 0, 10, 0.1 do
  3822. swait()
  3823. 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)
  3824. 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)
  3825. 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)
  3826. 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)
  3827. 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)
  3828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3829. 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)
  3830. 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)
  3831. end
  3832. local Overed = false
  3833. CameraEnshaking(2,20)
  3834. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3835. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3836. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3837. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3838. local orb = Instance.new("Part", char)
  3839. orb.Anchored = true
  3840. orb.BrickColor = BrickColor.new("Toothpaste")
  3841. orb.CanCollide = false
  3842. orb.FormFactor = 3
  3843. orb.Name = "Remenant"
  3844. orb.Material = "Neon"
  3845. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3846. orb.Size = Vector3.new(1, 1, 1)
  3847. orb.Transparency = 1
  3848. orb.TopSurface = 0
  3849. orb.BottomSurface = 0
  3850. hum.WalkSpeed = storehumanoidWS
  3851. coroutine.resume(coroutine.create(function()
  3852. for i = 0, 4 do
  3853. swait(15)
  3854. local lb = Instance.new("Part")
  3855. lb.Color = MAINRUINCOLOR.Color
  3856. lb.CanCollide = false
  3857. lb.Material = "Neon"
  3858. lb.Anchored = true
  3859. lb.TopSurface = 0
  3860. lb.BottomSurface = 0
  3861. lb.Transparency = 0
  3862. lb.Size = vt(1,1,1)
  3863. 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)))
  3864. lb.Anchored = false
  3865. lb.Parent = char
  3866. local thingery = Instance.new("SpecialMesh",lb)
  3867. thingery.MeshType = "Sphere"
  3868. thingery.Scale = vt(50,50,50)
  3869. game:GetService("Debris"):AddItem(lb, 10)
  3870. local bv = Instance.new("BodyVelocity")
  3871. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3872. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3873. bv.Parent = lb
  3874. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3875. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3876. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3877. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3878. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3879. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3880. local hitted = false
  3881. coroutine.resume(coroutine.create(function()
  3882. while true do
  3883. swait(1)
  3884. if lb.Parent ~= nil and hitted == false then
  3885. 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)
  3886. elseif lb.Parent == nil then
  3887. break
  3888. end
  3889. end
  3890. end))
  3891.  
  3892. game:GetService("Debris"):AddItem(a, 0.1)
  3893.  
  3894. coroutine.resume(coroutine.create(function()
  3895. swait(1)
  3896. lb.Touched:connect(function(hit)
  3897. if hitted == false then
  3898. hitted = true
  3899. lb.Transparency = 1
  3900. lb.Anchored = true
  3901. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3902. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3903. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3904. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3905. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3906. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3907. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3908. CameraEnshaking(1,5)
  3909. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3910. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3911. for i = 0, 9 do
  3912. 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)
  3913. end
  3914. for i = 0, 99 do
  3915. swait()
  3916. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3917. 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)
  3918. end
  3919. end
  3920. end)
  3921. end))
  3922. end
  3923. Overed = true
  3924. orb:Destroy()
  3925. end))
  3926.  
  3927. attack = false
  3928. end
  3929.  
  3930. function DivineBlast()
  3931. attack = true
  3932. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3933. hum.WalkSpeed = 0
  3934. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3935. elocacenter.Anchored = true
  3936. elocacenter.CFrame = sorb.CFrame
  3937. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3938. eloca1.Anchored = true
  3939. eloca1.CFrame = elocacenter.CFrame
  3940. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3941. eloca2.Anchored = true
  3942. eloca2.CFrame = elocacenter.CFrame
  3943. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3944. eloca3.Anchored = true
  3945. eloca3.CFrame = elocacenter.CFrame
  3946. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3947. eloca4.Anchored = true
  3948. eloca4.CFrame = elocacenter.CFrame
  3949. local lookavec = 0
  3950. local speeds = 0
  3951. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3952. for i = 0, 3, 0.1 do
  3953. swait()
  3954. ---
  3955. lookavec = lookavec + 0.1
  3956. speeds = speeds + 10
  3957. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3958. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3959. 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)
  3960.  
  3961. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3962. 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)
  3963.  
  3964. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3965. 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)
  3966.  
  3967. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3968. 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)
  3969. ---
  3970. root.CFrame = FaceMouse()[1]
  3971. 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)
  3972. 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)
  3973. 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)
  3974. 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)
  3975. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3976. 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)
  3977. end
  3978. for i = 0, 3, 0.1 do
  3979. swait()
  3980. ---
  3981. speeds = speeds + 10
  3982. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3983. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3984. 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)
  3985.  
  3986. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3987. 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)
  3988.  
  3989. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3990. 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)
  3991.  
  3992. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3993. 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)
  3994. ---
  3995. root.CFrame = FaceMouse()[1]
  3996. 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)
  3997. 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)
  3998. 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)
  3999. 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)
  4000. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4001. 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)
  4002. end
  4003. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4004. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4005. for i = 0, 3, 0.1 do
  4006. swait()
  4007. ---
  4008. speeds = speeds + 10
  4009. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4010. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4011. 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)
  4012.  
  4013. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4014. 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)
  4015.  
  4016. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4017. 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)
  4018.  
  4019. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4020. 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)
  4021. ---
  4022. root.CFrame = FaceMouse()[1]
  4023. 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)
  4024. 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)
  4025. 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)
  4026. 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)
  4027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4028. 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)
  4029. end
  4030. coroutine.resume(coroutine.create(function()
  4031. local a = Instance.new("Part",Character)
  4032. a.Name = "Direction"
  4033. a.Anchored = true
  4034. a.BrickColor = bc("White")
  4035. a.Material = "Neon"
  4036. a.Transparency = 0
  4037. a.Shape = "Cylinder"
  4038. a.CanCollide = false
  4039. local a2 = Instance.new("Part",Character)
  4040. a2.Name = "Direction"
  4041. a2.Anchored = true
  4042. a2.BrickColor = bc("Bright yellow")
  4043. a2.Material = "Neon"
  4044. a2.Transparency = 0
  4045. a2.Shape = "Cylinder"
  4046. a2.CanCollide = false
  4047. local b = Instance.new("Part",Character)
  4048. b.Name = "HitDirect"
  4049. b.Anchored = true
  4050. b.BrickColor = bc("Cool yellow")
  4051. b.Material = "Neon"
  4052. b.Transparency = 1
  4053. b.CanCollide = false
  4054. local ray = Ray.new(
  4055. elocacenter.CFrame.p, -- origin
  4056. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4057. )
  4058. local ignore = Character
  4059. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4060. a.BottomSurface = 10
  4061. a.TopSurface = 10
  4062. a2.BottomSurface = 10
  4063. a2.TopSurface = 10
  4064. local distance = (elocacenter.CFrame.p - position).magnitude
  4065. a.Size = Vector3.new(distance, 1, 1)
  4066. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4067. a2.Size = Vector3.new(distance, 1, 1)
  4068. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4069. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4070. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4071. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4072. game:GetService("Debris"):AddItem(a, 10)
  4073. game:GetService("Debris"):AddItem(a2, 10)
  4074. game:GetService("Debris"):AddItem(b, 10)
  4075. local eff = Instance.new("ParticleEmitter",b)
  4076. eff.Texture = "rbxassetid://2273224484"
  4077. eff.LightEmission = 1
  4078. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4079. eff.Rate = 500000
  4080. eff.Lifetime = NumberRange.new(0.5,2)
  4081. 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)})
  4082. 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)})
  4083. eff.Speed = NumberRange.new(20,250)
  4084. eff.Drag = 5
  4085. eff.Rotation = NumberRange.new(-500,500)
  4086. eff.VelocitySpread = 9000
  4087. eff.RotSpeed = NumberRange.new(-50,50)
  4088. coroutine.resume(coroutine.create(function()
  4089. wait(0.25)
  4090. eff.Enabled = false
  4091. end))
  4092. local msh = Instance.new("SpecialMesh",a)
  4093. msh.MeshType = "Cylinder"
  4094. msh.Scale = vt(1,2,2)
  4095. local msh2 = Instance.new("SpecialMesh",a2)
  4096. msh2.MeshType = "Cylinder"
  4097. msh2.Scale = vt(1,2.5,2.5)
  4098. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4099. coroutine.resume(coroutine.create(function()
  4100. for i = 0,10,0.1 do
  4101. swait()
  4102. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4103. a.Transparency = a.Transparency + 0.025
  4104. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4105. a2.Transparency = a2.Transparency + 0.05
  4106. end
  4107. a:Destroy()
  4108. a2:Destroy()
  4109. end))
  4110. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4111. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4112. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4113. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4114. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4115. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4116. MagniDamage(b, 25, 40,65, 0, "Normal")
  4117. for i = 0, 49 do
  4118. 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)
  4119. 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)
  4120. end
  4121. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4122. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4123. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4124. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4125. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4126. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4127. end))
  4128. game:GetService("Debris"):AddItem(elocacenter, 5)
  4129. hum.WalkSpeed = storehumanoidWS
  4130. attack = false
  4131. end
  4132.  
  4133. function StarDivision()
  4134. attack = true
  4135. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4136. for i = 0, 2, 0.1 do
  4137. swait()
  4138. 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)
  4139. 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)
  4140. 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)
  4141. 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)
  4142. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4143. 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)
  4144. end
  4145. local orb = Instance.new("Part", char)
  4146. orb.BrickColor = MAINRUINCOLOR
  4147. orb.CanCollide = false
  4148. orb.FormFactor = 3
  4149. orb.Name = "Ring"
  4150. orb.Material = "Neon"
  4151. orb.Size = Vector3.new(1, 1, 1)
  4152. orb.Transparency = 0
  4153. orb.TopSurface = 0
  4154. orb.BottomSurface = 0
  4155. local orbm = Instance.new("SpecialMesh", orb)
  4156. orbm.MeshType = "Sphere"
  4157. orbm.Name = "SizeMesh"
  4158. orbm.Scale = vt(2,2,2)
  4159. local a = Instance.new("Part",workspace)
  4160. a.Name = "Direction"
  4161. a.Anchored = true
  4162. a.BrickColor = bc("Bright red")
  4163. a.Material = "Neon"
  4164. a.Transparency = 1
  4165. a.CanCollide = false
  4166. local ray = Ray.new(
  4167. sorb.CFrame.p, -- origin
  4168. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4169. )
  4170. local ignore = sorb
  4171. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4172. a.BottomSurface = 10
  4173. a.TopSurface = 10
  4174. local distance = (sorb.CFrame.p - position).magnitude
  4175. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4176. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4177. orb.CFrame = a.CFrame
  4178. a:Destroy()
  4179. local bv = Instance.new("BodyVelocity")
  4180. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4181. bv.velocity = orb.CFrame.lookVector*100
  4182. bv.Parent = orb
  4183. local hitted = false
  4184. game:GetService("Debris"):AddItem(orb, 10)
  4185. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4186. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4187. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4188. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4189. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4190. coroutine.resume(coroutine.create(function()
  4191. while true do
  4192. swait(1)
  4193. if orb.Parent ~= nil and hitted == false then
  4194. 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)
  4195. elseif orb.Parent == nil then
  4196. break
  4197. end
  4198. end
  4199. end))
  4200. coroutine.resume(coroutine.create(function()
  4201. swait(1)
  4202. orb.Touched:connect(function(hit)
  4203. if hitted == false then
  4204. hitted = true
  4205. game:GetService("Debris"):AddItem(orb, 5)
  4206. orb.Transparency = 1
  4207. orb.Anchored = true
  4208. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4209. elocacenter.Anchored = true
  4210. elocacenter.CFrame = orb.CFrame
  4211. elocacenter.Orientation = vt(0,0,0)
  4212. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4213. eloca1.Anchored = true
  4214. eloca1.CFrame = elocacenter.CFrame
  4215. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4216. eloca2.Anchored = true
  4217. eloca2.CFrame = elocacenter.CFrame
  4218. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4219. eloca3.Anchored = true
  4220. eloca3.CFrame = elocacenter.CFrame
  4221. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4222. eloca4.Anchored = true
  4223. eloca4.CFrame = elocacenter.CFrame
  4224. local lookavec = 0
  4225. local speeds = 0
  4226. CameraEnshaking(1,1)
  4227. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4228. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4229. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4230. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4231. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4232. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4233. for i = 0, 99 do
  4234. swait()
  4235. lookavec = lookavec + 1
  4236. speeds = speeds + 0.1
  4237. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4238. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4239. 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)
  4240.  
  4241. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4242. 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)
  4243.  
  4244. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4245. 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)
  4246.  
  4247. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4248. 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)
  4249. end
  4250.  
  4251. for i = 0, 149 do
  4252. swait()
  4253. speeds = speeds + 0.1
  4254. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4255. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4256. 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)
  4257.  
  4258. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4259. 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)
  4260.  
  4261. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4262. 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)
  4263.  
  4264. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4265. 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)
  4266. end
  4267. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4268. if v:FindFirstChild('Head') then
  4269. dmg(v)
  4270. end
  4271. end
  4272. CameraEnshaking(7,30)
  4273. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4274. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4275. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4276. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4277. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4278. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4279. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4280. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4281. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4282. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4283. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4284. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4285. for i = 0, 24 do
  4286. 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)
  4287. 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)
  4288. 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)
  4289. 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)
  4290. end
  4291. coroutine.resume(coroutine.create(function()
  4292. for i = 0, 499 do
  4293. swait(1)
  4294. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4295. 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)
  4296. end
  4297. elocacenter:Destroy()
  4298. eloca1:Destroy()
  4299. eloca2:Destroy()
  4300. eloca3:Destroy()
  4301. eloca4:Destroy()
  4302. end))
  4303. end
  4304. end)
  4305. end))
  4306. attack = false
  4307. end
  4308.  
  4309.  
  4310. function THE_TRUE_POWER_OF_VIOLENCE()
  4311. attack = true
  4312. hum.WalkSpeed = 0
  4313. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4314. for i = 0, 10, 0.1 do
  4315. swait()
  4316. 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)
  4317. 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)
  4318. 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)
  4319. 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)
  4320. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4321. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4322. 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)
  4323. end
  4324. local orb = Instance.new("Part", char)
  4325. orb.BrickColor = MAINRUINCOLOR
  4326. orb.CanCollide = false
  4327. orb.FormFactor = 3
  4328. orb.Name = "Ring"
  4329. orb.Material = "Neon"
  4330. orb.Size = Vector3.new(1, 1, 1)
  4331. orb.Transparency = 0
  4332. orb.TopSurface = 0
  4333. orb.BottomSurface = 0
  4334. orb.CFrame = sorb.CFrame
  4335. local orbm = Instance.new("SpecialMesh", orb)
  4336. orbm.MeshType = "Sphere"
  4337. orbm.Name = "SizeMesh"
  4338. orbm.Scale = vt(0,0,0)
  4339. local sbs = Instance.new("BodyPosition", orb)
  4340. sbs.P = 3000
  4341. sbs.D = 1000
  4342. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4343. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4344. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4345. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4346. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4347. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4348. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4349. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4350. for i = 0, 10, 0.1 do
  4351. swait()
  4352. 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)
  4353. 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)
  4354. 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)
  4355. 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)
  4356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4358. 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)
  4359. end
  4360. orb.Anchored = true
  4361. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4362. elocacenter.Anchored = true
  4363. elocacenter.CFrame = orb.CFrame
  4364. elocacenter.Orientation = vt(0,0,0)
  4365. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4366. eloca1.Anchored = true
  4367. eloca1.CFrame = elocacenter.CFrame
  4368. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4369. eloca2.Anchored = true
  4370. eloca2.CFrame = elocacenter.CFrame
  4371. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4372. eloca3.Anchored = true
  4373. eloca3.CFrame = elocacenter.CFrame
  4374. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4375. eloca4.Anchored = true
  4376. eloca4.CFrame = elocacenter.CFrame
  4377. local lookavec = 0
  4378. local speeds = 0
  4379. CameraEnshaking(1,1)
  4380. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4381. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4382. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4383. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4384. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4385. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4386. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4387. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4388. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4389. for i = 0, 99 do
  4390. swait()
  4391. lookavec = lookavec + 2.5
  4392. speeds = speeds + 0.25
  4393. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4394. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4395. 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)
  4396.  
  4397. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4398. 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)
  4399.  
  4400. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4401. 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)
  4402.  
  4403. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4404. 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)
  4405. end
  4406.  
  4407. for i = 0, 149 do
  4408. swait()
  4409. speeds = speeds + 0.25
  4410. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4411. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4412. 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)
  4413.  
  4414. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4415. 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)
  4416.  
  4417. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4418. 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)
  4419.  
  4420. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4421. 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)
  4422. end
  4423. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4424. for i = 0, 99 do
  4425. swait()
  4426. lookavec = lookavec - 2.5
  4427. speeds = speeds + 0.25
  4428. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4429. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4430. 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)
  4431.  
  4432. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4433. 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)
  4434.  
  4435. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4436. 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)
  4437.  
  4438. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4439. 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)
  4440. end
  4441. local scaled = 0.1*75
  4442. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4443. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4444. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4445. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4446. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4447. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4448. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4449. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4450. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4451. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4452. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4453.  
  4454. for i = 0, 10, 0.1 do
  4455. swait()
  4456. scaled = scaled - 0.001*75
  4457. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4458. 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)
  4459. 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)
  4460. 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)
  4461. 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)
  4462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4463. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4464. 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)
  4465. end
  4466. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4467. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4468. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4469. for x = 0, 4 do
  4470. for i = 0, 9 do
  4471. 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)
  4472. end
  4473. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4474. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4475. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4476. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4477. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4480. for i = 0, 5, 0.1 do
  4481. swait()
  4482. 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)
  4483. 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)
  4484. 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)
  4485. 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)
  4486. 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)
  4487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4488. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4490. end
  4491. end
  4492. local speedearn = 0
  4493. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4494. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4495. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4496. for i = 0, 30, 0.1 do
  4497. swait()
  4498. scaled = scaled - 0.001*75/10
  4499. speedearn = speedearn + 0.5
  4500. for i = 0, 4 do
  4501. 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)
  4502. end
  4503. 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)
  4504. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4505. 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)
  4506. 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)
  4507. 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)
  4508. 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)
  4509. 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)
  4510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4511. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4512. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4513. end
  4514. orb.Transparency = 1
  4515. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4516. if v:FindFirstChild('Head') then
  4517. dmg(v)
  4518. end
  4519. end
  4520. CameraEnshaking(7,30)
  4521. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4522. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4523. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4524. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4525. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4526. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4527. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4528. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4529. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4530. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4531. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4532. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4533. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4534. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4535. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4536. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4537. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4540. for i = 0, 99 do
  4541. 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)
  4542. 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)
  4543. end
  4544. for i = 0, 24 do
  4545. 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)
  4546. 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)
  4547. 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)
  4548. 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)
  4549. 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)
  4550. end
  4551. game:GetService("Debris"):AddItem(orb, 10)
  4552. hum.WalkSpeed = storehumanoidWS
  4553. attack = false
  4554. end
  4555.  
  4556.  
  4557. function ViolentRing()
  4558. attack = true
  4559. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4560. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4561. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4562. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4563. for i = 0, 2, 0.1 do
  4564. swait()
  4565. local snap = math.random(1,10)
  4566. if snap == 1 then
  4567. 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)
  4568. end
  4569. 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)
  4570. 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)
  4571. 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)
  4572. 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)
  4573. 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)
  4574. 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)
  4575. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4576. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4577. 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)
  4578. RootPart.CFrame = FaceMouse()[1]
  4579. end
  4580. local orb = Instance.new("Part", char)
  4581. orb.BrickColor = MAINRUINCOLOR
  4582. orb.CanCollide = false
  4583. orb.FormFactor = 3
  4584. orb.Name = "Ring"
  4585. orb.Material = "Neon"
  4586. orb.Size = Vector3.new(1, 1, 1)
  4587. orb.Transparency = 0
  4588. orb.TopSurface = 0
  4589. orb.BottomSurface = 0
  4590. local orbm = Instance.new("SpecialMesh", orb)
  4591. orbm.MeshType = "Sphere"
  4592. orbm.Name = "SizeMesh"
  4593. orbm.Scale = vt(2,2,2)
  4594. orb.CFrame = mouse.Hit
  4595. local bv = Instance.new("BodyVelocity")
  4596. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4597. bv.velocity = orb.CFrame.lookVector*100
  4598. bv.Parent = orb
  4599. local hitted = false
  4600. coroutine.resume(coroutine.create(function()
  4601. game:GetService("Debris"):AddItem(orb, 5)
  4602. orb.Transparency = 1
  4603. orb.Anchored = true
  4604. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4605. elocacenter.Anchored = true
  4606. elocacenter.CFrame = orb.CFrame
  4607. elocacenter.Orientation = vt(0,0,0)
  4608. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4609. eloca1.Anchored = true
  4610. eloca1.CFrame = elocacenter.CFrame
  4611. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4612. eloca2.Anchored = true
  4613. eloca2.CFrame = elocacenter.CFrame
  4614. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4615. eloca3.Anchored = true
  4616. eloca3.CFrame = elocacenter.CFrame
  4617. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4618. eloca4.Anchored = true
  4619. eloca4.CFrame = elocacenter.CFrame
  4620. local lookavec = 0
  4621. local speeds = 0
  4622. CameraEnshaking(1,1)
  4623. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4624. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4625. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4626. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4627. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4628. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4629. for i = 0, 24 do
  4630. swait()
  4631. lookavec = lookavec + 3.5
  4632. speeds = speeds + 1
  4633. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4634. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4635. 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)
  4636.  
  4637. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4638. 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)
  4639.  
  4640. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4641. 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)
  4642.  
  4643. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4644. 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)
  4645. end
  4646.  
  4647. local risen = 0
  4648. for i = 0, 49 do
  4649. swait()
  4650. risen = risen + 0.05
  4651. speeds = speeds + 0.1
  4652. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4653. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4654. 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)
  4655.  
  4656. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4657. 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)
  4658.  
  4659. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4660. 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)
  4661.  
  4662. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4663. 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)
  4664. end
  4665. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4666. if v:FindFirstChild('Head') then
  4667. dmg(v)
  4668. end
  4669. end
  4670. CameraEnshaking(4,10)
  4671. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4672. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4673. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4674. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4675. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4676. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4677. local eff = Instance.new("ParticleEmitter",elocacenter)
  4678. eff.Texture = "rbxassetid://2273224484"
  4679. eff.LightEmission = 1
  4680. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4681. eff.Rate = 1000000
  4682. eff.Lifetime = NumberRange.new(0.5,2)
  4683. 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)})
  4684. 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)})
  4685. eff.Speed = NumberRange.new(20,250)
  4686. eff.Drag = 5
  4687. eff.Rotation = NumberRange.new(-500,500)
  4688. eff.VelocitySpread = 5000000
  4689. eff.RotSpeed = NumberRange.new(-50,50)
  4690. coroutine.resume(coroutine.create(function()
  4691. wait(1)
  4692. eff.Enabled = false
  4693. end))
  4694. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4695. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4696. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4697. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4698. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4699. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4700. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4701. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4702. for i = 0, 24 do
  4703. 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)
  4704. 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)
  4705. 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)
  4706. 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)
  4707. end
  4708. coroutine.resume(coroutine.create(function()
  4709. wait(10)
  4710. elocacenter:Destroy()
  4711. eloca1:Destroy()
  4712. eloca2:Destroy()
  4713. eloca3:Destroy()
  4714. eloca4:Destroy()
  4715. end))
  4716. end))
  4717. attack = false
  4718. end
  4719.  
  4720. function UniversalCollapse()
  4721. attack = true
  4722. local speedearn = 0
  4723. hum.WalkSpeed = 0
  4724. local sbs = Instance.new("BodyPosition", root)
  4725. sbs.P = 3000
  4726. sbs.D = 1000
  4727. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4728. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4729. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4730. for i = 0, 85, 0.1 do
  4731. swait()
  4732. speedearn = speedearn + 0.1
  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. 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)
  4738. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4739. 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)
  4740. 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)
  4741. 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)
  4742. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4743. 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)
  4744. 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)
  4745. end
  4746. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4747. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4748. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4749. for i = 0, 25, 0.1 do
  4750. swait()
  4751. speedearn = speedearn + 0.1
  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. 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)
  4757. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4758. 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)
  4759. 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)
  4760. 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)
  4761. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4762. 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)
  4763. 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)
  4764. end
  4765. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4766. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4767. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4768. CameraEnshaking(5,50)
  4769. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4770. for i = 0, 2 do
  4771. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4772. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4773. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4774. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4775. end
  4776. for i = 0, 49 do
  4777. 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)
  4778. 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)
  4779. 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)
  4780. 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)
  4781. end
  4782. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4783. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4784. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4785. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4786. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4787. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4788. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4789. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4790. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4791. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4792. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4793. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4794. for i = 0, 99 do
  4795. 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)
  4796. 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)
  4797. end
  4798. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4799. if v:FindFirstChild('Head') then
  4800. dmg(v)
  4801. end
  4802. end
  4803. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4804. sbs:Destroy()
  4805. hum.WalkSpeed = storehumanoidWS
  4806. attack = false
  4807. end
  4808.  
  4809.  
  4810. function ChaosEND()
  4811. attack = true
  4812. local speedearn = 0
  4813. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4814. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4815. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4816. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4817. for i = 0, 15, 0.1 do
  4818. swait()
  4819. speedearn = speedearn + 0.25
  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. 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)
  4825. 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)
  4826. 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)
  4827. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4829. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4830. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4831. end
  4832. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4833. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4834. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4835. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4836. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4837. CameraEnshaking(5,25)
  4838. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4839. if v:FindFirstChild('Head') then
  4840. dmg(v)
  4841. end
  4842. end
  4843. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4844. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4845. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4846. for i = 0, 3, 0.1 do
  4847. swait()
  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. 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)
  4852. 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)
  4853. 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)
  4854. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4855. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4856. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4857. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4858. end
  4859. attack = false
  4860. end
  4861.  
  4862. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4863. local orb = Instance.new("Part", char)
  4864. orb.Anchored = true
  4865. orb.BrickColor = color
  4866. orb.CanCollide = false
  4867. orb.FormFactor = 3
  4868. orb.Name = "Ring"
  4869. orb.Material = "Neon"
  4870. orb.Size = Vector3.new(1, 1, 1)
  4871. orb.Transparency = 0
  4872. orb.TopSurface = 0
  4873. orb.BottomSurface = 0
  4874. local orbm = Instance.new("SpecialMesh", orb)
  4875. orbm.MeshType = "Sphere"
  4876. orb.CFrame = positted
  4877. orbm.Name = "SizeMesh"
  4878. orbm.Scale = vt(1,1,1)
  4879. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4880. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4881. --[[for i = 0, 2 do
  4882. 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)
  4883. end]]--
  4884. coroutine.resume(coroutine.create(function()
  4885. wait(timer)
  4886. CameraEnshaking(3,ShakePower)
  4887. orb.Transparency = 1
  4888. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4889. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4890. --[[for i = 0, 4 do
  4891. 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)
  4892. end]]--
  4893. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4894. wait(3)
  4895. orb:Destroy()
  4896. end))
  4897. end
  4898.  
  4899. function orb_spawn(positted,timer)
  4900. local randomcol = math.random(1,2)
  4901. local orb = Instance.new("Part", char)
  4902. orb.Anchored = true
  4903. if randomcol == 1 then
  4904. orb.BrickColor = BrickColor.new("White")
  4905. elseif randomcol == 2 then
  4906. orb.BrickColor = BrickColor.new("Really black")
  4907. end
  4908. orb.CanCollide = false
  4909. orb.FormFactor = 3
  4910. orb.Name = "Ring"
  4911. orb.Material = "Neon"
  4912. orb.Size = Vector3.new(1, 1, 1)
  4913. orb.Transparency = 0
  4914. orb.TopSurface = 0
  4915. orb.BottomSurface = 0
  4916. local orbm = Instance.new("SpecialMesh", orb)
  4917. orbm.MeshType = "Sphere"
  4918. orb.CFrame = positted
  4919. orbm.Name = "SizeMesh"
  4920. orbm.Scale = vt(1,1,1)
  4921. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4922. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4923. for i = 0, 2 do
  4924. 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)
  4925. end
  4926. coroutine.resume(coroutine.create(function()
  4927. wait(timer)
  4928. CameraEnshaking(3,2)
  4929. orb.Transparency = 1
  4930. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4931. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4932. for i = 0, 4 do
  4933. 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)
  4934. end
  4935. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4936. wait(3)
  4937. orb:Destroy()
  4938. end))
  4939. end
  4940.  
  4941. function scattercorrupt()
  4942. attack = true
  4943. hum.WalkSpeed = 0
  4944. for i = 0, 2, 0.1 do
  4945. swait()
  4946. 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)
  4947. 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)
  4948. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4949. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4950. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4951. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4952. end
  4953. local rot = 0
  4954. local randomrotations = math.random(1,2)
  4955. local lookv = 2.5
  4956. local power = 7
  4957. local radm = math.random(1,3)
  4958. if radm == 1 then
  4959. bosschatfunc("XD",MAINRUINCOLOR.Color,1)
  4960. elseif radm == 2 then
  4961. bosschatfunc("LOL!!",MAINRUINCOLOR.Color,1)
  4962. elseif radm == 3 then
  4963. bosschatfunc("18+!!",MAINRUINCOLOR.Color,1)
  4964. end
  4965. CFuncs["Sound"].Create("rbxassetid://12222242", RightLeg, 2, 1)
  4966. for i = 0, 1, 0.1 do
  4967. swait()
  4968. 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)
  4969. 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)
  4970. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4971. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4972. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4973. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4974. end
  4975. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4976. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4977. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4978. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4979. for i = 0, 9 do
  4980. 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)
  4981. end
  4982. local hite = Instance.new("Part", char)
  4983. hite.Anchored = true
  4984. hite.CanCollide = false
  4985. hite.FormFactor = 3
  4986. hite.Name = "Ring"
  4987. hite.Material = "Neon"
  4988. hite.Size = Vector3.new(1, 1, 1)
  4989. hite.Transparency = 1
  4990. hite.TopSurface = 0
  4991. hite.BottomSurface = 0
  4992. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4993. local rem = Instance.new("Part", char)
  4994. rem.Anchored = true
  4995. rem.CanCollide = false
  4996. rem.FormFactor = 3
  4997. rem.Name = "Ring"
  4998. rem.Material = "Neon"
  4999. rem.Size = Vector3.new(1, 1, 1)
  5000. rem.Transparency = 1
  5001. rem.TopSurface = 0
  5002. rem.BottomSurface = 0
  5003. rem.CFrame = hite.CFrame
  5004. local rem2 = rem:Clone()
  5005. rem2.Parent = char
  5006. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5007. local rem3 = rem:Clone()
  5008. rem3.Parent = char
  5009. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5010. local rem4 = rem:Clone()
  5011. rem4.Parent = char
  5012. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5013. hite:Destroy()
  5014. coroutine.resume(coroutine.create(function()
  5015. for i = 0, 24 do
  5016. swait(1)
  5017. if randomrotations == 1 then
  5018. rot = rot + 1
  5019. elseif randomrotations == 2 then
  5020. rot = rot - 1
  5021. end
  5022. power = power + 0.5
  5023. lookv = lookv + 7.5
  5024. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5025. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5026. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5027. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5028. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5029. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5030. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5031. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5032. end
  5033. end))
  5034. wait(2)
  5035. hum.WalkSpeed = storehumanoidWS
  5036. attack = false
  5037. end
  5038. function yinyangi()
  5039. attack = true
  5040. for i = 0, 2, 0.1 do
  5041. swait()
  5042. 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)
  5043. 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)
  5044. 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)
  5045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5046. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5047. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5048. end
  5049. local bv = Instance.new("BodyVelocity")
  5050. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5051. bv.velocity = root.CFrame.lookVector*175
  5052. bv.Parent = root
  5053. for Rotations = 0, 9 do
  5054. for i = 0, 1, 0.5 do
  5055. swait()
  5056. bv.velocity = root.CFrame.lookVector*175
  5057. 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)
  5058. 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)
  5059. 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)
  5060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5061. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5062. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5063. end
  5064. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5065. for i = 0, 1, 0.5 do
  5066. swait()
  5067. bv.velocity = root.CFrame.lookVector*175
  5068. 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)
  5069. 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)
  5070. 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)
  5071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5073. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5074. end
  5075. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5076. for i = 0, 1, 0.5 do
  5077. swait()
  5078. bv.velocity = root.CFrame.lookVector*175
  5079. 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)
  5080. 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)
  5081. 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)
  5082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5084. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5085. end
  5086. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5087. for i = 0, 1, 0.5 do
  5088. swait()
  5089. bv.velocity = root.CFrame.lookVector*175
  5090. 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)
  5091. 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)
  5092. 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)
  5093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5094. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5095. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5096. end
  5097. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5098. end
  5099. bv:Destroy()
  5100. attack = false
  5101. end
  5102.  
  5103. function createBGCircle(size,parent,color)
  5104. local bgui = Instance.new("BillboardGui",parent)
  5105. bgui.Size = UDim2.new(size, 0, size, 0)
  5106. local imgc = Instance.new("ImageLabel",bgui)
  5107. imgc.BackgroundTransparency = 1
  5108. imgc.ImageTransparency = 0
  5109. imgc.Size = UDim2.new(1,0,1,0)
  5110. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5111. imgc.ImageColor3 = color
  5112. return bgui,imgc
  5113. end
  5114.  
  5115. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5116. local bgui,imgc = createBGCircle(size,guipar,color)
  5117. bgui.AlwaysOnTop = true
  5118. imgc.Image = "rbxassetid://" ..img
  5119. local rrot = math.random(1,2)
  5120. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5121. coroutine.resume(coroutine.create(function()
  5122. for i = 0, 24*delay do
  5123. swait()
  5124. if rotationenabled == true then
  5125. if rrot == 1 then
  5126. imgc.Rotation = imgc.Rotation + rotsp
  5127. elseif rrot == 2 then
  5128. imgc.Rotation = imgc.Rotation - rotsp
  5129. end
  5130. end
  5131. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5132. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5133. end
  5134. bgui:Destroy()
  5135. end))
  5136. end
  5137. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5138. for i, v in pairs(mw2:GetChildren()) do
  5139. if v:IsA("Part") then
  5140. v.BrickColor = one
  5141. v.Material = "Neon"
  5142. end
  5143. end
  5144. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5145. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5146. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5147. tr1.Color = ColorSequence.new(one.Color)
  5148. tr2.Color = ColorSequence.new(one.Color)
  5149. tr3.Color = ColorSequence.new(one.Color)
  5150. for i, v in pairs(mw1:GetChildren()) do
  5151. if v:IsA("Part") then
  5152. if secondaryenabled == false then
  5153. v.Transparency = 1
  5154. elseif secondaryenabled == true then
  5155. v.Transparency = 0
  5156. end
  5157. v.BrickColor = two
  5158. v.Material = "Neon"
  5159. end
  5160. end
  5161. if secondaryenabled == false then
  5162. tl1.Enabled = false
  5163. tl2.Enabled = false
  5164. tl3.Enabled = false
  5165. elseif secondaryenabled == true then
  5166. tl1.Enabled = true
  5167. tl2.Enabled = true
  5168. tl3.Enabled = true
  5169. end
  5170. tl1.Color = ColorSequence.new(two.Color)
  5171. tl2.Color = ColorSequence.new(two.Color)
  5172. tl3.Color = ColorSequence.new(two.Color)
  5173. for i, v in pairs(m:GetChildren()) do
  5174. if v:IsA("Part") then
  5175. v.BrickColor = three
  5176. v.Material = "Ice"
  5177. end
  5178. end
  5179. for i, v in pairs(m2:GetChildren()) do
  5180. if v:IsA("Part") then
  5181. v.BrickColor = four
  5182. v.Material = "Ice"
  5183. end
  5184. end
  5185. for i, v in pairs(m3:GetChildren()) do
  5186. if v:IsA("Part") then
  5187. v.BrickColor = five
  5188. v.Material = "Neon"
  5189. end
  5190. end
  5191. for i, v in pairs(extrawingmod1:GetChildren()) do
  5192. if v:IsA("Part") then
  5193. v.Transparency = exonetran
  5194. v.BrickColor = exone
  5195. v.Material = "Neon"
  5196. end
  5197. end
  5198. for i, v in pairs(extrawingmod2:GetChildren()) do
  5199. if v:IsA("Part") then
  5200. v.Transparency = extwotran
  5201. v.BrickColor = extwo
  5202. v.Material = "Neon"
  5203. end
  5204. end
  5205. end
  5206.  
  5207.  
  5208. function normalmog()
  5209. attack = true
  5210. hum.WalkSpeed = 0
  5211. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5212. for i = 0,6,0.1 do
  5213. swait()
  5214. 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)
  5215. 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)
  5216. 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)
  5217. 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)
  5218. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5219. 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)
  5220. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5221. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5222. end
  5223. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5224. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5225. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5226. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5227. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5228. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5229. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5230. rainbowmode = false
  5231. chaosmode = false
  5232. ModeOfGlitch = 1
  5233. storehumanoidWS = 16
  5234. newTheme("rbxassetid://1131624146",48.6,1,1.25)
  5235. RecolorTextAndRename("lol",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5236. CameraEnshaking(5,2.5)
  5237. MAINRUINCOLOR = BrickColor.new("Hot pink")
  5238. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5239. for i = 0, 49 do
  5240. 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)
  5241. end
  5242. for i = 0, 24 do
  5243. 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)
  5244. 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"))
  5245. end
  5246. for i = 0,3,0.1 do
  5247. 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)
  5248. end
  5249. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5250. for i = 0,2,0.1 do
  5251. swait()
  5252. 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)
  5253. 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)
  5254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5255. 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)
  5256. 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)
  5257. 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)
  5258. end
  5259. hum.WalkSpeed = storehumanoidWS
  5260. attack = false
  5261. end
  5262.  
  5263. function attackone()
  5264. attack = true
  5265. local keptcolor = MAINRUINCOLOR
  5266. for i = 0,1,0.1 do
  5267. swait()
  5268. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5269. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5270. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5271. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5272. 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)
  5273. 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)
  5274. end
  5275. local distlook = 5
  5276. coroutine.resume(coroutine.create(function()
  5277. for i = 0, 4 do
  5278. swait(2)
  5279. CameraEnshaking(2,3)
  5280. local hite = Instance.new("Part", char)
  5281. hite.Anchored = true
  5282. hite.CanCollide = false
  5283. hite.FormFactor = 3
  5284. hite.Name = "Ring"
  5285. hite.Material = "Neon"
  5286. hite.Size = Vector3.new(1, 1, 1)
  5287. hite.Transparency = 1
  5288. hite.TopSurface = 0
  5289. hite.BottomSurface = 0
  5290. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5291. 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)
  5292. 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)
  5293. 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)
  5294. 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)
  5295. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5296. for i = 0, 14 do
  5297. local rsiz = math.random(5,20)
  5298. 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)
  5299. end
  5300. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5301. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5302. game:GetService("Debris"):AddItem(hite, 5)
  5303. distlook = distlook + 10
  5304. end
  5305. end))
  5306. for i = 0,1,0.1 do
  5307. swait()
  5308. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5309. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5310. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5311. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5312. 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)
  5313. 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)
  5314. end
  5315. attack = false
  5316. end
  5317.  
  5318. function attacktwo()
  5319. attack = true
  5320. hum.WalkSpeed = 2
  5321. local keptcolor = MAINRUINCOLOR
  5322. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5323. 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)
  5324. 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)
  5325. for i = 0, 14 do
  5326. 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)
  5327. end
  5328. for i = 0,1,0.1 do
  5329. swait()
  5330. 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)
  5331. 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)
  5332. 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)
  5333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5335. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5336. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5337. end
  5338. for i = 0, 1 do
  5339. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5340. for i = 0,1,0.6 do
  5341. swait()
  5342. 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)
  5343. 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"))
  5344. 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)
  5345. 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)
  5346. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5348. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5349. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5350. end
  5351. for i = 0,1,0.6 do
  5352. swait()
  5353. 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)
  5354. 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"))
  5355. 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)
  5356. 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)
  5357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5359. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5360. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5361. end
  5362. for i = 0,1,0.6 do
  5363. swait()
  5364. 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)
  5365. 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"))
  5366. 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)
  5367. 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)
  5368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5370. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5371. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5372. end
  5373. for i = 0,1,0.6 do
  5374. swait()
  5375. 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)
  5376. 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"))
  5377. 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)
  5378. 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)
  5379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5381. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5382. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5383. end
  5384. local rot = 0
  5385. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5386. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5387. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5388. CreateMesh(dis,"Sphere",10,1,10)
  5389. local at1 = Instance.new("Attachment",dis)
  5390. at1.Position = vt(-5,0,0)
  5391. local at2 = Instance.new("Attachment",dis)
  5392. at2.Position = vt(5,0,0)
  5393. local trl = Instance.new('Trail',wed)
  5394. trl.Attachment0 = at1
  5395. trl.Attachment1 = at2
  5396. trl.Texture = "rbxassetid://1049219073"
  5397. trl.LightEmission = 1
  5398. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5399. trl.Color = ColorSequence.new(dis.Color)
  5400. trl.Lifetime = 0.6
  5401. local a = Instance.new("Part",workspace)
  5402. a.Name = "Direction"
  5403. a.Anchored = true
  5404. a.BrickColor = bc("Bright red")
  5405. a.Material = "Neon"
  5406. a.Transparency = 1
  5407. a.CanCollide = false
  5408. local ray = Ray.new(
  5409. dis.CFrame.p, -- origin
  5410. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5411. )
  5412. local ignore = dis
  5413. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5414. a.BottomSurface = 10
  5415. a.TopSurface = 10
  5416. local distance = (dis.CFrame.p - position).magnitude
  5417. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5418. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5419. dis.CFrame = a.CFrame
  5420. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5421. a:Destroy()
  5422. local bv = Instance.new("BodyVelocity")
  5423. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5424. bv.velocity = dis.CFrame.lookVector*250
  5425. bv.Parent = dis
  5426. game:GetService("Debris"):AddItem(dis, 5)
  5427. local hitted = false
  5428. coroutine.resume(coroutine.create(function()
  5429. dis.Touched:connect(function(hit)
  5430. if hitted == false and hit.Parent ~= char then
  5431. hitted = true
  5432. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5433. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5434. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5435. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5436. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5437. coroutine.resume(coroutine.create(function()
  5438. for i = 0, 9 do
  5439. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5440. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5441. local at1 = Instance.new("Attachment",disr)
  5442. at1.Position = vt(-5,0,0)
  5443. local at2 = Instance.new("Attachment",disr)
  5444. at2.Position = vt(5,0,0)
  5445. local trl = Instance.new('Trail',disr)
  5446. trl.Attachment0 = at1
  5447. trl.FaceCamera = true
  5448. trl.Attachment1 = at2
  5449. trl.Texture = "rbxassetid://2342682798"
  5450. trl.LightEmission = 1
  5451. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5452. trl.Color = ColorSequence.new(keptcolor.Color)
  5453. trl.Lifetime = 0.5
  5454. local bv = Instance.new("BodyVelocity")
  5455. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5456. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5457. bv.Parent = disr
  5458. local val = 0
  5459. coroutine.resume(coroutine.create(function()
  5460. swait(30)
  5461. for i = 0, 9 do
  5462. swait()
  5463. val = val + 0.1
  5464. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5465. end
  5466. game:GetService("Debris"):AddItem(disr, 3)
  5467. end))
  5468. end
  5469. local eff = Instance.new("ParticleEmitter",dis)
  5470. eff.Texture = "rbxassetid://2273224484"
  5471. eff.LightEmission = 1
  5472. eff.Color = ColorSequence.new(keptcolor.Color)
  5473. eff.Rate = 500000
  5474. eff.Lifetime = NumberRange.new(0.5,2)
  5475. 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)})
  5476. 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)})
  5477. eff.Speed = NumberRange.new(20,250)
  5478. eff.Drag = 5
  5479. eff.Rotation = NumberRange.new(-500,500)
  5480. eff.VelocitySpread = 9000
  5481. eff.RotSpeed = NumberRange.new(-50,50)
  5482. wait(0.25)
  5483. eff.Enabled = false
  5484. end))
  5485. for i = 0, 9 do
  5486. 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"))
  5487. end
  5488. for i = 0, 19 do
  5489. 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)
  5490. end
  5491. coroutine.resume(coroutine.create(function()
  5492. for i = 0, 19 do
  5493. swait()
  5494. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5495. end
  5496. hum.CameraOffset = vt(0,0,0)
  5497. end))
  5498. dis.Anchored = true
  5499. dis.Transparency = 1
  5500. wait(8)
  5501. dis:Destroy()
  5502. end
  5503. end)
  5504. end))
  5505. rot = rot - 15
  5506. end
  5507. for i = 0,2,0.1 do
  5508. swait()
  5509. 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)
  5510. 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)
  5511. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5515. end
  5516. attack = false
  5517. hum.WalkSpeed = storehumanoidWS
  5518. end
  5519.  
  5520. function attackthree()
  5521. attack = true
  5522. local keptcolor = MAINRUINCOLOR
  5523. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5524. for i = 0,2,0.1 do
  5525. swait()
  5526. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5527. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5528. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5529. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5530. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5531. 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)
  5532. 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)
  5533. end
  5534. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5535. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5536. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5537. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5538. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5539. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5540. for i = 0, 24 do
  5541. 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"))
  5542. end
  5543. for i = 0,4,0.1 do
  5544. swait()
  5545. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5546. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5547. CreateMesh(dis,"Sphere",1,1,1)
  5548. dis.Anchored = true
  5549. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5550. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5551. coroutine.resume(coroutine.create(function()
  5552. swait(30)
  5553. dis.Transparency = 1
  5554. coroutine.resume(coroutine.create(function()
  5555. for i = 0, 19 do
  5556. swait()
  5557. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5558. end
  5559. hum.CameraOffset = vt(0,0,0)
  5560. end))
  5561. coroutine.resume(coroutine.create(function()
  5562. local eff = Instance.new("ParticleEmitter",dis)
  5563. eff.Texture = "rbxassetid://2273224484"
  5564. eff.LightEmission = 1
  5565. eff.Color = ColorSequence.new(dis.Color)
  5566. eff.Rate = 500000
  5567. eff.Lifetime = NumberRange.new(0.5,2)
  5568. 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)})
  5569. 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)})
  5570. eff.Speed = NumberRange.new(50,450)
  5571. eff.Drag = 5
  5572. eff.Rotation = NumberRange.new(-500,500)
  5573. eff.VelocitySpread = 9000
  5574. eff.RotSpeed = NumberRange.new(-50,50)
  5575. wait(0.125)
  5576. eff.Enabled = false
  5577. end))
  5578. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5579. for i = 0, 2 do
  5580. 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)
  5581. end
  5582. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5583. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5584. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5585. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5586. end))
  5587. game:GetService("Debris"):AddItem(dis, 5)
  5588. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5589. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5590. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5591. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5592. 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)
  5593. 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)
  5594. end
  5595. attack = false
  5596. end
  5597. ----------------------------------- Abilities
  5598.  
  5599. function ExtinctiveHeartbreak()
  5600. local targetted = nil
  5601. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5602. targetted = mouse.Target.Parent
  5603. end
  5604. if targetted ~= nil then
  5605. attack = true
  5606. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5607. for i = 0, 9 do
  5608. 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)
  5609. end
  5610. for i = 0, 24 do
  5611. 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)
  5612. end
  5613. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5614. local originalpos = root.CFrame
  5615. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5616. for i = 0, 9 do
  5617. 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)
  5618. end
  5619. for i = 0, 24 do
  5620. 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)
  5621. end
  5622. hum.WalkSpeed = 0
  5623. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5624. local radm = math.random(1,3)
  5625. if radm == 1 then
  5626. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5627. elseif radm == 2 then
  5628. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5629. elseif radm == 3 then
  5630. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5631. end
  5632. for i = 0,2,0.1 do
  5633. swait()
  5634. 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)
  5635. 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)
  5636. 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)
  5637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5638. 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)
  5639. 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)
  5640. end
  5641. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5642. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5643. for i = 0,2,0.1 do
  5644. swait()
  5645. coroutine.resume(coroutine.create(function()
  5646. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5647. for i,v in pairs(targetted:GetChildren()) do
  5648. if v:IsA("Part") or v:IsA("MeshPart") then
  5649. v.Velocity = vt(0,0,0)
  5650. end
  5651. end
  5652. end))
  5653. 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)
  5654. 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)
  5655. 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)
  5656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5657. 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)
  5658. 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)
  5659. end
  5660. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5661. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5662. for i = 0, 1 do
  5663. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5664. end
  5665. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5666. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5667. for i = 0,4,0.1 do
  5668. swait()
  5669. coroutine.resume(coroutine.create(function()
  5670. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5671. 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)))
  5672. local at1 = Instance.new("Attachment",dis)
  5673. at1.Position = vt(-25000,0,0)
  5674. local at2 = Instance.new("Attachment",dis)
  5675. at2.Position = vt(25000,0,0)
  5676. local trl = Instance.new('Trail',dis)
  5677. trl.Attachment0 = at1
  5678. trl.FaceCamera = true
  5679. trl.Attachment1 = at2
  5680. trl.Texture = "rbxassetid://1049219073"
  5681. trl.LightEmission = 1
  5682. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5683. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5684. trl.Lifetime = 5
  5685. local bv = Instance.new("BodyVelocity")
  5686. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5687. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5688. bv.Parent = dis
  5689. game:GetService("Debris"):AddItem(dis, 5)
  5690. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5691. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5692. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5693. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5694. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5695. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5696. 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)
  5697. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5698. for i = 0, 2 do
  5699. 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"))
  5700. end
  5701. 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)
  5702. for i,v in pairs(targetted:GetChildren()) do
  5703. if v:IsA("Part") or v:IsA("MeshPart") then
  5704. v.Velocity = vt(0,0,0)
  5705. end
  5706. end
  5707. end))
  5708. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5709. 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)
  5710. 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)
  5711. 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)
  5712. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5713. 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)
  5714. 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)
  5715. end
  5716. hum.CameraOffset = vt(0,0,0)
  5717. for i = 0, 49 do
  5718. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5719. 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)))
  5720. local at1 = Instance.new("Attachment",dis)
  5721. at1.Position = vt(-50000,0,0)
  5722. local at2 = Instance.new("Attachment",dis)
  5723. at2.Position = vt(50000,0,0)
  5724. local trl = Instance.new('Trail',dis)
  5725. trl.Attachment0 = at1
  5726. trl.FaceCamera = true
  5727. trl.Attachment1 = at2
  5728. trl.Texture = "rbxassetid://1049219073"
  5729. trl.LightEmission = 1
  5730. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5731. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5732. trl.Lifetime = 5
  5733. local bv = Instance.new("BodyVelocity")
  5734. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5735. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5736. bv.Parent = dis
  5737. game:GetService("Debris"):AddItem(dis, 5)
  5738. end
  5739. for i = 0, 49 do
  5740. 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)
  5741. 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"))
  5742. end
  5743. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5744. for i = 0, 1 do
  5745. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5746. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5747. end
  5748. for i = 0, 4 do
  5749. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5750. end
  5751. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5752. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5753. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5754. dmg(targetted)
  5755. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5756. for i = 0, 9 do
  5757. 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)
  5758. end
  5759. for i = 0, 24 do
  5760. 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)
  5761. end
  5762. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5763. root.CFrame = originalpos
  5764. for i = 0, 9 do
  5765. 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)
  5766. end
  5767. for i = 0, 24 do
  5768. 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)
  5769. end
  5770. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5771. attack = false
  5772. hum.WalkSpeed = storehumanoidWS
  5773. end
  5774. end
  5775.  
  5776. function CorruptionEvent()
  5777. attack = true
  5778. hum.WalkSpeed = 0
  5779. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5780. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5781. local keptcolor = MAINRUINCOLOR
  5782. for i = 0,4,0.1 do
  5783. swait()
  5784. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5785. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5786. 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)
  5787. 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)
  5788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5789. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5790. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5791. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5792. end
  5793. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5794. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5795. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5796. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5797. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5798. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5799. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5800. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5801. hum.CameraOffset = vt(0,0,0)
  5802. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5803. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5804. for i = 0, 24 do
  5805. 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"))
  5806. end
  5807. local rrot = 0
  5808. coroutine.resume(coroutine.create(function()
  5809. for i = 0, 4 do
  5810. rrot = rrot + 45
  5811. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5812. xa.Anchored = true
  5813. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5814. xb.Anchored = true
  5815. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5816. xc.Anchored = true
  5817. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5818. xd.Anchored = true
  5819. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5820. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5821. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5822. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5823. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5824. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5825. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5826. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5827. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5828. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5829. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5830. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5831. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5832. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5833. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5834. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5835. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5836. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5837. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5838. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5839. for i = 0, 9 do
  5840. 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"))
  5841. 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"))
  5842. 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"))
  5843. 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"))
  5844. end
  5845. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5846. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5847. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5848. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5849. 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)
  5850. 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)
  5851. 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)
  5852. 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)
  5853. 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))
  5854. 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))
  5855. 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))
  5856. 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))
  5857. game:GetService("Debris"):AddItem(xa, 5)
  5858. game:GetService("Debris"):AddItem(xb, 5)
  5859. game:GetService("Debris"):AddItem(xc, 5)
  5860. game:GetService("Debris"):AddItem(xd, 5)
  5861. coroutine.resume(coroutine.create(function()
  5862. for i = 0, 19 do
  5863. swait()
  5864. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5865. end
  5866. hum.CameraOffset = vt(0,0,0)
  5867. end))
  5868. swait(9)
  5869. end
  5870. end))
  5871. for i = 0,2,0.1 do
  5872. swait()
  5873. 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)
  5874. 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)
  5875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5877. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5878. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5879. end
  5880. attack = false
  5881. hum.WalkSpeed = storehumanoidWS
  5882. end
  5883.  
  5884. function EndGROUND()
  5885. attack = true
  5886. hum.WalkSpeed = 0
  5887. bosschatfunc("NO U",MAINRUINCOLOR.Color,1)
  5888. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5889. CFuncs["Sound"].Create("rbxassetid://1535994137", root, 10, 1)
  5890. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 1.5, 1,0,10,0.15,0.5,1)
  5891. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 10, 1,0,10,0.15,0.5,1)
  5892. local keptcolor = MAINRUINCOLOR
  5893. for i = 0,4,0.1 do
  5894. swait()
  5895. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5896. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5897. 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"))
  5898. 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)
  5899. 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)
  5900. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5901. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5902. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5903. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5904. end
  5905. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5906. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5907. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5908. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5909. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5910. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5911. coroutine.resume(coroutine.create(function()
  5912. local shval = 10
  5913. for i = 0, 99 do
  5914. swait()
  5915. shval = shval - 0.1
  5916. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5917. end
  5918. hum.CameraOffset = vt(0,0,0)
  5919. end))
  5920. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5921. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5922. for i = 0, 24 do
  5923. 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"))
  5924. end
  5925. local rrot = 0
  5926. local xam = 1
  5927. coroutine.resume(coroutine.create(function()
  5928. for i = 0, 14 do
  5929. --swait()
  5930. rrot = rrot + 40*xam
  5931. xam = xam + 0.25
  5932. local bonus = xam
  5933. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5934. xa.Anchored = true
  5935. xa.Color = Color3.new(0,0,0)
  5936. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5937. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5938. local xc = 0
  5939. coroutine.resume(coroutine.create(function()
  5940. for i = 0, 99 do
  5941. swait()
  5942. xc = xc + 0.01
  5943. xa.Color = Color3.new(xc,0,0)
  5944. end
  5945. xa.Transparency = 1
  5946. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5947. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5948. for i = 0, 9 do
  5949. 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"))
  5950. end
  5951. 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)
  5952. 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)
  5953. 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))
  5954. game:GetService("Debris"):AddItem(xa, 5)
  5955. coroutine.resume(coroutine.create(function()
  5956. for i = 0, 19 do
  5957. swait()
  5958. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5959. end
  5960. hum.CameraOffset = vt(0,0,0)
  5961. end))
  5962. end))
  5963. end
  5964. end))
  5965. for i = 0,2,0.1 do
  5966. swait()
  5967. 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)
  5968. 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)
  5969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5971. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5972. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5973. end
  5974. attack = false
  5975. hum.WalkSpeed = storehumanoidWS
  5976. end
  5977.  
  5978. function HeavenlyDisk()
  5979. attack = true
  5980. hum.WalkSpeed = 2
  5981. local keptcolor = MAINRUINCOLOR
  5982. local radm = math.random(1,3)
  5983. if radm == 1 then
  5984. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5985. elseif radm == 2 then
  5986. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5987. elseif radm == 3 then
  5988. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5989. end
  5990. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5991. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5992. 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)
  5993. 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)
  5994. for i = 0, 14 do
  5995. 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)
  5996. end
  5997. for i = 0,2,0.1 do
  5998. swait()
  5999. 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)
  6000. 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)
  6001. 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)
  6002. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6004. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6005. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6006. end
  6007. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6008. for i = 0,1,0.6 do
  6009. swait()
  6010. 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)
  6011. 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"))
  6012. 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)
  6013. 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)
  6014. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6015. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6016. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6017. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6018. end
  6019. for i = 0,1,0.6 do
  6020. swait()
  6021. 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)
  6022. 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"))
  6023. 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)
  6024. 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)
  6025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6028. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6029. end
  6030. for i = 0,1,0.6 do
  6031. swait()
  6032. 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)
  6033. 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"))
  6034. 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)
  6035. 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)
  6036. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6037. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6038. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6039. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6040. end
  6041. for i = 0,1,0.6 do
  6042. swait()
  6043. 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)
  6044. 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"))
  6045. 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)
  6046. 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)
  6047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6049. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6050. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6051. end
  6052. local rot = 15
  6053. for i = 0, 2 do
  6054. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6055. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6056. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6057. CreateMesh(dis,"Sphere",10,1,10)
  6058. local at1 = Instance.new("Attachment",dis)
  6059. at1.Position = vt(-5,0,0)
  6060. local at2 = Instance.new("Attachment",dis)
  6061. at2.Position = vt(5,0,0)
  6062. local trl = Instance.new('Trail',wed)
  6063. trl.Attachment0 = at1
  6064. trl.Attachment1 = at2
  6065. trl.Texture = "rbxassetid://1049219073"
  6066. trl.LightEmission = 1
  6067. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6068. trl.Color = ColorSequence.new(dis.Color)
  6069. trl.Lifetime = 0.6
  6070. local a = Instance.new("Part",workspace)
  6071. a.Name = "Direction"
  6072. a.Anchored = true
  6073. a.BrickColor = bc("Bright red")
  6074. a.Material = "Neon"
  6075. a.Transparency = 1
  6076. a.CanCollide = false
  6077. local ray = Ray.new(
  6078. dis.CFrame.p, -- origin
  6079. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6080. )
  6081. local ignore = dis
  6082. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6083. a.BottomSurface = 10
  6084. a.TopSurface = 10
  6085. local distance = (dis.CFrame.p - position).magnitude
  6086. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6087. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6088. dis.CFrame = a.CFrame
  6089. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6090. a:Destroy()
  6091. local bv = Instance.new("BodyVelocity")
  6092. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6093. bv.velocity = dis.CFrame.lookVector*250
  6094. bv.Parent = dis
  6095. game:GetService("Debris"):AddItem(dis, 5)
  6096. local hitted = false
  6097. coroutine.resume(coroutine.create(function()
  6098. dis.Touched:connect(function(hit)
  6099. if hitted == false and hit.Parent ~= char then
  6100. hitted = true
  6101. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6102. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6103. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6104. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6105. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6106. coroutine.resume(coroutine.create(function()
  6107. for i = 0, 9 do
  6108. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6109. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6110. local at1 = Instance.new("Attachment",disr)
  6111. at1.Position = vt(-2,0,0)
  6112. local at2 = Instance.new("Attachment",disr)
  6113. at2.Position = vt(2,0,0)
  6114. local trl = Instance.new('Trail',disr)
  6115. trl.Attachment0 = at1
  6116. trl.FaceCamera = true
  6117. trl.Attachment1 = at2
  6118. trl.Texture = "rbxassetid://2342682798"
  6119. trl.LightEmission = 1
  6120. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6121. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6122. trl.Lifetime = 0.5
  6123. local bv = Instance.new("BodyVelocity")
  6124. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6125. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6126. bv.Parent = disr
  6127. local val = 0
  6128. coroutine.resume(coroutine.create(function()
  6129. swait(30)
  6130. for i = 0, 9 do
  6131. swait()
  6132. val = val + 0.1
  6133. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6134. end
  6135. game:GetService("Debris"):AddItem(disr, 3)
  6136. end))
  6137. end
  6138. local eff = Instance.new("ParticleEmitter",dis)
  6139. eff.Texture = "rbxassetid://2273224484"
  6140. eff.LightEmission = 1
  6141. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6142. eff.Rate = 500000
  6143. eff.Lifetime = NumberRange.new(0.5,2)
  6144. 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)})
  6145. 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)})
  6146. eff.Speed = NumberRange.new(20,250)
  6147. eff.Drag = 5
  6148. eff.Rotation = NumberRange.new(-500,500)
  6149. eff.VelocitySpread = 9000
  6150. eff.RotSpeed = NumberRange.new(-50,50)
  6151. wait(0.25)
  6152. eff.Enabled = false
  6153. end))
  6154. for i = 0, 9 do
  6155. 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"))
  6156. end
  6157. for i = 0, 19 do
  6158. 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)
  6159. end
  6160. coroutine.resume(coroutine.create(function()
  6161. for i = 0, 19 do
  6162. swait()
  6163. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6164. end
  6165. hum.CameraOffset = vt(0,0,0)
  6166. end))
  6167. dis.Anchored = true
  6168. dis.Transparency = 1
  6169. wait(8)
  6170. dis:Destroy()
  6171. end
  6172. end)
  6173. end))
  6174. rot = rot - 15
  6175. end
  6176. for i = 0,2,0.1 do
  6177. swait()
  6178. 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)
  6179. 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)
  6180. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6181. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6182. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6183. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6184. end
  6185. attack = false
  6186. hum.WalkSpeed = storehumanoidWS
  6187. end
  6188.  
  6189. function FuckMeSidewaysAndCallMeGay()
  6190. local whom = (mouse.Target and mouse.Target.Parent)
  6191. --[[local fuckThisBoi = false
  6192. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6193. for _,v in next, ODers do
  6194. if(v == whom)then
  6195. fuckThisBoi = false
  6196. end
  6197. end
  6198. end
  6199. if(not fuckThisBoi)then
  6200. attack = false
  6201. warn'to fuck that boi you need to target them with z'
  6202. else]]
  6203. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6204. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6205. local hum = whom:FindFirstChildOfClass'Humanoid'
  6206. local ocf = RootPart.CFrame
  6207. hum.WalkSpeed = 0
  6208.  
  6209. hed.Anchored = true
  6210. RootPart.Anchored = true
  6211. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6212. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6213. for i = 0, 9 do
  6214. 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)
  6215. end
  6216. for i = 0, 24 do
  6217. 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)
  6218. end
  6219. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6220. attack = true
  6221. bosschatfunc("i love u <3",MAINRUINCOLOR.Color,1)
  6222. local speed = 1
  6223. local heck;
  6224. local stopitlol = false;
  6225. heck = mouse.KeyUp:connect(function(k)
  6226. if(k:lower() == 'x')then
  6227. stopitlol = true
  6228. heck:disconnect()
  6229. end
  6230. end)
  6231. local times = 0
  6232. repeat swait()
  6233. speed = speed - .01
  6234. times = times + 1
  6235. if(speed < .1)then
  6236. speed = .1
  6237. end
  6238. for i = 0, speed, .05 do
  6239. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6240. swait()
  6241. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6242. 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)
  6243. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6247. end
  6248. CameraEnshaking(5,5)
  6249.  
  6250. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6251.  
  6252. for i = 0, speed, .05 do
  6253. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6254. swait()
  6255. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6256. 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)
  6257. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6258. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6259. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6260. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6261. end
  6262. until stopitlol and times >= 3
  6263. for i = 1, 3 do
  6264. for i = 0, 1.5, .05 do
  6265. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6266. swait()
  6267. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6268. 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)
  6269. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6271. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6272. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6273. end
  6274. CameraEnshaking(5,25)
  6275.  
  6276. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6277.  
  6278.  
  6279. coroutine.resume(coroutine.create(function()
  6280. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6281. bld.LightEmission = 0.1
  6282. bld.Texture = "rbxassetid://284205403"
  6283. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6284. bld.Rate = 500
  6285. bld.Lifetime = NumberRange.new(1)
  6286. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6287. bld.Acceleration = vt(0,-25,0)
  6288. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6289. bld.Speed = NumberRange.new(10,50)
  6290. bld.EmissionDirection = "Back"
  6291. bld.VelocitySpread = 25
  6292. bld.Rotation = NumberRange.new(-500,500)
  6293. bld.RotSpeed = NumberRange.new(-500,500)
  6294. bld.Enabled = false
  6295. bld:Emit(250)
  6296. end))
  6297. coroutine.resume(coroutine.create(function()
  6298. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6299. bld.LightEmission = 0.1
  6300. bld.Texture = "rbxassetid://284205403"
  6301. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6302. bld.Rate = 500
  6303. bld.Lifetime = NumberRange.new(1)
  6304. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6305. bld.Acceleration = vt(0,-25,0)
  6306. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6307. bld.Speed = NumberRange.new(10,50)
  6308. bld.EmissionDirection = "Back"
  6309. bld.VelocitySpread = 25
  6310. bld.Rotation = NumberRange.new(-500,500)
  6311. bld.RotSpeed = NumberRange.new(-500,500)
  6312. bld.Enabled = false
  6313. bld:Emit(250)
  6314. end))
  6315. for i = 0, 1.5, .05 do
  6316. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6317. swait()
  6318. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6319. 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)
  6320. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6322. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6323. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6324. end
  6325. end
  6326. for i = 0, 4, .05 do
  6327. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6328. swait()
  6329. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6330. 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)
  6331. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6332. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6333. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6334. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6335. end
  6336. CameraEnshaking(5,25)
  6337. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6338. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6339.  
  6340. dmg(whom)
  6341. coroutine.resume(coroutine.create(function()
  6342. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6343. bld.LightEmission = 0.1
  6344. bld.Texture = "rbxassetid://284205403"
  6345. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6346. bld.Rate = 500
  6347. bld.Lifetime = NumberRange.new(1)
  6348. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6349. bld.Acceleration = vt(0,-25,0)
  6350. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6351. bld.Speed = NumberRange.new(10,50)
  6352. bld.EmissionDirection = "Back"
  6353. bld.VelocitySpread = 25
  6354. bld.Rotation = NumberRange.new(-500,500)
  6355. bld.RotSpeed = NumberRange.new(-500,500)
  6356. bld.Enabled = true
  6357. end))
  6358. coroutine.resume(coroutine.create(function()
  6359. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6360. bld.LightEmission = 0.1
  6361. bld.Texture = "rbxassetid://284205403"
  6362. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6363. bld.Rate = 500
  6364. bld.Lifetime = NumberRange.new(1)
  6365. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6366. bld.Acceleration = vt(0,-25,0)
  6367. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6368. bld.Speed = NumberRange.new(10,50)
  6369. bld.EmissionDirection = "Back"
  6370. bld.VelocitySpread = 25
  6371. bld.Rotation = NumberRange.new(-500,500)
  6372. bld.RotSpeed = NumberRange.new(-500,500)
  6373. bld.Enabled = true
  6374. end))
  6375. for i = 0, 3, .05 do
  6376. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6377. swait()
  6378. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6379. 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)
  6380. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6381. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6382. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6383. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6384. end
  6385.  
  6386. RootPart.CFrame = ocf
  6387. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6388. for i = 0, 9 do
  6389. 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)
  6390. end
  6391. for i = 0, 24 do
  6392. 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)
  6393. end
  6394. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6395. RootPart.Anchored = false
  6396. Humanoid.WalkSpeed = storehumanoidWS
  6397. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6398. attack = false
  6399. end
  6400. end
  6401.  
  6402. function RapidBurst()
  6403. attack = true
  6404. hum.WalkSpeed = 0
  6405. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6406. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6407. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6408. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6409. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6410. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6411. local keptcolor = MAINRUINCOLOR
  6412. for i = 0,8,0.1 do
  6413. swait()
  6414. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6415. 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())
  6416. 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)
  6417. 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)
  6418. 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)
  6419. 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)
  6420. 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)
  6421. 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)
  6422. 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)
  6423. end
  6424. for i = 0, 99 do
  6425. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6426. 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)))
  6427. local at1 = Instance.new("Attachment",dis)
  6428. at1.Position = vt(-25000,0,0)
  6429. local at2 = Instance.new("Attachment",dis)
  6430. at2.Position = vt(25000,0,0)
  6431. local trl = Instance.new('Trail',dis)
  6432. trl.Attachment0 = at1
  6433. trl.FaceCamera = true
  6434. trl.Attachment1 = at2
  6435. trl.Texture = "rbxassetid://1049219073"
  6436. trl.LightEmission = 1
  6437. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6438. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6439. trl.Lifetime = 5
  6440. local bv = Instance.new("BodyVelocity")
  6441. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6442. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6443. bv.Parent = dis
  6444. game:GetService("Debris"):AddItem(dis, 5)
  6445. end
  6446. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6447. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6448. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6449. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6450. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6451. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6452. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6453. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6454. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6455. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6456. hum.CameraOffset = vt(0,0,0)
  6457. for i = 0, 24 do
  6458. 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())
  6459. end
  6460. local distam = 0
  6461. coroutine.resume(coroutine.create(function()
  6462. for i = 0, 99 do
  6463. wait()
  6464. distam = distam + 1
  6465. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6466. xa.Anchored = true
  6467. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6468. game:GetService("Debris"):AddItem(xa, 5)
  6469. for i = 0, 4 do
  6470. 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())
  6471. end
  6472. coroutine.resume(coroutine.create(function()
  6473. local eff = Instance.new("ParticleEmitter",xa)
  6474. eff.Texture = "rbxassetid://2273224484"
  6475. eff.LightEmission = 1
  6476. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6477. eff.Rate = 500000
  6478. eff.Lifetime = NumberRange.new(1,3)
  6479. 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)})
  6480. 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)})
  6481. eff.Speed = NumberRange.new(50,500)
  6482. eff.Drag = 5
  6483. eff.Rotation = NumberRange.new(-500,500)
  6484. eff.VelocitySpread = 9000
  6485. eff.RotSpeed = NumberRange.new(-50,50)
  6486. wait(0.25)
  6487. eff.Enabled = false
  6488. end))
  6489. coroutine.resume(coroutine.create(function()
  6490. for i = 0, 19 do
  6491. swait()
  6492. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6493. end
  6494. hum.CameraOffset = vt(0,0,0)
  6495. end))
  6496. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6497. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6498. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6499. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6500. end
  6501. end))
  6502. attack = false
  6503. hum.WalkSpeed = storehumanoidWS
  6504. end
  6505.  
  6506.  
  6507. function FallenOrbs()
  6508. attack = true
  6509. hum.WalkSpeed = 2
  6510. local keptcolor = MAINRUINCOLOR
  6511. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6512. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6513. local radm = math.random(1,3)
  6514. if radm == 1 then
  6515. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6516. elseif radm == 2 then
  6517. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6518. elseif radm == 3 then
  6519. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6520. end
  6521. coroutine.resume(coroutine.create(function()
  6522. for i = 0, 29 do
  6523. swait(2)
  6524. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6525. dis.Anchored = true
  6526. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6527. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6528. CreateMesh(dis,"Sphere",2,2,2)
  6529. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6530. 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"))
  6531. coroutine.resume(coroutine.create(function()
  6532. wait(0.5)
  6533. dis.Anchored = false
  6534. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6535. local at1 = Instance.new("Attachment",dis)
  6536. at1.Position = vt(-1,0,0)
  6537. local at2 = Instance.new("Attachment",dis)
  6538. at2.Position = vt(1,0,0)
  6539. local trl = Instance.new('Trail',dis)
  6540. trl.Attachment0 = at1
  6541. trl.FaceCamera = true
  6542. trl.Attachment1 = at2
  6543. trl.Texture = "rbxassetid://1049219073"
  6544. trl.LightEmission = 1
  6545. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6546. trl.Color = ColorSequence.new(dis.Color)
  6547. trl.Lifetime = 0.6
  6548. local a = Instance.new("Part",workspace)
  6549. a.Name = "Direction"
  6550. a.Anchored = true
  6551. a.BrickColor = bc("Bright red")
  6552. a.Material = "Neon"
  6553. a.Transparency = 1
  6554. a.CanCollide = false
  6555. local ray = Ray.new(
  6556. dis.CFrame.p, -- origin
  6557. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6558. )
  6559. local ignore = dis
  6560. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6561. a.BottomSurface = 10
  6562. a.TopSurface = 10
  6563. local distance = (dis.CFrame.p - position).magnitude
  6564. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6565. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6566. dis.CFrame = a.CFrame
  6567. a:Destroy()
  6568. local bv = Instance.new("BodyVelocity")
  6569. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6570. bv.velocity = dis.CFrame.lookVector*500
  6571. bv.Parent = dis
  6572. game:GetService("Debris"):AddItem(dis, 5)
  6573. local hitted = false
  6574. coroutine.resume(coroutine.create(function()
  6575. dis.Touched:connect(function(hit)
  6576. if hitted == false and hit.Parent ~= char then
  6577. hitted = true
  6578. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6579. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6580. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6581. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6582. coroutine.resume(coroutine.create(function()
  6583. for i = 0, 4 do
  6584. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6585. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6586. local at1 = Instance.new("Attachment",disr)
  6587. at1.Position = vt(-10,0,0)
  6588. local at2 = Instance.new("Attachment",disr)
  6589. at2.Position = vt(10,0,0)
  6590. local trl = Instance.new('Trail',disr)
  6591. trl.Attachment0 = at1
  6592. trl.FaceCamera = true
  6593. trl.Attachment1 = at2
  6594. trl.Texture = "rbxassetid://2342682798"
  6595. trl.LightEmission = 1
  6596. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6597. trl.Color = ColorSequence.new(disr.Color)
  6598. trl.Lifetime = 0.5
  6599. local bv = Instance.new("BodyVelocity")
  6600. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6601. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6602. bv.Parent = disr
  6603. local val = 0
  6604. coroutine.resume(coroutine.create(function()
  6605. swait(30)
  6606. for i = 0, 9 do
  6607. swait()
  6608. val = val + 0.1
  6609. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6610. end
  6611. game:GetService("Debris"):AddItem(disr, 3)
  6612. end))
  6613. end
  6614. local eff = Instance.new("ParticleEmitter",dis)
  6615. eff.Texture = "rbxassetid://1049219073"
  6616. eff.LightEmission = 1
  6617. eff.Color = ColorSequence.new(dis.Color)
  6618. eff.Rate = 500000
  6619. eff.Lifetime = NumberRange.new(0.5,2)
  6620. 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)})
  6621. 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)})
  6622. eff.Speed = NumberRange.new(20,250)
  6623. eff.Drag = 5
  6624. eff.Rotation = NumberRange.new(-500,500)
  6625. eff.VelocitySpread = 9000
  6626. eff.RotSpeed = NumberRange.new(-50,50)
  6627. wait(0.5)
  6628. eff.Enabled = false
  6629. end))
  6630. for i = 0, 4 do
  6631. 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"))
  6632. end
  6633. coroutine.resume(coroutine.create(function()
  6634. for i = 0, 19 do
  6635. swait()
  6636. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6637. end
  6638. hum.CameraOffset = vt(0,0,0)
  6639. end))
  6640. dis.Anchored = true
  6641. dis.Transparency = 1
  6642. wait(8)
  6643. dis:Destroy()
  6644. end
  6645. end)
  6646. end))
  6647. end))
  6648. end
  6649. end))
  6650. for i = 0,9,0.1 do
  6651. swait()
  6652. 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)
  6653. 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)
  6654. 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)
  6655. 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)
  6656. 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)
  6657. 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)
  6658. 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)
  6659. end
  6660. attack = false
  6661. hum.WalkSpeed = storehumanoidWS
  6662. end
  6663.  
  6664. function CyberSlash()
  6665. local posit = -2
  6666. attack = true
  6667. hum.WalkSpeed = 5
  6668. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6669. local radm = math.random(1,3)
  6670. if radm == 1 then
  6671. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6672. elseif radm == 2 then
  6673. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6674. elseif radm == 3 then
  6675. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6676. end
  6677. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6678. for i = 0,2,0.1 do
  6679. swait()
  6680. 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)
  6681. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6682. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6683. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6684. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6685. 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)
  6686. 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)
  6687. end
  6688. for i = 0, 2 do
  6689. CameraEnshaking(1,2)
  6690. local hite = Instance.new("Part", char)
  6691. hite.Anchored = true
  6692. hite.CanCollide = false
  6693. hite.FormFactor = 3
  6694. hite.Name = "Ring"
  6695. hite.Material = "Neon"
  6696. hite.Size = Vector3.new(1, 1, 1)
  6697. hite.Transparency = 1
  6698. hite.TopSurface = 0
  6699. hite.BottomSurface = 0
  6700. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6701. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6702. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6703. coroutine.resume(coroutine.create(function()
  6704. for i = 0, 1 do
  6705. swait()
  6706. 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)
  6707. 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)
  6708. 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)
  6709. end
  6710. end))
  6711. 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)
  6712. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6713. game:GetService("Debris"):AddItem(hite, 5)
  6714. posit = posit + 2
  6715. end
  6716. for i = 0,1,0.1 do
  6717. swait()
  6718. 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)
  6719. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6720. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6721. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6722. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6723. 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)
  6724. 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)
  6725. end
  6726. for i = 0,1,0.1 do
  6727. swait()
  6728. 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)
  6729. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6730. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6733. 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)
  6734. 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)
  6735. end
  6736. posit = -6
  6737. for i = 0, 6 do
  6738. CameraEnshaking(1,3)
  6739. local hite = Instance.new("Part", char)
  6740. hite.Anchored = true
  6741. hite.CanCollide = false
  6742. hite.FormFactor = 3
  6743. hite.Name = "Ring"
  6744. hite.Material = "Neon"
  6745. hite.Size = Vector3.new(1, 1, 1)
  6746. hite.Transparency = 1
  6747. hite.TopSurface = 0
  6748. hite.BottomSurface = 0
  6749. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6750. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6751. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6752. 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)
  6753. coroutine.resume(coroutine.create(function()
  6754. for i = 0, 2 do
  6755. swait()
  6756. 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)
  6757. 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)
  6758. 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)
  6759. end
  6760. end))
  6761. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6762. game:GetService("Debris"):AddItem(hite, 5)
  6763. posit = posit + 2
  6764. end
  6765. for i = 0,1,0.1 do
  6766. swait()
  6767. 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)
  6768. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6769. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6771. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6772. 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)
  6773. 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)
  6774. end
  6775. hum.WalkSpeed = storehumanoidWS
  6776. attack = false
  6777. end
  6778.  
  6779. function EquinoxOrbs()
  6780. hum.WalkSpeed = 0
  6781. attack = true
  6782. local radm = math.random(1,3)
  6783. if radm == 1 then
  6784. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6785. elseif radm == 2 then
  6786. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6787. elseif radm == 3 then
  6788. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6789. end
  6790. for i = 0,1,0.1 do
  6791. swait()
  6792. 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)
  6793. 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)
  6794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6795. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6796. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6797. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6798. end
  6799. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6800. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6801. for i = 0, 24 do
  6802. 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"))
  6803. end
  6804. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6805. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6806. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6807. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6808. for i = 0,4,0.1 do
  6809. swait()
  6810. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6811. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6812. CreateMesh(dis,"Sphere",1,1,1)
  6813. dis.Anchored = true
  6814. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6815. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6816. CreateMesh(dis2,"Sphere",1,1,1)
  6817. dis2.Anchored = true
  6818. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6819. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6820. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6821. coroutine.resume(coroutine.create(function()
  6822. swait(60)
  6823. dis.Transparency = 1
  6824. dis2.Transparency = 1
  6825. coroutine.resume(coroutine.create(function()
  6826. for i = 0, 19 do
  6827. swait()
  6828. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6829. end
  6830. hum.CameraOffset = vt(0,0,0)
  6831. end))
  6832. coroutine.resume(coroutine.create(function()
  6833. local eff = Instance.new("ParticleEmitter",dis)
  6834. eff.Texture = "rbxassetid://2273224484"
  6835. eff.LightEmission = 1
  6836. eff.Color = ColorSequence.new(dis.Color)
  6837. eff.Rate = 500000
  6838. eff.Lifetime = NumberRange.new(0.5,2)
  6839. 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)})
  6840. 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)})
  6841. eff.Speed = NumberRange.new(50,450)
  6842. eff.Drag = 5
  6843. eff.Rotation = NumberRange.new(-500,500)
  6844. eff.VelocitySpread = 9000
  6845. eff.RotSpeed = NumberRange.new(-50,50)
  6846. local eff2 = eff:Clone()
  6847. eff2.Parent = dis2
  6848. eff2.LightEmission = 0
  6849. eff2.Color = ColorSequence.new(dis2.Color)
  6850. wait(0.25)
  6851. eff.Enabled = false
  6852. eff2.Enabled = false
  6853. end))
  6854. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6855. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6856. for i = 0, 2 do
  6857. 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)
  6858. 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)
  6859. end
  6860. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6861. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6862. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6863. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6864. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6865. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6866. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6867. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6868. end))
  6869. game:GetService("Debris"):AddItem(dis, 5)
  6870. game:GetService("Debris"):AddItem(dis2, 5)
  6871. 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)
  6872. 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)
  6873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6874. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6875. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6876. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6877. end
  6878. attack = false
  6879. hum.WalkSpeed = storehumanoidWS
  6880. end
  6881. function FallenDEMISE()
  6882. attack = true
  6883. hum.WalkSpeed = 0
  6884. local keptcolor = MAINRUINCOLOR
  6885. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6886. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6887. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6888. for i = 0, 15, 0.1 do
  6889. swait()
  6890. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6891. 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)))
  6892. local at1 = Instance.new("Attachment",dis)
  6893. at1.Position = vt(-25000,0,0)
  6894. local at2 = Instance.new("Attachment",dis)
  6895. at2.Position = vt(25000,0,0)
  6896. local trl = Instance.new('Trail',dis)
  6897. trl.Attachment0 = at1
  6898. trl.FaceCamera = true
  6899. trl.Attachment1 = at2
  6900. trl.Texture = "rbxassetid://1049219073"
  6901. trl.LightEmission = 1
  6902. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6903. trl.Color = ColorSequence.new(dis.Color)
  6904. trl.Lifetime = 5
  6905. local bv = Instance.new("BodyVelocity")
  6906. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6907. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6908. bv.Parent = dis
  6909. game:GetService("Debris"):AddItem(dis, 1)
  6910. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  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("Toothpaste"))
  6912. 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"))
  6913. 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)
  6914. 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)
  6915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6917. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6918. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6919. end
  6920. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6921. for i = 0, 30, 0.1 do
  6922. swait()
  6923. coroutine.resume(coroutine.create(function()
  6924. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6925. if v:FindFirstChild('Head') then
  6926. dmg(v)
  6927. end
  6928. end
  6929. end))
  6930. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6931. 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)))
  6932. local at1 = Instance.new("Attachment",dis)
  6933. at1.Position = vt(-50000,0,0)
  6934. local at2 = Instance.new("Attachment",dis)
  6935. at2.Position = vt(50000,0,0)
  6936. local trl = Instance.new('Trail',dis)
  6937. trl.Attachment0 = at1
  6938. trl.FaceCamera = true
  6939. trl.Attachment1 = at2
  6940. trl.Texture = "rbxassetid://1049219073"
  6941. trl.LightEmission = 1
  6942. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6943. trl.Color = ColorSequence.new(dis.Color)
  6944. trl.Lifetime = 10
  6945. local bv = Instance.new("BodyVelocity")
  6946. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6947. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6948. bv.Parent = dis
  6949. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6950. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6951. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  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("Deep orange"))
  6953. 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"))
  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("Deep orange"))
  6955. 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"))
  6956. for i = 0, 2 do
  6957. 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)
  6958. end
  6959. 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)
  6960. 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)
  6961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6963. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6964. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6965. end
  6966. attack = false
  6967. hum.WalkSpeed = storehumanoidWS
  6968. end
  6969.  
  6970. function SpeedDrop()
  6971. attack = true
  6972. hum.WalkSpeed = 0
  6973. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6974. local poste = 3
  6975. local rotation = 0
  6976. local rate = 0
  6977. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6978. for i = 0, 124 do
  6979. swait()
  6980. rotation = rotation + rate
  6981. poste = poste + 0.1
  6982. rate = rate + 0.1
  6983. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6984. 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)
  6985. 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)
  6986. 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)
  6987. 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)
  6988. 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)
  6989. 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)
  6990. 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)
  6991. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6994. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6995. end
  6996. CameraEnshaking(3,7)
  6997. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6998. local loc = Instance.new("Part", char)
  6999. loc.BrickColor = MAINRUINCOLOR
  7000. loc.CanCollide = false
  7001. loc.FormFactor = 3
  7002. loc.Name = "Ring"
  7003. loc.Material = "Neon"
  7004. loc.Size = Vector3.new(1, 1, 1)
  7005. loc.Transparency = 1
  7006. loc.TopSurface = 0
  7007. loc.BottomSurface = 0
  7008. loc.Anchored = true
  7009. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7010. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7011. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7012. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7013. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7014. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7015. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7016. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7017. coroutine.resume(coroutine.create(function()
  7018. local eff = Instance.new("ParticleEmitter",loc)
  7019. eff.Texture = "rbxassetid://363275192"
  7020. eff.LightEmission = 0.95
  7021. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7022. eff.Rate = 10000
  7023. eff.Lifetime = NumberRange.new(1)
  7024. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7025. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7026. eff.Speed = NumberRange.new(100,500)
  7027. eff.Drag = 5
  7028. eff.Rotation = NumberRange.new(-500,500)
  7029. eff.VelocitySpread = 9000
  7030. eff.RotSpeed = NumberRange.new(-50,50)
  7031. wait(0.5)
  7032. eff.Enabled = false
  7033. end))
  7034. for i = 0, 49 do
  7035. 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)
  7036. end
  7037. for i = 0, 9 do
  7038. 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)
  7039. end
  7040. game:GetService("Debris"):AddItem(loc, 5)
  7041. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7042. hum.WalkSpeed = storehumanoidWS
  7043. attack = false
  7044. end
  7045.  
  7046. function cutesigh()
  7047. attack = true
  7048. hum.WalkSpeed = 0
  7049. bosschatfunc("<qni",MAINRUINCOLOR.Color,2)
  7050. local blush = Instance.new("Decal",hed)
  7051. blush.Texture = "rbxassetid://898404027"
  7052. blush.Face = "Front"
  7053. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7054. for i = 0, 9, 0.1 do
  7055. swait()
  7056. 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)
  7057. 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)
  7058. 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)
  7059. 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)
  7060. 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)
  7061. 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)
  7062. end
  7063. coroutine.resume(coroutine.create(function()
  7064. for i = 0, 49 do
  7065. swait()
  7066. blush.Transparency = blush.Transparency + 0.02
  7067. end
  7068. blush:Destroy()
  7069. end))
  7070. hum.WalkSpeed = storehumanoidWS
  7071. attack = false
  7072. end
  7073.  
  7074. function smiter()
  7075. local targetted = nil
  7076. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7077. targetted = mouse.Target.Parent
  7078. end
  7079. if targetted ~= nil then
  7080. RootPart.CFrame = FaceMouse()[1]
  7081. attack = true
  7082. local radm = math.random(1,3)
  7083. if radm == 1 then
  7084. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7085. elseif radm == 2 then
  7086. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7087. elseif radm == 3 then
  7088. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7089. end
  7090. hum.WalkSpeed = 0
  7091. coroutine.resume(coroutine.create(function()
  7092. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7093. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7094. local vel = Instance.new("BodyPosition", targetted.Head)
  7095. vel.P = 12500
  7096. vel.D = 1000
  7097. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7098. vel.position = targetted.Head.CFrame.p
  7099. end))
  7100. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7101. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7102. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7103. for i = 0,4,0.1 do
  7104. swait()
  7105. 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)
  7106. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7107. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7108. 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)
  7109. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7110. 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)
  7111. 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)
  7112. end
  7113. coroutine.resume(coroutine.create(function()
  7114. CameraEnshaking(6,5)
  7115. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7116. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7117. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7118. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7119. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7120. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7121. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7122. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7123. coroutine.resume(coroutine.create(function()
  7124. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7125. eff.Texture = "rbxassetid://2273224484"
  7126. eff.LightEmission = 1
  7127. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7128. eff.Rate = 500000
  7129. eff.Lifetime = NumberRange.new(0.5,2)
  7130. 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)})
  7131. 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)})
  7132. eff.Speed = NumberRange.new(20,250)
  7133. eff.Drag = 5
  7134. eff.Rotation = NumberRange.new(-500,500)
  7135. eff.VelocitySpread = 9000
  7136. eff.RotSpeed = NumberRange.new(-50,50)
  7137. wait(0.25)
  7138. eff.Enabled = false
  7139. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7140. eff.Texture = "rbxassetid://363275192"
  7141. eff.LightEmission = 0.95
  7142. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7143. eff.Rate = 10000
  7144. eff.Lifetime = NumberRange.new(1.5)
  7145. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7146. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7147. eff.Speed = NumberRange.new(25,150)
  7148. eff.Drag = 5
  7149. eff.Rotation = NumberRange.new(-500,500)
  7150. eff.VelocitySpread = 9000
  7151. eff.RotSpeed = NumberRange.new(-50,50)
  7152. local eff2 = eff:Clone()
  7153. eff2.Parent = targetted.Head
  7154. eff2.Texture = "rbxassetid://284205403"
  7155. eff2.Rate = 10000
  7156. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7157. eff2.Drag = 5
  7158. eff2.Rotation = NumberRange.new(-500,500)
  7159. eff2.VelocitySpread = 9000
  7160. wait(0.5)
  7161. eff2.Enabled = false
  7162. eff.Enabled = false
  7163. end))
  7164. for i = 0, 9 do
  7165. 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)
  7166. end
  7167. for i = 0, 49 do
  7168. local rsiz = math.random(10,50)
  7169. 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)
  7170. end
  7171. game:GetService("Debris"):AddItem(vel,1)
  7172. dmg(targetted)
  7173. end))
  7174. for i = 0,1,0.1 do
  7175. swait()
  7176. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7177. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7178. 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)
  7179. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7180. 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)
  7181. 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)
  7182. end
  7183. attack = false
  7184. hum.WalkSpeed = storehumanoidWS
  7185. end
  7186. end
  7187.  
  7188. function shytaunty()
  7189. attack = true
  7190. hum.WalkSpeed = 0
  7191. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7192. local blush = Instance.new("Decal",hed)
  7193. blush.Texture = "rbxassetid://898404027"
  7194. blush.Face = "Front"
  7195. for i = 0, 13, 0.1 do
  7196. swait()
  7197. 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)
  7198. 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)
  7199. 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)
  7200. 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)
  7201. 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)
  7202. 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)
  7203. end
  7204. coroutine.resume(coroutine.create(function()
  7205. for i = 0, 49 do
  7206. swait()
  7207. blush.Transparency = blush.Transparency + 0.02
  7208. end
  7209. blush:Destroy()
  7210. end))
  7211. hum.WalkSpeed = storehumanoidWS
  7212. attack = false
  7213. end
  7214.  
  7215. function PureBomb()
  7216. attack = true
  7217. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7218. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7219. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7220. local orb = Instance.new("Part", char)
  7221. orb.Anchored = true
  7222. orb.BrickColor = BrickColor.new("Toothpaste")
  7223. orb.CanCollide = false
  7224. orb.FormFactor = 3
  7225. orb.Name = "Ring"
  7226. orb.Material = "Neon"
  7227. orb.Size = Vector3.new(1, 1, 1)
  7228. orb.Transparency = 0
  7229. orb.TopSurface = 0
  7230. orb.BottomSurface = 0
  7231. local orbm = Instance.new("SpecialMesh", orb)
  7232. orbm.MeshType = "Sphere"
  7233. orbm.Name = "SizeMesh"
  7234. orbm.Scale = vt(0,0,0)
  7235. local scaled = 0.1
  7236. local posid = 0
  7237. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7238. for i = 0, 5, 0.1 do
  7239. swait()
  7240. scaled = scaled - 0.001
  7241. posid = posid - scaled
  7242. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7243. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7244. 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)
  7245. 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)
  7246. 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)
  7247. 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)
  7248. 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)
  7249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7251. 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)
  7252. end
  7253. for i = 0, 2, 0.1 do
  7254. swait()
  7255. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7256. 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)
  7257. 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)
  7258. 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)
  7259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7260. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7261. 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)
  7262. end
  7263. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7264. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7265. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7266. coroutine.resume(coroutine.create(function()
  7267. orb.Anchored = false
  7268. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7269. local a = Instance.new("Part",workspace)
  7270. a.Name = "Direction"
  7271. a.Anchored = true
  7272. a.BrickColor = bc("Bright red")
  7273. a.Material = "Neon"
  7274. a.Transparency = 1
  7275. a.CanCollide = false
  7276. local ray = Ray.new(
  7277. orb.CFrame.p, -- origin
  7278. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7279. )
  7280. local ignore = orb
  7281. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7282. a.BottomSurface = 10
  7283. a.TopSurface = 10
  7284. local distance = (orb.CFrame.p - position).magnitude
  7285. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7286. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7287. orb.CFrame = a.CFrame
  7288. a:Destroy()
  7289. local bv = Instance.new("BodyVelocity")
  7290. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7291. bv.velocity = orb.CFrame.lookVector*125
  7292. bv.Parent = orb
  7293. local hitted = false
  7294. game:GetService("Debris"):AddItem(orb, 15)
  7295. wait()
  7296. local hit =orb.Touched:connect(function(hit)
  7297. if hitted == false then
  7298. hitted = true
  7299. CameraEnshaking(10,2.5)
  7300. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7301. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7302. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7303. for i = 0, 49 do
  7304. 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)
  7305. end
  7306. local eff = Instance.new("ParticleEmitter",orb)
  7307. eff.Texture = "rbxassetid://2273224484"
  7308. eff.LightEmission = 1
  7309. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7310. eff.Rate = 500000
  7311. eff.Lifetime = NumberRange.new(0.5,2)
  7312. 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)})
  7313. 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)})
  7314. eff.Speed = NumberRange.new(20,250)
  7315. eff.Drag = 5
  7316. eff.Rotation = NumberRange.new(-500,500)
  7317. eff.VelocitySpread = 9000
  7318. eff.RotSpeed = NumberRange.new(-50,50)
  7319. coroutine.resume(coroutine.create(function()
  7320. wait(0.25)
  7321. eff.Enabled = false
  7322. end))
  7323. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7324. for i = 0, 9 do
  7325. 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)
  7326. 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)
  7327. end
  7328. orb.Anchored = true
  7329. orb.Transparency = 1
  7330. local eff = Instance.new("ParticleEmitter",orb)
  7331. eff.Texture = "rbxassetid://2273224484"
  7332. eff.LightEmission = 1
  7333. eff.Color = ColorSequence.new(Color3.new(M))
  7334. eff.Rate = 500000
  7335. eff.Lifetime = NumberRange.new(0.5,2)
  7336. 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)})
  7337. 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)})
  7338. eff.Speed = NumberRange.new(20,250)
  7339. eff.Drag = 5
  7340. eff.Rotation = NumberRange.new(-500,500)
  7341. eff.VelocitySpread = 9000
  7342. eff.RotSpeed = NumberRange.new(-50,50)
  7343. coroutine.resume(coroutine.create(function()
  7344. wait(1)
  7345. eff.Enabled = false
  7346. end))
  7347. wait(8)
  7348. orb:Destroy()
  7349. end
  7350. end)
  7351. end))
  7352. for i = 0, 1, 0.1 do
  7353. swait()
  7354. 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)
  7355. 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)
  7356. 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)
  7357. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7358. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7359. 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)
  7360. end
  7361. attack = false
  7362. end
  7363.  
  7364.  
  7365. function BeamOfDeath()
  7366. coroutine.resume(coroutine.create(function()
  7367. attack = true
  7368. hum.WalkSpeed = 0
  7369. for i = 0, 11, 0.1 do
  7370. swait()
  7371. 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)
  7372. 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)
  7373. 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)
  7374. 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)
  7375. 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)
  7376. 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)
  7377. end
  7378. for i = 0, 1, 0.1 do
  7379. swait()
  7380. 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)
  7381. 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)
  7382. 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)
  7383. 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)
  7384. 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)
  7385. 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)
  7386. end
  7387. hum.WalkSpeed = storehumanoidWS
  7388. attack = false
  7389. end))
  7390. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7391. local radm = math.random(1,3)
  7392. if radm == 1 then
  7393. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7394. elseif radm == 2 then
  7395. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7396. elseif radm == 3 then
  7397. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7398. end
  7399. local keptcolor = MAINRUINCOLOR
  7400. local orb = Instance.new("Part", char)
  7401. orb.BrickColor = keptcolor
  7402. orb.CanCollide = false
  7403. orb.FormFactor = 3
  7404. orb.Name = "Ring"
  7405. orb.Material = "Neon"
  7406. orb.Size = Vector3.new(1, 1, 1)
  7407. orb.Transparency = 1
  7408. orb.TopSurface = 0
  7409. orb.BottomSurface = 0
  7410. local orbm = Instance.new("SpecialMesh", orb)
  7411. orbm.MeshType = "Sphere"
  7412. orbm.Name = "SizeMesh"
  7413. orbm.Scale = vt(22.5,10000,22.5)
  7414. orb.CFrame = mouse.Hit
  7415. orb.Anchored = true
  7416. orb.Orientation = vt(0,0,0)
  7417. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7418. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7419. coroutine.resume(coroutine.create(function()
  7420. coroutine.resume(coroutine.create(function()
  7421. for i = 0, 175 do
  7422. swait()
  7423. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7424. orb.Transparency = orb.Transparency - 0.005
  7425. end
  7426. end))
  7427. wait(2)
  7428. coroutine.resume(coroutine.create(function()
  7429. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7430. if hfr ~= nil then
  7431. for i = 0, 24.5 do
  7432. local deb = Instance.new("Part", char)
  7433. deb.Anchored = true
  7434. deb.CanCollide = false
  7435. deb.FormFactor = 3
  7436. deb.Name = "Ring"
  7437. deb.Material = hitfloor.Material
  7438. deb.Color = hitfloor.Color
  7439. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7440. deb.Transparency = 0
  7441. deb.TopSurface = 0
  7442. deb.BottomSurface = 0
  7443. 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)))
  7444. local deb2 = Instance.new("Part", char)
  7445. deb2.CanCollide = false
  7446. deb2.FormFactor = 3
  7447. deb2.Name = "Ring"
  7448. deb2.Material = hitfloor.Material
  7449. deb2.Color = hitfloor.Color
  7450. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7451. deb2.Transparency = 0
  7452. deb2.TopSurface = 0
  7453. deb2.BottomSurface = 0
  7454. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7455. 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)))
  7456. local eff = Instance.new("ParticleEmitter",deb)
  7457. eff.Texture = "rbxassetid://363275192"
  7458. eff.LightEmission = 0.95
  7459. eff.Color = ColorSequence.new(keptcolor.Color)
  7460. eff.Rate = 100
  7461. eff.Lifetime = NumberRange.new(1)
  7462. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7463. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7464. eff.Speed = NumberRange.new(0,5)
  7465. eff.Rotation = NumberRange.new(-500,500)
  7466. eff.VelocitySpread = 9000
  7467. eff.RotSpeed = NumberRange.new(-10,10)
  7468. local at1 = Instance.new('Attachment',deb2)
  7469. at1.Position = vt(0,15,0)
  7470. local at2 = Instance.new('Attachment',deb2)
  7471. at2.Position = vt(0,-15,0)
  7472. local tl = Instance.new('Trail',deb2)
  7473. tl.Attachment0 = at1
  7474. tl.Attachment1 = at2
  7475. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7476. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7477. tl.Lifetime = 1
  7478. game:GetService("Debris"):AddItem(deb,30)
  7479. game:GetService("Debris"):AddItem(deb2,30)
  7480. coroutine.resume(coroutine.create(function()
  7481. wait(15)
  7482. eff.Enabled = false
  7483. for i = 0, 49 do
  7484. swait()
  7485. deb.Transparency = deb.Transparency + 0.02
  7486. end
  7487. wait(1)
  7488. deb:Destroy()
  7489. end))
  7490. end
  7491. end
  7492. end))
  7493. for i = 0, 199 do
  7494. swait(1.5)
  7495. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7496. if v:FindFirstChild('Head') then
  7497. dmg(v)
  7498. end
  7499. end
  7500. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  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),5,5,5,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),1,35,1,keptcolor)
  7503. 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)
  7504. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7505. end
  7506. orb:Destroy()
  7507. end))
  7508. end
  7509.  
  7510. function Beams()
  7511. attack = true
  7512. hum.WalkSpeed = 0
  7513. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7514. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7515. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7516. local keptcolor = MAINRUINCOLOR
  7517. coroutine.resume(coroutine.create(function()
  7518. for i = 0, 96 do
  7519. swait(5)
  7520. local orb = Instance.new("Part", char)
  7521. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7522. orb.BrickColor = keptcolor
  7523. orb.CanCollide = false
  7524. orb.FormFactor = 3
  7525. orb.Name = "Ring"
  7526. orb.Material = "Neon"
  7527. orb.Size = Vector3.new(1, 1, 1)
  7528. orb.Transparency = 0
  7529. orb.TopSurface = 0
  7530. orb.BottomSurface = 0
  7531. orb.Anchored = true
  7532. local orbm = Instance.new("SpecialMesh", orb)
  7533. orbm.MeshType = "Sphere"
  7534. orbm.Name = "SizeMesh"
  7535. orbm.Scale = vt(1.25,1.25,1.25)
  7536. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7537. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7538. coroutine.resume(coroutine.create(function()
  7539. wait(0.5)
  7540. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7541. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7542. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7543. orb.Transparency = 1
  7544. local a = Instance.new("Part",char)
  7545. a.Name = "Direction"
  7546. a.Anchored = true
  7547. a.BrickColor = keptcolor
  7548. a.Material = "Neon"
  7549. a.Transparency = 0.25
  7550. a.Shape = "Cylinder"
  7551. local ht = Instance.new("Part",char)
  7552. ht.Name = "DirectionHit"
  7553. ht.Anchored = true
  7554. ht.BrickColor = keptcolor
  7555. ht.CanCollide = false
  7556. ht.Transparency = 1
  7557. ht.Size = vt(0.1,0.1,0.1)
  7558. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7559. a.CanCollide = false
  7560. local ray = Ray.new(
  7561. orb.CFrame.p, -- origin
  7562. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7563. )
  7564. local ignore = char
  7565. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7566. a.BottomSurface = 10
  7567. a.TopSurface = 10
  7568. local distance = (orb.CFrame.p - position).magnitude
  7569. a.Size = Vector3.new(distance,1,1)
  7570. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7571. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7572. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7573. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7574. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7575. coroutine.resume(coroutine.create(function()
  7576. local eff = Instance.new("ParticleEmitter",ht)
  7577. eff.Texture = "rbxassetid://284205403"
  7578. eff.LightEmission = 0.95
  7579. eff.Color = ColorSequence.new(keptcolor.Color)
  7580. eff.Rate = 500
  7581. eff.Lifetime = NumberRange.new(0.5)
  7582. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7583. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7584. eff.Speed = NumberRange.new(10,50)
  7585. eff.Drag = 5
  7586. eff.Rotation = NumberRange.new(-500,500)
  7587. eff.VelocitySpread = 9000
  7588. eff.RotSpeed = NumberRange.new(-500,500)
  7589. wait(0.25)
  7590. eff.Enabled = false
  7591. end))
  7592. for i = 0, 4 do
  7593. 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)
  7594. 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)
  7595. local rsiz = math.random(10,30)
  7596. 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)
  7597. end
  7598. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7599. local msh = Instance.new("SpecialMesh",a)
  7600. msh.MeshType = "Cylinder"
  7601. msh.Scale = vt(1,1,1)
  7602. for i = 0, 49 do
  7603. swait()
  7604. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7605. a.Transparency = a.Transparency + 0.02
  7606. end
  7607. orb:Destroy()
  7608. a:Destroy()
  7609. ht:Destroy()
  7610. end))
  7611. game:GetService("Debris"):AddItem(orb, 10)
  7612. end
  7613. end))
  7614. for i = 0,6,0.1 do
  7615. swait()
  7616. 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)
  7617. 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)
  7618. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7619. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7620. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7621. 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)
  7622. 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)
  7623. end
  7624. hum.WalkSpeed = storehumanoidWS
  7625. attack = false
  7626. end
  7627.  
  7628. function CalamityTrans()
  7629. attack = true
  7630. rainbowmode = false
  7631. chaosmode = false
  7632. ModeOfGlitch = 8889
  7633. hum.WalkSpeed = 0
  7634. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7635. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7636. elocacenter.Anchored = true
  7637. elocacenter.CFrame = root.CFrame
  7638. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7639. eloca1.Anchored = true
  7640. eloca1.CFrame = elocacenter.CFrame
  7641. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7642. eloca2.Anchored = true
  7643. eloca2.CFrame = elocacenter.CFrame
  7644. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7645. eloca3.Anchored = true
  7646. eloca3.CFrame = elocacenter.CFrame
  7647. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7648. eloca4.Anchored = true
  7649. eloca4.CFrame = elocacenter.CFrame
  7650. local lookavec = 0
  7651. local speeds = 0
  7652. CameraEnshaking(3,2.5)
  7653. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7654. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7655. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7656. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7657. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7658. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7659. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7660. for i = 0, 5, 0.1 do
  7661. swait()
  7662. ---
  7663. lookavec = lookavec + 1
  7664. speeds = speeds + 10
  7665. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7666. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7667. 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)
  7668. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7669. 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)
  7670. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7671. 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)
  7672. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7673. 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)
  7674. ---
  7675. 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)
  7676. 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)
  7677. 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)
  7678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7679. 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)
  7680. 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)
  7681. end
  7682. for i = 0, 5, 0.1 do
  7683. swait()
  7684. ---
  7685. speeds = speeds + 10
  7686. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7687. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7688. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7689. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7690. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7691. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7692. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7693. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7694. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
  7695. ---
  7696. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7697. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7698. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7700. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7701. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
  7702. end
  7703. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7704. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7705. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7706. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7707. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7708. CameraEnshaking(1,3)
  7709. for i = 0, 24 do
  7710. 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)
  7711. 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)
  7712. 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)
  7713. 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)
  7714. end
  7715. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7716. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7717. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7718. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7719. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7720. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7721. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7722. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7723. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7724. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7725. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7726. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7727. for i = 0, 5, 0.1 do
  7728. swait()
  7729. ---
  7730. lookavec = lookavec - 1
  7731. speeds = speeds + 10
  7732. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7733. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7734. 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)
  7735. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7736. 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)
  7737. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7738. 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)
  7739. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7740. 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)
  7741. ---
  7742. 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)
  7743. 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)
  7744. 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)
  7745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7746. 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)
  7747. 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)
  7748. end
  7749. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7750. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7751. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7752. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7753. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7754. for i = 0, 49 do
  7755. 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)
  7756. 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)
  7757. end
  7758. CameraEnshaking(5,6)
  7759. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7760. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7761. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7762. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7763. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7764. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7765. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7766. storehumanoidWS = 100
  7767. hum.WalkSpeed = 100
  7768. rainbowmode = false
  7769. chaosmode = false
  7770. tl1.Enabled = true
  7771. tl2.Enabled = true
  7772. tl3.Enabled = true
  7773. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7774. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7775. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7776. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7777. for i, v in pairs(mw2:GetChildren()) do
  7778. if v:IsA("Part") then
  7779. v.BrickColor = MAINRUINCOLOR
  7780. v.Material = "Neon"
  7781. end
  7782. end
  7783. for i, v in pairs(mw1:GetChildren()) do
  7784. if v:IsA("Part") then
  7785. v.Transparency = 0
  7786. v.BrickColor = MAINRUINCOLOR
  7787. v.Material = "Neon"
  7788. end
  7789. end
  7790. for i, v in pairs(m:GetChildren()) do
  7791. if v:IsA("Part") then
  7792. v.Color = Color3.new(0.5,0,1)
  7793. v.Material = "Neon"
  7794. end
  7795. end
  7796. for i, v in pairs(m2:GetChildren()) do
  7797. if v:IsA("Part") then
  7798. v.Color = Color3.new(0.25,0,1)
  7799. v.Material = "Neon"
  7800. end
  7801. end
  7802. for i, v in pairs(m3:GetChildren()) do
  7803. if v:IsA("Part") then
  7804. v.Color = Color3.new(0.45,0,1)
  7805. v.Material = "Neon"
  7806. end
  7807. end
  7808. for i, v in pairs(extrawingmod1:GetChildren()) do
  7809. if v:IsA("Part") then
  7810. v.Transparency = 0.75
  7811. v.Color = Color3.new(0.25,0,1)
  7812. v.Material = "Neon"
  7813. end
  7814. end
  7815. for i, v in pairs(extrawingmod2:GetChildren()) do
  7816. if v:IsA("Part") then
  7817. v.Transparency = 0.75
  7818. v.Color = Color3.new(0.5,0,1)
  7819. v.Material = "Neon"
  7820. end
  7821. end
  7822. attack = false
  7823. end
  7824.  
  7825. function GleamingBeam()
  7826. attack = true
  7827. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7828. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7829. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7830. local rsiz = math.random(1,15)
  7831. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7832. hb.Anchored = true
  7833. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7834. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7835. for i = 0, 16, 0.1 do
  7836. swait()
  7837. rsiz = math.random(5,15)
  7838. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7839. 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)
  7840. 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)
  7841. 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)
  7842. 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)
  7843. 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)
  7844. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7845. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7846. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7847. end
  7848. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7849. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7850. for i = 0, 2 do
  7851. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7852. end
  7853. 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)
  7854. 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)
  7855. 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)
  7856. for i = 0, 49 do
  7857. local rsiza = math.random(1,15)
  7858. 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)
  7859. end
  7860. local a = Instance.new("Part",Character)
  7861. a.Name = "Direction"
  7862. a.Anchored = true
  7863. a.BrickColor = MAINRUINCOLOR
  7864. a.Material = "Neon"
  7865. a.Transparency = 0
  7866. a.Shape = "Cylinder"
  7867. a.CanCollide = false
  7868. local ba = Instance.new("Part",Character)
  7869. ba.Name = "HitDirect"
  7870. ba.Anchored = true
  7871. ba.BrickColor = bc("Cool yellow")
  7872. ba.Material = "Neon"
  7873. ba.Transparency = 1
  7874. ba.CanCollide = false
  7875. local ray = Ray.new(
  7876. hb.CFrame.p, -- origin
  7877. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7878. )
  7879. local ignore = Character
  7880. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7881. a.BottomSurface = 10
  7882. a.TopSurface = 10
  7883. local distance = (hb.CFrame.p - position).magnitude
  7884. a.Size = Vector3.new(distance, 1, 1)
  7885. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7886. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7887. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7888. local msh = Instance.new("SpecialMesh",a)
  7889. msh.MeshType = "Cylinder"
  7890. msh.Scale = vt(1,4,4)
  7891. game:GetService("Debris"):AddItem(a, 30)
  7892. game:GetService("Debris"):AddItem(ba, 30)
  7893. for i = 0, 25, 0.1 do
  7894. swait()
  7895. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7896. ray = Ray.new(
  7897. hb.CFrame.p, -- origin
  7898. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7899. )
  7900. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7901. distance = (hb.CFrame.p - position).magnitude
  7902. a.Size = Vector3.new(distance, 1, 1)
  7903. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7904. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7905. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7906. rsiz = math.random(5,25)
  7907. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7908. 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)
  7909. for c = 0, 2 do
  7910. 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)
  7911. end
  7912. 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)
  7913. 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)
  7914. 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)
  7915. 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)
  7916. 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)
  7917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7918. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7919. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7920. end
  7921. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7922. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7923. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7924. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7925. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7926. 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)
  7927. 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)
  7928. 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)
  7929. 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)
  7930. 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)
  7931. 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)
  7932. for i = 0, 49 do
  7933. local rsiza = math.random(1,15)
  7934. 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)
  7935. end
  7936. for i = 0, 49 do
  7937. rsiz = math.random(1,8)
  7938. 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)
  7939. end
  7940. coroutine.resume(coroutine.create(function()
  7941. for i = 0, 99 do
  7942. swait()
  7943. a.Transparency = a.Transparency + 0.01
  7944. end
  7945. a:Destroy()
  7946. ba:Destroy()
  7947. end))
  7948. hb:Destroy()
  7949. attack = false
  7950. end
  7951.  
  7952. function DualGleamingBeam()
  7953. attack = true
  7954. hum.WalkSpeed = 0
  7955. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7956. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7957. local radm = math.random(1,3)
  7958. if radm == 1 then
  7959. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7960. elseif radm == 2 then
  7961. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7962. elseif radm == 3 then
  7963. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7964. end
  7965. local rsiz = math.random(1,15)
  7966. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7967. hb.Anchored = true
  7968. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7969. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7970. hb2.Anchored = true
  7971. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7972. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7973. for i = 0, 14, 0.1 do
  7974. swait()
  7975. rsiz = math.random(5,15)
  7976. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7977. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7978. 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)
  7979. 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)
  7980. 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)
  7981. 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"))
  7982. 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)
  7983. 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)
  7984. 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)
  7985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7986. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7987. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7988. end
  7989. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7990. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7991. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7992. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7993. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7994. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7995. 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)
  7996. 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)
  7997. 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)
  7998. 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"))
  7999. 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"))
  8000. 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"))
  8001. for i = 0, 49 do
  8002. local rsiza = math.random(1,15)
  8003. 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)
  8004. 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)
  8005. end
  8006. local a = Instance.new("Part",Character)
  8007. a.Name = "Direction"
  8008. a.Anchored = true
  8009. a.BrickColor = MAINRUINCOLOR
  8010. a.Material = "Neon"
  8011. a.Transparency = 0
  8012. a.Shape = "Cylinder"
  8013. a.CanCollide = false
  8014. local a2 = Instance.new("Part",Character)
  8015. a2.Name = "Direction"
  8016. a2.Anchored = true
  8017. a2.BrickColor = MAINRUINCOLOR
  8018. a2.Material = "Neon"
  8019. a2.Transparency = 0
  8020. a2.Shape = "Cylinder"
  8021. a2.CanCollide = false
  8022. local ba = Instance.new("Part",Character)
  8023. ba.Name = "HitDirect"
  8024. ba.Anchored = true
  8025. ba.BrickColor = MAINRUINCOLOR
  8026. ba.Material = "Neon"
  8027. ba.Transparency = 1
  8028. ba.CanCollide = false
  8029. local ba2 = Instance.new("Part",Character)
  8030. ba2.Name = "HitDirect"
  8031. ba2.Anchored = true
  8032. ba2.BrickColor = MAINRUINCOLOR
  8033. ba2.Material = "Neon"
  8034. ba2.Transparency = 1
  8035. ba2.CanCollide = false
  8036. local ray = Ray.new(
  8037. hb.CFrame.p, -- origin
  8038. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8039. )
  8040. local ignore = Character
  8041. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8042. local ray2 = Ray.new(
  8043. hb2.CFrame.p, -- origin
  8044. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8045. )
  8046. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8047. local distance2 = (hb2.CFrame.p - position).magnitude
  8048.  
  8049. a.BottomSurface = 10
  8050. a.TopSurface = 10
  8051. local distance = (hb.CFrame.p - position).magnitude
  8052. a.Size = Vector3.new(distance, 1, 1)
  8053. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8054. a2.BottomSurface = 10
  8055. a2.TopSurface = 10
  8056. a2.Size = Vector3.new(distance2, 1, 1)
  8057. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8058. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8059. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8060. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8061. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8062. local msh = Instance.new("SpecialMesh",a)
  8063. msh.MeshType = "Cylinder"
  8064. msh.Scale = vt(1,4,4)
  8065. local msh2 = Instance.new("SpecialMesh",a2)
  8066. msh2.MeshType = "Cylinder"
  8067. msh2.Scale = vt(1,4,4)
  8068. game:GetService("Debris"):AddItem(a, 30)
  8069. game:GetService("Debris"):AddItem(a2, 30)
  8070. game:GetService("Debris"):AddItem(ba, 30)
  8071. game:GetService("Debris"):AddItem(ba2, 30)
  8072. for i = 0, 20, 0.1 do
  8073. swait()
  8074. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8075. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8076. ray = Ray.new(
  8077. hb.CFrame.p, -- origin
  8078. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8079. )
  8080. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8081. distance = (hb.CFrame.p - position).magnitude
  8082. ray2 = Ray.new(
  8083. hb2.CFrame.p, -- origin
  8084. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8085. )
  8086. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8087. distance2 = (hb2.CFrame.p - position).magnitude
  8088. a.Size = Vector3.new(distance, 1, 1)
  8089. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8090. a2.Size = Vector3.new(distance2, 1, 1)
  8091. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8092. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8093. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8094. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8095. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8096. rsiz = math.random(5,25)
  8097. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8098. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8099. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8100. if v:FindFirstChild('Head') then
  8101. dmg(v)
  8102. end
  8103. end
  8104. coroutine.resume(coroutine.create(function()
  8105. local bx = Instance.new("Part",Character)
  8106. bx.Name = "Location"
  8107. bx.Anchored = true
  8108. bx.BrickColor = MAINRUINCOLOR
  8109. bx.Material = "Neon"
  8110. bx.Transparency = 1
  8111. bx.CanCollide = false
  8112. bx.Position = ba.Position
  8113. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8114. wait(math.random(1,2))
  8115. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8116. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8117. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8118. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8119. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8120. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8121. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8122. if v:FindFirstChild('Head') then
  8123. dmg(v)
  8124. end
  8125. end
  8126. wait(5)
  8127. bx:Destroy()
  8128. end))
  8129. 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)
  8130. 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)
  8131. for c = 0, 2 do
  8132. 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)
  8133. end
  8134. 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)
  8135. 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)
  8136. 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)
  8137. 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)
  8138. 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)
  8139. 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)
  8140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8141. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8142. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8143. end
  8144. for i = 0, 1 do
  8145. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8146. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8147. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8148. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8149. end
  8150. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8151. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8152. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8153. if v:FindFirstChild('Head') then
  8154. dmg(v)
  8155. end
  8156. end
  8157. 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)
  8158. 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)
  8159. 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)
  8160. 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)
  8161. 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)
  8162. 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)
  8163. 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"))
  8164. 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"))
  8165. 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"))
  8166. for i = 0, 49 do
  8167. local rsiza = math.random(1,15)
  8168. 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)
  8169. 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)
  8170. end
  8171. for i = 0, 49 do
  8172. rsiz = math.random(1,8)
  8173. 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)
  8174. end
  8175. coroutine.resume(coroutine.create(function()
  8176. for i = 0, 99 do
  8177. swait()
  8178. a.Transparency = a.Transparency + 0.01
  8179. a2.Transparency = a2.Transparency + 0.01
  8180. end
  8181. a:Destroy()
  8182. ba:Destroy()
  8183. a2:Destroy()
  8184. ba2:Destroy()
  8185. end))
  8186. hum.WalkSpeed = storehumanoidWS
  8187. hb:Destroy()
  8188. hb2:Destroy()
  8189. attack = false
  8190. end
  8191.  
  8192. function dragin()
  8193. local targetted = nil
  8194. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8195. targetted = mouse.Target.Parent
  8196. end
  8197. if targetted ~= nil then
  8198. RootPart.CFrame = FaceMouse()[1]
  8199. attack = true
  8200. hum.WalkSpeed = 0
  8201. for x = 0, 1 do
  8202. for i = 0,1,0.5 do
  8203. swait()
  8204. 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)
  8205. 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)
  8206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8208. 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)
  8209. 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)
  8210. end
  8211. for i = 0,1,0.5 do
  8212. swait()
  8213. 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)
  8214. 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)
  8215. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8216. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8217. 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)
  8218. 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)
  8219. end
  8220. for i = 0,1,0.5 do
  8221. swait()
  8222. 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)
  8223. 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)
  8224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8226. 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)
  8227. 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)
  8228. end
  8229. for i = 0,1,0.5 do
  8230. swait()
  8231. 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)
  8232. 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)
  8233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8235. 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)
  8236. 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)
  8237. end
  8238. end
  8239. coroutine.resume(coroutine.create(function()
  8240. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8241. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8242. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8243. end))
  8244. local A1 = Instance.new("Attachment",targetted.Head)
  8245. local A2 = Instance.new("Attachment",sorb)
  8246. local Beem = Instance.new("Beam",tors)
  8247. Beem.Attachment0 = A1
  8248. Beem.Attachment1 = A2
  8249. Beem.Texture = "rbxassetid://897585362"
  8250. Beem.LightEmission = 0.75
  8251. Beem.FaceCamera = true
  8252. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8253. Beem.Width0 = 1
  8254. Beem.Width1 = 1
  8255. Beem.TextureMode = "Wrap"
  8256. Beem.TextureLength = 1
  8257. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  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.15,0.15,0.15,MAINRUINCOLOR)
  8259. 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)
  8260. for x = 0, 24 do
  8261. local rsiz = math.random(5,15)
  8262. 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)
  8263. end
  8264.  
  8265. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8266. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8267. local radm = math.random(1,2)
  8268. if radm == 1 then
  8269. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8270. elseif radm == 2 then
  8271. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8272. end
  8273. for i = 0,3,0.1 do
  8274. swait()
  8275. coroutine.resume(coroutine.create(function()
  8276. local rsiz = math.random(5,15)
  8277. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8278. 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)
  8279. end))
  8280. 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)
  8281. 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)
  8282. 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)
  8283. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8284. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8285. 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)
  8286. 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)
  8287. end
  8288. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8289. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8290. local vel = Instance.new("BodyPosition", targetted.Head)
  8291. vel.P = 12500
  8292. vel.D = 1000
  8293. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8294. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8295. for i = 0,4,0.1 do
  8296. swait()
  8297. coroutine.resume(coroutine.create(function()
  8298. local rsiz = math.random(5,15)
  8299. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8300. 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)
  8301. end))
  8302. 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)
  8303. 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)
  8304. 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)
  8305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8307. 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)
  8308. 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)
  8309. end
  8310. local visibility = 0
  8311. coroutine.resume(coroutine.create(function()
  8312. for i = 0, 49 do
  8313. swait()
  8314. visibility = visibility + 0.02
  8315. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8316. end
  8317. Beem:Destroy()
  8318. A1:Destroy()
  8319. A2:Destroy()
  8320. end))
  8321. game:GetService("Debris"):AddItem(vel,0.75)
  8322. attack = false
  8323. hum.WalkSpeed = storehumanoidWS
  8324.  
  8325. end
  8326. end
  8327.  
  8328. function hugg()
  8329. attack = true
  8330. hum.WalkSpeed = 5
  8331. local rsiz = math.random(5,15)
  8332. for i = 0, 2, 0.1 do
  8333. swait()
  8334. 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)
  8335. 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)
  8336. 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)
  8337. 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)
  8338. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8339. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8340. end
  8341. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8342. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8343. hb.Anchored = true
  8344. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8345. local huggedperson = nil
  8346. local act = false
  8347. local alreadydid = false
  8348. for i = 0, 3, 0.1 do
  8349. swait()
  8350. if act == false then
  8351. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8352. if v:FindFirstChild('Head') then
  8353. if alreadydid == false then
  8354. huggedperson = v
  8355. hum.WalkSpeed = 0
  8356. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8357. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8358. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8359. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8360. local radm = math.random(1,3)
  8361. if radm == 1 then
  8362. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8363. elseif radm == 2 then
  8364. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8365. elseif radm == 3 then
  8366. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8367. end
  8368. root.Anchored = true
  8369. coroutine.resume(coroutine.create(function()
  8370. huggedperson.Humanoid.WalkSpeed = 0
  8371. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8372. end))
  8373. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8374. alreadydid = true
  8375. act = true
  8376. print(huggedperson.Name)
  8377. end
  8378. end
  8379. end
  8380. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8381. 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)
  8382. elseif act == true then
  8383. coroutine.resume(coroutine.create(function()
  8384. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8385. end))
  8386. rsiz = math.random(5,15)
  8387. 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)
  8388. 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)
  8389. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8390. end
  8391. 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)
  8392. 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)
  8393. 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)
  8394. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8395. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8396. end
  8397. hb:Destroy()
  8398. if act == true then
  8399. for x = 0, 2 do
  8400. for i = 0, 2, 0.1 do
  8401. swait()
  8402. coroutine.resume(coroutine.create(function()
  8403. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8404. end))
  8405. rsiz = math.random(5,15)
  8406. 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)
  8407. 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)
  8408. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8409. 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)
  8410. 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)
  8411. 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)
  8412. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8413. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8414. end
  8415. for i = 0, 2, 0.1 do
  8416. swait()
  8417. coroutine.resume(coroutine.create(function()
  8418. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8419. end))
  8420. rsiz = math.random(5,15)
  8421. 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)
  8422. 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)
  8423. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8424. 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)
  8425. 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)
  8426. 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)
  8427. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8428. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8429. end
  8430. end
  8431. end
  8432. hum.WalkSpeed = storehumanoidWS
  8433. root.Anchored = false
  8434. if act == true then
  8435. coroutine.resume(coroutine.create(function()
  8436. huggedperson.Humanoid.WalkSpeed = 16
  8437. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8438. end))
  8439. end
  8440. hum.WalkSpeed = storehumanoidWS
  8441. attack = false
  8442. end
  8443.  
  8444. function Counter()
  8445. hum.WalkSpeed = 0
  8446. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8447. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8448. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8449. attack = true
  8450. for i = 0,1,0.1 do
  8451. swait()
  8452. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8453. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8454. 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)
  8455. 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)
  8456. 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)
  8457. 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)
  8458. end
  8459. CameraEnshaking(3,4)
  8460. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8461. 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)
  8462. 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)
  8463. 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)
  8464. coroutine.resume(coroutine.create(function()
  8465. local eff = Instance.new("ParticleEmitter",root)
  8466. eff.Texture = "rbxassetid://363275192"
  8467. eff.LightEmission = 0.95
  8468. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8469. eff.Rate = 10000
  8470. eff.Lifetime = NumberRange.new(1)
  8471. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8472. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8473. eff.Speed = NumberRange.new(10,125)
  8474. eff.Drag = 5
  8475. eff.Rotation = NumberRange.new(-500,500)
  8476. eff.VelocitySpread = 9000
  8477. eff.RotSpeed = NumberRange.new(-50,50)
  8478. local eff2 = eff:Clone()
  8479. eff2.Parent = root
  8480. eff2.Texture = "rbxassetid://284205403"
  8481. eff2.Rate = 10000
  8482. 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)})
  8483. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8484. eff2.Drag = 5
  8485. eff2.Speed = NumberRange.new(10,50)
  8486. eff2.Rotation = NumberRange.new(-500,500)
  8487. eff2.VelocitySpread = 9000
  8488. wait(0.25)
  8489. eff2.Enabled = false
  8490. eff.Enabled = false
  8491. wait(3)
  8492. eff2:Destroy()
  8493. eff:Destroy()
  8494. end))
  8495. for i = 0, 9 do
  8496. 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)
  8497. end
  8498. for i = 0, 24 do
  8499. local rsiz = math.random(5,20)
  8500. 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)
  8501. end
  8502. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8503. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8504. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8505. for i = 0,2,0.1 do
  8506. swait()
  8507. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8508. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8509. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8510. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8511. 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)
  8512. 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)
  8513. end
  8514. hum.WalkSpeed = storehumanoidWS
  8515. attack = false
  8516. end
  8517.  
  8518. function superjump()
  8519. attack = true
  8520. hum.WalkSpeed = 0
  8521. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8522. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8523. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8524. for i = 0, 2, 0.1 do
  8525. swait()
  8526. root.Velocity = vt(0,0,0)
  8527. 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"))
  8528. 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)
  8529. 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)
  8530. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8531. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8532. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8533. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8534. end
  8535. MagniDamage(root, 28, 25,50, 25, "Normal")
  8536. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8537. hum.Jump = true
  8538. swait()
  8539. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8540. 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)
  8541. 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)
  8542. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8543. for i = 0, 3, 0.1 do
  8544. swait()
  8545. 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)
  8546. 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)
  8547. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8548. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8549. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8550. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8551. end
  8552. attack = false
  8553. if equipped == false then
  8554. hum.WalkSpeed = 16
  8555. else
  8556. hum.WalkSpeed = 24
  8557. end
  8558. end
  8559.  
  8560.  
  8561. -------------------------------------
  8562.  
  8563.  
  8564.  
  8565. Humanoid.Animator.Parent = nil
  8566.  
  8567.  
  8568.  
  8569. -------------------------------------
  8570.  
  8571. local attacktype = 1
  8572. mouse.Button1Down:connect(function()
  8573. if attack == false and attacktype == 1 then
  8574. attacktype = 2
  8575. attackone()
  8576. elseif attack == false and attacktype == 2 then
  8577. attacktype = 3
  8578. attacktwo()
  8579. elseif attack == false and attacktype == 3 then
  8580. attacktype = 1
  8581. attackthree()
  8582. elseif attack == false and attacktype == 4 then
  8583. attacktype = 1
  8584. --attackfour()
  8585. end
  8586. end)
  8587. mouse.KeyDown:connect(function(k)
  8588. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8589. --normalmog()
  8590. ModeOfGlitch = 1
  8591. storehumanoidWS = 16
  8592. hum.WalkSpeed = 16
  8593. rainbowmode = false
  8594. chaosmode = false
  8595. newTheme("rbxassetid://2329002275",48.6,1,0.85)
  8596. RecolorTextAndRename("ECSECTIOR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8597. MAINRUINCOLOR = BrickColor.new("Really red")
  8598. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8599. end
  8600. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8601. ModeOfGlitch = 2
  8602. storehumanoidWS = 16
  8603. hum.WalkSpeed = 16
  8604. rainbowmode = false
  8605. chaosmode = false
  8606. RecolorTextAndRename("SOLAR",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8607. newTheme("rbxassetid://419346122",0,1,0.85)
  8608. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8609. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8610. end
  8611. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8612. ModeOfGlitch = 3
  8613. storehumanoidWS = 14
  8614. hum.WalkSpeed = 14
  8615. rainbowmode = false
  8616. chaosmode = false
  8617. RecolorTextAndRename("BLAZE",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8618. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8619. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8620. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8621. end
  8622. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8623. ModeOfGlitch = 4
  8624. storehumanoidWS = 14
  8625. hum.WalkSpeed = 14
  8626. rainbowmode = false
  8627. chaosmode = true
  8628. RecolorTextAndRename("Forbidden Soul",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8629. newTheme("rbxassetid://360038265",0,1.01,0.85)
  8630. MAINRUINCOLOR = BrickColor.new("Black")
  8631. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8632. end
  8633. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8634. ModeOfGlitch = 5
  8635. storehumanoidWS = 14
  8636. hum.WalkSpeed = 14
  8637. rainbowmode = false
  8638. chaosmode = false
  8639. RecolorTextAndRename("divinity",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8640. newTheme("rbxassetid://595800581",0,1.02,0.85)
  8641. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8642. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8643. end
  8644. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8645. ModeOfGlitch = 6
  8646. storehumanoidWS = 65
  8647. hum.WalkSpeed = 65
  8648. rainbowmode = false
  8649. chaosmode = false
  8650. RecolorTextAndRename("Cyber Monarch",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8651. newTheme("rbxassetid://170282324",0,1.01,0.85)
  8652. MAINRUINCOLOR = BrickColor.new("White")
  8653. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8654. end
  8655. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8656. ModeOfGlitch = 8
  8657. storehumanoidWS = 100
  8658. hum.WalkSpeed = 100
  8659. rainbowmode = false
  8660. chaosmode = false
  8661. RecolorTextAndRename("AMY ORIGINAL",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Code")
  8662. newTheme("rbxassetid://2479443820",0,1.01,0.85)
  8663. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8664. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8665. end
  8666. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8667. ModeOfGlitch = 9
  8668. storehumanoidWS = 85
  8669. hum.WalkSpeed = 85
  8670. rainbowmode = false
  8671. chaosmode = false
  8672. RecolorTextAndRename("The_Hell_Error_BR",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8673. newTheme("rbxassetid://407749940",0,1.01,0.85)
  8674. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8675. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8676. end
  8677. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8678. ModeOfGlitch = 5555
  8679. storehumanoidWS = 30
  8680. hum.WalkSpeed = 30
  8681. rainbowmode = false
  8682. chaosmode = false
  8683. RecolorTextAndRename("DOGE",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8684. newTheme("rbxassetid://150794704",0,1,1.25)
  8685. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8686. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8687. end
  8688. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8689. CalamityTrans()
  8690. end
  8691. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8692. ModeOfGlitch = 55469696922
  8693. storehumanoidWS = 150
  8694. hum.WalkSpeed = 150
  8695. rainbowmode = false
  8696. chaosmode = false
  8697. RecolorTextAndRename("meme guy",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8698. newTheme("rbxassetid://2039029608",0,1.005,0.9)
  8699. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8700. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8701. end
  8702. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8703. ModeOfGlitch = 4367677813
  8704. storehumanoidWS = 75
  8705. hum.WalkSpeed = 75
  8706. rainbowmode = false
  8707. chaosmode = false
  8708. RecolorTextAndRename("dark god",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8709. newTheme("rbxassetid://601069330",0,1.01,0.95)
  8710. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8711. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8712. end
  8713. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8714. ModeOfGlitch = 9999999921111
  8715. storehumanoidWS = 145
  8716. hum.WalkSpeed = 145
  8717. rainbowmode = false
  8718. chaosmode = false
  8719. RecolorTextAndRename("noob",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8720. newTheme("rbxassetid://265241849",0,1.01,1)
  8721. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8722. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8723. end
  8724. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8725. ModeOfGlitch = 999999999556
  8726. storehumanoidWS = 115
  8727. hum.WalkSpeed = 115
  8728. rainbowmode = false
  8729. chaosmode = false
  8730. RecolorTextAndRename("the insanity error",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8731. newTheme("rbxassetid://919231299",0,1.02,0.85)
  8732. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8733. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8734. end
  8735. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8736. ModeOfGlitch = 12
  8737. storehumanoidWS = 19
  8738. hum.WalkSpeed = 19
  8739. rainbowmode = false
  8740. chaosmode = false
  8741. print'Mode was meant for Vengeful Program or those other fans out there'
  8742. RecolorTextAndRename("SONIC AND CYAN SONIC",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8743. newTheme("rbxassetid://1873219898",0,1,1.7)
  8744. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8745. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8746. end
  8747.  
  8748. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8749. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8750. for i = 0, 49 do
  8751. 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)
  8752. end
  8753. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8754. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8755. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8756. hum.WalkSpeed = storehumanoidWS
  8757. attack = false
  8758. ModeOfGlitch = 50
  8759. storehumanoidWS = 18
  8760. hum.WalkSpeed = 18
  8761. rainbowmode = false
  8762. chaosmode = false
  8763. RecolorTextAndRename("GHOST",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8764. newTheme("rbxassetid://1564523997",0,1.01,1.5)
  8765. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8766. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8767. end
  8768.  
  8769. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8770. hum.WalkSpeed = 0
  8771. attack = true
  8772. for i = 0,1,0.1 do
  8773. swait()
  8774. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8775. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8776. 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)
  8777. 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)
  8778. 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)
  8779. 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)
  8780. end
  8781. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8782. for i = 0, 148 do
  8783. 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)
  8784. end
  8785. for i = 0,3,0.1 do
  8786. 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)
  8787. end
  8788. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8789. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8790. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8791. hum.WalkSpeed = storehumanoidWS
  8792. attack = false
  8793. ModeOfGlitch = 66
  8794. storehumanoidWS = 16
  8795. hum.WalkSpeed = 16
  8796. rainbowmode = false
  8797. chaosmode = false
  8798. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8799. MAINRUINCOLOR = BrickColor.new("Really black")
  8800. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8801. for i = 0,2,0.1 do
  8802. swait()
  8803. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8804. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8805. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8806. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8807. 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)
  8808. 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)
  8809. end
  8810. end
  8811.  
  8812. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8813. hum.WalkSpeed = 0
  8814. attack = true
  8815. for i = 0,1,0.1 do
  8816. swait()
  8817. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8818. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8819. 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)
  8820. 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)
  8821. 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)
  8822. 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)
  8823. end
  8824. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8825. for i = 0, 49 do
  8826. 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)
  8827. end
  8828. for i = 0,3,0.1 do
  8829. 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)
  8830. end
  8831. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8832. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8833. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8834. hum.WalkSpeed = storehumanoidWS
  8835. attack = false
  8836. ModeOfGlitch = 13
  8837. storehumanoidWS = 45
  8838. hum.WalkSpeed = 45
  8839. rainbowmode = false
  8840. chaosmode = false
  8841. RecolorTextAndRename("PURITY",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8842. newTheme("rbxassetid://207375545",0,1,1.35)
  8843. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8844. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8845. for i = 0,2,0.1 do
  8846. swait()
  8847. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8848. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8850. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8851. 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)
  8852. 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)
  8853. end
  8854. end
  8855. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8856. ModeOfGlitch = 1002
  8857. storehumanoidWS = 45
  8858. hum.WalkSpeed = 45
  8859. rainbowmode = false
  8860. chaosmode = false
  8861. RecolorTextAndRename("GRIM",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8862. newTheme("rbxassetid://563062677",0,1,0.85)
  8863. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8864. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8865. end
  8866. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8867. ModeOfGlitch = 1003
  8868. storehumanoidWS = 90
  8869. hum.WalkSpeed = 90
  8870. rainbowmode = false
  8871. chaosmode = false
  8872. RecolorTextAndRename("evil gloves",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8873. newTheme("rbxassetid://254826701",0,1,0.85)
  8874. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8875. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8876. end
  8877. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8878. ModeOfGlitch = 1264532489
  8879. storehumanoidWS = 175
  8880. hum.WalkSpeed = 175
  8881. rainbowmode = false
  8882. chaosmode = false
  8883. RecolorTextAndRename("EDGY",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8884. newTheme("rbxassetid://486598641",0,1.01,1.25)
  8885. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8886. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8887. end
  8888. if k == "l" and mutedtog == false then
  8889. mutedtog = true
  8890. kan.Volume = 0.85
  8891. elseif k == "l" and mutedtog == true then
  8892. mutedtog = false
  8893. kan.Volume = 0.85
  8894. end
  8895. if k == "p" and toggleTag == false then
  8896. toggleTag = true
  8897. modet.TextTransparency = 0
  8898. modet.TextStrokeTransparency = 0
  8899. elseif k == "p" and toggleTag == true then
  8900. toggleTag = false
  8901. modet.TextTransparency = 1
  8902. modet.TextStrokeTransparency = 1
  8903. end
  8904. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8905. ExtinctiveHeartbreak()
  8906. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8907. HeavenlyDisk()
  8908. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8909. DualGleamingBeam()
  8910. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8911. BanishingOrb()
  8912. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8913. hugg()
  8914. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8915. cutesigh()
  8916. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8917. Counter()
  8918. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8919. superjump()
  8920. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8921. dragin()
  8922. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8923. UniversalCollapse()
  8924. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8925. PureBomb()
  8926. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8927. Beams()
  8928. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8929. BeamOfDeath()
  8930. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8931. THE_TRUE_POWER_OF_VIOLENCE()
  8932. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8933. GleamingBeam()
  8934. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8935. ViolentRing()
  8936. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8937. CorruptionEvent()
  8938. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8939. CorruptBlink()
  8940. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8941. scattercorrupt()
  8942. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8943. shytaunty()
  8944. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8945. RapidBurst()
  8946. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8947. ChaosEND()
  8948. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8949. CyberSlash()
  8950. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8951. smiter()
  8952. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8953. SpeedDrop()
  8954. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  8955. FuckMeSidewaysAndCallMeGay()
  8956. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8957. --DivineLights()
  8958. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8959. DivineBlast()
  8960. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8961. EquinoxOrbs()
  8962. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8963. yinyangi()
  8964. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8965. FallenOrbs()
  8966. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8967. StarfallEX()
  8968. end
  8969. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8970. FallenDEMISE()
  8971. end
  8972. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8973. EndGROUND()
  8974. end
  8975. end)
  8976.  
  8977. coroutine.resume(coroutine.create(function()
  8978. while true do
  8979. swait()
  8980. 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
  8981. 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)
  8982. end
  8983. if ModeOfGlitch == 5555 then
  8984. 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)
  8985. end
  8986. end
  8987. end))
  8988. --[[coroutine.resume(coroutine.create(function()
  8989. while true do
  8990. swait(2)
  8991. if chaosmode == true then
  8992. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8993. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8994. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8995. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8996. for i, v in pairs(mw1:GetChildren()) do
  8997. if v:IsA("Part") then
  8998. v.Transparency = 0.75
  8999. v.BrickColor = BrickColor.random()
  9000. v.Material = "Neon"
  9001. end
  9002. end
  9003. for i, v in pairs(m2:GetChildren()) do
  9004. if v:IsA("Part") then
  9005. v.BrickColor = BrickColor.random()
  9006. v.Material = "Neon"
  9007. end
  9008. end
  9009. end
  9010. end
  9011. end))]]
  9012.  
  9013.  
  9014.  
  9015. ff = Instance.new("ForceField",char)
  9016. ff.Visible = false
  9017. hum.Name = "Base"
  9018. hum.MaxHealth = 1.0E298
  9019. hum.Health = 1.0E298
  9020. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9021. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9022. hum.MaxHealth = 1.0E298
  9023. hum.Health = 1.0E298
  9024. end
  9025. end)
  9026.  
  9027. local Hair = Instance.new("Part", char)
  9028. Hair.Name = "Hair"
  9029. Hair.CanCollide = false
  9030. Hair.BrickColor = BrickColor.new("Institutional white")
  9031. Hair.Transparency = 0
  9032. Hair.Material = "Plastic"
  9033. Hair.Size = Vector3.new(1, 1, 2)
  9034. Hair.TopSurface = Enum.SurfaceType.Smooth
  9035. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9036.  
  9037.  
  9038. local bguis = Instance.new("BillboardGui",tors)
  9039. bguis.Size = UDim2.new(25, 0, 25, 0)
  9040. local imgca = Instance.new("ImageLabel",bguis)
  9041. imgca.BackgroundTransparency = 1
  9042. imgca.ImageTransparency = 1
  9043. imgca.Size = UDim2.new(1,0,1,0)
  9044. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9045. imgca.ImageColor3 = Color3.new(0,0,0)
  9046.  
  9047.  
  9048. local bguis2 = Instance.new("BillboardGui",tors)
  9049. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9050. local imgca2 = Instance.new("ImageLabel",bguis)
  9051. imgca2.BackgroundTransparency = 1
  9052. imgca2.ImageTransparency = 1
  9053. imgca2.Size = UDim2.new(1,0,1,0)
  9054. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9055. imgca2.ImageColor3 = Color3.new(0,0,0)
  9056.  
  9057.  
  9058.  
  9059. idleanim=.4
  9060. while true do
  9061. if mutedtog == false then
  9062. kan.Volume = currentVol
  9063. elseif mutedtog == true then
  9064. kan.Volume = 0
  9065. end
  9066. kan.PlaybackSpeed = currentPitch
  9067. kan.Pitch = currentPitch
  9068. kan.SoundId = currentThemePlaying
  9069. kan.Looped = true
  9070. kan.Parent = char
  9071. kan:Resume()
  9072. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9073. imgca.ImageTransparency = 1
  9074. imgca2.ImageTransparency = 1
  9075. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9076. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9077. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9078. elseif ModeOfGlitch == 13 then
  9079. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9080. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9081. end
  9082. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9083. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9084. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9085. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9086. coroutine.resume(coroutine.create(function()
  9087. if chaosmode == true then
  9088. for i, v in pairs(mw1:GetChildren()) do
  9089. if v:IsA("Part") then
  9090. v.Transparency = 0
  9091. v.BrickColor = BrickColor.random()
  9092. v.Material = "Neon"
  9093. end
  9094. end
  9095. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9096. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9097. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9098. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9099. end
  9100. end))
  9101. coroutine.resume(coroutine.create(function()
  9102. if ModeOfGlitch == 66 then
  9103. for i, v in pairs(m:GetChildren()) do
  9104. if v:IsA("Part") then
  9105. v.Transparency = 0
  9106. v.BrickColor = BrickColor.random()
  9107. v.Material = "Neon"
  9108. end
  9109. end
  9110. for i, v in pairs(m2:GetChildren()) do
  9111. if v:IsA("Part") then
  9112. v.Transparency = 0
  9113. v.BrickColor = BrickColor.random()
  9114. v.Material = "Neon"
  9115. end
  9116. end
  9117. for i, v in pairs(mw1:GetChildren()) do
  9118. if v:IsA("Part") then
  9119. v.Transparency = 0
  9120. v.BrickColor = BrickColor.random()
  9121. v.Material = "Neon"
  9122. end
  9123. end
  9124. for i, v in pairs(extrawingmod1:GetChildren()) do
  9125. if v:IsA("Part") then
  9126. v.Transparency = 0.5
  9127. v.BrickColor = BrickColor.random()
  9128. v.Material = "Neon"
  9129. end
  9130. end
  9131. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9132. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9133. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9134. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9135. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9136. end
  9137. end))
  9138.  
  9139. coroutine.resume(coroutine.create(function()
  9140. if ModeOfGlitch == 66 then
  9141. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9142. end
  9143. end))
  9144.  
  9145. if chaosmode == false then
  9146. modet.Position = UDim2.new(0,0,0,0)
  9147. modet.Rotation = -5 * math.cos(sine / 32)
  9148. techc.Rotation = techc.Rotation + 1
  9149. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9150. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9151. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9152. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9153. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9154. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9155. else
  9156. techc.Rotation = techc.Rotation + 1
  9157. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9158. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9159. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9160. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9161. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9162. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9163. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9164. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9165. end
  9166. CameraManager()
  9167. swait()
  9168. 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)
  9169. 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)
  9170. 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)
  9171. 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)
  9172. 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)
  9173. 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)
  9174. 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)
  9175. 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)
  9176. 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)
  9177. 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)
  9178. 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)
  9179. 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)
  9180. sine = sine + change
  9181. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9182. local velderp=RootPart.Velocity.y
  9183. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9184. coroutine.resume(coroutine.create(function()
  9185. 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
  9186. if hitfloor ~= nil then
  9187. 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"))
  9188. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9189. 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)
  9190. end
  9191. end
  9192. end
  9193. end))
  9194. if equipped==true or equipped==false then
  9195. if attack==false then
  9196. idle=idle+1
  9197. else
  9198. idle=0
  9199. end
  9200. if idle>=500 then
  9201. if attack==false then
  9202. --Sheath()
  9203. end
  9204. end
  9205. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9206. Anim="Jump"
  9207. if attack==false then
  9208. 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)
  9209. 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)
  9210. 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)
  9211. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9212. 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)
  9213. 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)
  9214. end
  9215. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9216. Anim="Fall"
  9217. if attack==false then
  9218. 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)
  9219. 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)
  9220. 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)
  9221. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9222. 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)
  9223. 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)
  9224. end
  9225. elseif torvel<1 and hitfloor~=nil then
  9226. Anim="Idle"
  9227. if attack==false then
  9228. if ModeOfGlitch == 1 then
  9229. local snap = math.random(1,10)
  9230. if snap == 1 then
  9231. 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)
  9232. end
  9233. 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)
  9234. 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)
  9235. 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)
  9236. 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)
  9237. 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)
  9238. 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)
  9239. elseif ModeOfGlitch == 2 then
  9240. 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)
  9241. 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)
  9242. 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)
  9243. 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)
  9244. 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)
  9245. 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)
  9246. elseif ModeOfGlitch == 2 then
  9247. 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)
  9248. 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)
  9249. 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)
  9250. 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)
  9251. 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)
  9252. 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)
  9253. elseif ModeOfGlitch == 50 then
  9254. 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)
  9255. 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)
  9256. 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)
  9257. 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)
  9258. 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)
  9259. 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)
  9260. elseif ModeOfGlitch == 5555 then --5555
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. 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)
  9266. 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)
  9267. elseif ModeOfGlitch == 1002 then
  9268. 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)
  9269. 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)
  9270. 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)
  9271. 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)
  9272. 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)
  9273. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9274. elseif ModeOfGlitch == 12 then
  9275. 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)
  9276. 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)
  9277. 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)
  9278. 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)
  9279. 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)
  9280. 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)
  9281. elseif ModeOfGlitch == 3 then
  9282. local snap = math.random(1,32)
  9283. if snap == 1 then
  9284. 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)
  9285. end
  9286. 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)
  9287. 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)
  9288. 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)
  9289. 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)
  9290. 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)
  9291. 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)
  9292. elseif ModeOfGlitch == 4 then
  9293. local snap = math.random(1,5)
  9294. if snap == 1 then
  9295. 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)
  9296. 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)
  9297. 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)
  9298. end
  9299. 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)
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304. 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)
  9305. elseif ModeOfGlitch == 66 then
  9306. local snap = math.random(1,2)
  9307. if snap == 1 then
  9308. 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)
  9309. 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)
  9310. 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)
  9311. end
  9312. 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)
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. elseif ModeOfGlitch == 5 then
  9319. 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)
  9320. 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)
  9321. 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)
  9322. 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)
  9323. 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)
  9324. 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)
  9325. elseif ModeOfGlitch == 6 then
  9326. 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)
  9327. 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)
  9328. 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)
  9329. 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)
  9330. 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)
  9331. 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)
  9332. elseif ModeOfGlitch == 13 then
  9333. 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)
  9334. 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)
  9335. 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)
  9336. 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)
  9337. 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)
  9338. 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)
  9339. elseif ModeOfGlitch == 8 then
  9340. 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)
  9341. 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)
  9342. 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)
  9343. 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)
  9344. 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)
  9345. 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)
  9346. elseif ModeOfGlitch == 9 then
  9347. 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)
  9348. 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))
  9349. 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)
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. 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)
  9355. elseif ModeOfGlitch == 1003 then
  9356. 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)
  9357. 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)
  9358. 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)
  9359. 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)
  9360. 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)
  9361. 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)
  9362.  
  9363. elseif ModeOfGlitch == 8889 then
  9364. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  9365. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  9366. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9367. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  9368. 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)
  9369. 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)
  9370. elseif ModeOfGlitch == 1264532489 then
  9371. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  9372. 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)
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. 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)
  9378. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9379. 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)
  9380. 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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. 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)
  9385. elseif ModeOfGlitch == 4367677813 then
  9386. 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)
  9387. 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)
  9388. 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)
  9389. 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)
  9390. 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)
  9391. 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)
  9392. elseif ModeOfGlitch == 55469696922 then --5555
  9393. 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)
  9394. 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)
  9395. 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)
  9396. 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)
  9397. 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)
  9398. 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)
  9399. elseif ModeOfGlitch == 999999999556 then
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. 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)
  9405. 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)
  9406. end
  9407. end
  9408. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9409. Anim="Walk"
  9410. if attack==false and ModeOfGlitch ~= 66 then
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. 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)
  9417. elseif attack==false and ModeOfGlitch == 66 then
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. 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)
  9424. end
  9425. elseif torvel>=22 and hitfloor~=nil then
  9426. Anim="Run"
  9427. if attack==false then
  9428. 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
  9429. 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)
  9430. 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)
  9431. 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)
  9432. 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)
  9433. 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)
  9434. 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)
  9435. if ModeOfGlitch == 12 then
  9436. 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)
  9437. 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)
  9438. 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)
  9439. 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)
  9440. 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)
  9441. 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)
  9442. end
  9443. if ModeOfGlitch == 9 then
  9444. 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)
  9445. 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))
  9446. 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)
  9447. end
  9448. 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
  9449. 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)
  9450. 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)
  9451. 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)
  9452. 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)
  9453. 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)
  9454. 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)
  9455. elseif ModeOfGlitch == 13 then
  9456. 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)
  9457. 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)
  9458. 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)
  9459. 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)
  9460. 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)
  9461. 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)
  9462. end
  9463. end
  9464. end
  9465. end
  9466. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement