SHARE
TWEET

Untitled

Acc_kili Oct 21st, 2018 157 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game:GetService("Players").k_llito
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4.     script.Parent = Player.Character
  5.     local CAS = {Actions={}}
  6.     local Event = Instance.new("RemoteEvent")
  7.     Event.Name = "UserInput_Event"
  8.     Event.Parent = Player.Character
  9.     local fakeEvent = function()
  10.         local t = {_fakeEvent=true}
  11.         t.Connect = function(self,f)self.Function=f end
  12.         t.connect = t.Connect
  13.         return t
  14.     end
  15.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17.     function CAS:BindAction(name,fun,touch,...)
  18.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19.     end
  20.     function CAS:UnbindAction(name)
  21.         CAS.Actions[name] = nil
  22.     end
  23.     local function te(self,ev,...)
  24.         local t = m[ev]
  25.         if t and t._fakeEvent and t.Function then
  26.             t.Function(...)
  27.         end
  28.     end
  29.     m.TrigEvent = te
  30.     UIS.TrigEvent = te
  31.     Event.OnServerEvent:Connect(function(plr,io)
  32.         if plr~=Player then return end
  33.         if io.isMouse then
  34.             m.Target = io.Target
  35.             m.Hit = io.Hit
  36.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37.             if io.UserInputState == Enum.UserInputState.Begin then
  38.                 m:TrigEvent("Button1Down")
  39.             else
  40.                 m:TrigEvent("Button1Up")
  41.             end
  42.         else
  43.             for n,t in pairs(CAS.Actions) do
  44.                 for _,k in pairs(t.Keys) do
  45.                     if k==io.KeyCode then
  46.                         t.Function(t.Name,io.UserInputState,io)
  47.                     end
  48.                 end
  49.             end
  50.             if io.UserInputState == Enum.UserInputState.Begin then
  51.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52.                 UIS:TrigEvent("InputBegan",io,false)
  53.             else
  54.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55.                 UIS:TrigEvent("InputEnded",io,false)
  56.             end
  57.         end
  58.     end)
  59.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60.     end
  61.    
  62. wait(0.2)
  63.  
  64.  
  65. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  66. The super switcher.
  67. Velnorum is one of the first wielders.
  68.  
  69. Created, Reworked by NoobyGames12
  70. Edited by GodzPlaysRB
  71. Edited by wanTH092 (Gam_Filano CH)
  72. SpectrumGlitcher Developers ^^^
  73. ]])
  74.  
  75.  
  76. ------------- ORIGINAL WIELDER OC: Velnorum
  77. print([[Icons:
  78. ! = New
  79. ? = Spoilers
  80. * = Exclusivity
  81. C = Changes
  82.  
  83. ]])
  84. warn([[V 7.5 Update Log:
  85. C: Changed everything to guest xd
  86. ]])
  87. --- its obs smooth af do not touch
  88. ---- Sources and functions might be taken from others
  89. plr = game:GetService("Players").k_llito
  90. char = plr.Character
  91. hum = char.Humanoid
  92. local cam = game.Workspace.CurrentCamera
  93. Camera = cam
  94. local CamInterrupt = false
  95. local TwoD = false
  96. local TargetInfo = {nil, nil}
  97. cam.CameraType = "Custom"
  98. t = char.Torso
  99. h = char.Head
  100. ra = char["Right Arm"]
  101. la = char["Left Arm"]
  102. rl = char["Right Leg"]
  103. ll = char["Left Leg"]
  104. tors = char.Torso
  105. lleg = char["Left Leg"]
  106. root = char.HumanoidRootPart
  107. hed = char.Head
  108. rleg = char["Right Leg"]
  109. rarm = char["Right Arm"]
  110. larm = char["Left Arm"]
  111. radian = math.rad
  112. random = math.random
  113. Vec3 = Vector3.new
  114. Inst = Instance.new
  115. cFrame = CFrame.new
  116. Euler = CFrame.fromEulerAnglesXYZ
  117. vt = Vector3.new
  118. bc = BrickColor.new
  119. br = BrickColor.random
  120. it = Instance.new
  121. cf = CFrame.new
  122. local Player_Size = 0
  123. cam = game.Workspace.CurrentCamera
  124. CF = CFrame.new
  125. angles = CFrame.Angles
  126. attack = false
  127. Euler = CFrame.fromEulerAnglesXYZ
  128. Rad = math.rad
  129. IT = Instance.new
  130. BrickC = BrickColor.new
  131. Cos = math.cos
  132. Acos = math.acos
  133. Sin = math.sin
  134. Asin = math.asin
  135. Abs = math.abs
  136. Mrandom = math.random
  137. Floor = math.floor
  138. IT = Instance.new
  139. CF = CFrame.new
  140. VT = Vector3.new
  141. RAD = math.rad
  142. C3 = Color3.new
  143. UD2 = UDim2.new
  144. BRICKC = BrickColor.new
  145. ANGLES = CFrame.Angles
  146. EULER = CFrame.fromEulerAnglesXYZ
  147. COS = math.cos
  148. ACOS = math.acos
  149. SIN = math.sin
  150. ASIN = math.asin
  151. ABS = math.abs
  152. MRANDOM = math.random
  153. FLOOR = math.floor
  154. local SINE = 0
  155.  
  156. local Booleans = {
  157.   CamFollow = true,
  158.   GyroUse = true
  159. }
  160.  
  161. function lerp(object, newCFrame, alpha)
  162.   return object:lerp(newCFrame, alpha)
  163. end
  164.  
  165. local Directer = Inst("BodyGyro", root)
  166. Directer.MaxTorque = Vec3(0, 0, 0)
  167. Directer.P = 600000
  168. local CPart = Inst("Part")
  169. CPart.Anchored = true
  170. CPart.CanCollide = false
  171. CPart.Locked = true
  172. CPart.Transparency = 1
  173.  
  174. local rainbowmode = false
  175. local chaosmode = false
  176.  
  177. local kan = Instance.new("Sound",tors)
  178. kan.Volume = 0.85
  179. kan.TimePosition = 0
  180. kan.PlaybackSpeed = 1
  181. kan.Pitch = 1
  182. kan.SoundId = "rbxassetid://1255569288"
  183. kan.Name = "wrecked"
  184. kan.Looped = true
  185. kan:Play()
  186.  
  187. local currentThemePlaying = kan.SoundId
  188. local currentPitch = kan.Pitch
  189. local currentVol = kan.Volume
  190. function newTheme(ID,timepos,pitch,vol)
  191. local kanz = kan
  192. --kanz:Stop()
  193. kanz.Volume = vol
  194. --kanz.TimePosition = timepos
  195. kanz.PlaybackSpeed = pitch
  196. kanz.Pitch = pitch
  197. kanz.SoundId = ID
  198. kanz.Name = "wrecked"
  199. kanz.Looped = true
  200. currentThemePlaying = kanz.SoundId
  201. currentVol = kanz.Volume
  202. currentPitch = kanz.Pitch
  203. --kanz:Play()
  204. --coroutine.resume(coroutine.create(function()
  205. --wait(0.05)
  206. --end))
  207. end
  208.  
  209.  
  210. function newThemeCust(ID,timepos,pitch,vol)
  211. local kanz = kan
  212. kanz:Stop()
  213. kanz.Volume = vol
  214. kanz.TimePosition = timepos
  215. kanz.PlaybackSpeed = pitch
  216. kanz.Pitch = pitch
  217. kanz.SoundId = ID
  218. kanz.Name = "wrecked"
  219. kanz.Looped = true
  220. currentThemePlaying = kanz.SoundId
  221. currentVol = kanz.Volume
  222. currentPitch = kanz.Pitch
  223. kanz:Play()
  224. coroutine.resume(coroutine.create(function()
  225. wait(0.05)
  226. end))
  227. end
  228.  
  229. local mutedtog = false
  230.  
  231. function CameraEnshaking(Length,Intensity)
  232. coroutine.resume(coroutine.create(function()
  233.       local intensity = 1*Intensity
  234.       local rotM = 0.01*Intensity
  235. for i = 0, Length, 0.1 do
  236. swait()
  237. intensity = intensity - 0.05*Intensity/Length
  238. rotM = rotM - 0.0005*Intensity/Length
  239.       hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  240.       cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  241. end
  242. Humanoid.CameraOffset = Vec3(0, 0, 0)
  243. end))
  244. end
  245. CamShake=function(Part,Distan,Power,Times)
  246. local de=Part.Position
  247. for i,v in pairs(workspace:children()) do
  248.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  249. for _,c in pairs(v:children()) do
  250. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  251. local Noob=v.Humanoid
  252. if Noob~=nil then
  253. coroutine.resume(coroutine.create(function()
  254. FV = Instance.new("BoolValue", Noob)
  255. FV.Name = "CameraShake"
  256. for ShakeNum=1,Times do
  257. swait()
  258. local ef=Power
  259.   if ef>=1 then
  260.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  261.   else
  262.    ef=Power*10
  263.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  264.   end  
  265. end
  266. Humanoid.CameraOffset = Vector3.new(0,0,0)
  267. FV:Destroy()
  268. end))
  269. CameraShake(Times, Power, Noob)
  270. end
  271. end
  272. end
  273. end
  274. end
  275. end
  276.  
  277. local toggleTag = true
  278. local bilguit = Instance.new("BillboardGui", hed)
  279. bilguit.Adornee = nil
  280. bilguit.Name = "ModeName"
  281. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  282. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  283. local modet = Instance.new("TextLabel", bilguit)
  284. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  285. modet.FontSize = "Size8"
  286. modet.TextScaled = true
  287. modet.TextTransparency = 0
  288. modet.BackgroundTransparency = 1
  289. modet.TextTransparency = 0
  290. modet.TextStrokeTransparency = 0
  291. modet.Font = "Antique"
  292. modet.TextStrokeColor3 = Color3.new(1,0,0)
  293. modet.TextColor3 = Color3.new(0.25,0,0)
  294. modet.Text = "Hopeless Guest"
  295.  
  296.  
  297. function chatfunc(text,color,typet,font,timeex)
  298. local chat = coroutine.wrap(function()
  299. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  300. Character:FindFirstChild("TalkingBillBoard"):destroy()
  301. end
  302. local naeeym2 = Instance.new("BillboardGui",Character)
  303. naeeym2.Size = UDim2.new(0,100,0,40)
  304. naeeym2.StudsOffset = Vector3.new(0,3,0)
  305. naeeym2.Adornee = Character.Head
  306. naeeym2.Name = "TalkingBillBoard"
  307. local tecks2 = Instance.new("TextLabel",naeeym2)
  308. tecks2.BackgroundTransparency = 1
  309. tecks2.BorderSizePixel = 0
  310. tecks2.Text = ""
  311. tecks2.Font = font
  312. tecks2.TextSize = 30
  313. tecks2.TextStrokeTransparency = 0
  314. tecks2.TextColor3 = color
  315. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  316. tecks2.Size = UDim2.new(1,0,0.5,0)
  317. local tecks3 = Instance.new("TextLabel",naeeym2)
  318. tecks3.BackgroundTransparency = 1
  319. tecks3.BorderSizePixel = 0
  320. tecks3.Text = ""
  321. tecks3.Font = font
  322. tecks3.TextSize = 30
  323. tecks3.TextStrokeTransparency = 0
  324. if typet == "Inverted" then
  325. tecks3.TextColor3 = Color3.new(0,0,0)
  326. tecks3.TextStrokeColor3 = color
  327. elseif typet == "Normal" then
  328. tecks3.TextColor3 = color
  329. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  330. end
  331. tecks3.Size = UDim2.new(1,0,0.5,0)
  332. coroutine.resume(coroutine.create(function()
  333. while true do
  334. swait(1)
  335. if chaosmode == true then
  336. tecks2.TextColor3 = BrickColor.random().Color
  337. tecks3.TextStrokeColor3 = BrickColor.random().Color
  338. end
  339. end
  340. end))
  341. modet.TextTransparency = modet.TextTransparency  + 1
  342. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  343. for i = 0, 74*timeex do
  344. swait()
  345. modet.TextTransparency = 1
  346. modet.TextStrokeTransparency = 1
  347. tecks2.Text = text
  348. tecks3.Text = text
  349. end
  350. local randomrot = math.random(1,2)
  351. if randomrot == 1 then
  352. for i = 1, 50 do
  353. swait()
  354. tecks2.Text = text
  355. tecks3.Text = text
  356. modet.TextTransparency = modet.TextTransparency - .02
  357. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  358. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  359. tecks2.TextTransparency = tecks2.TextTransparency + .04
  360. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  361. tecks3.TextTransparency = tecks2.TextTransparency + .04
  362. end
  363. elseif randomrot == 2 then
  364.     for i = 1, 50 do
  365. swait()
  366. tecks2.Text = text
  367. tecks3.Text = text
  368. modet.TextTransparency = modet.TextTransparency - .02
  369. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  370. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks2.TextTransparency = tecks2.TextTransparency + .04
  372. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  373. tecks3.TextTransparency = tecks2.TextTransparency + .04
  374. end
  375. end
  376. modet.TextTransparency = 0
  377. modet.TextStrokeTransparency = 0
  378. if toggleTag == false then
  379. modet.TextTransparency = 1
  380. modet.TextStrokeTransparency = 1
  381. end
  382. naeeym2:Destroy()
  383. end)
  384. chat()
  385. end
  386.  
  387. function bosschatfunc(text,color,watval)
  388. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  389. coroutine.resume(coroutine.create(function()
  390. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  391. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  392. end
  393. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  394. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  395. scrg.Name = "Dialog"
  396. local txtlb = Instance.new("TextLabel",scrg)
  397. txtlb.Text = ""
  398. txtlb.Font = "Bodoni"
  399. txtlb.TextColor3 = Color3.new(0,0,0)
  400. txtlb.TextStrokeTransparency = 0
  401. txtlb.BackgroundTransparency = 0.75
  402. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  403. txtlb.TextStrokeColor3 = color
  404. txtlb.TextScaled = true
  405. txtlb.Size = UDim2.new(1,0,0.25,0)
  406. txtlb.TextXAlignment = "Left"
  407. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  408. local txtlb2 = Instance.new("TextLabel",scrg)
  409. txtlb2.Text = plr.Name.." The Guest:"
  410. txtlb2.Font = "Antique"
  411. txtlb2.TextColor3 = Color3.new(0,0,0)
  412. txtlb2.TextStrokeTransparency = 0
  413. txtlb2.BackgroundTransparency = 1
  414. txtlb2.TextStrokeColor3 = color
  415. txtlb2.TextSize = 40
  416. txtlb2.Size = UDim2.new(1,0,0.25,0)
  417. txtlb2.TextXAlignment = "Left"
  418. txtlb2.Position = UDim2.new(0,0,1,0)
  419. local fvalen = 0.55
  420. local fval = -0.49
  421. coroutine.resume(coroutine.create(function()
  422. while true do
  423. swait()
  424. if chaosmode == true then
  425. txtlb.Rotation = math.random(-1,1)
  426. txtlb2.Rotation = math.random(-1,1)
  427. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  428. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  429. txtlb.TextStrokeColor3 = BrickColor.random().Color
  430. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  431. end
  432. end
  433. end))
  434. coroutine.resume(coroutine.create(function()
  435. while true do
  436. swait()
  437. if scrg.Parent ~= nil then
  438.     fvalen = fvalen - 0.0001
  439. elseif scrg.Parent == nil then
  440. break
  441. end
  442. end
  443. end))
  444. local flol = 1.75
  445. local flil = 1.6
  446. coroutine.resume(coroutine.create(function()
  447.     for i = 0, 9 do
  448.         swait()
  449.         fval = fval + 0.05
  450.         flol = flol - 0.1
  451.         flil = flil - 0.1
  452.         txtlb.Text = ""
  453.         txtlb.Position = UDim2.new(0,0,flol,0)
  454.         txtlb2.Position = UDim2.new(0,0,flil,0)
  455.     end
  456.     txtlb.Text = text
  457. wait(watval)
  458. local valinc = 0
  459. for i = 0, 99 do
  460. swait()
  461. valinc = valinc + 0.0001
  462. flol = flol + valinc
  463. flil = flil + valinc
  464. txtlb.Rotation = txtlb.Rotation + valinc*20
  465. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  466. txtlb.Position = UDim2.new(0,0,flol,0)
  467. txtlb2.Position = UDim2.new(0,0,flil,0)
  468. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  469. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  470. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  471. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  472. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  473. end
  474. scrg:Destroy()
  475. end))
  476. end))
  477. end
  478. end
  479.  
  480.  
  481. local Create = LoadLibrary("RbxUtility").Create
  482.  
  483. CFuncs = { 
  484.     ["Part"] = {
  485.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  486.             local Part = Create("Part"){
  487.                 Parent = Parent,
  488.                 Reflectance = Reflectance,
  489.                 Transparency = Transparency,
  490.                 CanCollide = false,
  491.                 Locked = true,
  492.                 BrickColor = BrickColor.new(tostring(BColor)),
  493.                 Name = Name,
  494.                 Size = Size,
  495.                 Material = Material,
  496.             }
  497.             RemoveOutlines(Part)
  498.             return Part
  499.         end;
  500.     };
  501.    
  502.     ["Mesh"] = {
  503.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  504.             local Msh = Create(Mesh){
  505.                 Parent = Part,
  506.                 Offset = OffSet,
  507.                 Scale = Scale,
  508.             }
  509.             if Mesh == "SpecialMesh" then
  510.                 Msh.MeshType = MeshType
  511.                 Msh.MeshId = MeshId
  512.             end
  513.             return Msh
  514.         end;
  515.     };
  516.    
  517.     ["Mesh"] = {
  518.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  519.             local Msh = Create(Mesh){
  520.                 Parent = Part,
  521.                 Offset = OffSet,
  522.                 Scale = Scale,
  523.             }
  524.             if Mesh == "SpecialMesh" then
  525.                 Msh.MeshType = MeshType
  526.                 Msh.MeshId = MeshId
  527.             end
  528.             return Msh
  529.         end;
  530.     };
  531.    
  532.     ["Weld"] = {
  533.         Create = function(Parent, Part0, Part1, C0, C1)
  534.             local Weld = Create("Weld"){
  535.                 Parent = Parent,
  536.                 Part0 = Part0,
  537.                 Part1 = Part1,
  538.                 C0 = C0,
  539.                 C1 = C1,
  540.             }
  541.             return Weld
  542.         end;
  543.     };
  544.  
  545.     ["Sound"] = {
  546.         Create = function(id, par, vol, pit)
  547.             coroutine.resume(coroutine.create(function()
  548.                 local S = Create("Sound"){
  549.                     Volume = vol,
  550.                                         Name = "EffectSoundo",
  551.                     Pitch = pit or 1,
  552.                     SoundId = id,
  553.                     Parent = par or workspace,
  554.                 }
  555.                 wait()
  556.                 S:play()
  557.                 game:GetService("Debris"):AddItem(S, 10)
  558.             end))
  559.         end;
  560.     };
  561.  
  562.     ["TimeSound"] = {
  563.         Create = function(id, par, vol, pit, timepos)
  564.             coroutine.resume(coroutine.create(function()
  565.                 local S = Create("Sound"){
  566.                     Volume = vol,
  567.                                         Name = "EffectSoundo",
  568.                     Pitch = pit or 1,
  569.                     SoundId = id,
  570.                                         TimePosition = timepos,
  571.                     Parent = par or workspace,
  572.                 }
  573.                 wait()
  574.                 S:play()
  575.                 game:GetService("Debris"):AddItem(S, 10)
  576.             end))
  577.         end;
  578.     };
  579.         ["EchoSound"] = {
  580.         Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  581.             coroutine.resume(coroutine.create(function()
  582.                 local Sas = Create("Sound"){
  583.                     Volume = vol,
  584.                     Name = "EffectSoundo",
  585.                     Pitch = pit or 1,
  586.                     SoundId = id,
  587.                     TimePosition = timepos,
  588.                     Parent = par or workspace,
  589.                 }
  590.                 local E = Create("EchoSoundEffect"){
  591.                     Delay = echodelay,
  592.                     Name = "Echo",
  593.                     Feedback = fedb,
  594.                     DryLevel = dryl,
  595.                     Parent = Sas,
  596.                 }
  597.                 wait()
  598.                 Sas:play()
  599.                 game:GetService("Debris"):AddItem(Sas, delays)
  600.             end))
  601.         end;
  602.     };
  603.  
  604. ["LongSound"] = {
  605.         Create = function(id, par, vol, pit)
  606.             coroutine.resume(coroutine.create(function()
  607.                 local S = Create("Sound"){
  608.                     Volume = vol,
  609.                     Pitch = pit or 1,
  610.                     SoundId = id,
  611.                     Parent = par or workspace,
  612.                 }
  613.                 wait()
  614.                 S:play()
  615.                 game:GetService("Debris"):AddItem(S, 60)
  616.             end))
  617.         end;
  618.     };
  619.    
  620.     ["ParticleEmitter"] = {
  621.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  622.             local fp = Create("ParticleEmitter"){
  623.                 Parent = Parent,
  624.                 Color = ColorSequence.new(Color1, Color2),
  625.                 LightEmission = LightEmission,
  626.                 Size = Size,
  627.                 Texture = Texture,
  628.                 Transparency = Transparency,
  629.                 ZOffset = ZOffset,
  630.                 Acceleration = Accel,
  631.                 Drag = Drag,
  632.                 LockedToPart = LockedToPart,
  633.                 VelocityInheritance = VelocityInheritance,
  634.                 EmissionDirection = EmissionDirection,
  635.                 Enabled = Enabled,
  636.                 Lifetime = LifeTime,
  637.                 Rate = Rate,
  638.                 Rotation = Rotation,
  639.                 RotSpeed = RotSpeed,
  640.                 Speed = Speed,
  641.                 VelocitySpread = VelocitySpread,
  642.             }
  643.             return fp
  644.         end;
  645.     };
  646.  
  647.     CreateTemplate = {
  648.    
  649.     };
  650. }
  651.  
  652.  
  653.  
  654. New = function(Object, Parent, Name, Data)
  655.     local Object = Instance.new(Object)
  656.     for Index, Value in pairs(Data or {}) do
  657.         Object[Index] = Value
  658.     end
  659.     Object.Parent = Parent
  660.     Object.Name = Name
  661.     return Object
  662. end
  663. local halocolor = BrickColor.new("Pastel light blue")
  664. local halocolor2 = BrickColor.new("Cool yellow")
  665. local starcolor = BrickColor.new("Bright yellow")
  666. local lunacolor = BrickColor.new("Navy blue")
  667. local lunacolor2 = BrickColor.new("Bright blue")
  668. local wepcolor = BrickColor.new("Really black")
  669. local maincolor = BrickColor.new("Really black")
  670. local m = Instance.new("Model",char)
  671. local m2 = Instance.new("Model",char)
  672. local m3 = Instance.new("Model",char)
  673. local mw1 = Instance.new("Model",char)
  674. local mw2 = Instance.new("Model",char)
  675.  
  676.  
  677. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  678.   local gui = it(GuiType)
  679.   gui.Parent = parent
  680.   gui.Text = text
  681.   gui.BackgroundTransparency = backtrans
  682.   gui.BackgroundColor3 = backcol
  683.   gui.SizeConstraint = "RelativeXY"
  684.   gui.TextXAlignment = "Center"
  685.   gui.TextYAlignment = "Center"
  686.   gui.Position = pos
  687.   gui.Size = size
  688.   gui.Font = "SourceSans"
  689.   gui.FontSize = "Size14"
  690.   gui.TextWrapped = false
  691.   gui.TextStrokeTransparency = 0
  692.   gui.TextColor = BrickColor.new("White")
  693.   return gui
  694. end
  695. --------------------------- GUI STUFF
  696. local basgui = it("GuiMain")
  697. basgui.Parent = plr.PlayerGui
  698. basgui.Name = "VISgui"
  699. local fullscreenz = it("Frame")
  700. fullscreenz.Parent = basgui
  701. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  702. fullscreenz.BackgroundTransparency = 1
  703. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  704. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  705. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  706. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  707. imgl2.BackgroundTransparency = 1
  708. imgl2.BorderSizePixel = 0
  709. imgl2.ImageTransparency = 0.5
  710. imgl2.ImageColor3 = Color3.new(1,0,0)
  711. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  712. imgl2.Size = UDim2.new(0,1000,0,1000)
  713. imgl2.Image = "rbxassetid://2325939897"
  714. local techc = imgl2:Clone()
  715. techc.Parent = fullscreenz
  716. techc.ImageTransparency = 0
  717. techc.Size = UDim2.new(0,900,0,900)
  718. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  719. techc.ImageColor3 = Color3.new(1,0,0)
  720. techc.Image = "rbxassetid://2273224484"
  721. local circl = imgl2:Clone()
  722. circl.Parent = fullscreenz
  723. circl.ImageTransparency = 0
  724. circl.Size = UDim2.new(0,550,0,550)
  725. circl.Position = UDim2.new(0.75,25,0.55,25)
  726. circl.ImageColor3 = Color3.new(0,0,0)
  727. circl.Image = "rbxassetid://2312119891"
  728. local circl2 = imgl2:Clone()
  729. circl2.Parent = fullscreenz
  730. circl2.ImageTransparency = 0
  731. circl2.Size = UDim2.new(0,700,0,700)
  732. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  733. circl2.ImageColor3 = Color3.new(1,0,0)
  734. circl2.Image = "rbxassetid://2312119891"
  735. local imgl2b = imgl2:Clone()
  736. imgl2b.Parent = fullscreenz
  737. imgl2b.ImageTransparency = 0
  738. imgl2b.Size = UDim2.new(0,800,0,800)
  739. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  740. imgl2b.ImageColor3 = Color3.new(0,0,0)
  741. local ned = Instance.new("TextLabel",fullscreenz)
  742. ned.ZIndex = 2
  743. ned.Font = "Arcade"
  744. ned.BackgroundTransparency = 1
  745. ned.BorderSizePixel = 0.65
  746. ned.Size = UDim2.new(0.3,0,0.2,0)
  747. ned.Position = UDim2.new(0.7,0,0.8,0)
  748. ned.TextColor3 = BrickColor.new("Really red").Color
  749. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  750. ned.TextScaled = true
  751. ned.TextStrokeTransparency = 0
  752. ned.Text = "Hopeless Guest"
  753. ned.TextSize = 24
  754. ned.Rotation = 1
  755. ned.TextXAlignment = "Right"
  756. ned.TextYAlignment = "Bottom"
  757.  
  758. local extrawingmod1 = Instance.new("Model",char)
  759. local extrawingmod2 = Instance.new("Model",char)
  760.  
  761. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  762. local p = Instance.new("Part")
  763. p.TopSurface = 0
  764. p.BottomSurface = 0
  765. p.Parent = parent
  766. p.Size = Vector3.new(0.1,0.1,0.1)
  767. p.Transparency = transparency
  768. p.Reflectance = reflectance
  769. p.CanCollide = false
  770. p.Locked = true
  771. p.BrickColor = brickcolor
  772. p.Material = material
  773. return p
  774. end
  775.  
  776. function CreateMesh(parent,meshtype,x1,y1,z1)
  777. local mesh = Instance.new("SpecialMesh",parent)
  778. mesh.MeshType = meshtype
  779. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  780. return mesh
  781. end
  782.  
  783. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  784. local mesh = Instance.new("SpecialMesh",parent)
  785. mesh.MeshType = "FileMesh"
  786. mesh.MeshId = meshid
  787. mesh.Scale = Vector3.new(x1,y1,z1)
  788. return mesh
  789. end
  790.  
  791.  
  792. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  793. local mesh = Instance.new("SpecialMesh",parent)
  794. mesh.MeshType = "FileMesh"
  795. mesh.MeshId = meshid
  796. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  797. mesh.Scale = Vector3.new(x1,y1,z1)
  798. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  799. return mesh
  800. end
  801.  
  802. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  803. local weld = Instance.new("Weld")
  804. weld.Parent = parent
  805. weld.Part0 = part0
  806. weld.Part1 = part1
  807. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  808. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  809. return weld
  810. end
  811.  
  812.  
  813. --------------
  814. --------------
  815. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  816. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  817. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  818. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  819.  
  820. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0,0,0)
  822. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  823. local valuaring = 10
  824. for i = 0, 49 do
  825.     valuaring = valuaring + 10
  826. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  827. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  828. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  829. end
  830.  
  831. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  832. CreateMesh(handle,"Brick",0,0,0)
  833. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  834. local valuaring = 10
  835. for i = 0, 49 do
  836.     valuaring = valuaring + 10
  837. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  838. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  839. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  840. end
  841.  
  842.  
  843. local handle = CreateParta(m,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  845. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  846.  
  847. --- Left wing.
  848.  
  849. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  850. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  851. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  852.  
  853. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. A0 = Instance.new('Attachment',wed)
  860. A0.Position = vt(0,0.25,0.25)
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,3)
  863. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. A1 = Instance.new('Attachment',wed)
  865. A1.Position = vt(0,-0.25,-2)
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,3,0.5)
  868. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  869.  
  870. tl1 = Instance.new('Trail',wed)
  871. tl1.Attachment0 = A1
  872. tl1.Attachment1 = A0
  873. tl1.Texture = "rbxassetid://2108945559"
  874. tl1.LightEmission = 1
  875. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  876. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  877. tl1.Lifetime = 0.6
  878.  
  879.  
  880. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  881. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  882. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  883.  
  884. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  885. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  886. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  887. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  889. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  890. A0 = Instance.new('Attachment',wed)
  891. A0.Position = vt(0,0.25,0.25)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,3)
  894. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895. A1 = Instance.new('Attachment',wed)
  896. A1.Position = vt(0,-0.25,-2)
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,3,0.5)
  899. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900.  
  901. tl2 = Instance.new('Trail',wed)
  902. tl2.Attachment0 = A1
  903. tl2.Attachment1 = A0
  904. tl2.Texture = "rbxassetid://2108945559"
  905. tl2.LightEmission = 1
  906. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  907. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  908. tl2.Lifetime = 0.6
  909.  
  910. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  911. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  912. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  913.  
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. A0 = Instance.new('Attachment',wed)
  921. A0.Position = vt(0,0.25,0.25)
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,3)
  924. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925. A1 = Instance.new('Attachment',wed)
  926. A1.Position = vt(0,-0.25,-2)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,3,0.5)
  929. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  930.  
  931. tl3 = Instance.new('Trail',wed)
  932. tl3.Attachment0 = A1
  933. tl3.Attachment1 = A0
  934. tl3.Texture = "rbxassetid://2108945559"
  935. tl3.LightEmission = 1
  936. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  937. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  938. tl3.Lifetime = 0.6
  939.  
  940. tl1.Enabled = false
  941. tl2.Enabled = false
  942. tl3.Enabled = false
  943. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946.  
  947. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  950. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  953. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,3)
  955. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  956. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,3,0.5)
  958. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  959.  
  960. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  961. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  962. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  963.  
  964. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  966. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  969. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,3)
  972. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,3,0.5)
  975. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976.  
  977. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  978. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  979. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980.  
  981. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  983. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  986. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,3)
  989. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,3,0.5)
  992. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  993.  
  994. -- Right wing.
  995.  
  996. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  997. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  998. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  999.  
  1000. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1002. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1003. A0 = Instance.new('Attachment',wed)
  1004. A0.Position = vt(0,0.25,0.25)
  1005. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1007. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1010. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1011. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1013. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1014. A1 = Instance.new('Attachment',wed)
  1015. A1.Position = vt(0,2,0.25)
  1016.  
  1017. tr1 = Instance.new('Trail',wed)
  1018. tr1.Attachment0 = A1
  1019. tr1.Attachment1 = A0
  1020. tr1.Texture = "rbxassetid://2108945559"
  1021. tr1.LightEmission = 1
  1022. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1023. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1024. tr1.Lifetime = 0.6
  1025.  
  1026. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1029.  
  1030. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1033. A0 = Instance.new('Attachment',wed)
  1034. A0.Position = vt(0,0.25,0.25)
  1035. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1037. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1040. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1041. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1043. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1044. A1 = Instance.new('Attachment',wed)
  1045. A1.Position = vt(0,2,0.25)
  1046.  
  1047. tr2 = Instance.new('Trail',wed)
  1048. tr2.Attachment0 = A1
  1049. tr2.Attachment1 = A0
  1050. tr2.Texture = "rbxassetid://2108945559"
  1051. tr2.LightEmission = 1
  1052. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1053. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1054. tr2.Lifetime = 0.6
  1055.  
  1056. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1059.  
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063. A0 = Instance.new('Attachment',wed)
  1064. A0.Position = vt(0,0.25,0.25)
  1065. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1067. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1070. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1073. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1074. A1 = Instance.new('Attachment',wed)
  1075. A1.Position = vt(0,2,0.25)
  1076.  
  1077. tr3 = Instance.new('Trail',wed)
  1078. tr3.Attachment0 = A1
  1079. tr3.Attachment1 = A0
  1080. tr3.Texture = "rbxassetid://2108945559"
  1081. tr3.LightEmission = 1
  1082. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1083. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1084. tr3.Lifetime = 0.6
  1085.  
  1086.  
  1087. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1088. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1089. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1090.  
  1091. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1094. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1096. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1097. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1099. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1100. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1102. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1103.  
  1104. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1105. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1106. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107.  
  1108. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1110. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1112. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1113. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1116. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1119. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1120.  
  1121. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1122. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1123. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1124.  
  1125. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1126. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1127. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1128. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1129. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1130. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1131. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1133. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1136. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1137.  
  1138. --HERES THE RING
  1139.  
  1140.  
  1141. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1142. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1143. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1145. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1146. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1147. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1148. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1149. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1150.  
  1151.  
  1152. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1154. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1155.  
  1156. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1157. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1158. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1159.  
  1160.  
  1161.  
  1162. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1163. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1164. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1165.  
  1166. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1167. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1168. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1169.  
  1170. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1171. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1172. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1173.  
  1174. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1175. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1176. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1178. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1179. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1180.  
  1181. --- second ring
  1182.  
  1183.  
  1184. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1185. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1186. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1187.  
  1188. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1189. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1190. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1191.  
  1192.  
  1193.  
  1194. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1195. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1196. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1197.  
  1198. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1199. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1200. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1201.  
  1202. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1203. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1204. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1205.  
  1206. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1207. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1208. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1209. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1210. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1211. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1212.  
  1213.  
  1214.  
  1215. for i, v in pairs(m:GetChildren()) do
  1216. if v:IsA("Part") then
  1217. v.BrickColor = BrickColor.new("Really black")
  1218. v.Material = "Glass"
  1219. end
  1220. end
  1221. for i, v in pairs(m2:GetChildren()) do
  1222. if v:IsA("Part") then
  1223. v.BrickColor = BrickColor.new("Crimson")
  1224. v.Material = "Granite"
  1225. end
  1226. end
  1227. for i, v in pairs(m3:GetChildren()) do
  1228. if v:IsA("Part") then
  1229. v.BrickColor = BrickColor.new("Really red")
  1230. v.Material = "Neon"
  1231. end
  1232. end
  1233. for i, v in pairs(mw2:GetChildren()) do
  1234. if v:IsA("Part") then
  1235. v.BrickColor = BrickColor.new("Really red")
  1236. v.Material = "Neon"
  1237. end
  1238. end
  1239. for i, v in pairs(mw1:GetChildren()) do
  1240. if v:IsA("Part") then
  1241. v.Transparency = 1
  1242. v.BrickColor = BrickColor.new("Really red")
  1243. v.Material = "Neon"
  1244. end
  1245. end
  1246. for i, v in pairs(extrawingmod1:GetChildren()) do
  1247. if v:IsA("Part") then
  1248. v.Transparency = 1
  1249. v.BrickColor = BrickColor.new("White")
  1250. v.Material = "Neon"
  1251. end
  1252. end
  1253. for i, v in pairs(extrawingmod2:GetChildren()) do
  1254. if v:IsA("Part") then
  1255. v.Transparency = 1
  1256. v.BrickColor = BrickColor.new("White")
  1257. v.Material = "Neon"
  1258. end
  1259. end
  1260. local MAINRUINCOLOR = BrickColor.new("Really red")
  1261. ------
  1262.  
  1263.  
  1264. function RemoveOutlines(part)
  1265.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1266. end
  1267. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1268.   local Part = Create("Part")({
  1269.     Parent = Parent,
  1270.     Reflectance = Reflectance,
  1271.     Transparency = Transparency,
  1272.     CanCollide = false,
  1273.     Locked = true,
  1274.     BrickColor = BrickColor.new(tostring(BColor)),
  1275.     Name = Name,
  1276.     Size = Size,
  1277.     Material = Material
  1278.   })
  1279.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1280.   RemoveOutlines(Part)
  1281.   return Part
  1282. end
  1283. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1284.   local Msh = Create(Mesh)({
  1285.     Parent = Part,
  1286.     Offset = OffSet,
  1287.     Scale = Scale
  1288.   })
  1289.   if Mesh == "SpecialMesh" then
  1290.     Msh.MeshType = MeshType
  1291.     Msh.MeshId = MeshId
  1292.   end
  1293.   return Msh
  1294. end
  1295. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1296.   local Weld = Create("Weld")({
  1297.     Parent = Parent,
  1298.     Part0 = Part0,
  1299.     Part1 = Part1,
  1300.     C0 = C0,
  1301.     C1 = C1
  1302.   })
  1303.   return Weld
  1304. end
  1305.  
  1306. Player = plr
  1307. Character=Player.Character
  1308. PlayerGui=Player.PlayerGui
  1309. Backpack=Player.Backpack
  1310. Torso=Character.Torso
  1311. Head=Character.Head
  1312. Humanoid=Character.Humanoid
  1313. m=Instance.new('Model',Character)
  1314. LeftArm=Character["Left Arm"]
  1315. LeftLeg=Character["Left Leg"]
  1316. RightArm=Character["Right Arm"]
  1317. RightLeg=Character["Right Leg"]
  1318. LS=Torso["Left Shoulder"]
  1319. LH=Torso["Left Hip"]
  1320. RS=Torso["Right Shoulder"]
  1321. RH=Torso["Right Hip"]
  1322. Face = Head.face
  1323. Neck=Torso.Neck
  1324. it=Instance.new
  1325. attacktype=1
  1326. vt=Vector3.new
  1327. cf=CFrame.new
  1328. euler=CFrame.fromEulerAnglesXYZ
  1329. angles=CFrame.Angles
  1330. cloaked=false
  1331. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1332. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1333. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1334. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1335. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1336. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1337. RootPart=Character.HumanoidRootPart
  1338. RootJoint=RootPart.RootJoint
  1339. RootCF=euler(-1.57,0,3.14)
  1340. attack = false
  1341. attackdebounce = false
  1342. deb=false
  1343. equipped=true
  1344. hand=false
  1345. combo=0
  1346. mana=0
  1347. trispeed=.2
  1348. attackmode='none'
  1349. local idle=0
  1350. local Anim="Idle"
  1351. local Effects={}
  1352. local gun=false
  1353. local shoot=false
  1354. local sine = 0
  1355. local change = 1
  1356.  
  1357. function RecolorTextAndRename(name,col1,col2,font)
  1358. modet.TextStrokeColor3 = col2
  1359. modet.TextColor3 = col1
  1360. modet.Font = font
  1361. modet.Text = name
  1362. techc.ImageColor3 = col2
  1363. circl.ImageColor3 = col2
  1364. circl2.ImageColor3 = col1
  1365. imgl2.ImageColor3 = col1
  1366. imgl2b.ImageColor3 = col2
  1367. ned.Text = name
  1368. ned.TextColor3 = col1
  1369. ned.TextStrokeColor3 = col2
  1370. end
  1371. --save shoulders
  1372. RSH, LSH=nil, nil
  1373. --welds
  1374. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1375. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1376. LH=Torso["Left Hip"]
  1377. RH=Torso["Right Hip"]
  1378. TorsoColor=Torso.BrickColor
  1379. function NoOutline(Part)
  1380. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1381. end
  1382. ch=Character
  1383. RSH=ch.Torso["Right Shoulder"]
  1384. LSH=ch.Torso["Left Shoulder"]
  1385. --
  1386. RSH.Parent=nil
  1387. LSH.Parent=nil
  1388. --
  1389. RW.Name="Right Shoulder"
  1390. RW.Part0=ch.Torso
  1391. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1392. RW.C1=cf(0, 0.5, 0)
  1393. RW.Part1=ch["Right Arm"]
  1394. RW.Parent=ch.Torso
  1395. --
  1396. LW.Name="Left Shoulder"
  1397. LW.Part0=ch.Torso
  1398. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1399. LW.C1=cf(0, 0.5, 0)
  1400. LW.Part1=ch["Left Arm"]
  1401. LW.Parent=ch.Torso
  1402.  
  1403. local Stats=Instance.new("BoolValue")
  1404. Stats.Name="Stats"
  1405. Stats.Parent=Character
  1406. local Atk=Instance.new("NumberValue")
  1407. Atk.Name="Damage"
  1408. Atk.Parent=Stats
  1409. Atk.Value=1
  1410. local Def=Instance.new("NumberValue")
  1411. Def.Name="Defense"
  1412. Def.Parent=Stats
  1413. Def.Value=1
  1414. local Speed=Instance.new("NumberValue")
  1415. Speed.Name="Speed"
  1416. Speed.Parent=Stats
  1417. Speed.Value=1
  1418. local Mvmt=Instance.new("NumberValue")
  1419. Mvmt.Name="Movement"
  1420. Mvmt.Parent=Stats
  1421. Mvmt.Value=1
  1422.  
  1423. local donum=0
  1424. local ast = {744586075,385254610}
  1425.  
  1426. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1427. local fp=it("Part")
  1428. fp.formFactor=formfactor
  1429. fp.Parent=parent
  1430. fp.Reflectance=reflectance
  1431. fp.Transparency=transparency
  1432. fp.CanCollide=false
  1433. fp.Locked=true
  1434. fp.BrickColor=brickcolor
  1435. fp.Name=name
  1436. fp.Size=size
  1437. fp.Position=Torso.Position
  1438. NoOutline(fp)
  1439. fp.Material="SmoothPlastic"
  1440. fp:BreakJoints()
  1441. return fp
  1442. end
  1443.  
  1444. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1445. local mesh=it(Mesh)
  1446. mesh.Parent=part
  1447. if Mesh=="SpecialMesh" then
  1448. mesh.MeshType=meshtype
  1449. if meshid~="nil" then
  1450. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1451. end
  1452. end
  1453. mesh.Offset=offset
  1454. mesh.Scale=scale
  1455. return mesh
  1456. end
  1457.  
  1458. function weld(parent,part0,part1,c0)
  1459. local weld=it("Weld")
  1460. weld.Parent=parent
  1461. weld.Part0=part0
  1462. weld.Part1=part1
  1463. weld.C0=c0
  1464. return weld
  1465. end
  1466.  
  1467. local Color1=Torso.BrickColor
  1468.  
  1469. local bodvel=Instance.new("BodyVelocity")
  1470. local bg=Instance.new("BodyGyro")
  1471.  
  1472. --------- SazEreno's Artificial HB --------------
  1473. ArtificialHB = Instance.new("BindableEvent", script)
  1474. ArtificialHB.Name = "ArtificialHB"
  1475.  
  1476. script:WaitForChild("ArtificialHB")
  1477. Frame_Speed = 1 / 60
  1478. frame = Frame_Speed
  1479. tf = 0
  1480. allowframeloss = false
  1481. tossremainder = false
  1482. lastframe = tick()
  1483. script.ArtificialHB:Fire()
  1484.  
  1485. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1486.     tf = tf + s
  1487.     if tf >= frame then
  1488.         if allowframeloss then
  1489.             script.ArtificialHB:Fire()
  1490.             lastframe = tick()
  1491.         else
  1492.             for i = 1, math.floor(tf / frame) do
  1493.                 script.ArtificialHB:Fire()
  1494.             end
  1495.         lastframe = tick()
  1496.         end
  1497.         if tossremainder then
  1498.             tf = 0
  1499.         else
  1500.             tf = tf - frame * math.floor(tf / frame)
  1501.         end
  1502.     end
  1503. end)
  1504.  
  1505. ------------------
  1506. function swait(num)
  1507. if num == 0 or num == nil then
  1508.         ArtificialHB.Event:wait()
  1509.     else
  1510.         for i = 1, num do
  1511.             ArtificialHB.Event:wait()
  1512.         end
  1513.     end
  1514. end
  1515. -------- RAINBOW LEAVE IT TO ME
  1516. local r = 255
  1517. local g = 0
  1518. local b = 0
  1519. coroutine.resume(coroutine.create(function()
  1520. while wait() do
  1521.     for i = 0, 254/5 do
  1522.         swait()
  1523.         g = g + 5
  1524.     end
  1525.     for i = 0, 254/5 do
  1526.         swait()
  1527.         r = r - 5
  1528.     end
  1529.     for i = 0, 254/5 do
  1530.         swait()
  1531.         b = b + 5
  1532.     end
  1533.     for i = 0, 254/5 do
  1534.         swait()
  1535.         g = g - 5
  1536.     end
  1537.     for i = 0, 254/5 do
  1538.         swait()
  1539.         r = r + 5
  1540.     end
  1541.     for i = 0, 254/5 do
  1542.         swait()
  1543.         b = b - 5
  1544.     end
  1545. end
  1546. end))
  1547.  
  1548.  
  1549. so = function(id,par,vol,pit)
  1550. coroutine.resume(coroutine.create(function()
  1551. local sou = Instance.new("Sound",par or workspace)
  1552. sou.Volume=vol
  1553. sou.Pitch=pit or 1
  1554. sou.SoundId=id
  1555. swait()
  1556. sou:play()
  1557. game:GetService("Debris"):AddItem(sou,6)
  1558. end))
  1559. end
  1560.  
  1561. function clerp(a,b,t)
  1562. local qa = {QuaternionFromCFrame(a)}
  1563. local qb = {QuaternionFromCFrame(b)}
  1564. local ax, ay, az = a.x, a.y, a.z
  1565. local bx, by, bz = b.x, b.y, b.z
  1566. local _t = 1-t
  1567. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1568. end
  1569.  
  1570. function QuaternionFromCFrame(cf)
  1571. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1572. local trace = m00 + m11 + m22
  1573. if trace > 0 then
  1574. local s = math.sqrt(1 + trace)
  1575. local recip = 0.5/s
  1576. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1577. else
  1578. local i = 0
  1579. if m11 > m00 then
  1580. i = 1
  1581. end
  1582. if m22 > (i == 0 and m00 or m11) then
  1583. i = 2
  1584. end
  1585. if i == 0 then
  1586. local s = math.sqrt(m00-m11-m22+1)
  1587. local recip = 0.5/s
  1588. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1589. elseif i == 1 then
  1590. local s = math.sqrt(m11-m22-m00+1)
  1591. local recip = 0.5/s
  1592. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1593. elseif i == 2 then
  1594. local s = math.sqrt(m22-m00-m11+1)
  1595. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1596. end
  1597. end
  1598. end
  1599.  
  1600. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1601. local xs, ys, zs = x + x, y + y, z + z
  1602. local wx, wy, wz = w*xs, w*ys, w*zs
  1603. local xx = x*xs
  1604. local xy = x*ys
  1605. local xz = x*zs
  1606. local yy = y*ys
  1607. local yz = y*zs
  1608. local zz = z*zs
  1609. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1610. end
  1611.  
  1612. function QuaternionSlerp(a, b, t)
  1613. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1614. local startInterp, finishInterp;
  1615. if cosTheta >= 0.0001 then
  1616. if (1 - cosTheta) > 0.0001 then
  1617. local theta = math.acos(cosTheta)
  1618. local invSinTheta = 1/math.sin(theta)
  1619. startInterp = math.sin((1-t)*theta)*invSinTheta
  1620. finishInterp = math.sin(t*theta)*invSinTheta  
  1621. else
  1622. startInterp = 1-t
  1623. finishInterp = t
  1624. end
  1625. else
  1626. if (1+cosTheta) > 0.0001 then
  1627. local theta = math.acos(-cosTheta)
  1628. local invSinTheta = 1/math.sin(theta)
  1629. startInterp = math.sin((t-1)*theta)*invSinTheta
  1630. finishInterp = math.sin(t*theta)*invSinTheta
  1631. else
  1632. startInterp = t-1
  1633. finishInterp = t
  1634. end
  1635. end
  1636. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1637. end
  1638.  
  1639. local function CFrameFromTopBack(at, top, back)
  1640. local right = top:Cross(back)
  1641. return CFrame.new(at.x, at.y, at.z,
  1642. right.x, top.x, back.x,
  1643. right.y, top.y, back.y,
  1644. right.z, top.z, back.z)
  1645. end
  1646.  
  1647. function Triangle(a, b, c)
  1648. local edg1 = (c-a):Dot((b-a).unit)
  1649. local edg2 = (a-b):Dot((c-b).unit)
  1650. local edg3 = (b-c):Dot((a-c).unit)
  1651. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1652. a, b, c = a, b, c
  1653. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1654. a, b, c = b, c, a
  1655. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1656. a, b, c = c, a, b
  1657. else
  1658. assert(false, "unreachable")
  1659. end
  1660.  
  1661. local len1 = (c-a):Dot((b-a).unit)
  1662. local len2 = (b-a).magnitude - len1
  1663. local width = (a + (b-a).unit*len1 - c).magnitude
  1664.  
  1665. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1666.  
  1667. local list = {}
  1668.  
  1669. if len1 > 0.01 then
  1670. local w1 = Instance.new('WedgePart', m)
  1671. game:GetService("Debris"):AddItem(w1,5)
  1672. w1.Material = "SmoothPlastic"
  1673. w1.FormFactor = 'Custom'
  1674. w1.BrickColor = BrickColor.new("Really red")
  1675. w1.Transparency = 0
  1676. w1.Reflectance = 0
  1677. w1.Material = "SmoothPlastic"
  1678. w1.CanCollide = false
  1679. local l1 = Instance.new("PointLight",w1)
  1680. l1.Color = Color3.new(170,0,0)
  1681. NoOutline(w1)
  1682. local sz = Vector3.new(0.2, width, len1)
  1683. w1.Size = sz
  1684. local sp = Instance.new("SpecialMesh",w1)
  1685. sp.MeshType = "Wedge"
  1686. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1687. w1:BreakJoints()
  1688. w1.Anchored = true
  1689. w1.Parent = workspace
  1690. w1.Transparency = 0.7
  1691. table.insert(Effects,{w1,"Disappear",.01})
  1692. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1693. table.insert(list,w1)
  1694. end
  1695.  
  1696. if len2 > 0.01 then
  1697. local w2 = Instance.new('WedgePart', m)
  1698. game:GetService("Debris"):AddItem(w2,5)
  1699. w2.Material = "SmoothPlastic"
  1700. w2.FormFactor = 'Custom'
  1701. w2.BrickColor = BrickColor.new("Really red")
  1702. w2.Transparency = 0
  1703. w2.Reflectance = 0
  1704. w2.Material = "SmoothPlastic"
  1705. w2.CanCollide = false
  1706. local l2 = Instance.new("PointLight",w2)
  1707. l2.Color = Color3.new(170,0,0)
  1708. NoOutline(w2)
  1709. local sz = Vector3.new(0.2, width, len2)
  1710. w2.Size = sz
  1711. local sp = Instance.new("SpecialMesh",w2)
  1712. sp.MeshType = "Wedge"
  1713. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1714. w2:BreakJoints()
  1715. w2.Anchored = true
  1716. w2.Parent = workspace
  1717. w2.Transparency = 0.7
  1718. table.insert(Effects,{w2,"Disappear",.01})
  1719. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1720. table.insert(list,w2)
  1721. end
  1722. return unpack(list)
  1723. end
  1724.  
  1725.  
  1726. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1727.   if hit.Parent == nil then
  1728.     return
  1729.   end
  1730.   local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1731.   for _, v in pairs(hit.Parent:children()) do
  1732.     if v:IsA("Humanoid") then
  1733.       h = v
  1734.     end
  1735.   end
  1736.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1737.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1738.       return
  1739.     end
  1740.     local c = Create("ObjectValue")({
  1741.       Name = "creator",
  1742.       Value = game:GetService("Players").k_llito
  1743.       Parent = h
  1744.     })
  1745.     game:GetService("Debris"):AddItem(c, 0.5)
  1746.     if HitSound ~= nil and HitPitch ~= nil then
  1747.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1748.     end
  1749.     local Damage = math.random(minim, maxim)
  1750.     local blocked = false
  1751.     local block = hit.Parent:findFirstChild("Block")
  1752.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1753.       blocked = true
  1754.       block.Value = block.Value - 1
  1755.       print(block.Value)
  1756.     end
  1757.     if blocked == false then
  1758.       HitHealth = h.Health
  1759.       h.MaxHealth = 100
  1760.       h.Health = h.Health - Damage
  1761.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1762.         print("gained kill")
  1763.         dmg(h.Parent)
  1764.       end
  1765.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1766.     else
  1767.       h.Health = h.Health - Damage / 2
  1768.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1769.     end
  1770.     if Type == "Knockdown" then
  1771.       local hum = hit.Parent.Humanoid
  1772.       hum.PlatformStand = true
  1773.       coroutine.resume(coroutine.create(function(HHumanoid)
  1774.         swait(1)
  1775.         HHumanoid.PlatformStand = false
  1776.       end), hum)
  1777.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1778.       local bodvol = Create("BodyVelocity")({
  1779.         velocity = angle * knockback,
  1780.         P = 5000,
  1781.         maxForce = Vector3.new(8000, 8000, 8000),
  1782.         Parent = hit
  1783.       })
  1784.       local rl = Create("BodyAngularVelocity")({
  1785.         P = 3000,
  1786.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1787.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1788.         Parent = hit
  1789.       })
  1790.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1791.       game:GetService("Debris"):AddItem(rl, 0.5)
  1792.     elseif Type == "Normal" then
  1793.       local vp = Create("BodyVelocity")({
  1794.         P = 500,
  1795.         maxForce = Vector3.new(math.huge, 0, math.huge),
  1796.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1797.       })
  1798.       if knockback > 0 then
  1799.         vp.Parent = hit.Parent.Head
  1800.       end
  1801.       game:GetService("Debris"):AddItem(vp, 0.5)
  1802.     elseif Type == "Up" then
  1803.       local bodyVelocity = Create("BodyVelocity")({
  1804.         velocity = Vector3.new(0, 20, 0),
  1805.         P = 5000,
  1806.         maxForce = Vector3.new(8000, 8000, 8000),
  1807.         Parent = hit
  1808.       })
  1809.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1810.       local bodyVelocity = Create("BodyVelocity")({
  1811.         velocity = Vector3.new(0, 20, 0),
  1812.         P = 5000,
  1813.         maxForce = Vector3.new(8000, 8000, 8000),
  1814.         Parent = hit
  1815.       })
  1816.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1817.     elseif Type == "Leech" then
  1818.       local hum = hit.Parent.Humanoid
  1819.       if hum ~= nil then
  1820.         for i = 0, 2 do
  1821.           Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1822.         end
  1823.         Humanoid.Health = Humanoid.Health + 10
  1824.       end
  1825.     elseif Type == "UpKnock" then
  1826.       local hum = hit.Parent.Humanoid
  1827.       hum.PlatformStand = true
  1828.       if hum ~= nil then
  1829.         hitr = true
  1830.       end
  1831.       coroutine.resume(coroutine.create(function(HHumanoid)
  1832.         swait(5)
  1833.         HHumanoid.PlatformStand = false
  1834.         hitr = false
  1835.       end), hum)
  1836.       local bodyVelocity = Create("BodyVelocity")({
  1837.         velocity = Vector3.new(0, 20, 0),
  1838.         P = 5000,
  1839.         maxForce = Vector3.new(8000, 8000, 8000),
  1840.         Parent = hit
  1841.       })
  1842.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1843.       local bodyVelocity = Create("BodyVelocity")({
  1844.         velocity = Vector3.new(0, 20, 0),
  1845.         P = 5000,
  1846.         maxForce = Vector3.new(8000, 8000, 8000),
  1847.         Parent = hit
  1848.       })
  1849.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1850.     elseif Type == "Snare" then
  1851.       local bp = Create("BodyPosition")({
  1852.         P = 2000,
  1853.         D = 100,
  1854.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1855.         position = hit.Parent.Torso.Position,
  1856.         Parent = hit.Parent.Torso
  1857.       })
  1858.       game:GetService("Debris"):AddItem(bp, 1)
  1859.     elseif Type == "Slashnare" then
  1860.       Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1861.       for i = 1, math.random(4, 5) do
  1862.         Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1863.       end
  1864.       local bp = Create("BodyPosition")({
  1865.         P = 2000,
  1866.         D = 100,
  1867.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1868.         position = hit.Parent.Torso.Position,
  1869.         Parent = hit.Parent.Torso
  1870.       })
  1871.       game:GetService("Debris"):AddItem(bp, 1)
  1872.     elseif Type == "Spike" then
  1873.       CreateBigIceSword(hit.Parent.Torso.CFrame)
  1874.       local bp = Create("BodyPosition")({
  1875.         P = 2000,
  1876.         D = 100,
  1877.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1878.         position = hit.Parent.Torso.Position,
  1879.         Parent = hit.Parent.Torso
  1880.       })
  1881.       game:GetService("Debris"):AddItem(bp, 1)
  1882.     elseif Type == "Freeze" then
  1883.       local BodPos = Create("BodyPosition")({
  1884.         P = 50000,
  1885.         D = 1000,
  1886.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1887.         position = hit.Parent.Torso.Position,
  1888.         Parent = hit.Parent.Torso
  1889.       })
  1890.       local BodGy = Create("BodyGyro")({
  1891.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1892.         P = 20000,
  1893.         Parent = hit.Parent.Torso,
  1894.         cframe = hit.Parent.Torso.CFrame
  1895.       })
  1896.       hit.Parent.Torso.Anchored = true
  1897.       coroutine.resume(coroutine.create(function(Part)
  1898.         swait(1.5)
  1899.         Part.Anchored = false
  1900.       end), hit.Parent.Torso)
  1901.       game:GetService("Debris"):AddItem(BodPos, 3)
  1902.       game:GetService("Debris"):AddItem(BodGy, 3)
  1903.     end
  1904.     local debounce = Create("BoolValue")({
  1905.       Name = "DebounceHit",
  1906.       Parent = hit.Parent,
  1907.       Value = true
  1908.     })
  1909.     game:GetService("Debris"):AddItem(debounce, Delay)
  1910.     c = Instance.new("ObjectValue")
  1911.     c.Name = "creator"
  1912.     c.Value = Player
  1913.     c.Parent = h
  1914.     game:GetService("Debris"):AddItem(c, 0.5)
  1915.   end
  1916. end
  1917. function ShowDamage(Pos, Text, Time, Color)
  1918.   local Rate = 0.03333333333333333
  1919.   local Pos = Pos or Vector3.new(0, 0, 0)
  1920.   local Text = Text or ""
  1921.   local Time = Time or 2
  1922.   local Color = Color or Color3.new(1, 0, 1)
  1923.   local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1924.   EffectPart.Anchored = true
  1925.   local BillboardGui = Create("BillboardGui")({
  1926.     Size = UDim2.new(3, 0, 3, 0),
  1927.     Adornee = EffectPart,
  1928.     Parent = EffectPart
  1929.   })
  1930.   local TextLabel = Create("TextLabel")({
  1931.     BackgroundTransparency = 1,
  1932.     Size = UDim2.new(1, 0, 1, 0),
  1933.     Text = Text,
  1934.     TextColor3 = Color,
  1935.     TextScaled = true,
  1936.     Font = Enum.Font.ArialBold,
  1937.     Parent = BillboardGui
  1938.   })
  1939.   game.Debris:AddItem(EffectPart, Time + 0.1)
  1940.   EffectPart.Parent = game:GetService("Workspace")
  1941.   delay(0, function()
  1942.     local Frames = Time / Rate
  1943.     for Frame = 1, Frames do
  1944.       wait(Rate)
  1945.       local Percent = Frame / Frames
  1946.       EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1947.       TextLabel.TextTransparency = Percent
  1948.     end
  1949.     if EffectPart and EffectPart.Parent then
  1950.       EffectPart:Destroy()
  1951.     end
  1952.   end)
  1953. end
  1954. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1955.   for _, c in pairs(workspace:children()) do
  1956.     local hum = c:findFirstChildOfClass("Humanoid")
  1957.     if hum ~= nil then
  1958.       local head = c:findFirstChild("Head")
  1959.       if head ~= nil then
  1960.         local targ = head.Position - Part.Position
  1961.         local mag = targ.magnitude
  1962.         if magni >= mag and c.Name ~= Player.Name then
  1963.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1964.         end
  1965.       end
  1966.     end
  1967.   end
  1968. end
  1969.  
  1970. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1971.   for _, c in pairs(workspace:children()) do
  1972.     local hum = c:findFirstChild("Humanoid")
  1973.     if hum ~= nil then
  1974.       local head = c:findFirstChild("Torso")
  1975.       if head ~= nil then
  1976.         local targ = head.Position - Part.Position
  1977.         local mag = targ.magnitude
  1978.         if magni >= mag and c.Name ~= Player.Name then
  1979.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1980.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1981.         end
  1982.       end
  1983.     end
  1984.   end
  1985. end
  1986.  
  1987. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1988. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1989. end
  1990.  
  1991. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1992. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1993. prt.Anchored=true
  1994. prt.CFrame=cframe
  1995. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1996. --http://www.roblox.com/asset/?id=4770560
  1997. game:GetService("Debris"):AddItem(prt,2)
  1998. CF=prt.CFrame
  1999. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2000. for i=0,1,0.2 do
  2001. wait()
  2002. Part.CFrame=CF*cf(0,0,-0.4)
  2003. end
  2004. for i=0,1,delay do
  2005. wait()
  2006. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2007. Mesh.Scale=Mesh.Scale
  2008. end
  2009. for i=0,1,0.1 do
  2010. wait()
  2011. Part.Transparency=i
  2012. end
  2013. Part.Parent=nil
  2014. end),prt,msh,CF)
  2015. end
  2016.  
  2017. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2018. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2019. prt.Anchored=true
  2020. prt.Material = "Neon"
  2021. prt.CFrame=cframe
  2022. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2023. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2024. game:GetService("Debris"):AddItem(prt,5)
  2025. coroutine.resume(coroutine.create(function(Part,Mesh)
  2026. for i=0,1,delay do
  2027. swait()
  2028. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2029. Part.Transparency=i
  2030. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh)
  2034. end
  2035.  
  2036. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=true
  2039. prt.Material = "Neon"
  2040. prt.CFrame=cframe
  2041. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2042. game:GetService("Debris"):AddItem(prt,5)
  2043. coroutine.resume(coroutine.create(function(Part,Mesh)
  2044.     local rtype = rottype
  2045. for i=0,1,delay do
  2046. swait()
  2047. if rtype == 1 then
  2048. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2049. elseif rtype == 2 then
  2050. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2051. end
  2052. Part.Transparency=i
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2054. end
  2055. Part.Parent=nil
  2056. end),prt,msh)
  2057. end
  2058.  
  2059. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2060. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt.Anchored=true
  2062. prt.CFrame=cframe
  2063. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2064. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. for i=0,1,delay do
  2068. wait()
  2069. Part.Transparency=i
  2070. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2071. end
  2072. Part.Parent=nil
  2073. end),prt,msh)
  2074. end
  2075.  
  2076. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2077. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2078. prt.Anchored=true
  2079. prt.Material = "Neon"
  2080. prt.CFrame=cframe
  2081. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2082. game:GetService("Debris"):AddItem(prt,5)
  2083. coroutine.resume(coroutine.create(function(Part,Mesh)
  2084.     local rtype = rottype
  2085. for i=0,1,delay do
  2086. swait()
  2087. if rtype == 1 then
  2088. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2089. elseif rtype == 2 then
  2090. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2091. end
  2092. Part.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2100. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=true
  2102. prt.Material = "Neon"
  2103. prt.CFrame=cframe
  2104. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2105. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2106. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2107. game:GetService("Debris"):AddItem(prt,5)
  2108. coroutine.resume(coroutine.create(function(Part,Mesh)
  2109.     local rtype = rottype
  2110. for i=0,1,delay do
  2111. swait()
  2112. if rtype == 1 then
  2113. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2114. elseif rtype == 2 then
  2115. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2116. end
  2117. dec.Transparency=i
  2118. dec2.Transparency=i
  2119. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2120. end
  2121. Part.Parent=nil
  2122. end),prt,msh)
  2123. end
  2124.  
  2125. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2126. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2127. prt.Anchored=true
  2128. prt.Material = "Neon"
  2129. prt.CFrame=cframe
  2130. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2131. game:GetService("Debris"):AddItem(prt,5)
  2132. coroutine.resume(coroutine.create(function(Part,Mesh)
  2133.     local rtype = rottype
  2134. for i=0,1,delay do
  2135. swait()
  2136. if rtype == 1 then
  2137. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2138. elseif rtype == 2 then
  2139. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2140. end
  2141. prt.Transparency=i
  2142. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2143. end
  2144. Part.Parent=nil
  2145. end),prt,msh)
  2146. end
  2147.  
  2148. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2149. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2150. prt.Anchored=true
  2151. prt.Material = "Neon"
  2152. prt.CFrame=cframe
  2153. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2154. game:GetService("Debris"):AddItem(prt,5)
  2155. coroutine.resume(coroutine.create(function(Part,Mesh)
  2156.     local rtype = rottype
  2157. for i=0,1,delay do
  2158. swait()
  2159. if rtype == 1 then
  2160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2161. elseif rtype == 2 then
  2162. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2163. end
  2164. prt.Transparency=i
  2165. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2166. end
  2167. Part.Parent=nil
  2168. end),prt,msh)
  2169. end
  2170.  
  2171. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2172. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2173. prt.Anchored=true
  2174. prt.Material = "Neon"
  2175. prt.CFrame=cframe
  2176. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2177. game:GetService("Debris"):AddItem(prt,5)
  2178. coroutine.resume(coroutine.create(function(Part,Mesh)
  2179.     local rtype = rottype
  2180. for i=0,1,delay do
  2181. swait()
  2182. if rtype == 1 then
  2183. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2184. elseif rtype == 2 then
  2185. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2186. end
  2187. prt.Transparency=i
  2188. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2189. end
  2190. Part.Parent=nil
  2191. end),prt,msh)
  2192. end
  2193.  
  2194. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2195. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2196. prt.Anchored=true
  2197. prt.Material = "Neon"
  2198. prt.CFrame=cframe
  2199. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2200. game:GetService("Debris"):AddItem(prt,5)
  2201. coroutine.resume(coroutine.create(function(Part,Mesh)
  2202.     local rtype = rottype
  2203. for i=0,1,delay do
  2204. swait()
  2205. if rtype == 1 then
  2206. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2207. elseif rtype == 2 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2209. end
  2210. prt.Transparency=i
  2211. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2212. end
  2213. Part.Parent=nil
  2214. end),prt,msh)
  2215. end
  2216.  
  2217. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2218. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2219. prt.Anchored=false
  2220. prt.CFrame=cframe
  2221. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2222. local wld=weld(prt,prt,Parent,cframe)
  2223. game:GetService("Debris"):AddItem(prt,5)
  2224. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2225. for i=0,1,delay do
  2226. wait()
  2227. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2228. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2229. Part.Transparency=i
  2230. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh,wld)
  2234. end
  2235.  
  2236. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2237. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2238. prt.Anchored=false
  2239. prt.CFrame=cframe
  2240. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2241. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2242. game:GetService("Debris"):AddItem(prt,5)
  2243. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2244. for i=0,1,delay do
  2245. wait()
  2246. Weld.C0=euler(i*20,0,0)
  2247. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2248. Part.Transparency=i
  2249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2250. end
  2251. Part.Parent=nil
  2252. end),prt,msh,wld)
  2253. end
  2254.  
  2255. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2256. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2257. prt.Anchored=true
  2258. prt.CFrame=cframe
  2259. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2260. game:GetService("Debris"):AddItem(prt,2)
  2261. coroutine.resume(coroutine.create(function(Part,Mesh)
  2262. for i=0,1,delay do
  2263. wait()
  2264. Part.CFrame=Part.CFrame
  2265. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2266. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2267. prt2.Anchored=true
  2268. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2269. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2270. game:GetService("Debris"):AddItem(prt2,2)
  2271. coroutine.resume(coroutine.create(function(Part,Mesh)
  2272. for i=0,1,0.1 do
  2273. wait()
  2274. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2275. end
  2276. Part.Parent=nil
  2277. end),prt2,msh2)
  2278. end
  2279. for i=0,1,delay*2 do
  2280. wait()
  2281. Part.CFrame=Part.CFrame
  2282. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2283. end
  2284. Part.Parent=nil
  2285. end),prt,msh)
  2286. end
  2287.  
  2288. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2289. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2290. prt.Anchored=true
  2291. prt.CFrame=cframe
  2292. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2293. game:GetService("Debris"):AddItem(prt,2)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh)
  2295. for i=0,1,delay do
  2296. wait()
  2297. Part.CFrame=Part.CFrame
  2298. Part.Transparency=i
  2299. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2300. end
  2301. Part.Parent=nil
  2302. end),prt,msh)
  2303. end
  2304.  
  2305. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2306. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2307. prt.Anchored=true
  2308. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2309. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2310. game:GetService("Debris"):AddItem(prt,2)
  2311. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2312. CF=Part.CFrame
  2313. Numbb=0
  2314. randnumb=math.random()/10
  2315. rand1=math.random()/10
  2316. for i=0,1,rand1 do
  2317. wait()
  2318. CF=CF*cf(0,math.random()/2,0)
  2319. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2320. Part.CFrame=CF*euler(Numbb,0,0)
  2321. Part.Transparency=i
  2322. Numbb=Numbb+randnumb
  2323. end
  2324. Part.Parent=nil
  2325. end),prt,CF,Numbb,randnumb)
  2326. end
  2327.  
  2328. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2329. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2330. prt.Anchored=true
  2331. prt.CFrame=cframe
  2332. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2333. game:GetService("Debris"):AddItem(prt,5)
  2334. coroutine.resume(coroutine.create(function(Part,Mesh)
  2335. for i=0,1,delay do
  2336. wait()
  2337. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2338. Part.Transparency=i
  2339. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2340. end
  2341. Part.Parent=nil
  2342. end),prt,msh)
  2343. end
  2344.  
  2345. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2346. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2347. prt.Anchored=true
  2348. prt.CFrame=cframe
  2349. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2350. game:GetService("Debris"):AddItem(prt,2)
  2351. coroutine.resume(coroutine.create(function(Part,Mesh)
  2352. for i=0,1,delay do
  2353. wait()
  2354. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2355. Part.Transparency=i
  2356. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2357. end
  2358. Part.Parent=nil
  2359. end),prt,msh)
  2360. end
  2361.  
  2362. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2363. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2364. prt.Anchored=true
  2365. prt.CFrame=cframe*cf(x,y,z)
  2366. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2367. game:GetService("Debris"):AddItem(prt,5)
  2368. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2369. local num=math.random()
  2370. local num2=math.random(-3,2)+math.random()
  2371. local numm=0
  2372. for i=0,1,delay*2 do
  2373. swait()
  2374. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2375. Part.Transparency=i
  2376. numm=numm+0.01
  2377. end
  2378. Part.Parent=nil
  2379. Mesh.Parent=nil
  2380. end),prt,msh,x,y,z)
  2381. end
  2382.  
  2383. function dmgstart(dmg,what)
  2384.     hitcon = what.Touched:connect(function(hit)
  2385.         local hum = hit.Parent:FindFirstChild("Humanoid")
  2386.         if hum and not hum:IsDescendantOf(Character) then
  2387.             hum:TakeDamage(dmg)
  2388.         end
  2389.     end)
  2390. end
  2391.  
  2392. function dmgstop()
  2393.     hitcon:disconnect()
  2394. end
  2395.  
  2396. function Cloak()
  2397. Face.Parent=nil
  2398. cloaked=true
  2399.         for _,v in pairs(Torso.Parent:children()) do
  2400.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2401.                 coroutine.resume(coroutine.create(function()
  2402.                 for i=0,1,0.2 do
  2403.                 wait()
  2404.                 v.Transparency=i
  2405.                 end
  2406.                 v.Transparency=1
  2407.                 end))
  2408.                 end
  2409.                 if v.className=="Hat" then
  2410.                 hatp=v.Handle
  2411.                 coroutine.resume(coroutine.create(function(derp)
  2412.                 for i=0,1,0.2 do
  2413.                 wait()
  2414.                 derp.Transparency=i
  2415.                 end
  2416.                 derp.Transparency=1
  2417.                 end),hatp)
  2418.                 end
  2419.         end
  2420.         for _,v in pairs(m:children()) do
  2421.                 if v.className=="Part" then
  2422.                 coroutine.resume(coroutine.create(function()
  2423.                 for i=0,1,0.2 do
  2424.                 wait()
  2425.                 v.Transparency=i
  2426.                 end
  2427.                 v.Transparency=1
  2428.                 end))
  2429.                 end
  2430.         end
  2431. end
  2432.  
  2433. function UnCloak()
  2434. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2435. Face.Parent=Head
  2436. cloaked=false
  2437.         for _,v in pairs(Torso.Parent:children()) do
  2438.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2439.                 coroutine.resume(coroutine.create(function()
  2440.                 for i=0,1,0.1 do
  2441.                 wait()
  2442.                 v.Transparency=v.Transparency-0.1
  2443.                 end
  2444.                 v.Transparency=0
  2445.                 end))
  2446.                 end
  2447.                 if v.className=="Hat" then
  2448.                 hatp=v.Handle
  2449.                 coroutine.resume(coroutine.create(function(derp)
  2450.                 for i=0,1,0.1 do
  2451.                 wait()
  2452.                 derp.Transparency=derp.Transparency-0.1
  2453.                 end
  2454.                 derp.Transparency=0
  2455.                 end),hatp)
  2456.                 end
  2457.         end
  2458.         for _,v in pairs(m:children()) do
  2459.                 if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2460.                 coroutine.resume(coroutine.create(function()
  2461.                 for i=0,1,0.1 do
  2462.                 wait()
  2463.                 v.Transparency=v.Transparency-0.1
  2464.                 end
  2465.                 v.Transparency=0
  2466.                 end))
  2467.                 v.Transparency=0
  2468.                 end
  2469.         end
  2470. end
  2471.  
  2472. local origcolor = BrickColor.new("Pastel light blue")
  2473. ---- This section of explosions.
  2474.  
  2475. ----
  2476.  
  2477.  
  2478. function ring(type,pos,scale,value)
  2479. local type = type
  2480. local rng = Instance.new("Part", char)
  2481.         rng.Anchored = true
  2482.         rng.BrickColor = origcolor
  2483.         rng.CanCollide = false
  2484.         rng.FormFactor = 3
  2485.         rng.Name = "Ring"
  2486.         rng.Size = Vector3.new(1, 1, 1)
  2487.         rng.Transparency = 0
  2488.         rng.TopSurface = 0
  2489.         rng.BottomSurface = 0
  2490.         rng.CFrame = pos
  2491.         local rngm = Instance.new("SpecialMesh", rng)
  2492.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2493. rngm.Scale = scale
  2494. local scaler2 = 1
  2495. if type == "Add" then
  2496. scaler2 = 1*value
  2497. elseif type == "Divide" then
  2498. scaler2 = 1/value
  2499. end
  2500. coroutine.resume(coroutine.create(function()
  2501. for i = 0,10,0.1 do
  2502. swait()
  2503. if type == "Add" then
  2504. scaler2 = scaler2 - 0.01*value
  2505. elseif type == "Divide" then
  2506. scaler2 = scaler2 - 0.01/value
  2507. end
  2508. rng.Transparency = rng.Transparency + 0.01
  2509. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2510. end
  2511. rng:Destroy()
  2512. end))
  2513. end
  2514.  
  2515.  
  2516. function wave(type,pos,scale,value)
  2517. local type = type
  2518. local rng = Instance.new("Part", char)
  2519.         rng.Anchored = true
  2520.         rng.BrickColor = origcolor
  2521.         rng.CanCollide = false
  2522.         rng.FormFactor = 3
  2523.         rng.Name = "Ring"
  2524.         rng.Size = Vector3.new(1, 1, 1)
  2525.         rng.Transparency = 0
  2526.         rng.TopSurface = 0
  2527.         rng.BottomSurface = 0
  2528.         rng.CFrame = pos
  2529.         local rngm = Instance.new("SpecialMesh", rng)
  2530.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2531. rngm.Scale = scale
  2532. local scaler2 = 1
  2533. if type == "Add" then
  2534. scaler2 = 1*value
  2535. elseif type == "Divide" then
  2536. scaler2 = 1/value
  2537. end
  2538. coroutine.resume(coroutine.create(function()
  2539. for i = 0,10,0.1 do
  2540. swait()
  2541. if type == "Add" then
  2542. scaler2 = scaler2 - 0.01*value
  2543. elseif type == "Divide" then
  2544. scaler2 = scaler2 - 0.01/value
  2545. end
  2546. rng.Transparency = rng.Transparency + 0.01
  2547. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2548. end
  2549. rng:Destroy()
  2550. end))
  2551. end
  2552.  
  2553. function wind(type,pos,scale,value,speed)
  2554. local type = type
  2555. local rng = Instance.new("Part", char)
  2556.         rng.Anchored = true
  2557.         rng.BrickColor = origcolor
  2558.         rng.CanCollide = false
  2559.         rng.FormFactor = 3
  2560.         rng.Name = "Ring"
  2561.         rng.Size = Vector3.new(1, 1, 1)
  2562.         rng.Transparency = 0
  2563.         rng.TopSurface = 0
  2564.         rng.BottomSurface = 0
  2565.         rng.CFrame = pos
  2566.         local rngm = Instance.new("SpecialMesh", rng)
  2567.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2568. rngm.Scale = scale
  2569. local scaler2 = 1
  2570. if type == "Add" then
  2571. scaler2 = 1*value
  2572. elseif type == "Divide" then
  2573. scaler2 = 1/value
  2574. end
  2575. coroutine.resume(coroutine.create(function()
  2576. for i = 0,10,0.1 do
  2577. swait()
  2578. if type == "Add" then
  2579. scaler2 = scaler2 - 0.01*value
  2580. elseif type == "Divide" then
  2581. scaler2 = scaler2 - 0.01/value
  2582. end
  2583. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2584. rng.Transparency = rng.Transparency + 0.01
  2585. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2586. end
  2587. rng:Destroy()
  2588. end))
  2589. end
  2590.  
  2591. function groundwind(type,pos,scale,value,speed)
  2592. local type = type
  2593. local rng = Instance.new("Part", char)
  2594.         rng.Anchored = true
  2595.         rng.BrickColor = origcolor
  2596.         rng.CanCollide = false
  2597.         rng.FormFactor = 3
  2598.         rng.Name = "Ring"
  2599.         rng.Size = Vector3.new(1, 1, 1)
  2600.         rng.Transparency = 0
  2601.         rng.TopSurface = 0
  2602.         rng.BottomSurface = 0
  2603.         rng.CFrame = pos
  2604.         local rngm = Instance.new("SpecialMesh", rng)
  2605.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2606. rngm.Scale = scale
  2607. local scaler2 = 1
  2608. if type == "Add" then
  2609. scaler2 = 1*value
  2610. elseif type == "Divide" then
  2611. scaler2 = 1/value
  2612. end
  2613. coroutine.resume(coroutine.create(function()
  2614. for i = 0,10,0.1 do
  2615. swait()
  2616. if type == "Add" then
  2617. scaler2 = scaler2 - 0.01*value
  2618. elseif type == "Divide" then
  2619. scaler2 = scaler2 - 0.01/value
  2620. end
  2621. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2622. rng.Transparency = rng.Transparency + 0.01
  2623. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2624. end
  2625. rng:Destroy()
  2626. end))
  2627. end
  2628.  
  2629. function CameraManager()
  2630.   if TwoD and not CamInterrupt then
  2631.     if Humanoid.Health > 0 then
  2632.       Camera.CameraSubject = Humanoid
  2633.       Camera.CameraType = "Scriptable"
  2634.       Humanoid.AutoRotate = false
  2635.       if Booleans.GyroUse then
  2636.         Directer.MaxTorque = Vec3(0, huge, 0)
  2637.       else
  2638.         Directer.MaxTorque = Vec3(0, 0, 0)
  2639.       end
  2640.       if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2641.         if Booleans.CamFollow then
  2642.           CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2643.           Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2644.         else
  2645.           CPart.Position = RootPart.Position
  2646.         end
  2647.       else
  2648.         local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2649.         CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2650.       end
  2651.       Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2652.     else
  2653.       Camera.CameraSubject = Humanoid
  2654.       Camera.CameraType = "Custom"
  2655.       Controller.Disabled = false
  2656.     end
  2657.   end
  2658. end
  2659.  
  2660. function ring(type,pos,scale,value)
  2661. local type = type
  2662. local rng = Instance.new("Part", char)
  2663.         rng.Anchored = true
  2664.         rng.BrickColor = origcolor
  2665.         rng.CanCollide = false
  2666.         rng.FormFactor = 3
  2667.         rng.Name = "Ring"
  2668.         rng.Size = Vector3.new(1, 1, 1)
  2669.         rng.Transparency = 0
  2670.         rng.TopSurface = 0
  2671.         rng.BottomSurface = 0
  2672.         rng.CFrame = pos
  2673.         local rngm = Instance.new("SpecialMesh", rng)
  2674.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2675. rngm.Scale = scale
  2676. local scaler2 = 1
  2677. if type == "Add" then
  2678. scaler2 = 1*value
  2679. elseif type == "Divide" then
  2680. scaler2 = 1/value
  2681. end
  2682. coroutine.resume(coroutine.create(function()
  2683. for i = 0,10,0.1 do
  2684. swait()
  2685. if type == "Add" then
  2686. scaler2 = scaler2 - 0.01*value
  2687. elseif type == "Divide" then
  2688. scaler2 = scaler2 - 0.01/value
  2689. end
  2690. rng.Transparency = rng.Transparency + 0.01
  2691. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2692. end
  2693. rng:Destroy()
  2694. end))
  2695. end
  2696.  
  2697.  
  2698. function wave(type,pos,scale,value)
  2699. local type = type
  2700. local rng = Instance.new("Part", char)
  2701.         rng.Anchored = true
  2702.         rng.BrickColor = origcolor
  2703.         rng.CanCollide = false
  2704.         rng.FormFactor = 3
  2705.         rng.Name = "Ring"
  2706.         rng.Size = Vector3.new(1, 1, 1)
  2707.         rng.Transparency = 0
  2708.         rng.TopSurface = 0
  2709.         rng.BottomSurface = 0
  2710.         rng.CFrame = pos
  2711.         local rngm = Instance.new("SpecialMesh", rng)
  2712.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2713. rngm.Scale = scale
  2714. local scaler2 = 1
  2715. if type == "Add" then
  2716. scaler2 = 1*value
  2717. elseif type == "Divide" then
  2718. scaler2 = 1/value
  2719. end
  2720. coroutine.resume(coroutine.create(function()
  2721. for i = 0,10,0.1 do
  2722. swait()
  2723. if type == "Add" then
  2724. scaler2 = scaler2 - 0.01*value
  2725. elseif type == "Divide" then
  2726. scaler2 = scaler2 - 0.01/value
  2727. end
  2728. rng.Transparency = rng.Transparency + 0.01
  2729. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2730. end
  2731. rng:Destroy()
  2732. end))
  2733. end
  2734.  
  2735. function sphere(bonuspeed,type,pos,scale,value,color)
  2736. local type = type
  2737. local rng = Instance.new("Part", char)
  2738.         rng.Anchored = true
  2739. if ModeOfGlitch ~= 9 then
  2740.         rng.BrickColor = color
  2741. elseif ModeOfGlitch == 9 then
  2742. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2743. end
  2744.         rng.CanCollide = false
  2745.         rng.FormFactor = 3
  2746.         rng.Name = "Ring"
  2747.         rng.Material = "Neon"
  2748.         rng.Size = Vector3.new(1, 1, 1)
  2749.         rng.Transparency = 0
  2750.         rng.TopSurface = 0
  2751.         rng.BottomSurface = 0
  2752.         rng.CFrame = pos
  2753.         local rngm = Instance.new("SpecialMesh", rng)
  2754.         rngm.MeshType = "Sphere"
  2755. rngm.Scale = scale
  2756. if rainbowmode == true then
  2757. rng.Color = Color3.new(r/255,g/255,b/255)
  2758. end
  2759. if ModeOfGlitch == 9 then
  2760. coroutine.resume(coroutine.create(function()
  2761. while true do
  2762. swait()
  2763. if rng.Parent ~= nil then
  2764. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2765. else
  2766. break
  2767. end
  2768. end
  2769. end))
  2770. end
  2771. local scaler2 = 1
  2772. if type == "Add" then
  2773. scaler2 = 1*value
  2774. elseif type == "Divide" then
  2775. scaler2 = 1/value
  2776. end
  2777. coroutine.resume(coroutine.create(function()
  2778. for i = 0,10/bonuspeed,0.1 do
  2779. swait()
  2780. if rainbowmode == true then
  2781. rng.Color = Color3.new(r/255,g/255,b/255)
  2782. end
  2783. if type == "Add" then
  2784. scaler2 = scaler2 - 0.01*value/bonuspeed
  2785. elseif type == "Divide" then
  2786. scaler2 = scaler2 - 0.01/value*bonuspeed
  2787. end
  2788. if chaosmode == true then
  2789. rng.BrickColor = BrickColor.random()
  2790. end
  2791. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2792. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2793. end
  2794. rng:Destroy()
  2795. end))
  2796. end
  2797.  
  2798. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2799. local type = type
  2800. local rng = Instance.new("Part", char)
  2801.         rng.Anchored = true
  2802. if ModeOfGlitch ~= 9 then
  2803.         rng.BrickColor = color
  2804. elseif ModeOfGlitch == 9 then
  2805. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2806. end
  2807.         rng.CanCollide = false
  2808.         rng.FormFactor = 3
  2809.         rng.Name = "Ring"
  2810.         rng.Material = "Neon"
  2811.         rng.Size = Vector3.new(1, 1, 1)
  2812.         rng.Transparency = 0
  2813.         rng.TopSurface = 0
  2814.         rng.BottomSurface = 0
  2815.         rng.CFrame = pos
  2816.         local rngm = Instance.new("SpecialMesh", rng)
  2817.         rngm.MeshType = "Sphere"
  2818. rngm.Scale = scale
  2819. local scaler2 = 1
  2820. local scaler2b = 1
  2821. local scaler2c = 1
  2822. if type == "Add" then
  2823. scaler2 = 1*value
  2824. scaler2b = 1*value2
  2825. scaler2c = 1*value3
  2826. elseif type == "Divide" then
  2827. scaler2 = 1/value
  2828. scaler2b = 1/value2
  2829. scaler2c = 1/value3
  2830. end
  2831. if ModeOfGlitch == 9 then
  2832. coroutine.resume(coroutine.create(function()
  2833. while true do
  2834. swait()
  2835. if rng.Parent ~= nil then
  2836. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2837. else
  2838. break
  2839. end
  2840. end
  2841. end))
  2842. end
  2843. coroutine.resume(coroutine.create(function()
  2844. for i = 0,10/bonuspeed,0.1 do
  2845. swait()
  2846. if type == "Add" then
  2847. scaler2 = scaler2 - 0.01*value/bonuspeed
  2848. scaler2b = scaler2b - 0.01*value/bonuspeed
  2849. scaler2c = scaler2c - 0.01*value/bonuspeed
  2850. elseif type == "Divide" then
  2851. scaler2 = scaler2 - 0.01/value*bonuspeed
  2852. scaler2b = scaler2b - 0.01/value*bonuspeed
  2853. scaler2c = scaler2c - 0.01/value*bonuspeed
  2854. end
  2855. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2856. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2857. end
  2858. rng:Destroy()
  2859. end))
  2860. end
  2861.  
  2862. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2863. local type = type
  2864. local rotenable = rotatingop
  2865. local rng = Instance.new("Part", char)
  2866.         rng.Anchored = true
  2867.         rng.BrickColor = color
  2868.         rng.CanCollide = false
  2869.         rng.FormFactor = 3
  2870.         rng.Name = "Ring"
  2871.         rng.Material = "Neon"
  2872.         rng.Size = Vector3.new(1, 1, 1)
  2873.         rng.Transparency = 0
  2874. if typeoftrans == "In" then
  2875. rng.Transparency = 1
  2876. end
  2877.         rng.TopSurface = 0
  2878.         rng.BottomSurface = 0
  2879.         rng.CFrame = pos
  2880.         local rngm = Instance.new("SpecialMesh", rng)
  2881.         rngm.MeshType = "FileMesh"
  2882. if typeofshape == "Normal" then
  2883. rngm.MeshId = "rbxassetid://662586858"
  2884. elseif typeofshape == "Round" then
  2885. rngm.MeshId = "rbxassetid://662585058"
  2886. end
  2887. rngm.Scale = scale
  2888. local scaler2 = 1/10
  2889. if type == "Add" then
  2890. scaler2 = 1*value/10
  2891. elseif type == "Divide" then
  2892. scaler2 = 1/value/10
  2893. end
  2894. local randomrot = math.random(1,2)
  2895. coroutine.resume(coroutine.create(function()
  2896. for i = 0,10/bonuspeed,0.1 do
  2897. swait()
  2898. if type == "Add" then
  2899. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2900. elseif type == "Divide" then
  2901. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2902. end
  2903. if rotenable == true then
  2904. if randomrot == 1 then
  2905. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2906. elseif randomrot == 2 then
  2907. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2908. end
  2909. end
  2910. if typeoftrans == "Out" then
  2911. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2912. elseif typeoftrans == "In" then
  2913. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2914. end
  2915. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2916. end
  2917. rng:Destroy()
  2918. end))
  2919. end
  2920.  
  2921. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2922. local type = type
  2923. local rng = Instance.new("Part", char)
  2924.         rng.Anchored = true
  2925.         rng.BrickColor = color
  2926.         rng.CanCollide = false
  2927.         rng.FormFactor = 3
  2928.         rng.Name = "Ring"
  2929.         rng.Material = "Neon"
  2930.         rng.Size = Vector3.new(1, 1, 1)
  2931.         rng.Transparency = 0
  2932.         rng.TopSurface = 0
  2933.         rng.BottomSurface = 0
  2934.         rng.CFrame = pos
  2935. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2936.         local rngm = Instance.new("SpecialMesh", rng)
  2937.         rngm.MeshType = "Brick"
  2938. rngm.Scale = vt(x1,y1,z1)
  2939. if rainbowmode == true then
  2940. rng.Color = Color3.new(r/255,g/255,b/255)
  2941. end
  2942. local scaler2 = 1
  2943. local speeder = FastSpeed/10
  2944. if type == "Add" then
  2945. scaler2 = 1*value
  2946. elseif type == "Divide" then
  2947. scaler2 = 1/value
  2948. end
  2949. coroutine.resume(coroutine.create(function()
  2950. for i = 0,10/bonuspeed,0.1 do
  2951. swait()
  2952. if rainbowmode == true then
  2953. rng.Color = Color3.new(r/255,g/255,b/255)
  2954. end
  2955. if type == "Add" then
  2956. scaler2 = scaler2 - 0.01*value/bonuspeed
  2957. elseif type == "Divide" then
  2958. scaler2 = scaler2 - 0.01/value*bonuspeed
  2959. end
  2960. if chaosmode == true then
  2961. rng.BrickColor = BrickColor.random()
  2962. end
  2963. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2964. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2965. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2966. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2967. end
  2968. rng:Destroy()
  2969. end))
  2970. end
  2971.  
  2972. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2973. local type = type
  2974. local rng = Instance.new("Part", char)
  2975.         rng.Anchored = true
  2976.         rng.BrickColor = color
  2977.         rng.CanCollide = false
  2978.         rng.FormFactor = 3
  2979.         rng.Name = "Ring"
  2980.         rng.Material = "Neon"
  2981.         rng.Size = Vector3.new(1, 1, 1)
  2982.         rng.Transparency = 0
  2983.         rng.TopSurface = 0
  2984.         rng.BottomSurface = 0
  2985.         rng.CFrame = pos
  2986. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2987.         local rngm = Instance.new("SpecialMesh", rng)
  2988.         rngm.MeshType = "Brick"
  2989. rngm.Scale = vt(x1,y1,z1)
  2990. if rainbowmode == true then
  2991. rng.Color = Color3.new(r/255,g/255,b/255)
  2992. end
  2993. local scaler2 = 1
  2994. local speeder = FastSpeed/10
  2995. if type == "Add" then
  2996. scaler2 = 1*value
  2997. elseif type == "Divide" then
  2998. scaler2 = 1/value
  2999. end
  3000. coroutine.resume(coroutine.create(function()
  3001. for i = 0,10/bonuspeed,0.1 do
  3002. swait()
  3003. if rainbowmode == true then
  3004. rng.Color = Color3.new(r/255,g/255,b/255)
  3005. end
  3006. if type == "Add" then
  3007. scaler2 = scaler2 - 0.01*value/bonuspeed
  3008. elseif type == "Divide" then
  3009. scaler2 = scaler2 - 0.01/value*bonuspeed
  3010. end
  3011. if chaosmode == true then
  3012. rng.BrickColor = BrickColor.random()
  3013. end
  3014. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3015. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3016. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3017. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3018. end
  3019. rng:Destroy()
  3020. end))
  3021. end
  3022.  
  3023. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3024. local type = type
  3025. local rng = Instance.new("Part", char)
  3026.         rng.Anchored = true
  3027.         rng.BrickColor = color
  3028.         rng.CanCollide = false
  3029.         rng.FormFactor = 3
  3030.         rng.Name = "Ring"
  3031.         rng.Material = "Neon"
  3032.         rng.Size = Vector3.new(1, 1, 1)
  3033.         rng.Transparency = 0
  3034.         rng.TopSurface = 0
  3035.         rng.BottomSurface = 0
  3036.         rng.CFrame = pos
  3037. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3038.         local rngm = Instance.new("SpecialMesh", rng)
  3039.         rngm.MeshType = "Brick"
  3040. rngm.Scale = vt(x1,y1,z1)
  3041. if rainbowmode == true then
  3042. rng.Color = Color3.new(r/255,g/255,b/255)
  3043. end
  3044. local scaler2 = 0
  3045. local speeder = FastSpeed/10
  3046. if type == "Add" then
  3047. scaler2 = 1*value
  3048. elseif type == "Divide" then
  3049. scaler2 = 1/value
  3050. end
  3051. coroutine.resume(coroutine.create(function()
  3052. for i = 0,10/bonuspeed,0.1 do
  3053. swait()
  3054. if rainbowmode == true then
  3055. rng.Color = Color3.new(r/255,g/255,b/255)
  3056. end
  3057. if type == "Add" then
  3058. scaler2 = scaler2 - 0.01*value/bonuspeed
  3059. elseif type == "Divide" then
  3060. scaler2 = scaler2 - 0.01/value*bonuspeed
  3061. end
  3062. if chaosmode == true then
  3063. rng.BrickColor = BrickColor.random()
  3064. end
  3065. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3066. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3067. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3068. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3069. end
  3070. rng:Destroy()
  3071. end))
  3072. end
  3073.  
  3074. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3075. local type = type
  3076. local rng = Instance.new("Part", char)
  3077.         rng.Anchored = true
  3078.         rng.BrickColor = color
  3079.         rng.Color = color3
  3080.         rng.CanCollide = false
  3081.         rng.FormFactor = 3
  3082.         rng.Name = "Ring"
  3083.         rng.Material = "Neon"
  3084.         rng.Size = Vector3.new(1, 1, 1)
  3085.         rng.Transparency = 0
  3086.         rng.TopSurface = 0
  3087.         rng.BottomSurface = 0
  3088.         rng.CFrame = pos
  3089.         local rngm = Instance.new("SpecialMesh", rng)
  3090.         rngm.MeshType = "Brick"
  3091. rngm.Scale = scale
  3092. local scaler2 = 1
  3093. local scaler2b = 1
  3094. local scaler2c = 1
  3095. if type == "Add" then
  3096. scaler2 = 1*value
  3097. scaler2b = 1*value2
  3098. scaler2c = 1*value3
  3099. elseif type == "Divide" then
  3100. scaler2 = 1/value
  3101. scaler2b = 1/value2
  3102. scaler2c = 1/value3
  3103. end
  3104. coroutine.resume(coroutine.create(function()
  3105. for i = 0,10/bonuspeed,0.1 do
  3106. swait()
  3107. if type == "Add" then
  3108. scaler2 = scaler2 - 0.01*value/bonuspeed
  3109. scaler2b = scaler2b - 0.01*value/bonuspeed
  3110. scaler2c = scaler2c - 0.01*value/bonuspeed
  3111. elseif type == "Divide" then
  3112. scaler2 = scaler2 - 0.01/value*bonuspeed
  3113. scaler2b = scaler2b - 0.01/value*bonuspeed
  3114. scaler2c = scaler2c - 0.01/value*bonuspeed
  3115. end
  3116. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3117. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3118. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3119. end
  3120. rng:Destroy()
  3121. end))
  3122. end
  3123.  
  3124. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3125. local type = type
  3126. local rng = Instance.new("Part", char)
  3127.         rng.Anchored = true
  3128. if ModeOfGlitch ~= 9 then
  3129.         rng.BrickColor = color
  3130. elseif ModeOfGlitch == 9 then
  3131. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3132. end
  3133.         rng.CanCollide = false
  3134.         rng.FormFactor = 3
  3135.         rng.Name = "Ring"
  3136.         rng.Material = "Neon"
  3137.         rng.Size = Vector3.new(1, 1, 1)
  3138.         rng.Transparency = 0
  3139.         rng.TopSurface = 0
  3140.         rng.BottomSurface = 0
  3141.         rng.CFrame = pos
  3142. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3143.         local rngm = Instance.new("SpecialMesh", rng)
  3144.         rngm.MeshType = "Sphere"
  3145. rngm.Scale = vt(x1,y1,z1)
  3146. if rainbowmode == true then
  3147. rng.Color = Color3.new(r/255,g/255,b/255)
  3148. end
  3149. if ModeOfGlitch == 9 then
  3150. coroutine.resume(coroutine.create(function()
  3151. while true do
  3152. swait()
  3153. if rng.Parent ~= nil then
  3154. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3155. else
  3156. break
  3157. end
  3158. end
  3159. end))
  3160. end
  3161. local scaler2 = 1
  3162. local speeder = FastSpeed
  3163. if type == "Add" then
  3164. scaler2 = 1*value
  3165. elseif type == "Divide" then
  3166. scaler2 = 1/value
  3167. end
  3168. coroutine.resume(coroutine.create(function()
  3169. for i = 0,10/bonuspeed,0.1 do
  3170. swait()
  3171. if rainbowmode == true then
  3172. rng.Color = Color3.new(r/255,g/255,b/255)
  3173. end
  3174. if type == "Add" then
  3175. scaler2 = scaler2 - 0.01*value/bonuspeed
  3176. elseif type == "Divide" then
  3177. scaler2 = scaler2 - 0.01/value*bonuspeed
  3178. end
  3179. if chaosmode == true then
  3180. rng.BrickColor = BrickColor.random()
  3181. end
  3182. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3183. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3184. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3185. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3186. end
  3187. rng:Destroy()
  3188. end))
  3189. end
  3190.  
  3191.  
  3192. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3193. local type = type
  3194. local rng = Instance.new("Part", char)
  3195.         rng.Anchored = true
  3196. if ModeOfGlitch ~= 9 then
  3197.         rng.BrickColor = color
  3198. elseif ModeOfGlitch == 9 then
  3199. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3200. end
  3201.         rng.CanCollide = false
  3202.         rng.FormFactor = 3
  3203.         rng.Name = "Ring"
  3204.         rng.Material = "Neon"
  3205.         rng.Size = Vector3.new(1, 1, 1)
  3206.         rng.Transparency = 1
  3207.         rng.TopSurface = 0
  3208.         rng.BottomSurface = 0
  3209.         rng.CFrame = pos
  3210. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3211.         local rngm = Instance.new("SpecialMesh", rng)
  3212.         rngm.MeshType = "Sphere"
  3213. rngm.Scale = vt(x1,y1,z1)
  3214. if rainbowmode == true then
  3215. rng.Color = Color3.new(r/255,g/255,b/255)
  3216. end
  3217. if ModeOfGlitch == 9 then
  3218. coroutine.resume(coroutine.create(function()
  3219. while true do
  3220. swait()
  3221. if rng.Parent ~= nil then
  3222. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3223. else
  3224. break
  3225. end
  3226. end
  3227. end))
  3228. end
  3229. local scaler2 = 1
  3230. local speeder = FastSpeed
  3231. if type == "Add" then
  3232. scaler2 = 1*value
  3233. elseif type == "Divide" then
  3234. scaler2 = 1/value
  3235. end
  3236. coroutine.resume(coroutine.create(function()
  3237. for i = 0,10/bonuspeed,0.1 do
  3238. swait()
  3239. if rainbowmode == true then
  3240. rng.Color = Color3.new(r/255,g/255,b/255)
  3241. end
  3242. if type == "Add" then
  3243. scaler2 = scaler2 - 0.01*value/bonuspeed
  3244. elseif type == "Divide" then
  3245. scaler2 = scaler2 - 0.01/value*bonuspeed
  3246. end
  3247. if chaosmode == true then
  3248. rng.BrickColor = BrickColor.random()
  3249. end
  3250. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3251. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3252. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3253. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3254. end
  3255. rng:Destroy()
  3256. end))
  3257. end
  3258.  
  3259. function dmg(dude)
  3260. if dude.Name ~= Character then
  3261. local keptcolor = MAINRUINCOLOR
  3262. local bgf = Instance.new("BodyGyro",dude.Head)
  3263. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3264. --[[local val = Instance.new("BoolValue",dude)
  3265. val.Name = "IsHit"]]--
  3266. local ds = coroutine.wrap(function()
  3267. dude:WaitForChild("Head"):BreakJoints()
  3268. for i, v in pairs(dude:GetChildren()) do
  3269. if v:IsA("Part") or v:IsA("MeshPart") then
  3270. v.Name = "DEMINISHED"
  3271. end
  3272. end
  3273. wait(0.5)
  3274. targetted = nil
  3275. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3276. coroutine.resume(coroutine.create(function()
  3277. for i, v in pairs(dude:GetChildren()) do
  3278. if v:IsA("Accessory") then
  3279. v:Destroy()
  3280. end
  3281. if v:IsA("Humanoid") then
  3282. v:Destroy()
  3283. end
  3284. if v:IsA("CharacterMesh") then
  3285. v:Destroy()
  3286. end
  3287. if v:IsA("Model") then
  3288. v:Destroy()
  3289. end
  3290. if v:IsA("Part") or v:IsA("MeshPart") then
  3291. for x, o in pairs(v:GetChildren()) do
  3292. if o:IsA("Decal") then
  3293. o:Destroy()
  3294. end
  3295. end
  3296. coroutine.resume(coroutine.create(function()
  3297. v.Material = "Neon"
  3298. v.CanCollide = false
  3299. v.Anchored = false
  3300. local bld = Instance.new("ParticleEmitter",v)
  3301. bld.LightEmission = 0.75
  3302. bld.Texture = "rbxassetid://363275192" ---284205403
  3303. bld.Color = ColorSequence.new(keptcolor.Color)
  3304. bld.Rate = 500
  3305. bld.Lifetime = NumberRange.new(1)
  3306. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3307. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3308. bld.Speed = NumberRange.new(2,5)
  3309. bld.VelocitySpread = 50000
  3310. bld.Rotation = NumberRange.new(-500,500)
  3311. bld.RotSpeed = NumberRange.new(-500,500)
  3312.         local sbs = Instance.new("BodyPosition", v)
  3313.         sbs.P = 3000
  3314.         sbs.D = 1000
  3315.         sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3316.         sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3317. v.Color = keptcolor.Color
  3318. coroutine.resume(coroutine.create(function()
  3319. for i = 0, 49 do
  3320. swait(1)
  3321. v:BreakJoints()
  3322. v.Transparency = v.Transparency + 0.02
  3323. end
  3324. v:BreakJoints()
  3325. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3326. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3327. bld.Speed = NumberRange.new(10,25)
  3328. bld.Drag = 5
  3329. bld.Acceleration = vt(0,2,0)
  3330. wait(0.5)
  3331. bld.Enabled = false
  3332. wait(8)
  3333. v:Destroy()
  3334. dude:Destroy()
  3335. end))
  3336. end))
  3337. end
  3338. end
  3339. end))
  3340. end)
  3341. ds()
  3342. end
  3343. end
  3344.  
  3345.  
  3346. function FindNearestHead(Position, Distance, SinglePlayer)
  3347.     if SinglePlayer then
  3348.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3349.     end
  3350.     local List = {}
  3351.     for i, v in pairs(workspace:GetChildren()) do
  3352.         if v:IsA("Model") then
  3353.             if v:findFirstChild("Head") then
  3354.                 if v ~= Character then
  3355.                     if (v.Head.Position - Position).magnitude <= Distance then
  3356.                         table.insert(List, v)
  3357.                     end
  3358.                 end
  3359.             end
  3360.         end
  3361.     end
  3362.     return List
  3363. end
  3364.  
  3365. function FaceMouse()
  3366.   Cam = workspace.CurrentCamera
  3367.   return {
  3368.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3369.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3370.   }
  3371. end
  3372.  
  3373. function FaceMouse2()
  3374.   Cam = workspace.CurrentCamera
  3375.   return {
  3376.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3377.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3378.   }
  3379. end
  3380.  
  3381. local ModeOfGlitch = 1
  3382. -- Functions are ready.
  3383. local storehumanoidWS = 16
  3384.  
  3385. function CorruptBlink()
  3386. for i = 0, 14 do
  3387. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3388. end
  3389. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3390. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3391. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3392. CameraEnshaking(2,10)
  3393. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3394. if v:FindFirstChild('Head') then
  3395. dmg(v)
  3396. end
  3397. end
  3398. for i = 0, 14 do
  3399. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3400. end
  3401. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3402. end
  3403. function PureBomb()
  3404. attack = true
  3405. hum.WalkSpeed = 0
  3406. local orb = Instance.new("Part", char)
  3407.         orb.Anchored = true
  3408.         orb.BrickColor = BrickColor.new("Toothpaste")
  3409.         orb.CanCollide = false
  3410.         orb.FormFactor = 3
  3411.         orb.Name = "Ring"
  3412.         orb.Material = "Neon"
  3413.         orb.Size = Vector3.new(1, 1, 1)
  3414.         orb.Transparency = 0
  3415.         orb.TopSurface = 0
  3416.         orb.BottomSurface = 0
  3417.         local orbm = Instance.new("SpecialMesh", orb)
  3418.         orbm.MeshType = "Sphere"
  3419. orbm.Name = "SizeMesh"
  3420. orbm.Scale = vt(0,0,0)
  3421. local scaled = 0.1
  3422. local posid = 0
  3423. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3424. for i = 0, 5, 0.1 do
  3425. swait()
  3426. scaled = scaled - 0.001
  3427. posid = posid - scaled
  3428. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3429. local scaled = 0.1
  3430. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3431. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3432. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3433. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3434. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3435. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3438. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3439. end
  3440. for i = 0, 2, 0.1 do
  3441. swait()
  3442. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3443. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3444. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3448. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3449. end
  3450. coroutine.resume(coroutine.create(function()
  3451. orb.Anchored = false
  3452. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3453.     local a = Instance.new("Part",workspace)
  3454.     a.Name = "Direction"   
  3455.     a.Anchored = true
  3456.     a.BrickColor = bc("Bright red")
  3457. a.Material = "Neon"
  3458. a.Transparency = 1
  3459.     a.CanCollide = false
  3460.     local ray = Ray.new(
  3461.         orb.CFrame.p,                           -- origin
  3462.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3463.     )
  3464.     local ignore = orb
  3465.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3466.     a.BottomSurface = 10
  3467.     a.TopSurface = 10
  3468.     local distance = (orb.CFrame.p - position).magnitude
  3469.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3470.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3471. orb.CFrame = a.CFrame
  3472. a:Destroy()
  3473. local bv = Instance.new("BodyVelocity")
  3474. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3475. bv.velocity = orb.CFrame.lookVector*125
  3476. bv.Parent = orb
  3477. local hitted = false
  3478. game:GetService("Debris"):AddItem(orb, 15)
  3479. wait()
  3480. local hit =orb.Touched:connect(function(hit)
  3481.     if hitted == false then
  3482.     hitted = true
  3483. CameraEnshaking(10,2.5)
  3484. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3485.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  3486. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3487. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3488. for i = 0, 49 do
  3489. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3490. end
  3491. for i = 0, 9 do
  3492. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3493. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3494. end
  3495. orb.Anchored = true
  3496. orb.Transparency = 1
  3497. wait(8)
  3498. orb:Destroy()
  3499. end
  3500. end)
  3501. end))
  3502. for i = 0, 1, 0.1 do
  3503. swait()
  3504. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3505. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3506. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3509. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3510. end
  3511. hum.WalkSpeed = storehumanoidWS
  3512. attack = false
  3513. end
  3514.  
  3515. function BanishingOrb()
  3516. attack = true
  3517. hum.WalkSpeed = 0
  3518. local radm = math.random(1,3)
  3519. if radm == 1 then
  3520. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3521. elseif radm == 2 then
  3522. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3523. elseif radm == 3 then
  3524. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3525. end
  3526. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3527. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3528. local orb = Instance.new("Part", char)
  3529.         orb.Anchored = true
  3530.         orb.BrickColor = BrickColor.new("Lime green")
  3531.         orb.CanCollide = false
  3532.         orb.FormFactor = 3
  3533.         orb.Name = "Ring"
  3534.         orb.Material = "Neon"
  3535.         orb.Size = Vector3.new(1, 1, 1)
  3536.         orb.Transparency = 0
  3537.         orb.TopSurface = 0
  3538.         orb.BottomSurface = 0
  3539.         local orbm = Instance.new("SpecialMesh", orb)
  3540.         orbm.MeshType = "Sphere"
  3541. orbm.Name = "SizeMesh"
  3542. orbm.Scale = vt(0,0,0)
  3543. local scaled = 0.1
  3544. local posid = 0
  3545. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3546. for i = 0, 5, 0.1 do
  3547. swait()
  3548. scaled = scaled - 0.001
  3549. posid = posid - scaled
  3550. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3551. local scaled = 0.1
  3552. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3553. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Cool yellow"),10)
  3554. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3555. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3560. end
  3561. for i = 0, 2, 0.1 do
  3562. swait()
  3563. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3564. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3565. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3566. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3569. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3570. end
  3571. coroutine.resume(coroutine.create(function()
  3572. orb.Anchored = false
  3573. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3574.     local a = Instance.new("Part",workspace)
  3575.     a.Name = "Direction"   
  3576.     a.Anchored = true
  3577.     a.BrickColor = bc("Lime green")
  3578. a.Material = "Neon"
  3579. a.Transparency = 1
  3580.     a.CanCollide = false
  3581.     local ray = Ray.new(
  3582.         orb.CFrame.p,                           -- origin
  3583.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3584.     )
  3585.     local ignore = orb
  3586.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3587.     a.BottomSurface = 10
  3588.     a.TopSurface = 10
  3589.     local distance = (orb.CFrame.p - position).magnitude
  3590.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3591.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3592. orb.CFrame = a.CFrame
  3593. a:Destroy()
  3594. local bv = Instance.new("BodyVelocity")
  3595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3596. bv.velocity = orb.CFrame.lookVector*0
  3597. bv.Parent = orb
  3598. local hitted = false
  3599. local rate = 0
  3600. coroutine.resume(coroutine.create(function()
  3601. for i = 0, 24 do
  3602. wait(0.1)
  3603. rate = rate + 0.25
  3604. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3605. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3606. if v:FindFirstChild('Head') then
  3607. dmg(v)
  3608. end
  3609. end
  3610. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3611. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3612. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3613. end
  3614. orb.Anchored = true
  3615. orb.Transparency = 1
  3616. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3617. if v:FindFirstChild('Head') then
  3618. dmg(v)
  3619. end
  3620. end
  3621. local eff = Instance.new("ParticleEmitter",orb)
  3622. eff.Texture = "rbxassetid://296874871"
  3623. eff.LightEmission = 0.95
  3624. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3625. eff.Rate = 1000000000
  3626. eff.Lifetime = NumberRange.new(3)
  3627. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3628. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3629. eff.Speed = NumberRange.new(30)
  3630. eff.Acceleration = vt(0,-15,0)
  3631. eff.Rotation = NumberRange.new(-500,500)
  3632. eff.VelocitySpread = 100000
  3633. eff.RotSpeed = NumberRange.new(-500,500)
  3634. coroutine.resume(coroutine.create(function()
  3635.     wait(0.6)
  3636.     eff.Enabled = false
  3637. end))
  3638. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3639. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3640. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3641. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3642. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3643. game:GetService("Debris"):AddItem(orb, 15)
  3644. end))
  3645. end))
  3646. for i = 0, 1, 0.1 do
  3647. swait()
  3648. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3649. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3654. end
  3655. hum.WalkSpeed = storehumanoidWS
  3656. attack = false
  3657. end
  3658.  
  3659.  
  3660. function ChaosGroundStrike()
  3661. attack = true
  3662. for i = 0, 2, 0.1 do
  3663. swait()
  3664. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3665. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3666. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3668. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3669. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3670. end
  3671. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3672. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3673. CameraEnshaking(4,12)
  3674. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3675. if v:FindFirstChild('Head') then
  3676. dmg(v)
  3677. end
  3678. end
  3679. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3680. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3681. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3682. for i = 0, 2, 0.1 do
  3683. swait()
  3684. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3685. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3686. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3687. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3691. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3692. end
  3693. attack = false
  3694. end
  3695.  
  3696.  
  3697.  
  3698. function Starfall()
  3699. attack = true
  3700. hum.WalkSpeed = 0
  3701. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3702. for i = 0, 5, 0.1 do
  3703. swait()
  3704. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3705. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3706. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3707. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3709. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3710. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3711. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3712. end
  3713. local Overed = false
  3714. CameraEnshaking(2,20)
  3715. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3716. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3717. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3718. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3719. local orb = Instance.new("Part", char)
  3720.         orb.Anchored = true
  3721.         orb.BrickColor = BrickColor.new("Toothpaste")
  3722.         orb.CanCollide = false
  3723.         orb.FormFactor = 3
  3724.         orb.Name = "Remenant"
  3725.         orb.Material = "Neon"
  3726. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3727.         orb.Size = Vector3.new(1, 1, 1)
  3728.         orb.Transparency = 1
  3729.         orb.TopSurface = 0
  3730.         orb.BottomSurface = 0
  3731. hum.WalkSpeed = storehumanoidWS
  3732. coroutine.resume(coroutine.create(function()
  3733. for i = 0, 9 do
  3734. swait(10)
  3735.                  local lb = Instance.new("Part")
  3736.     lb.Color = MAINRUINCOLOR.Color
  3737.      lb.CanCollide = false
  3738. lb.Material = "Neon"
  3739.      lb.Anchored = true
  3740. lb.TopSurface = 0
  3741.         lb.BottomSurface = 0
  3742.      lb.Transparency = 0
  3743.      lb.Size = vt(1,1,1)
  3744.      lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3745. lb.Anchored = false
  3746.   lb.Parent = char
  3747. local thingery = Instance.new("SpecialMesh",lb)
  3748.      thingery.MeshType = "Sphere"
  3749. thingery.Scale = vt(20,20,20)
  3750. game:GetService("Debris"):AddItem(lb, 10)
  3751.   local bv = Instance.new("BodyVelocity")
  3752.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3753.   bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3754.   bv.Parent = lb
  3755. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3756. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3757. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3758. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3759. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3760. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3761. local hitted = false
  3762. coroutine.resume(coroutine.create(function()
  3763. while true do
  3764. swait(1)
  3765. if lb.Parent ~= nil and hitted == false then
  3766. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3767. elseif lb.Parent == nil then
  3768. break
  3769. end
  3770. end
  3771. end))
  3772.  
  3773. game:GetService("Debris"):AddItem(a, 0.1)
  3774.  
  3775. coroutine.resume(coroutine.create(function()
  3776. swait(1)
  3777. lb.Touched:connect(function(hit)
  3778. if hitted == false then
  3779. hitted = true
  3780. lb.Transparency = 1
  3781. lb.Anchored = true
  3782. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3783. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3784. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3785. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3786. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3787. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3788. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3789. CameraEnshaking(1,5)
  3790. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3791. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3792. for i = 0, 9 do
  3793. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3794. end
  3795. for i = 0, 49 do
  3796. swait()
  3797. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3798. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3799. end
  3800. end
  3801. end)
  3802. end))
  3803. end
  3804. Overed = true
  3805. orb:Destroy()
  3806. end))
  3807.  
  3808. attack = false
  3809. end
  3810.  
  3811. function StarfallEX()
  3812. attack = true
  3813. hum.WalkSpeed = 0
  3814. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3815. for i = 0, 10, 0.1 do
  3816. swait()
  3817. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3818. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3819. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3820. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3825. end
  3826. local Overed = false
  3827. CameraEnshaking(2,20)
  3828. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3829. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3830. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3831. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3832. local orb = Instance.new("Part", char)
  3833.         orb.Anchored = true
  3834.         orb.BrickColor = BrickColor.new("Toothpaste")
  3835.         orb.CanCollide = false
  3836.         orb.FormFactor = 3
  3837.         orb.Name = "Remenant"
  3838.         orb.Material = "Neon"
  3839. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3840.         orb.Size = Vector3.new(1, 1, 1)
  3841.         orb.Transparency = 1
  3842.         orb.TopSurface = 0
  3843.         orb.BottomSurface = 0
  3844. hum.WalkSpeed = storehumanoidWS
  3845. coroutine.resume(coroutine.create(function()
  3846. for i = 0, 4 do
  3847. swait(15)
  3848.                  local lb = Instance.new("Part")
  3849.     lb.Color = MAINRUINCOLOR.Color
  3850.      lb.CanCollide = false
  3851. lb.Material = "Neon"
  3852.      lb.Anchored = true
  3853. lb.TopSurface = 0
  3854.         lb.BottomSurface = 0
  3855.      lb.Transparency = 0
  3856.      lb.Size = vt(1,1,1)
  3857.      lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3858. lb.Anchored = false
  3859.   lb.Parent = char
  3860. local thingery = Instance.new("SpecialMesh",lb)
  3861.      thingery.MeshType = "Sphere"
  3862. thingery.Scale = vt(50,50,50)
  3863. game:GetService("Debris"):AddItem(lb, 10)
  3864.   local bv = Instance.new("BodyVelocity")
  3865.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3866.   bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3867.   bv.Parent = lb
  3868. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3869. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3870. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3871. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3872. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3873. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3874. local hitted = false
  3875. coroutine.resume(coroutine.create(function()
  3876. while true do
  3877. swait(1)
  3878. if lb.Parent ~= nil and hitted == false then
  3879. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3880. elseif lb.Parent == nil then
  3881. break
  3882. end
  3883. end
  3884. end))
  3885.  
  3886. game:GetService("Debris"):AddItem(a, 0.1)
  3887.  
  3888. coroutine.resume(coroutine.create(function()
  3889. swait(1)
  3890. lb.Touched:connect(function(hit)
  3891. if hitted == false then
  3892. hitted = true
  3893. lb.Transparency = 1
  3894. lb.Anchored = true
  3895. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3896. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3897. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3898. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3899. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3900. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3901. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3902. CameraEnshaking(1,5)
  3903. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3904. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3905. for i = 0, 9 do
  3906. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  3907. end
  3908. for i = 0, 99 do
  3909. swait()
  3910. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3911. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  3912. end
  3913. end
  3914. end)
  3915. end))
  3916. end
  3917. Overed = true
  3918. orb:Destroy()
  3919. end))
  3920.  
  3921. attack = false
  3922. end
  3923.  
  3924. function DivineBlast()
  3925. attack = true
  3926. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3927. hum.WalkSpeed = 0
  3928. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3929. elocacenter.Anchored = true
  3930. elocacenter.CFrame = sorb.CFrame
  3931. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3932. eloca1.Anchored = true
  3933. eloca1.CFrame = elocacenter.CFrame
  3934. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3935. eloca2.Anchored = true
  3936. eloca2.CFrame = elocacenter.CFrame
  3937. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3938. eloca3.Anchored = true
  3939. eloca3.CFrame = elocacenter.CFrame
  3940. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3941. eloca4.Anchored = true
  3942. eloca4.CFrame = elocacenter.CFrame
  3943. local lookavec = 0
  3944. local speeds = 0
  3945. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3946. for i = 0, 3, 0.1 do
  3947. swait()
  3948. ---
  3949. lookavec = lookavec + 0.1
  3950. speeds = speeds + 10
  3951. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3952. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3953. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3954.  
  3955. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3956. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3957.  
  3958. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3959. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3960.  
  3961. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3962. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3963. ---
  3964. root.CFrame = FaceMouse()[1]
  3965. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3966. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3970. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3971. end
  3972. for i = 0, 3, 0.1 do
  3973. swait()
  3974. ---
  3975. speeds = speeds + 10
  3976. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3977. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3978. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3979.  
  3980. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3981. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3982.  
  3983. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3984. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3985.  
  3986. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3987. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3988. ---
  3989. root.CFrame = FaceMouse()[1]
  3990. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3991. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3992. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3993. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3995. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  3996. end
  3997. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3998. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3999. for i = 0, 3, 0.1 do
  4000. swait()
  4001. ---
  4002. speeds = speeds + 10
  4003. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4004. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4005. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4006.  
  4007. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4008. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4009.  
  4010. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4011. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4012.  
  4013. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4014. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4015. ---
  4016. root.CFrame = FaceMouse()[1]
  4017. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4018. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4022. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4023. end
  4024. coroutine.resume(coroutine.create(function()
  4025. local a = Instance.new("Part",Character)
  4026.     a.Name = "Direction"   
  4027.     a.Anchored = true
  4028.     a.BrickColor = bc("White")
  4029. a.Material = "Neon"
  4030. a.Transparency = 0
  4031. a.Shape = "Cylinder"
  4032.     a.CanCollide = false
  4033. local a2 = Instance.new("Part",Character)
  4034.     a2.Name = "Direction"  
  4035.     a2.Anchored = true
  4036.     a2.BrickColor = bc("Bright yellow")
  4037. a2.Material = "Neon"
  4038. a2.Transparency = 0
  4039. a2.Shape = "Cylinder"
  4040.     a2.CanCollide = false
  4041. local b = Instance.new("Part",Character)
  4042.     b.Name = "HitDirect"   
  4043.     b.Anchored = true
  4044.     b.BrickColor = bc("Cool yellow")
  4045. b.Material = "Neon"
  4046. b.Transparency = 1
  4047.     b.CanCollide = false
  4048.     local ray = Ray.new(
  4049.         elocacenter.CFrame.p,                           -- origin
  4050.         (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4051.     )
  4052.     local ignore = Character
  4053.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4054.     a.BottomSurface = 10
  4055.     a.TopSurface = 10
  4056.     a2.BottomSurface = 10
  4057.     a2.TopSurface = 10
  4058.     local distance = (elocacenter.CFrame.p - position).magnitude
  4059.     a.Size = Vector3.new(distance, 1, 1)
  4060.     a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4061.     a2.Size = Vector3.new(distance, 1, 1)
  4062.     a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4063. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4064. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4065. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4066. game:GetService("Debris"):AddItem(a, 10)
  4067. game:GetService("Debris"):AddItem(a2, 10)
  4068. game:GetService("Debris"):AddItem(b, 10)
  4069. local eff = Instance.new("ParticleEmitter",b)
  4070. eff.Texture = "rbxassetid://2273224484"
  4071. eff.LightEmission = 1
  4072. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4073. eff.Rate = 500000
  4074. eff.Lifetime = NumberRange.new(0.5,2)
  4075. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4076. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4077. eff.Speed = NumberRange.new(20,250)
  4078. eff.Drag = 5
  4079. eff.Rotation = NumberRange.new(-500,500)
  4080. eff.VelocitySpread = 9000
  4081. eff.RotSpeed = NumberRange.new(-50,50)
  4082. coroutine.resume(coroutine.create(function()
  4083. wait(0.25)
  4084. eff.Enabled = false
  4085. end))
  4086. local msh = Instance.new("SpecialMesh",a)
  4087. msh.MeshType = "Cylinder"
  4088. msh.Scale = vt(1,2,2)
  4089. local msh2 = Instance.new("SpecialMesh",a2)
  4090. msh2.MeshType = "Cylinder"
  4091. msh2.Scale = vt(1,2.5,2.5)
  4092. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4093. coroutine.resume(coroutine.create(function()
  4094. for i = 0,10,0.1 do
  4095. swait()
  4096. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4097. a.Transparency = a.Transparency + 0.025
  4098. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4099. a2.Transparency = a2.Transparency + 0.05
  4100. end
  4101. a:Destroy()
  4102. a2:Destroy()
  4103. end))
  4104. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4105. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4106. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4107. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4108. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4109. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4110. MagniDamage(b, 25, 40,65, 0, "Normal")
  4111. for i = 0, 49 do
  4112. PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
  4113. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  4114. end
  4115. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4116. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4117. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4118. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4119. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4120. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4121. end))
  4122. game:GetService("Debris"):AddItem(elocacenter, 5)
  4123. hum.WalkSpeed = storehumanoidWS
  4124. attack = false
  4125. end
  4126.  
  4127. function StarDivision()
  4128. attack = true
  4129. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4130. for i = 0, 2, 0.1 do
  4131. swait()
  4132. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4133. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4136. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4137. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4138. end
  4139. local orb = Instance.new("Part", char)
  4140.         orb.BrickColor = MAINRUINCOLOR
  4141.         orb.CanCollide = false
  4142.         orb.FormFactor = 3
  4143.         orb.Name = "Ring"
  4144.         orb.Material = "Neon"
  4145.         orb.Size = Vector3.new(1, 1, 1)
  4146.         orb.Transparency = 0
  4147.         orb.TopSurface = 0
  4148.         orb.BottomSurface = 0
  4149.         local orbm = Instance.new("SpecialMesh", orb)
  4150.         orbm.MeshType = "Sphere"
  4151. orbm.Name = "SizeMesh"
  4152. orbm.Scale = vt(2,2,2)
  4153. local a = Instance.new("Part",workspace)
  4154.     a.Name = "Direction"   
  4155.     a.Anchored = true
  4156.     a.BrickColor = bc("Bright red")
  4157. a.Material = "Neon"
  4158. a.Transparency = 1
  4159.     a.CanCollide = false
  4160.     local ray = Ray.new(
  4161.         sorb.CFrame.p,                           -- origin
  4162.         (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4163.     )
  4164.     local ignore = sorb
  4165.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4166.     a.BottomSurface = 10
  4167.     a.TopSurface = 10
  4168.     local distance = (sorb.CFrame.p - position).magnitude
  4169.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  4170.     a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4171. orb.CFrame = a.CFrame
  4172. a:Destroy()
  4173. local bv = Instance.new("BodyVelocity")
  4174. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4175. bv.velocity = orb.CFrame.lookVector*100
  4176. bv.Parent = orb
  4177. local hitted = false
  4178. game:GetService("Debris"):AddItem(orb, 10)
  4179. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4180. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4181. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4182. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4183. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4184. coroutine.resume(coroutine.create(function()
  4185. while true do
  4186. swait(1)
  4187. if orb.Parent ~= nil and hitted == false then
  4188. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4189. elseif orb.Parent == nil then
  4190. break
  4191. end
  4192. end
  4193. end))
  4194. coroutine.resume(coroutine.create(function()
  4195. swait(1)
  4196. orb.Touched:connect(function(hit)
  4197. if hitted == false then
  4198. hitted = true
  4199. game:GetService("Debris"):AddItem(orb, 5)
  4200. orb.Transparency = 1
  4201. orb.Anchored = true
  4202. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4203. elocacenter.Anchored = true
  4204. elocacenter.CFrame = orb.CFrame
  4205. elocacenter.Orientation = vt(0,0,0)
  4206. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4207. eloca1.Anchored = true
  4208. eloca1.CFrame = elocacenter.CFrame
  4209. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4210. eloca2.Anchored = true
  4211. eloca2.CFrame = elocacenter.CFrame
  4212. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4213. eloca3.Anchored = true
  4214. eloca3.CFrame = elocacenter.CFrame
  4215. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4216. eloca4.Anchored = true
  4217. eloca4.CFrame = elocacenter.CFrame
  4218. local lookavec = 0
  4219. local speeds = 0
  4220. CameraEnshaking(1,1)
  4221. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4222. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4223. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4224. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4225. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4226. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4227. for i = 0, 99 do
  4228. swait()
  4229. lookavec = lookavec + 1
  4230. speeds = speeds + 0.1
  4231. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4232. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4233. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4234.  
  4235. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4236. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4237.  
  4238. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4239. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4240.  
  4241. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4242. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4243. end
  4244.  
  4245. for i = 0, 149 do
  4246. swait()
  4247. speeds = speeds + 0.1
  4248. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4249. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4250. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4251.  
  4252. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4253. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4254.  
  4255. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4256. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4257.  
  4258. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4259. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4260. end
  4261. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4262. if v:FindFirstChild('Head') then
  4263. dmg(v)
  4264. end
  4265. end
  4266. CameraEnshaking(7,30)
  4267. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4268. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4269. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4270. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4271. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4272. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4273. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4274. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4275. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4276. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4277. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4278. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4279. for i = 0, 24 do
  4280. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4281. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4282. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4283. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4284. end
  4285. coroutine.resume(coroutine.create(function()
  4286. for i = 0, 499 do
  4287. swait(1)
  4288. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4289. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4290. end
  4291. elocacenter:Destroy()
  4292. eloca1:Destroy()
  4293. eloca2:Destroy()
  4294. eloca3:Destroy()
  4295. eloca4:Destroy()
  4296. end))
  4297. end
  4298. end)
  4299. end))
  4300. attack = false
  4301. end
  4302.  
  4303.  
  4304. function THE_TRUE_POWER_OF_VIOLENCE()
  4305. attack = true
  4306. hum.WalkSpeed = 0
  4307. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4308. for i = 0, 10, 0.1 do
  4309. swait()
  4310. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4311. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4312. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4313. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4314. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4315. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4316. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4317. end
  4318. local orb = Instance.new("Part", char)
  4319.         orb.BrickColor = MAINRUINCOLOR
  4320.         orb.CanCollide = false
  4321.         orb.FormFactor = 3
  4322.         orb.Name = "Ring"
  4323.         orb.Material = "Neon"
  4324.         orb.Size = Vector3.new(1, 1, 1)
  4325.         orb.Transparency = 0
  4326.         orb.TopSurface = 0
  4327.         orb.BottomSurface = 0
  4328. orb.CFrame = sorb.CFrame
  4329.         local orbm = Instance.new("SpecialMesh", orb)
  4330.         orbm.MeshType = "Sphere"
  4331. orbm.Name = "SizeMesh"
  4332. orbm.Scale = vt(0,0,0)
  4333.         local sbs = Instance.new("BodyPosition", orb)
  4334.         sbs.P = 3000
  4335.         sbs.D = 1000
  4336.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4337.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4338. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4339. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4340. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4341. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4342. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4343. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4344. for i = 0, 10, 0.1 do
  4345. swait()
  4346. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4347. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4348. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4351. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4352. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4353. end
  4354. orb.Anchored = true
  4355. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4356. elocacenter.Anchored = true
  4357. elocacenter.CFrame = orb.CFrame
  4358. elocacenter.Orientation = vt(0,0,0)
  4359. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4360. eloca1.Anchored = true
  4361. eloca1.CFrame = elocacenter.CFrame
  4362. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4363. eloca2.Anchored = true
  4364. eloca2.CFrame = elocacenter.CFrame
  4365. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4366. eloca3.Anchored = true
  4367. eloca3.CFrame = elocacenter.CFrame
  4368. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4369. eloca4.Anchored = true
  4370. eloca4.CFrame = elocacenter.CFrame
  4371. local lookavec = 0
  4372. local speeds = 0
  4373. CameraEnshaking(1,1)
  4374. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4375. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4376. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4377. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4378. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4379. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4380. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4381. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4382. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4383. for i = 0, 99 do
  4384. swait()
  4385. lookavec = lookavec + 2.5
  4386. speeds = speeds + 0.25
  4387. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4388. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4389. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4390.  
  4391. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4392. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4393.  
  4394. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4395. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4396.  
  4397. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4398. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4399. end
  4400.  
  4401. for i = 0, 149 do
  4402. swait()
  4403. speeds = speeds + 0.25
  4404. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4405. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4406. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4407.  
  4408. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4409. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4410.  
  4411. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4412. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4413.  
  4414. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4415. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4416. end
  4417. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4418. for i = 0, 99 do
  4419. swait()
  4420. lookavec = lookavec - 2.5
  4421. speeds = speeds + 0.25
  4422. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4423. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4424. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4425.  
  4426. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4427. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4428.  
  4429. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4430. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4431.  
  4432. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4433. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4434. end
  4435. local scaled = 0.1*75
  4436. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4437. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4438. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4439. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4440. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4441. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4442. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4443. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4444. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4445. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4446. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4447.  
  4448. for i = 0, 10, 0.1 do
  4449. swait()
  4450. scaled = scaled - 0.001*75
  4451. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4452. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4453. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4454. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4455. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4457. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4458. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4459. end
  4460. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4461. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4462. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4463. for x = 0, 4 do
  4464. for i = 0, 9 do
  4465. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4466. end
  4467. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4468. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4469. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4470. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4471. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4472. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4473. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4474. for i = 0, 5, 0.1 do
  4475. swait()
  4476. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4477. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4478. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4479. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4482. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4483. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4484. end
  4485. end
  4486. local speedearn = 0
  4487. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4488. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4489. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4490. for i = 0, 30, 0.1 do
  4491. swait()
  4492. scaled = scaled - 0.001*75/10
  4493. speedearn = speedearn + 0.5
  4494. for i = 0, 4 do
  4495. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4496. end
  4497. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4498. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4499. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4500. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4501. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  4502. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  4503. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4506. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4507. end
  4508. orb.Transparency = 1
  4509. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4510. if v:FindFirstChild('Head') then
  4511. dmg(v)
  4512. end
  4513. end
  4514. CameraEnshaking(7,30)
  4515. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4516. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4517. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4518. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4519. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4520. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4521. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4522. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4523. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4524. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4525. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4526. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4527. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4528. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4529. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4530. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4531. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4532. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4533. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4534. for i = 0, 99 do
  4535. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4536. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4537. end
  4538. for i = 0, 24 do
  4539. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4540. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4541. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4542. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4543. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4544. end
  4545. game:GetService("Debris"):AddItem(orb, 10)
  4546. hum.WalkSpeed = storehumanoidWS
  4547. attack = false
  4548. end
  4549.  
  4550.  
  4551. function ViolentRing()
  4552. attack = true
  4553. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4554. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4555. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4556. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4557. for i = 0, 2, 0.1 do
  4558. swait()
  4559. local snap = math.random(1,10)
  4560. if snap == 1 then
  4561. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4562. end
  4563. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4564. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4565. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4566. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4567. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4568. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  4569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4570. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4571. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4572. RootPart.CFrame = FaceMouse()[1]
  4573. end
  4574. local orb = Instance.new("Part", char)
  4575.         orb.BrickColor = MAINRUINCOLOR
  4576.         orb.CanCollide = false
  4577.         orb.FormFactor = 3
  4578.         orb.Name = "Ring"
  4579.         orb.Material = "Neon"
  4580.         orb.Size = Vector3.new(1, 1, 1)
  4581.         orb.Transparency = 0
  4582.         orb.TopSurface = 0
  4583.         orb.BottomSurface = 0
  4584.         local orbm = Instance.new("SpecialMesh", orb)
  4585.         orbm.MeshType = "Sphere"
  4586. orbm.Name = "SizeMesh"
  4587. orbm.Scale = vt(2,2,2)
  4588. orb.CFrame = mouse.Hit
  4589. local bv = Instance.new("BodyVelocity")
  4590. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4591. bv.velocity = orb.CFrame.lookVector*100
  4592. bv.Parent = orb
  4593. local hitted = false
  4594. coroutine.resume(coroutine.create(function()
  4595. game:GetService("Debris"):AddItem(orb, 5)
  4596. orb.Transparency = 1
  4597. orb.Anchored = true
  4598. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4599. elocacenter.Anchored = true
  4600. elocacenter.CFrame = orb.CFrame
  4601. elocacenter.Orientation = vt(0,0,0)
  4602. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4603. eloca1.Anchored = true
  4604. eloca1.CFrame = elocacenter.CFrame
  4605. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4606. eloca2.Anchored = true
  4607. eloca2.CFrame = elocacenter.CFrame
  4608. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4609. eloca3.Anchored = true
  4610. eloca3.CFrame = elocacenter.CFrame
  4611. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4612. eloca4.Anchored = true
  4613. eloca4.CFrame = elocacenter.CFrame
  4614. local lookavec = 0
  4615. local speeds = 0
  4616. CameraEnshaking(1,1)
  4617. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4618. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4619. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4620. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4621. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4622. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4623. for i = 0, 24 do
  4624. swait()
  4625. lookavec = lookavec + 3.5
  4626. speeds = speeds + 1
  4627. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4628. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4629. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4630.  
  4631. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4632. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4633.  
  4634. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4635. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4636.  
  4637. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4638. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4639. end
  4640.  
  4641. local risen = 0
  4642. for i = 0, 49 do
  4643. swait()
  4644. risen = risen + 0.05
  4645. speeds = speeds + 0.1
  4646. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4647. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4648. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4649.  
  4650. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4651. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4652.  
  4653. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4654. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4655.  
  4656. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4657. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4658. end
  4659. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4660. if v:FindFirstChild('Head') then
  4661. dmg(v)
  4662. end
  4663. end
  4664. CameraEnshaking(4,10)
  4665. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4666. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4667. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4668. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4669. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4670. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4671. local eff = Instance.new("ParticleEmitter",elocacenter)
  4672. eff.Texture = "rbxassetid://2273224484"
  4673. eff.LightEmission = 1
  4674. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4675. eff.Rate = 1000000
  4676. eff.Lifetime = NumberRange.new(0.5,2)
  4677. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4678. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4679. eff.Speed = NumberRange.new(20,250)
  4680. eff.Drag = 5
  4681. eff.Rotation = NumberRange.new(-500,500)
  4682. eff.VelocitySpread = 5000000
  4683. eff.RotSpeed = NumberRange.new(-50,50)
  4684. coroutine.resume(coroutine.create(function()
  4685. wait(1)
  4686. eff.Enabled = false
  4687. end))
  4688. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4689. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4690. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4691. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4692. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4693. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4694. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4695. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4696. for i = 0, 24 do
  4697. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  4698. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4699. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4700. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4701. end
  4702. coroutine.resume(coroutine.create(function()
  4703. wait(10)
  4704. elocacenter:Destroy()
  4705. eloca1:Destroy()
  4706. eloca2:Destroy()
  4707. eloca3:Destroy()
  4708. eloca4:Destroy()
  4709. end))
  4710. end))
  4711. attack = false
  4712. end
  4713.  
  4714. function UniversalCollapse()
  4715. attack = true
  4716. local speedearn = 0
  4717. hum.WalkSpeed = 0
  4718.         local sbs = Instance.new("BodyPosition", root)
  4719.         sbs.P = 3000
  4720.         sbs.D = 1000
  4721.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4722.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4723. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4724. for i = 0, 85, 0.1 do
  4725. swait()
  4726. speedearn = speedearn + 0.1
  4727. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4728. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4729. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4730. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4731. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4732. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4733. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4734. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4735. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4737. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4738. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4739. end
  4740. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4741. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4742. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4743. for i = 0, 25, 0.1 do
  4744. swait()
  4745. speedearn = speedearn + 0.1
  4746. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4747. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4748. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4749. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4750. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4751. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4752. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4753. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4754. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4755. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4756. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4757. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4758. end
  4759. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4760. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4761. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4762. CameraEnshaking(5,50)
  4763. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4764. for i = 0, 2 do
  4765. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4766. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4767. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4768. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4769. end
  4770. for i = 0, 49 do
  4771. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4772. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4773. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4774. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4775. end
  4776. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4777. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4778. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4779. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4780. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4781. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4782. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4783. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4784. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4785. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4786. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4787. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4788. for i = 0, 99 do
  4789. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4790. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4791. end
  4792. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4793. if v:FindFirstChild('Head') then
  4794. dmg(v)
  4795. end
  4796. end
  4797. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4798. sbs:Destroy()
  4799. hum.WalkSpeed = storehumanoidWS
  4800. attack = false
  4801. end
  4802.  
  4803.  
  4804. function ChaosEND()
  4805. attack = true
  4806. local speedearn = 0
  4807. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4808. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4809. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4810. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4811. for i = 0, 15, 0.1 do
  4812. swait()
  4813. speedearn = speedearn + 0.25
  4814. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4815. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4816. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4817. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4818. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4819. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4820. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4825. end
  4826. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4827. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4828. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4829. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4830. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4831. CameraEnshaking(5,25)
  4832. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4833. if v:FindFirstChild('Head') then
  4834. dmg(v)
  4835. end
  4836. end
  4837. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4838. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4839. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4840. for i = 0, 3, 0.1 do
  4841. swait()
  4842. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4843. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4844. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4845. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4846. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4847. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4850. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4851. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4852. end
  4853. attack = false
  4854. end
  4855.  
  4856. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4857. local orb = Instance.new("Part", char)
  4858.         orb.Anchored = true
  4859.         orb.BrickColor = color
  4860.         orb.CanCollide = false
  4861.         orb.FormFactor = 3
  4862.         orb.Name = "Ring"
  4863.         orb.Material = "Neon"
  4864.         orb.Size = Vector3.new(1, 1, 1)
  4865.         orb.Transparency = 0
  4866.         orb.TopSurface = 0
  4867.         orb.BottomSurface = 0
  4868.         local orbm = Instance.new("SpecialMesh", orb)
  4869.         orbm.MeshType = "Sphere"
  4870. orb.CFrame = positted
  4871. orbm.Name = "SizeMesh"
  4872. orbm.Scale = vt(1,1,1)
  4873. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4874. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4875. --[[for i = 0, 2 do
  4876. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4877. end]]--
  4878. coroutine.resume(coroutine.create(function()
  4879. wait(timer)
  4880. CameraEnshaking(3,ShakePower)
  4881. orb.Transparency = 1
  4882. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4883. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4884. --[[for i = 0, 4 do
  4885. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4886. end]]--
  4887. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4888. wait(3)
  4889. orb:Destroy()
  4890. end))
  4891. end
  4892.  
  4893. function orb_spawn(positted,timer)
  4894. local randomcol = math.random(1,2)
  4895. local orb = Instance.new("Part", char)
  4896.         orb.Anchored = true
  4897. if randomcol == 1 then
  4898.         orb.BrickColor = BrickColor.new("White")
  4899. elseif randomcol == 2 then
  4900. orb.BrickColor = BrickColor.new("Really black")
  4901. end
  4902.         orb.CanCollide = false
  4903.         orb.FormFactor = 3
  4904.         orb.Name = "Ring"
  4905.         orb.Material = "Neon"
  4906.         orb.Size = Vector3.new(1, 1, 1)
  4907.         orb.Transparency = 0
  4908.         orb.TopSurface = 0
  4909.         orb.BottomSurface = 0
  4910.         local orbm = Instance.new("SpecialMesh", orb)
  4911.         orbm.MeshType = "Sphere"
  4912. orb.CFrame = positted
  4913. orbm.Name = "SizeMesh"
  4914. orbm.Scale = vt(1,1,1)
  4915. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4916. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4917. for i = 0, 2 do
  4918. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4919. end
  4920. coroutine.resume(coroutine.create(function()
  4921. wait(timer)
  4922. CameraEnshaking(3,2)
  4923. orb.Transparency = 1
  4924. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4925. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4926. for i = 0, 4 do
  4927. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4928. end
  4929. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4930. wait(3)
  4931. orb:Destroy()
  4932. end))
  4933. end
  4934.  
  4935. function scattercorrupt()
  4936. attack = true
  4937. hum.WalkSpeed = 0
  4938. for i = 0, 2, 0.1 do
  4939. swait()
  4940. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4941. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4945. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4946. end
  4947. local rot = 0
  4948. local randomrotations = math.random(1,2)
  4949. local lookv = 2.5
  4950. local power = 7
  4951. local radm = math.random(1,3)
  4952. if radm == 1 then
  4953. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4954. elseif radm == 2 then
  4955. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4956. elseif radm == 3 then
  4957. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4958. end
  4959. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4960. for i = 0, 1, 0.1 do
  4961. swait()
  4962. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4963. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  4964. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4967. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4968. end
  4969. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4970. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4971. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4972. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4973. for i = 0, 9 do
  4974. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4975. end
  4976. local hite = Instance.new("Part", char)
  4977.         hite.Anchored = true
  4978.         hite.CanCollide = false
  4979.         hite.FormFactor = 3
  4980.         hite.Name = "Ring"
  4981.         hite.Material = "Neon"
  4982.         hite.Size = Vector3.new(1, 1, 1)
  4983.         hite.Transparency = 1
  4984.         hite.TopSurface = 0
  4985.         hite.BottomSurface = 0
  4986. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4987. local rem = Instance.new("Part", char)
  4988.         rem.Anchored = true
  4989.         rem.CanCollide = false
  4990.         rem.FormFactor = 3
  4991.         rem.Name = "Ring"
  4992.         rem.Material = "Neon"
  4993.         rem.Size = Vector3.new(1, 1, 1)
  4994.         rem.Transparency = 1
  4995.         rem.TopSurface = 0
  4996.         rem.BottomSurface = 0
  4997. rem.CFrame = hite.CFrame
  4998. local rem2 = rem:Clone()
  4999. rem2.Parent = char
  5000. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5001. local rem3 = rem:Clone()
  5002. rem3.Parent = char
  5003. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5004. local rem4 = rem:Clone()
  5005. rem4.Parent = char
  5006. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5007. hite:Destroy()
  5008. coroutine.resume(coroutine.create(function()
  5009. for i = 0, 24 do
  5010. swait(1)
  5011. if randomrotations == 1 then
  5012. rot = rot + 1
  5013. elseif randomrotations == 2 then
  5014. rot = rot - 1
  5015. end
  5016. power = power + 0.5
  5017. lookv = lookv + 7.5
  5018. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5019. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5020. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5021. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5022. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5023. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5024. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5025. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5026. end
  5027. end))
  5028. wait(2)
  5029. hum.WalkSpeed = storehumanoidWS
  5030. attack = false
  5031. end
  5032. function yinyangi()
  5033. attack = true
  5034. for i = 0, 2, 0.1 do
  5035. swait()
  5036. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  5037. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  5038. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  5039. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5040. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5041. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5042. end
  5043. local bv = Instance.new("BodyVelocity")
  5044. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5045. bv.velocity = root.CFrame.lookVector*175
  5046. bv.Parent = root
  5047. for Rotations = 0, 9 do
  5048. for i = 0, 1, 0.5 do
  5049. swait()
  5050. bv.velocity = root.CFrame.lookVector*175
  5051. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5052. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  5054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5056. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5057. end
  5058. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5059. for i = 0, 1, 0.5 do
  5060. swait()
  5061. bv.velocity = root.CFrame.lookVector*175
  5062. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5063. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5068. end
  5069. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5070. for i = 0, 1, 0.5 do
  5071. swait()
  5072. bv.velocity = root.CFrame.lookVector*175
  5073. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5074. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5075. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5079. end
  5080. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5081. for i = 0, 1, 0.5 do
  5082. swait()
  5083. bv.velocity = root.CFrame.lookVector*175
  5084. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5085. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5086. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5088. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5089. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5090. end
  5091. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5092. end
  5093. bv:Destroy()
  5094. attack = false
  5095. end
  5096.  
  5097. function createBGCircle(size,parent,color)
  5098. local bgui = Instance.new("BillboardGui",parent)
  5099. bgui.Size = UDim2.new(size, 0, size, 0)
  5100. local imgc = Instance.new("ImageLabel",bgui)
  5101. imgc.BackgroundTransparency = 1
  5102. imgc.ImageTransparency = 0
  5103. imgc.Size = UDim2.new(1,0,1,0)
  5104. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5105. imgc.ImageColor3 = color
  5106. return bgui,imgc
  5107. end
  5108.  
  5109. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5110. local bgui,imgc = createBGCircle(size,guipar,color)
  5111. bgui.AlwaysOnTop = true
  5112. imgc.Image = "rbxassetid://" ..img
  5113. local rrot = math.random(1,2)
  5114. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5115. coroutine.resume(coroutine.create(function()
  5116. for i = 0, 24*delay do
  5117. swait()
  5118. if rotationenabled == true then
  5119. if rrot == 1 then
  5120. imgc.Rotation = imgc.Rotation + rotsp
  5121. elseif rrot == 2 then
  5122. imgc.Rotation = imgc.Rotation - rotsp
  5123. end
  5124. end
  5125. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5126. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5127. end
  5128. bgui:Destroy()
  5129. end))
  5130. end
  5131. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5132. for i, v in pairs(mw2:GetChildren()) do
  5133. if v:IsA("Part") then
  5134. v.BrickColor = one
  5135. v.Material = "Neon"
  5136. end
  5137. end
  5138. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5139. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5140. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5141. tr1.Color = ColorSequence.new(one.Color)
  5142. tr2.Color = ColorSequence.new(one.Color)
  5143. tr3.Color = ColorSequence.new(one.Color)
  5144. for i, v in pairs(mw1:GetChildren()) do
  5145. if v:IsA("Part") then
  5146. if secondaryenabled == false then
  5147. v.Transparency = 1
  5148. elseif secondaryenabled == true then
  5149. v.Transparency = 0
  5150. end
  5151. v.BrickColor = two
  5152. v.Material = "Neon"
  5153. end
  5154. end
  5155. if secondaryenabled == false then
  5156. tl1.Enabled = false
  5157. tl2.Enabled = false
  5158. tl3.Enabled = false
  5159. elseif secondaryenabled == true then
  5160. tl1.Enabled = true
  5161. tl2.Enabled = true
  5162. tl3.Enabled = true
  5163. end
  5164. tl1.Color = ColorSequence.new(two.Color)
  5165. tl2.Color = ColorSequence.new(two.Color)
  5166. tl3.Color = ColorSequence.new(two.Color)
  5167. for i, v in pairs(m:GetChildren()) do
  5168. if v:IsA("Part") then
  5169. v.BrickColor = three
  5170. v.Material = "Ice"
  5171. end
  5172. end
  5173. for i, v in pairs(m2:GetChildren()) do
  5174. if v:IsA("Part") then
  5175. v.BrickColor = four
  5176. v.Material = "Ice"
  5177. end
  5178. end
  5179. for i, v in pairs(m3:GetChildren()) do
  5180. if v:IsA("Part") then
  5181. v.BrickColor = five
  5182. v.Material = "Neon"
  5183. end
  5184. end
  5185. for i, v in pairs(extrawingmod1:GetChildren()) do
  5186. if v:IsA("Part") then
  5187. v.Transparency = exonetran
  5188. v.BrickColor = exone
  5189. v.Material = "Neon"
  5190. end
  5191. end
  5192. for i, v in pairs(extrawingmod2:GetChildren()) do
  5193. if v:IsA("Part") then
  5194. v.Transparency = extwotran
  5195. v.BrickColor = extwo
  5196. v.Material = "Neon"
  5197. end
  5198. end
  5199. end
  5200.  
  5201.  
  5202. function normalmog()
  5203. attack = true
  5204. hum.WalkSpeed = 0
  5205. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5206. for i = 0,6,0.1 do
  5207. swait()
  5208. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5209. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5210. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  5211. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  5212. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5213. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5214. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5215. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5216. end
  5217. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5218. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5219. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5220. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5221. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5222. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5223. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5224. rainbowmode = false
  5225. chaosmode = false
  5226. ModeOfGlitch = 1
  5227. storehumanoidWS = 16
  5228. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5229. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5230. CameraEnshaking(5,2.5)
  5231. MAINRUINCOLOR = BrickColor.new("Really red")
  5232. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5233. for i = 0, 49 do
  5234. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5235. end
  5236. for i = 0, 24 do
  5237. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  5238. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  5239. end
  5240. for i = 0,3,0.1 do
  5241. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5242. end
  5243. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5244. for i = 0,2,0.1 do
  5245. swait()
  5246. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5247. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5250. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5251. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5252. end
  5253. hum.WalkSpeed = storehumanoidWS
  5254. attack = false
  5255. end
  5256.  
  5257. function attackone()
  5258.     attack = true
  5259. local keptcolor = MAINRUINCOLOR
  5260.     for i = 0,1,0.1 do
  5261.         swait()
  5262.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5263. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5264. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5265. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5266. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5267. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5268.     end
  5269. local distlook = 5
  5270. coroutine.resume(coroutine.create(function()
  5271. for i = 0, 4 do
  5272. swait(2)
  5273. CameraEnshaking(2,3)
  5274. local hite = Instance.new("Part", char)
  5275.         hite.Anchored = true
  5276.         hite.CanCollide = false
  5277.         hite.FormFactor = 3
  5278.         hite.Name = "Ring"
  5279.         hite.Material = "Neon"
  5280.         hite.Size = Vector3.new(1, 1, 1)
  5281.         hite.Transparency = 1
  5282.         hite.TopSurface = 0
  5283.         hite.BottomSurface = 0
  5284. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5285. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5286. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5287. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5288. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5289. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5290. for i = 0, 14 do
  5291. local rsiz = math.random(5,20)
  5292. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5293. end
  5294. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5295. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5296. game:GetService("Debris"):AddItem(hite, 5)
  5297. distlook = distlook + 10
  5298. end
  5299. end))
  5300.     for i = 0,1,0.1 do
  5301.         swait()
  5302.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5303. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5304. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5305. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5306. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5307. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5308.     end
  5309.     attack = false
  5310. end
  5311.  
  5312. function attacktwo()
  5313.     attack = true
  5314. hum.WalkSpeed = 2
  5315. local keptcolor = MAINRUINCOLOR
  5316. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5317. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5318. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5319. for i = 0, 14 do
  5320. PixelBlock(1,math.random(1,3),"Add",rarm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,keptcolor,0)
  5321. end
  5322. for i = 0,1,0.1 do
  5323. swait()
  5324. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5325. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5326. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5327. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5328. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5329. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5330. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5331. end
  5332. for i = 0, 1 do
  5333. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5334. for i = 0,1,0.6 do
  5335. swait()
  5336. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5337. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5338. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5339. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5342. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5343. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5344. end
  5345. for i = 0,1,0.6 do
  5346. swait()
  5347. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5348. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5349. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5350. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5353. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5354. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5355. end
  5356. for i = 0,1,0.6 do
  5357. swait()
  5358. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5359. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5360. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5361. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5364. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5365. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5366. end
  5367. for i = 0,1,0.6 do
  5368. swait()
  5369. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5370. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5371. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5372. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5373. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5374. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5375. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5376. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5377. end
  5378. local rot = 0
  5379. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5380. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5381. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5382. CreateMesh(dis,"Sphere",10,1,10)
  5383. local at1 = Instance.new("Attachment",dis)
  5384. at1.Position = vt(-5,0,0)
  5385. local at2 = Instance.new("Attachment",dis)
  5386. at2.Position = vt(5,0,0)
  5387. local trl = Instance.new('Trail',wed)
  5388. trl.Attachment0 = at1
  5389. trl.Attachment1 = at2
  5390. trl.Texture = "rbxassetid://1049219073"
  5391. trl.LightEmission = 1
  5392. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5393. trl.Color = ColorSequence.new(dis.Color)
  5394. trl.Lifetime = 0.6
  5395. local a = Instance.new("Part",workspace)
  5396.     a.Name = "Direction"   
  5397.     a.Anchored = true
  5398.     a.BrickColor = bc("Bright red")
  5399. a.Material = "Neon"
  5400. a.Transparency = 1
  5401.     a.CanCollide = false
  5402.     local ray = Ray.new(
  5403.         dis.CFrame.p,                           -- origin
  5404.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5405.     )
  5406.     local ignore = dis
  5407.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5408.     a.BottomSurface = 10
  5409.     a.TopSurface = 10
  5410.     local distance = (dis.CFrame.p - position).magnitude
  5411.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  5412.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5413. dis.CFrame = a.CFrame
  5414. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5415. a:Destroy()
  5416. local bv = Instance.new("BodyVelocity")
  5417. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5418. bv.velocity = dis.CFrame.lookVector*250
  5419. bv.Parent = dis
  5420. game:GetService("Debris"):AddItem(dis, 5)
  5421. local hitted = false
  5422. coroutine.resume(coroutine.create(function()
  5423. dis.Touched:connect(function(hit)
  5424.     if hitted == false and hit.Parent ~= char then
  5425.     hitted = true
  5426.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5427.     MagniDamage(dis, 30, 33,56, 0, "Normal")
  5428.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5429.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5430.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5431.     coroutine.resume(coroutine.create(function()
  5432.         for i = 0, 9 do
  5433. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5434. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5435. local at1 = Instance.new("Attachment",disr)
  5436. at1.Position = vt(-5,0,0)
  5437. local at2 = Instance.new("Attachment",disr)
  5438. at2.Position = vt(5,0,0)
  5439. local trl = Instance.new('Trail',disr)
  5440. trl.Attachment0 = at1
  5441. trl.FaceCamera = true
  5442. trl.Attachment1 = at2
  5443. trl.Texture = "rbxassetid://2342682798"
  5444. trl.LightEmission = 1
  5445. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5446. trl.Color = ColorSequence.new(keptcolor.Color)
  5447. trl.Lifetime = 0.5
  5448. local bv = Instance.new("BodyVelocity")
  5449. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5450. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5451. bv.Parent = disr
  5452. local val = 0
  5453. coroutine.resume(coroutine.create(function()
  5454.     swait(30)
  5455.     for i = 0, 9 do
  5456.         swait()
  5457.         val = val + 0.1
  5458.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5459.     end
  5460. game:GetService("Debris"):AddItem(disr, 3)
  5461. end))
  5462. end
  5463. local eff = Instance.new("ParticleEmitter",dis)
  5464. eff.Texture = "rbxassetid://2273224484"
  5465. eff.LightEmission = 1
  5466. eff.Color = ColorSequence.new(keptcolor.Color)
  5467. eff.Rate = 500000
  5468. eff.Lifetime = NumberRange.new(0.5,2)
  5469. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5470. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5471. eff.Speed = NumberRange.new(20,250)
  5472. eff.Drag = 5
  5473. eff.Rotation = NumberRange.new(-500,500)
  5474. eff.VelocitySpread = 9000
  5475. eff.RotSpeed = NumberRange.new(-50,50)
  5476. wait(0.25)
  5477. eff.Enabled = false
  5478. end))
  5479.     for i = 0, 9 do
  5480.         slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  5481.     end
  5482. for i = 0, 19 do
  5483. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,keptcolor,0)
  5484. end
  5485. coroutine.resume(coroutine.create(function()
  5486. for i = 0, 19 do
  5487. swait()
  5488. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5489. end
  5490. hum.CameraOffset = vt(0,0,0)
  5491. end))
  5492. dis.Anchored = true
  5493. dis.Transparency = 1
  5494. wait(8)
  5495. dis:Destroy()
  5496. end
  5497. end)
  5498. end))
  5499. rot = rot - 15
  5500. end
  5501. for i = 0,2,0.1 do
  5502. swait()
  5503. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5508. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5509. end
  5510. attack = false
  5511. hum.WalkSpeed = storehumanoidWS
  5512. end
  5513.  
  5514. function attackthree()
  5515. attack = true
  5516. local keptcolor = MAINRUINCOLOR
  5517. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5518.     for i = 0,2,0.1 do
  5519.         swait()
  5520.         sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5521. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5522. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5523. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5524. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5525. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5526. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5527.     end
  5528. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5529. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5530. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5531. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5532. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5533. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5534. for i = 0, 24 do
  5535.         slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
  5536. end
  5537. for i = 0,4,0.1 do
  5538.         swait()
  5539.         root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5540.         local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5541. CreateMesh(dis,"Sphere",1,1,1)
  5542. dis.Anchored = true
  5543. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5544. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5545. coroutine.resume(coroutine.create(function()
  5546.     swait(30)
  5547.     dis.Transparency = 1
  5548. coroutine.resume(coroutine.create(function()
  5549. for i = 0, 19 do
  5550. swait()
  5551. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5552. end
  5553. hum.CameraOffset = vt(0,0,0)
  5554. end))
  5555. coroutine.resume(coroutine.create(function()
  5556. local eff = Instance.new("ParticleEmitter",dis)
  5557. eff.Texture = "rbxassetid://2273224484"
  5558. eff.LightEmission = 1
  5559. eff.Color = ColorSequence.new(dis.Color)
  5560. eff.Rate = 500000
  5561. eff.Lifetime = NumberRange.new(0.5,2)
  5562. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5563. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5564. eff.Speed = NumberRange.new(50,450)
  5565. eff.Drag = 5
  5566. eff.Rotation = NumberRange.new(-500,500)
  5567. eff.VelocitySpread = 9000
  5568. eff.RotSpeed = NumberRange.new(-50,50)
  5569. wait(0.125)
  5570. eff.Enabled = false
  5571. end))
  5572. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5573.     for i = 0, 2 do
  5574.         slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5575.     end
  5576.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5577.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5578.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5579.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5580. end))
  5581. game:GetService("Debris"):AddItem(dis, 5)
  5582. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5583. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5584. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5586. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5587. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5588.     end
  5589. attack = false
  5590. end
  5591. ----------------------------------- Abilities
  5592.  
  5593. function ExtinctiveHeartbreak()
  5594. local targetted = nil
  5595. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5596. targetted = mouse.Target.Parent
  5597. end
  5598. if targetted ~= nil then
  5599. attack = true
  5600. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5601. for i = 0, 9 do
  5602. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5603. end
  5604. for i = 0, 24 do
  5605. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5606. end
  5607. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5608. local originalpos = root.CFrame
  5609. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5610. for i = 0, 9 do
  5611. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5612. end
  5613. for i = 0, 24 do
  5614. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5615. end
  5616. hum.WalkSpeed = 0
  5617. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5618. local radm = math.random(1,3)
  5619. if radm == 1 then
  5620. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5621. elseif radm == 2 then
  5622. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5623. elseif radm == 3 then
  5624. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5625. end
  5626. for i = 0,2,0.1 do
  5627. swait()
  5628. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  5629. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  5630. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  5631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5632. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5633. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  5634. end
  5635. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5636. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5637. for i = 0,2,0.1 do
  5638. swait()
  5639. coroutine.resume(coroutine.create(function()
  5640. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5641. for i,v in pairs(targetted:GetChildren()) do
  5642. if v:IsA("Part") or v:IsA("MeshPart") then
  5643. v.Velocity = vt(0,0,0)
  5644. end
  5645. end
  5646. end))
  5647. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5648. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5649. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5651. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5652. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  5653. end
  5654. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5655. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5656. for i = 0, 1 do
  5657. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5658. end
  5659. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5660. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5661. for i = 0,4,0.1 do
  5662. swait()
  5663. coroutine.resume(coroutine.create(function()
  5664. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5665. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5666. local at1 = Instance.new("Attachment",dis)
  5667. at1.Position = vt(-25000,0,0)
  5668. local at2 = Instance.new("Attachment",dis)
  5669. at2.Position = vt(25000,0,0)
  5670. local trl = Instance.new('Trail',dis)
  5671. trl.Attachment0 = at1
  5672. trl.FaceCamera = true
  5673. trl.Attachment1 = at2
  5674. trl.Texture = "rbxassetid://1049219073"
  5675. trl.LightEmission = 1
  5676. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5677. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5678. trl.Lifetime = 5
  5679. local bv = Instance.new("BodyVelocity")
  5680. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5681. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5682. bv.Parent = dis
  5683. game:GetService("Debris"):AddItem(dis, 5)
  5684. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5685. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5686. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5687. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5688. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5689. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5690. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5691. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5692. for i = 0, 2 do
  5693. slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  5694. end
  5695. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5696. for i,v in pairs(targetted:GetChildren()) do
  5697. if v:IsA("Part") or v:IsA("MeshPart") then
  5698. v.Velocity = vt(0,0,0)
  5699. end
  5700. end
  5701. end))
  5702. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5703. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  5704. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
  5705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5707. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  5708. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5709. end
  5710. hum.CameraOffset = vt(0,0,0)
  5711. for i = 0, 49 do
  5712. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5713. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5714. local at1 = Instance.new("Attachment",dis)
  5715. at1.Position = vt(-50000,0,0)
  5716. local at2 = Instance.new("Attachment",dis)
  5717. at2.Position = vt(50000,0,0)
  5718. local trl = Instance.new('Trail',dis)
  5719. trl.Attachment0 = at1
  5720. trl.FaceCamera = true
  5721. trl.Attachment1 = at2
  5722. trl.Texture = "rbxassetid://1049219073"
  5723. trl.LightEmission = 1
  5724. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5725. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5726. trl.Lifetime = 5
  5727. local bv = Instance.new("BodyVelocity")
  5728. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5729. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5730. bv.Parent = dis
  5731. game:GetService("Debris"):AddItem(dis, 5)
  5732. end
  5733. for i = 0, 49 do
  5734. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5735. slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  5736. end
  5737. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5738. for i = 0, 1 do
  5739. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5740. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5741. end
  5742. for i = 0, 4 do
  5743. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5744. end
  5745. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5746. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5747. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5748. dmg(targetted)
  5749. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5750. for i = 0, 9 do
  5751. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5752. end
  5753. for i = 0, 24 do
  5754. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5755. end
  5756. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5757. root.CFrame = originalpos
  5758. for i = 0, 9 do
  5759. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5760. end
  5761. for i = 0, 24 do
  5762. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5763. end
  5764. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5765. attack = false
  5766. hum.WalkSpeed = storehumanoidWS
  5767. end
  5768. end
  5769.  
  5770. function CorruptionEvent()
  5771. attack = true
  5772. hum.WalkSpeed = 0
  5773. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5774. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5775. local keptcolor = MAINRUINCOLOR
  5776. for i = 0,4,0.1 do
  5777. swait()
  5778. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5779. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5780. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5781. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5784. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5785. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5786. end
  5787. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5788. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5789. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5790. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5791. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5792. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5793. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5794. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5795. hum.CameraOffset = vt(0,0,0)
  5796. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5797. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5798. for i = 0, 24 do
  5799. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5800. end
  5801. local rrot = 0
  5802. coroutine.resume(coroutine.create(function()
  5803. for i = 0, 4 do
  5804. rrot = rrot + 45
  5805. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5806. xa.Anchored = true
  5807. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5808. xb.Anchored = true
  5809. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5810. xc.Anchored = true
  5811. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5812. xd.Anchored = true
  5813. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5814. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5815. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5816. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5817. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5818. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5819. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5820. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5821. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5822. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5823. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5824. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5825. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5826. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5827. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5828. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5829. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5830. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5831. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5832. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5833. for i = 0, 9 do
  5834. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5835. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5836. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5837. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  5838. end
  5839. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5840. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5841. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5842. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5843. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5844. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5845. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5846. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5847. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5848. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5849. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5850. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5851. game:GetService("Debris"):AddItem(xa, 5)
  5852. game:GetService("Debris"):AddItem(xb, 5)
  5853. game:GetService("Debris"):AddItem(xc, 5)
  5854. game:GetService("Debris"):AddItem(xd, 5)
  5855. coroutine.resume(coroutine.create(function()
  5856. for i = 0, 19 do
  5857. swait()
  5858. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5859. end
  5860. hum.CameraOffset = vt(0,0,0)
  5861. end))
  5862. swait(9)
  5863. end
  5864. end))
  5865. for i = 0,2,0.1 do
  5866. swait()
  5867. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5868. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  5869. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5871. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5872. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5873. end
  5874. attack = false
  5875. hum.WalkSpeed = storehumanoidWS
  5876. end
  5877.  
  5878. function EndGROUND()
  5879.     attack = true
  5880. hum.WalkSpeed = 0
  5881. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5882. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5883. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5884. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5885. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5886. local keptcolor = MAINRUINCOLOR
  5887. for i = 0,4,0.1 do
  5888. swait()
  5889. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5890. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5891. slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5892. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5893. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5894. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5895. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5896. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5897. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5898. end
  5899. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5900. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5901. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5902. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5903. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5904. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5905. coroutine.resume(coroutine.create(function()
  5906.     local shval = 10
  5907.     for i = 0, 99 do
  5908.         swait()
  5909.         shval = shval - 0.1
  5910.         hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5911.     end
  5912.     hum.CameraOffset = vt(0,0,0)
  5913. end))
  5914. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5915. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5916. for i = 0, 24 do
  5917. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5918. end
  5919. local rrot = 0
  5920. local xam = 1
  5921. coroutine.resume(coroutine.create(function()
  5922. for i = 0, 14 do
  5923. --swait()
  5924. rrot = rrot + 40*xam
  5925. xam = xam + 0.25
  5926. local bonus = xam
  5927. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5928. xa.Anchored = true
  5929. xa.Color = Color3.new(0,0,0)
  5930. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5931. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5932. local xc = 0
  5933. coroutine.resume(coroutine.create(function()
  5934. for i = 0, 99 do
  5935.     swait()
  5936.     xc = xc + 0.01
  5937.     xa.Color = Color3.new(xc,0,0)
  5938. end
  5939. xa.Transparency = 1
  5940. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5941. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5942. for i = 0, 9 do
  5943. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5944. end
  5945. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5946. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  5947. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5948. game:GetService("Debris"):AddItem(xa, 5)
  5949. coroutine.resume(coroutine.create(function()
  5950. for i = 0, 19 do
  5951. swait()
  5952. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5953. end
  5954. hum.CameraOffset = vt(0,0,0)
  5955. end))
  5956. end))
  5957. end
  5958. end))
  5959. for i = 0,2,0.1 do
  5960. swait()
  5961. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5962. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
  5963. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5964. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5965. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5966. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5967. end
  5968. attack = false
  5969. hum.WalkSpeed = storehumanoidWS
  5970. end
  5971.  
  5972. function HeavenlyDisk()
  5973. attack = true
  5974. hum.WalkSpeed = 2
  5975. local keptcolor = MAINRUINCOLOR
  5976. local radm = math.random(1,3)
  5977. if radm == 1 then
  5978. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5979. elseif radm == 2 then
  5980. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5981. elseif radm == 3 then
  5982. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5983. end
  5984. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5985. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5986. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5987. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5988. for i = 0, 14 do
  5989. PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Toothpaste"),0)
  5990. end
  5991. for i = 0,2,0.1 do
  5992. swait()
  5993. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5994. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5996. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5998. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5999. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6000. end
  6001. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6002. for i = 0,1,0.6 do
  6003. swait()
  6004. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6005. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6006. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6007. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6011. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6012. end
  6013. for i = 0,1,0.6 do
  6014. swait()
  6015. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6016. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6017. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6018. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6022. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6023. end
  6024. for i = 0,1,0.6 do
  6025. swait()
  6026. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6027. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6028. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6029. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6033. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6034. end
  6035. for i = 0,1,0.6 do
  6036. swait()
  6037. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6038. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6039. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6040. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6041. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6042. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6044. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6045. end
  6046. local rot = 15
  6047. for i = 0, 2 do
  6048. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6049. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6050. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6051. CreateMesh(dis,"Sphere",10,1,10)
  6052. local at1 = Instance.new("Attachment",dis)
  6053. at1.Position = vt(-5,0,0)
  6054. local at2 = Instance.new("Attachment",dis)
  6055. at2.Position = vt(5,0,0)
  6056. local trl = Instance.new('Trail',wed)
  6057. trl.Attachment0 = at1
  6058. trl.Attachment1 = at2
  6059. trl.Texture = "rbxassetid://1049219073"
  6060. trl.LightEmission = 1
  6061. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6062. trl.Color = ColorSequence.new(dis.Color)
  6063. trl.Lifetime = 0.6
  6064. local a = Instance.new("Part",workspace)
  6065.     a.Name = "Direction"   
  6066.     a.Anchored = true
  6067.     a.BrickColor = bc("Bright red")
  6068. a.Material = "Neon"
  6069. a.Transparency = 1
  6070.     a.CanCollide = false
  6071.     local ray = Ray.new(
  6072.         dis.CFrame.p,                           -- origin
  6073.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6074.     )
  6075.     local ignore = dis
  6076.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6077.     a.BottomSurface = 10
  6078.     a.TopSurface = 10
  6079.     local distance = (dis.CFrame.p - position).magnitude
  6080.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6081.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6082. dis.CFrame = a.CFrame
  6083. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6084. a:Destroy()
  6085. local bv = Instance.new("BodyVelocity")
  6086. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6087. bv.velocity = dis.CFrame.lookVector*250
  6088. bv.Parent = dis
  6089. game:GetService("Debris"):AddItem(dis, 5)
  6090. local hitted = false
  6091. coroutine.resume(coroutine.create(function()
  6092. dis.Touched:connect(function(hit)
  6093.     if hitted == false and hit.Parent ~= char then
  6094.     hitted = true
  6095.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6096.     MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6097.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6098.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6099.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6100.     coroutine.resume(coroutine.create(function()
  6101.         for i = 0, 9 do
  6102. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6103. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6104. local at1 = Instance.new("Attachment",disr)
  6105. at1.Position = vt(-2,0,0)
  6106. local at2 = Instance.new("Attachment",disr)
  6107. at2.Position = vt(2,0,0)
  6108. local trl = Instance.new('Trail',disr)
  6109. trl.Attachment0 = at1
  6110. trl.FaceCamera = true
  6111. trl.Attachment1 = at2
  6112. trl.Texture = "rbxassetid://2342682798"
  6113. trl.LightEmission = 1
  6114. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6115. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6116. trl.Lifetime = 0.5
  6117. local bv = Instance.new("BodyVelocity")
  6118. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6119. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6120. bv.Parent = disr
  6121. local val = 0
  6122. coroutine.resume(coroutine.create(function()
  6123.     swait(30)
  6124.     for i = 0, 9 do
  6125.         swait()
  6126.         val = val + 0.1
  6127.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6128.     end
  6129. game:GetService("Debris"):AddItem(disr, 3)
  6130. end))
  6131. end
  6132. local eff = Instance.new("ParticleEmitter",dis)
  6133. eff.Texture = "rbxassetid://2273224484"
  6134. eff.LightEmission = 1
  6135. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6136. eff.Rate = 500000
  6137. eff.Lifetime = NumberRange.new(0.5,2)
  6138. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6139. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6140. eff.Speed = NumberRange.new(20,250)
  6141. eff.Drag = 5
  6142. eff.Rotation = NumberRange.new(-500,500)
  6143. eff.VelocitySpread = 9000
  6144. eff.RotSpeed = NumberRange.new(-50,50)
  6145. wait(0.25)
  6146. eff.Enabled = false
  6147. end))
  6148.     for i = 0, 9 do
  6149.         slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6150.     end
  6151. for i = 0, 19 do
  6152. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  6153. end
  6154. coroutine.resume(coroutine.create(function()
  6155. for i = 0, 19 do
  6156. swait()
  6157. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6158. end
  6159. hum.CameraOffset = vt(0,0,0)
  6160. end))
  6161. dis.Anchored = true
  6162. dis.Transparency = 1
  6163. wait(8)
  6164. dis:Destroy()
  6165. end
  6166. end)
  6167. end))
  6168. rot = rot - 15
  6169. end
  6170. for i = 0,2,0.1 do
  6171. swait()
  6172. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  6173. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  6174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6176. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6177. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6178. end
  6179. attack = false
  6180. hum.WalkSpeed = storehumanoidWS
  6181. end
  6182.  
  6183.  
  6184. function RapidBurst()
  6185. attack = true
  6186. hum.WalkSpeed = 0
  6187. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6188. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6189. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6190. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6191. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.9)
  6192. bosschatfunc("SHATTER, YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,2)
  6193. local keptcolor = MAINRUINCOLOR
  6194. for i = 0,8,0.1 do
  6195. swait()
  6196. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6197. slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  6198. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6199. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  6200. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  6201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6203. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6204. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6205. end
  6206. for i = 0, 99 do
  6207. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6208. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6209. local at1 = Instance.new("Attachment",dis)
  6210. at1.Position = vt(-25000,0,0)
  6211. local at2 = Instance.new("Attachment",dis)
  6212. at2.Position = vt(25000,0,0)
  6213. local trl = Instance.new('Trail',dis)
  6214. trl.Attachment0 = at1
  6215. trl.FaceCamera = true
  6216. trl.Attachment1 = at2
  6217. trl.Texture = "rbxassetid://1049219073"
  6218. trl.LightEmission = 1
  6219. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6220. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6221. trl.Lifetime = 5
  6222. local bv = Instance.new("BodyVelocity")
  6223. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6224. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6225. bv.Parent = dis
  6226. game:GetService("Debris"):AddItem(dis, 5)
  6227. end
  6228. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6229. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6230. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6231. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6232. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6233. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6234. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6235. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6236. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6237. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6238. hum.CameraOffset = vt(0,0,0)
  6239. for i = 0, 24 do
  6240. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  6241. end
  6242. local distam = 0
  6243. coroutine.resume(coroutine.create(function()
  6244. for i = 0, 99 do
  6245.     wait()
  6246. distam = distam + 1
  6247. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6248. xa.Anchored = true
  6249. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6250. game:GetService("Debris"):AddItem(xa, 5)
  6251. for i = 0, 4 do
  6252. slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  6253. end
  6254. coroutine.resume(coroutine.create(function()
  6255. local eff = Instance.new("ParticleEmitter",xa)
  6256. eff.Texture = "rbxassetid://2273224484"
  6257. eff.LightEmission = 1
  6258. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6259. eff.Rate = 500000
  6260. eff.Lifetime = NumberRange.new(1,3)
  6261. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6262. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6263. eff.Speed = NumberRange.new(50,500)
  6264. eff.Drag = 5
  6265. eff.Rotation = NumberRange.new(-500,500)
  6266. eff.VelocitySpread = 9000
  6267. eff.RotSpeed = NumberRange.new(-50,50)
  6268. wait(0.25)
  6269. eff.Enabled = false
  6270. end))
  6271. coroutine.resume(coroutine.create(function()
  6272. for i = 0, 19 do
  6273. swait()
  6274. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6275. end
  6276. hum.CameraOffset = vt(0,0,0)
  6277. end))
  6278. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6279. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6280. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6281. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6282. end
  6283. end))
  6284. attack = false
  6285. hum.WalkSpeed = storehumanoidWS
  6286. end
  6287.  
  6288. function InsaneDrop()
  6289. attack = true
  6290. hum.WalkSpeed = 0
  6291. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6292. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6293. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6294. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6295. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6296. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6297. local keptcolor = MAINRUINCOLOR
  6298. for i = 0,8,0.1 do
  6299. swait()
  6300. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6301. 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())
  6302. 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)
  6303. 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)
  6304. 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)
  6305. 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)
  6306. 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)
  6307. 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)
  6308. 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)
  6309. end
  6310. for i = 0, 99 do
  6311. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6312. 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)))
  6313. local at1 = Instance.new("Attachment",dis)
  6314. at1.Position = vt(-25000,0,0)
  6315. local at2 = Instance.new("Attachment",dis)
  6316. at2.Position = vt(25000,0,0)
  6317. local trl = Instance.new('Trail',dis)
  6318. trl.Attachment0 = at1
  6319. trl.FaceCamera = true
  6320. trl.Attachment1 = at2
  6321. trl.Texture = "rbxassetid://1049219073"
  6322. trl.LightEmission = 1
  6323. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6324. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6325. trl.Lifetime = 5
  6326. local bv = Instance.new("BodyVelocity")
  6327. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6328. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6329. bv.Parent = dis
  6330. game:GetService("Debris"):AddItem(dis, 5)
  6331. end
  6332. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6333. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6334. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6335. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6336. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6337. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6338. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6339. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6340. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6341. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6342. hum.CameraOffset = vt(0,0,0)
  6343. for i = 0, 24 do
  6344. 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())
  6345. end
  6346. local distam = 0
  6347. coroutine.resume(coroutine.create(function()
  6348. for i = 0, 99 do
  6349.     wait()
  6350. distam = distam + 1
  6351. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6352. xa.Anchored = true
  6353. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6354. game:GetService("Debris"):AddItem(xa, 5)
  6355. for i = 0, 4 do
  6356. 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())
  6357. end
  6358. coroutine.resume(coroutine.create(function()
  6359. local eff = Instance.new("ParticleEmitter",xa)
  6360. eff.Texture = "rbxassetid://2273224484"
  6361. eff.LightEmission = 1
  6362. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6363. eff.Rate = 500000
  6364. eff.Lifetime = NumberRange.new(1,3)
  6365. 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)})
  6366. 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)})
  6367. eff.Speed = NumberRange.new(50,500)
  6368. eff.Drag = 5
  6369. eff.Rotation = NumberRange.new(-500,500)
  6370. eff.VelocitySpread = 9000
  6371. eff.RotSpeed = NumberRange.new(-50,50)
  6372. wait(0.25)
  6373. eff.Enabled = false
  6374. end))
  6375. coroutine.resume(coroutine.create(function()
  6376. for i = 0, 19 do
  6377. swait()
  6378. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6379. end
  6380. hum.CameraOffset = vt(0,0,0)
  6381. end))
  6382. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6383. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6384. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6385. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6386. end
  6387. end))
  6388. attack = false
  6389. hum.WalkSpeed = storehumanoidWS
  6390. end
  6391.  
  6392. function FallenOrbs()
  6393. attack = true
  6394. hum.WalkSpeed = 2
  6395. local keptcolor = MAINRUINCOLOR
  6396. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6397. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6398. local radm = math.random(1,3)
  6399. if radm == 1 then
  6400. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6401. elseif radm == 2 then
  6402. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6403. elseif radm == 3 then
  6404. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6405. end
  6406. coroutine.resume(coroutine.create(function()
  6407. for i = 0, 29 do
  6408. swait(2)
  6409. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6410. dis.Anchored = true
  6411. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6412. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6413. CreateMesh(dis,"Sphere",2,2,2)
  6414. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6415. 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"))
  6416. coroutine.resume(coroutine.create(function()
  6417. wait(0.5)
  6418. dis.Anchored = false
  6419. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6420. local at1 = Instance.new("Attachment",dis)
  6421. at1.Position = vt(-1,0,0)
  6422. local at2 = Instance.new("Attachment",dis)
  6423. at2.Position = vt(1,0,0)
  6424. local trl = Instance.new('Trail',dis)
  6425. trl.Attachment0 = at1
  6426. trl.FaceCamera = true
  6427. trl.Attachment1 = at2
  6428. trl.Texture = "rbxassetid://1049219073"
  6429. trl.LightEmission = 1
  6430. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6431. trl.Color = ColorSequence.new(dis.Color)
  6432. trl.Lifetime = 0.6
  6433. local a = Instance.new("Part",workspace)
  6434.     a.Name = "Direction"   
  6435.     a.Anchored = true
  6436.     a.BrickColor = bc("Bright red")
  6437. a.Material = "Neon"
  6438. a.Transparency = 1
  6439.     a.CanCollide = false
  6440.     local ray = Ray.new(
  6441.         dis.CFrame.p,                           -- origin
  6442.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6443.     )
  6444.     local ignore = dis
  6445.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6446.     a.BottomSurface = 10
  6447.     a.TopSurface = 10
  6448.     local distance = (dis.CFrame.p - position).magnitude
  6449.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6450.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6451. dis.CFrame = a.CFrame
  6452. a:Destroy()
  6453. local bv = Instance.new("BodyVelocity")
  6454. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6455. bv.velocity = dis.CFrame.lookVector*500
  6456. bv.Parent = dis
  6457. game:GetService("Debris"):AddItem(dis, 5)
  6458. local hitted = false
  6459. coroutine.resume(coroutine.create(function()
  6460. dis.Touched:connect(function(hit)
  6461.     if hitted == false and hit.Parent ~= char then
  6462.     hitted = true
  6463.     CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6464.     MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6465.     sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6466.     sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6467.     coroutine.resume(coroutine.create(function()
  6468. for i = 0, 4 do
  6469. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6470. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6471. local at1 = Instance.new("Attachment",disr)
  6472. at1.Position = vt(-10,0,0)
  6473. local at2 = Instance.new("Attachment",disr)
  6474. at2.Position = vt(10,0,0)
  6475. local trl = Instance.new('Trail',disr)
  6476. trl.Attachment0 = at1
  6477. trl.FaceCamera = true
  6478. trl.Attachment1 = at2
  6479. trl.Texture = "rbxassetid://2342682798"
  6480. trl.LightEmission = 1
  6481. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6482. trl.Color = ColorSequence.new(disr.Color)
  6483. trl.Lifetime = 0.5
  6484. local bv = Instance.new("BodyVelocity")
  6485. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6486. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6487. bv.Parent = disr
  6488. local val = 0
  6489. coroutine.resume(coroutine.create(function()
  6490.     swait(30)
  6491.     for i = 0, 9 do
  6492.         swait()
  6493.         val = val + 0.1
  6494.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6495.     end
  6496. game:GetService("Debris"):AddItem(disr, 3)
  6497. end))
  6498. end
  6499. local eff = Instance.new("ParticleEmitter",dis)
  6500. eff.Texture = "rbxassetid://1049219073"
  6501. eff.LightEmission = 1
  6502. eff.Color = ColorSequence.new(dis.Color)
  6503. eff.Rate = 500000
  6504. eff.Lifetime = NumberRange.new(0.5,2)
  6505. 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)})
  6506. 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)})
  6507. eff.Speed = NumberRange.new(20,250)
  6508. eff.Drag = 5
  6509. eff.Rotation = NumberRange.new(-500,500)
  6510. eff.VelocitySpread = 9000
  6511. eff.RotSpeed = NumberRange.new(-50,50)
  6512. wait(0.5)
  6513. eff.Enabled = false
  6514. end))
  6515.     for i = 0, 4 do
  6516.         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"))
  6517.     end
  6518. coroutine.resume(coroutine.create(function()
  6519. for i = 0, 19 do
  6520. swait()
  6521. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6522. end
  6523. hum.CameraOffset = vt(0,0,0)
  6524. end))
  6525. dis.Anchored = true
  6526. dis.Transparency = 1
  6527. wait(8)
  6528. dis:Destroy()
  6529. end
  6530. end)
  6531. end))
  6532. end))
  6533. end
  6534. end))
  6535. for i = 0,9,0.1 do
  6536. swait()
  6537. 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)
  6538. 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)
  6539. 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)
  6540. 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)
  6541. 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)
  6542. 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)
  6543. 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)
  6544. end
  6545. attack = false
  6546. hum.WalkSpeed = storehumanoidWS
  6547. end
  6548.  
  6549. function CyberSlash()
  6550. local posit = -2
  6551. attack = true
  6552. hum.WalkSpeed = 5
  6553. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6554. local radm = math.random(1,3)
  6555. if radm == 1 then
  6556. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6557. elseif radm == 2 then
  6558. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6559. elseif radm == 3 then
  6560. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6561. end
  6562. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6563.     for i = 0,2,0.1 do
  6564.         swait()
  6565. 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)
  6566.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6567. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6568. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6569. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6570. 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)
  6571. 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)
  6572.     end
  6573. for i = 0, 2 do
  6574. CameraEnshaking(1,2)
  6575. local hite = Instance.new("Part", char)
  6576.         hite.Anchored = true
  6577.         hite.CanCollide = false
  6578.         hite.FormFactor = 3
  6579.         hite.Name = "Ring"
  6580.         hite.Material = "Neon"
  6581.         hite.Size = Vector3.new(1, 1, 1)
  6582.         hite.Transparency = 1
  6583.         hite.TopSurface = 0
  6584.         hite.BottomSurface = 0
  6585. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6586. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6587. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6588. coroutine.resume(coroutine.create(function()
  6589. for i = 0, 1 do
  6590.     swait()
  6591.         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)
  6592.         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)
  6593.         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)
  6594. end
  6595. end))
  6596. 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)
  6597. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6598. game:GetService("Debris"):AddItem(hite, 5)
  6599. posit = posit + 2
  6600. end
  6601.     for i = 0,1,0.1 do
  6602.         swait()
  6603. 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)
  6604.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6605. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6606. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6607. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6608. 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)
  6609. 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)
  6610.     end
  6611.     for i = 0,1,0.1 do
  6612.         swait()
  6613. 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)
  6614.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6615. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6616. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6617. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6618. 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)
  6619. 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)
  6620.     end
  6621.     posit = -6
  6622.     for i = 0, 6 do
  6623. CameraEnshaking(1,3)
  6624. local hite = Instance.new("Part", char)
  6625.         hite.Anchored = true
  6626.         hite.CanCollide = false
  6627.         hite.FormFactor = 3
  6628.         hite.Name = "Ring"
  6629.         hite.Material = "Neon"
  6630.         hite.Size = Vector3.new(1, 1, 1)
  6631.         hite.Transparency = 1
  6632.         hite.TopSurface = 0
  6633.         hite.BottomSurface = 0
  6634. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6635. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6636. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6637. 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)
  6638. coroutine.resume(coroutine.create(function()
  6639. for i = 0, 2 do
  6640.     swait()
  6641.         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)
  6642.         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)
  6643.         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)
  6644. end
  6645. end))
  6646. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6647. game:GetService("Debris"):AddItem(hite, 5)
  6648. posit = posit + 2
  6649.     end
  6650.     for i = 0,1,0.1 do
  6651.         swait()
  6652. 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)
  6653.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6654. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6655. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6656. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6657. 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)
  6658. 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)
  6659.     end
  6660.     hum.WalkSpeed = storehumanoidWS
  6661. attack = false
  6662. end
  6663.  
  6664. function EquinoxOrbs()
  6665. hum.WalkSpeed = 0
  6666. attack = true
  6667. local radm = math.random(1,3)
  6668. if radm == 1 then
  6669. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6670. elseif radm == 2 then
  6671. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6672. elseif radm == 3 then
  6673. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6674. end
  6675. for i = 0,1,0.1 do
  6676. swait()
  6677.     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)
  6678. 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)
  6679. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6680. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6681. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6682. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6683. end
  6684. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6685. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6686. for i = 0, 24 do
  6687.         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"))
  6688. end
  6689. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6690. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6691. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6692. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6693. for i = 0,4,0.1 do
  6694. swait()
  6695. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6696. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6697. CreateMesh(dis,"Sphere",1,1,1)
  6698. dis.Anchored = true
  6699. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6700. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6701. CreateMesh(dis2,"Sphere",1,1,1)
  6702. dis2.Anchored = true
  6703. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6704. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6705. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6706. coroutine.resume(coroutine.create(function()
  6707.     swait(60)
  6708.     dis.Transparency = 1
  6709.     dis2.Transparency = 1
  6710. coroutine.resume(coroutine.create(function()
  6711. for i = 0, 19 do
  6712. swait()
  6713. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6714. end
  6715. hum.CameraOffset = vt(0,0,0)
  6716. end))
  6717. coroutine.resume(coroutine.create(function()
  6718. local eff = Instance.new("ParticleEmitter",dis)
  6719. eff.Texture = "rbxassetid://2273224484"
  6720. eff.LightEmission = 1
  6721. eff.Color = ColorSequence.new(dis.Color)
  6722. eff.Rate = 500000
  6723. eff.Lifetime = NumberRange.new(0.5,2)
  6724. 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)})
  6725. 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)})
  6726. eff.Speed = NumberRange.new(50,450)
  6727. eff.Drag = 5
  6728. eff.Rotation = NumberRange.new(-500,500)
  6729. eff.VelocitySpread = 9000
  6730. eff.RotSpeed = NumberRange.new(-50,50)
  6731. local eff2 = eff:Clone()
  6732. eff2.Parent = dis2
  6733. eff2.LightEmission = 0
  6734. eff2.Color = ColorSequence.new(dis2.Color)
  6735. wait(0.25)
  6736. eff.Enabled = false
  6737. eff2.Enabled = false
  6738. end))
  6739. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6740. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6741.     for i = 0, 2 do
  6742.         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)
  6743.         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)
  6744.     end
  6745.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6746.     CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6747.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6748.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6749.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6750.     CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6751.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6752.     sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6753. end))
  6754. game:GetService("Debris"):AddItem(dis, 5)
  6755. game:GetService("Debris"):AddItem(dis2, 5)
  6756. 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)
  6757. 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)
  6758. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6760. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6761. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6762. end
  6763. attack = false
  6764. hum.WalkSpeed = storehumanoidWS
  6765. end
  6766. function FallenDEMISE()
  6767. attack = true
  6768. hum.WalkSpeed = 0
  6769. local keptcolor = MAINRUINCOLOR
  6770. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6771. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6772. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6773. for i = 0, 15, 0.1 do
  6774. swait()
  6775. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6776. 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)))
  6777. local at1 = Instance.new("Attachment",dis)
  6778. at1.Position = vt(-25000,0,0)
  6779. local at2 = Instance.new("Attachment",dis)
  6780. at2.Position = vt(25000,0,0)
  6781. local trl = Instance.new('Trail',dis)
  6782. trl.Attachment0 = at1
  6783. trl.FaceCamera = true
  6784. trl.Attachment1 = at2
  6785. trl.Texture = "rbxassetid://1049219073"
  6786. trl.LightEmission = 1
  6787. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6788. trl.Color = ColorSequence.new(dis.Color)
  6789. trl.Lifetime = 5
  6790. local bv = Instance.new("BodyVelocity")
  6791. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6792. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6793. bv.Parent = dis
  6794. game:GetService("Debris"):AddItem(dis, 1)
  6795. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6796. 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"))
  6797. 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"))
  6798. 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)
  6799. 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)
  6800. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6801. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6802. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6803. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6804. end
  6805. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6806. for i = 0, 30, 0.1 do
  6807. swait()
  6808. coroutine.resume(coroutine.create(function()
  6809. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6810. if v:FindFirstChild('Head') then
  6811. dmg(v)
  6812. end
  6813. end
  6814. end))
  6815. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6816. 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)))
  6817. local at1 = Instance.new("Attachment",dis)
  6818. at1.Position = vt(-50000,0,0)
  6819. local at2 = Instance.new("Attachment",dis)
  6820. at2.Position = vt(50000,0,0)
  6821. local trl = Instance.new('Trail',dis)
  6822. trl.Attachment0 = at1
  6823. trl.FaceCamera = true
  6824. trl.Attachment1 = at2
  6825. trl.Texture = "rbxassetid://1049219073"
  6826. trl.LightEmission = 1
  6827. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6828. trl.Color = ColorSequence.new(dis.Color)
  6829. trl.Lifetime = 10
  6830. local bv = Instance.new("BodyVelocity")
  6831. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6832. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6833. bv.Parent = dis
  6834. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6835. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6836. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6837. 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"))
  6838. 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"))
  6839. 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"))
  6840. 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"))
  6841. for i = 0, 2 do
  6842. 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)
  6843. end
  6844. 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)
  6845. 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)
  6846. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6847. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6848. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6849. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6850. end
  6851. attack = false
  6852. hum.WalkSpeed = storehumanoidWS
  6853. end
  6854.  
  6855. function SpeedDrop()
  6856. attack = true
  6857. hum.WalkSpeed = 0
  6858. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6859. local poste = 3
  6860. local rotation = 0
  6861. local rate = 0
  6862. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6863. for i = 0, 124 do
  6864. swait()
  6865. rotation = rotation + rate
  6866. poste = poste + 0.1
  6867. rate = rate + 0.1
  6868. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6869. 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)
  6870. 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)
  6871. 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)
  6872. 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)
  6873. 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)
  6874. 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)
  6875. 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)
  6876. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6877. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6878. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6879. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6880. end
  6881. CameraEnshaking(3,7)
  6882. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6883. local loc = Instance.new("Part", char)
  6884. loc.BrickColor = MAINRUINCOLOR
  6885. loc.CanCollide = false
  6886. loc.FormFactor = 3
  6887. loc.Name = "Ring"
  6888. loc.Material = "Neon"
  6889. loc.Size = Vector3.new(1, 1, 1)
  6890. loc.Transparency = 1
  6891. loc.TopSurface = 0
  6892. loc.BottomSurface = 0
  6893. loc.Anchored = true
  6894. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6895. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6896. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6897. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6898. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6899. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6900. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6901. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6902. coroutine.resume(coroutine.create(function()
  6903. local eff = Instance.new("ParticleEmitter",loc)
  6904. eff.Texture = "rbxassetid://363275192"
  6905. eff.LightEmission = 0.95
  6906. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6907. eff.Rate = 10000
  6908. eff.Lifetime = NumberRange.new(1)
  6909. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6910. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6911. eff.Speed = NumberRange.new(100,500)
  6912. eff.Drag = 5
  6913. eff.Rotation = NumberRange.new(-500,500)
  6914. eff.VelocitySpread = 9000
  6915. eff.RotSpeed = NumberRange.new(-50,50)
  6916. wait(0.5)
  6917. eff.Enabled = false
  6918. end))
  6919. for i = 0, 49 do
  6920. 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)
  6921. end
  6922. for i = 0, 9 do
  6923. 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)
  6924. end
  6925. game:GetService("Debris"):AddItem(loc, 5)
  6926. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6927. hum.WalkSpeed = storehumanoidWS
  6928. attack = false
  6929. end
  6930.  
  6931. function cutesigh()
  6932. attack = true
  6933. hum.WalkSpeed = 0
  6934. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6935. local blush = Instance.new("Decal",hed)
  6936. blush.Texture = "rbxassetid://898404027"
  6937. blush.Face = "Front"
  6938. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6939. for i = 0, 9, 0.1 do
  6940. swait()
  6941. 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)
  6942. 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)
  6943. 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)
  6944. 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)
  6945. 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)
  6946. 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)
  6947. end
  6948. coroutine.resume(coroutine.create(function()
  6949. for i = 0, 49 do
  6950. swait()
  6951. blush.Transparency = blush.Transparency + 0.02
  6952. end
  6953. blush:Destroy()
  6954. end))
  6955. hum.WalkSpeed = storehumanoidWS
  6956. attack = false
  6957. end
  6958.  
  6959. function smiter()
  6960. local targetted = nil
  6961. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6962. targetted = mouse.Target.Parent
  6963. end
  6964. if targetted ~= nil then
  6965. RootPart.CFrame = FaceMouse()[1]
  6966. attack = true
  6967. local radm = math.random(1,3)
  6968. if radm == 1 then
  6969. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6970. elseif radm == 2 then
  6971. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6972. elseif radm == 3 then
  6973. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6974. end
  6975. hum.WalkSpeed = 0
  6976. coroutine.resume(coroutine.create(function()
  6977. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6978. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6979. local vel = Instance.new("BodyPosition", targetted.Head)
  6980. vel.P = 12500
  6981. vel.D = 1000
  6982. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6983. vel.position = targetted.Head.CFrame.p
  6984. end))
  6985. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6986. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6987. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6988.     for i = 0,4,0.1 do
  6989.         swait()
  6990. 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)
  6991.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6992. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6993. 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)
  6994. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6995. 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)
  6996. 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)
  6997.     end
  6998. coroutine.resume(coroutine.create(function()
  6999. CameraEnshaking(6,5)
  7000. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7001. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7002. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7003. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7004. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7005. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7006. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7007. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7008. coroutine.resume(coroutine.create(function()
  7009. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7010. eff.Texture = "rbxassetid://2273224484"
  7011. eff.LightEmission = 1
  7012. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7013. eff.Rate = 500000
  7014. eff.Lifetime = NumberRange.new(0.5,2)
  7015. 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)})
  7016. 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)})
  7017. eff.Speed = NumberRange.new(20,250)
  7018. eff.Drag = 5
  7019. eff.Rotation = NumberRange.new(-500,500)
  7020. eff.VelocitySpread = 9000
  7021. eff.RotSpeed = NumberRange.new(-50,50)
  7022. wait(0.25)
  7023. eff.Enabled = false
  7024. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7025. eff.Texture = "rbxassetid://363275192"
  7026. eff.LightEmission = 0.95
  7027. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7028. eff.Rate = 10000
  7029. eff.Lifetime = NumberRange.new(1.5)
  7030. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7031. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7032. eff.Speed = NumberRange.new(25,150)
  7033. eff.Drag = 5
  7034. eff.Rotation = NumberRange.new(-500,500)
  7035. eff.VelocitySpread = 9000
  7036. eff.RotSpeed = NumberRange.new(-50,50)
  7037. local eff2 = eff:Clone()
  7038. eff2.Parent = targetted.Head
  7039. eff2.Texture = "rbxassetid://284205403"
  7040. eff2.Rate = 10000
  7041. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7042. eff2.Drag = 5
  7043. eff2.Rotation = NumberRange.new(-500,500)
  7044. eff2.VelocitySpread = 9000
  7045. wait(0.5)
  7046. eff2.Enabled = false
  7047. eff.Enabled = false
  7048. end))
  7049. for i = 0, 9 do
  7050. 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)
  7051. end
  7052. for i = 0, 49 do
  7053. local rsiz = math.random(10,50)
  7054. 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)
  7055. end
  7056. game:GetService("Debris"):AddItem(vel,1)
  7057. dmg(targetted)
  7058. end))
  7059.     for i = 0,1,0.1 do
  7060.         swait()
  7061.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7062. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7063. 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)
  7064. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7065. 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)
  7066. 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)
  7067.     end
  7068. attack = false
  7069. hum.WalkSpeed = storehumanoidWS
  7070. end
  7071. end
  7072.  
  7073. function shytaunty()
  7074. attack = true
  7075. hum.WalkSpeed = 0
  7076. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7077. local blush = Instance.new("Decal",hed)
  7078. blush.Texture = "rbxassetid://898404027"
  7079. blush.Face = "Front"
  7080. for i = 0, 13, 0.1 do
  7081. swait()
  7082. 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)
  7083. 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)
  7084. 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)
  7085. 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)
  7086. 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)
  7087. 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)
  7088. end
  7089. coroutine.resume(coroutine.create(function()
  7090. for i = 0, 49 do
  7091. swait()
  7092. blush.Transparency = blush.Transparency + 0.02
  7093. end
  7094. blush:Destroy()
  7095. end))
  7096. hum.WalkSpeed = storehumanoidWS
  7097. attack = false
  7098. end
  7099.  
  7100. function PureBomb()
  7101. attack = true
  7102. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7103. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7104. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7105. local orb = Instance.new("Part", char)
  7106.         orb.Anchored = true
  7107.         orb.BrickColor = BrickColor.new("Toothpaste")
  7108.         orb.CanCollide = false
  7109.         orb.FormFactor = 3
  7110.         orb.Name = "Ring"
  7111.         orb.Material = "Neon"
  7112.         orb.Size = Vector3.new(1, 1, 1)
  7113.         orb.Transparency = 0
  7114.         orb.TopSurface = 0
  7115.         orb.BottomSurface = 0
  7116.         local orbm = Instance.new("SpecialMesh", orb)
  7117.         orbm.MeshType = "Sphere"
  7118. orbm.Name = "SizeMesh"
  7119. orbm.Scale = vt(0,0,0)
  7120. local scaled = 0.1
  7121. local posid = 0
  7122. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7123. for i = 0, 5, 0.1 do
  7124. swait()
  7125. scaled = scaled - 0.001
  7126. posid = posid - scaled
  7127. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7128. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7129. 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)
  7130. 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)
  7131. 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)
  7132. 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)
  7133. 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)
  7134. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7136. 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)
  7137. end
  7138. for i = 0, 2, 0.1 do
  7139. swait()
  7140. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7141. 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)
  7142. 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)
  7143. 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)
  7144. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7145. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7146. 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)
  7147. end
  7148. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7149. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7150. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7151. coroutine.resume(coroutine.create(function()
  7152. orb.Anchored = false
  7153. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7154.     local a = Instance.new("Part",workspace)
  7155.     a.Name = "Direction"   
  7156.     a.Anchored = true
  7157.     a.BrickColor = bc("Bright red")
  7158. a.Material = "Neon"
  7159. a.Transparency = 1
  7160.     a.CanCollide = false
  7161.     local ray = Ray.new(
  7162.         orb.CFrame.p,                           -- origin
  7163.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7164.     )
  7165.     local ignore = orb
  7166.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7167.     a.BottomSurface = 10
  7168.     a.TopSurface = 10
  7169.     local distance = (orb.CFrame.p - position).magnitude
  7170.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  7171.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7172. orb.CFrame = a.CFrame
  7173. a:Destroy()
  7174. local bv = Instance.new("BodyVelocity")
  7175. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7176. bv.velocity = orb.CFrame.lookVector*125
  7177. bv.Parent = orb
  7178. local hitted = false
  7179. game:GetService("Debris"):AddItem(orb, 15)
  7180. wait()
  7181. local hit =orb.Touched:connect(function(hit)
  7182.     if hitted == false then
  7183.     hitted = true
  7184. CameraEnshaking(10,2.5)
  7185.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  7186. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7187. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7188. for i = 0, 49 do
  7189. 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)
  7190. end
  7191. local eff = Instance.new("ParticleEmitter",orb)
  7192. eff.Texture = "rbxassetid://2273224484"
  7193. eff.LightEmission = 1
  7194. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7195. eff.Rate = 500000
  7196. eff.Lifetime = NumberRange.new(0.5,2)
  7197. 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)})
  7198. 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)})
  7199. eff.Speed = NumberRange.new(20,250)
  7200. eff.Drag = 5
  7201. eff.Rotation = NumberRange.new(-500,500)
  7202. eff.VelocitySpread = 9000
  7203. eff.RotSpeed = NumberRange.new(-50,50)
  7204. coroutine.resume(coroutine.create(function()
  7205. wait(0.25)
  7206. eff.Enabled = false
  7207. end))
  7208. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7209. for i = 0, 9 do
  7210. 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)
  7211. 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)
  7212. end
  7213. orb.Anchored = true
  7214. orb.Transparency = 1
  7215. local eff = Instance.new("ParticleEmitter",orb)
  7216. eff.Texture = "rbxassetid://2273224484"
  7217. eff.LightEmission = 1
  7218. eff.Color = ColorSequence.new(Color3.new(M))
  7219. eff.Rate = 500000
  7220. eff.Lifetime = NumberRange.new(0.5,2)
  7221. 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)})
  7222. 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)})
  7223. eff.Speed = NumberRange.new(20,250)
  7224. eff.Drag = 5
  7225. eff.Rotation = NumberRange.new(-500,500)
  7226. eff.VelocitySpread = 9000
  7227. eff.RotSpeed = NumberRange.new(-50,50)
  7228. coroutine.resume(coroutine.create(function()
  7229. wait(1)
  7230. eff.Enabled = false
  7231. end))
  7232. wait(8)
  7233. orb:Destroy()
  7234. end
  7235. end)
  7236. end))
  7237. for i = 0, 1, 0.1 do
  7238. swait()
  7239. 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)
  7240. 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)
  7241. 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)
  7242. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7243. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7244. 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)
  7245. end
  7246. attack = false
  7247. end
  7248.  
  7249.  
  7250. function BeamOfDeath()
  7251. coroutine.resume(coroutine.create(function()
  7252. attack = true
  7253. hum.WalkSpeed = 0
  7254. for i = 0, 11, 0.1 do
  7255. swait()
  7256. 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)
  7257. 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)
  7258. 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)
  7259. 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)
  7260. 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)
  7261. 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)
  7262. end
  7263. for i = 0, 1, 0.1 do
  7264. swait()
  7265. 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)
  7266. 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)
  7267. 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)
  7268. 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)
  7269. 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)
  7270. 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)
  7271. end
  7272. hum.WalkSpeed = storehumanoidWS
  7273. attack = false
  7274. end))
  7275. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7276. local radm = math.random(1,3)
  7277. if radm == 1 then
  7278. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7279. elseif radm == 2 then
  7280. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7281. elseif radm == 3 then
  7282. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7283. end
  7284. local keptcolor = MAINRUINCOLOR
  7285. local orb = Instance.new("Part", char)
  7286.         orb.BrickColor = keptcolor
  7287.         orb.CanCollide = false
  7288.         orb.FormFactor = 3
  7289.         orb.Name = "Ring"
  7290.         orb.Material = "Neon"
  7291.         orb.Size = Vector3.new(1, 1, 1)
  7292.         orb.Transparency = 1
  7293.         orb.TopSurface = 0
  7294.         orb.BottomSurface = 0
  7295.         local orbm = Instance.new("SpecialMesh", orb)
  7296.         orbm.MeshType = "Sphere"
  7297. orbm.Name = "SizeMesh"
  7298. orbm.Scale = vt(22.5,10000,22.5)
  7299. orb.CFrame = mouse.Hit
  7300. orb.Anchored = true
  7301. orb.Orientation = vt(0,0,0)
  7302. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7303. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7304. coroutine.resume(coroutine.create(function()
  7305. coroutine.resume(coroutine.create(function()
  7306. for i = 0, 175 do
  7307. swait()
  7308. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7309. orb.Transparency = orb.Transparency - 0.005
  7310. end
  7311. end))
  7312. wait(2)
  7313. coroutine.resume(coroutine.create(function()
  7314. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7315. if hfr ~= nil then
  7316.     for i = 0, 24.5 do
  7317. local deb = Instance.new("Part", char)
  7318. deb.Anchored = true
  7319. deb.CanCollide = false
  7320. deb.FormFactor = 3
  7321. deb.Name = "Ring"
  7322. deb.Material = hitfloor.Material
  7323. deb.Color = hitfloor.Color
  7324. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7325. deb.Transparency = 0
  7326. deb.TopSurface = 0
  7327. deb.BottomSurface = 0
  7328. 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)))
  7329. local deb2 = Instance.new("Part", char)
  7330. deb2.CanCollide = false
  7331. deb2.FormFactor = 3
  7332. deb2.Name = "Ring"
  7333. deb2.Material = hitfloor.Material
  7334. deb2.Color = hitfloor.Color
  7335. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7336. deb2.Transparency = 0
  7337. deb2.TopSurface = 0
  7338. deb2.BottomSurface = 0
  7339. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7340. 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)))
  7341. local eff = Instance.new("ParticleEmitter",deb)
  7342. eff.Texture = "rbxassetid://363275192"
  7343. eff.LightEmission = 0.95
  7344. eff.Color = ColorSequence.new(keptcolor.Color)
  7345. eff.Rate = 100
  7346. eff.Lifetime = NumberRange.new(1)
  7347. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7348. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7349. eff.Speed = NumberRange.new(0,5)
  7350. eff.Rotation = NumberRange.new(-500,500)
  7351. eff.VelocitySpread = 9000
  7352. eff.RotSpeed = NumberRange.new(-10,10)
  7353. local at1 = Instance.new('Attachment',deb2)
  7354. at1.Position = vt(0,15,0)
  7355. local at2 = Instance.new('Attachment',deb2)
  7356. at2.Position = vt(0,-15,0)
  7357. local tl = Instance.new('Trail',deb2)
  7358. tl.Attachment0 = at1
  7359. tl.Attachment1 = at2
  7360. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7361. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7362. tl.Lifetime = 1
  7363. game:GetService("Debris"):AddItem(deb,30)
  7364. game:GetService("Debris"):AddItem(deb2,30)
  7365. coroutine.resume(coroutine.create(function()
  7366.     wait(15)
  7367. eff.Enabled = false
  7368.     for i = 0, 49 do
  7369.         swait()
  7370.         deb.Transparency = deb.Transparency + 0.02
  7371.     end
  7372. wait(1)
  7373.     deb:Destroy()
  7374. end))
  7375. end
  7376. end
  7377. end))
  7378. for i = 0, 199 do
  7379. swait(1.5)
  7380. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7381. if v:FindFirstChild('Head') then
  7382. dmg(v)
  7383. end
  7384. end
  7385. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7386. 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)
  7387. 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)
  7388. 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)
  7389. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7390. end
  7391. orb:Destroy()
  7392. end))
  7393. end
  7394.  
  7395. function Beams()
  7396. attack = true
  7397. hum.WalkSpeed = 0
  7398. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7399. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7400. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7401. local keptcolor = MAINRUINCOLOR
  7402. coroutine.resume(coroutine.create(function()
  7403. for i = 0, 96 do
  7404. swait(5)
  7405. local orb = Instance.new("Part", char)
  7406. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7407.         orb.BrickColor = keptcolor
  7408.         orb.CanCollide = false
  7409.         orb.FormFactor = 3
  7410.         orb.Name = "Ring"
  7411.         orb.Material = "Neon"
  7412.         orb.Size = Vector3.new(1, 1, 1)
  7413.         orb.Transparency = 0
  7414.         orb.TopSurface = 0
  7415.         orb.BottomSurface = 0
  7416. orb.Anchored = true
  7417.         local orbm = Instance.new("SpecialMesh", orb)
  7418.         orbm.MeshType = "Sphere"
  7419. orbm.Name = "SizeMesh"
  7420. orbm.Scale = vt(1.25,1.25,1.25)
  7421. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7422. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7423. coroutine.resume(coroutine.create(function()
  7424. wait(0.5)
  7425. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7426. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7427. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7428. orb.Transparency = 1
  7429.     local a = Instance.new("Part",char)
  7430.     a.Name = "Direction"   
  7431.     a.Anchored = true
  7432.     a.BrickColor = keptcolor
  7433. a.Material = "Neon"
  7434. a.Transparency = 0.25
  7435. a.Shape = "Cylinder"
  7436.     local ht = Instance.new("Part",char)
  7437.     ht.Name = "DirectionHit"   
  7438.     ht.Anchored = true
  7439.     ht.BrickColor = keptcolor
  7440. ht.CanCollide = false
  7441. ht.Transparency = 1
  7442. ht.Size = vt(0.1,0.1,0.1)
  7443. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7444.     a.CanCollide = false
  7445.     local ray = Ray.new(
  7446.         orb.CFrame.p,                           -- origin
  7447.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7448.     )
  7449.     local ignore = char
  7450.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7451.     a.BottomSurface = 10
  7452.     a.TopSurface = 10
  7453.     local distance = (orb.CFrame.p - position).magnitude
  7454.     a.Size = Vector3.new(distance,1,1)
  7455.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7456.     ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7457. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7458. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7459. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7460. coroutine.resume(coroutine.create(function()
  7461. local eff = Instance.new("ParticleEmitter",ht)
  7462. eff.Texture = "rbxassetid://284205403"
  7463. eff.LightEmission = 0.95
  7464. eff.Color = ColorSequence.new(keptcolor.Color)
  7465. eff.Rate = 500
  7466. eff.Lifetime = NumberRange.new(0.5)
  7467. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7468. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7469. eff.Speed = NumberRange.new(10,50)
  7470. eff.Drag = 5
  7471. eff.Rotation = NumberRange.new(-500,500)
  7472. eff.VelocitySpread = 9000
  7473. eff.RotSpeed = NumberRange.new(-500,500)
  7474. wait(0.25)
  7475. eff.Enabled = false
  7476. end))
  7477. for i = 0, 4 do
  7478. 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)
  7479. 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)
  7480. local rsiz = math.random(10,30)
  7481. 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)
  7482. end
  7483. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7484. local msh = Instance.new("SpecialMesh",a)
  7485. msh.MeshType = "Cylinder"
  7486. msh.Scale = vt(1,1,1)
  7487. for i = 0, 49 do
  7488. swait()
  7489. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7490. a.Transparency = a.Transparency + 0.02
  7491. end
  7492. orb:Destroy()
  7493. a:Destroy()
  7494. ht:Destroy()
  7495. end))
  7496. game:GetService("Debris"):AddItem(orb, 10)
  7497. end
  7498. end))
  7499.     for i = 0,6,0.1 do
  7500.         swait()
  7501. 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)
  7502.             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)
  7503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7504. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7505. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7506. 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)
  7507. 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)
  7508.     end
  7509. hum.WalkSpeed = storehumanoidWS
  7510. attack = false
  7511. end
  7512.  
  7513. function CalamityTrans()
  7514. attack = true
  7515. rainbowmode = false
  7516. chaosmode = false
  7517.                ModeOfGlitch = 8889
  7518. hum.WalkSpeed = 0
  7519. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7520. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7521. elocacenter.Anchored = true
  7522. elocacenter.CFrame = root.CFrame
  7523. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7524. eloca1.Anchored = true
  7525. eloca1.CFrame = elocacenter.CFrame
  7526. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7527. eloca2.Anchored = true
  7528. eloca2.CFrame = elocacenter.CFrame
  7529. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7530. eloca3.Anchored = true
  7531. eloca3.CFrame = elocacenter.CFrame
  7532. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7533. eloca4.Anchored = true
  7534. eloca4.CFrame = elocacenter.CFrame
  7535. local lookavec = 0
  7536. local speeds = 0
  7537. CameraEnshaking(3,2.5)
  7538. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7539. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7540. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7541. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7542. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7543. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7544. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7545. for i = 0, 5, 0.1 do
  7546. swait()
  7547. ---
  7548. lookavec = lookavec + 1
  7549. speeds = speeds + 10
  7550. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7551. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7552. 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)
  7553. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7554. 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)
  7555. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7556. 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)
  7557. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7558. 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)
  7559. ---
  7560. 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)
  7561. 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)
  7562. 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)
  7563. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7564. 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)
  7565. 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)
  7566. end
  7567. for i = 0, 5, 0.1 do
  7568. swait()
  7569. ---
  7570. speeds = speeds + 10
  7571. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7572. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7573. 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)
  7574. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7575. 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)
  7576. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7577. 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)
  7578. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7579. 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)
  7580. ---
  7581. 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)
  7582. 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)
  7583. 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)
  7584. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7585. 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)
  7586. 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)
  7587. end
  7588. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7589. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7590. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7591. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7592. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7593. CameraEnshaking(1,3)
  7594. for i = 0, 24 do
  7595. 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)
  7596. 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)
  7597. 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)
  7598. 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)
  7599. end
  7600. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7601. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7602. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7603. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7604. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7605. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7606. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7607. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7608. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7609. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7610. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7611. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7612. for i = 0, 5, 0.1 do
  7613. swait()
  7614. ---
  7615. lookavec = lookavec - 1
  7616. speeds = speeds + 10
  7617. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7618. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7619. 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)
  7620. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7621. 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)
  7622. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7623. 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)
  7624. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7625. 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)
  7626. ---
  7627. 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)
  7628. 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)
  7629. 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)
  7630. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7631. 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)
  7632. 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)
  7633. end
  7634. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7635. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7636. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7637. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7638. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7639. for i = 0, 49 do
  7640. 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)
  7641. 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)
  7642. end
  7643. CameraEnshaking(5,6)
  7644. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7645. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7646. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7647. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7648. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7649. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7650. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7651. storehumanoidWS = 100
  7652. hum.WalkSpeed = 100
  7653. rainbowmode = false
  7654. chaosmode = false
  7655. tl1.Enabled = true
  7656. tl2.Enabled = true
  7657. tl3.Enabled = true
  7658. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7659. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7660. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7661. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7662. for i, v in pairs(mw2:GetChildren()) do
  7663. if v:IsA("Part") then
  7664. v.BrickColor = MAINRUINCOLOR
  7665. v.Material = "Neon"
  7666. end
  7667. end
  7668. for i, v in pairs(mw1:GetChildren()) do
  7669. if v:IsA("Part") then
  7670. v.Transparency = 0
  7671. v.BrickColor = MAINRUINCOLOR
  7672. v.Material = "Neon"
  7673. end
  7674. end
  7675. for i, v in pairs(m:GetChildren()) do
  7676. if v:IsA("Part") then
  7677. v.Color = Color3.new(0.5,0,1)
  7678. v.Material = "Neon"
  7679. end
  7680. end
  7681. for i, v in pairs(m2:GetChildren()) do
  7682. if v:IsA("Part") then
  7683. v.Color = Color3.new(0.25,0,1)
  7684. v.Material = "Neon"
  7685. end
  7686. end
  7687. for i, v in pairs(m3:GetChildren()) do
  7688. if v:IsA("Part") then
  7689. v.Color = Color3.new(0.45,0,1)
  7690. v.Material = "Neon"
  7691. end
  7692. end
  7693. for i, v in pairs(extrawingmod1:GetChildren()) do
  7694. if v:IsA("Part") then
  7695. v.Transparency = 0.75
  7696. v.Color = Color3.new(0.25,0,1)
  7697. v.Material = "Neon"
  7698. end
  7699. end
  7700. for i, v in pairs(extrawingmod2:GetChildren()) do
  7701. if v:IsA("Part") then
  7702. v.Transparency = 0.75
  7703. v.Color = Color3.new(0.5,0,1)
  7704. v.Material = "Neon"
  7705. end
  7706. end
  7707. attack = false
  7708. end
  7709.  
  7710. function InsaneTrans()
  7711. attack = true
  7712. rainbowmode = false
  7713. chaosmode = false
  7714.                ModeOfGlitch = 8889
  7715. hum.WalkSpeed = 0
  7716. newThemeCust("rbxassetid://183142252",1,1,10)
  7717. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7718. elocacenter.Anchored = true
  7719. elocacenter.CFrame = root.CFrame
  7720. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7721. eloca1.Anchored = true
  7722. eloca1.CFrame = elocacenter.CFrame
  7723. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7724. eloca2.Anchored = true
  7725. eloca2.CFrame = elocacenter.CFrame
  7726. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7727. eloca3.Anchored = true
  7728. eloca3.CFrame = elocacenter.CFrame
  7729. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7730. eloca4.Anchored = true
  7731. eloca4.CFrame = elocacenter.CFrame
  7732. local lookavec = 0
  7733. local speeds = 0
  7734. CameraEnshaking(3,2.5)
  7735. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7736. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7737. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7738. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7739. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7740. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7741. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7742. for i = 0, 5, 0.1 do
  7743. swait()
  7744. ---
  7745. lookavec = lookavec + 1
  7746. speeds = speeds + 10
  7747. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7748. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7749. 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)
  7750. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7751. 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)
  7752. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7753. 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)
  7754. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7755. 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)
  7756. ---
  7757. 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)
  7758. 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)
  7759. 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)
  7760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7761. 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)
  7762. 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)
  7763. end
  7764. for i = 0, 5, 0.1 do
  7765. swait()
  7766. ---
  7767. speeds = speeds + 10
  7768. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7769. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7770. 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)
  7771. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7772. 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)
  7773. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7774. 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)
  7775. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7776. 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)
  7777. ---
  7778. 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)
  7779. 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)
  7780. 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)
  7781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7782. 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)
  7783. 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)
  7784. end
  7785. MAINRUINCOLOR = BrickColor.new("Really black")
  7786. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7787. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7788. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7789. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7790. CameraEnshaking(1,3)
  7791. for i = 0, 24 do
  7792. 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)
  7793. 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)
  7794. 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)
  7795. 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)
  7796. end
  7797. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7798. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7799. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7800. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7801. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7802. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7803. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7804. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7805. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7806. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7807. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7808. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7809. for i = 0, 5, 0.1 do
  7810. swait()
  7811. ---
  7812. lookavec = lookavec - 1
  7813. speeds = speeds + 10
  7814. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7815. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7816. 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)
  7817. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7818. 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)
  7819. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7820. 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)
  7821. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7822. 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)
  7823. ---
  7824. 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)
  7825. 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)
  7826. 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)
  7827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7828. 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)
  7829. 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)
  7830. end
  7831. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7832. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7833. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7834. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7835. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7836. for i = 0, 49 do
  7837. 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)
  7838. 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)
  7839. end
  7840. CameraEnshaking(5,6)
  7841. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7842. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7843. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7844. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7845. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7846. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7847. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7848. storehumanoidWS = 100
  7849. hum.WalkSpeed = 100
  7850. rainbowmode = false
  7851. chaosmode = false
  7852. tl1.Enabled = true
  7853. tl2.Enabled = true
  7854. tl3.Enabled = true
  7855. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7856. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7857. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7858. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7859. for i, v in pairs(mw2:GetChildren()) do
  7860. if v:IsA("Part") then
  7861. v.BrickColor = MAINRUINCOLOR
  7862. v.Material = "Neon"
  7863. end
  7864. end
  7865. for i, v in pairs(mw1:GetChildren()) do
  7866. if v:IsA("Part") then
  7867. v.Transparency = 0
  7868. v.BrickColor = MAINRUINCOLOR
  7869. v.Material = "Neon"
  7870. end
  7871. end
  7872. for i, v in pairs(m:GetChildren()) do
  7873. if v:IsA("Part") then
  7874. v.Color = Color3.new(170,0,0)
  7875. v.Material = "Neon"
  7876. end
  7877. end
  7878. for i, v in pairs(m2:GetChildren()) do
  7879. if v:IsA("Part") then
  7880. v.Color = Color3.new(0,0,0)
  7881. v.Material = "Neon"
  7882. end
  7883. end
  7884. for i, v in pairs(m3:GetChildren()) do
  7885. if v:IsA("Part") then
  7886. v.Color = Color3.new(0,0,0)
  7887. v.Material = "Neon"
  7888. end
  7889. end
  7890. for i, v in pairs(extrawingmod1:GetChildren()) do
  7891. if v:IsA("Part") then
  7892. v.Transparency = 0.75
  7893. v.Color = Color3.new(0,0,0)
  7894. v.Material = "Neon"
  7895. end
  7896. end
  7897. for i, v in pairs(extrawingmod2:GetChildren()) do
  7898. if v:IsA("Part") then
  7899. v.Transparency = 0.75
  7900. v.Color = Color3.new(0,0,0)
  7901. v.Material = "Neon"
  7902. end
  7903. end
  7904. attack = false
  7905. end
  7906.  
  7907. function GleamingBeam()
  7908. attack = true
  7909. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7910. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7911. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7912. local rsiz = math.random(1,15)
  7913.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7914.     hb.Anchored = true
  7915.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7916.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7917.     for i = 0, 16, 0.1 do
  7918.         swait()
  7919. rsiz = math.random(5,15)
  7920. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7921. 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)
  7922. 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)
  7923. 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)
  7924. 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)
  7925. 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)
  7926. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7928. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7929.     end
  7930.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7931.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7932. for i = 0, 2 do
  7933.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7934. end
  7935. 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)
  7936. 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)
  7937. 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)
  7938. for i = 0, 49 do
  7939. local rsiza = math.random(1,15)
  7940. 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) 
  7941. end
  7942. local a = Instance.new("Part",Character)
  7943.     a.Name = "Direction"   
  7944.     a.Anchored = true
  7945.     a.BrickColor = MAINRUINCOLOR
  7946. a.Material = "Neon"
  7947. a.Transparency = 0
  7948. a.Shape = "Cylinder"
  7949.     a.CanCollide = false
  7950. local ba = Instance.new("Part",Character)
  7951.     ba.Name = "HitDirect"  
  7952.     ba.Anchored = true
  7953.     ba.BrickColor = bc("Cool yellow")
  7954. ba.Material = "Neon"
  7955. ba.Transparency = 1
  7956.     ba.CanCollide = false
  7957.     local ray = Ray.new(
  7958.         hb.CFrame.p,                           -- origin
  7959.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7960.     )
  7961.     local ignore = Character
  7962.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7963.     a.BottomSurface = 10
  7964.     a.TopSurface = 10
  7965.     local distance = (hb.CFrame.p - position).magnitude
  7966.     a.Size = Vector3.new(distance, 1, 1)
  7967.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7968. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7969. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7970. local msh = Instance.new("SpecialMesh",a)
  7971. msh.MeshType = "Cylinder"
  7972. msh.Scale = vt(1,4,4)
  7973. game:GetService("Debris"):AddItem(a, 30)
  7974. game:GetService("Debris"):AddItem(ba, 30)
  7975.     for i = 0, 25, 0.1 do
  7976.         swait()
  7977. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7978. ray = Ray.new(
  7979.         hb.CFrame.p,                           -- origin
  7980.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7981.     )
  7982. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7983. distance = (hb.CFrame.p - position).magnitude
  7984.     a.Size = Vector3.new(distance, 1, 1)
  7985.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7986. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7987. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7988. rsiz = math.random(5,25)
  7989.     MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7990. 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)
  7991. for c = 0, 2 do
  7992. 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)
  7993. end
  7994. 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)
  7995. 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)
  7996. 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)
  7997. 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)
  7998. 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)
  7999. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  8000. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  8001. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  8002.     end
  8003.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8004.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8005.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8006.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8007.     MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  8008. 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)
  8009. 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)
  8010. 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)
  8011. 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)
  8012. 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)
  8013. 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)
  8014. for i = 0, 49 do
  8015. local rsiza = math.random(1,15)
  8016. 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) 
  8017. end
  8018. for i = 0, 49 do
  8019. rsiz = math.random(1,8)
  8020. 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)
  8021. end
  8022. coroutine.resume(coroutine.create(function()
  8023. for i = 0, 99 do
  8024. swait()
  8025. a.Transparency = a.Transparency + 0.01
  8026. end
  8027. a:Destroy()
  8028. ba:Destroy()
  8029. end))
  8030. hb:Destroy()
  8031. attack = false
  8032. end
  8033.  
  8034. function DualGleamingBeam()
  8035. attack = true
  8036. hum.WalkSpeed = 0
  8037. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  8038. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  8039. local radm = math.random(1,3)
  8040. if radm == 1 then
  8041. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  8042. elseif radm == 2 then
  8043. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  8044. elseif radm == 3 then
  8045. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  8046. end
  8047. local rsiz = math.random(1,15)
  8048.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8049.     hb.Anchored = true
  8050.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8051.     local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8052.     hb2.Anchored = true
  8053.     hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8054.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8055.     for i = 0, 14, 0.1 do
  8056.         swait()
  8057. rsiz = math.random(5,15)
  8058. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8059. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8060. 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)
  8061. 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)
  8062. 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)
  8063. 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"))
  8064. 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)
  8065. 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)
  8066. 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)
  8067. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8069. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8070.     end
  8071.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8072.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8073.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8074.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8075.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8076.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8077. 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)
  8078. 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)
  8079. 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)
  8080. 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"))
  8081. 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"))
  8082. 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"))
  8083. for i = 0, 49 do
  8084. local rsiza = math.random(1,15)
  8085. 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)  
  8086. 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)
  8087. end
  8088. local a = Instance.new("Part",Character)
  8089.     a.Name = "Direction"   
  8090.     a.Anchored = true
  8091.     a.BrickColor = MAINRUINCOLOR
  8092. a.Material = "Neon"
  8093. a.Transparency = 0
  8094. a.Shape = "Cylinder"
  8095.     a.CanCollide = false
  8096. local a2 = Instance.new("Part",Character)
  8097.     a2.Name = "Direction"  
  8098.     a2.Anchored = true
  8099.     a2.BrickColor = MAINRUINCOLOR
  8100. a2.Material = "Neon"
  8101. a2.Transparency = 0
  8102. a2.Shape = "Cylinder"
  8103.     a2.CanCollide = false
  8104. local ba = Instance.new("Part",Character)
  8105.     ba.Name = "HitDirect"  
  8106.     ba.Anchored = true
  8107.     ba.BrickColor = MAINRUINCOLOR
  8108. ba.Material = "Neon"
  8109. ba.Transparency = 1
  8110.     ba.CanCollide = false
  8111. local ba2 = Instance.new("Part",Character)
  8112.     ba2.Name = "HitDirect" 
  8113.     ba2.Anchored = true
  8114.     ba2.BrickColor = MAINRUINCOLOR
  8115. ba2.Material = "Neon"
  8116. ba2.Transparency = 1
  8117.     ba2.CanCollide = false
  8118.     local ray = Ray.new(
  8119.         hb.CFrame.p,                           -- origin
  8120.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8121.     )
  8122.     local ignore = Character
  8123.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8124.     local ray2 = Ray.new(
  8125.         hb2.CFrame.p,                           -- origin
  8126.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8127.     )
  8128.     local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8129.     local distance2 = (hb2.CFrame.p - position).magnitude
  8130.  
  8131.     a.BottomSurface = 10
  8132.     a.TopSurface = 10
  8133.     local distance = (hb.CFrame.p - position).magnitude
  8134.     a.Size = Vector3.new(distance, 1, 1)
  8135.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8136.     a2.BottomSurface = 10
  8137.     a2.TopSurface = 10
  8138.     a2.Size = Vector3.new(distance2, 1, 1)
  8139.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8140. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8141. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8142. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8143. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8144. local msh = Instance.new("SpecialMesh",a)
  8145. msh.MeshType = "Cylinder"
  8146. msh.Scale = vt(1,4,4)
  8147. local msh2 = Instance.new("SpecialMesh",a2)
  8148. msh2.MeshType = "Cylinder"
  8149. msh2.Scale = vt(1,4,4)
  8150. game:GetService("Debris"):AddItem(a, 30)
  8151. game:GetService("Debris"):AddItem(a2, 30)
  8152. game:GetService("Debris"):AddItem(ba, 30)
  8153. game:GetService("Debris"):AddItem(ba2, 30)
  8154.     for i = 0, 20, 0.1 do
  8155.         swait()
  8156. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8157. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8158. ray = Ray.new(
  8159.         hb.CFrame.p,                           -- origin
  8160.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8161.     )
  8162. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8163. distance = (hb.CFrame.p - position).magnitude
  8164. ray2 = Ray.new(
  8165.         hb2.CFrame.p,                           -- origin
  8166.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8167.     )
  8168. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8169. distance2 = (hb2.CFrame.p - position).magnitude
  8170.     a.Size = Vector3.new(distance, 1, 1)
  8171.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8172.     a2.Size = Vector3.new(distance2, 1, 1)
  8173.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8174. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8175. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8176. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8177. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8178. rsiz = math.random(5,25)
  8179.     MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8180.     MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8181. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8182. if v:FindFirstChild('Head') then
  8183. dmg(v)
  8184. end
  8185. end
  8186. coroutine.resume(coroutine.create(function()
  8187. local bx = Instance.new("Part",Character)
  8188. bx.Name = "Location"   
  8189. bx.Anchored = true
  8190. bx.BrickColor = MAINRUINCOLOR
  8191. bx.Material = "Neon"
  8192. bx.Transparency = 1
  8193. bx.CanCollide = false
  8194. bx.Position = ba.Position
  8195. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8196. wait(math.random(1,2))
  8197. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8198. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8199. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8200.     CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8201.     CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8202.     MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8203. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8204. if v:FindFirstChild('Head') then
  8205. dmg(v)
  8206. end
  8207. end
  8208. wait(5)
  8209. bx:Destroy()
  8210. end))
  8211. 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)
  8212. 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)
  8213. for c = 0, 2 do
  8214. 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)
  8215. end
  8216. 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)
  8217. 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)
  8218. 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)
  8219. 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)
  8220. 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)
  8221. 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)
  8222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8223. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8224. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8225.     end
  8226. for i = 0, 1 do
  8227.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8228.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8229.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8230.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8231. end
  8232.     MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8233.     MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8234. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8235. if v:FindFirstChild('Head') then
  8236. dmg(v)
  8237. end
  8238. end
  8239. 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)
  8240. 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)
  8241. 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)
  8242. 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)
  8243. 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)
  8244. 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)
  8245. 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"))
  8246. 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"))
  8247. 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"))
  8248. for i = 0, 49 do
  8249. local rsiza = math.random(1,15)
  8250. 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)
  8251. 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)  
  8252. end
  8253. for i = 0, 49 do
  8254. rsiz = math.random(1,8)
  8255. 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)
  8256. end
  8257. coroutine.resume(coroutine.create(function()
  8258. for i = 0, 99 do
  8259. swait()
  8260. a.Transparency = a.Transparency + 0.01
  8261. a2.Transparency = a2.Transparency + 0.01
  8262. end
  8263. a:Destroy()
  8264. ba:Destroy()
  8265. a2:Destroy()
  8266. ba2:Destroy()
  8267. end))
  8268. hum.WalkSpeed = storehumanoidWS
  8269. hb:Destroy()
  8270. hb2:Destroy()
  8271. attack = false
  8272. end
  8273.  
  8274. function dragin()
  8275. local targetted = nil
  8276. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8277. targetted = mouse.Target.Parent
  8278. end
  8279. if targetted ~= nil then
  8280. RootPart.CFrame = FaceMouse()[1]
  8281. attack = true
  8282. hum.WalkSpeed = 0
  8283. for x = 0, 1 do
  8284. for i = 0,1,0.5 do
  8285. swait()
  8286. 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)
  8287. 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)
  8288. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8290. 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)
  8291. 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)
  8292. end
  8293. for i = 0,1,0.5 do
  8294. swait()
  8295. 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)
  8296. 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)
  8297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8299. 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)
  8300. 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)
  8301. end
  8302. for i = 0,1,0.5 do
  8303. swait()
  8304. 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)
  8305. 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)
  8306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8308. 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)
  8309. 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)
  8310. end
  8311. for i = 0,1,0.5 do
  8312. swait()
  8313. 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)
  8314. 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)
  8315. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8316. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8317. 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)
  8318. 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)
  8319. end
  8320. end
  8321. coroutine.resume(coroutine.create(function()
  8322. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8323. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8324. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8325. end))
  8326. local A1 = Instance.new("Attachment",targetted.Head)
  8327. local A2 = Instance.new("Attachment",sorb)
  8328. local Beem = Instance.new("Beam",tors)
  8329. Beem.Attachment0 = A1
  8330. Beem.Attachment1 = A2
  8331. Beem.Texture = "rbxassetid://897585362"
  8332. Beem.LightEmission = 0.75
  8333. Beem.FaceCamera = true
  8334. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8335. Beem.Width0 = 1
  8336. Beem.Width1 = 1
  8337. Beem.TextureMode = "Wrap"
  8338. Beem.TextureLength = 1
  8339. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8340. 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)
  8341. 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)
  8342. for x = 0, 24 do
  8343. local rsiz = math.random(5,15)
  8344. 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)
  8345. end
  8346.  
  8347. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8348. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8349. local radm = math.random(1,2)
  8350. if radm == 1 then
  8351. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8352. elseif radm == 2 then
  8353. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8354. end
  8355. for i = 0,3,0.1 do
  8356. swait()
  8357. coroutine.resume(coroutine.create(function()
  8358. local rsiz = math.random(5,15)
  8359. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8360. 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)
  8361. end))
  8362. 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)
  8363. 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)
  8364. 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)
  8365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8367. 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)
  8368. 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)
  8369. end
  8370. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8371. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8372. local vel = Instance.new("BodyPosition", targetted.Head)
  8373. vel.P = 12500
  8374. vel.D = 1000
  8375. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8376. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8377. for i = 0,4,0.1 do
  8378. swait()
  8379. coroutine.resume(coroutine.create(function()
  8380. local rsiz = math.random(5,15)
  8381. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8382. 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)
  8383. end))
  8384. 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)
  8385. 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)
  8386. 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)
  8387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8389. 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)
  8390. 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)
  8391. end
  8392. local visibility = 0
  8393. coroutine.resume(coroutine.create(function()
  8394. for i = 0, 49 do
  8395. swait()
  8396. visibility = visibility + 0.02
  8397. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8398. end
  8399. Beem:Destroy()
  8400. A1:Destroy()
  8401. A2:Destroy()
  8402. end))
  8403. game:GetService("Debris"):AddItem(vel,0.75)
  8404. attack = false
  8405. hum.WalkSpeed = storehumanoidWS
  8406.  
  8407. end
  8408. end
  8409.  
  8410. function hugg()
  8411. attack = true
  8412. hum.WalkSpeed = 5
  8413. local rsiz = math.random(5,15)
  8414. for i = 0, 2, 0.1 do
  8415. swait()
  8416. 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)
  8417. 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)
  8418. 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)
  8419. 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)
  8420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8422. end
  8423. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8424.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8425.     hb.Anchored = true
  8426.     hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8427. local huggedperson = nil
  8428. local act = false
  8429. local alreadydid = false
  8430. for i = 0, 3, 0.1 do
  8431. swait()
  8432. if act == false then
  8433. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8434. if v:FindFirstChild('Head') then
  8435. if alreadydid == false then
  8436. huggedperson = v
  8437. hum.WalkSpeed = 0
  8438. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8439. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8440. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8441. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8442. local radm = math.random(1,3)
  8443. if radm == 1 then
  8444. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8445. elseif radm == 2 then
  8446. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8447. elseif radm == 3 then
  8448. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8449. end
  8450. root.Anchored = true
  8451. coroutine.resume(coroutine.create(function()
  8452. huggedperson.Humanoid.WalkSpeed = 0
  8453. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8454. end))
  8455. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8456. alreadydid = true
  8457. act = true
  8458. print(huggedperson.Name)
  8459. end
  8460. end
  8461. end
  8462. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8463. 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)
  8464. elseif act == true then
  8465. coroutine.resume(coroutine.create(function()
  8466. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8467. end))
  8468. rsiz = math.random(5,15)
  8469. 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)
  8470. 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)
  8471. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8472. end
  8473. 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)
  8474. 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)
  8475. 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)
  8476. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8477. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8478. end
  8479. hb:Destroy()
  8480. if act == true then
  8481. for x = 0, 2 do
  8482. for i = 0, 2, 0.1 do
  8483. swait()
  8484. coroutine.resume(coroutine.create(function()
  8485. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8486. end))
  8487. rsiz = math.random(5,15)
  8488. 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)
  8489. 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)
  8490. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8491. 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)
  8492. 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)
  8493. 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)
  8494. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8495. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8496. end
  8497. for i = 0, 2, 0.1 do
  8498. swait()
  8499. coroutine.resume(coroutine.create(function()
  8500. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8501. end))
  8502. rsiz = math.random(5,15)
  8503. 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)
  8504. 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)
  8505. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8506. 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)
  8507. 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)
  8508. 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)
  8509. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8510. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8511. end
  8512. end
  8513. end
  8514. hum.WalkSpeed = storehumanoidWS
  8515. root.Anchored = false
  8516. if act == true then
  8517. coroutine.resume(coroutine.create(function()
  8518. huggedperson.Humanoid.WalkSpeed = 16
  8519. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8520. end))
  8521. end
  8522. hum.WalkSpeed = storehumanoidWS
  8523. attack = false
  8524. end
  8525.  
  8526. function Counter()
  8527.     hum.WalkSpeed = 0
  8528. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8529. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8530. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8531.     attack = true
  8532.     for i = 0,1,0.1 do
  8533.         swait()
  8534.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8535. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8536. 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)
  8537. 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)
  8538. 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)
  8539. 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)
  8540.     end
  8541. CameraEnshaking(3,4)
  8542. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8543. 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)
  8544. 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)
  8545. 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)
  8546. coroutine.resume(coroutine.create(function()
  8547. local eff = Instance.new("ParticleEmitter",root)
  8548. eff.Texture = "rbxassetid://363275192"
  8549. eff.LightEmission = 0.95
  8550. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8551. eff.Rate = 10000
  8552. eff.Lifetime = NumberRange.new(1)
  8553. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8554. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8555. eff.Speed = NumberRange.new(10,125)
  8556. eff.Drag = 5
  8557. eff.Rotation = NumberRange.new(-500,500)
  8558. eff.VelocitySpread = 9000
  8559. eff.RotSpeed = NumberRange.new(-50,50)
  8560. local eff2 = eff:Clone()
  8561. eff2.Parent = root
  8562. eff2.Texture = "rbxassetid://284205403"
  8563. eff2.Rate = 10000
  8564. 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)})
  8565. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8566. eff2.Drag = 5
  8567. eff2.Speed = NumberRange.new(10,50)
  8568. eff2.Rotation = NumberRange.new(-500,500)
  8569. eff2.VelocitySpread = 9000
  8570. wait(0.25)
  8571. eff2.Enabled = false
  8572. eff.Enabled = false
  8573. wait(3)
  8574. eff2:Destroy()
  8575. eff:Destroy()
  8576. end))
  8577. for i = 0, 9 do
  8578. 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)
  8579. end
  8580. for i = 0, 24 do
  8581. local rsiz = math.random(5,20)
  8582. 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)
  8583. end
  8584. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8585. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8586. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8587.     for i = 0,2,0.1 do
  8588.         swait()
  8589.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8590. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8591. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8592. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8593. 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)
  8594. 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)
  8595.     end
  8596.     hum.WalkSpeed = storehumanoidWS
  8597. attack = false
  8598. end
  8599.  
  8600. function superjump()
  8601. attack = true
  8602. hum.WalkSpeed = 0
  8603. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8604. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8605. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8606. for i = 0, 2, 0.1 do
  8607.         swait()
  8608. root.Velocity = vt(0,0,0)
  8609. 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"))
  8610. 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)
  8611. 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)
  8612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8614. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8615. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8616. end
  8617. MagniDamage(root, 28, 25,50, 25, "Normal")
  8618. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8619. hum.Jump = true
  8620. swait()
  8621. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8622. 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)
  8623. 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)
  8624. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8625. for i = 0, 3, 0.1 do
  8626.         swait()
  8627. 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)
  8628. 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)
  8629. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8630. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8631. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8632. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8633. end
  8634. attack = false
  8635. if equipped == false then
  8636. hum.WalkSpeed = 16
  8637. else
  8638. hum.WalkSpeed = 24
  8639. end
  8640. end
  8641.  
  8642.  
  8643. -------------------------------------
  8644.  
  8645.  
  8646.  
  8647. Humanoid.Animator.Parent = nil
  8648.  
  8649.  
  8650.  
  8651. -------------------------------------
  8652.  
  8653. local attacktype = 1
  8654. mouse.Button1Down:connect(function()
  8655.   if attack == false and attacktype == 1 then
  8656.     attacktype = 2
  8657.     attackone()
  8658.   elseif attack == false and attacktype == 2 then
  8659.     attacktype = 3
  8660.     attacktwo()
  8661.   elseif attack == false and attacktype == 3 then
  8662.     attacktype = 1
  8663.     attackthree()
  8664.   elseif attack == false and attacktype == 4 then
  8665.     attacktype = 1
  8666.     --attackfour()
  8667.   end
  8668. end)
  8669. mouse.KeyDown:connect(function(k)
  8670. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8671. --normalmog()
  8672. ModeOfGlitch = 1
  8673. storehumanoidWS = 16
  8674. hum.WalkSpeed = 16
  8675. rainbowmode = false
  8676. chaosmode = false
  8677. newTheme("rbxassetid://367339030",48.6,1,0.85)
  8678. RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8679. MAINRUINCOLOR = BrickColor.new("Really red")
  8680. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8681. end
  8682. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8683. ModeOfGlitch = 2
  8684. storehumanoidWS = 16
  8685. hum.WalkSpeed = 16
  8686. rainbowmode = false
  8687. chaosmode = false
  8688. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8689. newTheme("rbxassetid://1539245059",0,1,0.85)
  8690. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8691. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8692. end
  8693. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8694.                ModeOfGlitch = 3
  8695. storehumanoidWS = 14
  8696. hum.WalkSpeed = 14
  8697. rainbowmode = false
  8698. chaosmode = false
  8699. RecolorTextAndRename("Stable Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8700. newTheme("rbxassetid://367339030",58.15,0.98,1)
  8701. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8702. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8703. end
  8704. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8705.                ModeOfGlitch = 4
  8706. storehumanoidWS = 14
  8707. hum.WalkSpeed = 14
  8708. rainbowmode = false
  8709. chaosmode = true
  8710. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8711. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8712. MAINRUINCOLOR = BrickColor.new("Crimson")
  8713. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8714. end
  8715. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8716.                ModeOfGlitch = 5
  8717. storehumanoidWS = 14
  8718. hum.WalkSpeed = 14
  8719. rainbowmode = false
  8720. chaosmode = false
  8721. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8722. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8723. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8724. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8725. end
  8726. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8727.                ModeOfGlitch = 6
  8728. storehumanoidWS = 65
  8729. hum.WalkSpeed = 65
  8730. rainbowmode = false
  8731. chaosmode = false
  8732. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8733. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8734. MAINRUINCOLOR = BrickColor.new("White")
  8735. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8736. end
  8737. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8738.                ModeOfGlitch = 8
  8739. storehumanoidWS = 100
  8740. hum.WalkSpeed = 100
  8741. rainbowmode = false
  8742. chaosmode = false
  8743. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8744. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8745. MAINRUINCOLOR = BrickColor.new("Alder")
  8746. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8747. end
  8748. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8749.                ModeOfGlitch = 9
  8750. storehumanoidWS = 85
  8751. hum.WalkSpeed = 85
  8752. rainbowmode = false
  8753. chaosmode = false
  8754. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8755. newTheme("rbxassetid://879189331",0,1.01,0.85)
  8756. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8757. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8758. end
  8759. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8760.                ModeOfGlitch = 5555
  8761. storehumanoidWS = 30
  8762. hum.WalkSpeed = 30
  8763. rainbowmode = false
  8764. chaosmode = false
  8765. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8766. newTheme("rbxassetid://736003449",0,1,1.25)
  8767. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8768. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8769. end
  8770. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8771. CalamityTrans()
  8772. end
  8773. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8774. InsaneTrans()
  8775. end
  8776. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8777.                ModeOfGlitch = 55469696922
  8778. storehumanoidWS = 95
  8779. hum.WalkSpeed = 95
  8780. rainbowmode = false
  8781. chaosmode = false
  8782. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8783. newTheme("rbxassetid://919231299",0,1.005,0.9)
  8784. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8785. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8786. end
  8787. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8788.                ModeOfGlitch = 4367677813
  8789. storehumanoidWS = 75
  8790. hum.WalkSpeed = 75
  8791. rainbowmode = false
  8792. chaosmode = false
  8793. RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8794. newTheme("rbxassetid://919231299",0,1.01,0.95)
  8795. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8796. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8797. end
  8798. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8799.                ModeOfGlitch = 9999999921111
  8800. storehumanoidWS = 145
  8801. hum.WalkSpeed = 145
  8802. rainbowmode = false
  8803. chaosmode = false
  8804. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8805. newTheme("rbxassetid://643309199",0,1.01,1)
  8806. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8807. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8808. end
  8809. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8810.                ModeOfGlitch = 999999999556
  8811. storehumanoidWS = 115
  8812. hum.WalkSpeed = 115
  8813. rainbowmode = false
  8814. chaosmode = false
  8815. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8816. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8817. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8818. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8819. end
  8820. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8821.                ModeOfGlitch = 12
  8822. storehumanoidWS = 19
  8823. hum.WalkSpeed = 19
  8824. rainbowmode = false
  8825. chaosmode = false
  8826. print'Mode was meant for Vengeful Program or those other fans out there'
  8827. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8828. newTheme("rbxassetid://1873219898",0,1,1.7)
  8829. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8830. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8831. end
  8832.  
  8833. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8834. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8835. for i = 0, 49 do
  8836. 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)
  8837. end
  8838. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8839. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8840. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8841. hum.WalkSpeed = storehumanoidWS
  8842. attack = false
  8843.     ModeOfGlitch = 50
  8844. storehumanoidWS = 18
  8845. hum.WalkSpeed = 18
  8846. rainbowmode = false
  8847. chaosmode = false
  8848. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8849. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8850. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8851. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8852. end
  8853.  
  8854. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8855.     hum.WalkSpeed = 0
  8856.     attack = true
  8857.     for i = 0,1,0.1 do
  8858.         swait()
  8859.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8860. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8861. 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)
  8862. 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)
  8863. 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)
  8864. 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)
  8865.     end
  8866. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8867. for i = 0, 148 do
  8868. 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)
  8869. end
  8870. for i = 0,3,0.1 do
  8871. 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)
  8872. end
  8873. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8874. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8875. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8876.     hum.WalkSpeed = storehumanoidWS
  8877. attack = false
  8878.     ModeOfGlitch = 66
  8879. storehumanoidWS = 16
  8880. hum.WalkSpeed = 16
  8881. rainbowmode = false
  8882. chaosmode = false
  8883. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8884. MAINRUINCOLOR = BrickColor.new("Really black")
  8885. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8886.     for i = 0,2,0.1 do
  8887.         swait()
  8888. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8889. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8890. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8891. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8892. 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)
  8893. 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)
  8894.     end
  8895. end
  8896.  
  8897. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8898.     hum.WalkSpeed = 0
  8899.     attack = true
  8900.     for i = 0,1,0.1 do
  8901.         swait()
  8902.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8903. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8904. 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)
  8905. 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)
  8906. 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)
  8907. 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)
  8908.     end
  8909. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8910. for i = 0, 49 do
  8911. 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)
  8912. end
  8913. for i = 0,3,0.1 do
  8914. 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)
  8915. end
  8916. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8917. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8918. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8919.     hum.WalkSpeed = storehumanoidWS
  8920. attack = false
  8921.     ModeOfGlitch = 13
  8922. storehumanoidWS = 45
  8923. hum.WalkSpeed = 45
  8924. rainbowmode = false
  8925. chaosmode = false
  8926. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8927. newTheme("rbxassetid://190845741",0,1,1.35)
  8928. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8929. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8930.     for i = 0,2,0.1 do
  8931.         swait()
  8932. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8933. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8934. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8935. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8936. 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)
  8937. 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)
  8938.     end
  8939. end
  8940. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8941.                ModeOfGlitch = 1002
  8942. storehumanoidWS = 45
  8943. hum.WalkSpeed = 45
  8944. rainbowmode = false
  8945. chaosmode = false
  8946. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8947. newTheme("rbxassetid://2027652726",0,1,0.85)
  8948. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8949. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8950. end
  8951. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8952.                ModeOfGlitch = 1003
  8953. storehumanoidWS = 90
  8954. hum.WalkSpeed = 90
  8955. rainbowmode = false
  8956. chaosmode = false
  8957. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8958. newTheme("rbxassetid://257453119",0,1,0.85)
  8959. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8960. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8961. end
  8962. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8963.                ModeOfGlitch = 1264532489
  8964. storehumanoidWS = 175
  8965. hum.WalkSpeed = 175
  8966. rainbowmode = false
  8967. chaosmode = false
  8968. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8969. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8970. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8971. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8972. end
  8973. if k == "l" and mutedtog == false then
  8974. mutedtog = true
  8975. kan.Volume = 0.85
  8976. elseif k == "l" and mutedtog == true then
  8977. mutedtog = false
  8978. kan.Volume = 0.85
  8979. end
  8980. if k == "p" and toggleTag == false then
  8981. toggleTag = true
  8982. modet.TextTransparency = 0
  8983. modet.TextStrokeTransparency = 0
  8984. elseif k == "p" and toggleTag == true then
  8985. toggleTag = false
  8986. modet.TextTransparency = 1
  8987. modet.TextStrokeTransparency = 1
  8988. end
  8989. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8990. ExtinctiveHeartbreak()
  8991. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8992. HeavenlyDisk()
  8993. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8994. DualGleamingBeam()
  8995. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8996. BanishingOrb()
  8997. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8998. hugg()
  8999. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  9000. cutesigh()
  9001. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  9002. Counter()
  9003. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  9004. superjump()
  9005. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9006. dragin()
  9007. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9008. UniversalCollapse()
  9009. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9010. PureBomb()
  9011. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9012. Beams()
  9013. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9014. BeamOfDeath()
  9015. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  9016. THE_TRUE_POWER_OF_VIOLENCE()
  9017. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  9018. GleamingBeam()
  9019. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9020. ViolentRing()
  9021. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9022. CorruptionEvent()
  9023. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9024. CorruptBlink()
  9025. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9026. scattercorrupt()
  9027. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  9028. shytaunty()
  9029. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9030. RapidBurst()
  9031. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9032. InsaneDrop()
  9033. wait(2)
  9034. ChaosEND()
  9035. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9036. ChaosEND()
  9037. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9038. CyberSlash()
  9039. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  9040. smiter()
  9041. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9042. SpeedDrop()
  9043. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9044. --DivineLights()
  9045. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9046. DivineBlast()
  9047. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9048. EquinoxOrbs()
  9049. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9050. yinyangi()
  9051. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9052. FallenOrbs()
  9053. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9054. StarfallEX()
  9055. end
  9056. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9057. FallenDEMISE()
  9058. end
  9059. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9060. EndGROUND()
  9061. end
  9062. end)
  9063.  
  9064. coroutine.resume(coroutine.create(function()
  9065. while true do
  9066. swait()
  9067. 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
  9068. 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)
  9069. end
  9070. if ModeOfGlitch == 5555 then
  9071. 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)
  9072. end
  9073. end
  9074. end))
  9075. --[[coroutine.resume(coroutine.create(function()
  9076. while true do
  9077. swait(2)
  9078. if chaosmode == true then
  9079. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9080. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9081. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9082. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9083. for i, v in pairs(mw1:GetChildren()) do
  9084. if v:IsA("Part") then
  9085. v.Transparency = 0.75
  9086. v.BrickColor = BrickColor.random()
  9087. v.Material = "Neon"
  9088. end
  9089. end
  9090. for i, v in pairs(m2:GetChildren()) do
  9091. if v:IsA("Part") then
  9092. v.BrickColor = BrickColor.random()
  9093. v.Material = "Neon"
  9094. end
  9095. end
  9096. end
  9097. end
  9098. end))]]
  9099.  
  9100.  
  9101.  
  9102. ff = Instance.new("ForceField",char)
  9103. ff.Visible = false
  9104. hum.Name = "Base"
  9105. hum.MaxHealth = 1.0E298
  9106. hum.Health = 1.0E298
  9107. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9108.   if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9109.     hum.MaxHealth = 1.0E298
  9110.     hum.Health = 1.0E298
  9111.   end
  9112. end)
  9113.  
  9114. local Hair = Instance.new("Part", char)
  9115. Hair.Name = "Hair"
  9116. Hair.CanCollide = false
  9117. Hair.BrickColor = BrickColor.new("Institutional white")
  9118. Hair.Transparency = 0
  9119. Hair.Material = "Plastic"
  9120. Hair.Size = Vector3.new(1, 1, 2)
  9121. Hair.TopSurface = Enum.SurfaceType.Smooth
  9122. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9123.  
  9124.  
  9125. local bguis = Instance.new("BillboardGui",tors)
  9126. bguis.Size = UDim2.new(25, 0, 25, 0)
  9127. local imgca = Instance.new("ImageLabel",bguis)
  9128. imgca.BackgroundTransparency = 1
  9129. imgca.ImageTransparency = 1
  9130. imgca.Size = UDim2.new(1,0,1,0)
  9131. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9132. imgca.ImageColor3 = Color3.new(0,0,0)
  9133.  
  9134.  
  9135. local bguis2 = Instance.new("BillboardGui",tors)
  9136. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9137. local imgca2 = Instance.new("ImageLabel",bguis)
  9138. imgca2.BackgroundTransparency = 1
  9139. imgca2.ImageTransparency = 1
  9140. imgca2.Size = UDim2.new(1,0,1,0)
  9141. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9142. imgca2.ImageColor3 = Color3.new(0,0,0)
  9143.  
  9144.  
  9145.  
  9146. idleanim=.4
  9147. while true do
  9148. if mutedtog == false then
  9149. kan.Volume = currentVol
  9150. elseif mutedtog == true then
  9151. kan.Volume = 0
  9152. end
  9153. kan.PlaybackSpeed = currentPitch
  9154. kan.Pitch = currentPitch
  9155. kan.SoundId = currentThemePlaying
  9156. kan.Looped = true
  9157. kan.Parent = char
  9158. kan:Resume()
  9159. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9160. imgca.ImageTransparency = 1
  9161. imgca2.ImageTransparency = 1
  9162. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9163. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9164. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9165. elseif ModeOfGlitch == 13 then
  9166. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9167. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9168. end
  9169. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9170. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9171. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9172. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9173. coroutine.resume(coroutine.create(function()
  9174.     if chaosmode == true then
  9175. for i, v in pairs(mw1:GetChildren()) do
  9176. if v:IsA("Part") then
  9177. v.Transparency = 0
  9178. v.BrickColor = BrickColor.random()
  9179. v.Material = "Neon"
  9180. end
  9181. end
  9182. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9183. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9184. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9185.     RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9186.     end
  9187. end))
  9188. coroutine.resume(coroutine.create(function()
  9189.     if ModeOfGlitch == 66 then
  9190.         for i, v in pairs(m:GetChildren()) do
  9191. if v:IsA("Part") then
  9192. v.Transparency = 0
  9193. v.BrickColor = BrickColor.random()
  9194. v.Material = "Neon"
  9195. end
  9196. end
  9197.         for i, v in pairs(m2:GetChildren()) do
  9198. if v:IsA("Part") then
  9199. v.Transparency = 0
  9200. v.BrickColor = BrickColor.random()
  9201. v.Material = "Neon"
  9202. end
  9203. end
  9204. for i, v in pairs(mw1:GetChildren()) do
  9205. if v:IsA("Part") then
  9206. v.Transparency = 0
  9207. v.BrickColor = BrickColor.random()
  9208. v.Material = "Neon"
  9209. end
  9210. end
  9211. for i, v in pairs(extrawingmod1:GetChildren()) do
  9212. if v:IsA("Part") then
  9213. v.Transparency = 0.5
  9214. v.BrickColor = BrickColor.random()
  9215. v.Material = "Neon"
  9216. end
  9217. end
  9218. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9219. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9220. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9221. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9222. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9223. end
  9224. end))
  9225.  
  9226. coroutine.resume(coroutine.create(function()
  9227.     if ModeOfGlitch == 66 then
  9228. RecolorTextAndRename("S N A P P E D G U E S T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9229.     end
  9230.     end))
  9231.  
  9232. if chaosmode == false then
  9233. modet.Position = UDim2.new(0,0,0,0)
  9234. modet.Rotation = -5 * math.cos(sine / 32)
  9235. techc.Rotation = techc.Rotation + 1
  9236. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9237. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9238. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9239. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9240. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9241. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9242. else
  9243.     techc.Rotation = techc.Rotation + 1
  9244. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9245. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9246. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9247. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9248. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9249. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9250. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9251. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9252. end
  9253. CameraManager()
  9254. swait()
  9255. 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)
  9256. 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)
  9257. 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)
  9258. 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)
  9259. 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)
  9260. 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)
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. 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)
  9266. 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)
  9267.  sine = sine + change
  9268. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9269. local velderp=RootPart.Velocity.y
  9270. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9271. coroutine.resume(coroutine.create(function()
  9272. 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
  9273. if hitfloor ~= nil then
  9274. 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"))
  9275. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9276. 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)
  9277. end
  9278. end
  9279. end
  9280. end))
  9281. if equipped==true or equipped==false then
  9282. if attack==false then
  9283. idle=idle+1
  9284. else
  9285. idle=0
  9286. end
  9287. if idle>=500 then
  9288. if attack==false then
  9289. --Sheath()
  9290. end
  9291. end
  9292. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9293. Anim="Jump"
  9294. if attack==false then
  9295. 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)
  9296. 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)
  9297. 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)
  9298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9299. 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)
  9300. 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)
  9301. end
  9302. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9303. Anim="Fall"
  9304. if attack==false then
  9305. 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)
  9306. 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)
  9307. 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)
  9308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9309. 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)
  9310. 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)
  9311. end
  9312. elseif torvel<1 and hitfloor~=nil then
  9313. Anim="Idle"
  9314. if attack==false then
  9315. if ModeOfGlitch == 1 then
  9316. local snap = math.random(1,10)
  9317. if snap == 1 then
  9318. 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)
  9319. end
  9320. 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)
  9321. 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)
  9322. 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)
  9323. 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)
  9324. 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)
  9325. 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)
  9326. elseif ModeOfGlitch == 2 then
  9327. 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)
  9328. 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)
  9329. 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)
  9330. 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)
  9331. 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)
  9332. 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)
  9333. elseif ModeOfGlitch == 2 then
  9334. 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)
  9335. 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)
  9336. 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)
  9337. 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)
  9338. 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)
  9339. 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)
  9340. elseif ModeOfGlitch == 50 then
  9341. 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)
  9342. 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)
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. elseif ModeOfGlitch == 5555 then --5555
  9348. 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)
  9349. 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)
  9350. 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)
  9351. 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)
  9352. 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)
  9353. 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)
  9354. elseif ModeOfGlitch == 1002 then
  9355. 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)
  9356. 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)
  9357. 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)
  9358. 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)
  9359. 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)
  9360. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9361. elseif ModeOfGlitch == 12 then
  9362. 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)
  9363. 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)
  9364. 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)
  9365. 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)
  9366. 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)
  9367. 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)
  9368. elseif ModeOfGlitch == 3 then
  9369. local snap = math.random(1,32)
  9370. if snap == 1 then
  9371. 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)
  9372. end
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. 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)
  9378. 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)
  9379. elseif ModeOfGlitch == 4 then
  9380. local snap = math.random(1,5)
  9381. if snap == 1 then
  9382. 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)
  9383. 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)
  9384. 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)
  9385. end
  9386. 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)
  9387. 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)
  9388. 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)
  9389. 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)
  9390. 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)
  9391. 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)
  9392. elseif ModeOfGlitch == 66 then
  9393. local snap = math.random(1,2)
  9394. if snap == 1 then
  9395. 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)
  9396. 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)
  9397. 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)
  9398. end
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. 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)
  9405. elseif ModeOfGlitch == 5 then
  9406. 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)
  9407. 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)
  9408. 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)
  9409. 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)
  9410. 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)
  9411. 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)
  9412. elseif ModeOfGlitch == 6 then
  9413. 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)
  9414. 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)
  9415. 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)
  9416. 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)
  9417. 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)
  9418. 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)
  9419. elseif ModeOfGlitch == 13 then
  9420. 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)
  9421. 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)
  9422. 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)
  9423. 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)
  9424. 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)
  9425. 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)
  9426. elseif ModeOfGlitch == 8 then
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. 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)
  9432. 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)
  9433. elseif ModeOfGlitch == 9 then
  9434. 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)
  9435. 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))
  9436. 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)
  9437. 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)
  9438. 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)
  9439. 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)
  9440. 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)
  9441. 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)
  9442. elseif ModeOfGlitch == 1003 then
  9443. 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)
  9444. 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)
  9445. 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)
  9446. 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)
  9447. 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)
  9448. 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)
  9449.  
  9450. elseif ModeOfGlitch == 8889 then
  9451. 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)
  9452. 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)
  9453. 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)
  9454. 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)
  9455. 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)
  9456. 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)
  9457. elseif ModeOfGlitch == 1264532489 then
  9458. 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)
  9459. 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)
  9460. 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)
  9461. 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)
  9462. 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)
  9463. 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)
  9464. 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)
  9465. elseif ModeOfGlitch == 9999999921111 then  --9999999921111
  9466. 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)
  9467. 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)
  9468. 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)
  9469. 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)
  9470. 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)
  9471. 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)
  9472. elseif ModeOfGlitch == 4367677813 then
  9473. 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)
  9474. 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)
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. elseif ModeOfGlitch == 55469696922 then --5555
  9480. 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)
  9481. 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)
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. elseif ModeOfGlitch == 999999999556 then
  9487. 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)
  9488. 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)
  9489. 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)
  9490. 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)
  9491. 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)
  9492. 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)
  9493. end
  9494. end
  9495. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9496. Anim="Walk"
  9497. if attack==false and ModeOfGlitch ~= 66 then
  9498. 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)
  9499. 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)
  9500. 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)
  9501. 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)
  9502. 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)
  9503. 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)
  9504. elseif attack==false and ModeOfGlitch == 66 then
  9505. 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)
  9506. 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)
  9507. 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)
  9508. 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)
  9509. 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)
  9510. 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)
  9511. end
  9512. elseif torvel>=22 and hitfloor~=nil then
  9513. Anim="Run"
  9514. if attack==false then
  9515. 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
  9516. 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)
  9517. 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)
  9518. 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)
  9519. 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)
  9520. 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)
  9521. 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)
  9522. if ModeOfGlitch == 12 then
  9523. 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)
  9524. 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)
  9525. 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)
  9526. 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)
  9527. 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)
  9528. 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)
  9529. end
  9530. if ModeOfGlitch == 9 then
  9531.     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)
  9532. 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))
  9533. 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)
  9534. end
  9535. 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
  9536. 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)
  9537. 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)
  9538. 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)
  9539. 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)
  9540. 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)
  9541. 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)
  9542. elseif ModeOfGlitch == 13 then
  9543. 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)
  9544. 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)
  9545. 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)
  9546. 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)
  9547. 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)
  9548. 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)
  9549. end
  9550. end
  9551. end
  9552. end
  9553. end
RAW Paste Data