Advertisement
myrongaming8

a

Nov 15th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 460.46 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("Star Edit, by bluebloxguy35")
  3. print("ok cool script yeah shuriken wings are cool")
  4. InternalData = {}
  5. do
  6.     script.Parent = owner.Character
  7.     local Event = Instance.new("RemoteEvent")
  8.     Event.Name = "UserInput"
  9.     local function NewFakeEvent()
  10.         local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  11.         return Fake
  12.     end
  13.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  14.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  15.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  16.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  17.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  18.     local function TriggerEvent(self,Event,...)
  19.         local Trigger = Mouse[Event]
  20.         if Trigger and Trigger.fakeEvent and Trigger.Function then
  21.             Trigger.Function(...)
  22.         end
  23.     end
  24.     Mouse.TrigEvent = TriggerEvent
  25.     UserInputService.TrigEvent = TriggerEvent
  26.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  27.         if FiredBy.Name ~= owner.Name then end
  28.         if Input.MouseEvent then
  29.             Mouse.Target = Input.Target
  30.             Mouse.Hit = Input.Hit
  31.         else
  32.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  33.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  34.                 return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  35.             end
  36.             for _,Action in pairs(ContextActionService.Actions) do
  37.                 for _,Key in pairs(Action.Keys) do
  38.                     if Key==Input.KeyCode then
  39.                         Action.Function(Action.Name,Input.UserInputState,Input)
  40.                     end
  41.                 end
  42.             end
  43.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  44.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  45.         end
  46.     end)
  47.     InternalData["Mouse"] = Mouse
  48.     InternalData["ContextActionService"] = ContextActionService
  49.     InternalData["UserInputService"] = UserInputService
  50.     Event.Parent = NLS([[
  51.         local Player = owner
  52.         local Event = script:WaitForChild("UserInput")
  53.         local UserInputService = game:GetService("UserInputService")
  54.         local Mouse = Player:GetMouse()
  55.         local Input = function(Input,gameProcessedEvent)
  56.             if gameProcessedEvent then return end
  57.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58.         end
  59.         UserInputService.InputBegan:Connect(Input)
  60.         UserInputService.InputEnded:Connect(Input)
  61.         local Hit,Target
  62.         while wait(1/30) do
  63.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  64.                 Hit,Target = Mouse.Hit,Mouse.Target
  65.                 Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  66.             end
  67.         end
  68.     ]],owner.Character)
  69. end
  70. RealGame = game;game = setmetatable({},{
  71.     __index = function (self,Index)
  72.         local Sandbox = function (Thing)
  73.             if Thing:IsA("Player") then
  74.                 local RealPlayer = Thing
  75.                 return setmetatable({},{
  76.                     __index = function (self,Index)
  77.                         local Type = type(RealPlayer[Index])
  78.                         if Type == "function" then
  79.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  80.                                 return function (self)
  81.                                     return InternalData["Mouse"]
  82.                                 end
  83.                             end
  84.                             return function (self,...)
  85.                                 return RealPlayer[Index](RealPlayer,...)
  86.                             end
  87.                         else
  88.                             if Index == "PlrObj" then
  89.                                 return RealPlayer
  90.                             end
  91.                             return RealPlayer[Index]
  92.                         end
  93.                     end;
  94.                     __tostring = function(self)
  95.                         return RealPlayer.Name
  96.                     end
  97.                 })
  98.             end
  99.         end
  100.         if RealGame[Index] then
  101.             local Type = type(RealGame[Index])
  102.             if Type == "function" then
  103.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  104.                     return function (self,Service)
  105.                         if Service:lower() == "players" then
  106.                             return setmetatable({},{
  107.                                 __index = function (self2,Index2)
  108.                                     local RealService = RealGame:GetService(Service)
  109.                                     local Type2 = type(Index2)
  110.                                     if Type2 == "function" then
  111.                                         return function (self,...)
  112.                                             return RealService[Index2](RealService,...)
  113.                                         end
  114.                                     else
  115.                                         if Index2:lower() == "localplayer" then
  116.                                             return Sandbox(owner)
  117.                                         end
  118.                                         return RealService[Index2]
  119.                                     end
  120.                                 end;
  121.                                 __tostring = function(self)
  122.                                     return RealGame:GetService(Service).Name
  123.                                 end
  124.                             })
  125.                         elseif Service:lower() == "contextactionservice" then
  126.                             return InternalData["ContextActionService"]
  127.                         elseif Service:lower() == "contextactionservice" then
  128.                             return InternalData["UserInputService"]
  129.                         elseif Service:lower() == "runservice" then
  130.                             return setmetatable({},{
  131.                                 __index = function(self2,Index2)
  132.                                     local RealService = RealGame:GetService(Service)
  133.                                     local Type2 = type(Index2)
  134.                                     if Type2 == "function" then
  135.                                         return function (self,...)
  136.                                             return RealService[Index2](RealService,...)
  137.                                         end
  138.                                     else
  139.                                         if Index2:lower() == "bindtorenderstep" then
  140.                                             return function (self,Name,Priority,Function)
  141.                                                 return RealGame:GetService("RunService").Stepped:Connect(Function)
  142.                                             end
  143.                                         end
  144.                                         if Index2:lower() == "renderstepped" then
  145.                                             return RealService["Stepped"]
  146.                                         end
  147.                                         return RealService[Index2]
  148.                                     end
  149.                                 end
  150.                             })
  151.                         else
  152.                             return RealGame:GetService(Service)
  153.                         end
  154.                     end
  155.                 end
  156.                 return function (self,...)
  157.                     return RealGame[Index](RealGame,...)
  158.                 end
  159.             else
  160.                 if game:GetService(Index) then
  161.                     return game:GetService(Index)
  162.                 end
  163.                 return RealGame[Index]
  164.             end
  165.         else
  166.             return nil
  167.         end
  168.     end
  169. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  170. print("Complete! Running...")
  171.  
  172. --//Paste script below this line.
  173. local Player = game:GetService("Players").LocalPLayer
  174. local Mouse,mouse,UserInputService,ContextActionService
  175. do
  176.     script.Parent = Player.Character
  177.     local CAS = {Actions={}}
  178.     local Event = Instance.new("RemoteEvent")
  179.     Event.Name = "UserInput_Event"
  180.     Event.Parent = Player.Character
  181.     local fakeEvent = function()
  182.         local t = {_fakeEvent=true}
  183.         t.Connect = function(self,f)self.Function=f end
  184.         t.connect = t.Connect
  185.         return t
  186.     end
  187.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  188.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  189.     function CAS:BindAction(name,fun,touch,...)
  190.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  191.     end
  192.     function CAS:UnbindAction(name)
  193.         CAS.Actions[name] = nil
  194.     end
  195.     local function te(self,ev,...)
  196.         local t = m[ev]
  197.         if t and t._fakeEvent and t.Function then
  198.             t.Function(...)
  199.         end
  200.     end
  201.     m.TrigEvent = te
  202.     UIS.TrigEvent = te
  203.     Event.OnServerEvent:Connect(function(plr,io)
  204.         if plr~=Player then return end
  205.         if io.isMouse then
  206.             m.Target = io.Target
  207.             m.Hit = io.Hit
  208.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  209.             if io.UserInputState == Enum.UserInputState.Begin then
  210.                 m:TrigEvent("Button1Down")
  211.             else
  212.                 m:TrigEvent("Button1Up")
  213.             end
  214.         else
  215.             for n,t in pairs(CAS.Actions) do
  216.                 for _,k in pairs(t.Keys) do
  217.                     if k==io.KeyCode then
  218.                         t.Function(t.Name,io.UserInputState,io)
  219.                     end
  220.                 end
  221.             end
  222.             if io.UserInputState == Enum.UserInputState.Begin then
  223.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  224.                 UIS:TrigEvent("InputBegan",io,false)
  225.             else
  226.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  227.                 UIS:TrigEvent("InputEnded",io,false)
  228.             end
  229.         end
  230.     end)
  231.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  232.     end
  233.    
  234. wait(0.2)
  235.  
  236.  
  237. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  238. The super switcher.
  239. Velnorum is one of the first wielders.
  240.  
  241. Created, Reworked by NoobyGames12
  242. Edited by GodzPlaysRB
  243. Edited by wanTH092 (Gam_Filano CH)
  244. SpectrumGlitcher Developers ^^^
  245. ]])
  246.  
  247.  
  248. ------------- ORIGINAL WIELDER OC: Velnorum
  249. print([[Icons:
  250. ! = New
  251. ? = Spoilers
  252. * = Exclusivity
  253. C = Changes
  254.  
  255. ]])
  256. warn([[V 4.35 Update Log:
  257. ! - Added Betrayal mode (Chaos M)
  258.  
  259. !? - Added z move to destiny
  260. !c? = Added calamity transition
  261. !? - upcoming transition for some mode..
  262. - Removed some voice sound effects because they didnt sound right
  263. ]])
  264. --- its obs smooth af do not touch
  265. ---- Sources and functions might be taken from others
  266. plr = game:GetService("Players").WunTun
  267. char = plr.Character
  268. hum = char.Humanoid
  269. local cam = game.Workspace.CurrentCamera
  270. Camera = cam
  271. local CamInterrupt = false
  272. local TwoD = false
  273. local TargetInfo = {nil, nil}
  274. cam.CameraType = "Custom"
  275. t = char.Torso
  276. h = char.Head
  277. ra = char["Right Arm"]
  278. la = char["Left Arm"]
  279. rl = char["Right Leg"]
  280. ll = char["Left Leg"]
  281. tors = char.Torso
  282. lleg = char["Left Leg"]
  283. root = char.HumanoidRootPart
  284. hed = char.Head
  285. rleg = char["Right Leg"]
  286. rarm = char["Right Arm"]
  287. larm = char["Left Arm"]
  288. radian = math.rad
  289. random = math.random
  290. Vec3 = Vector3.new
  291. Inst = Instance.new
  292. cFrame = CFrame.new
  293. Euler = CFrame.fromEulerAnglesXYZ
  294. vt = Vector3.new
  295. bc = BrickColor.new
  296. br = BrickColor.random
  297. it = Instance.new
  298. cf = CFrame.new
  299. local Player_Size = 0
  300. cam = game.Workspace.CurrentCamera
  301. CF = CFrame.new
  302. angles = CFrame.Angles
  303. attack = false
  304. Euler = CFrame.fromEulerAnglesXYZ
  305. Rad = math.rad
  306. IT = Instance.new
  307. BrickC = BrickColor.new
  308. Cos = math.cos
  309. Acos = math.acos
  310. Sin = math.sin
  311. Asin = math.asin
  312. Abs = math.abs
  313. Mrandom = math.random
  314. Floor = math.floor
  315. IT = Instance.new
  316. CF = CFrame.new
  317. VT = Vector3.new
  318. RAD = math.rad
  319. C3 = Color3.new
  320. UD2 = UDim2.new
  321. BRICKC = BrickColor.new
  322. ANGLES = CFrame.Angles
  323. EULER = CFrame.fromEulerAnglesXYZ
  324. COS = math.cos
  325. ACOS = math.acos
  326. SIN = math.sin
  327. ASIN = math.asin
  328. ABS = math.abs
  329. MRANDOM = math.random
  330. FLOOR = math.floor
  331. local SINE = 0
  332.  
  333. local Booleans = {
  334.   CamFollow = true,
  335.   GyroUse = true
  336. }
  337.  
  338. function lerp(object, newCFrame, alpha)
  339.   return object:lerp(newCFrame, alpha)
  340. end
  341.  
  342. local Directer = Inst("BodyGyro", root)
  343. Directer.MaxTorque = Vec3(0, 0, 0)
  344. Directer.P = 600000
  345. local CPart = Inst("Part")
  346. CPart.Anchored = true
  347. CPart.CanCollide = false
  348. CPart.Locked = true
  349. CPart.Transparency = 1
  350.  
  351. local rainbowmode = false
  352. local chaosmode = false
  353.  
  354. local kan = Instance.new("Sound",tors)
  355. kan.Volume = 0.85
  356. kan.TimePosition = 0
  357. kan.PlaybackSpeed = 1
  358. kan.Pitch = 1
  359. kan.SoundId = "rbxassetid://1255569288"
  360. kan.Name = "wrecked"
  361. kan.Looped = true
  362. kan:Play()
  363.  
  364. local currentThemePlaying = kan.SoundId
  365. local currentPitch = kan.Pitch
  366. local currentVol = kan.Volume
  367. function newTheme(ID,timepos,pitch,vol)
  368. local kanz = kan
  369. --kanz:Stop()
  370. kanz.Volume = vol
  371. --kanz.TimePosition = timepos
  372. kanz.PlaybackSpeed = pitch
  373. kanz.Pitch = pitch
  374. kanz.SoundId = ID
  375. kanz.Name = "wrecked"
  376. kanz.Looped = true
  377. currentThemePlaying = kanz.SoundId
  378. currentVol = kanz.Volume
  379. currentPitch = kanz.Pitch
  380. --kanz:Play()
  381. --coroutine.resume(coroutine.create(function()
  382. --wait(0.05)
  383. --end))
  384. end
  385.  
  386.  
  387. function newThemeCust(ID,timepos,pitch,vol)
  388. local kanz = kan
  389. kanz:Stop()
  390. kanz.Volume = vol
  391. kanz.TimePosition = timepos
  392. kanz.PlaybackSpeed = pitch
  393. kanz.Pitch = pitch
  394. kanz.SoundId = ID
  395. kanz.Name = "wrecked"
  396. kanz.Looped = true
  397. currentThemePlaying = kanz.SoundId
  398. currentVol = kanz.Volume
  399. currentPitch = kanz.Pitch
  400. kanz:Play()
  401. coroutine.resume(coroutine.create(function()
  402. wait(0.05)
  403. end))
  404. end
  405.  
  406. local mutedtog = false
  407.  
  408. function CameraEnshaking(Length,Intensity)
  409. coroutine.resume(coroutine.create(function()
  410.       local intensity = 1*Intensity
  411.       local rotM = 0.01*Intensity
  412. for i = 0, Length, 0.1 do
  413. swait()
  414. intensity = intensity - 0.05*Intensity/Length
  415. rotM = rotM - 0.0005*Intensity/Length
  416.       hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  417.       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)
  418. end
  419. Humanoid.CameraOffset = Vec3(0, 0, 0)
  420. end))
  421. end
  422. CamShake=function(Part,Distan,Power,Times)
  423. local de=Part.Position
  424. for i,v in pairs(workspace:children()) do
  425.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  426. for _,c in pairs(v:children()) do
  427. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  428. local Noob=v.Humanoid
  429. if Noob~=nil then
  430. coroutine.resume(coroutine.create(function()
  431. FV = Instance.new("BoolValue", Noob)
  432. FV.Name = "CameraShake"
  433. for ShakeNum=1,Times do
  434. swait()
  435. local ef=Power
  436.   if ef>=1 then
  437.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  438.   else
  439.    ef=Power*10
  440.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  441.   end  
  442. end
  443. Humanoid.CameraOffset = Vector3.new(0,0,0)
  444. FV:Destroy()
  445. end))
  446. CameraShake(Times, Power, Noob)
  447. end
  448. end
  449. end
  450. end
  451. end
  452. end
  453.  
  454. local toggleTag = true
  455. local bilguit = Instance.new("BillboardGui", hed)
  456. bilguit.Adornee = nil
  457. bilguit.Name = "ModeName"
  458. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  459. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  460. local modet = Instance.new("TextLabel", bilguit)
  461. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  462. modet.FontSize = "Size8"
  463. modet.TextScaled = true
  464. modet.TextTransparency = 0
  465. modet.BackgroundTransparency = 1
  466. modet.TextTransparency = 0
  467. modet.TextStrokeTransparency = 0
  468. modet.Font = "Antique"
  469. modet.TextStrokeColor3 = Color3.new(1,0,0)
  470. modet.TextColor3 = Color3.new(0.25,0,0)
  471. modet.Text = "MAYHEM"
  472.  
  473.  
  474. function chatfunc(text,color,typet,font,timeex)
  475. local chat = coroutine.wrap(function()
  476. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  477. Character:FindFirstChild("TalkingBillBoard"):destroy()
  478. end
  479. local naeeym2 = Instance.new("BillboardGui",Character)
  480. naeeym2.Size = UDim2.new(0,100,0,40)
  481. naeeym2.StudsOffset = Vector3.new(0,3,0)
  482. naeeym2.Adornee = Character.Head
  483. naeeym2.Name = "TalkingBillBoard"
  484. local tecks2 = Instance.new("TextLabel",naeeym2)
  485. tecks2.BackgroundTransparency = 1
  486. tecks2.BorderSizePixel = 0
  487. tecks2.Text = ""
  488. tecks2.Font = font
  489. tecks2.TextSize = 30
  490. tecks2.TextStrokeTransparency = 0
  491. tecks2.TextColor3 = color
  492. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  493. tecks2.Size = UDim2.new(1,0,0.5,0)
  494. local tecks3 = Instance.new("TextLabel",naeeym2)
  495. tecks3.BackgroundTransparency = 1
  496. tecks3.BorderSizePixel = 0
  497. tecks3.Text = ""
  498. tecks3.Font = font
  499. tecks3.TextSize = 30
  500. tecks3.TextStrokeTransparency = 0
  501. if typet == "Inverted" then
  502. tecks3.TextColor3 = Color3.new(0,0,0)
  503. tecks3.TextStrokeColor3 = color
  504. elseif typet == "Normal" then
  505. tecks3.TextColor3 = color
  506. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  507. end
  508. tecks3.Size = UDim2.new(1,0,0.5,0)
  509. coroutine.resume(coroutine.create(function()
  510. while true do
  511. swait(1)
  512. if chaosmode == true then
  513. tecks2.TextColor3 = BrickColor.random().Color
  514. tecks3.TextStrokeColor3 = BrickColor.random().Color
  515. end
  516. end
  517. end))
  518. modet.TextTransparency = modet.TextTransparency  + 1
  519. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  520. for i = 0, 74*timeex do
  521. swait()
  522. modet.TextTransparency = 1
  523. modet.TextStrokeTransparency = 1
  524. tecks2.Text = text
  525. tecks3.Text = text
  526. end
  527. local randomrot = math.random(1,2)
  528. if randomrot == 1 then
  529. for i = 1, 50 do
  530. swait()
  531. tecks2.Text = text
  532. tecks3.Text = text
  533. modet.TextTransparency = modet.TextTransparency - .02
  534. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  535. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  536. tecks2.TextTransparency = tecks2.TextTransparency + .04
  537. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  538. tecks3.TextTransparency = tecks2.TextTransparency + .04
  539. end
  540. elseif randomrot == 2 then
  541.     for i = 1, 50 do
  542. swait()
  543. tecks2.Text = text
  544. tecks3.Text = text
  545. modet.TextTransparency = modet.TextTransparency - .02
  546. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  547. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  548. tecks2.TextTransparency = tecks2.TextTransparency + .04
  549. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  550. tecks3.TextTransparency = tecks2.TextTransparency + .04
  551. end
  552. end
  553. modet.TextTransparency = 0
  554. modet.TextStrokeTransparency = 0
  555. if toggleTag == false then
  556. modet.TextTransparency = 1
  557. modet.TextStrokeTransparency = 1
  558. end
  559. naeeym2:Destroy()
  560. end)
  561. chat()
  562. end
  563.  
  564. function bosschatfunc(text,color,watval)
  565. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  566. coroutine.resume(coroutine.create(function()
  567. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  568. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  569. end
  570. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  571. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  572. scrg.Name = "Dialog"
  573. local txtlb = Instance.new("TextLabel",scrg)
  574. txtlb.Text = ""
  575. txtlb.Font = "Bodoni"
  576. txtlb.TextColor3 = Color3.new(0,0,0)
  577. txtlb.TextStrokeTransparency = 0
  578. txtlb.BackgroundTransparency = 0.75
  579. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  580. txtlb.TextStrokeColor3 = color
  581. txtlb.TextScaled = true
  582. txtlb.Size = UDim2.new(1,0,0.25,0)
  583. txtlb.TextXAlignment = "Left"
  584. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  585. local txtlb2 = Instance.new("TextLabel",scrg)
  586. txtlb2.Text = plr.Name.." The Glitcher:"
  587. txtlb2.Font = "Arcade"
  588. txtlb2.TextColor3 = Color3.new(0,0,0)
  589. txtlb2.TextStrokeTransparency = 0
  590. txtlb2.BackgroundTransparency = 1
  591. txtlb2.TextStrokeColor3 = color
  592. txtlb2.TextSize = 40
  593. txtlb2.Size = UDim2.new(1,0,0.25,0)
  594. txtlb2.TextXAlignment = "Left"
  595. txtlb2.Position = UDim2.new(0,0,1,0)
  596. local fvalen = 0.55
  597. local fval = -0.49
  598. coroutine.resume(coroutine.create(function()
  599. while true do
  600. swait()
  601. if chaosmode == true then
  602. txtlb.Rotation = math.random(-1,1)
  603. txtlb2.Rotation = math.random(-1,1)
  604. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  605. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  606. txtlb.TextStrokeColor3 = BrickColor.random().Color
  607. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  608. end
  609. end
  610. end))
  611. coroutine.resume(coroutine.create(function()
  612. while true do
  613. swait()
  614. if scrg.Parent ~= nil then
  615.     fvalen = fvalen - 0.0001
  616. elseif scrg.Parent == nil then
  617. break
  618. end
  619. end
  620. end))
  621. local flol = 1.75
  622. local flil = 1.6
  623. coroutine.resume(coroutine.create(function()
  624.     for i = 0, 9 do
  625.         swait()
  626.         fval = fval + 0.05
  627.         flol = flol - 0.1
  628.         flil = flil - 0.1
  629.         txtlb.Text = ""
  630.         txtlb.Position = UDim2.new(0,0,flol,0)
  631.         txtlb2.Position = UDim2.new(0,0,flil,0)
  632.     end
  633.     txtlb.Text = text
  634. wait(watval)
  635. local valinc = 0
  636. for i = 0, 99 do
  637. swait()
  638. valinc = valinc + 0.0001
  639. flol = flol + valinc
  640. flil = flil + valinc
  641. txtlb.Rotation = txtlb.Rotation + valinc*20
  642. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  643. txtlb.Position = UDim2.new(0,0,flol,0)
  644. txtlb2.Position = UDim2.new(0,0,flil,0)
  645. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  646. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  647. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  648. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  649. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  650. end
  651. scrg:Destroy()
  652. end))
  653. end))
  654. end
  655. end
  656.  
  657.  
  658. local Create = LoadLibrary("RbxUtility").Create
  659.  
  660. CFuncs = { 
  661.     ["Part"] = {
  662.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  663.             local Part = Create("Part"){
  664.                 Parent = Parent,
  665.                 Reflectance = Reflectance,
  666.                 Transparency = Transparency,
  667.                 CanCollide = false,
  668.                 Locked = true,
  669.                 BrickColor = BrickColor.new(tostring(BColor)),
  670.                 Name = Name,
  671.                 Size = Size,
  672.                 Material = Material,
  673.             }
  674.             RemoveOutlines(Part)
  675.             return Part
  676.         end;
  677.     };
  678.    
  679.     ["Mesh"] = {
  680.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  681.             local Msh = Create(Mesh){
  682.                 Parent = Part,
  683.                 Offset = OffSet,
  684.                 Scale = Scale,
  685.             }
  686.             if Mesh == "SpecialMesh" then
  687.                 Msh.MeshType = MeshType
  688.                 Msh.MeshId = MeshId
  689.             end
  690.             return Msh
  691.         end;
  692.     };
  693.    
  694.     ["Mesh"] = {
  695.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  696.             local Msh = Create(Mesh){
  697.                 Parent = Part,
  698.                 Offset = OffSet,
  699.                 Scale = Scale,
  700.             }
  701.             if Mesh == "SpecialMesh" then
  702.                 Msh.MeshType = MeshType
  703.                 Msh.MeshId = MeshId
  704.             end
  705.             return Msh
  706.         end;
  707.     };
  708.    
  709.     ["Weld"] = {
  710.         Create = function(Parent, Part0, Part1, C0, C1)
  711.             local Weld = Create("Weld"){
  712.                 Parent = Parent,
  713.                 Part0 = Part0,
  714.                 Part1 = Part1,
  715.                 C0 = C0,
  716.                 C1 = C1,
  717.             }
  718.             return Weld
  719.         end;
  720.     };
  721.  
  722.     ["Sound"] = {
  723.         Create = function(id, par, vol, pit)
  724.             coroutine.resume(coroutine.create(function()
  725.                 local S = Create("Sound"){
  726.                     Volume = vol,
  727.                                         Name = "EffectSoundo",
  728.                     Pitch = pit or 1,
  729.                     SoundId = id,
  730.                     Parent = par or workspace,
  731.                 }
  732.                 wait()
  733.                 S:play()
  734.                 game:GetService("Debris"):AddItem(S, 10)
  735.             end))
  736.         end;
  737.     };
  738.  
  739.     ["TimeSound"] = {
  740.         Create = function(id, par, vol, pit, timepos)
  741.             coroutine.resume(coroutine.create(function()
  742.                 local S = Create("Sound"){
  743.                     Volume = vol,
  744.                                         Name = "EffectSoundo",
  745.                     Pitch = pit or 1,
  746.                     SoundId = id,
  747.                                         TimePosition = timepos,
  748.                     Parent = par or workspace,
  749.                 }
  750.                 wait()
  751.                 S:play()
  752.                 game:GetService("Debris"):AddItem(S, 10)
  753.             end))
  754.         end;
  755.     };
  756.         ["EchoSound"] = {
  757.         Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  758.             coroutine.resume(coroutine.create(function()
  759.                 local Sas = Create("Sound"){
  760.                     Volume = vol,
  761.                     Name = "EffectSoundo",
  762.                     Pitch = pit or 1,
  763.                     SoundId = id,
  764.                     TimePosition = timepos,
  765.                     Parent = par or workspace,
  766.                 }
  767.                 local E = Create("EchoSoundEffect"){
  768.                     Delay = echodelay,
  769.                     Name = "Echo",
  770.                     Feedback = fedb,
  771.                     DryLevel = dryl,
  772.                     Parent = Sas,
  773.                 }
  774.                 wait()
  775.                 Sas:play()
  776.                 game:GetService("Debris"):AddItem(Sas, delays)
  777.             end))
  778.         end;
  779.     };
  780.  
  781. ["LongSound"] = {
  782.         Create = function(id, par, vol, pit)
  783.             coroutine.resume(coroutine.create(function()
  784.                 local S = Create("Sound"){
  785.                     Volume = vol,
  786.                     Pitch = pit or 1,
  787.                     SoundId = id,
  788.                     Parent = par or workspace,
  789.                 }
  790.                 wait()
  791.                 S:play()
  792.                 game:GetService("Debris"):AddItem(S, 60)
  793.             end))
  794.         end;
  795.     };
  796.    
  797.     ["ParticleEmitter"] = {
  798.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  799.             local fp = Create("ParticleEmitter"){
  800.                 Parent = Parent,
  801.                 Color = ColorSequence.new(Color1, Color2),
  802.                 LightEmission = LightEmission,
  803.                 Size = Size,
  804.                 Texture = Texture,
  805.                 Transparency = Transparency,
  806.                 ZOffset = ZOffset,
  807.                 Acceleration = Accel,
  808.                 Drag = Drag,
  809.                 LockedToPart = LockedToPart,
  810.                 VelocityInheritance = VelocityInheritance,
  811.                 EmissionDirection = EmissionDirection,
  812.                 Enabled = Enabled,
  813.                 Lifetime = LifeTime,
  814.                 Rate = Rate,
  815.                 Rotation = Rotation,
  816.                 RotSpeed = RotSpeed,
  817.                 Speed = Speed,
  818.                 VelocitySpread = VelocitySpread,
  819.             }
  820.             return fp
  821.         end;
  822.     };
  823.  
  824.     CreateTemplate = {
  825.    
  826.     };
  827. }
  828.  
  829.  
  830.  
  831. New = function(Object, Parent, Name, Data)
  832.     local Object = Instance.new(Object)
  833.     for Index, Value in pairs(Data or {}) do
  834.         Object[Index] = Value
  835.     end
  836.     Object.Parent = Parent
  837.     Object.Name = Name
  838.     return Object
  839. end
  840. local halocolor = BrickColor.new("Pastel light blue")
  841. local halocolor2 = BrickColor.new("Cool yellow")
  842. local starcolor = BrickColor.new("Bright yellow")
  843. local lunacolor = BrickColor.new("Navy blue")
  844. local lunacolor2 = BrickColor.new("Bright blue")
  845. local wepcolor = BrickColor.new("Really black")
  846. local maincolor = BrickColor.new("Really black")
  847. local m = Instance.new("Model",char)
  848. local m2 = Instance.new("Model",char)
  849. local m3 = Instance.new("Model",char)
  850. local mw1 = Instance.new("Model",char)
  851. local mw2 = Instance.new("Model",char)
  852.  
  853.  
  854. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  855.   local gui = it(GuiType)
  856.   gui.Parent = parent
  857.   gui.Text = text
  858.   gui.BackgroundTransparency = backtrans
  859.   gui.BackgroundColor3 = backcol
  860.   gui.SizeConstraint = "RelativeXY"
  861.   gui.TextXAlignment = "Center"
  862.   gui.TextYAlignment = "Center"
  863.   gui.Position = pos
  864.   gui.Size = size
  865.   gui.Font = "SourceSans"
  866.   gui.FontSize = "Size14"
  867.   gui.TextWrapped = false
  868.   gui.TextStrokeTransparency = 0
  869.   gui.TextColor = BrickColor.new("White")
  870.   return gui
  871. end
  872. --------------------------- GUI STUFF
  873. local basgui = it("GuiMain")
  874. basgui.Parent = plr.PlayerGui
  875. basgui.Name = "VISgui"
  876. local fullscreenz = it("Frame")
  877. fullscreenz.Parent = basgui
  878. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  879. fullscreenz.BackgroundTransparency = 1
  880. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  881. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  882. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  883. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  884. imgl2.BackgroundTransparency = 1
  885. imgl2.BorderSizePixel = 0
  886. imgl2.ImageTransparency = 0.5
  887. imgl2.ImageColor3 = Color3.new(1,0,0)
  888. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  889. imgl2.Size = UDim2.new(0,1000,0,1000)
  890. imgl2.Image = "rbxassetid://2325939897"
  891. local techc = imgl2:Clone()
  892. techc.Parent = fullscreenz
  893. techc.ImageTransparency = 0
  894. techc.Size = UDim2.new(0,900,0,900)
  895. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  896. techc.ImageColor3 = Color3.new(1,0,0)
  897. techc.Image = "rbxassetid://2273224484"
  898. local circl = imgl2:Clone()
  899. circl.Parent = fullscreenz
  900. circl.ImageTransparency = 0
  901. circl.Size = UDim2.new(0,550,0,550)
  902. circl.Position = UDim2.new(0.75,25,0.55,25)
  903. circl.ImageColor3 = Color3.new(0,0,0)
  904. circl.Image = "rbxassetid://2312119891"
  905. local circl2 = imgl2:Clone()
  906. circl2.Parent = fullscreenz
  907. circl2.ImageTransparency = 0
  908. circl2.Size = UDim2.new(0,700,0,700)
  909. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  910. circl2.ImageColor3 = Color3.new(1,0,0)
  911. circl2.Image = "rbxassetid://2312119891"
  912. local imgl2b = imgl2:Clone()
  913. imgl2b.Parent = fullscreenz
  914. imgl2b.ImageTransparency = 0
  915. imgl2b.Size = UDim2.new(0,800,0,800)
  916. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  917. imgl2b.ImageColor3 = Color3.new(0,0,0)
  918. local ned = Instance.new("TextLabel",fullscreenz)
  919. ned.ZIndex = 2
  920. ned.Font = "Arcade"
  921. ned.BackgroundTransparency = 1
  922. ned.BorderSizePixel = 0.65
  923. ned.Size = UDim2.new(0.3,0,0.2,0)
  924. ned.Position = UDim2.new(0.7,0,0.8,0)
  925. ned.TextColor3 = BrickColor.new("Really red").Color
  926. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  927. ned.TextScaled = true
  928. ned.TextStrokeTransparency = 0
  929. ned.Text = "MAYHEM"
  930. ned.TextSize = 24
  931. ned.Rotation = 1
  932. ned.TextXAlignment = "Right"
  933. ned.TextYAlignment = "Bottom"
  934.  
  935. local extrawingmod1 = Instance.new("Model",char)
  936. local extrawingmod2 = Instance.new("Model",char)
  937.  
  938. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  939. local p = Instance.new("Part")
  940. p.TopSurface = 0
  941. p.BottomSurface = 0
  942. p.Parent = parent
  943. p.Size = Vector3.new(0.1,0.1,0.1)
  944. p.Transparency = transparency
  945. p.Reflectance = reflectance
  946. p.CanCollide = false
  947. p.Locked = true
  948. p.BrickColor = brickcolor
  949. p.Material = material
  950. return p
  951. end
  952.  
  953. function CreateMesh(parent,meshtype,x1,y1,z1)
  954. local mesh = Instance.new("SpecialMesh",parent)
  955. mesh.MeshType = meshtype
  956. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  957. return mesh
  958. end
  959.  
  960. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  961. local mesh = Instance.new("SpecialMesh",parent)
  962. mesh.MeshType = "FileMesh"
  963. mesh.MeshId = meshid
  964. mesh.Scale = Vector3.new(x1,y1,z1)
  965. return mesh
  966. end
  967.  
  968.  
  969. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  970. local mesh = Instance.new("SpecialMesh",parent)
  971. mesh.MeshType = "FileMesh"
  972. mesh.MeshId = meshid
  973. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  974. mesh.Scale = Vector3.new(x1,y1,z1)
  975. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  976. return mesh
  977. end
  978.  
  979. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  980. local weld = Instance.new("Weld")
  981. weld.Parent = parent
  982. weld.Part0 = part0
  983. weld.Part1 = part1
  984. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  985. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  986. return weld
  987. end
  988.  
  989.  
  990. --------------
  991. --------------
  992. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  993. 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))
  994. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  995. 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))
  996.  
  997. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  998. CreateMesh(handle,"Brick",0,0,0)
  999. 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))
  1000. local valuaring = 10
  1001. for i = 0, 49 do
  1002.     valuaring = valuaring + 10
  1003. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  1004. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  1005. 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))
  1006. end
  1007.  
  1008. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1009. CreateMesh(handle,"Brick",0,0,0)
  1010. 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))
  1011. local valuaring = 10
  1012. for i = 0, 49 do
  1013.     valuaring = valuaring + 10
  1014. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1015. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  1016. 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))
  1017. end
  1018.  
  1019.  
  1020. local handle = CreateParta(m,1,1,"Neon",maincolor)
  1021. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1022. 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))
  1023.  
  1024. --- Left wing.
  1025.  
  1026. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. 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))
  1029.  
  1030. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. 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))
  1033. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1034. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1035. 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))
  1036. A0 = Instance.new('Attachment',wed)
  1037. A0.Position = vt(0,0.25,0.25)
  1038. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1040. 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))
  1041. A1 = Instance.new('Attachment',wed)
  1042. A1.Position = vt(0,-0.25,-2)
  1043. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1045. 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))
  1046.  
  1047. tl1 = Instance.new('Trail',wed)
  1048. tl1.Attachment0 = A1
  1049. tl1.Attachment1 = A0
  1050. tl1.Texture = "rbxassetid://2108945559"
  1051. tl1.LightEmission = 1
  1052. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1053. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1054. tl1.Lifetime = 0.6
  1055.  
  1056.  
  1057. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1058. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1059. 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))
  1060.  
  1061. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1063. 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))
  1064. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1066. 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))
  1067. A0 = Instance.new('Attachment',wed)
  1068. A0.Position = vt(0,0.25,0.25)
  1069. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1071. 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))
  1072. A1 = Instance.new('Attachment',wed)
  1073. A1.Position = vt(0,-0.25,-2)
  1074. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1075. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1076. 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))
  1077.  
  1078. tl2 = Instance.new('Trail',wed)
  1079. tl2.Attachment0 = A1
  1080. tl2.Attachment1 = A0
  1081. tl2.Texture = "rbxassetid://2108945559"
  1082. tl2.LightEmission = 1
  1083. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1084. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1085. tl2.Lifetime = 0.6
  1086.  
  1087. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1088. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1089. 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))
  1090.  
  1091. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. 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))
  1094. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1096. 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))
  1097. A0 = Instance.new('Attachment',wed)
  1098. A0.Position = vt(0,0.25,0.25)
  1099. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1101. 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))
  1102. A1 = Instance.new('Attachment',wed)
  1103. A1.Position = vt(0,-0.25,-2)
  1104. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1106. 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))
  1107.  
  1108. tl3 = Instance.new('Trail',wed)
  1109. tl3.Attachment0 = A1
  1110. tl3.Attachment1 = A0
  1111. tl3.Texture = "rbxassetid://2108945559"
  1112. tl3.LightEmission = 1
  1113. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1114. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1115. tl3.Lifetime = 0.6
  1116.  
  1117. tl1.Enabled = false
  1118. tl2.Enabled = false
  1119. tl3.Enabled = false
  1120. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1121. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1122. 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))
  1123.  
  1124. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1125. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1126. 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))
  1127. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1129. 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))
  1130. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1132. 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))
  1133. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1135. 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))
  1136.  
  1137. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1138. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1139. 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))
  1140.  
  1141. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1143. 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))
  1144. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1146. 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))
  1147. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1148. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1149. 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))
  1150. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1151. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1152. 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))
  1153.  
  1154. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1155. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1156. 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))
  1157.  
  1158. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1159. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1160. 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))
  1161. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1162. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1163. 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))
  1164. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1165. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1166. 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))
  1167. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1168. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1169. 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))
  1170.  
  1171. -- Right wing.
  1172.  
  1173. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1174. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1175. 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))
  1176.  
  1177. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1178. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1179. 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))
  1180. A0 = Instance.new('Attachment',wed)
  1181. A0.Position = vt(0,0.25,0.25)
  1182. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1183. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1184. 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))
  1185. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1186. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1187. 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))
  1188. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1189. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1190. 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))
  1191. A1 = Instance.new('Attachment',wed)
  1192. A1.Position = vt(0,2,0.25)
  1193.  
  1194. tr1 = Instance.new('Trail',wed)
  1195. tr1.Attachment0 = A1
  1196. tr1.Attachment1 = A0
  1197. tr1.Texture = "rbxassetid://2108945559"
  1198. tr1.LightEmission = 1
  1199. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1200. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1201. tr1.Lifetime = 0.6
  1202.  
  1203. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1204. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1205. 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))
  1206.  
  1207. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1208. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1209. 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))
  1210. A0 = Instance.new('Attachment',wed)
  1211. A0.Position = vt(0,0.25,0.25)
  1212. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1213. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1214. 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))
  1215. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1216. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1217. 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))
  1218. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1219. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1220. 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))
  1221. A1 = Instance.new('Attachment',wed)
  1222. A1.Position = vt(0,2,0.25)
  1223.  
  1224. tr2 = Instance.new('Trail',wed)
  1225. tr2.Attachment0 = A1
  1226. tr2.Attachment1 = A0
  1227. tr2.Texture = "rbxassetid://2108945559"
  1228. tr2.LightEmission = 1
  1229. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1230. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1231. tr2.Lifetime = 0.6
  1232.  
  1233. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1234. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1235. 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))
  1236.  
  1237. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1238. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1239. 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))
  1240. A0 = Instance.new('Attachment',wed)
  1241. A0.Position = vt(0,0.25,0.25)
  1242. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1243. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1244. 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))
  1245. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1246. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1247. 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))
  1248. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1249. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1250. 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))
  1251. A1 = Instance.new('Attachment',wed)
  1252. A1.Position = vt(0,2,0.25)
  1253.  
  1254. tr3 = Instance.new('Trail',wed)
  1255. tr3.Attachment0 = A1
  1256. tr3.Attachment1 = A0
  1257. tr3.Texture = "rbxassetid://2108945559"
  1258. tr3.LightEmission = 1
  1259. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1260. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1261. tr3.Lifetime = 0.6
  1262.  
  1263.  
  1264. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1265. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1266. 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))
  1267.  
  1268. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1269. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1270. 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))
  1271. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1272. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1273. 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))
  1274. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1275. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1276. 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))
  1277. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1278. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1279. 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))
  1280.  
  1281. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1282. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1283. 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))
  1284.  
  1285. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1286. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1287. 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))
  1288. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1289. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1290. 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))
  1291. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1292. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1293. 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))
  1294. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1295. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1296. 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))
  1297.  
  1298. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1299. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1300. 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))
  1301.  
  1302. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1303. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1304. 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))
  1305. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1306. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1307. 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))
  1308. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1309. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1310. 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))
  1311. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1312. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1313. 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))
  1314.  
  1315. --HERES THE RING
  1316.  
  1317.  
  1318. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1319. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1320. 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))
  1321. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1322. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1323. 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))
  1324. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1325. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1326. 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))
  1327.  
  1328.  
  1329. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1330. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1331. 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))
  1332.  
  1333. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1334. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1335. 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))
  1336.  
  1337.  
  1338.  
  1339. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1340. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1341. 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))
  1342.  
  1343. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1344. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1345. 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))
  1346.  
  1347. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1348. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1349. 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))
  1350.  
  1351. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1352. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1353. 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))
  1354. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1355. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1356. 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))]]--
  1357.  
  1358. --- second ring
  1359.  
  1360.  
  1361. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1362. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1363. 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))
  1364.  
  1365. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1366. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1367. 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))
  1368.  
  1369.  
  1370.  
  1371. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1372. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1373. 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))
  1374.  
  1375. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1376. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1377. 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))
  1378.  
  1379. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1380. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1381. 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))
  1382.  
  1383. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1384. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1385. 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))
  1386. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1387. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1388. 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))
  1389.  
  1390.  
  1391.  
  1392. for i, v in pairs(m:GetChildren()) do
  1393. if v:IsA("Part") then
  1394. v.BrickColor = BrickColor.new("Really black")
  1395. v.Material = "Glass"
  1396. end
  1397. end
  1398. for i, v in pairs(m2:GetChildren()) do
  1399. if v:IsA("Part") then
  1400. v.BrickColor = BrickColor.new("Crimson")
  1401. v.Material = "Granite"
  1402. end
  1403. end
  1404. for i, v in pairs(m3:GetChildren()) do
  1405. if v:IsA("Part") then
  1406. v.BrickColor = BrickColor.new("Really red")
  1407. v.Material = "Neon"
  1408. end
  1409. end
  1410. for i, v in pairs(mw2:GetChildren()) do
  1411. if v:IsA("Part") then
  1412. v.BrickColor = BrickColor.new("Really red")
  1413. v.Material = "Neon"
  1414. end
  1415. end
  1416. for i, v in pairs(mw1:GetChildren()) do
  1417. if v:IsA("Part") then
  1418. v.Transparency = 1
  1419. v.BrickColor = BrickColor.new("Really red")
  1420. v.Material = "Neon"
  1421. end
  1422. end
  1423. for i, v in pairs(extrawingmod1:GetChildren()) do
  1424. if v:IsA("Part") then
  1425. v.Transparency = 1
  1426. v.BrickColor = BrickColor.new("White")
  1427. v.Material = "Neon"
  1428. end
  1429. end
  1430. for i, v in pairs(extrawingmod2:GetChildren()) do
  1431. if v:IsA("Part") then
  1432. v.Transparency = 1
  1433. v.BrickColor = BrickColor.new("White")
  1434. v.Material = "Neon"
  1435. end
  1436. end
  1437. local MAINRUINCOLOR = BrickColor.new("Really red")
  1438. ------
  1439.  
  1440.  
  1441. function RemoveOutlines(part)
  1442.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1443. end
  1444. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1445.   local Part = Create("Part")({
  1446.     Parent = Parent,
  1447.     Reflectance = Reflectance,
  1448.     Transparency = Transparency,
  1449.     CanCollide = false,
  1450.     Locked = true,
  1451.     BrickColor = BrickColor.new(tostring(BColor)),
  1452.     Name = Name,
  1453.     Size = Size,
  1454.     Material = Material
  1455.   })
  1456.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1457.   RemoveOutlines(Part)
  1458.   return Part
  1459. end
  1460. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1461.   local Msh = Create(Mesh)({
  1462.     Parent = Part,
  1463.     Offset = OffSet,
  1464.     Scale = Scale
  1465.   })
  1466.   if Mesh == "SpecialMesh" then
  1467.     Msh.MeshType = MeshType
  1468.     Msh.MeshId = MeshId
  1469.   end
  1470.   return Msh
  1471. end
  1472. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1473.   local Weld = Create("Weld")({
  1474.     Parent = Parent,
  1475.     Part0 = Part0,
  1476.     Part1 = Part1,
  1477.     C0 = C0,
  1478.     C1 = C1
  1479.   })
  1480.   return Weld
  1481. end
  1482.  
  1483. Player = plr
  1484. Character=Player.Character
  1485. PlayerGui=Player.PlayerGui
  1486. Backpack=Player.Backpack
  1487. Torso=Character.Torso
  1488. Head=Character.Head
  1489. Humanoid=Character.Humanoid
  1490. m=Instance.new('Model',Character)
  1491. LeftArm=Character["Left Arm"]
  1492. LeftLeg=Character["Left Leg"]
  1493. RightArm=Character["Right Arm"]
  1494. RightLeg=Character["Right Leg"]
  1495. LS=Torso["Left Shoulder"]
  1496. LH=Torso["Left Hip"]
  1497. RS=Torso["Right Shoulder"]
  1498. RH=Torso["Right Hip"]
  1499. Face = Head.face
  1500. Neck=Torso.Neck
  1501. it=Instance.new
  1502. attacktype=1
  1503. vt=Vector3.new
  1504. cf=CFrame.new
  1505. euler=CFrame.fromEulerAnglesXYZ
  1506. angles=CFrame.Angles
  1507. cloaked=false
  1508. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1509. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1510. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1511. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1512. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1513. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1514. RootPart=Character.HumanoidRootPart
  1515. RootJoint=RootPart.RootJoint
  1516. RootCF=euler(-1.57,0,3.14)
  1517. attack = false
  1518. attackdebounce = false
  1519. deb=false
  1520. equipped=true
  1521. hand=false
  1522. combo=0
  1523. mana=0
  1524. trispeed=.2
  1525. attackmode='none'
  1526. local idle=0
  1527. local Anim="Idle"
  1528. local Effects={}
  1529. local gun=false
  1530. local shoot=false
  1531. local sine = 0
  1532. local change = 1
  1533.  
  1534. function RecolorTextAndRename(name,col1,col2,font)
  1535. modet.TextStrokeColor3 = col2
  1536. modet.TextColor3 = col1
  1537. modet.Font = font
  1538. modet.Text = name
  1539. techc.ImageColor3 = col2
  1540. circl.ImageColor3 = col2
  1541. circl2.ImageColor3 = col1
  1542. imgl2.ImageColor3 = col1
  1543. imgl2b.ImageColor3 = col2
  1544. ned.Text = name
  1545. ned.TextColor3 = col1
  1546. ned.TextStrokeColor3 = col2
  1547. end
  1548. --save shoulders
  1549. RSH, LSH=nil, nil
  1550. --welds
  1551. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1552. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1553. LH=Torso["Left Hip"]
  1554. RH=Torso["Right Hip"]
  1555. TorsoColor=Torso.BrickColor
  1556. function NoOutline(Part)
  1557. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1558. end
  1559. ch=Character
  1560. RSH=ch.Torso["Right Shoulder"]
  1561. LSH=ch.Torso["Left Shoulder"]
  1562. --
  1563. RSH.Parent=nil
  1564. LSH.Parent=nil
  1565. --
  1566. RW.Name="Right Shoulder"
  1567. RW.Part0=ch.Torso
  1568. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1569. RW.C1=cf(0, 0.5, 0)
  1570. RW.Part1=ch["Right Arm"]
  1571. RW.Parent=ch.Torso
  1572. --
  1573. LW.Name="Left Shoulder"
  1574. LW.Part0=ch.Torso
  1575. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1576. LW.C1=cf(0, 0.5, 0)
  1577. LW.Part1=ch["Left Arm"]
  1578. LW.Parent=ch.Torso
  1579.  
  1580. local Stats=Instance.new("BoolValue")
  1581. Stats.Name="Stats"
  1582. Stats.Parent=Character
  1583. local Atk=Instance.new("NumberValue")
  1584. Atk.Name="Damage"
  1585. Atk.Parent=Stats
  1586. Atk.Value=1
  1587. local Def=Instance.new("NumberValue")
  1588. Def.Name="Defense"
  1589. Def.Parent=Stats
  1590. Def.Value=1
  1591. local Speed=Instance.new("NumberValue")
  1592. Speed.Name="Speed"
  1593. Speed.Parent=Stats
  1594. Speed.Value=1
  1595. local Mvmt=Instance.new("NumberValue")
  1596. Mvmt.Name="Movement"
  1597. Mvmt.Parent=Stats
  1598. Mvmt.Value=1
  1599.  
  1600. local donum=0
  1601. local ast = {744586075,385254610}
  1602.  
  1603. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1604. local fp=it("Part")
  1605. fp.formFactor=formfactor
  1606. fp.Parent=parent
  1607. fp.Reflectance=reflectance
  1608. fp.Transparency=transparency
  1609. fp.CanCollide=false
  1610. fp.Locked=true
  1611. fp.BrickColor=brickcolor
  1612. fp.Name=name
  1613. fp.Size=size
  1614. fp.Position=Torso.Position
  1615. NoOutline(fp)
  1616. fp.Material="SmoothPlastic"
  1617. fp:BreakJoints()
  1618. return fp
  1619. end
  1620.  
  1621. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1622. local mesh=it(Mesh)
  1623. mesh.Parent=part
  1624. if Mesh=="SpecialMesh" then
  1625. mesh.MeshType=meshtype
  1626. if meshid~="nil" then
  1627. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1628. end
  1629. end
  1630. mesh.Offset=offset
  1631. mesh.Scale=scale
  1632. return mesh
  1633. end
  1634.  
  1635. function weld(parent,part0,part1,c0)
  1636. local weld=it("Weld")
  1637. weld.Parent=parent
  1638. weld.Part0=part0
  1639. weld.Part1=part1
  1640. weld.C0=c0
  1641. return weld
  1642. end
  1643.  
  1644. local Color1=Torso.BrickColor
  1645.  
  1646. local bodvel=Instance.new("BodyVelocity")
  1647. local bg=Instance.new("BodyGyro")
  1648.  
  1649. --------- SazEreno's Artificial HB --------------
  1650. ArtificialHB = Instance.new("BindableEvent", script)
  1651. ArtificialHB.Name = "ArtificialHB"
  1652.  
  1653. script:WaitForChild("ArtificialHB")
  1654. Frame_Speed = 1 / 60
  1655. frame = Frame_Speed
  1656. tf = 0
  1657. allowframeloss = false
  1658. tossremainder = false
  1659. lastframe = tick()
  1660. script.ArtificialHB:Fire()
  1661.  
  1662. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1663.     tf = tf + s
  1664.     if tf >= frame then
  1665.         if allowframeloss then
  1666.             script.ArtificialHB:Fire()
  1667.             lastframe = tick()
  1668.         else
  1669.             for i = 1, math.floor(tf / frame) do
  1670.                 script.ArtificialHB:Fire()
  1671.             end
  1672.         lastframe = tick()
  1673.         end
  1674.         if tossremainder then
  1675.             tf = 0
  1676.         else
  1677.             tf = tf - frame * math.floor(tf / frame)
  1678.         end
  1679.     end
  1680. end)
  1681.  
  1682. ------------------
  1683. function swait(num)
  1684. if num == 0 or num == nil then
  1685.         ArtificialHB.Event:wait()
  1686.     else
  1687.         for i = 1, num do
  1688.             ArtificialHB.Event:wait()
  1689.         end
  1690.     end
  1691. end
  1692. -------- RAINBOW LEAVE IT TO ME
  1693. local r = 255
  1694. local g = 0
  1695. local b = 0
  1696. coroutine.resume(coroutine.create(function()
  1697. while wait() do
  1698.     for i = 0, 254/5 do
  1699.         swait()
  1700.         g = g + 5
  1701.     end
  1702.     for i = 0, 254/5 do
  1703.         swait()
  1704.         r = r - 5
  1705.     end
  1706.     for i = 0, 254/5 do
  1707.         swait()
  1708.         b = b + 5
  1709.     end
  1710.     for i = 0, 254/5 do
  1711.         swait()
  1712.         g = g - 5
  1713.     end
  1714.     for i = 0, 254/5 do
  1715.         swait()
  1716.         r = r + 5
  1717.     end
  1718.     for i = 0, 254/5 do
  1719.         swait()
  1720.         b = b - 5
  1721.     end
  1722. end
  1723. end))
  1724.  
  1725.  
  1726. so = function(id,par,vol,pit)
  1727. coroutine.resume(coroutine.create(function()
  1728. local sou = Instance.new("Sound",par or workspace)
  1729. sou.Volume=vol
  1730. sou.Pitch=pit or 1
  1731. sou.SoundId=id
  1732. swait()
  1733. sou:play()
  1734. game:GetService("Debris"):AddItem(sou,6)
  1735. end))
  1736. end
  1737.  
  1738. function clerp(a,b,t)
  1739. local qa = {QuaternionFromCFrame(a)}
  1740. local qb = {QuaternionFromCFrame(b)}
  1741. local ax, ay, az = a.x, a.y, a.z
  1742. local bx, by, bz = b.x, b.y, b.z
  1743. local _t = 1-t
  1744. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1745. end
  1746.  
  1747. function QuaternionFromCFrame(cf)
  1748. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1749. local trace = m00 + m11 + m22
  1750. if trace > 0 then
  1751. local s = math.sqrt(1 + trace)
  1752. local recip = 0.5/s
  1753. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1754. else
  1755. local i = 0
  1756. if m11 > m00 then
  1757. i = 1
  1758. end
  1759. if m22 > (i == 0 and m00 or m11) then
  1760. i = 2
  1761. end
  1762. if i == 0 then
  1763. local s = math.sqrt(m00-m11-m22+1)
  1764. local recip = 0.5/s
  1765. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1766. elseif i == 1 then
  1767. local s = math.sqrt(m11-m22-m00+1)
  1768. local recip = 0.5/s
  1769. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1770. elseif i == 2 then
  1771. local s = math.sqrt(m22-m00-m11+1)
  1772. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1773. end
  1774. end
  1775. end
  1776.  
  1777. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1778. local xs, ys, zs = x + x, y + y, z + z
  1779. local wx, wy, wz = w*xs, w*ys, w*zs
  1780. local xx = x*xs
  1781. local xy = x*ys
  1782. local xz = x*zs
  1783. local yy = y*ys
  1784. local yz = y*zs
  1785. local zz = z*zs
  1786. 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))
  1787. end
  1788.  
  1789. function QuaternionSlerp(a, b, t)
  1790. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1791. local startInterp, finishInterp;
  1792. if cosTheta >= 0.0001 then
  1793. if (1 - cosTheta) > 0.0001 then
  1794. local theta = math.acos(cosTheta)
  1795. local invSinTheta = 1/math.sin(theta)
  1796. startInterp = math.sin((1-t)*theta)*invSinTheta
  1797. finishInterp = math.sin(t*theta)*invSinTheta  
  1798. else
  1799. startInterp = 1-t
  1800. finishInterp = t
  1801. end
  1802. else
  1803. if (1+cosTheta) > 0.0001 then
  1804. local theta = math.acos(-cosTheta)
  1805. local invSinTheta = 1/math.sin(theta)
  1806. startInterp = math.sin((t-1)*theta)*invSinTheta
  1807. finishInterp = math.sin(t*theta)*invSinTheta
  1808. else
  1809. startInterp = t-1
  1810. finishInterp = t
  1811. end
  1812. end
  1813. 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
  1814. end
  1815.  
  1816. local function CFrameFromTopBack(at, top, back)
  1817. local right = top:Cross(back)
  1818. return CFrame.new(at.x, at.y, at.z,
  1819. right.x, top.x, back.x,
  1820. right.y, top.y, back.y,
  1821. right.z, top.z, back.z)
  1822. end
  1823.  
  1824. function Triangle(a, b, c)
  1825. local edg1 = (c-a):Dot((b-a).unit)
  1826. local edg2 = (a-b):Dot((c-b).unit)
  1827. local edg3 = (b-c):Dot((a-c).unit)
  1828. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1829. a, b, c = a, b, c
  1830. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1831. a, b, c = b, c, a
  1832. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1833. a, b, c = c, a, b
  1834. else
  1835. assert(false, "unreachable")
  1836. end
  1837.  
  1838. local len1 = (c-a):Dot((b-a).unit)
  1839. local len2 = (b-a).magnitude - len1
  1840. local width = (a + (b-a).unit*len1 - c).magnitude
  1841.  
  1842. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1843.  
  1844. local list = {}
  1845.  
  1846. if len1 > 0.01 then
  1847. local w1 = Instance.new('WedgePart', m)
  1848. game:GetService("Debris"):AddItem(w1,5)
  1849. w1.Material = "SmoothPlastic"
  1850. w1.FormFactor = 'Custom'
  1851. w1.BrickColor = BrickColor.new("Really red")
  1852. w1.Transparency = 0
  1853. w1.Reflectance = 0
  1854. w1.Material = "SmoothPlastic"
  1855. w1.CanCollide = false
  1856. local l1 = Instance.new("PointLight",w1)
  1857. l1.Color = Color3.new(170,0,0)
  1858. NoOutline(w1)
  1859. local sz = Vector3.new(0.2, width, len1)
  1860. w1.Size = sz
  1861. local sp = Instance.new("SpecialMesh",w1)
  1862. sp.MeshType = "Wedge"
  1863. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1864. w1:BreakJoints()
  1865. w1.Anchored = true
  1866. w1.Parent = workspace
  1867. w1.Transparency = 0.7
  1868. table.insert(Effects,{w1,"Disappear",.01})
  1869. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1870. table.insert(list,w1)
  1871. end
  1872.  
  1873. if len2 > 0.01 then
  1874. local w2 = Instance.new('WedgePart', m)
  1875. game:GetService("Debris"):AddItem(w2,5)
  1876. w2.Material = "SmoothPlastic"
  1877. w2.FormFactor = 'Custom'
  1878. w2.BrickColor = BrickColor.new("Really red")
  1879. w2.Transparency = 0
  1880. w2.Reflectance = 0
  1881. w2.Material = "SmoothPlastic"
  1882. w2.CanCollide = false
  1883. local l2 = Instance.new("PointLight",w2)
  1884. l2.Color = Color3.new(170,0,0)
  1885. NoOutline(w2)
  1886. local sz = Vector3.new(0.2, width, len2)
  1887. w2.Size = sz
  1888. local sp = Instance.new("SpecialMesh",w2)
  1889. sp.MeshType = "Wedge"
  1890. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1891. w2:BreakJoints()
  1892. w2.Anchored = true
  1893. w2.Parent = workspace
  1894. w2.Transparency = 0.7
  1895. table.insert(Effects,{w2,"Disappear",.01})
  1896. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1897. table.insert(list,w2)
  1898. end
  1899. return unpack(list)
  1900. end
  1901.  
  1902.  
  1903. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1904.   if hit.Parent == nil then
  1905.     return
  1906.   end
  1907.   local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1908.   for _, v in pairs(hit.Parent:children()) do
  1909.     if v:IsA("Humanoid") then
  1910.       h = v
  1911.     end
  1912.   end
  1913.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1914.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1915.       return
  1916.     end
  1917.     local c = Create("ObjectValue")({
  1918.       Name = "creator",
  1919.       Value = game:GetService("Players").EzzyCrafts2,
  1920.       Parent = h
  1921.     })
  1922.     game:GetService("Debris"):AddItem(c, 0.5)
  1923.     if HitSound ~= nil and HitPitch ~= nil then
  1924.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1925.     end
  1926.     local Damage = math.random(minim, maxim)
  1927.     local blocked = false
  1928.     local block = hit.Parent:findFirstChild("Block")
  1929.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1930.       blocked = true
  1931.       block.Value = block.Value - 1
  1932.       print(block.Value)
  1933.     end
  1934.     if blocked == false then
  1935.       HitHealth = h.Health
  1936.       h.MaxHealth = 100
  1937.       h.Health = h.Health - Damage
  1938.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1939.         print("gained kill")
  1940.         dmg(h.Parent)
  1941.       end
  1942.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1943.     else
  1944.       h.Health = h.Health - Damage / 2
  1945.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1946.     end
  1947.     if Type == "Knockdown" then
  1948.       local hum = hit.Parent.Humanoid
  1949.       hum.PlatformStand = true
  1950.       coroutine.resume(coroutine.create(function(HHumanoid)
  1951.         swait(1)
  1952.         HHumanoid.PlatformStand = false
  1953.       end), hum)
  1954.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1955.       local bodvol = Create("BodyVelocity")({
  1956.         velocity = angle * knockback,
  1957.         P = 5000,
  1958.         maxForce = Vector3.new(8000, 8000, 8000),
  1959.         Parent = hit
  1960.       })
  1961.       local rl = Create("BodyAngularVelocity")({
  1962.         P = 3000,
  1963.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1964.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1965.         Parent = hit
  1966.       })
  1967.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1968.       game:GetService("Debris"):AddItem(rl, 0.5)
  1969.     elseif Type == "Normal" then
  1970.       local vp = Create("BodyVelocity")({
  1971.         P = 500,
  1972.         maxForce = Vector3.new(math.huge, 0, math.huge),
  1973.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1974.       })
  1975.       if knockback > 0 then
  1976.         vp.Parent = hit.Parent.Head
  1977.       end
  1978.       game:GetService("Debris"):AddItem(vp, 0.5)
  1979.     elseif Type == "Up" then
  1980.       local bodyVelocity = Create("BodyVelocity")({
  1981.         velocity = Vector3.new(0, 20, 0),
  1982.         P = 5000,
  1983.         maxForce = Vector3.new(8000, 8000, 8000),
  1984.         Parent = hit
  1985.       })
  1986.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1987.       local bodyVelocity = Create("BodyVelocity")({
  1988.         velocity = Vector3.new(0, 20, 0),
  1989.         P = 5000,
  1990.         maxForce = Vector3.new(8000, 8000, 8000),
  1991.         Parent = hit
  1992.       })
  1993.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1994.     elseif Type == "Leech" then
  1995.       local hum = hit.Parent.Humanoid
  1996.       if hum ~= nil then
  1997.         for i = 0, 2 do
  1998.           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)
  1999.         end
  2000.         Humanoid.Health = Humanoid.Health + 10
  2001.       end
  2002.     elseif Type == "UpKnock" then
  2003.       local hum = hit.Parent.Humanoid
  2004.       hum.PlatformStand = true
  2005.       if hum ~= nil then
  2006.         hitr = true
  2007.       end
  2008.       coroutine.resume(coroutine.create(function(HHumanoid)
  2009.         swait(5)
  2010.         HHumanoid.PlatformStand = false
  2011.         hitr = false
  2012.       end), hum)
  2013.       local bodyVelocity = Create("BodyVelocity")({
  2014.         velocity = Vector3.new(0, 20, 0),
  2015.         P = 5000,
  2016.         maxForce = Vector3.new(8000, 8000, 8000),
  2017.         Parent = hit
  2018.       })
  2019.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2020.       local bodyVelocity = Create("BodyVelocity")({
  2021.         velocity = Vector3.new(0, 20, 0),
  2022.         P = 5000,
  2023.         maxForce = Vector3.new(8000, 8000, 8000),
  2024.         Parent = hit
  2025.       })
  2026.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2027.     elseif Type == "Snare" then
  2028.       local bp = Create("BodyPosition")({
  2029.         P = 2000,
  2030.         D = 100,
  2031.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2032.         position = hit.Parent.Torso.Position,
  2033.         Parent = hit.Parent.Torso
  2034.       })
  2035.       game:GetService("Debris"):AddItem(bp, 1)
  2036.     elseif Type == "Slashnare" then
  2037.       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)
  2038.       for i = 1, math.random(4, 5) do
  2039.         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)
  2040.       end
  2041.       local bp = Create("BodyPosition")({
  2042.         P = 2000,
  2043.         D = 100,
  2044.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2045.         position = hit.Parent.Torso.Position,
  2046.         Parent = hit.Parent.Torso
  2047.       })
  2048.       game:GetService("Debris"):AddItem(bp, 1)
  2049.     elseif Type == "Spike" then
  2050.       CreateBigIceSword(hit.Parent.Torso.CFrame)
  2051.       local bp = Create("BodyPosition")({
  2052.         P = 2000,
  2053.         D = 100,
  2054.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2055.         position = hit.Parent.Torso.Position,
  2056.         Parent = hit.Parent.Torso
  2057.       })
  2058.       game:GetService("Debris"):AddItem(bp, 1)
  2059.     elseif Type == "Freeze" then
  2060.       local BodPos = Create("BodyPosition")({
  2061.         P = 50000,
  2062.         D = 1000,
  2063.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2064.         position = hit.Parent.Torso.Position,
  2065.         Parent = hit.Parent.Torso
  2066.       })
  2067.       local BodGy = Create("BodyGyro")({
  2068.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2069.         P = 20000,
  2070.         Parent = hit.Parent.Torso,
  2071.         cframe = hit.Parent.Torso.CFrame
  2072.       })
  2073.       hit.Parent.Torso.Anchored = true
  2074.       coroutine.resume(coroutine.create(function(Part)
  2075.         swait(1.5)
  2076.         Part.Anchored = false
  2077.       end), hit.Parent.Torso)
  2078.       game:GetService("Debris"):AddItem(BodPos, 3)
  2079.       game:GetService("Debris"):AddItem(BodGy, 3)
  2080.     end
  2081.     local debounce = Create("BoolValue")({
  2082.       Name = "DebounceHit",
  2083.       Parent = hit.Parent,
  2084.       Value = true
  2085.     })
  2086.     game:GetService("Debris"):AddItem(debounce, Delay)
  2087.     c = Instance.new("ObjectValue")
  2088.     c.Name = "creator"
  2089.     c.Value = Player
  2090.     c.Parent = h
  2091.     game:GetService("Debris"):AddItem(c, 0.5)
  2092.   end
  2093. end
  2094. function ShowDamage(Pos, Text, Time, Color)
  2095.   local Rate = 0.03333333333333333
  2096.   local Pos = Pos or Vector3.new(0, 0, 0)
  2097.   local Text = Text or ""
  2098.   local Time = Time or 2
  2099.   local Color = Color or Color3.new(1, 0, 1)
  2100.   local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2101.   EffectPart.Anchored = true
  2102.   local BillboardGui = Create("BillboardGui")({
  2103.     Size = UDim2.new(3, 0, 3, 0),
  2104.     Adornee = EffectPart,
  2105.     Parent = EffectPart
  2106.   })
  2107.   local TextLabel = Create("TextLabel")({
  2108.     BackgroundTransparency = 1,
  2109.     Size = UDim2.new(1, 0, 1, 0),
  2110.     Text = Text,
  2111.     TextColor3 = Color,
  2112.     TextScaled = true,
  2113.     Font = Enum.Font.ArialBold,
  2114.     Parent = BillboardGui
  2115.   })
  2116.   game.Debris:AddItem(EffectPart, Time + 0.1)
  2117.   EffectPart.Parent = game:GetService("Workspace")
  2118.   delay(0, function()
  2119.     local Frames = Time / Rate
  2120.     for Frame = 1, Frames do
  2121.       wait(Rate)
  2122.       local Percent = Frame / Frames
  2123.       EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2124.       TextLabel.TextTransparency = Percent
  2125.     end
  2126.     if EffectPart and EffectPart.Parent then
  2127.       EffectPart:Destroy()
  2128.     end
  2129.   end)
  2130. end
  2131. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2132.   for _, c in pairs(workspace:children()) do
  2133.     local hum = c:findFirstChildOfClass("Humanoid")
  2134.     if hum ~= nil then
  2135.       local head = c:findFirstChild("Head")
  2136.       if head ~= nil then
  2137.         local targ = head.Position - Part.Position
  2138.         local mag = targ.magnitude
  2139.         if magni >= mag and c.Name ~= Player.Name then
  2140.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2141.         end
  2142.       end
  2143.     end
  2144.   end
  2145. end
  2146.  
  2147. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2148.   for _, c in pairs(workspace:children()) do
  2149.     local hum = c:findFirstChild("Humanoid")
  2150.     if hum ~= nil then
  2151.       local head = c:findFirstChild("Torso")
  2152.       if head ~= nil then
  2153.         local targ = head.Position - Part.Position
  2154.         local mag = targ.magnitude
  2155.         if magni >= mag and c.Name ~= Player.Name then
  2156.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2157.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2158.         end
  2159.       end
  2160.     end
  2161.   end
  2162. end
  2163.  
  2164. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2165. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2166. end
  2167.  
  2168. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2169. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2170. prt.Anchored=true
  2171. prt.CFrame=cframe
  2172. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2173. --http://www.roblox.com/asset/?id=4770560
  2174. game:GetService("Debris"):AddItem(prt,2)
  2175. CF=prt.CFrame
  2176. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2177. for i=0,1,0.2 do
  2178. wait()
  2179. Part.CFrame=CF*cf(0,0,-0.4)
  2180. end
  2181. for i=0,1,delay do
  2182. wait()
  2183. --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)
  2184. Mesh.Scale=Mesh.Scale
  2185. end
  2186. for i=0,1,0.1 do
  2187. wait()
  2188. Part.Transparency=i
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh,CF)
  2192. end
  2193.  
  2194. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2200. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2201. game:GetService("Debris"):AddItem(prt,5)
  2202. coroutine.resume(coroutine.create(function(Part,Mesh)
  2203. for i=0,1,delay do
  2204. swait()
  2205. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2206. Part.Transparency=i
  2207. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2208. end
  2209. Part.Parent=nil
  2210. end),prt,msh)
  2211. end
  2212.  
  2213. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2214. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2215. prt.Anchored=true
  2216. prt.Material = "Neon"
  2217. prt.CFrame=cframe
  2218. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2219. game:GetService("Debris"):AddItem(prt,5)
  2220. coroutine.resume(coroutine.create(function(Part,Mesh)
  2221.     local rtype = rottype
  2222. for i=0,1,delay do
  2223. swait()
  2224. if rtype == 1 then
  2225. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2226. elseif rtype == 2 then
  2227. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2228. end
  2229. Part.Transparency=i
  2230. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh)
  2234. end
  2235.  
  2236. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2237. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2238. prt.Anchored=true
  2239. prt.CFrame=cframe
  2240. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2241. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2242. game:GetService("Debris"):AddItem(prt,5)
  2243. coroutine.resume(coroutine.create(function(Part,Mesh)
  2244. for i=0,1,delay do
  2245. wait()
  2246. Part.Transparency=i
  2247. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2248. end
  2249. Part.Parent=nil
  2250. end),prt,msh)
  2251. end
  2252.  
  2253. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2254. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2255. prt.Anchored=true
  2256. prt.Material = "Neon"
  2257. prt.CFrame=cframe
  2258. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2259. game:GetService("Debris"):AddItem(prt,5)
  2260. coroutine.resume(coroutine.create(function(Part,Mesh)
  2261.     local rtype = rottype
  2262. for i=0,1,delay do
  2263. swait()
  2264. if rtype == 1 then
  2265. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2266. elseif rtype == 2 then
  2267. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2268. end
  2269. Part.Transparency=i
  2270. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2271. end
  2272. Part.Parent=nil
  2273. end),prt,msh)
  2274. end
  2275.  
  2276. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2277. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2278. prt.Anchored=true
  2279. prt.Material = "Neon"
  2280. prt.CFrame=cframe
  2281. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2282. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2283. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2284. game:GetService("Debris"):AddItem(prt,5)
  2285. coroutine.resume(coroutine.create(function(Part,Mesh)
  2286.     local rtype = rottype
  2287. for i=0,1,delay do
  2288. swait()
  2289. if rtype == 1 then
  2290. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2291. elseif rtype == 2 then
  2292. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2293. end
  2294. dec.Transparency=i
  2295. dec2.Transparency=i
  2296. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2297. end
  2298. Part.Parent=nil
  2299. end),prt,msh)
  2300. end
  2301.  
  2302. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2303. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2304. prt.Anchored=true
  2305. prt.Material = "Neon"
  2306. prt.CFrame=cframe
  2307. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2308. game:GetService("Debris"):AddItem(prt,5)
  2309. coroutine.resume(coroutine.create(function(Part,Mesh)
  2310.     local rtype = rottype
  2311. for i=0,1,delay do
  2312. swait()
  2313. if rtype == 1 then
  2314. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2315. elseif rtype == 2 then
  2316. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2317. end
  2318. prt.Transparency=i
  2319. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2320. end
  2321. Part.Parent=nil
  2322. end),prt,msh)
  2323. end
  2324.  
  2325. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2326. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2327. prt.Anchored=true
  2328. prt.Material = "Neon"
  2329. prt.CFrame=cframe
  2330. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2331. game:GetService("Debris"):AddItem(prt,5)
  2332. coroutine.resume(coroutine.create(function(Part,Mesh)
  2333.     local rtype = rottype
  2334. for i=0,1,delay do
  2335. swait()
  2336. if rtype == 1 then
  2337. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2338. elseif rtype == 2 then
  2339. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2340. end
  2341. prt.Transparency=i
  2342. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2343. end
  2344. Part.Parent=nil
  2345. end),prt,msh)
  2346. end
  2347.  
  2348. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2349. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2350. prt.Anchored=true
  2351. prt.Material = "Neon"
  2352. prt.CFrame=cframe
  2353. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2354. game:GetService("Debris"):AddItem(prt,5)
  2355. coroutine.resume(coroutine.create(function(Part,Mesh)
  2356.     local rtype = rottype
  2357. for i=0,1,delay do
  2358. swait()
  2359. if rtype == 1 then
  2360. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2361. elseif rtype == 2 then
  2362. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2363. end
  2364. prt.Transparency=i
  2365. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2366. end
  2367. Part.Parent=nil
  2368. end),prt,msh)
  2369. end
  2370.  
  2371. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2372. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2373. prt.Anchored=true
  2374. prt.Material = "Neon"
  2375. prt.CFrame=cframe
  2376. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2377. game:GetService("Debris"):AddItem(prt,5)
  2378. coroutine.resume(coroutine.create(function(Part,Mesh)
  2379.     local rtype = rottype
  2380. for i=0,1,delay do
  2381. swait()
  2382. if rtype == 1 then
  2383. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2384. elseif rtype == 2 then
  2385. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2386. end
  2387. prt.Transparency=i
  2388. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2389. end
  2390. Part.Parent=nil
  2391. end),prt,msh)
  2392. end
  2393.  
  2394. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2395. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2396. prt.Anchored=false
  2397. prt.CFrame=cframe
  2398. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2399. local wld=weld(prt,prt,Parent,cframe)
  2400. game:GetService("Debris"):AddItem(prt,5)
  2401. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2402. for i=0,1,delay do
  2403. wait()
  2404. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2405. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2406. Part.Transparency=i
  2407. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2408. end
  2409. Part.Parent=nil
  2410. end),prt,msh,wld)
  2411. end
  2412.  
  2413. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2414. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2415. prt.Anchored=false
  2416. prt.CFrame=cframe
  2417. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2418. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2419. game:GetService("Debris"):AddItem(prt,5)
  2420. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2421. for i=0,1,delay do
  2422. wait()
  2423. Weld.C0=euler(i*20,0,0)
  2424. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2425. Part.Transparency=i
  2426. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2427. end
  2428. Part.Parent=nil
  2429. end),prt,msh,wld)
  2430. end
  2431.  
  2432. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2433. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2434. prt.Anchored=true
  2435. prt.CFrame=cframe
  2436. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2437. game:GetService("Debris"):AddItem(prt,2)
  2438. coroutine.resume(coroutine.create(function(Part,Mesh)
  2439. for i=0,1,delay do
  2440. wait()
  2441. Part.CFrame=Part.CFrame
  2442. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2443. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2444. prt2.Anchored=true
  2445. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2446. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2447. game:GetService("Debris"):AddItem(prt2,2)
  2448. coroutine.resume(coroutine.create(function(Part,Mesh)
  2449. for i=0,1,0.1 do
  2450. wait()
  2451. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2452. end
  2453. Part.Parent=nil
  2454. end),prt2,msh2)
  2455. end
  2456. for i=0,1,delay*2 do
  2457. wait()
  2458. Part.CFrame=Part.CFrame
  2459. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2460. end
  2461. Part.Parent=nil
  2462. end),prt,msh)
  2463. end
  2464.  
  2465. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2466. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2467. prt.Anchored=true
  2468. prt.CFrame=cframe
  2469. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2470. game:GetService("Debris"):AddItem(prt,2)
  2471. coroutine.resume(coroutine.create(function(Part,Mesh)
  2472. for i=0,1,delay do
  2473. wait()
  2474. Part.CFrame=Part.CFrame
  2475. Part.Transparency=i
  2476. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2477. end
  2478. Part.Parent=nil
  2479. end),prt,msh)
  2480. end
  2481.  
  2482. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2483. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2484. prt.Anchored=true
  2485. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2486. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2487. game:GetService("Debris"):AddItem(prt,2)
  2488. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2489. CF=Part.CFrame
  2490. Numbb=0
  2491. randnumb=math.random()/10
  2492. rand1=math.random()/10
  2493. for i=0,1,rand1 do
  2494. wait()
  2495. CF=CF*cf(0,math.random()/2,0)
  2496. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2497. Part.CFrame=CF*euler(Numbb,0,0)
  2498. Part.Transparency=i
  2499. Numbb=Numbb+randnumb
  2500. end
  2501. Part.Parent=nil
  2502. end),prt,CF,Numbb,randnumb)
  2503. end
  2504.  
  2505. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2506. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2507. prt.Anchored=true
  2508. prt.CFrame=cframe
  2509. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2510. game:GetService("Debris"):AddItem(prt,5)
  2511. coroutine.resume(coroutine.create(function(Part,Mesh)
  2512. for i=0,1,delay do
  2513. wait()
  2514. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2515. Part.Transparency=i
  2516. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2517. end
  2518. Part.Parent=nil
  2519. end),prt,msh)
  2520. end
  2521.  
  2522. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2523. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2524. prt.Anchored=true
  2525. prt.CFrame=cframe
  2526. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2527. game:GetService("Debris"):AddItem(prt,2)
  2528. coroutine.resume(coroutine.create(function(Part,Mesh)
  2529. for i=0,1,delay do
  2530. wait()
  2531. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2532. Part.Transparency=i
  2533. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2534. end
  2535. Part.Parent=nil
  2536. end),prt,msh)
  2537. end
  2538.  
  2539. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2540. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2541. prt.Anchored=true
  2542. prt.CFrame=cframe*cf(x,y,z)
  2543. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2544. game:GetService("Debris"):AddItem(prt,5)
  2545. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2546. local num=math.random()
  2547. local num2=math.random(-3,2)+math.random()
  2548. local numm=0
  2549. for i=0,1,delay*2 do
  2550. swait()
  2551. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2552. Part.Transparency=i
  2553. numm=numm+0.01
  2554. end
  2555. Part.Parent=nil
  2556. Mesh.Parent=nil
  2557. end),prt,msh,x,y,z)
  2558. end
  2559.  
  2560. function dmgstart(dmg,what)
  2561.     hitcon = what.Touched:connect(function(hit)
  2562.         local hum = hit.Parent:FindFirstChild("Humanoid")
  2563.         if hum and not hum:IsDescendantOf(Character) then
  2564.             hum:TakeDamage(dmg)
  2565.         end
  2566.     end)
  2567. end
  2568.  
  2569. function dmgstop()
  2570.     hitcon:disconnect()
  2571. end
  2572.  
  2573. function Cloak()
  2574. Face.Parent=nil
  2575. cloaked=true
  2576.         for _,v in pairs(Torso.Parent:children()) do
  2577.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2578.                 coroutine.resume(coroutine.create(function()
  2579.                 for i=0,1,0.2 do
  2580.                 wait()
  2581.                 v.Transparency=i
  2582.                 end
  2583.                 v.Transparency=1
  2584.                 end))
  2585.                 end
  2586.                 if v.className=="Hat" then
  2587.                 hatp=v.Handle
  2588.                 coroutine.resume(coroutine.create(function(derp)
  2589.                 for i=0,1,0.2 do
  2590.                 wait()
  2591.                 derp.Transparency=i
  2592.                 end
  2593.                 derp.Transparency=1
  2594.                 end),hatp)
  2595.                 end
  2596.         end
  2597.         for _,v in pairs(m:children()) do
  2598.                 if v.className=="Part" then
  2599.                 coroutine.resume(coroutine.create(function()
  2600.                 for i=0,1,0.2 do
  2601.                 wait()
  2602.                 v.Transparency=i
  2603.                 end
  2604.                 v.Transparency=1
  2605.                 end))
  2606.                 end
  2607.         end
  2608. end
  2609.  
  2610. function UnCloak()
  2611. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2612. Face.Parent=Head
  2613. cloaked=false
  2614.         for _,v in pairs(Torso.Parent:children()) do
  2615.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2616.                 coroutine.resume(coroutine.create(function()
  2617.                 for i=0,1,0.1 do
  2618.                 wait()
  2619.                 v.Transparency=v.Transparency-0.1
  2620.                 end
  2621.                 v.Transparency=0
  2622.                 end))
  2623.                 end
  2624.                 if v.className=="Hat" then
  2625.                 hatp=v.Handle
  2626.                 coroutine.resume(coroutine.create(function(derp)
  2627.                 for i=0,1,0.1 do
  2628.                 wait()
  2629.                 derp.Transparency=derp.Transparency-0.1
  2630.                 end
  2631.                 derp.Transparency=0
  2632.                 end),hatp)
  2633.                 end
  2634.         end
  2635.         for _,v in pairs(m:children()) do
  2636.                 if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2637.                 coroutine.resume(coroutine.create(function()
  2638.                 for i=0,1,0.1 do
  2639.                 wait()
  2640.                 v.Transparency=v.Transparency-0.1
  2641.                 end
  2642.                 v.Transparency=0
  2643.                 end))
  2644.                 v.Transparency=0
  2645.                 end
  2646.         end
  2647. end
  2648.  
  2649. local origcolor = BrickColor.new("Pastel light blue")
  2650. ---- This section of explosions.
  2651.  
  2652. ----
  2653.  
  2654.  
  2655. function ring(type,pos,scale,value)
  2656. local type = type
  2657. local rng = Instance.new("Part", char)
  2658.         rng.Anchored = true
  2659.         rng.BrickColor = origcolor
  2660.         rng.CanCollide = false
  2661.         rng.FormFactor = 3
  2662.         rng.Name = "Ring"
  2663.         rng.Size = Vector3.new(1, 1, 1)
  2664.         rng.Transparency = 0
  2665.         rng.TopSurface = 0
  2666.         rng.BottomSurface = 0
  2667.         rng.CFrame = pos
  2668.         local rngm = Instance.new("SpecialMesh", rng)
  2669.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2670. rngm.Scale = scale
  2671. local scaler2 = 1
  2672. if type == "Add" then
  2673. scaler2 = 1*value
  2674. elseif type == "Divide" then
  2675. scaler2 = 1/value
  2676. end
  2677. coroutine.resume(coroutine.create(function()
  2678. for i = 0,10,0.1 do
  2679. swait()
  2680. if type == "Add" then
  2681. scaler2 = scaler2 - 0.01*value
  2682. elseif type == "Divide" then
  2683. scaler2 = scaler2 - 0.01/value
  2684. end
  2685. rng.Transparency = rng.Transparency + 0.01
  2686. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2687. end
  2688. rng:Destroy()
  2689. end))
  2690. end
  2691.  
  2692.  
  2693. function wave(type,pos,scale,value)
  2694. local type = type
  2695. local rng = Instance.new("Part", char)
  2696.         rng.Anchored = true
  2697.         rng.BrickColor = origcolor
  2698.         rng.CanCollide = false
  2699.         rng.FormFactor = 3
  2700.         rng.Name = "Ring"
  2701.         rng.Size = Vector3.new(1, 1, 1)
  2702.         rng.Transparency = 0
  2703.         rng.TopSurface = 0
  2704.         rng.BottomSurface = 0
  2705.         rng.CFrame = pos
  2706.         local rngm = Instance.new("SpecialMesh", rng)
  2707.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2708. rngm.Scale = scale
  2709. local scaler2 = 1
  2710. if type == "Add" then
  2711. scaler2 = 1*value
  2712. elseif type == "Divide" then
  2713. scaler2 = 1/value
  2714. end
  2715. coroutine.resume(coroutine.create(function()
  2716. for i = 0,10,0.1 do
  2717. swait()
  2718. if type == "Add" then
  2719. scaler2 = scaler2 - 0.01*value
  2720. elseif type == "Divide" then
  2721. scaler2 = scaler2 - 0.01/value
  2722. end
  2723. rng.Transparency = rng.Transparency + 0.01
  2724. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2725. end
  2726. rng:Destroy()
  2727. end))
  2728. end
  2729.  
  2730. function wind(type,pos,scale,value,speed)
  2731. local type = type
  2732. local rng = Instance.new("Part", char)
  2733.         rng.Anchored = true
  2734.         rng.BrickColor = origcolor
  2735.         rng.CanCollide = false
  2736.         rng.FormFactor = 3
  2737.         rng.Name = "Ring"
  2738.         rng.Size = Vector3.new(1, 1, 1)
  2739.         rng.Transparency = 0
  2740.         rng.TopSurface = 0
  2741.         rng.BottomSurface = 0
  2742.         rng.CFrame = pos
  2743.         local rngm = Instance.new("SpecialMesh", rng)
  2744.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2745. rngm.Scale = scale
  2746. local scaler2 = 1
  2747. if type == "Add" then
  2748. scaler2 = 1*value
  2749. elseif type == "Divide" then
  2750. scaler2 = 1/value
  2751. end
  2752. coroutine.resume(coroutine.create(function()
  2753. for i = 0,10,0.1 do
  2754. swait()
  2755. if type == "Add" then
  2756. scaler2 = scaler2 - 0.01*value
  2757. elseif type == "Divide" then
  2758. scaler2 = scaler2 - 0.01/value
  2759. end
  2760. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2761. rng.Transparency = rng.Transparency + 0.01
  2762. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2763. end
  2764. rng:Destroy()
  2765. end))
  2766. end
  2767.  
  2768. function groundwind(type,pos,scale,value,speed)
  2769. local type = type
  2770. local rng = Instance.new("Part", char)
  2771.         rng.Anchored = true
  2772.         rng.BrickColor = origcolor
  2773.         rng.CanCollide = false
  2774.         rng.FormFactor = 3
  2775.         rng.Name = "Ring"
  2776.         rng.Size = Vector3.new(1, 1, 1)
  2777.         rng.Transparency = 0
  2778.         rng.TopSurface = 0
  2779.         rng.BottomSurface = 0
  2780.         rng.CFrame = pos
  2781.         local rngm = Instance.new("SpecialMesh", rng)
  2782.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2783. rngm.Scale = scale
  2784. local scaler2 = 1
  2785. if type == "Add" then
  2786. scaler2 = 1*value
  2787. elseif type == "Divide" then
  2788. scaler2 = 1/value
  2789. end
  2790. coroutine.resume(coroutine.create(function()
  2791. for i = 0,10,0.1 do
  2792. swait()
  2793. if type == "Add" then
  2794. scaler2 = scaler2 - 0.01*value
  2795. elseif type == "Divide" then
  2796. scaler2 = scaler2 - 0.01/value
  2797. end
  2798. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2799. rng.Transparency = rng.Transparency + 0.01
  2800. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2801. end
  2802. rng:Destroy()
  2803. end))
  2804. end
  2805.  
  2806. function CameraManager()
  2807.   if TwoD and not CamInterrupt then
  2808.     if Humanoid.Health > 0 then
  2809.       Camera.CameraSubject = Humanoid
  2810.       Camera.CameraType = "Scriptable"
  2811.       Humanoid.AutoRotate = false
  2812.       if Booleans.GyroUse then
  2813.         Directer.MaxTorque = Vec3(0, huge, 0)
  2814.       else
  2815.         Directer.MaxTorque = Vec3(0, 0, 0)
  2816.       end
  2817.       if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2818.         if Booleans.CamFollow then
  2819.           CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2820.           Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2821.         else
  2822.           CPart.Position = RootPart.Position
  2823.         end
  2824.       else
  2825.         local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2826.         CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2827.       end
  2828.       Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2829.     else
  2830.       Camera.CameraSubject = Humanoid
  2831.       Camera.CameraType = "Custom"
  2832.       Controller.Disabled = false
  2833.     end
  2834.   end
  2835. end
  2836.  
  2837. function ring(type,pos,scale,value)
  2838. local type = type
  2839. local rng = Instance.new("Part", char)
  2840.         rng.Anchored = true
  2841.         rng.BrickColor = origcolor
  2842.         rng.CanCollide = false
  2843.         rng.FormFactor = 3
  2844.         rng.Name = "Ring"
  2845.         rng.Size = Vector3.new(1, 1, 1)
  2846.         rng.Transparency = 0
  2847.         rng.TopSurface = 0
  2848.         rng.BottomSurface = 0
  2849.         rng.CFrame = pos
  2850.         local rngm = Instance.new("SpecialMesh", rng)
  2851.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2852. rngm.Scale = scale
  2853. local scaler2 = 1
  2854. if type == "Add" then
  2855. scaler2 = 1*value
  2856. elseif type == "Divide" then
  2857. scaler2 = 1/value
  2858. end
  2859. coroutine.resume(coroutine.create(function()
  2860. for i = 0,10,0.1 do
  2861. swait()
  2862. if type == "Add" then
  2863. scaler2 = scaler2 - 0.01*value
  2864. elseif type == "Divide" then
  2865. scaler2 = scaler2 - 0.01/value
  2866. end
  2867. rng.Transparency = rng.Transparency + 0.01
  2868. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2869. end
  2870. rng:Destroy()
  2871. end))
  2872. end
  2873.  
  2874.  
  2875. function wave(type,pos,scale,value)
  2876. local type = type
  2877. local rng = Instance.new("Part", char)
  2878.         rng.Anchored = true
  2879.         rng.BrickColor = origcolor
  2880.         rng.CanCollide = false
  2881.         rng.FormFactor = 3
  2882.         rng.Name = "Ring"
  2883.         rng.Size = Vector3.new(1, 1, 1)
  2884.         rng.Transparency = 0
  2885.         rng.TopSurface = 0
  2886.         rng.BottomSurface = 0
  2887.         rng.CFrame = pos
  2888.         local rngm = Instance.new("SpecialMesh", rng)
  2889.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2890. rngm.Scale = scale
  2891. local scaler2 = 1
  2892. if type == "Add" then
  2893. scaler2 = 1*value
  2894. elseif type == "Divide" then
  2895. scaler2 = 1/value
  2896. end
  2897. coroutine.resume(coroutine.create(function()
  2898. for i = 0,10,0.1 do
  2899. swait()
  2900. if type == "Add" then
  2901. scaler2 = scaler2 - 0.01*value
  2902. elseif type == "Divide" then
  2903. scaler2 = scaler2 - 0.01/value
  2904. end
  2905. rng.Transparency = rng.Transparency + 0.01
  2906. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2907. end
  2908. rng:Destroy()
  2909. end))
  2910. end
  2911.  
  2912. function sphere(bonuspeed,type,pos,scale,value,color)
  2913. local type = type
  2914. local rng = Instance.new("Part", char)
  2915.         rng.Anchored = true
  2916. if ModeOfGlitch ~= 9 then
  2917.         rng.BrickColor = color
  2918. elseif ModeOfGlitch == 9 then
  2919. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2920. end
  2921.         rng.CanCollide = false
  2922.         rng.FormFactor = 3
  2923.         rng.Name = "Ring"
  2924.         rng.Material = "Neon"
  2925.         rng.Size = Vector3.new(1, 1, 1)
  2926.         rng.Transparency = 0
  2927.         rng.TopSurface = 0
  2928.         rng.BottomSurface = 0
  2929.         rng.CFrame = pos
  2930.         local rngm = Instance.new("SpecialMesh", rng)
  2931.         rngm.MeshType = "Sphere"
  2932. rngm.Scale = scale
  2933. if rainbowmode == true then
  2934. rng.Color = Color3.new(r/255,g/255,b/255)
  2935. end
  2936. if ModeOfGlitch == 9 then
  2937. coroutine.resume(coroutine.create(function()
  2938. while true do
  2939. swait()
  2940. if rng.Parent ~= nil then
  2941. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2942. else
  2943. break
  2944. end
  2945. end
  2946. end))
  2947. end
  2948. local scaler2 = 1
  2949. if type == "Add" then
  2950. scaler2 = 1*value
  2951. elseif type == "Divide" then
  2952. scaler2 = 1/value
  2953. end
  2954. coroutine.resume(coroutine.create(function()
  2955. for i = 0,10/bonuspeed,0.1 do
  2956. swait()
  2957. if rainbowmode == true then
  2958. rng.Color = Color3.new(r/255,g/255,b/255)
  2959. end
  2960. if type == "Add" then
  2961. scaler2 = scaler2 - 0.01*value/bonuspeed
  2962. elseif type == "Divide" then
  2963. scaler2 = scaler2 - 0.01/value*bonuspeed
  2964. end
  2965. if chaosmode == true then
  2966. rng.BrickColor = BrickColor.random()
  2967. end
  2968. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2969. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2970. end
  2971. rng:Destroy()
  2972. end))
  2973. end
  2974.  
  2975. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2976. local type = type
  2977. local rng = Instance.new("Part", char)
  2978.         rng.Anchored = true
  2979. if ModeOfGlitch ~= 9 then
  2980.         rng.BrickColor = color
  2981. elseif ModeOfGlitch == 9 then
  2982. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2983. end
  2984.         rng.CanCollide = false
  2985.         rng.FormFactor = 3
  2986.         rng.Name = "Ring"
  2987.         rng.Material = "Neon"
  2988.         rng.Size = Vector3.new(1, 1, 1)
  2989.         rng.Transparency = 0
  2990.         rng.TopSurface = 0
  2991.         rng.BottomSurface = 0
  2992.         rng.CFrame = pos
  2993.         local rngm = Instance.new("SpecialMesh", rng)
  2994.         rngm.MeshType = "Sphere"
  2995. rngm.Scale = scale
  2996. local scaler2 = 1
  2997. local scaler2b = 1
  2998. local scaler2c = 1
  2999. if type == "Add" then
  3000. scaler2 = 1*value
  3001. scaler2b = 1*value2
  3002. scaler2c = 1*value3
  3003. elseif type == "Divide" then
  3004. scaler2 = 1/value
  3005. scaler2b = 1/value2
  3006. scaler2c = 1/value3
  3007. end
  3008. if ModeOfGlitch == 9 then
  3009. coroutine.resume(coroutine.create(function()
  3010. while true do
  3011. swait()
  3012. if rng.Parent ~= nil then
  3013. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3014. else
  3015. break
  3016. end
  3017. end
  3018. end))
  3019. end
  3020. coroutine.resume(coroutine.create(function()
  3021. for i = 0,10/bonuspeed,0.1 do
  3022. swait()
  3023. if type == "Add" then
  3024. scaler2 = scaler2 - 0.01*value/bonuspeed
  3025. scaler2b = scaler2b - 0.01*value/bonuspeed
  3026. scaler2c = scaler2c - 0.01*value/bonuspeed
  3027. elseif type == "Divide" then
  3028. scaler2 = scaler2 - 0.01/value*bonuspeed
  3029. scaler2b = scaler2b - 0.01/value*bonuspeed
  3030. scaler2c = scaler2c - 0.01/value*bonuspeed
  3031. end
  3032. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3033. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3034. end
  3035. rng:Destroy()
  3036. end))
  3037. end
  3038.  
  3039. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3040. local type = type
  3041. local rotenable = rotatingop
  3042. local rng = Instance.new("Part", char)
  3043.         rng.Anchored = true
  3044.         rng.BrickColor = color
  3045.         rng.CanCollide = false
  3046.         rng.FormFactor = 3
  3047.         rng.Name = "Ring"
  3048.         rng.Material = "Neon"
  3049.         rng.Size = Vector3.new(1, 1, 1)
  3050.         rng.Transparency = 0
  3051. if typeoftrans == "In" then
  3052. rng.Transparency = 1
  3053. end
  3054.         rng.TopSurface = 0
  3055.         rng.BottomSurface = 0
  3056.         rng.CFrame = pos
  3057.         local rngm = Instance.new("SpecialMesh", rng)
  3058.         rngm.MeshType = "FileMesh"
  3059. if typeofshape == "Normal" then
  3060. rngm.MeshId = "rbxassetid://662586858"
  3061. elseif typeofshape == "Round" then
  3062. rngm.MeshId = "rbxassetid://662585058"
  3063. end
  3064. rngm.Scale = scale
  3065. local scaler2 = 1/10
  3066. if type == "Add" then
  3067. scaler2 = 1*value/10
  3068. elseif type == "Divide" then
  3069. scaler2 = 1/value/10
  3070. end
  3071. local randomrot = math.random(1,2)
  3072. coroutine.resume(coroutine.create(function()
  3073. for i = 0,10/bonuspeed,0.1 do
  3074. swait()
  3075. if type == "Add" then
  3076. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3077. elseif type == "Divide" then
  3078. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3079. end
  3080. if rotenable == true then
  3081. if randomrot == 1 then
  3082. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3083. elseif randomrot == 2 then
  3084. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3085. end
  3086. end
  3087. if typeoftrans == "Out" then
  3088. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3089. elseif typeoftrans == "In" then
  3090. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3091. end
  3092. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3093. end
  3094. rng:Destroy()
  3095. end))
  3096. end
  3097.  
  3098. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3099. local type = type
  3100. local rng = Instance.new("Part", char)
  3101.         rng.Anchored = true
  3102.         rng.BrickColor = color
  3103.         rng.CanCollide = false
  3104.         rng.FormFactor = 3
  3105.         rng.Name = "Ring"
  3106.         rng.Material = "Neon"
  3107.         rng.Size = Vector3.new(1, 1, 1)
  3108.         rng.Transparency = 0
  3109.         rng.TopSurface = 0
  3110.         rng.BottomSurface = 0
  3111.         rng.CFrame = pos
  3112. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3113.         local rngm = Instance.new("SpecialMesh", rng)
  3114.         rngm.MeshType = "Brick"
  3115. rngm.Scale = vt(x1,y1,z1)
  3116. if rainbowmode == true then
  3117. rng.Color = Color3.new(r/255,g/255,b/255)
  3118. end
  3119. local scaler2 = 1
  3120. local speeder = FastSpeed/10
  3121. if type == "Add" then
  3122. scaler2 = 1*value
  3123. elseif type == "Divide" then
  3124. scaler2 = 1/value
  3125. end
  3126. coroutine.resume(coroutine.create(function()
  3127. for i = 0,10/bonuspeed,0.1 do
  3128. swait()
  3129. if rainbowmode == true then
  3130. rng.Color = Color3.new(r/255,g/255,b/255)
  3131. end
  3132. if type == "Add" then
  3133. scaler2 = scaler2 - 0.01*value/bonuspeed
  3134. elseif type == "Divide" then
  3135. scaler2 = scaler2 - 0.01/value*bonuspeed
  3136. end
  3137. if chaosmode == true then
  3138. rng.BrickColor = BrickColor.random()
  3139. end
  3140. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3141. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3142. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3143. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3144. end
  3145. rng:Destroy()
  3146. end))
  3147. end
  3148.  
  3149. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3150. local type = type
  3151. local rng = Instance.new("Part", char)
  3152.         rng.Anchored = true
  3153.         rng.BrickColor = color
  3154.         rng.CanCollide = false
  3155.         rng.FormFactor = 3
  3156.         rng.Name = "Ring"
  3157.         rng.Material = "Neon"
  3158.         rng.Size = Vector3.new(1, 1, 1)
  3159.         rng.Transparency = 0
  3160.         rng.TopSurface = 0
  3161.         rng.BottomSurface = 0
  3162.         rng.CFrame = pos
  3163. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3164.         local rngm = Instance.new("SpecialMesh", rng)
  3165.         rngm.MeshType = "Brick"
  3166. rngm.Scale = vt(x1,y1,z1)
  3167. if rainbowmode == true then
  3168. rng.Color = Color3.new(r/255,g/255,b/255)
  3169. end
  3170. local scaler2 = 1
  3171. local speeder = FastSpeed/10
  3172. if type == "Add" then
  3173. scaler2 = 1*value
  3174. elseif type == "Divide" then
  3175. scaler2 = 1/value
  3176. end
  3177. coroutine.resume(coroutine.create(function()
  3178. for i = 0,10/bonuspeed,0.1 do
  3179. swait()
  3180. if rainbowmode == true then
  3181. rng.Color = Color3.new(r/255,g/255,b/255)
  3182. end
  3183. if type == "Add" then
  3184. scaler2 = scaler2 - 0.01*value/bonuspeed
  3185. elseif type == "Divide" then
  3186. scaler2 = scaler2 - 0.01/value*bonuspeed
  3187. end
  3188. if chaosmode == true then
  3189. rng.BrickColor = BrickColor.random()
  3190. end
  3191. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3192. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3193. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3194. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3195. end
  3196. rng:Destroy()
  3197. end))
  3198. end
  3199.  
  3200. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3201. local type = type
  3202. local rng = Instance.new("Part", char)
  3203.         rng.Anchored = true
  3204.         rng.BrickColor = color
  3205.         rng.CanCollide = false
  3206.         rng.FormFactor = 3
  3207.         rng.Name = "Ring"
  3208.         rng.Material = "Neon"
  3209.         rng.Size = Vector3.new(1, 1, 1)
  3210.         rng.Transparency = 0
  3211.         rng.TopSurface = 0
  3212.         rng.BottomSurface = 0
  3213.         rng.CFrame = pos
  3214. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3215.         local rngm = Instance.new("SpecialMesh", rng)
  3216.         rngm.MeshType = "Brick"
  3217. rngm.Scale = vt(x1,y1,z1)
  3218. if rainbowmode == true then
  3219. rng.Color = Color3.new(r/255,g/255,b/255)
  3220. end
  3221. local scaler2 = 0
  3222. local speeder = FastSpeed/10
  3223. if type == "Add" then
  3224. scaler2 = 1*value
  3225. elseif type == "Divide" then
  3226. scaler2 = 1/value
  3227. end
  3228. coroutine.resume(coroutine.create(function()
  3229. for i = 0,10/bonuspeed,0.1 do
  3230. swait()
  3231. if rainbowmode == true then
  3232. rng.Color = Color3.new(r/255,g/255,b/255)
  3233. end
  3234. if type == "Add" then
  3235. scaler2 = scaler2 - 0.01*value/bonuspeed
  3236. elseif type == "Divide" then
  3237. scaler2 = scaler2 - 0.01/value*bonuspeed
  3238. end
  3239. if chaosmode == true then
  3240. rng.BrickColor = BrickColor.random()
  3241. end
  3242. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3243. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3244. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3245. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3246. end
  3247. rng:Destroy()
  3248. end))
  3249. end
  3250.  
  3251. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3252. local type = type
  3253. local rng = Instance.new("Part", char)
  3254.         rng.Anchored = true
  3255.         rng.BrickColor = color
  3256.         rng.Color = color3
  3257.         rng.CanCollide = false
  3258.         rng.FormFactor = 3
  3259.         rng.Name = "Ring"
  3260.         rng.Material = "Neon"
  3261.         rng.Size = Vector3.new(1, 1, 1)
  3262.         rng.Transparency = 0
  3263.         rng.TopSurface = 0
  3264.         rng.BottomSurface = 0
  3265.         rng.CFrame = pos
  3266.         local rngm = Instance.new("SpecialMesh", rng)
  3267.         rngm.MeshType = "Brick"
  3268. rngm.Scale = scale
  3269. local scaler2 = 1
  3270. local scaler2b = 1
  3271. local scaler2c = 1
  3272. if type == "Add" then
  3273. scaler2 = 1*value
  3274. scaler2b = 1*value2
  3275. scaler2c = 1*value3
  3276. elseif type == "Divide" then
  3277. scaler2 = 1/value
  3278. scaler2b = 1/value2
  3279. scaler2c = 1/value3
  3280. end
  3281. coroutine.resume(coroutine.create(function()
  3282. for i = 0,10/bonuspeed,0.1 do
  3283. swait()
  3284. if type == "Add" then
  3285. scaler2 = scaler2 - 0.01*value/bonuspeed
  3286. scaler2b = scaler2b - 0.01*value/bonuspeed
  3287. scaler2c = scaler2c - 0.01*value/bonuspeed
  3288. elseif type == "Divide" then
  3289. scaler2 = scaler2 - 0.01/value*bonuspeed
  3290. scaler2b = scaler2b - 0.01/value*bonuspeed
  3291. scaler2c = scaler2c - 0.01/value*bonuspeed
  3292. end
  3293. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3294. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3295. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3296. end
  3297. rng:Destroy()
  3298. end))
  3299. end
  3300.  
  3301. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3302. local type = type
  3303. local rng = Instance.new("Part", char)
  3304.         rng.Anchored = true
  3305. if ModeOfGlitch ~= 9 then
  3306.         rng.BrickColor = color
  3307. elseif ModeOfGlitch == 9 then
  3308. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3309. end
  3310.         rng.CanCollide = false
  3311.         rng.FormFactor = 3
  3312.         rng.Name = "Ring"
  3313.         rng.Material = "Neon"
  3314.         rng.Size = Vector3.new(1, 1, 1)
  3315.         rng.Transparency = 0
  3316.         rng.TopSurface = 0
  3317.         rng.BottomSurface = 0
  3318.         rng.CFrame = pos
  3319. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3320.         local rngm = Instance.new("SpecialMesh", rng)
  3321.         rngm.MeshType = "Sphere"
  3322. rngm.Scale = vt(x1,y1,z1)
  3323. if rainbowmode == true then
  3324. rng.Color = Color3.new(r/255,g/255,b/255)
  3325. end
  3326. if ModeOfGlitch == 9 then
  3327. coroutine.resume(coroutine.create(function()
  3328. while true do
  3329. swait()
  3330. if rng.Parent ~= nil then
  3331. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3332. else
  3333. break
  3334. end
  3335. end
  3336. end))
  3337. end
  3338. local scaler2 = 1
  3339. local speeder = FastSpeed
  3340. if type == "Add" then
  3341. scaler2 = 1*value
  3342. elseif type == "Divide" then
  3343. scaler2 = 1/value
  3344. end
  3345. coroutine.resume(coroutine.create(function()
  3346. for i = 0,10/bonuspeed,0.1 do
  3347. swait()
  3348. if rainbowmode == true then
  3349. rng.Color = Color3.new(r/255,g/255,b/255)
  3350. end
  3351. if type == "Add" then
  3352. scaler2 = scaler2 - 0.01*value/bonuspeed
  3353. elseif type == "Divide" then
  3354. scaler2 = scaler2 - 0.01/value*bonuspeed
  3355. end
  3356. if chaosmode == true then
  3357. rng.BrickColor = BrickColor.random()
  3358. end
  3359. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3360. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3361. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3362. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3363. end
  3364. rng:Destroy()
  3365. end))
  3366. end
  3367.  
  3368.  
  3369. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3370. local type = type
  3371. local rng = Instance.new("Part", char)
  3372.         rng.Anchored = true
  3373. if ModeOfGlitch ~= 9 then
  3374.         rng.BrickColor = color
  3375. elseif ModeOfGlitch == 9 then
  3376. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3377. end
  3378.         rng.CanCollide = false
  3379.         rng.FormFactor = 3
  3380.         rng.Name = "Ring"
  3381.         rng.Material = "Neon"
  3382.         rng.Size = Vector3.new(1, 1, 1)
  3383.         rng.Transparency = 1
  3384.         rng.TopSurface = 0
  3385.         rng.BottomSurface = 0
  3386.         rng.CFrame = pos
  3387. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3388.         local rngm = Instance.new("SpecialMesh", rng)
  3389.         rngm.MeshType = "Sphere"
  3390. rngm.Scale = vt(x1,y1,z1)
  3391. if rainbowmode == true then
  3392. rng.Color = Color3.new(r/255,g/255,b/255)
  3393. end
  3394. if ModeOfGlitch == 9 then
  3395. coroutine.resume(coroutine.create(function()
  3396. while true do
  3397. swait()
  3398. if rng.Parent ~= nil then
  3399. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3400. else
  3401. break
  3402. end
  3403. end
  3404. end))
  3405. end
  3406. local scaler2 = 1
  3407. local speeder = FastSpeed
  3408. if type == "Add" then
  3409. scaler2 = 1*value
  3410. elseif type == "Divide" then
  3411. scaler2 = 1/value
  3412. end
  3413. coroutine.resume(coroutine.create(function()
  3414. for i = 0,10/bonuspeed,0.1 do
  3415. swait()
  3416. if rainbowmode == true then
  3417. rng.Color = Color3.new(r/255,g/255,b/255)
  3418. end
  3419. if type == "Add" then
  3420. scaler2 = scaler2 - 0.01*value/bonuspeed
  3421. elseif type == "Divide" then
  3422. scaler2 = scaler2 - 0.01/value*bonuspeed
  3423. end
  3424. if chaosmode == true then
  3425. rng.BrickColor = BrickColor.random()
  3426. end
  3427. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3428. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3429. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3430. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3431. end
  3432. rng:Destroy()
  3433. end))
  3434. end
  3435.  
  3436. function dmg(dude)
  3437. if dude.Name ~= Character then
  3438. local keptcolor = MAINRUINCOLOR
  3439. local bgf = Instance.new("BodyGyro",dude.Head)
  3440. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3441. --[[local val = Instance.new("BoolValue",dude)
  3442. val.Name = "IsHit"]]--
  3443. local ds = coroutine.wrap(function()
  3444. dude:WaitForChild("Head"):BreakJoints()
  3445. for i, v in pairs(dude:GetChildren()) do
  3446. if v:IsA("Part") or v:IsA("MeshPart") then
  3447. v.Name = "DEMINISHED"
  3448. end
  3449. end
  3450. wait(0.5)
  3451. targetted = nil
  3452. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3453. coroutine.resume(coroutine.create(function()
  3454. for i, v in pairs(dude:GetChildren()) do
  3455. if v:IsA("Accessory") then
  3456. v:Destroy()
  3457. end
  3458. if v:IsA("Humanoid") then
  3459. v:Destroy()
  3460. end
  3461. if v:IsA("CharacterMesh") then
  3462. v:Destroy()
  3463. end
  3464. if v:IsA("Model") then
  3465. v:Destroy()
  3466. end
  3467. if v:IsA("Part") or v:IsA("MeshPart") then
  3468. for x, o in pairs(v:GetChildren()) do
  3469. if o:IsA("Decal") then
  3470. o:Destroy()
  3471. end
  3472. end
  3473. coroutine.resume(coroutine.create(function()
  3474. v.Material = "Neon"
  3475. v.CanCollide = false
  3476. v.Anchored = false
  3477. local bld = Instance.new("ParticleEmitter",v)
  3478. bld.LightEmission = 0.75
  3479. bld.Texture = "rbxassetid://363275192" ---284205403
  3480. bld.Color = ColorSequence.new(keptcolor.Color)
  3481. bld.Rate = 500
  3482. bld.Lifetime = NumberRange.new(1)
  3483. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3484. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3485. bld.Speed = NumberRange.new(2,5)
  3486. bld.VelocitySpread = 50000
  3487. bld.Rotation = NumberRange.new(-500,500)
  3488. bld.RotSpeed = NumberRange.new(-500,500)
  3489.         local sbs = Instance.new("BodyPosition", v)
  3490.         sbs.P = 3000
  3491.         sbs.D = 1000
  3492.         sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3493.         sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3494. v.Color = keptcolor.Color
  3495. coroutine.resume(coroutine.create(function()
  3496. for i = 0, 49 do
  3497. swait(1)
  3498. v:BreakJoints()
  3499. v.Transparency = v.Transparency + 0.02
  3500. end
  3501. v:BreakJoints()
  3502. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3503. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3504. bld.Speed = NumberRange.new(10,25)
  3505. bld.Drag = 5
  3506. bld.Acceleration = vt(0,2,0)
  3507. wait(0.5)
  3508. bld.Enabled = false
  3509. wait(8)
  3510. v:Destroy()
  3511. dude:Destroy()
  3512. end))
  3513. end))
  3514. end
  3515. end
  3516. end))
  3517. end)
  3518. ds()
  3519. end
  3520. end
  3521.  
  3522.  
  3523. function FindNearestHead(Position, Distance, SinglePlayer)
  3524.     if SinglePlayer then
  3525.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3526.     end
  3527.     local List = {}
  3528.     for i, v in pairs(workspace:GetChildren()) do
  3529.         if v:IsA("Model") then
  3530.             if v:findFirstChild("Head") then
  3531.                 if v ~= Character then
  3532.                     if (v.Head.Position - Position).magnitude <= Distance then
  3533.                         table.insert(List, v)
  3534.                     end
  3535.                 end
  3536.             end
  3537.         end
  3538.     end
  3539.     return List
  3540. end
  3541.  
  3542. function FaceMouse()
  3543.   Cam = workspace.CurrentCamera
  3544.   return {
  3545.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3546.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3547.   }
  3548. end
  3549.  
  3550. function FaceMouse2()
  3551.   Cam = workspace.CurrentCamera
  3552.   return {
  3553.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3554.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3555.   }
  3556. end
  3557.  
  3558. local ModeOfGlitch = 1
  3559. -- Functions are ready.
  3560. local storehumanoidWS = 16
  3561.  
  3562. function CorruptBlink()
  3563. for i = 0, 14 do
  3564. 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)
  3565. end
  3566. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3567. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3568. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3569. CameraEnshaking(2,10)
  3570. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3571. if v:FindFirstChild('Head') then
  3572. dmg(v)
  3573. end
  3574. end
  3575. for i = 0, 14 do
  3576. 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)
  3577. end
  3578. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3579. end
  3580. function PureBomb()
  3581. attack = true
  3582. hum.WalkSpeed = 0
  3583. local orb = Instance.new("Part", char)
  3584.         orb.Anchored = true
  3585.         orb.BrickColor = BrickColor.new("Toothpaste")
  3586.         orb.CanCollide = false
  3587.         orb.FormFactor = 3
  3588.         orb.Name = "Ring"
  3589.         orb.Material = "Neon"
  3590.         orb.Size = Vector3.new(1, 1, 1)
  3591.         orb.Transparency = 0
  3592.         orb.TopSurface = 0
  3593.         orb.BottomSurface = 0
  3594.         local orbm = Instance.new("SpecialMesh", orb)
  3595.         orbm.MeshType = "Sphere"
  3596. orbm.Name = "SizeMesh"
  3597. orbm.Scale = vt(0,0,0)
  3598. local scaled = 0.1
  3599. local posid = 0
  3600. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3601. for i = 0, 5, 0.1 do
  3602. swait()
  3603. scaled = scaled - 0.001
  3604. posid = posid - scaled
  3605. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3606. local scaled = 0.1
  3607. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3608. 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)
  3609. 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)
  3610. 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)
  3611. 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)
  3612. 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)
  3613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3615. 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)
  3616. end
  3617. for i = 0, 2, 0.1 do
  3618. swait()
  3619. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3620. 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)
  3621. 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)
  3622. 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)
  3623. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3624. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3625. 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)
  3626. end
  3627. coroutine.resume(coroutine.create(function()
  3628. orb.Anchored = false
  3629. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3630.     local a = Instance.new("Part",workspace)
  3631.     a.Name = "Direction"   
  3632.     a.Anchored = true
  3633.     a.BrickColor = bc("Bright red")
  3634. a.Material = "Neon"
  3635. a.Transparency = 1
  3636.     a.CanCollide = false
  3637.     local ray = Ray.new(
  3638.         orb.CFrame.p,                           -- origin
  3639.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3640.     )
  3641.     local ignore = orb
  3642.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3643.     a.BottomSurface = 10
  3644.     a.TopSurface = 10
  3645.     local distance = (orb.CFrame.p - position).magnitude
  3646.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3647.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3648. orb.CFrame = a.CFrame
  3649. a:Destroy()
  3650. local bv = Instance.new("BodyVelocity")
  3651. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3652. bv.velocity = orb.CFrame.lookVector*125
  3653. bv.Parent = orb
  3654. local hitted = false
  3655. game:GetService("Debris"):AddItem(orb, 15)
  3656. wait()
  3657. local hit =orb.Touched:connect(function(hit)
  3658.     if hitted == false then
  3659.     hitted = true
  3660. CameraEnshaking(10,2.5)
  3661. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3662.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  3663. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3664. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3665. for i = 0, 49 do
  3666. 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)
  3667. end
  3668. for i = 0, 9 do
  3669. 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)
  3670. 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)
  3671. end
  3672. orb.Anchored = true
  3673. orb.Transparency = 1
  3674. wait(8)
  3675. orb:Destroy()
  3676. end
  3677. end)
  3678. end))
  3679. for i = 0, 1, 0.1 do
  3680. swait()
  3681. 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)
  3682. 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)
  3683. 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)
  3684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3685. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3686. 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)
  3687. end
  3688. hum.WalkSpeed = storehumanoidWS
  3689. attack = false
  3690. end
  3691.  
  3692. function BanishingOrb()
  3693. attack = true
  3694. hum.WalkSpeed = 0
  3695. local radm = math.random(1,3)
  3696. if radm == 1 then
  3697. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3698. elseif radm == 2 then
  3699. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3700. elseif radm == 3 then
  3701. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3702. end
  3703. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3704. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3705. local orb = Instance.new("Part", char)
  3706.         orb.Anchored = true
  3707.         orb.BrickColor = BrickColor.new("Lime green")
  3708.         orb.CanCollide = false
  3709.         orb.FormFactor = 3
  3710.         orb.Name = "Ring"
  3711.         orb.Material = "Neon"
  3712.         orb.Size = Vector3.new(1, 1, 1)
  3713.         orb.Transparency = 0
  3714.         orb.TopSurface = 0
  3715.         orb.BottomSurface = 0
  3716.         local orbm = Instance.new("SpecialMesh", orb)
  3717.         orbm.MeshType = "Sphere"
  3718. orbm.Name = "SizeMesh"
  3719. orbm.Scale = vt(0,0,0)
  3720. local scaled = 0.1
  3721. local posid = 0
  3722. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3723. for i = 0, 5, 0.1 do
  3724. swait()
  3725. scaled = scaled - 0.001
  3726. posid = posid - scaled
  3727. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3728. local scaled = 0.1
  3729. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3730. 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)
  3731. 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)
  3732. 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)
  3733. 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)
  3734. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3735. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3736. 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)
  3737. end
  3738. for i = 0, 2, 0.1 do
  3739. swait()
  3740. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3741. 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)
  3742. 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)
  3743. 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)
  3744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3745. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3746. 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)
  3747. end
  3748. coroutine.resume(coroutine.create(function()
  3749. orb.Anchored = false
  3750. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3751.     local a = Instance.new("Part",workspace)
  3752.     a.Name = "Direction"   
  3753.     a.Anchored = true
  3754.     a.BrickColor = bc("Lime green")
  3755. a.Material = "Neon"
  3756. a.Transparency = 1
  3757.     a.CanCollide = false
  3758.     local ray = Ray.new(
  3759.         orb.CFrame.p,                           -- origin
  3760.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3761.     )
  3762.     local ignore = orb
  3763.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3764.     a.BottomSurface = 10
  3765.     a.TopSurface = 10
  3766.     local distance = (orb.CFrame.p - position).magnitude
  3767.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3768.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3769. orb.CFrame = a.CFrame
  3770. a:Destroy()
  3771. local bv = Instance.new("BodyVelocity")
  3772. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3773. bv.velocity = orb.CFrame.lookVector*0
  3774. bv.Parent = orb
  3775. local hitted = false
  3776. local rate = 0
  3777. coroutine.resume(coroutine.create(function()
  3778. for i = 0, 24 do
  3779. wait(0.1)
  3780. rate = rate + 0.25
  3781. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3782. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3783. if v:FindFirstChild('Head') then
  3784. dmg(v)
  3785. end
  3786. end
  3787. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3788. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3789. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3790. end
  3791. orb.Anchored = true
  3792. orb.Transparency = 1
  3793. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3794. if v:FindFirstChild('Head') then
  3795. dmg(v)
  3796. end
  3797. end
  3798. local eff = Instance.new("ParticleEmitter",orb)
  3799. eff.Texture = "rbxassetid://296874871"
  3800. eff.LightEmission = 0.95
  3801. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3802. eff.Rate = 1000000000
  3803. eff.Lifetime = NumberRange.new(3)
  3804. 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)})
  3805. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3806. eff.Speed = NumberRange.new(30)
  3807. eff.Acceleration = vt(0,-15,0)
  3808. eff.Rotation = NumberRange.new(-500,500)
  3809. eff.VelocitySpread = 100000
  3810. eff.RotSpeed = NumberRange.new(-500,500)
  3811. coroutine.resume(coroutine.create(function()
  3812.     wait(0.6)
  3813.     eff.Enabled = false
  3814. end))
  3815. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3816. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3817. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3818. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3819. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3820. game:GetService("Debris"):AddItem(orb, 15)
  3821. end))
  3822. end))
  3823. for i = 0, 1, 0.1 do
  3824. swait()
  3825. 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)
  3826. 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)
  3827. 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)
  3828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3829. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3830. 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)
  3831. end
  3832. hum.WalkSpeed = storehumanoidWS
  3833. attack = false
  3834. end
  3835.  
  3836.  
  3837. function ChaosGroundStrike()
  3838. attack = true
  3839. for i = 0, 2, 0.1 do
  3840. swait()
  3841. 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)
  3842. 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)
  3843. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3844. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3845. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3846. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3847. end
  3848. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3849. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3850. CameraEnshaking(4,12)
  3851. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3852. if v:FindFirstChild('Head') then
  3853. dmg(v)
  3854. end
  3855. end
  3856. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3857. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3858. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3859. for i = 0, 2, 0.1 do
  3860. swait()
  3861. 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)
  3862. 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)
  3863. 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)
  3864. 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)
  3865. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3866. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3867. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3868. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3869. end
  3870. attack = false
  3871. end
  3872.  
  3873.  
  3874.  
  3875. function Starfall()
  3876. attack = true
  3877. hum.WalkSpeed = 0
  3878. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3879. for i = 0, 5, 0.1 do
  3880. swait()
  3881. 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)
  3882. 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)
  3883. 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)
  3884. 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)
  3885. 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)
  3886. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3887. 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)
  3888. 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)
  3889. end
  3890. local Overed = false
  3891. CameraEnshaking(2,20)
  3892. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3893. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3894. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3895. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3896. local orb = Instance.new("Part", char)
  3897.         orb.Anchored = true
  3898.         orb.BrickColor = BrickColor.new("Toothpaste")
  3899.         orb.CanCollide = false
  3900.         orb.FormFactor = 3
  3901.         orb.Name = "Remenant"
  3902.         orb.Material = "Neon"
  3903. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3904.         orb.Size = Vector3.new(1, 1, 1)
  3905.         orb.Transparency = 1
  3906.         orb.TopSurface = 0
  3907.         orb.BottomSurface = 0
  3908. hum.WalkSpeed = storehumanoidWS
  3909. coroutine.resume(coroutine.create(function()
  3910. for i = 0, 9 do
  3911. swait(10)
  3912.                  local lb = Instance.new("Part")
  3913.     lb.Color = MAINRUINCOLOR.Color
  3914.      lb.CanCollide = false
  3915. lb.Material = "Neon"
  3916.      lb.Anchored = true
  3917. lb.TopSurface = 0
  3918.         lb.BottomSurface = 0
  3919.      lb.Transparency = 0
  3920.      lb.Size = vt(1,1,1)
  3921.      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)))
  3922. lb.Anchored = false
  3923.   lb.Parent = char
  3924. local thingery = Instance.new("SpecialMesh",lb)
  3925.      thingery.MeshType = "Sphere"
  3926. thingery.Scale = vt(20,20,20)
  3927. game:GetService("Debris"):AddItem(lb, 10)
  3928.   local bv = Instance.new("BodyVelocity")
  3929.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3930.   bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3931.   bv.Parent = lb
  3932. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3933. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3934. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3935. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3936. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3937. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3938. local hitted = false
  3939. coroutine.resume(coroutine.create(function()
  3940. while true do
  3941. swait(1)
  3942. if lb.Parent ~= nil and hitted == false then
  3943. 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)
  3944. elseif lb.Parent == nil then
  3945. break
  3946. end
  3947. end
  3948. end))
  3949.  
  3950. game:GetService("Debris"):AddItem(a, 0.1)
  3951.  
  3952. coroutine.resume(coroutine.create(function()
  3953. swait(1)
  3954. lb.Touched:connect(function(hit)
  3955. if hitted == false then
  3956. hitted = true
  3957. lb.Transparency = 1
  3958. lb.Anchored = true
  3959. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3960. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3961. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3962. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3963. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3964. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3965. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3966. CameraEnshaking(1,5)
  3967. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3968. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3969. for i = 0, 9 do
  3970. 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)
  3971. end
  3972. for i = 0, 49 do
  3973. swait()
  3974. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3975. 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)
  3976. end
  3977. end
  3978. end)
  3979. end))
  3980. end
  3981. Overed = true
  3982. orb:Destroy()
  3983. end))
  3984.  
  3985. attack = false
  3986. end
  3987.  
  3988. function StarfallEX()
  3989. attack = true
  3990. hum.WalkSpeed = 0
  3991. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3992. for i = 0, 10, 0.1 do
  3993. swait()
  3994. 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)
  3995. 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)
  3996. 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)
  3997. 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)
  3998. 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)
  3999. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4000. 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)
  4001. 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)
  4002. end
  4003. local Overed = false
  4004. CameraEnshaking(2,20)
  4005. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4006. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4007. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  4008. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  4009. local orb = Instance.new("Part", char)
  4010.         orb.Anchored = true
  4011.         orb.BrickColor = BrickColor.new("Toothpaste")
  4012.         orb.CanCollide = false
  4013.         orb.FormFactor = 3
  4014.         orb.Name = "Remenant"
  4015.         orb.Material = "Neon"
  4016. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  4017.         orb.Size = Vector3.new(1, 1, 1)
  4018.         orb.Transparency = 1
  4019.         orb.TopSurface = 0
  4020.         orb.BottomSurface = 0
  4021. hum.WalkSpeed = storehumanoidWS
  4022. coroutine.resume(coroutine.create(function()
  4023. for i = 0, 4 do
  4024. swait(15)
  4025.                  local lb = Instance.new("Part")
  4026.     lb.Color = MAINRUINCOLOR.Color
  4027.      lb.CanCollide = false
  4028. lb.Material = "Neon"
  4029.      lb.Anchored = true
  4030. lb.TopSurface = 0
  4031.         lb.BottomSurface = 0
  4032.      lb.Transparency = 0
  4033.      lb.Size = vt(1,1,1)
  4034.      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)))
  4035. lb.Anchored = false
  4036.   lb.Parent = char
  4037. local thingery = Instance.new("SpecialMesh",lb)
  4038.      thingery.MeshType = "Sphere"
  4039. thingery.Scale = vt(50,50,50)
  4040. game:GetService("Debris"):AddItem(lb, 10)
  4041.   local bv = Instance.new("BodyVelocity")
  4042.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4043.   bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  4044.   bv.Parent = lb
  4045. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4046. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4047. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  4048. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  4049. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  4050. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  4051. local hitted = false
  4052. coroutine.resume(coroutine.create(function()
  4053. while true do
  4054. swait(1)
  4055. if lb.Parent ~= nil and hitted == false then
  4056. 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)
  4057. elseif lb.Parent == nil then
  4058. break
  4059. end
  4060. end
  4061. end))
  4062.  
  4063. game:GetService("Debris"):AddItem(a, 0.1)
  4064.  
  4065. coroutine.resume(coroutine.create(function()
  4066. swait(1)
  4067. lb.Touched:connect(function(hit)
  4068. if hitted == false then
  4069. hitted = true
  4070. lb.Transparency = 1
  4071. lb.Anchored = true
  4072. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  4073. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  4074. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  4075. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  4076. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  4077. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  4078. MagniDamage(lb, 50, 60,99, 0, "Normal")
  4079. CameraEnshaking(1,5)
  4080. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  4081. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  4082. for i = 0, 9 do
  4083. 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)
  4084. end
  4085. for i = 0, 99 do
  4086. swait()
  4087. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4088. 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)
  4089. end
  4090. end
  4091. end)
  4092. end))
  4093. end
  4094. Overed = true
  4095. orb:Destroy()
  4096. end))
  4097.  
  4098. attack = false
  4099. end
  4100.  
  4101. function DivineBlast()
  4102. attack = true
  4103. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  4104. hum.WalkSpeed = 0
  4105. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4106. elocacenter.Anchored = true
  4107. elocacenter.CFrame = sorb.CFrame
  4108. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4109. eloca1.Anchored = true
  4110. eloca1.CFrame = elocacenter.CFrame
  4111. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4112. eloca2.Anchored = true
  4113. eloca2.CFrame = elocacenter.CFrame
  4114. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4115. eloca3.Anchored = true
  4116. eloca3.CFrame = elocacenter.CFrame
  4117. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4118. eloca4.Anchored = true
  4119. eloca4.CFrame = elocacenter.CFrame
  4120. local lookavec = 0
  4121. local speeds = 0
  4122. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4123. for i = 0, 3, 0.1 do
  4124. swait()
  4125. ---
  4126. lookavec = lookavec + 0.1
  4127. speeds = speeds + 10
  4128. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4129. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4130. 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)
  4131.  
  4132. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4133. 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)
  4134.  
  4135. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4136. 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)
  4137.  
  4138. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4139. 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)
  4140. ---
  4141. root.CFrame = FaceMouse()[1]
  4142. 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)
  4143. 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)
  4144. 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)
  4145. 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)
  4146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4147. 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)
  4148. end
  4149. for i = 0, 3, 0.1 do
  4150. swait()
  4151. ---
  4152. speeds = speeds + 10
  4153. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4154. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4155. 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)
  4156.  
  4157. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4158. 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)
  4159.  
  4160. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4161. 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)
  4162.  
  4163. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4164. 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)
  4165. ---
  4166. root.CFrame = FaceMouse()[1]
  4167. 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)
  4168. 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)
  4169. 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)
  4170. 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)
  4171. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4172. 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)
  4173. end
  4174. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4175. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4176. for i = 0, 3, 0.1 do
  4177. swait()
  4178. ---
  4179. speeds = speeds + 10
  4180. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4181. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4182. 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)
  4183.  
  4184. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4185. 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)
  4186.  
  4187. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4188. 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)
  4189.  
  4190. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4191. 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)
  4192. ---
  4193. root.CFrame = FaceMouse()[1]
  4194. 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)
  4195. 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)
  4196. 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)
  4197. 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)
  4198. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4199. 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)
  4200. end
  4201. coroutine.resume(coroutine.create(function()
  4202. local a = Instance.new("Part",Character)
  4203.     a.Name = "Direction"   
  4204.     a.Anchored = true
  4205.     a.BrickColor = bc("White")
  4206. a.Material = "Neon"
  4207. a.Transparency = 0
  4208. a.Shape = "Cylinder"
  4209.     a.CanCollide = false
  4210. local a2 = Instance.new("Part",Character)
  4211.     a2.Name = "Direction"  
  4212.     a2.Anchored = true
  4213.     a2.BrickColor = bc("Bright yellow")
  4214. a2.Material = "Neon"
  4215. a2.Transparency = 0
  4216. a2.Shape = "Cylinder"
  4217.     a2.CanCollide = false
  4218. local b = Instance.new("Part",Character)
  4219.     b.Name = "HitDirect"   
  4220.     b.Anchored = true
  4221.     b.BrickColor = bc("Cool yellow")
  4222. b.Material = "Neon"
  4223. b.Transparency = 1
  4224.     b.CanCollide = false
  4225.     local ray = Ray.new(
  4226.         elocacenter.CFrame.p,                           -- origin
  4227.         (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4228.     )
  4229.     local ignore = Character
  4230.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4231.     a.BottomSurface = 10
  4232.     a.TopSurface = 10
  4233.     a2.BottomSurface = 10
  4234.     a2.TopSurface = 10
  4235.     local distance = (elocacenter.CFrame.p - position).magnitude
  4236.     a.Size = Vector3.new(distance, 1, 1)
  4237.     a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4238.     a2.Size = Vector3.new(distance, 1, 1)
  4239.     a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4240. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4241. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4242. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4243. game:GetService("Debris"):AddItem(a, 10)
  4244. game:GetService("Debris"):AddItem(a2, 10)
  4245. game:GetService("Debris"):AddItem(b, 10)
  4246. local eff = Instance.new("ParticleEmitter",b)
  4247. eff.Texture = "rbxassetid://2273224484"
  4248. eff.LightEmission = 1
  4249. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4250. eff.Rate = 500000
  4251. eff.Lifetime = NumberRange.new(0.5,2)
  4252. 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)})
  4253. 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)})
  4254. eff.Speed = NumberRange.new(20,250)
  4255. eff.Drag = 5
  4256. eff.Rotation = NumberRange.new(-500,500)
  4257. eff.VelocitySpread = 9000
  4258. eff.RotSpeed = NumberRange.new(-50,50)
  4259. coroutine.resume(coroutine.create(function()
  4260. wait(0.25)
  4261. eff.Enabled = false
  4262. end))
  4263. local msh = Instance.new("SpecialMesh",a)
  4264. msh.MeshType = "Cylinder"
  4265. msh.Scale = vt(1,2,2)
  4266. local msh2 = Instance.new("SpecialMesh",a2)
  4267. msh2.MeshType = "Cylinder"
  4268. msh2.Scale = vt(1,2.5,2.5)
  4269. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4270. coroutine.resume(coroutine.create(function()
  4271. for i = 0,10,0.1 do
  4272. swait()
  4273. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4274. a.Transparency = a.Transparency + 0.025
  4275. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4276. a2.Transparency = a2.Transparency + 0.05
  4277. end
  4278. a:Destroy()
  4279. a2:Destroy()
  4280. end))
  4281. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4282. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4283. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4284. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4285. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4286. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4287. MagniDamage(b, 25, 40,65, 0, "Normal")
  4288. for i = 0, 49 do
  4289. 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)
  4290. 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)
  4291. end
  4292. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4293. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4294. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4295. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4296. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4297. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4298. end))
  4299. game:GetService("Debris"):AddItem(elocacenter, 5)
  4300. hum.WalkSpeed = storehumanoidWS
  4301. attack = false
  4302. end
  4303.  
  4304. function StarDivision()
  4305. attack = true
  4306. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4307. for i = 0, 2, 0.1 do
  4308. swait()
  4309. 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)
  4310. 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)
  4311. 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)
  4312. 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)
  4313. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4314. 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)
  4315. end
  4316. local orb = Instance.new("Part", char)
  4317.         orb.BrickColor = MAINRUINCOLOR
  4318.         orb.CanCollide = false
  4319.         orb.FormFactor = 3
  4320.         orb.Name = "Ring"
  4321.         orb.Material = "Neon"
  4322.         orb.Size = Vector3.new(1, 1, 1)
  4323.         orb.Transparency = 0
  4324.         orb.TopSurface = 0
  4325.         orb.BottomSurface = 0
  4326.         local orbm = Instance.new("SpecialMesh", orb)
  4327.         orbm.MeshType = "Sphere"
  4328. orbm.Name = "SizeMesh"
  4329. orbm.Scale = vt(2,2,2)
  4330. local a = Instance.new("Part",workspace)
  4331.     a.Name = "Direction"   
  4332.     a.Anchored = true
  4333.     a.BrickColor = bc("Bright red")
  4334. a.Material = "Neon"
  4335. a.Transparency = 1
  4336.     a.CanCollide = false
  4337.     local ray = Ray.new(
  4338.         sorb.CFrame.p,                           -- origin
  4339.         (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4340.     )
  4341.     local ignore = sorb
  4342.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4343.     a.BottomSurface = 10
  4344.     a.TopSurface = 10
  4345.     local distance = (sorb.CFrame.p - position).magnitude
  4346.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  4347.     a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4348. orb.CFrame = a.CFrame
  4349. a:Destroy()
  4350. local bv = Instance.new("BodyVelocity")
  4351. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4352. bv.velocity = orb.CFrame.lookVector*100
  4353. bv.Parent = orb
  4354. local hitted = false
  4355. game:GetService("Debris"):AddItem(orb, 10)
  4356. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4357. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4358. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4359. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4360. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4361. coroutine.resume(coroutine.create(function()
  4362. while true do
  4363. swait(1)
  4364. if orb.Parent ~= nil and hitted == false then
  4365. 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)
  4366. elseif orb.Parent == nil then
  4367. break
  4368. end
  4369. end
  4370. end))
  4371. coroutine.resume(coroutine.create(function()
  4372. swait(1)
  4373. orb.Touched:connect(function(hit)
  4374. if hitted == false then
  4375. hitted = true
  4376. game:GetService("Debris"):AddItem(orb, 5)
  4377. orb.Transparency = 1
  4378. orb.Anchored = true
  4379. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4380. elocacenter.Anchored = true
  4381. elocacenter.CFrame = orb.CFrame
  4382. elocacenter.Orientation = vt(0,0,0)
  4383. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4384. eloca1.Anchored = true
  4385. eloca1.CFrame = elocacenter.CFrame
  4386. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4387. eloca2.Anchored = true
  4388. eloca2.CFrame = elocacenter.CFrame
  4389. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4390. eloca3.Anchored = true
  4391. eloca3.CFrame = elocacenter.CFrame
  4392. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4393. eloca4.Anchored = true
  4394. eloca4.CFrame = elocacenter.CFrame
  4395. local lookavec = 0
  4396. local speeds = 0
  4397. CameraEnshaking(1,1)
  4398. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4399. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4400. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4401. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4402. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4403. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4404. for i = 0, 99 do
  4405. swait()
  4406. lookavec = lookavec + 1
  4407. speeds = speeds + 0.1
  4408. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4409. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4410. 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)
  4411.  
  4412. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4413. 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)
  4414.  
  4415. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4416. 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)
  4417.  
  4418. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4419. 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)
  4420. end
  4421.  
  4422. for i = 0, 149 do
  4423. swait()
  4424. speeds = speeds + 0.1
  4425. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4426. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4427. 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)
  4428.  
  4429. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4430. 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)
  4431.  
  4432. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4433. 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)
  4434.  
  4435. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4436. 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)
  4437. end
  4438. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4439. if v:FindFirstChild('Head') then
  4440. dmg(v)
  4441. end
  4442. end
  4443. CameraEnshaking(7,30)
  4444. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4445. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4446. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4447. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4448. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4449. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4450. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4451. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4452. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4453. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4454. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4455. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4456. for i = 0, 24 do
  4457. 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)
  4458. 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)
  4459. 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)
  4460. 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)
  4461. end
  4462. coroutine.resume(coroutine.create(function()
  4463. for i = 0, 499 do
  4464. swait(1)
  4465. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4466. 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)
  4467. end
  4468. elocacenter:Destroy()
  4469. eloca1:Destroy()
  4470. eloca2:Destroy()
  4471. eloca3:Destroy()
  4472. eloca4:Destroy()
  4473. end))
  4474. end
  4475. end)
  4476. end))
  4477. attack = false
  4478. end
  4479.  
  4480.  
  4481. function THE_TRUE_POWER_OF_VIOLENCE()
  4482. attack = true
  4483. hum.WalkSpeed = 0
  4484. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4485. for i = 0, 10, 0.1 do
  4486. swait()
  4487. 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)
  4488. 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)
  4489. 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)
  4490. 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)
  4491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4492. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4493. 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)
  4494. end
  4495. local orb = Instance.new("Part", char)
  4496.         orb.BrickColor = MAINRUINCOLOR
  4497.         orb.CanCollide = false
  4498.         orb.FormFactor = 3
  4499.         orb.Name = "Ring"
  4500.         orb.Material = "Neon"
  4501.         orb.Size = Vector3.new(1, 1, 1)
  4502.         orb.Transparency = 0
  4503.         orb.TopSurface = 0
  4504.         orb.BottomSurface = 0
  4505. orb.CFrame = sorb.CFrame
  4506.         local orbm = Instance.new("SpecialMesh", orb)
  4507.         orbm.MeshType = "Sphere"
  4508. orbm.Name = "SizeMesh"
  4509. orbm.Scale = vt(0,0,0)
  4510.         local sbs = Instance.new("BodyPosition", orb)
  4511.         sbs.P = 3000
  4512.         sbs.D = 1000
  4513.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4514.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4515. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4516. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4517. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4518. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4519. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4520. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4521. for i = 0, 10, 0.1 do
  4522. swait()
  4523. 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)
  4524. 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)
  4525. 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)
  4526. 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)
  4527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4528. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4529. 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)
  4530. end
  4531. orb.Anchored = true
  4532. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4533. elocacenter.Anchored = true
  4534. elocacenter.CFrame = orb.CFrame
  4535. elocacenter.Orientation = vt(0,0,0)
  4536. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4537. eloca1.Anchored = true
  4538. eloca1.CFrame = elocacenter.CFrame
  4539. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4540. eloca2.Anchored = true
  4541. eloca2.CFrame = elocacenter.CFrame
  4542. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4543. eloca3.Anchored = true
  4544. eloca3.CFrame = elocacenter.CFrame
  4545. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4546. eloca4.Anchored = true
  4547. eloca4.CFrame = elocacenter.CFrame
  4548. local lookavec = 0
  4549. local speeds = 0
  4550. CameraEnshaking(1,1)
  4551. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4552. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4553. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4554. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4555. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4556. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4557. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4558. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4559. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4560. for i = 0, 99 do
  4561. swait()
  4562. lookavec = lookavec + 2.5
  4563. speeds = speeds + 0.25
  4564. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4565. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4566. 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)
  4567.  
  4568. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4569. 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)
  4570.  
  4571. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4572. 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)
  4573.  
  4574. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4575. 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)
  4576. end
  4577.  
  4578. for i = 0, 149 do
  4579. swait()
  4580. speeds = speeds + 0.25
  4581. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4582. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4583. 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)
  4584.  
  4585. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4586. 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)
  4587.  
  4588. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4589. 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)
  4590.  
  4591. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4592. 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)
  4593. end
  4594. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4595. for i = 0, 99 do
  4596. swait()
  4597. lookavec = lookavec - 2.5
  4598. speeds = speeds + 0.25
  4599. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4600. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4601. 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)
  4602.  
  4603. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4604. 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)
  4605.  
  4606. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4607. 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)
  4608.  
  4609. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4610. 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)
  4611. end
  4612. local scaled = 0.1*75
  4613. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4614. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4615. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4616. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4617. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4618. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4619. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4620. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4621. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4622. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4623. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4624.  
  4625. for i = 0, 10, 0.1 do
  4626. swait()
  4627. scaled = scaled - 0.001*75
  4628. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4629. 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)
  4630. 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)
  4631. 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)
  4632. 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)
  4633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4634. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4635. 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)
  4636. end
  4637. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4638. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4639. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4640. for x = 0, 4 do
  4641. for i = 0, 9 do
  4642. 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)
  4643. end
  4644. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4645. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4646. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4647. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4648. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4649. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4650. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4651. for i = 0, 5, 0.1 do
  4652. swait()
  4653. 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)
  4654. 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)
  4655. 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)
  4656. 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)
  4657. 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)
  4658. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4659. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4660. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4661. end
  4662. end
  4663. local speedearn = 0
  4664. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4665. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4666. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4667. for i = 0, 30, 0.1 do
  4668. swait()
  4669. scaled = scaled - 0.001*75/10
  4670. speedearn = speedearn + 0.5
  4671. for i = 0, 4 do
  4672. 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)
  4673. end
  4674. 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)
  4675. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4676. 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)
  4677. 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)
  4678. 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)
  4679. 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)
  4680. 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)
  4681. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4682. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4683. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4684. end
  4685. orb.Transparency = 1
  4686. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4687. if v:FindFirstChild('Head') then
  4688. dmg(v)
  4689. end
  4690. end
  4691. CameraEnshaking(7,30)
  4692. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4693. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4694. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4695. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4696. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4697. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4698. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4699. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4700. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4701. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4702. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4703. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4704. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4705. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4706. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4707. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4708. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4709. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4710. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4711. for i = 0, 99 do
  4712. 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)
  4713. 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)
  4714. end
  4715. for i = 0, 24 do
  4716. 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)
  4717. 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)
  4718. 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)
  4719. 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)
  4720. 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)
  4721. end
  4722. game:GetService("Debris"):AddItem(orb, 10)
  4723. hum.WalkSpeed = storehumanoidWS
  4724. attack = false
  4725. end
  4726.  
  4727.  
  4728. function ViolentRing()
  4729. attack = true
  4730. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4731. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4732. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4733. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4734. for i = 0, 2, 0.1 do
  4735. swait()
  4736. local snap = math.random(1,10)
  4737. if snap == 1 then
  4738. 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)
  4739. end
  4740. 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)
  4741. 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)
  4742. 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)
  4743. 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)
  4744. 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)
  4745. 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)
  4746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4747. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4748. 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)
  4749. RootPart.CFrame = FaceMouse()[1]
  4750. end
  4751. local orb = Instance.new("Part", char)
  4752.         orb.BrickColor = MAINRUINCOLOR
  4753.         orb.CanCollide = false
  4754.         orb.FormFactor = 3
  4755.         orb.Name = "Ring"
  4756.         orb.Material = "Neon"
  4757.         orb.Size = Vector3.new(1, 1, 1)
  4758.         orb.Transparency = 0
  4759.         orb.TopSurface = 0
  4760.         orb.BottomSurface = 0
  4761.         local orbm = Instance.new("SpecialMesh", orb)
  4762.         orbm.MeshType = "Sphere"
  4763. orbm.Name = "SizeMesh"
  4764. orbm.Scale = vt(2,2,2)
  4765. orb.CFrame = mouse.Hit
  4766. local bv = Instance.new("BodyVelocity")
  4767. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4768. bv.velocity = orb.CFrame.lookVector*100
  4769. bv.Parent = orb
  4770. local hitted = false
  4771. coroutine.resume(coroutine.create(function()
  4772. game:GetService("Debris"):AddItem(orb, 5)
  4773. orb.Transparency = 1
  4774. orb.Anchored = true
  4775. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4776. elocacenter.Anchored = true
  4777. elocacenter.CFrame = orb.CFrame
  4778. elocacenter.Orientation = vt(0,0,0)
  4779. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4780. eloca1.Anchored = true
  4781. eloca1.CFrame = elocacenter.CFrame
  4782. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4783. eloca2.Anchored = true
  4784. eloca2.CFrame = elocacenter.CFrame
  4785. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4786. eloca3.Anchored = true
  4787. eloca3.CFrame = elocacenter.CFrame
  4788. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4789. eloca4.Anchored = true
  4790. eloca4.CFrame = elocacenter.CFrame
  4791. local lookavec = 0
  4792. local speeds = 0
  4793. CameraEnshaking(1,1)
  4794. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4795. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4796. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4797. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4798. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4799. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4800. for i = 0, 24 do
  4801. swait()
  4802. lookavec = lookavec + 3.5
  4803. speeds = speeds + 1
  4804. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4805. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4806. 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)
  4807.  
  4808. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4809. 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)
  4810.  
  4811. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4812. 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)
  4813.  
  4814. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4815. 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)
  4816. end
  4817.  
  4818. local risen = 0
  4819. for i = 0, 49 do
  4820. swait()
  4821. risen = risen + 0.05
  4822. speeds = speeds + 0.1
  4823. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4824. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4825. 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)
  4826.  
  4827. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4828. 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)
  4829.  
  4830. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4831. 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)
  4832.  
  4833. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4834. 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)
  4835. end
  4836. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4837. if v:FindFirstChild('Head') then
  4838. dmg(v)
  4839. end
  4840. end
  4841. CameraEnshaking(4,10)
  4842. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4843. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4844. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4845. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4846. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4847. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4848. local eff = Instance.new("ParticleEmitter",elocacenter)
  4849. eff.Texture = "rbxassetid://2273224484"
  4850. eff.LightEmission = 1
  4851. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4852. eff.Rate = 1000000
  4853. eff.Lifetime = NumberRange.new(0.5,2)
  4854. 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)})
  4855. 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)})
  4856. eff.Speed = NumberRange.new(20,250)
  4857. eff.Drag = 5
  4858. eff.Rotation = NumberRange.new(-500,500)
  4859. eff.VelocitySpread = 5000000
  4860. eff.RotSpeed = NumberRange.new(-50,50)
  4861. coroutine.resume(coroutine.create(function()
  4862. wait(1)
  4863. eff.Enabled = false
  4864. end))
  4865. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4866. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4867. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4868. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4869. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4870. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4871. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4872. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4873. for i = 0, 24 do
  4874. 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)
  4875. 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)
  4876. 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)
  4877. 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)
  4878. end
  4879. coroutine.resume(coroutine.create(function()
  4880. wait(10)
  4881. elocacenter:Destroy()
  4882. eloca1:Destroy()
  4883. eloca2:Destroy()
  4884. eloca3:Destroy()
  4885. eloca4:Destroy()
  4886. end))
  4887. end))
  4888. attack = false
  4889. end
  4890.  
  4891. function UniversalCollapse()
  4892. attack = true
  4893. local speedearn = 0
  4894. hum.WalkSpeed = 0
  4895.         local sbs = Instance.new("BodyPosition", root)
  4896.         sbs.P = 3000
  4897.         sbs.D = 1000
  4898.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4899.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4900. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4901. for i = 0, 85, 0.1 do
  4902. swait()
  4903. speedearn = speedearn + 0.1
  4904. 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)
  4905. 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)
  4906. 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)
  4907. 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)
  4908. 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)
  4909. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4910. 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)
  4911. 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)
  4912. 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)
  4913. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4914. 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)
  4915. 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)
  4916. end
  4917. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4918. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4919. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4920. for i = 0, 25, 0.1 do
  4921. swait()
  4922. speedearn = speedearn + 0.1
  4923. 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)
  4924. 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)
  4925. 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)
  4926. 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)
  4927. 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)
  4928. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4929. 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)
  4930. 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)
  4931. 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)
  4932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4933. 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)
  4934. 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)
  4935. end
  4936. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4937. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4938. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4939. CameraEnshaking(5,50)
  4940. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4941. for i = 0, 2 do
  4942. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4943. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4944. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4945. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4946. end
  4947. for i = 0, 49 do
  4948. 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)
  4949. 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)
  4950. 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)
  4951. 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)
  4952. end
  4953. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4954. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4955. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4956. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4957. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4958. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4959. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4960. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4961. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4962. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4963. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4964. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4965. for i = 0, 99 do
  4966. 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)
  4967. 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)
  4968. end
  4969. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4970. if v:FindFirstChild('Head') then
  4971. dmg(v)
  4972. end
  4973. end
  4974. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4975. sbs:Destroy()
  4976. hum.WalkSpeed = storehumanoidWS
  4977. attack = false
  4978. end
  4979.  
  4980.  
  4981. function ChaosEND()
  4982. attack = true
  4983. local speedearn = 0
  4984. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4985. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4986. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4987. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4988. for i = 0, 15, 0.1 do
  4989. swait()
  4990. speedearn = speedearn + 0.25
  4991. 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)
  4992. 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)
  4993. 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)
  4994. 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)
  4995. 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)
  4996. 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)
  4997. 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)
  4998. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4999. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5000. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5001. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5002. end
  5003. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  5004. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  5005. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  5006. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  5007. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  5008. CameraEnshaking(5,25)
  5009. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5010. if v:FindFirstChild('Head') then
  5011. dmg(v)
  5012. end
  5013. end
  5014. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5015. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5016. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5017. for i = 0, 3, 0.1 do
  5018. swait()
  5019. 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)
  5020. 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)
  5021. 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)
  5022. 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)
  5023. 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)
  5024. 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)
  5025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5028. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5029. end
  5030. attack = false
  5031. end
  5032.  
  5033. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5034. local orb = Instance.new("Part", char)
  5035.         orb.Anchored = true
  5036.         orb.BrickColor = color
  5037.         orb.CanCollide = false
  5038.         orb.FormFactor = 3
  5039.         orb.Name = "Ring"
  5040.         orb.Material = "Neon"
  5041.         orb.Size = Vector3.new(1, 1, 1)
  5042.         orb.Transparency = 0
  5043.         orb.TopSurface = 0
  5044.         orb.BottomSurface = 0
  5045.         local orbm = Instance.new("SpecialMesh", orb)
  5046.         orbm.MeshType = "Sphere"
  5047. orb.CFrame = positted
  5048. orbm.Name = "SizeMesh"
  5049. orbm.Scale = vt(1,1,1)
  5050. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5051. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5052. --[[for i = 0, 2 do
  5053. 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)
  5054. end]]--
  5055. coroutine.resume(coroutine.create(function()
  5056. wait(timer)
  5057. CameraEnshaking(3,ShakePower)
  5058. orb.Transparency = 1
  5059. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5060. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5061. --[[for i = 0, 4 do
  5062. 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)
  5063. end]]--
  5064. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5065. wait(3)
  5066. orb:Destroy()
  5067. end))
  5068. end
  5069.  
  5070. function orb_spawn(positted,timer)
  5071. local randomcol = math.random(1,2)
  5072. local orb = Instance.new("Part", char)
  5073.         orb.Anchored = true
  5074. if randomcol == 1 then
  5075.         orb.BrickColor = BrickColor.new("White")
  5076. elseif randomcol == 2 then
  5077. orb.BrickColor = BrickColor.new("Really black")
  5078. end
  5079.         orb.CanCollide = false
  5080.         orb.FormFactor = 3
  5081.         orb.Name = "Ring"
  5082.         orb.Material = "Neon"
  5083.         orb.Size = Vector3.new(1, 1, 1)
  5084.         orb.Transparency = 0
  5085.         orb.TopSurface = 0
  5086.         orb.BottomSurface = 0
  5087.         local orbm = Instance.new("SpecialMesh", orb)
  5088.         orbm.MeshType = "Sphere"
  5089. orb.CFrame = positted
  5090. orbm.Name = "SizeMesh"
  5091. orbm.Scale = vt(1,1,1)
  5092. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  5093. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5094. for i = 0, 2 do
  5095. 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)
  5096. end
  5097. coroutine.resume(coroutine.create(function()
  5098. wait(timer)
  5099. CameraEnshaking(3,2)
  5100. orb.Transparency = 1
  5101. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5102. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5103. for i = 0, 4 do
  5104. 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)
  5105. end
  5106. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  5107. wait(3)
  5108. orb:Destroy()
  5109. end))
  5110. end
  5111.  
  5112. function scattercorrupt()
  5113. attack = true
  5114. hum.WalkSpeed = 0
  5115. for i = 0, 2, 0.1 do
  5116. swait()
  5117. 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)
  5118. 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)
  5119. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5120. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5121. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5122. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5123. end
  5124. local rot = 0
  5125. local randomrotations = math.random(1,2)
  5126. local lookv = 2.5
  5127. local power = 7
  5128. local radm = math.random(1,3)
  5129. if radm == 1 then
  5130. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5131. elseif radm == 2 then
  5132. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5133. elseif radm == 3 then
  5134. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5135. end
  5136. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5137. for i = 0, 1, 0.1 do
  5138. swait()
  5139. 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)
  5140. 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)
  5141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5142. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5143. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5144. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5145. end
  5146. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5147. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5148. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5149. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5150. for i = 0, 9 do
  5151. 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)
  5152. end
  5153. local hite = Instance.new("Part", char)
  5154.         hite.Anchored = true
  5155.         hite.CanCollide = false
  5156.         hite.FormFactor = 3
  5157.         hite.Name = "Ring"
  5158.         hite.Material = "Neon"
  5159.         hite.Size = Vector3.new(1, 1, 1)
  5160.         hite.Transparency = 1
  5161.         hite.TopSurface = 0
  5162.         hite.BottomSurface = 0
  5163. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5164. local rem = Instance.new("Part", char)
  5165.         rem.Anchored = true
  5166.         rem.CanCollide = false
  5167.         rem.FormFactor = 3
  5168.         rem.Name = "Ring"
  5169.         rem.Material = "Neon"
  5170.         rem.Size = Vector3.new(1, 1, 1)
  5171.         rem.Transparency = 1
  5172.         rem.TopSurface = 0
  5173.         rem.BottomSurface = 0
  5174. rem.CFrame = hite.CFrame
  5175. local rem2 = rem:Clone()
  5176. rem2.Parent = char
  5177. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5178. local rem3 = rem:Clone()
  5179. rem3.Parent = char
  5180. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5181. local rem4 = rem:Clone()
  5182. rem4.Parent = char
  5183. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5184. hite:Destroy()
  5185. coroutine.resume(coroutine.create(function()
  5186. for i = 0, 24 do
  5187. swait(1)
  5188. if randomrotations == 1 then
  5189. rot = rot + 1
  5190. elseif randomrotations == 2 then
  5191. rot = rot - 1
  5192. end
  5193. power = power + 0.5
  5194. lookv = lookv + 7.5
  5195. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5196. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5197. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5198. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5199. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5200. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5201. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5202. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5203. end
  5204. end))
  5205. wait(2)
  5206. hum.WalkSpeed = storehumanoidWS
  5207. attack = false
  5208. end
  5209. function yinyangi()
  5210. attack = true
  5211. for i = 0, 2, 0.1 do
  5212. swait()
  5213. 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)
  5214. 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)
  5215. 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)
  5216. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5217. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5218. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5219. end
  5220. local bv = Instance.new("BodyVelocity")
  5221. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5222. bv.velocity = root.CFrame.lookVector*175
  5223. bv.Parent = root
  5224. for Rotations = 0, 9 do
  5225. for i = 0, 1, 0.5 do
  5226. swait()
  5227. bv.velocity = root.CFrame.lookVector*175
  5228. 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)
  5229. 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)
  5230. 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)
  5231. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5232. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5233. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5234. end
  5235. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5236. for i = 0, 1, 0.5 do
  5237. swait()
  5238. bv.velocity = root.CFrame.lookVector*175
  5239. 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)
  5240. 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)
  5241. 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)
  5242. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5243. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5244. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5245. end
  5246. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5247. for i = 0, 1, 0.5 do
  5248. swait()
  5249. bv.velocity = root.CFrame.lookVector*175
  5250. 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)
  5251. 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)
  5252. 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)
  5253. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5254. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5255. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5256. end
  5257. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5258. for i = 0, 1, 0.5 do
  5259. swait()
  5260. bv.velocity = root.CFrame.lookVector*175
  5261. 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)
  5262. 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)
  5263. 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)
  5264. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5265. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5266. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5267. end
  5268. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5269. end
  5270. bv:Destroy()
  5271. attack = false
  5272. end
  5273.  
  5274. function createBGCircle(size,parent,color)
  5275. local bgui = Instance.new("BillboardGui",parent)
  5276. bgui.Size = UDim2.new(size, 0, size, 0)
  5277. local imgc = Instance.new("ImageLabel",bgui)
  5278. imgc.BackgroundTransparency = 1
  5279. imgc.ImageTransparency = 0
  5280. imgc.Size = UDim2.new(1,0,1,0)
  5281. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5282. imgc.ImageColor3 = color
  5283. return bgui,imgc
  5284. end
  5285.  
  5286. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5287. local bgui,imgc = createBGCircle(size,guipar,color)
  5288. bgui.AlwaysOnTop = true
  5289. imgc.Image = "rbxassetid://" ..img
  5290. local rrot = math.random(1,2)
  5291. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5292. coroutine.resume(coroutine.create(function()
  5293. for i = 0, 24*delay do
  5294. swait()
  5295. if rotationenabled == true then
  5296. if rrot == 1 then
  5297. imgc.Rotation = imgc.Rotation + rotsp
  5298. elseif rrot == 2 then
  5299. imgc.Rotation = imgc.Rotation - rotsp
  5300. end
  5301. end
  5302. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5303. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5304. end
  5305. bgui:Destroy()
  5306. end))
  5307. end
  5308. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5309. for i, v in pairs(mw2:GetChildren()) do
  5310. if v:IsA("Part") then
  5311. v.BrickColor = one
  5312. v.Material = "Neon"
  5313. end
  5314. end
  5315. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5316. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5317. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5318. tr1.Color = ColorSequence.new(one.Color)
  5319. tr2.Color = ColorSequence.new(one.Color)
  5320. tr3.Color = ColorSequence.new(one.Color)
  5321. for i, v in pairs(mw1:GetChildren()) do
  5322. if v:IsA("Part") then
  5323. if secondaryenabled == false then
  5324. v.Transparency = 1
  5325. elseif secondaryenabled == true then
  5326. v.Transparency = 0
  5327. end
  5328. v.BrickColor = two
  5329. v.Material = "Neon"
  5330. end
  5331. end
  5332. if secondaryenabled == false then
  5333. tl1.Enabled = false
  5334. tl2.Enabled = false
  5335. tl3.Enabled = false
  5336. elseif secondaryenabled == true then
  5337. tl1.Enabled = true
  5338. tl2.Enabled = true
  5339. tl3.Enabled = true
  5340. end
  5341. tl1.Color = ColorSequence.new(two.Color)
  5342. tl2.Color = ColorSequence.new(two.Color)
  5343. tl3.Color = ColorSequence.new(two.Color)
  5344. for i, v in pairs(m:GetChildren()) do
  5345. if v:IsA("Part") then
  5346. v.BrickColor = three
  5347. v.Material = "Ice"
  5348. end
  5349. end
  5350. for i, v in pairs(m2:GetChildren()) do
  5351. if v:IsA("Part") then
  5352. v.BrickColor = four
  5353. v.Material = "Ice"
  5354. end
  5355. end
  5356. for i, v in pairs(m3:GetChildren()) do
  5357. if v:IsA("Part") then
  5358. v.BrickColor = five
  5359. v.Material = "Neon"
  5360. end
  5361. end
  5362. for i, v in pairs(extrawingmod1:GetChildren()) do
  5363. if v:IsA("Part") then
  5364. v.Transparency = exonetran
  5365. v.BrickColor = exone
  5366. v.Material = "Neon"
  5367. end
  5368. end
  5369. for i, v in pairs(extrawingmod2:GetChildren()) do
  5370. if v:IsA("Part") then
  5371. v.Transparency = extwotran
  5372. v.BrickColor = extwo
  5373. v.Material = "Neon"
  5374. end
  5375. end
  5376. end
  5377.  
  5378.  
  5379. function normalmog()
  5380. attack = true
  5381. hum.WalkSpeed = 0
  5382. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5383. for i = 0,6,0.1 do
  5384. swait()
  5385. 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)
  5386. 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)
  5387. 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)
  5388. 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)
  5389. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5390. 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)
  5391. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5392. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5393. end
  5394. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5395. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5396. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5397. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5398. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5399. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5400. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5401. rainbowmode = false
  5402. chaosmode = false
  5403. ModeOfGlitch = 1
  5404. storehumanoidWS = 16
  5405. newTheme("rbxassetid://1255569288",48.6,1,1.25)
  5406. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5407. CameraEnshaking(5,2.5)
  5408. MAINRUINCOLOR = BrickColor.new("Really red")
  5409. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5410. for i = 0, 49 do
  5411. 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)
  5412. end
  5413. for i = 0, 24 do
  5414. 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)
  5415. 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"))
  5416. end
  5417. for i = 0,3,0.1 do
  5418. 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)
  5419. end
  5420. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5421. for i = 0,2,0.1 do
  5422. swait()
  5423. 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)
  5424. 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)
  5425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5426. 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)
  5427. 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)
  5428. 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)
  5429. end
  5430. hum.WalkSpeed = storehumanoidWS
  5431. attack = false
  5432. end
  5433.  
  5434. function attackone()
  5435.     attack = true
  5436. local keptcolor = MAINRUINCOLOR
  5437.     for i = 0,1,0.1 do
  5438.         swait()
  5439.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5440. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5441. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5442. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5443. 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)
  5444. 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)
  5445.     end
  5446. local distlook = 5
  5447. coroutine.resume(coroutine.create(function()
  5448. for i = 0, 4 do
  5449. swait(2)
  5450. CameraEnshaking(2,3)
  5451. local hite = Instance.new("Part", char)
  5452.         hite.Anchored = true
  5453.         hite.CanCollide = false
  5454.         hite.FormFactor = 3
  5455.         hite.Name = "Ring"
  5456.         hite.Material = "Neon"
  5457.         hite.Size = Vector3.new(1, 1, 1)
  5458.         hite.Transparency = 1
  5459.         hite.TopSurface = 0
  5460.         hite.BottomSurface = 0
  5461. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5462. 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)
  5463. 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)
  5464. 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)
  5465. 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)
  5466. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5467. for i = 0, 14 do
  5468. local rsiz = math.random(5,20)
  5469. 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)
  5470. end
  5471. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5472. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5473. game:GetService("Debris"):AddItem(hite, 5)
  5474. distlook = distlook + 10
  5475. end
  5476. end))
  5477.     for i = 0,1,0.1 do
  5478.         swait()
  5479.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5480. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5481. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5482. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5483. 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)
  5484. 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)
  5485.     end
  5486.     attack = false
  5487. end
  5488.  
  5489. function attacktwo()
  5490.     attack = true
  5491. hum.WalkSpeed = 2
  5492. local keptcolor = MAINRUINCOLOR
  5493. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5494. 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)
  5495. 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)
  5496. for i = 0, 14 do
  5497. 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)
  5498. end
  5499. for i = 0,1,0.1 do
  5500. swait()
  5501. 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)
  5502. 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)
  5503. 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)
  5504. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5506. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5507. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5508. end
  5509. for i = 0, 1 do
  5510. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5511. for i = 0,1,0.6 do
  5512. swait()
  5513. 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)
  5514. 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"))
  5515. 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)
  5516. 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)
  5517. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5519. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5520. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5521. end
  5522. for i = 0,1,0.6 do
  5523. swait()
  5524. 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)
  5525. 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"))
  5526. 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)
  5527. 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)
  5528. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5529. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5530. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5531. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5532. end
  5533. for i = 0,1,0.6 do
  5534. swait()
  5535. 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)
  5536. 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"))
  5537. 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)
  5538. 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)
  5539. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5540. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5541. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5542. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5543. end
  5544. for i = 0,1,0.6 do
  5545. swait()
  5546. 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)
  5547. 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"))
  5548. 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)
  5549. 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)
  5550. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5551. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5552. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5553. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5554. end
  5555. local rot = 0
  5556. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5557. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5558. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5559. CreateMesh(dis,"Sphere",10,1,10)
  5560. local at1 = Instance.new("Attachment",dis)
  5561. at1.Position = vt(-5,0,0)
  5562. local at2 = Instance.new("Attachment",dis)
  5563. at2.Position = vt(5,0,0)
  5564. local trl = Instance.new('Trail',wed)
  5565. trl.Attachment0 = at1
  5566. trl.Attachment1 = at2
  5567. trl.Texture = "rbxassetid://1049219073"
  5568. trl.LightEmission = 1
  5569. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5570. trl.Color = ColorSequence.new(dis.Color)
  5571. trl.Lifetime = 0.6
  5572. local a = Instance.new("Part",workspace)
  5573.     a.Name = "Direction"   
  5574.     a.Anchored = true
  5575.     a.BrickColor = bc("Bright red")
  5576. a.Material = "Neon"
  5577. a.Transparency = 1
  5578.     a.CanCollide = false
  5579.     local ray = Ray.new(
  5580.         dis.CFrame.p,                           -- origin
  5581.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5582.     )
  5583.     local ignore = dis
  5584.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5585.     a.BottomSurface = 10
  5586.     a.TopSurface = 10
  5587.     local distance = (dis.CFrame.p - position).magnitude
  5588.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  5589.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5590. dis.CFrame = a.CFrame
  5591. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5592. a:Destroy()
  5593. local bv = Instance.new("BodyVelocity")
  5594. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5595. bv.velocity = dis.CFrame.lookVector*250
  5596. bv.Parent = dis
  5597. game:GetService("Debris"):AddItem(dis, 5)
  5598. local hitted = false
  5599. coroutine.resume(coroutine.create(function()
  5600. dis.Touched:connect(function(hit)
  5601.     if hitted == false and hit.Parent ~= char then
  5602.     hitted = true
  5603.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5604.     MagniDamage(dis, 30, 33,56, 0, "Normal")
  5605.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5606.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5607.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5608.     coroutine.resume(coroutine.create(function()
  5609.         for i = 0, 9 do
  5610. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5611. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5612. local at1 = Instance.new("Attachment",disr)
  5613. at1.Position = vt(-5,0,0)
  5614. local at2 = Instance.new("Attachment",disr)
  5615. at2.Position = vt(5,0,0)
  5616. local trl = Instance.new('Trail',disr)
  5617. trl.Attachment0 = at1
  5618. trl.FaceCamera = true
  5619. trl.Attachment1 = at2
  5620. trl.Texture = "rbxassetid://2342682798"
  5621. trl.LightEmission = 1
  5622. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5623. trl.Color = ColorSequence.new(keptcolor.Color)
  5624. trl.Lifetime = 0.5
  5625. local bv = Instance.new("BodyVelocity")
  5626. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5627. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5628. bv.Parent = disr
  5629. local val = 0
  5630. coroutine.resume(coroutine.create(function()
  5631.     swait(30)
  5632.     for i = 0, 9 do
  5633.         swait()
  5634.         val = val + 0.1
  5635.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5636.     end
  5637. game:GetService("Debris"):AddItem(disr, 3)
  5638. end))
  5639. end
  5640. local eff = Instance.new("ParticleEmitter",dis)
  5641. eff.Texture = "rbxassetid://2273224484"
  5642. eff.LightEmission = 1
  5643. eff.Color = ColorSequence.new(keptcolor.Color)
  5644. eff.Rate = 500000
  5645. eff.Lifetime = NumberRange.new(0.5,2)
  5646. 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)})
  5647. 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)})
  5648. eff.Speed = NumberRange.new(20,250)
  5649. eff.Drag = 5
  5650. eff.Rotation = NumberRange.new(-500,500)
  5651. eff.VelocitySpread = 9000
  5652. eff.RotSpeed = NumberRange.new(-50,50)
  5653. wait(0.25)
  5654. eff.Enabled = false
  5655. end))
  5656.     for i = 0, 9 do
  5657.         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"))
  5658.     end
  5659. for i = 0, 19 do
  5660. 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)
  5661. end
  5662. coroutine.resume(coroutine.create(function()
  5663. for i = 0, 19 do
  5664. swait()
  5665. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5666. end
  5667. hum.CameraOffset = vt(0,0,0)
  5668. end))
  5669. dis.Anchored = true
  5670. dis.Transparency = 1
  5671. wait(8)
  5672. dis:Destroy()
  5673. end
  5674. end)
  5675. end))
  5676. rot = rot - 15
  5677. end
  5678. for i = 0,2,0.1 do
  5679. swait()
  5680. 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)
  5681. 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)
  5682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5684. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5685. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5686. end
  5687. attack = false
  5688. hum.WalkSpeed = storehumanoidWS
  5689. end
  5690.  
  5691. function attackthree()
  5692. attack = true
  5693. local keptcolor = MAINRUINCOLOR
  5694. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5695.     for i = 0,2,0.1 do
  5696.         swait()
  5697.         sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5698. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5699. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5700. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5701. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5702. 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)
  5703. 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)
  5704.     end
  5705. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5706. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5707. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5708. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5709. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5710. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5711. for i = 0, 24 do
  5712.         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"))
  5713. end
  5714. for i = 0,4,0.1 do
  5715.         swait()
  5716.         root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5717.         local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5718. CreateMesh(dis,"Sphere",1,1,1)
  5719. dis.Anchored = true
  5720. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5721. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5722. coroutine.resume(coroutine.create(function()
  5723.     swait(30)
  5724.     dis.Transparency = 1
  5725. coroutine.resume(coroutine.create(function()
  5726. for i = 0, 19 do
  5727. swait()
  5728. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5729. end
  5730. hum.CameraOffset = vt(0,0,0)
  5731. end))
  5732. coroutine.resume(coroutine.create(function()
  5733. local eff = Instance.new("ParticleEmitter",dis)
  5734. eff.Texture = "rbxassetid://2273224484"
  5735. eff.LightEmission = 1
  5736. eff.Color = ColorSequence.new(dis.Color)
  5737. eff.Rate = 500000
  5738. eff.Lifetime = NumberRange.new(0.5,2)
  5739. 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)})
  5740. 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)})
  5741. eff.Speed = NumberRange.new(50,450)
  5742. eff.Drag = 5
  5743. eff.Rotation = NumberRange.new(-500,500)
  5744. eff.VelocitySpread = 9000
  5745. eff.RotSpeed = NumberRange.new(-50,50)
  5746. wait(0.125)
  5747. eff.Enabled = false
  5748. end))
  5749. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5750.     for i = 0, 2 do
  5751.         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)
  5752.     end
  5753.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5754.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5755.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5756.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5757. end))
  5758. game:GetService("Debris"):AddItem(dis, 5)
  5759. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5760. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5761. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5762. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5763. 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)
  5764. 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)
  5765.     end
  5766. attack = false
  5767. end
  5768. ----------------------------------- Abilities
  5769.  
  5770. function ExtinctiveHeartbreak()
  5771. local targetted = nil
  5772. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5773. targetted = mouse.Target.Parent
  5774. end
  5775. if targetted ~= nil then
  5776. attack = true
  5777. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5778. for i = 0, 9 do
  5779. 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)
  5780. end
  5781. for i = 0, 24 do
  5782. 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)
  5783. end
  5784. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5785. local originalpos = root.CFrame
  5786. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5787. for i = 0, 9 do
  5788. 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)
  5789. end
  5790. for i = 0, 24 do
  5791. 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)
  5792. end
  5793. hum.WalkSpeed = 0
  5794. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5795. local radm = math.random(1,3)
  5796. if radm == 1 then
  5797. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5798. elseif radm == 2 then
  5799. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5800. elseif radm == 3 then
  5801. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5802. end
  5803. for i = 0,2,0.1 do
  5804. swait()
  5805. 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)
  5806. 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)
  5807. 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)
  5808. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5809. 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)
  5810. 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)
  5811. end
  5812. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5813. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5814. for i = 0,2,0.1 do
  5815. swait()
  5816. coroutine.resume(coroutine.create(function()
  5817. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5818. for i,v in pairs(targetted:GetChildren()) do
  5819. if v:IsA("Part") or v:IsA("MeshPart") then
  5820. v.Velocity = vt(0,0,0)
  5821. end
  5822. end
  5823. end))
  5824. 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)
  5825. 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)
  5826. 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)
  5827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5828. 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)
  5829. 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)
  5830. end
  5831. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5832. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5833. for i = 0, 1 do
  5834. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5835. end
  5836. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5837. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5838. for i = 0,4,0.1 do
  5839. swait()
  5840. coroutine.resume(coroutine.create(function()
  5841. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5842. 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)))
  5843. local at1 = Instance.new("Attachment",dis)
  5844. at1.Position = vt(-25000,0,0)
  5845. local at2 = Instance.new("Attachment",dis)
  5846. at2.Position = vt(25000,0,0)
  5847. local trl = Instance.new('Trail',dis)
  5848. trl.Attachment0 = at1
  5849. trl.FaceCamera = true
  5850. trl.Attachment1 = at2
  5851. trl.Texture = "rbxassetid://1049219073"
  5852. trl.LightEmission = 1
  5853. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5854. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5855. trl.Lifetime = 5
  5856. local bv = Instance.new("BodyVelocity")
  5857. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5858. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5859. bv.Parent = dis
  5860. game:GetService("Debris"):AddItem(dis, 5)
  5861. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5862. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5863. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5864. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5865. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5866. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5867. 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)
  5868. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5869. for i = 0, 2 do
  5870. 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"))
  5871. end
  5872. 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)
  5873. for i,v in pairs(targetted:GetChildren()) do
  5874. if v:IsA("Part") or v:IsA("MeshPart") then
  5875. v.Velocity = vt(0,0,0)
  5876. end
  5877. end
  5878. end))
  5879. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5880. 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)
  5881. 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)
  5882. 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)
  5883. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5884. 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)
  5885. 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)
  5886. end
  5887. hum.CameraOffset = vt(0,0,0)
  5888. for i = 0, 49 do
  5889. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5890. 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)))
  5891. local at1 = Instance.new("Attachment",dis)
  5892. at1.Position = vt(-50000,0,0)
  5893. local at2 = Instance.new("Attachment",dis)
  5894. at2.Position = vt(50000,0,0)
  5895. local trl = Instance.new('Trail',dis)
  5896. trl.Attachment0 = at1
  5897. trl.FaceCamera = true
  5898. trl.Attachment1 = at2
  5899. trl.Texture = "rbxassetid://1049219073"
  5900. trl.LightEmission = 1
  5901. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5902. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5903. trl.Lifetime = 5
  5904. local bv = Instance.new("BodyVelocity")
  5905. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5906. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5907. bv.Parent = dis
  5908. game:GetService("Debris"):AddItem(dis, 5)
  5909. end
  5910. for i = 0, 49 do
  5911. 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)
  5912. 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"))
  5913. end
  5914. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5915. for i = 0, 1 do
  5916. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5917. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5918. end
  5919. for i = 0, 4 do
  5920. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5921. end
  5922. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5923. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5924. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5925. dmg(targetted)
  5926. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5927. for i = 0, 9 do
  5928. 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)
  5929. end
  5930. for i = 0, 24 do
  5931. 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)
  5932. end
  5933. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5934. root.CFrame = originalpos
  5935. for i = 0, 9 do
  5936. 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)
  5937. end
  5938. for i = 0, 24 do
  5939. 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)
  5940. end
  5941. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5942. attack = false
  5943. hum.WalkSpeed = storehumanoidWS
  5944. end
  5945. end
  5946.  
  5947. function CorruptionEvent()
  5948. attack = true
  5949. hum.WalkSpeed = 0
  5950. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5951. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5952. local keptcolor = MAINRUINCOLOR
  5953. for i = 0,4,0.1 do
  5954. swait()
  5955. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5956. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5957. 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)
  5958. 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)
  5959. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5960. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5961. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5962. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5963. end
  5964. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5965. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5966. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5967. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5968. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5969. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5970. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5971. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5972. hum.CameraOffset = vt(0,0,0)
  5973. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5974. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5975. for i = 0, 24 do
  5976. 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"))
  5977. end
  5978. local rrot = 0
  5979. coroutine.resume(coroutine.create(function()
  5980. for i = 0, 4 do
  5981. rrot = rrot + 45
  5982. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5983. xa.Anchored = true
  5984. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5985. xb.Anchored = true
  5986. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5987. xc.Anchored = true
  5988. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5989. xd.Anchored = true
  5990. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5991. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5992. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5993. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5994. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5995. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5996. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5997. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5998. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5999. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6000. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6001. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6002. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6003. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6004. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6005. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6006. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6007. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6008. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6009. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6010. for i = 0, 9 do
  6011. 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"))
  6012. 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"))
  6013. 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"))
  6014. 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"))
  6015. end
  6016. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6017. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6018. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6019. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6020. 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)
  6021. 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)
  6022. 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)
  6023. 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)
  6024. 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))
  6025. 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))
  6026. 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))
  6027. 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))
  6028. game:GetService("Debris"):AddItem(xa, 5)
  6029. game:GetService("Debris"):AddItem(xb, 5)
  6030. game:GetService("Debris"):AddItem(xc, 5)
  6031. game:GetService("Debris"):AddItem(xd, 5)
  6032. coroutine.resume(coroutine.create(function()
  6033. for i = 0, 19 do
  6034. swait()
  6035. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6036. end
  6037. hum.CameraOffset = vt(0,0,0)
  6038. end))
  6039. swait(9)
  6040. end
  6041. end))
  6042. for i = 0,2,0.1 do
  6043. swait()
  6044. 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)
  6045. 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)
  6046. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6048. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6049. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6050. end
  6051. attack = false
  6052. hum.WalkSpeed = storehumanoidWS
  6053. end
  6054.  
  6055. function EndGROUND()
  6056.     attack = true
  6057. hum.WalkSpeed = 0
  6058. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6059. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6060. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6061. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6062. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6063. local keptcolor = MAINRUINCOLOR
  6064. for i = 0,4,0.1 do
  6065. swait()
  6066. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6067. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6068. 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"))
  6069. 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)
  6070. 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)
  6071. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6072. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6073. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6074. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6075. end
  6076. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6077. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6078. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6079. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6080. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6081. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6082. coroutine.resume(coroutine.create(function()
  6083.     local shval = 10
  6084.     for i = 0, 99 do
  6085.         swait()
  6086.         shval = shval - 0.1
  6087.         hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6088.     end
  6089.     hum.CameraOffset = vt(0,0,0)
  6090. end))
  6091. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6092. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6093. for i = 0, 24 do
  6094. 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"))
  6095. end
  6096. local rrot = 0
  6097. local xam = 1
  6098. coroutine.resume(coroutine.create(function()
  6099. for i = 0, 14 do
  6100. --swait()
  6101. rrot = rrot + 40*xam
  6102. xam = xam + 0.25
  6103. local bonus = xam
  6104. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6105. xa.Anchored = true
  6106. xa.Color = Color3.new(0,0,0)
  6107. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6108. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6109. local xc = 0
  6110. coroutine.resume(coroutine.create(function()
  6111. for i = 0, 99 do
  6112.     swait()
  6113.     xc = xc + 0.01
  6114.     xa.Color = Color3.new(xc,0,0)
  6115. end
  6116. xa.Transparency = 1
  6117. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6118. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6119. for i = 0, 9 do
  6120. 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"))
  6121. end
  6122. 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)
  6123. 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)
  6124. 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))
  6125. game:GetService("Debris"):AddItem(xa, 5)
  6126. coroutine.resume(coroutine.create(function()
  6127. for i = 0, 19 do
  6128. swait()
  6129. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6130. end
  6131. hum.CameraOffset = vt(0,0,0)
  6132. end))
  6133. end))
  6134. end
  6135. end))
  6136. for i = 0,2,0.1 do
  6137. swait()
  6138. 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)
  6139. 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)
  6140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6142. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6143. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6144. end
  6145. attack = false
  6146. hum.WalkSpeed = storehumanoidWS
  6147. end
  6148.  
  6149. function HeavenlyDisk()
  6150. attack = true
  6151. hum.WalkSpeed = 2
  6152. local keptcolor = MAINRUINCOLOR
  6153. local radm = math.random(1,3)
  6154. if radm == 1 then
  6155. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  6156. elseif radm == 2 then
  6157. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6158. elseif radm == 3 then
  6159. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6160. end
  6161. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6162. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  6163. 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)
  6164. 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)
  6165. for i = 0, 14 do
  6166. 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)
  6167. end
  6168. for i = 0,2,0.1 do
  6169. swait()
  6170. 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)
  6171. 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)
  6172. 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)
  6173. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6174. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6175. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6176. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6177. end
  6178. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6179. for i = 0,1,0.6 do
  6180. swait()
  6181. 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)
  6182. 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"))
  6183. 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)
  6184. 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)
  6185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6187. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6188. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6189. end
  6190. for i = 0,1,0.6 do
  6191. swait()
  6192. 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)
  6193. 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"))
  6194. 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)
  6195. 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)
  6196. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6197. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6198. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6199. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6200. end
  6201. for i = 0,1,0.6 do
  6202. swait()
  6203. 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)
  6204. 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"))
  6205. 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)
  6206. 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)
  6207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6209. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6210. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6211. end
  6212. for i = 0,1,0.6 do
  6213. swait()
  6214. 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)
  6215. 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"))
  6216. 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)
  6217. 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)
  6218. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6219. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6221. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6222. end
  6223. local rot = 15
  6224. for i = 0, 2 do
  6225. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6226. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6227. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6228. CreateMesh(dis,"Sphere",10,1,10)
  6229. local at1 = Instance.new("Attachment",dis)
  6230. at1.Position = vt(-5,0,0)
  6231. local at2 = Instance.new("Attachment",dis)
  6232. at2.Position = vt(5,0,0)
  6233. local trl = Instance.new('Trail',wed)
  6234. trl.Attachment0 = at1
  6235. trl.Attachment1 = at2
  6236. trl.Texture = "rbxassetid://1049219073"
  6237. trl.LightEmission = 1
  6238. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6239. trl.Color = ColorSequence.new(dis.Color)
  6240. trl.Lifetime = 0.6
  6241. local a = Instance.new("Part",workspace)
  6242.     a.Name = "Direction"   
  6243.     a.Anchored = true
  6244.     a.BrickColor = bc("Bright red")
  6245. a.Material = "Neon"
  6246. a.Transparency = 1
  6247.     a.CanCollide = false
  6248.     local ray = Ray.new(
  6249.         dis.CFrame.p,                           -- origin
  6250.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6251.     )
  6252.     local ignore = dis
  6253.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6254.     a.BottomSurface = 10
  6255.     a.TopSurface = 10
  6256.     local distance = (dis.CFrame.p - position).magnitude
  6257.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6258.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6259. dis.CFrame = a.CFrame
  6260. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6261. a:Destroy()
  6262. local bv = Instance.new("BodyVelocity")
  6263. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6264. bv.velocity = dis.CFrame.lookVector*250
  6265. bv.Parent = dis
  6266. game:GetService("Debris"):AddItem(dis, 5)
  6267. local hitted = false
  6268. coroutine.resume(coroutine.create(function()
  6269. dis.Touched:connect(function(hit)
  6270.     if hitted == false and hit.Parent ~= char then
  6271.     hitted = true
  6272.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6273.     MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6274.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6275.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6276.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6277.     coroutine.resume(coroutine.create(function()
  6278.         for i = 0, 9 do
  6279. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6280. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6281. local at1 = Instance.new("Attachment",disr)
  6282. at1.Position = vt(-2,0,0)
  6283. local at2 = Instance.new("Attachment",disr)
  6284. at2.Position = vt(2,0,0)
  6285. local trl = Instance.new('Trail',disr)
  6286. trl.Attachment0 = at1
  6287. trl.FaceCamera = true
  6288. trl.Attachment1 = at2
  6289. trl.Texture = "rbxassetid://2342682798"
  6290. trl.LightEmission = 1
  6291. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6292. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6293. trl.Lifetime = 0.5
  6294. local bv = Instance.new("BodyVelocity")
  6295. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6296. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6297. bv.Parent = disr
  6298. local val = 0
  6299. coroutine.resume(coroutine.create(function()
  6300.     swait(30)
  6301.     for i = 0, 9 do
  6302.         swait()
  6303.         val = val + 0.1
  6304.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6305.     end
  6306. game:GetService("Debris"):AddItem(disr, 3)
  6307. end))
  6308. end
  6309. local eff = Instance.new("ParticleEmitter",dis)
  6310. eff.Texture = "rbxassetid://2273224484"
  6311. eff.LightEmission = 1
  6312. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6313. eff.Rate = 500000
  6314. eff.Lifetime = NumberRange.new(0.5,2)
  6315. 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)})
  6316. 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)})
  6317. eff.Speed = NumberRange.new(20,250)
  6318. eff.Drag = 5
  6319. eff.Rotation = NumberRange.new(-500,500)
  6320. eff.VelocitySpread = 9000
  6321. eff.RotSpeed = NumberRange.new(-50,50)
  6322. wait(0.25)
  6323. eff.Enabled = false
  6324. end))
  6325.     for i = 0, 9 do
  6326.         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"))
  6327.     end
  6328. for i = 0, 19 do
  6329. 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)
  6330. end
  6331. coroutine.resume(coroutine.create(function()
  6332. for i = 0, 19 do
  6333. swait()
  6334. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6335. end
  6336. hum.CameraOffset = vt(0,0,0)
  6337. end))
  6338. dis.Anchored = true
  6339. dis.Transparency = 1
  6340. wait(8)
  6341. dis:Destroy()
  6342. end
  6343. end)
  6344. end))
  6345. rot = rot - 15
  6346. end
  6347. for i = 0,2,0.1 do
  6348. swait()
  6349. 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)
  6350. 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)
  6351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6353. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6354. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6355. end
  6356. attack = false
  6357. hum.WalkSpeed = storehumanoidWS
  6358. end
  6359.  
  6360. function FuckMeSidewaysAndCallMeGay()
  6361.     local whom = (mouse.Target and mouse.Target.Parent)
  6362.     --[[local fuckThisBoi = false
  6363.     if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6364.         for _,v in next, ODers do
  6365.             if(v == whom)then
  6366.                 fuckThisBoi = false
  6367.             end
  6368.         end
  6369.     end
  6370.     if(not fuckThisBoi)then
  6371.         attack = false
  6372.         warn'to fuck that boi you need to target them with z'
  6373.     else]]
  6374.     if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6375.         local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6376.         local hum = whom:FindFirstChildOfClass'Humanoid'
  6377.         local ocf = RootPart.CFrame
  6378.         hum.WalkSpeed = 0
  6379.        
  6380.         hed.Anchored = true
  6381.         RootPart.Anchored = true
  6382.         RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6383.         CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6384.         for i = 0, 9 do
  6385.         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)
  6386.         end
  6387.         for i = 0, 24 do
  6388.         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)
  6389.         end
  6390.         sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6391.         attack = true
  6392.         bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6393.         local speed = 1
  6394.         local heck;
  6395.         local stopitlol = false;
  6396.         heck = mouse.KeyUp:connect(function(k)
  6397.             if(k:lower() == 'x')then
  6398.                 stopitlol = true
  6399.                 heck:disconnect()
  6400.             end
  6401.         end)
  6402.         local times = 0
  6403.         repeat swait()
  6404.             speed = speed - .01
  6405.             times = times + 1
  6406.             if(speed < .1)then
  6407.                 speed = .1
  6408.             end
  6409.             for i = 0, speed, .05 do
  6410.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6411.                 swait()
  6412.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6413.                 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)
  6414.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)   
  6415.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6416.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6417.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6418.             end
  6419.             CameraEnshaking(5,5)
  6420.            
  6421.             CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)  
  6422.            
  6423.             for i = 0, speed, .05 do
  6424.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6425.                 swait()
  6426.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6427.                 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)
  6428.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6429.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6430.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6431.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6432.             end
  6433.         until stopitlol and times >= 3
  6434.         for i = 1, 3 do
  6435.             for i = 0, 1.5, .05 do
  6436.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6437.                 swait()
  6438.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6439.                 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)
  6440.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)   
  6441.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6442.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6443.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6444.             end
  6445.             CameraEnshaking(5,25)
  6446.            
  6447.             CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6448.            
  6449.  
  6450.             coroutine.resume(coroutine.create(function()
  6451.             bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6452.             bld.LightEmission = 0.1
  6453.             bld.Texture = "rbxassetid://284205403"
  6454.             bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6455.             bld.Rate = 500
  6456.             bld.Lifetime = NumberRange.new(1)
  6457.             bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6458.             bld.Acceleration = vt(0,-25,0)
  6459.             bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6460.             bld.Speed = NumberRange.new(10,50)
  6461.             bld.EmissionDirection = "Back"
  6462.             bld.VelocitySpread = 25
  6463.             bld.Rotation = NumberRange.new(-500,500)
  6464.             bld.RotSpeed = NumberRange.new(-500,500)
  6465.             bld.Enabled = false
  6466.             bld:Emit(250)
  6467.             end))
  6468.             coroutine.resume(coroutine.create(function()
  6469.             bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6470.             bld.LightEmission = 0.1
  6471.             bld.Texture = "rbxassetid://284205403"
  6472.             bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6473.             bld.Rate = 500
  6474.             bld.Lifetime = NumberRange.new(1)
  6475.             bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6476.             bld.Acceleration = vt(0,-25,0)
  6477.             bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6478.             bld.Speed = NumberRange.new(10,50)
  6479.             bld.EmissionDirection = "Back"
  6480.             bld.VelocitySpread = 25
  6481.             bld.Rotation = NumberRange.new(-500,500)
  6482.             bld.RotSpeed = NumberRange.new(-500,500)
  6483.             bld.Enabled = false
  6484.             bld:Emit(250)
  6485.             end))
  6486.             for i = 0, 1.5, .05 do
  6487.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6488.                 swait()
  6489.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6490.                 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)
  6491.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6492.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6493.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6494.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6495.             end
  6496.         end
  6497.             for i = 0, 4, .05 do
  6498.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6499.                 swait()
  6500.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6501.                 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)
  6502.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)  
  6503.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6504.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6505.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6506.             end
  6507.             CameraEnshaking(5,25)
  6508.             CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6509.             CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6510.            
  6511.             dmg(whom)
  6512.             coroutine.resume(coroutine.create(function()
  6513.             bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6514.             bld.LightEmission = 0.1
  6515.             bld.Texture = "rbxassetid://284205403"
  6516.             bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6517.             bld.Rate = 500
  6518.             bld.Lifetime = NumberRange.new(1)
  6519.             bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6520.             bld.Acceleration = vt(0,-25,0)
  6521.             bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6522.             bld.Speed = NumberRange.new(10,50)
  6523.             bld.EmissionDirection = "Back"
  6524.             bld.VelocitySpread = 25
  6525.             bld.Rotation = NumberRange.new(-500,500)
  6526.             bld.RotSpeed = NumberRange.new(-500,500)
  6527.             bld.Enabled = true
  6528.             end))
  6529.             coroutine.resume(coroutine.create(function()
  6530.             bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6531.             bld.LightEmission = 0.1
  6532.             bld.Texture = "rbxassetid://284205403"
  6533.             bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6534.             bld.Rate = 500
  6535.             bld.Lifetime = NumberRange.new(1)
  6536.             bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6537.             bld.Acceleration = vt(0,-25,0)
  6538.             bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6539.             bld.Speed = NumberRange.new(10,50)
  6540.             bld.EmissionDirection = "Back"
  6541.             bld.VelocitySpread = 25
  6542.             bld.Rotation = NumberRange.new(-500,500)
  6543.             bld.RotSpeed = NumberRange.new(-500,500)
  6544.             bld.Enabled = true
  6545.             end))
  6546.             for i = 0, 3, .05 do
  6547.                 RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6548.                 swait()
  6549.                 RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6550.                 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)
  6551.                 RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)   
  6552.                 Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6553.                 RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6554.                 LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6555.             end
  6556.        
  6557.         RootPart.CFrame = ocf
  6558.         CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6559.         for i = 0, 9 do
  6560.         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)
  6561.         end
  6562.         for i = 0, 24 do
  6563.         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)
  6564.         end
  6565.         sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6566.         RootPart.Anchored = false
  6567.         Humanoid.WalkSpeed = storehumanoidWS
  6568.         bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6569.         attack = false
  6570.     end
  6571. end
  6572.  
  6573. function RapidBurst()
  6574. attack = true
  6575. hum.WalkSpeed = 0
  6576. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6577. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6578. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6579. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6580. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6581. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6582. local keptcolor = MAINRUINCOLOR
  6583. for i = 0,8,0.1 do
  6584. swait()
  6585. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6586. 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())
  6587. 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)
  6588. 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)
  6589. 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)
  6590. 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)
  6591. 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)
  6592. 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)
  6593. 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)
  6594. end
  6595. for i = 0, 99 do
  6596. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6597. 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)))
  6598. local at1 = Instance.new("Attachment",dis)
  6599. at1.Position = vt(-25000,0,0)
  6600. local at2 = Instance.new("Attachment",dis)
  6601. at2.Position = vt(25000,0,0)
  6602. local trl = Instance.new('Trail',dis)
  6603. trl.Attachment0 = at1
  6604. trl.FaceCamera = true
  6605. trl.Attachment1 = at2
  6606. trl.Texture = "rbxassetid://1049219073"
  6607. trl.LightEmission = 1
  6608. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6609. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6610. trl.Lifetime = 5
  6611. local bv = Instance.new("BodyVelocity")
  6612. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6613. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6614. bv.Parent = dis
  6615. game:GetService("Debris"):AddItem(dis, 5)
  6616. end
  6617. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6618. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6619. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6620. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6621. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6622. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6623. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6624. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6625. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6626. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6627. hum.CameraOffset = vt(0,0,0)
  6628. for i = 0, 24 do
  6629. 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())
  6630. end
  6631. local distam = 0
  6632. coroutine.resume(coroutine.create(function()
  6633. for i = 0, 99 do
  6634.     wait()
  6635. distam = distam + 1
  6636. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6637. xa.Anchored = true
  6638. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6639. game:GetService("Debris"):AddItem(xa, 5)
  6640. for i = 0, 4 do
  6641. 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())
  6642. end
  6643. coroutine.resume(coroutine.create(function()
  6644. local eff = Instance.new("ParticleEmitter",xa)
  6645. eff.Texture = "rbxassetid://2273224484"
  6646. eff.LightEmission = 1
  6647. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6648. eff.Rate = 500000
  6649. eff.Lifetime = NumberRange.new(1,3)
  6650. 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)})
  6651. 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)})
  6652. eff.Speed = NumberRange.new(50,500)
  6653. eff.Drag = 5
  6654. eff.Rotation = NumberRange.new(-500,500)
  6655. eff.VelocitySpread = 9000
  6656. eff.RotSpeed = NumberRange.new(-50,50)
  6657. wait(0.25)
  6658. eff.Enabled = false
  6659. end))
  6660. coroutine.resume(coroutine.create(function()
  6661. for i = 0, 19 do
  6662. swait()
  6663. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6664. end
  6665. hum.CameraOffset = vt(0,0,0)
  6666. end))
  6667. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6668. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6669. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6670. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6671. end
  6672. end))
  6673. attack = false
  6674. hum.WalkSpeed = storehumanoidWS
  6675. end
  6676.  
  6677.  
  6678. function FallenOrbs()
  6679. attack = true
  6680. hum.WalkSpeed = 2
  6681. local keptcolor = MAINRUINCOLOR
  6682. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6683. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6684. local radm = math.random(1,3)
  6685. if radm == 1 then
  6686. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6687. elseif radm == 2 then
  6688. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6689. elseif radm == 3 then
  6690. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6691. end
  6692. coroutine.resume(coroutine.create(function()
  6693. for i = 0, 29 do
  6694. swait(2)
  6695. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6696. dis.Anchored = true
  6697. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6698. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6699. CreateMesh(dis,"Sphere",2,2,2)
  6700. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6701. 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"))
  6702. coroutine.resume(coroutine.create(function()
  6703. wait(0.5)
  6704. dis.Anchored = false
  6705. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6706. local at1 = Instance.new("Attachment",dis)
  6707. at1.Position = vt(-1,0,0)
  6708. local at2 = Instance.new("Attachment",dis)
  6709. at2.Position = vt(1,0,0)
  6710. local trl = Instance.new('Trail',dis)
  6711. trl.Attachment0 = at1
  6712. trl.FaceCamera = true
  6713. trl.Attachment1 = at2
  6714. trl.Texture = "rbxassetid://1049219073"
  6715. trl.LightEmission = 1
  6716. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6717. trl.Color = ColorSequence.new(dis.Color)
  6718. trl.Lifetime = 0.6
  6719. local a = Instance.new("Part",workspace)
  6720.     a.Name = "Direction"   
  6721.     a.Anchored = true
  6722.     a.BrickColor = bc("Bright red")
  6723. a.Material = "Neon"
  6724. a.Transparency = 1
  6725.     a.CanCollide = false
  6726.     local ray = Ray.new(
  6727.         dis.CFrame.p,                           -- origin
  6728.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6729.     )
  6730.     local ignore = dis
  6731.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6732.     a.BottomSurface = 10
  6733.     a.TopSurface = 10
  6734.     local distance = (dis.CFrame.p - position).magnitude
  6735.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6736.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6737. dis.CFrame = a.CFrame
  6738. a:Destroy()
  6739. local bv = Instance.new("BodyVelocity")
  6740. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6741. bv.velocity = dis.CFrame.lookVector*500
  6742. bv.Parent = dis
  6743. game:GetService("Debris"):AddItem(dis, 5)
  6744. local hitted = false
  6745. coroutine.resume(coroutine.create(function()
  6746. dis.Touched:connect(function(hit)
  6747.     if hitted == false and hit.Parent ~= char then
  6748.     hitted = true
  6749.     CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6750.     MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6751.     sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6752.     sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6753.     coroutine.resume(coroutine.create(function()
  6754. for i = 0, 4 do
  6755. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6756. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6757. local at1 = Instance.new("Attachment",disr)
  6758. at1.Position = vt(-10,0,0)
  6759. local at2 = Instance.new("Attachment",disr)
  6760. at2.Position = vt(10,0,0)
  6761. local trl = Instance.new('Trail',disr)
  6762. trl.Attachment0 = at1
  6763. trl.FaceCamera = true
  6764. trl.Attachment1 = at2
  6765. trl.Texture = "rbxassetid://2342682798"
  6766. trl.LightEmission = 1
  6767. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6768. trl.Color = ColorSequence.new(disr.Color)
  6769. trl.Lifetime = 0.5
  6770. local bv = Instance.new("BodyVelocity")
  6771. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6772. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6773. bv.Parent = disr
  6774. local val = 0
  6775. coroutine.resume(coroutine.create(function()
  6776.     swait(30)
  6777.     for i = 0, 9 do
  6778.         swait()
  6779.         val = val + 0.1
  6780.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6781.     end
  6782. game:GetService("Debris"):AddItem(disr, 3)
  6783. end))
  6784. end
  6785. local eff = Instance.new("ParticleEmitter",dis)
  6786. eff.Texture = "rbxassetid://1049219073"
  6787. eff.LightEmission = 1
  6788. eff.Color = ColorSequence.new(dis.Color)
  6789. eff.Rate = 500000
  6790. eff.Lifetime = NumberRange.new(0.5,2)
  6791. 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)})
  6792. 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)})
  6793. eff.Speed = NumberRange.new(20,250)
  6794. eff.Drag = 5
  6795. eff.Rotation = NumberRange.new(-500,500)
  6796. eff.VelocitySpread = 9000
  6797. eff.RotSpeed = NumberRange.new(-50,50)
  6798. wait(0.5)
  6799. eff.Enabled = false
  6800. end))
  6801.     for i = 0, 4 do
  6802.         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"))
  6803.     end
  6804. coroutine.resume(coroutine.create(function()
  6805. for i = 0, 19 do
  6806. swait()
  6807. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6808. end
  6809. hum.CameraOffset = vt(0,0,0)
  6810. end))
  6811. dis.Anchored = true
  6812. dis.Transparency = 1
  6813. wait(8)
  6814. dis:Destroy()
  6815. end
  6816. end)
  6817. end))
  6818. end))
  6819. end
  6820. end))
  6821. for i = 0,9,0.1 do
  6822. swait()
  6823. 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)
  6824. 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)
  6825. 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)
  6826. 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)
  6827. 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)
  6828. 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)
  6829. 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)
  6830. end
  6831. attack = false
  6832. hum.WalkSpeed = storehumanoidWS
  6833. end
  6834.  
  6835. function CyberSlash()
  6836. local posit = -2
  6837. attack = true
  6838. hum.WalkSpeed = 5
  6839. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6840. local radm = math.random(1,3)
  6841. if radm == 1 then
  6842. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6843. elseif radm == 2 then
  6844. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6845. elseif radm == 3 then
  6846. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6847. end
  6848. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6849.     for i = 0,2,0.1 do
  6850.         swait()
  6851. 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)
  6852.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6853. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6854. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6855. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6856. 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)
  6857. 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)
  6858.     end
  6859. for i = 0, 2 do
  6860. CameraEnshaking(1,2)
  6861. local hite = Instance.new("Part", char)
  6862.         hite.Anchored = true
  6863.         hite.CanCollide = false
  6864.         hite.FormFactor = 3
  6865.         hite.Name = "Ring"
  6866.         hite.Material = "Neon"
  6867.         hite.Size = Vector3.new(1, 1, 1)
  6868.         hite.Transparency = 1
  6869.         hite.TopSurface = 0
  6870.         hite.BottomSurface = 0
  6871. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6872. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6873. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6874. coroutine.resume(coroutine.create(function()
  6875. for i = 0, 1 do
  6876.     swait()
  6877.         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)
  6878.         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)
  6879.         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)
  6880. end
  6881. end))
  6882. 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)
  6883. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6884. game:GetService("Debris"):AddItem(hite, 5)
  6885. posit = posit + 2
  6886. end
  6887.     for i = 0,1,0.1 do
  6888.         swait()
  6889. 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)
  6890.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6891. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6892. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6894. 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)
  6895. 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)
  6896.     end
  6897.     for i = 0,1,0.1 do
  6898.         swait()
  6899. 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)
  6900.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6901. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6902. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6903. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6904. 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)
  6905. 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)
  6906.     end
  6907.     posit = -6
  6908.     for i = 0, 6 do
  6909. CameraEnshaking(1,3)
  6910. local hite = Instance.new("Part", char)
  6911.         hite.Anchored = true
  6912.         hite.CanCollide = false
  6913.         hite.FormFactor = 3
  6914.         hite.Name = "Ring"
  6915.         hite.Material = "Neon"
  6916.         hite.Size = Vector3.new(1, 1, 1)
  6917.         hite.Transparency = 1
  6918.         hite.TopSurface = 0
  6919.         hite.BottomSurface = 0
  6920. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6921. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6922. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6923. 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)
  6924. coroutine.resume(coroutine.create(function()
  6925. for i = 0, 2 do
  6926.     swait()
  6927.         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)
  6928.         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)
  6929.         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)
  6930. end
  6931. end))
  6932. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6933. game:GetService("Debris"):AddItem(hite, 5)
  6934. posit = posit + 2
  6935.     end
  6936.     for i = 0,1,0.1 do
  6937.         swait()
  6938. 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)
  6939.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6941. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6942. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6943. 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)
  6944. 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)
  6945.     end
  6946.     hum.WalkSpeed = storehumanoidWS
  6947. attack = false
  6948. end
  6949.  
  6950. function EquinoxOrbs()
  6951. hum.WalkSpeed = 0
  6952. attack = true
  6953. local radm = math.random(1,3)
  6954. if radm == 1 then
  6955. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6956. elseif radm == 2 then
  6957. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6958. elseif radm == 3 then
  6959. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6960. end
  6961. for i = 0,1,0.1 do
  6962. swait()
  6963.     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)
  6964. 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)
  6965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6966. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6968. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6969. end
  6970. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6971. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6972. for i = 0, 24 do
  6973.         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"))
  6974. end
  6975. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6976. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6977. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6978. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6979. for i = 0,4,0.1 do
  6980. swait()
  6981. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6982. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6983. CreateMesh(dis,"Sphere",1,1,1)
  6984. dis.Anchored = true
  6985. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6986. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6987. CreateMesh(dis2,"Sphere",1,1,1)
  6988. dis2.Anchored = true
  6989. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6990. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6991. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6992. coroutine.resume(coroutine.create(function()
  6993.     swait(60)
  6994.     dis.Transparency = 1
  6995.     dis2.Transparency = 1
  6996. coroutine.resume(coroutine.create(function()
  6997. for i = 0, 19 do
  6998. swait()
  6999. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  7000. end
  7001. hum.CameraOffset = vt(0,0,0)
  7002. end))
  7003. coroutine.resume(coroutine.create(function()
  7004. local eff = Instance.new("ParticleEmitter",dis)
  7005. eff.Texture = "rbxassetid://2273224484"
  7006. eff.LightEmission = 1
  7007. eff.Color = ColorSequence.new(dis.Color)
  7008. eff.Rate = 500000
  7009. eff.Lifetime = NumberRange.new(0.5,2)
  7010. 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)})
  7011. 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)})
  7012. eff.Speed = NumberRange.new(50,450)
  7013. eff.Drag = 5
  7014. eff.Rotation = NumberRange.new(-500,500)
  7015. eff.VelocitySpread = 9000
  7016. eff.RotSpeed = NumberRange.new(-50,50)
  7017. local eff2 = eff:Clone()
  7018. eff2.Parent = dis2
  7019. eff2.LightEmission = 0
  7020. eff2.Color = ColorSequence.new(dis2.Color)
  7021. wait(0.25)
  7022. eff.Enabled = false
  7023. eff2.Enabled = false
  7024. end))
  7025. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  7026. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  7027.     for i = 0, 2 do
  7028.         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)
  7029.         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)
  7030.     end
  7031.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  7032.     CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  7033.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  7034.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  7035.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  7036.     CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  7037.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  7038.     sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  7039. end))
  7040. game:GetService("Debris"):AddItem(dis, 5)
  7041. game:GetService("Debris"):AddItem(dis2, 5)
  7042. 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)
  7043. 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)
  7044. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  7045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  7046. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  7047. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  7048. end
  7049. attack = false
  7050. hum.WalkSpeed = storehumanoidWS
  7051. end
  7052. function FallenDEMISE()
  7053. attack = true
  7054. hum.WalkSpeed = 0
  7055. local keptcolor = MAINRUINCOLOR
  7056. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  7057. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  7058. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  7059. for i = 0, 15, 0.1 do
  7060. swait()
  7061. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7062. 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)))
  7063. local at1 = Instance.new("Attachment",dis)
  7064. at1.Position = vt(-25000,0,0)
  7065. local at2 = Instance.new("Attachment",dis)
  7066. at2.Position = vt(25000,0,0)
  7067. local trl = Instance.new('Trail',dis)
  7068. trl.Attachment0 = at1
  7069. trl.FaceCamera = true
  7070. trl.Attachment1 = at2
  7071. trl.Texture = "rbxassetid://1049219073"
  7072. trl.LightEmission = 1
  7073. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7074. trl.Color = ColorSequence.new(dis.Color)
  7075. trl.Lifetime = 5
  7076. local bv = Instance.new("BodyVelocity")
  7077. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7078. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  7079. bv.Parent = dis
  7080. game:GetService("Debris"):AddItem(dis, 1)
  7081. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  7082. 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"))
  7083. 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"))
  7084. 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)
  7085. 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)
  7086. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7088. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7089. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7090. end
  7091. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  7092. for i = 0, 30, 0.1 do
  7093. swait()
  7094. coroutine.resume(coroutine.create(function()
  7095. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  7096. if v:FindFirstChild('Head') then
  7097. dmg(v)
  7098. end
  7099. end
  7100. end))
  7101. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7102. 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)))
  7103. local at1 = Instance.new("Attachment",dis)
  7104. at1.Position = vt(-50000,0,0)
  7105. local at2 = Instance.new("Attachment",dis)
  7106. at2.Position = vt(50000,0,0)
  7107. local trl = Instance.new('Trail',dis)
  7108. trl.Attachment0 = at1
  7109. trl.FaceCamera = true
  7110. trl.Attachment1 = at2
  7111. trl.Texture = "rbxassetid://1049219073"
  7112. trl.LightEmission = 1
  7113. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7114. trl.Color = ColorSequence.new(dis.Color)
  7115. trl.Lifetime = 10
  7116. local bv = Instance.new("BodyVelocity")
  7117. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7118. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  7119. bv.Parent = dis
  7120. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7121. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7122. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7123. 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"))
  7124. 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"))
  7125. 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"))
  7126. 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"))
  7127. for i = 0, 2 do
  7128. 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)
  7129. end
  7130. 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)
  7131. 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)
  7132. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7134. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7135. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7136. end
  7137. attack = false
  7138. hum.WalkSpeed = storehumanoidWS
  7139. end
  7140.  
  7141. function SpeedDrop()
  7142. attack = true
  7143. hum.WalkSpeed = 0
  7144. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  7145. local poste = 3
  7146. local rotation = 0
  7147. local rate = 0
  7148. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  7149. for i = 0, 124 do
  7150. swait()
  7151. rotation = rotation + rate
  7152. poste = poste + 0.1
  7153. rate = rate + 0.1
  7154. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  7155. 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)
  7156. 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)
  7157. 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)
  7158. 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)
  7159. 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)
  7160. 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)
  7161. 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)
  7162. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  7163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  7164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  7165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  7166. end
  7167. CameraEnshaking(3,7)
  7168. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  7169. local loc = Instance.new("Part", char)
  7170. loc.BrickColor = MAINRUINCOLOR
  7171. loc.CanCollide = false
  7172. loc.FormFactor = 3
  7173. loc.Name = "Ring"
  7174. loc.Material = "Neon"
  7175. loc.Size = Vector3.new(1, 1, 1)
  7176. loc.Transparency = 1
  7177. loc.TopSurface = 0
  7178. loc.BottomSurface = 0
  7179. loc.Anchored = true
  7180. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  7181. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  7182. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  7183. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  7184. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  7185. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7186. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7187. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  7188. coroutine.resume(coroutine.create(function()
  7189. local eff = Instance.new("ParticleEmitter",loc)
  7190. eff.Texture = "rbxassetid://363275192"
  7191. eff.LightEmission = 0.95
  7192. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7193. eff.Rate = 10000
  7194. eff.Lifetime = NumberRange.new(1)
  7195. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  7196. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7197. eff.Speed = NumberRange.new(100,500)
  7198. eff.Drag = 5
  7199. eff.Rotation = NumberRange.new(-500,500)
  7200. eff.VelocitySpread = 9000
  7201. eff.RotSpeed = NumberRange.new(-50,50)
  7202. wait(0.5)
  7203. eff.Enabled = false
  7204. end))
  7205. for i = 0, 49 do
  7206. 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)
  7207. end
  7208. for i = 0, 9 do
  7209. 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)
  7210. end
  7211. game:GetService("Debris"):AddItem(loc, 5)
  7212. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  7213. hum.WalkSpeed = storehumanoidWS
  7214. attack = false
  7215. end
  7216.  
  7217. function cutesigh()
  7218. attack = true
  7219. hum.WalkSpeed = 0
  7220. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  7221. local blush = Instance.new("Decal",hed)
  7222. blush.Texture = "rbxassetid://898404027"
  7223. blush.Face = "Front"
  7224. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  7225. for i = 0, 9, 0.1 do
  7226. swait()
  7227. 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)
  7228. 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)
  7229. 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)
  7230. 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)
  7231. 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)
  7232. 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)
  7233. end
  7234. coroutine.resume(coroutine.create(function()
  7235. for i = 0, 49 do
  7236. swait()
  7237. blush.Transparency = blush.Transparency + 0.02
  7238. end
  7239. blush:Destroy()
  7240. end))
  7241. hum.WalkSpeed = storehumanoidWS
  7242. attack = false
  7243. end
  7244.  
  7245. function smiter()
  7246. local targetted = nil
  7247. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7248. targetted = mouse.Target.Parent
  7249. end
  7250. if targetted ~= nil then
  7251. RootPart.CFrame = FaceMouse()[1]
  7252. attack = true
  7253. local radm = math.random(1,3)
  7254. if radm == 1 then
  7255. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7256. elseif radm == 2 then
  7257. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7258. elseif radm == 3 then
  7259. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7260. end
  7261. hum.WalkSpeed = 0
  7262. coroutine.resume(coroutine.create(function()
  7263. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7264. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7265. local vel = Instance.new("BodyPosition", targetted.Head)
  7266. vel.P = 12500
  7267. vel.D = 1000
  7268. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7269. vel.position = targetted.Head.CFrame.p
  7270. end))
  7271. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7272. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7273. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7274.     for i = 0,4,0.1 do
  7275.         swait()
  7276. 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)
  7277.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7278. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7279. 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)
  7280. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7281. 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)
  7282. 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)
  7283.     end
  7284. coroutine.resume(coroutine.create(function()
  7285. CameraEnshaking(6,5)
  7286. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7287. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7288. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7289. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7290. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7291. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7292. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7293. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7294. coroutine.resume(coroutine.create(function()
  7295. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7296. eff.Texture = "rbxassetid://2273224484"
  7297. eff.LightEmission = 1
  7298. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7299. eff.Rate = 500000
  7300. eff.Lifetime = NumberRange.new(0.5,2)
  7301. 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)})
  7302. 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)})
  7303. eff.Speed = NumberRange.new(20,250)
  7304. eff.Drag = 5
  7305. eff.Rotation = NumberRange.new(-500,500)
  7306. eff.VelocitySpread = 9000
  7307. eff.RotSpeed = NumberRange.new(-50,50)
  7308. wait(0.25)
  7309. eff.Enabled = false
  7310. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7311. eff.Texture = "rbxassetid://363275192"
  7312. eff.LightEmission = 0.95
  7313. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7314. eff.Rate = 10000
  7315. eff.Lifetime = NumberRange.new(1.5)
  7316. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7317. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7318. eff.Speed = NumberRange.new(25,150)
  7319. eff.Drag = 5
  7320. eff.Rotation = NumberRange.new(-500,500)
  7321. eff.VelocitySpread = 9000
  7322. eff.RotSpeed = NumberRange.new(-50,50)
  7323. local eff2 = eff:Clone()
  7324. eff2.Parent = targetted.Head
  7325. eff2.Texture = "rbxassetid://284205403"
  7326. eff2.Rate = 10000
  7327. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7328. eff2.Drag = 5
  7329. eff2.Rotation = NumberRange.new(-500,500)
  7330. eff2.VelocitySpread = 9000
  7331. wait(0.5)
  7332. eff2.Enabled = false
  7333. eff.Enabled = false
  7334. end))
  7335. for i = 0, 9 do
  7336. 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)
  7337. end
  7338. for i = 0, 49 do
  7339. local rsiz = math.random(10,50)
  7340. 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)
  7341. end
  7342. game:GetService("Debris"):AddItem(vel,1)
  7343. dmg(targetted)
  7344. end))
  7345.     for i = 0,1,0.1 do
  7346.         swait()
  7347.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7348. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7349. 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)
  7350. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7351. 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)
  7352. 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)
  7353.     end
  7354. attack = false
  7355. hum.WalkSpeed = storehumanoidWS
  7356. end
  7357. end
  7358.  
  7359. function shytaunty()
  7360. attack = true
  7361. hum.WalkSpeed = 0
  7362. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7363. local blush = Instance.new("Decal",hed)
  7364. blush.Texture = "rbxassetid://898404027"
  7365. blush.Face = "Front"
  7366. for i = 0, 13, 0.1 do
  7367. swait()
  7368. 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)
  7369. 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)
  7370. 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)
  7371. 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)
  7372. 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)
  7373. 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)
  7374. end
  7375. coroutine.resume(coroutine.create(function()
  7376. for i = 0, 49 do
  7377. swait()
  7378. blush.Transparency = blush.Transparency + 0.02
  7379. end
  7380. blush:Destroy()
  7381. end))
  7382. hum.WalkSpeed = storehumanoidWS
  7383. attack = false
  7384. end
  7385.  
  7386. function PureBomb()
  7387. attack = true
  7388. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7389. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7390. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7391. local orb = Instance.new("Part", char)
  7392.         orb.Anchored = true
  7393.         orb.BrickColor = BrickColor.new("Toothpaste")
  7394.         orb.CanCollide = false
  7395.         orb.FormFactor = 3
  7396.         orb.Name = "Ring"
  7397.         orb.Material = "Neon"
  7398.         orb.Size = Vector3.new(1, 1, 1)
  7399.         orb.Transparency = 0
  7400.         orb.TopSurface = 0
  7401.         orb.BottomSurface = 0
  7402.         local orbm = Instance.new("SpecialMesh", orb)
  7403.         orbm.MeshType = "Sphere"
  7404. orbm.Name = "SizeMesh"
  7405. orbm.Scale = vt(0,0,0)
  7406. local scaled = 0.1
  7407. local posid = 0
  7408. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7409. for i = 0, 5, 0.1 do
  7410. swait()
  7411. scaled = scaled - 0.001
  7412. posid = posid - scaled
  7413. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7414. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7415. 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)
  7416. 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)
  7417. 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)
  7418. 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)
  7419. 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)
  7420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7421. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7422. 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)
  7423. end
  7424. for i = 0, 2, 0.1 do
  7425. swait()
  7426. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7427. 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)
  7428. 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)
  7429. 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)
  7430. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7431. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7432. 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)
  7433. end
  7434. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7435. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7436. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7437. coroutine.resume(coroutine.create(function()
  7438. orb.Anchored = false
  7439. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7440.     local a = Instance.new("Part",workspace)
  7441.     a.Name = "Direction"   
  7442.     a.Anchored = true
  7443.     a.BrickColor = bc("Bright red")
  7444. a.Material = "Neon"
  7445. a.Transparency = 1
  7446.     a.CanCollide = false
  7447.     local ray = Ray.new(
  7448.         orb.CFrame.p,                           -- origin
  7449.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7450.     )
  7451.     local ignore = orb
  7452.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7453.     a.BottomSurface = 10
  7454.     a.TopSurface = 10
  7455.     local distance = (orb.CFrame.p - position).magnitude
  7456.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  7457.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7458. orb.CFrame = a.CFrame
  7459. a:Destroy()
  7460. local bv = Instance.new("BodyVelocity")
  7461. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7462. bv.velocity = orb.CFrame.lookVector*125
  7463. bv.Parent = orb
  7464. local hitted = false
  7465. game:GetService("Debris"):AddItem(orb, 15)
  7466. wait()
  7467. local hit =orb.Touched:connect(function(hit)
  7468.     if hitted == false then
  7469.     hitted = true
  7470. CameraEnshaking(10,2.5)
  7471.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  7472. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7473. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7474. for i = 0, 49 do
  7475. 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)
  7476. end
  7477. local eff = Instance.new("ParticleEmitter",orb)
  7478. eff.Texture = "rbxassetid://2273224484"
  7479. eff.LightEmission = 1
  7480. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7481. eff.Rate = 500000
  7482. eff.Lifetime = NumberRange.new(0.5,2)
  7483. 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)})
  7484. 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)})
  7485. eff.Speed = NumberRange.new(20,250)
  7486. eff.Drag = 5
  7487. eff.Rotation = NumberRange.new(-500,500)
  7488. eff.VelocitySpread = 9000
  7489. eff.RotSpeed = NumberRange.new(-50,50)
  7490. coroutine.resume(coroutine.create(function()
  7491. wait(0.25)
  7492. eff.Enabled = false
  7493. end))
  7494. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7495. for i = 0, 9 do
  7496. 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)
  7497. 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)
  7498. end
  7499. orb.Anchored = true
  7500. orb.Transparency = 1
  7501. local eff = Instance.new("ParticleEmitter",orb)
  7502. eff.Texture = "rbxassetid://2273224484"
  7503. eff.LightEmission = 1
  7504. eff.Color = ColorSequence.new(Color3.new(M))
  7505. eff.Rate = 500000
  7506. eff.Lifetime = NumberRange.new(0.5,2)
  7507. 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)})
  7508. 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)})
  7509. eff.Speed = NumberRange.new(20,250)
  7510. eff.Drag = 5
  7511. eff.Rotation = NumberRange.new(-500,500)
  7512. eff.VelocitySpread = 9000
  7513. eff.RotSpeed = NumberRange.new(-50,50)
  7514. coroutine.resume(coroutine.create(function()
  7515. wait(1)
  7516. eff.Enabled = false
  7517. end))
  7518. wait(8)
  7519. orb:Destroy()
  7520. end
  7521. end)
  7522. end))
  7523. for i = 0, 1, 0.1 do
  7524. swait()
  7525. 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)
  7526. 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)
  7527. 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)
  7528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7530. 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)
  7531. end
  7532. attack = false
  7533. end
  7534.  
  7535.  
  7536. function BeamOfDeath()
  7537. coroutine.resume(coroutine.create(function()
  7538. attack = true
  7539. hum.WalkSpeed = 0
  7540. for i = 0, 11, 0.1 do
  7541. swait()
  7542. 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)
  7543. 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)
  7544. 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)
  7545. 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)
  7546. 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)
  7547. 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)
  7548. end
  7549. for i = 0, 1, 0.1 do
  7550. swait()
  7551. 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)
  7552. 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)
  7553. 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)
  7554. 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)
  7555. 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)
  7556. 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)
  7557. end
  7558. hum.WalkSpeed = storehumanoidWS
  7559. attack = false
  7560. end))
  7561. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7562. local radm = math.random(1,3)
  7563. if radm == 1 then
  7564. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7565. elseif radm == 2 then
  7566. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7567. elseif radm == 3 then
  7568. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7569. end
  7570. local keptcolor = MAINRUINCOLOR
  7571. local orb = Instance.new("Part", char)
  7572.         orb.BrickColor = keptcolor
  7573.         orb.CanCollide = false
  7574.         orb.FormFactor = 3
  7575.         orb.Name = "Ring"
  7576.         orb.Material = "Neon"
  7577.         orb.Size = Vector3.new(1, 1, 1)
  7578.         orb.Transparency = 1
  7579.         orb.TopSurface = 0
  7580.         orb.BottomSurface = 0
  7581.         local orbm = Instance.new("SpecialMesh", orb)
  7582.         orbm.MeshType = "Sphere"
  7583. orbm.Name = "SizeMesh"
  7584. orbm.Scale = vt(22.5,10000,22.5)
  7585. orb.CFrame = mouse.Hit
  7586. orb.Anchored = true
  7587. orb.Orientation = vt(0,0,0)
  7588. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7589. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7590. coroutine.resume(coroutine.create(function()
  7591. coroutine.resume(coroutine.create(function()
  7592. for i = 0, 175 do
  7593. swait()
  7594. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7595. orb.Transparency = orb.Transparency - 0.005
  7596. end
  7597. end))
  7598. wait(2)
  7599. coroutine.resume(coroutine.create(function()
  7600. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7601. if hfr ~= nil then
  7602.     for i = 0, 24.5 do
  7603. local deb = Instance.new("Part", char)
  7604. deb.Anchored = true
  7605. deb.CanCollide = false
  7606. deb.FormFactor = 3
  7607. deb.Name = "Ring"
  7608. deb.Material = hitfloor.Material
  7609. deb.Color = hitfloor.Color
  7610. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7611. deb.Transparency = 0
  7612. deb.TopSurface = 0
  7613. deb.BottomSurface = 0
  7614. 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)))
  7615. local deb2 = Instance.new("Part", char)
  7616. deb2.CanCollide = false
  7617. deb2.FormFactor = 3
  7618. deb2.Name = "Ring"
  7619. deb2.Material = hitfloor.Material
  7620. deb2.Color = hitfloor.Color
  7621. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7622. deb2.Transparency = 0
  7623. deb2.TopSurface = 0
  7624. deb2.BottomSurface = 0
  7625. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7626. 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)))
  7627. local eff = Instance.new("ParticleEmitter",deb)
  7628. eff.Texture = "rbxassetid://363275192"
  7629. eff.LightEmission = 0.95
  7630. eff.Color = ColorSequence.new(keptcolor.Color)
  7631. eff.Rate = 100
  7632. eff.Lifetime = NumberRange.new(1)
  7633. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7634. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7635. eff.Speed = NumberRange.new(0,5)
  7636. eff.Rotation = NumberRange.new(-500,500)
  7637. eff.VelocitySpread = 9000
  7638. eff.RotSpeed = NumberRange.new(-10,10)
  7639. local at1 = Instance.new('Attachment',deb2)
  7640. at1.Position = vt(0,15,0)
  7641. local at2 = Instance.new('Attachment',deb2)
  7642. at2.Position = vt(0,-15,0)
  7643. local tl = Instance.new('Trail',deb2)
  7644. tl.Attachment0 = at1
  7645. tl.Attachment1 = at2
  7646. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7647. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7648. tl.Lifetime = 1
  7649. game:GetService("Debris"):AddItem(deb,30)
  7650. game:GetService("Debris"):AddItem(deb2,30)
  7651. coroutine.resume(coroutine.create(function()
  7652.     wait(15)
  7653. eff.Enabled = false
  7654.     for i = 0, 49 do
  7655.         swait()
  7656.         deb.Transparency = deb.Transparency + 0.02
  7657.     end
  7658. wait(1)
  7659.     deb:Destroy()
  7660. end))
  7661. end
  7662. end
  7663. end))
  7664. for i = 0, 199 do
  7665. swait(1.5)
  7666. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7667. if v:FindFirstChild('Head') then
  7668. dmg(v)
  7669. end
  7670. end
  7671. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7672. 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)
  7673. 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)
  7674. 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)
  7675. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7676. end
  7677. orb:Destroy()
  7678. end))
  7679. end
  7680.  
  7681. function Beams()
  7682. attack = true
  7683. hum.WalkSpeed = 0
  7684. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7685. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7686. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7687. local keptcolor = MAINRUINCOLOR
  7688. coroutine.resume(coroutine.create(function()
  7689. for i = 0, 96 do
  7690. swait(5)
  7691. local orb = Instance.new("Part", char)
  7692. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7693.         orb.BrickColor = keptcolor
  7694.         orb.CanCollide = false
  7695.         orb.FormFactor = 3
  7696.         orb.Name = "Ring"
  7697.         orb.Material = "Neon"
  7698.         orb.Size = Vector3.new(1, 1, 1)
  7699.         orb.Transparency = 0
  7700.         orb.TopSurface = 0
  7701.         orb.BottomSurface = 0
  7702. orb.Anchored = true
  7703.         local orbm = Instance.new("SpecialMesh", orb)
  7704.         orbm.MeshType = "Sphere"
  7705. orbm.Name = "SizeMesh"
  7706. orbm.Scale = vt(1.25,1.25,1.25)
  7707. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7708. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7709. coroutine.resume(coroutine.create(function()
  7710. wait(0.5)
  7711. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7712. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7713. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7714. orb.Transparency = 1
  7715.     local a = Instance.new("Part",char)
  7716.     a.Name = "Direction"   
  7717.     a.Anchored = true
  7718.     a.BrickColor = keptcolor
  7719. a.Material = "Neon"
  7720. a.Transparency = 0.25
  7721. a.Shape = "Cylinder"
  7722.     local ht = Instance.new("Part",char)
  7723.     ht.Name = "DirectionHit"   
  7724.     ht.Anchored = true
  7725.     ht.BrickColor = keptcolor
  7726. ht.CanCollide = false
  7727. ht.Transparency = 1
  7728. ht.Size = vt(0.1,0.1,0.1)
  7729. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7730.     a.CanCollide = false
  7731.     local ray = Ray.new(
  7732.         orb.CFrame.p,                           -- origin
  7733.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7734.     )
  7735.     local ignore = char
  7736.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7737.     a.BottomSurface = 10
  7738.     a.TopSurface = 10
  7739.     local distance = (orb.CFrame.p - position).magnitude
  7740.     a.Size = Vector3.new(distance,1,1)
  7741.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7742.     ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7743. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7744. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7745. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7746. coroutine.resume(coroutine.create(function()
  7747. local eff = Instance.new("ParticleEmitter",ht)
  7748. eff.Texture = "rbxassetid://284205403"
  7749. eff.LightEmission = 0.95
  7750. eff.Color = ColorSequence.new(keptcolor.Color)
  7751. eff.Rate = 500
  7752. eff.Lifetime = NumberRange.new(0.5)
  7753. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7754. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7755. eff.Speed = NumberRange.new(10,50)
  7756. eff.Drag = 5
  7757. eff.Rotation = NumberRange.new(-500,500)
  7758. eff.VelocitySpread = 9000
  7759. eff.RotSpeed = NumberRange.new(-500,500)
  7760. wait(0.25)
  7761. eff.Enabled = false
  7762. end))
  7763. for i = 0, 4 do
  7764. 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)
  7765. 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)
  7766. local rsiz = math.random(10,30)
  7767. 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)
  7768. end
  7769. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7770. local msh = Instance.new("SpecialMesh",a)
  7771. msh.MeshType = "Cylinder"
  7772. msh.Scale = vt(1,1,1)
  7773. for i = 0, 49 do
  7774. swait()
  7775. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7776. a.Transparency = a.Transparency + 0.02
  7777. end
  7778. orb:Destroy()
  7779. a:Destroy()
  7780. ht:Destroy()
  7781. end))
  7782. game:GetService("Debris"):AddItem(orb, 10)
  7783. end
  7784. end))
  7785.     for i = 0,6,0.1 do
  7786.         swait()
  7787. 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)
  7788.             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)
  7789. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7791. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7792. 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)
  7793. 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)
  7794.     end
  7795. hum.WalkSpeed = storehumanoidWS
  7796. attack = false
  7797. end
  7798.  
  7799. function CalamityTrans()
  7800. attack = true
  7801. rainbowmode = false
  7802. chaosmode = false
  7803.                ModeOfGlitch = 8889
  7804. hum.WalkSpeed = 0
  7805. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7806. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7807. elocacenter.Anchored = true
  7808. elocacenter.CFrame = root.CFrame
  7809. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7810. eloca1.Anchored = true
  7811. eloca1.CFrame = elocacenter.CFrame
  7812. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7813. eloca2.Anchored = true
  7814. eloca2.CFrame = elocacenter.CFrame
  7815. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7816. eloca3.Anchored = true
  7817. eloca3.CFrame = elocacenter.CFrame
  7818. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7819. eloca4.Anchored = true
  7820. eloca4.CFrame = elocacenter.CFrame
  7821. local lookavec = 0
  7822. local speeds = 0
  7823. CameraEnshaking(3,2.5)
  7824. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7825. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7826. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7827. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7828. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7829. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7830. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7831. for i = 0, 5, 0.1 do
  7832. swait()
  7833. ---
  7834. lookavec = lookavec + 1
  7835. speeds = speeds + 10
  7836. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7837. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7838. 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)
  7839. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7840. 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)
  7841. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7842. 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)
  7843. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7844. 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)
  7845. ---
  7846. 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)
  7847. 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)
  7848. 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)
  7849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7850. 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)
  7851. 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)
  7852. end
  7853. for i = 0, 5, 0.1 do
  7854. swait()
  7855. ---
  7856. speeds = speeds + 10
  7857. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7858. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7859. 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)
  7860. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7861. 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)
  7862. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7863. 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)
  7864. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7865. 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)
  7866. ---
  7867. 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)
  7868. 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)
  7869. 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)
  7870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7871. 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)
  7872. 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)
  7873. end
  7874. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7875. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7876. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7877. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7878. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7879. CameraEnshaking(1,3)
  7880. for i = 0, 24 do
  7881. 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)
  7882. 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)
  7883. 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)
  7884. 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)
  7885. end
  7886. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7887. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7888. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7889. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7890. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7891. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7892. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7893. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7894. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7895. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7896. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7897. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7898. for i = 0, 5, 0.1 do
  7899. swait()
  7900. ---
  7901. lookavec = lookavec - 1
  7902. speeds = speeds + 10
  7903. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7904. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7905. 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)
  7906. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7907. 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)
  7908. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7909. 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)
  7910. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7911. 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)
  7912. ---
  7913. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  7914. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  7915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7917. 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)
  7918. 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)
  7919. end
  7920. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7921. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7922. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7923. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7924. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7925. for i = 0, 49 do
  7926. 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)
  7927. 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)
  7928. end
  7929. CameraEnshaking(5,6)
  7930. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7931. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7932. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7933. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7934. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7935. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7936. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7937. storehumanoidWS = 100
  7938. hum.WalkSpeed = 100
  7939. rainbowmode = false
  7940. chaosmode = false
  7941. tl1.Enabled = true
  7942. tl2.Enabled = true
  7943. tl3.Enabled = true
  7944. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7945. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7946. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7947. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7948. for i, v in pairs(mw2:GetChildren()) do
  7949. if v:IsA("Part") then
  7950. v.BrickColor = MAINRUINCOLOR
  7951. v.Material = "Neon"
  7952. end
  7953. end
  7954. for i, v in pairs(mw1:GetChildren()) do
  7955. if v:IsA("Part") then
  7956. v.Transparency = 0
  7957. v.BrickColor = MAINRUINCOLOR
  7958. v.Material = "Neon"
  7959. end
  7960. end
  7961. for i, v in pairs(m:GetChildren()) do
  7962. if v:IsA("Part") then
  7963. v.Color = Color3.new(0.5,0,1)
  7964. v.Material = "Neon"
  7965. end
  7966. end
  7967. for i, v in pairs(m2:GetChildren()) do
  7968. if v:IsA("Part") then
  7969. v.Color = Color3.new(0.25,0,1)
  7970. v.Material = "Neon"
  7971. end
  7972. end
  7973. for i, v in pairs(m3:GetChildren()) do
  7974. if v:IsA("Part") then
  7975. v.Color = Color3.new(0.45,0,1)
  7976. v.Material = "Neon"
  7977. end
  7978. end
  7979. for i, v in pairs(extrawingmod1:GetChildren()) do
  7980. if v:IsA("Part") then
  7981. v.Transparency = 0.75
  7982. v.Color = Color3.new(0.25,0,1)
  7983. v.Material = "Neon"
  7984. end
  7985. end
  7986. for i, v in pairs(extrawingmod2:GetChildren()) do
  7987. if v:IsA("Part") then
  7988. v.Transparency = 0.75
  7989. v.Color = Color3.new(0.5,0,1)
  7990. v.Material = "Neon"
  7991. end
  7992. end
  7993. attack = false
  7994. end
  7995.  
  7996. function GleamingBeam()
  7997. attack = true
  7998. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7999. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  8000. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  8001. local rsiz = math.random(1,15)
  8002.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8003.     hb.Anchored = true
  8004.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8005.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8006.     for i = 0, 16, 0.1 do
  8007.         swait()
  8008. rsiz = math.random(5,15)
  8009. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8010. 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)
  8011. 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)
  8012. 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)
  8013. 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)
  8014. 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)
  8015. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  8016. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  8017. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  8018.     end
  8019.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8020.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8021. for i = 0, 2 do
  8022.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8023. end
  8024. 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)
  8025. 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)
  8026. 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)
  8027. for i = 0, 49 do
  8028. local rsiza = math.random(1,15)
  8029. 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) 
  8030. end
  8031. local a = Instance.new("Part",Character)
  8032.     a.Name = "Direction"   
  8033.     a.Anchored = true
  8034.     a.BrickColor = MAINRUINCOLOR
  8035. a.Material = "Neon"
  8036. a.Transparency = 0
  8037. a.Shape = "Cylinder"
  8038.     a.CanCollide = false
  8039. local ba = Instance.new("Part",Character)
  8040.     ba.Name = "HitDirect"  
  8041.     ba.Anchored = true
  8042.     ba.BrickColor = bc("Cool yellow")
  8043. ba.Material = "Neon"
  8044. ba.Transparency = 1
  8045.     ba.CanCollide = false
  8046.     local ray = Ray.new(
  8047.         hb.CFrame.p,                           -- origin
  8048.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8049.     )
  8050.     local ignore = Character
  8051.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8052.     a.BottomSurface = 10
  8053.     a.TopSurface = 10
  8054.     local distance = (hb.CFrame.p - position).magnitude
  8055.     a.Size = Vector3.new(distance, 1, 1)
  8056.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8057. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8058. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8059. local msh = Instance.new("SpecialMesh",a)
  8060. msh.MeshType = "Cylinder"
  8061. msh.Scale = vt(1,4,4)
  8062. game:GetService("Debris"):AddItem(a, 30)
  8063. game:GetService("Debris"):AddItem(ba, 30)
  8064.     for i = 0, 25, 0.1 do
  8065.         swait()
  8066. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8067. ray = Ray.new(
  8068.         hb.CFrame.p,                           -- origin
  8069.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8070.     )
  8071. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8072. distance = (hb.CFrame.p - position).magnitude
  8073.     a.Size = Vector3.new(distance, 1, 1)
  8074.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8075. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8076. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8077. rsiz = math.random(5,25)
  8078.     MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  8079. 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)
  8080. for c = 0, 2 do
  8081. 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)
  8082. end
  8083. 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)
  8084. 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)
  8085. 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)
  8086. 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)
  8087. 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)
  8088. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8089. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8090. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8091.     end
  8092.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8093.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8094.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8095.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8096.     MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8097. 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)
  8098. 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)
  8099. 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)
  8100. 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)
  8101. 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)
  8102. 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)
  8103. for i = 0, 49 do
  8104. local rsiza = math.random(1,15)
  8105. 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) 
  8106. end
  8107. for i = 0, 49 do
  8108. rsiz = math.random(1,8)
  8109. 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)
  8110. end
  8111. coroutine.resume(coroutine.create(function()
  8112. for i = 0, 99 do
  8113. swait()
  8114. a.Transparency = a.Transparency + 0.01
  8115. end
  8116. a:Destroy()
  8117. ba:Destroy()
  8118. end))
  8119. hb:Destroy()
  8120. attack = false
  8121. end
  8122.  
  8123. function DualGleamingBeam()
  8124. attack = true
  8125. hum.WalkSpeed = 0
  8126. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8127. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8128. local radm = math.random(1,3)
  8129. if radm == 1 then
  8130. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8131. elseif radm == 2 then
  8132. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8133. elseif radm == 3 then
  8134. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8135. end
  8136. local rsiz = math.random(1,15)
  8137.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8138.     hb.Anchored = true
  8139.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8140.     local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8141.     hb2.Anchored = true
  8142.     hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8143.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8144.     for i = 0, 14, 0.1 do
  8145.         swait()
  8146. rsiz = math.random(5,15)
  8147. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8148. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8149. 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)
  8150. 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)
  8151. 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)
  8152. 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"))
  8153. 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)
  8154. 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)
  8155. 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)
  8156. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8157. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8158. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8159.     end
  8160.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8161.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8162.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8163.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8164.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8165.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8166. 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)
  8167. 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)
  8168. 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)
  8169. 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"))
  8170. 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"))
  8171. 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"))
  8172. for i = 0, 49 do
  8173. local rsiza = math.random(1,15)
  8174. 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)  
  8175. 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)
  8176. end
  8177. local a = Instance.new("Part",Character)
  8178.     a.Name = "Direction"   
  8179.     a.Anchored = true
  8180.     a.BrickColor = MAINRUINCOLOR
  8181. a.Material = "Neon"
  8182. a.Transparency = 0
  8183. a.Shape = "Cylinder"
  8184.     a.CanCollide = false
  8185. local a2 = Instance.new("Part",Character)
  8186.     a2.Name = "Direction"  
  8187.     a2.Anchored = true
  8188.     a2.BrickColor = MAINRUINCOLOR
  8189. a2.Material = "Neon"
  8190. a2.Transparency = 0
  8191. a2.Shape = "Cylinder"
  8192.     a2.CanCollide = false
  8193. local ba = Instance.new("Part",Character)
  8194.     ba.Name = "HitDirect"  
  8195.     ba.Anchored = true
  8196.     ba.BrickColor = MAINRUINCOLOR
  8197. ba.Material = "Neon"
  8198. ba.Transparency = 1
  8199.     ba.CanCollide = false
  8200. local ba2 = Instance.new("Part",Character)
  8201.     ba2.Name = "HitDirect" 
  8202.     ba2.Anchored = true
  8203.     ba2.BrickColor = MAINRUINCOLOR
  8204. ba2.Material = "Neon"
  8205. ba2.Transparency = 1
  8206.     ba2.CanCollide = false
  8207.     local ray = Ray.new(
  8208.         hb.CFrame.p,                           -- origin
  8209.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8210.     )
  8211.     local ignore = Character
  8212.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8213.     local ray2 = Ray.new(
  8214.         hb2.CFrame.p,                           -- origin
  8215.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8216.     )
  8217.     local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8218.     local distance2 = (hb2.CFrame.p - position).magnitude
  8219.  
  8220.     a.BottomSurface = 10
  8221.     a.TopSurface = 10
  8222.     local distance = (hb.CFrame.p - position).magnitude
  8223.     a.Size = Vector3.new(distance, 1, 1)
  8224.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8225.     a2.BottomSurface = 10
  8226.     a2.TopSurface = 10
  8227.     a2.Size = Vector3.new(distance2, 1, 1)
  8228.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8229. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8230. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8231. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8232. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8233. local msh = Instance.new("SpecialMesh",a)
  8234. msh.MeshType = "Cylinder"
  8235. msh.Scale = vt(1,4,4)
  8236. local msh2 = Instance.new("SpecialMesh",a2)
  8237. msh2.MeshType = "Cylinder"
  8238. msh2.Scale = vt(1,4,4)
  8239. game:GetService("Debris"):AddItem(a, 30)
  8240. game:GetService("Debris"):AddItem(a2, 30)
  8241. game:GetService("Debris"):AddItem(ba, 30)
  8242. game:GetService("Debris"):AddItem(ba2, 30)
  8243.     for i = 0, 20, 0.1 do
  8244.         swait()
  8245. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8246. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8247. ray = Ray.new(
  8248.         hb.CFrame.p,                           -- origin
  8249.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8250.     )
  8251. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8252. distance = (hb.CFrame.p - position).magnitude
  8253. ray2 = Ray.new(
  8254.         hb2.CFrame.p,                           -- origin
  8255.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8256.     )
  8257. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8258. distance2 = (hb2.CFrame.p - position).magnitude
  8259.     a.Size = Vector3.new(distance, 1, 1)
  8260.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8261.     a2.Size = Vector3.new(distance2, 1, 1)
  8262.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8263. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8264. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8265. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8266. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8267. rsiz = math.random(5,25)
  8268.     MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8269.     MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8270. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8271. if v:FindFirstChild('Head') then
  8272. dmg(v)
  8273. end
  8274. end
  8275. coroutine.resume(coroutine.create(function()
  8276. local bx = Instance.new("Part",Character)
  8277. bx.Name = "Location"   
  8278. bx.Anchored = true
  8279. bx.BrickColor = MAINRUINCOLOR
  8280. bx.Material = "Neon"
  8281. bx.Transparency = 1
  8282. bx.CanCollide = false
  8283. bx.Position = ba.Position
  8284. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8285. wait(math.random(1,2))
  8286. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8287. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8288. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8289.     CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8290.     CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8291.     MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8292. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8293. if v:FindFirstChild('Head') then
  8294. dmg(v)
  8295. end
  8296. end
  8297. wait(5)
  8298. bx:Destroy()
  8299. end))
  8300. 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)
  8301. 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)
  8302. for c = 0, 2 do
  8303. 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)
  8304. end
  8305. 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)
  8306. 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)
  8307. 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)
  8308. 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)
  8309. 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)
  8310. 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)
  8311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8312. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8313. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8314.     end
  8315. for i = 0, 1 do
  8316.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8317.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8318.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8319.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8320. end
  8321.     MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8322.     MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8323. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8324. if v:FindFirstChild('Head') then
  8325. dmg(v)
  8326. end
  8327. end
  8328. 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)
  8329. 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)
  8330. 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)
  8331. 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)
  8332. 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)
  8333. 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)
  8334. 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"))
  8335. 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"))
  8336. 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"))
  8337. for i = 0, 49 do
  8338. local rsiza = math.random(1,15)
  8339. 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)
  8340. 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)  
  8341. end
  8342. for i = 0, 49 do
  8343. rsiz = math.random(1,8)
  8344. 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)
  8345. end
  8346. coroutine.resume(coroutine.create(function()
  8347. for i = 0, 99 do
  8348. swait()
  8349. a.Transparency = a.Transparency + 0.01
  8350. a2.Transparency = a2.Transparency + 0.01
  8351. end
  8352. a:Destroy()
  8353. ba:Destroy()
  8354. a2:Destroy()
  8355. ba2:Destroy()
  8356. end))
  8357. hum.WalkSpeed = storehumanoidWS
  8358. hb:Destroy()
  8359. hb2:Destroy()
  8360. attack = false
  8361. end
  8362.  
  8363. function dragin()
  8364. local targetted = nil
  8365. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8366. targetted = mouse.Target.Parent
  8367. end
  8368. if targetted ~= nil then
  8369. RootPart.CFrame = FaceMouse()[1]
  8370. attack = true
  8371. hum.WalkSpeed = 0
  8372. for x = 0, 1 do
  8373. for i = 0,1,0.5 do
  8374. swait()
  8375. 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)
  8376. 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)
  8377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8379. 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)
  8380. 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)
  8381. end
  8382. for i = 0,1,0.5 do
  8383. swait()
  8384. 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)
  8385. 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)
  8386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8388. 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)
  8389. 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)
  8390. end
  8391. for i = 0,1,0.5 do
  8392. swait()
  8393. 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)
  8394. 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)
  8395. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8397. 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)
  8398. 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)
  8399. end
  8400. for i = 0,1,0.5 do
  8401. swait()
  8402. 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)
  8403. 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)
  8404. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8406. 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)
  8407. 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)
  8408. end
  8409. end
  8410. coroutine.resume(coroutine.create(function()
  8411. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8412. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8413. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8414. end))
  8415. local A1 = Instance.new("Attachment",targetted.Head)
  8416. local A2 = Instance.new("Attachment",sorb)
  8417. local Beem = Instance.new("Beam",tors)
  8418. Beem.Attachment0 = A1
  8419. Beem.Attachment1 = A2
  8420. Beem.Texture = "rbxassetid://897585362"
  8421. Beem.LightEmission = 0.75
  8422. Beem.FaceCamera = true
  8423. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8424. Beem.Width0 = 1
  8425. Beem.Width1 = 1
  8426. Beem.TextureMode = "Wrap"
  8427. Beem.TextureLength = 1
  8428. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8429. 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)
  8430. 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)
  8431. for x = 0, 24 do
  8432. local rsiz = math.random(5,15)
  8433. 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)
  8434. end
  8435.  
  8436. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8437. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8438. local radm = math.random(1,2)
  8439. if radm == 1 then
  8440. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8441. elseif radm == 2 then
  8442. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8443. end
  8444. for i = 0,3,0.1 do
  8445. swait()
  8446. coroutine.resume(coroutine.create(function()
  8447. local rsiz = math.random(5,15)
  8448. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8449. 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)
  8450. end))
  8451. 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)
  8452. 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)
  8453. 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)
  8454. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8456. 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)
  8457. 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)
  8458. end
  8459. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8460. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8461. local vel = Instance.new("BodyPosition", targetted.Head)
  8462. vel.P = 12500
  8463. vel.D = 1000
  8464. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8465. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8466. for i = 0,4,0.1 do
  8467. swait()
  8468. coroutine.resume(coroutine.create(function()
  8469. local rsiz = math.random(5,15)
  8470. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8471. 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)
  8472. end))
  8473. 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)
  8474. 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)
  8475. 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)
  8476. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8477. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8478. 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)
  8479. 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)
  8480. end
  8481. local visibility = 0
  8482. coroutine.resume(coroutine.create(function()
  8483. for i = 0, 49 do
  8484. swait()
  8485. visibility = visibility + 0.02
  8486. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8487. end
  8488. Beem:Destroy()
  8489. A1:Destroy()
  8490. A2:Destroy()
  8491. end))
  8492. game:GetService("Debris"):AddItem(vel,0.75)
  8493. attack = false
  8494. hum.WalkSpeed = storehumanoidWS
  8495.  
  8496. end
  8497. end
  8498.  
  8499. function hugg()
  8500. attack = true
  8501. hum.WalkSpeed = 5
  8502. local rsiz = math.random(5,15)
  8503. for i = 0, 2, 0.1 do
  8504. swait()
  8505. 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)
  8506. 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)
  8507. 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)
  8508. 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)
  8509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8510. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8511. end
  8512. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8513.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8514.     hb.Anchored = true
  8515.     hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8516. local huggedperson = nil
  8517. local act = false
  8518. local alreadydid = false
  8519. for i = 0, 3, 0.1 do
  8520. swait()
  8521. if act == false then
  8522. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8523. if v:FindFirstChild('Head') then
  8524. if alreadydid == false then
  8525. huggedperson = v
  8526. hum.WalkSpeed = 0
  8527. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8528. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8529. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8530. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8531. local radm = math.random(1,3)
  8532. if radm == 1 then
  8533. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8534. elseif radm == 2 then
  8535. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8536. elseif radm == 3 then
  8537. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8538. end
  8539. root.Anchored = true
  8540. coroutine.resume(coroutine.create(function()
  8541. huggedperson.Humanoid.WalkSpeed = 0
  8542. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8543. end))
  8544. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8545. alreadydid = true
  8546. act = true
  8547. print(huggedperson.Name)
  8548. end
  8549. end
  8550. end
  8551. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8552. 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)
  8553. elseif act == true then
  8554. coroutine.resume(coroutine.create(function()
  8555. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8556. end))
  8557. rsiz = math.random(5,15)
  8558. 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)
  8559. 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)
  8560. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8561. end
  8562. 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)
  8563. 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)
  8564. 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)
  8565. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8566. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8567. end
  8568. hb:Destroy()
  8569. if act == true then
  8570. for x = 0, 2 do
  8571. for i = 0, 2, 0.1 do
  8572. swait()
  8573. coroutine.resume(coroutine.create(function()
  8574. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8575. end))
  8576. rsiz = math.random(5,15)
  8577. 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)
  8578. 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)
  8579. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8580. 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)
  8581. 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)
  8582. 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)
  8583. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8584. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8585. end
  8586. for i = 0, 2, 0.1 do
  8587. swait()
  8588. coroutine.resume(coroutine.create(function()
  8589. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8590. end))
  8591. rsiz = math.random(5,15)
  8592. 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)
  8593. 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)
  8594. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8595. 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)
  8596. 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)
  8597. 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)
  8598. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8599. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8600. end
  8601. end
  8602. end
  8603. hum.WalkSpeed = storehumanoidWS
  8604. root.Anchored = false
  8605. if act == true then
  8606. coroutine.resume(coroutine.create(function()
  8607. huggedperson.Humanoid.WalkSpeed = 16
  8608. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8609. end))
  8610. end
  8611. hum.WalkSpeed = storehumanoidWS
  8612. attack = false
  8613. end
  8614.  
  8615. function Counter()
  8616.     hum.WalkSpeed = 0
  8617. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8618. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8619. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8620.     attack = true
  8621.     for i = 0,1,0.1 do
  8622.         swait()
  8623.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8624. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8625. 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)
  8626. 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)
  8627. 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)
  8628. 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)
  8629.     end
  8630. CameraEnshaking(3,4)
  8631. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8632. 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)
  8633. 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)
  8634. 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)
  8635. coroutine.resume(coroutine.create(function()
  8636. local eff = Instance.new("ParticleEmitter",root)
  8637. eff.Texture = "rbxassetid://363275192"
  8638. eff.LightEmission = 0.95
  8639. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8640. eff.Rate = 10000
  8641. eff.Lifetime = NumberRange.new(1)
  8642. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8643. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8644. eff.Speed = NumberRange.new(10,125)
  8645. eff.Drag = 5
  8646. eff.Rotation = NumberRange.new(-500,500)
  8647. eff.VelocitySpread = 9000
  8648. eff.RotSpeed = NumberRange.new(-50,50)
  8649. local eff2 = eff:Clone()
  8650. eff2.Parent = root
  8651. eff2.Texture = "rbxassetid://284205403"
  8652. eff2.Rate = 10000
  8653. 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)})
  8654. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8655. eff2.Drag = 5
  8656. eff2.Speed = NumberRange.new(10,50)
  8657. eff2.Rotation = NumberRange.new(-500,500)
  8658. eff2.VelocitySpread = 9000
  8659. wait(0.25)
  8660. eff2.Enabled = false
  8661. eff.Enabled = false
  8662. wait(3)
  8663. eff2:Destroy()
  8664. eff:Destroy()
  8665. end))
  8666. for i = 0, 9 do
  8667. 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)
  8668. end
  8669. for i = 0, 24 do
  8670. local rsiz = math.random(5,20)
  8671. 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)
  8672. end
  8673. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8674. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8675. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8676.     for i = 0,2,0.1 do
  8677.         swait()
  8678.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8679. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8680. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8681. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8682. 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)
  8683. 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)
  8684.     end
  8685.     hum.WalkSpeed = storehumanoidWS
  8686. attack = false
  8687. end
  8688.  
  8689. function superjump()
  8690. attack = true
  8691. hum.WalkSpeed = 0
  8692. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8693. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8694. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8695. for i = 0, 2, 0.1 do
  8696.         swait()
  8697. root.Velocity = vt(0,0,0)
  8698. 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"))
  8699. 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)
  8700. 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)
  8701. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8703. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8704. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8705. end
  8706. MagniDamage(root, 28, 25,50, 25, "Normal")
  8707. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8708. hum.Jump = true
  8709. swait()
  8710. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8711. 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)
  8712. 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)
  8713. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8714. for i = 0, 3, 0.1 do
  8715.         swait()
  8716. 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)
  8717. 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)
  8718. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8719. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8720. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8721. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8722. end
  8723. attack = false
  8724. if equipped == false then
  8725. hum.WalkSpeed = 16
  8726. else
  8727. hum.WalkSpeed = 24
  8728. end
  8729. end
  8730.  
  8731.  
  8732. -------------------------------------
  8733.  
  8734.  
  8735.  
  8736. Humanoid.Animator.Parent = nil
  8737.  
  8738.  
  8739.  
  8740. -------------------------------------
  8741.  
  8742. local attacktype = 1
  8743. mouse.Button1Down:connect(function()
  8744.   if attack == false and attacktype == 1 then
  8745.     attacktype = 2
  8746.     attackone()
  8747.   elseif attack == false and attacktype == 2 then
  8748.     attacktype = 3
  8749.     attacktwo()
  8750.   elseif attack == false and attacktype == 3 then
  8751.     attacktype = 1
  8752.     attackthree()
  8753.   elseif attack == false and attacktype == 4 then
  8754.     attacktype = 1
  8755.     --attackfour()
  8756.   end
  8757. end)
  8758. mouse.KeyDown:connect(function(k)
  8759. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8760. --normalmog()
  8761. ModeOfGlitch = 1
  8762. storehumanoidWS = 16
  8763. hum.WalkSpeed = 16
  8764. rainbowmode = false
  8765. chaosmode = false
  8766. newTheme("rbxassetid://1255569288",48.6,1,0.85)
  8767. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8768. MAINRUINCOLOR = BrickColor.new("Really red")
  8769. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8770. end
  8771. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8772. ModeOfGlitch = 2
  8773. storehumanoidWS = 16
  8774. hum.WalkSpeed = 16
  8775. rainbowmode = false
  8776. chaosmode = false
  8777. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8778. newTheme("rbxassetid://1539245059",0,1,0.85)
  8779. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8780. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8781. end
  8782. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8783.                ModeOfGlitch = 3
  8784. storehumanoidWS = 14
  8785. hum.WalkSpeed = 14
  8786. rainbowmode = false
  8787. chaosmode = false
  8788. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8789. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8790. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8791. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8792. end
  8793. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8794.                ModeOfGlitch = 4
  8795. storehumanoidWS = 14
  8796. hum.WalkSpeed = 14
  8797. rainbowmode = false
  8798. chaosmode = true
  8799. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8800. newTheme("rbxassetid://1369263130",0,1.01,0.85)
  8801. MAINRUINCOLOR = BrickColor.new("Black")
  8802. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8803. end
  8804. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8805.                ModeOfGlitch = 5
  8806. storehumanoidWS = 14
  8807. hum.WalkSpeed = 14
  8808. rainbowmode = false
  8809. chaosmode = false
  8810. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8811. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8812. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8813. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8814. end
  8815. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8816.                ModeOfGlitch = 6
  8817. storehumanoidWS = 65
  8818. hum.WalkSpeed = 65
  8819. rainbowmode = false
  8820. chaosmode = false
  8821. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8822. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8823. MAINRUINCOLOR = BrickColor.new("White")
  8824. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8825. end
  8826. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8827.                ModeOfGlitch = 8
  8828. storehumanoidWS = 100
  8829. hum.WalkSpeed = 100
  8830. rainbowmode = false
  8831. chaosmode = false
  8832. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8833. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8834. MAINRUINCOLOR = BrickColor.new("Alder")
  8835. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8836. end
  8837. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8838.                ModeOfGlitch = 9
  8839. storehumanoidWS = 85
  8840. hum.WalkSpeed = 85
  8841. rainbowmode = false
  8842. chaosmode = false
  8843. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8844. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8845. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8846. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8847. end
  8848. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8849.                ModeOfGlitch = 5555
  8850. storehumanoidWS = 30
  8851. hum.WalkSpeed = 30
  8852. rainbowmode = false
  8853. chaosmode = false
  8854. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8855. newTheme("rbxassetid://736003449",0,1,1.25)
  8856. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8857. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8858. end
  8859. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8860. CalamityTrans()
  8861. end
  8862. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8863.                ModeOfGlitch = 55469696922
  8864. storehumanoidWS = 95
  8865. hum.WalkSpeed = 95
  8866. rainbowmode = false
  8867. chaosmode = false
  8868. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8869. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8870. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8871. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8872. end
  8873. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8874.                ModeOfGlitch = 4367677813
  8875. storehumanoidWS = 75
  8876. hum.WalkSpeed = 75
  8877. rainbowmode = false
  8878. chaosmode = false
  8879. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8880. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8881. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8882. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8883. end
  8884. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8885.                ModeOfGlitch = 9999999921111
  8886. storehumanoidWS = 145
  8887. hum.WalkSpeed = 145
  8888. rainbowmode = false
  8889. chaosmode = false
  8890. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8891. newTheme("rbxassetid://643309199",0,1.01,1)
  8892. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8893. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8894. end
  8895. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8896.                ModeOfGlitch = 999999999556
  8897. storehumanoidWS = 115
  8898. hum.WalkSpeed = 115
  8899. rainbowmode = false
  8900. chaosmode = false
  8901. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8902. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8903. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8904. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8905. end
  8906. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8907.                ModeOfGlitch = 12
  8908. storehumanoidWS = 19
  8909. hum.WalkSpeed = 19
  8910. rainbowmode = false
  8911. chaosmode = false
  8912. print'Mode was meant for Vengeful Program or those other fans out there'
  8913. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8914. newTheme("rbxassetid://1873219898",0,1,1.7)
  8915. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8916. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8917. end
  8918.  
  8919. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8920. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8921. for i = 0, 49 do
  8922. 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)
  8923. end
  8924. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8925. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8926. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8927. hum.WalkSpeed = storehumanoidWS
  8928. attack = false
  8929.     ModeOfGlitch = 50
  8930. storehumanoidWS = 18
  8931. hum.WalkSpeed = 18
  8932. rainbowmode = false
  8933. chaosmode = false
  8934. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8935. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8936. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8937. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8938. end
  8939.  
  8940. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8941.     hum.WalkSpeed = 0
  8942.     attack = true
  8943.     for i = 0,1,0.1 do
  8944.         swait()
  8945.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8946. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8947. 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)
  8948. 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)
  8949. 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)
  8950. 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)
  8951.     end
  8952. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8953. for i = 0, 148 do
  8954. 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)
  8955. end
  8956. for i = 0,3,0.1 do
  8957. 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)
  8958. end
  8959. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8960. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8961. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8962.     hum.WalkSpeed = storehumanoidWS
  8963. attack = false
  8964.     ModeOfGlitch = 66
  8965. storehumanoidWS = 16
  8966. hum.WalkSpeed = 16
  8967. rainbowmode = false
  8968. chaosmode = false
  8969. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8970. MAINRUINCOLOR = BrickColor.new("Really black")
  8971. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8972.     for i = 0,2,0.1 do
  8973.         swait()
  8974. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8975. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8976. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8977. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8978. 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)
  8979. 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)
  8980.     end
  8981. end
  8982.  
  8983. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8984.     hum.WalkSpeed = 0
  8985.     attack = true
  8986.     for i = 0,1,0.1 do
  8987.         swait()
  8988.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8989. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8990. 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)
  8991. 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)
  8992. 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)
  8993. 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)
  8994.     end
  8995. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8996. for i = 0, 49 do
  8997. 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)
  8998. end
  8999. for i = 0,3,0.1 do
  9000. 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)
  9001. end
  9002. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  9003. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  9004. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  9005.     hum.WalkSpeed = storehumanoidWS
  9006. attack = false
  9007.     ModeOfGlitch = 13
  9008. storehumanoidWS = 45
  9009. hum.WalkSpeed = 45
  9010. rainbowmode = false
  9011. chaosmode = false
  9012. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  9013. newTheme("rbxassetid://190845741",0,1,1.35)
  9014. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9015. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9016.     for i = 0,2,0.1 do
  9017.         swait()
  9018. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  9019. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  9020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  9021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  9022. 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)
  9023. 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)
  9024.     end
  9025. end
  9026. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  9027.                ModeOfGlitch = 1002
  9028. storehumanoidWS = 45
  9029. hum.WalkSpeed = 45
  9030. rainbowmode = false
  9031. chaosmode = false
  9032. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  9033. newTheme("rbxassetid://2027652726",0,1,0.85)
  9034. MAINRUINCOLOR = BrickColor.new("Dark blue")
  9035. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9036. end
  9037. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  9038.                ModeOfGlitch = 1003
  9039. storehumanoidWS = 90
  9040. hum.WalkSpeed = 90
  9041. rainbowmode = false
  9042. chaosmode = false
  9043. RecolorTextAndRename("ASCENDED",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  9044. newTheme("rbxassetid://257453119",0,1,0.85)
  9045. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9046. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9047. end
  9048. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9049.                ModeOfGlitch = 1264532489
  9050. storehumanoidWS = 175
  9051. hum.WalkSpeed = 175
  9052. rainbowmode = false
  9053. chaosmode = false
  9054. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9055. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9056. MAINRUINCOLOR = BrickColor.new("Pastel green")
  9057. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9058. end
  9059. if k == "l" and mutedtog == false then
  9060. mutedtog = true
  9061. kan.Volume = 0.85
  9062. elseif k == "l" and mutedtog == true then
  9063. mutedtog = false
  9064. kan.Volume = 0.85
  9065. end
  9066. if k == "p" and toggleTag == false then
  9067. toggleTag = true
  9068. modet.TextTransparency = 0
  9069. modet.TextStrokeTransparency = 0
  9070. elseif k == "p" and toggleTag == true then
  9071. toggleTag = false
  9072. modet.TextTransparency = 1
  9073. modet.TextStrokeTransparency = 1
  9074. end
  9075. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9076. ExtinctiveHeartbreak()
  9077. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9078. HeavenlyDisk()
  9079. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9080. DualGleamingBeam()
  9081. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9082. BanishingOrb()
  9083. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  9084. hugg()
  9085. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9086. cutesigh()
  9087. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9088. Counter()
  9089. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9090. superjump()
  9091. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9092. dragin()
  9093. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9094. UniversalCollapse()
  9095. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9096. PureBomb()
  9097. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9098. Beams()
  9099. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9100. BeamOfDeath()
  9101. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9102. THE_TRUE_POWER_OF_VIOLENCE()
  9103. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9104. GleamingBeam()
  9105. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9106. ViolentRing()
  9107. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9108. CorruptionEvent()
  9109. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9110. CorruptBlink()
  9111. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9112. scattercorrupt()
  9113. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9114. shytaunty()
  9115. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9116. RapidBurst()
  9117. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9118. ChaosEND()
  9119. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9120. CyberSlash()
  9121. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9122. smiter()
  9123. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9124. SpeedDrop()
  9125. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  9126. FuckMeSidewaysAndCallMeGay()
  9127. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9128. --DivineLights()
  9129. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9130. DivineBlast()
  9131. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9132. EquinoxOrbs()
  9133. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9134. yinyangi()
  9135. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9136. FallenOrbs()
  9137. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9138. StarfallEX()
  9139. end
  9140. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9141. FallenDEMISE()
  9142. end
  9143. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9144. EndGROUND()
  9145. end
  9146. end)
  9147.  
  9148. coroutine.resume(coroutine.create(function()
  9149. while true do
  9150. swait()
  9151. 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
  9152. 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)
  9153. end
  9154. if ModeOfGlitch == 5555 then
  9155. 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)
  9156. end
  9157. end
  9158. end))
  9159. --[[coroutine.resume(coroutine.create(function()
  9160. while true do
  9161. swait(2)
  9162. if chaosmode == true then
  9163. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9164. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9165. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9166. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9167. for i, v in pairs(mw1:GetChildren()) do
  9168. if v:IsA("Part") then
  9169. v.Transparency = 0.75
  9170. v.BrickColor = BrickColor.random()
  9171. v.Material = "Neon"
  9172. end
  9173. end
  9174. for i, v in pairs(m2:GetChildren()) do
  9175. if v:IsA("Part") then
  9176. v.BrickColor = BrickColor.random()
  9177. v.Material = "Neon"
  9178. end
  9179. end
  9180. end
  9181. end
  9182. end))]]
  9183.  
  9184.  
  9185.  
  9186. ff = Instance.new("ForceField",char)
  9187. ff.Visible = false
  9188. hum.Name = "Base"
  9189. hum.MaxHealth = 1.0E298
  9190. hum.Health = 1.0E298
  9191. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9192.   if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9193.     hum.MaxHealth = 1.0E298
  9194.     hum.Health = 1.0E298
  9195.   end
  9196. end)
  9197.  
  9198. local Hair = Instance.new("Part", char)
  9199. Hair.Name = "Hair"
  9200. Hair.CanCollide = false
  9201. Hair.BrickColor = BrickColor.new("Institutional white")
  9202. Hair.Transparency = 0
  9203. Hair.Material = "Plastic"
  9204. Hair.Size = Vector3.new(1, 1, 2)
  9205. Hair.TopSurface = Enum.SurfaceType.Smooth
  9206. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9207.  
  9208.  
  9209. local bguis = Instance.new("BillboardGui",tors)
  9210. bguis.Size = UDim2.new(25, 0, 25, 0)
  9211. local imgca = Instance.new("ImageLabel",bguis)
  9212. imgca.BackgroundTransparency = 1
  9213. imgca.ImageTransparency = 1
  9214. imgca.Size = UDim2.new(1,0,1,0)
  9215. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9216. imgca.ImageColor3 = Color3.new(0,0,0)
  9217.  
  9218.  
  9219. local bguis2 = Instance.new("BillboardGui",tors)
  9220. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9221. local imgca2 = Instance.new("ImageLabel",bguis)
  9222. imgca2.BackgroundTransparency = 1
  9223. imgca2.ImageTransparency = 1
  9224. imgca2.Size = UDim2.new(1,0,1,0)
  9225. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9226. imgca2.ImageColor3 = Color3.new(0,0,0)
  9227.  
  9228.  
  9229.  
  9230. idleanim=.4
  9231. while true do
  9232. if mutedtog == false then
  9233. kan.Volume = currentVol
  9234. elseif mutedtog == true then
  9235. kan.Volume = 0
  9236. end
  9237. kan.PlaybackSpeed = currentPitch
  9238. kan.Pitch = currentPitch
  9239. kan.SoundId = currentThemePlaying
  9240. kan.Looped = true
  9241. kan.Parent = char
  9242. kan:Resume()
  9243. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9244. imgca.ImageTransparency = 1
  9245. imgca2.ImageTransparency = 1
  9246. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9247. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9248. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9249. elseif ModeOfGlitch == 13 then
  9250. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9251. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9252. end
  9253. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9254. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9255. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9256. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9257. coroutine.resume(coroutine.create(function()
  9258.     if chaosmode == true then
  9259. for i, v in pairs(mw1:GetChildren()) do
  9260. if v:IsA("Part") then
  9261. v.Transparency = 0
  9262. v.BrickColor = BrickColor.random()
  9263. v.Material = "Neon"
  9264. end
  9265. end
  9266. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9267. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9268. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9269.     RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9270.     end
  9271. end))
  9272. coroutine.resume(coroutine.create(function()
  9273.     if ModeOfGlitch == 66 then
  9274.         for i, v in pairs(m:GetChildren()) do
  9275. if v:IsA("Part") then
  9276. v.Transparency = 0
  9277. v.BrickColor = BrickColor.random()
  9278. v.Material = "Neon"
  9279. end
  9280. end
  9281.         for i, v in pairs(m2:GetChildren()) do
  9282. if v:IsA("Part") then
  9283. v.Transparency = 0
  9284. v.BrickColor = BrickColor.random()
  9285. v.Material = "Neon"
  9286. end
  9287. end
  9288. for i, v in pairs(mw1:GetChildren()) do
  9289. if v:IsA("Part") then
  9290. v.Transparency = 0
  9291. v.BrickColor = BrickColor.random()
  9292. v.Material = "Neon"
  9293. end
  9294. end
  9295. for i, v in pairs(extrawingmod1:GetChildren()) do
  9296. if v:IsA("Part") then
  9297. v.Transparency = 0.5
  9298. v.BrickColor = BrickColor.random()
  9299. v.Material = "Neon"
  9300. end
  9301. end
  9302. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9303. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9304. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9305. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9306. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9307. end
  9308. end))
  9309.  
  9310. coroutine.resume(coroutine.create(function()
  9311.     if ModeOfGlitch == 66 then
  9312. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9313.     end
  9314.     end))
  9315.  
  9316. if chaosmode == false then
  9317. modet.Position = UDim2.new(0,0,0,0)
  9318. modet.Rotation = -5 * math.cos(sine / 32)
  9319. techc.Rotation = techc.Rotation + 1
  9320. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9321. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9322. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9323. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9324. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9325. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9326. else
  9327.     techc.Rotation = techc.Rotation + 1
  9328. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9329. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9330. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9331. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9332. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9333. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9334. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9335. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9336. end
  9337. CameraManager()
  9338. swait()
  9339. 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)
  9340. 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)
  9341. 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)
  9342. 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)
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. 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)
  9348. 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)
  9349. 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)
  9350. 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)
  9351.  sine = sine + change
  9352. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9353. local velderp=RootPart.Velocity.y
  9354. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9355. coroutine.resume(coroutine.create(function()
  9356. 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
  9357. if hitfloor ~= nil then
  9358. 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"))
  9359. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9360. 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)
  9361. end
  9362. end
  9363. end
  9364. end))
  9365. if equipped==true or equipped==false then
  9366. if attack==false then
  9367. idle=idle+1
  9368. else
  9369. idle=0
  9370. end
  9371. if idle>=500 then
  9372. if attack==false then
  9373. --Sheath()
  9374. end
  9375. end
  9376. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9377. Anim="Jump"
  9378. if attack==false then
  9379. 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)
  9380. 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)
  9381. 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)
  9382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9383. 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)
  9384. 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)
  9385. end
  9386. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9387. Anim="Fall"
  9388. if attack==false then
  9389. 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)
  9390. 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)
  9391. 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)
  9392. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9393. 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)
  9394. 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)
  9395. end
  9396. elseif torvel<1 and hitfloor~=nil then
  9397. Anim="Idle"
  9398. if attack==false then
  9399. if ModeOfGlitch == 1 then
  9400. local snap = math.random(1,10)
  9401. if snap == 1 then
  9402. 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)
  9403. end
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408. 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)
  9409. 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)
  9410. elseif ModeOfGlitch == 2 then
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. 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)
  9417. elseif ModeOfGlitch == 2 then
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. 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)
  9424. elseif ModeOfGlitch == 50 then
  9425. 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)
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. elseif ModeOfGlitch == 5555 then --5555
  9432. 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)
  9433. 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)
  9434. 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)
  9435. 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)
  9436. 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)
  9437. 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)
  9438. elseif ModeOfGlitch == 1002 then
  9439. 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)
  9440. 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)
  9441. 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)
  9442. 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)
  9443. 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)
  9444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9445. elseif ModeOfGlitch == 12 then
  9446. 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)
  9447. 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)
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. elseif ModeOfGlitch == 3 then
  9453. local snap = math.random(1,32)
  9454. if snap == 1 then
  9455. 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)
  9456. end
  9457. 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)
  9458. 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)
  9459. 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)
  9460. 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)
  9461. 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)
  9462. 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)
  9463. elseif ModeOfGlitch == 4 then
  9464. local snap = math.random(1,5)
  9465. if snap == 1 then
  9466. 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)
  9467. 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)
  9468. 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)
  9469. end
  9470. 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)
  9471. 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)
  9472. 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)
  9473. 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)
  9474. 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)
  9475. 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)
  9476. elseif ModeOfGlitch == 66 then
  9477. local snap = math.random(1,2)
  9478. if snap == 1 then
  9479. 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)
  9480. 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)
  9481. 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)
  9482. end
  9483. 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)
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. 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)
  9489. elseif ModeOfGlitch == 5 then
  9490. 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)
  9491. 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)
  9492. 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)
  9493. 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)
  9494. 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)
  9495. 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)
  9496. elseif ModeOfGlitch == 6 then
  9497. 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)
  9498. 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)
  9499. 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)
  9500. 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)
  9501. 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)
  9502. 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)
  9503. elseif ModeOfGlitch == 13 then
  9504. 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)
  9505. 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)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. elseif ModeOfGlitch == 8 then
  9511. 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)
  9512. 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)
  9513. 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)
  9514. 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)
  9515. 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)
  9516. 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)
  9517. elseif ModeOfGlitch == 9 then
  9518. 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)
  9519. 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))
  9520. 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)
  9521. 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)
  9522. 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)
  9523. 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)
  9524. 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)
  9525. 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)
  9526. elseif ModeOfGlitch == 1003 then
  9527. 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)
  9528. 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)
  9529. 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)
  9530. 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)
  9531. 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)
  9532. 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)
  9533.  
  9534. elseif ModeOfGlitch == 8889 then
  9535. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  9536. 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)
  9537. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  9538. 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)
  9539. 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)
  9540. 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)
  9541. elseif ModeOfGlitch == 1264532489 then
  9542. 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)
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. 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)
  9549. elseif ModeOfGlitch == 9999999921111 then  --9999999921111
  9550. 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)
  9551. 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)
  9552. 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)
  9553. 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)
  9554. 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)
  9555. 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)
  9556. elseif ModeOfGlitch == 4367677813 then
  9557. 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)
  9558. 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)
  9559. 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)
  9560. 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)
  9561. 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)
  9562. 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)
  9563. elseif ModeOfGlitch == 55469696922 then --5555
  9564. 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)
  9565. 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)
  9566. 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)
  9567. 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)
  9568. 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)
  9569. 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)
  9570. elseif ModeOfGlitch == 999999999556 then
  9571. 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)
  9572. 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)
  9573. 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)
  9574. 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)
  9575. 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)
  9576. 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)
  9577. end
  9578. end
  9579. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9580. Anim="Walk"
  9581. if attack==false and ModeOfGlitch ~= 66 then
  9582. 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)
  9583. 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)
  9584. 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)
  9585. 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)
  9586. 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)
  9587. 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)
  9588. elseif attack==false and ModeOfGlitch == 66 then
  9589. 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)
  9590. 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)
  9591. 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)
  9592. 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)
  9593. 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)
  9594. 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)
  9595. end
  9596. elseif torvel>=22 and hitfloor~=nil then
  9597. Anim="Run"
  9598. if attack==false then
  9599. 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
  9600. 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)
  9601. 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)
  9602. 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)
  9603. 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)
  9604. 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)
  9605. 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)
  9606. if ModeOfGlitch == 12 then
  9607. 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)
  9608. 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)
  9609. 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)
  9610. 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)
  9611. 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)
  9612. 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)
  9613. end
  9614. if ModeOfGlitch == 9 then
  9615.     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)
  9616. 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))
  9617. 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)
  9618. end
  9619. 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
  9620. 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)
  9621. 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)
  9622. 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)
  9623. 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)
  9624. 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)
  9625. 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)
  9626. elseif ModeOfGlitch == 13 then
  9627. 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)
  9628. 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)
  9629. 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)
  9630. 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)
  9631. 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)
  9632. 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)
  9633. end
  9634. end
  9635. end
  9636. end
  9637. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement