Advertisement
13242

Untitled

Nov 28th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 455.77 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  8. The super switcher.
  9. Velnorum is one of the first wielders.
  10.  
  11. Created, Reworked by NoobyGames12
  12. Edited by GodzPlaysRB
  13. Edited by wanTH092 (Gam_Filano CH)
  14. SpectrumGlitcher Developers ^^^
  15. ]])
  16.  
  17.  
  18. ------------- ORIGINAL WIELDER OC: Velnorum
  19. print([[Icons:
  20. ! = New
  21. ? = Spoilers
  22. * = Exclusivity
  23. C = Changes
  24.  
  25. ]])
  26. warn([[V 4.35 Update Log:
  27. ! - Added Betrayal mode (Chaos M)
  28.  
  29. !? - Added z move to destiny
  30. !c? = Added calamity transition
  31. !? - upcoming transition for some mode..
  32. - Removed some voice sound effects because they didnt sound right
  33. ]])
  34. --- its obs smooth af do not touch
  35. ---- Sources and functions might be taken from others
  36. plr = game:GetService("Players").2345686332568964321e
  37. char = plr.Character
  38. hum = char.Humanoid
  39. local mouse = player:GetMouse()
  40. local cam = game.Workspace.CurrentCamera
  41. Camera = cam
  42. local CamInterrupt = false
  43. local TwoD = false
  44. local TargetInfo = {nil, nil}
  45. cam.CameraType = "Custom"
  46. t = char.Torso
  47. h = char.Head
  48. ra = char["Right Arm"]
  49. la = char["Left Arm"]
  50. rl = char["Right Leg"]
  51. ll = char["Left Leg"]
  52. tors = char.Torso
  53. lleg = char["Left Leg"]
  54. root = char.HumanoidRootPart
  55. hed = char.Head
  56. rleg = char["Right Leg"]
  57. rarm = char["Right Arm"]
  58. larm = char["Left Arm"]
  59. radian = math.rad
  60. random = math.random
  61. Vec3 = Vector3.new
  62. Inst = Instance.new
  63. cFrame = CFrame.new
  64. Euler = CFrame.fromEulerAnglesXYZ
  65. vt = Vector3.new
  66. bc = BrickColor.new
  67. br = BrickColor.random
  68. it = Instance.new
  69. cf = CFrame.new
  70. local Player_Size = 0
  71. cam = game.Workspace.CurrentCamera
  72. CF = CFrame.new
  73. angles = CFrame.Angles
  74. attack = false
  75. Euler = CFrame.fromEulerAnglesXYZ
  76. Rad = math.rad
  77. IT = Instance.new
  78. BrickC = BrickColor.new
  79. Cos = math.cos
  80. Acos = math.acos
  81. Sin = math.sin
  82. Asin = math.asin
  83. Abs = math.abs
  84. Mrandom = math.random
  85. Floor = math.floor
  86. IT = Instance.new
  87. CF = CFrame.new
  88. VT = Vector3.new
  89. RAD = math.rad
  90. C3 = Color3.new
  91. UD2 = UDim2.new
  92. BRICKC = BrickColor.new
  93. ANGLES = CFrame.Angles
  94. EULER = CFrame.fromEulerAnglesXYZ
  95. COS = math.cos
  96. ACOS = math.acos
  97. SIN = math.sin
  98. ASIN = math.asin
  99. ABS = math.abs
  100. MRANDOM = math.random
  101. FLOOR = math.floor
  102. local SINE = 0
  103.  
  104. local Booleans = {
  105. CamFollow = true,
  106. GyroUse = true
  107. }
  108.  
  109. function lerp(object, newCFrame, alpha)
  110. return object:lerp(newCFrame, alpha)
  111. end
  112.  
  113. local Directer = Inst("BodyGyro", root)
  114. Directer.MaxTorque = Vec3(0, 0, 0)
  115. Directer.P = 600000
  116. local CPart = Inst("Part")
  117. CPart.Anchored = true
  118. CPart.CanCollide = false
  119. CPart.Locked = true
  120. CPart.Transparency = 1
  121.  
  122. local rainbowmode = false
  123. local chaosmode = false
  124.  
  125. local kan = Instance.new("Sound",tors)
  126. kan.Volume = 0.85
  127. kan.TimePosition = 0
  128. kan.PlaybackSpeed = 1
  129. kan.Pitch = 1
  130. kan.SoundId = "rbxassetid://1255569288"
  131. kan.Name = "wrecked"
  132. kan.Looped = true
  133. kan:Play()
  134.  
  135. local currentThemePlaying = kan.SoundId
  136. local currentPitch = kan.Pitch
  137. local currentVol = kan.Volume
  138. function newTheme(ID,timepos,pitch,vol)
  139. local kanz = kan
  140. --kanz:Stop()
  141. kanz.Volume = vol
  142. --kanz.TimePosition = timepos
  143. kanz.PlaybackSpeed = pitch
  144. kanz.Pitch = pitch
  145. kanz.SoundId = ID
  146. kanz.Name = "wrecked"
  147. kanz.Looped = true
  148. currentThemePlaying = kanz.SoundId
  149. currentVol = kanz.Volume
  150. currentPitch = kanz.Pitch
  151. --kanz:Play()
  152. --coroutine.resume(coroutine.create(function()
  153. --wait(0.05)
  154. --end))
  155. end
  156.  
  157.  
  158. function newThemeCust(ID,timepos,pitch,vol)
  159. local kanz = kan
  160. kanz:Stop()
  161. kanz.Volume = vol
  162. kanz.TimePosition = timepos
  163. kanz.PlaybackSpeed = pitch
  164. kanz.Pitch = pitch
  165. kanz.SoundId = ID
  166. kanz.Name = "wrecked"
  167. kanz.Looped = true
  168. currentThemePlaying = kanz.SoundId
  169. currentVol = kanz.Volume
  170. currentPitch = kanz.Pitch
  171. kanz:Play()
  172. coroutine.resume(coroutine.create(function()
  173. wait(0.05)
  174. end))
  175. end
  176.  
  177. local mutedtog = false
  178.  
  179. function CameraEnshaking(Length,Intensity)
  180. coroutine.resume(coroutine.create(function()
  181. local intensity = 1*Intensity
  182. local rotM = 0.01*Intensity
  183. for i = 0, Length, 0.1 do
  184. swait()
  185. intensity = intensity - 0.05*Intensity/Length
  186. rotM = rotM - 0.0005*Intensity/Length
  187. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  188. 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)
  189. end
  190. Humanoid.CameraOffset = Vec3(0, 0, 0)
  191. end))
  192. end
  193. CamShake=function(Part,Distan,Power,Times)
  194. local de=Part.Position
  195. for i,v in pairs(workspace:children()) do
  196. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  197. for _,c in pairs(v:children()) do
  198. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  199. local Noob=v.Humanoid
  200. if Noob~=nil then
  201. coroutine.resume(coroutine.create(function()
  202. FV = Instance.new("BoolValue", Noob)
  203. FV.Name = "CameraShake"
  204. for ShakeNum=1,Times do
  205. swait()
  206. local ef=Power
  207. if ef>=1 then
  208. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  209. else
  210. ef=Power*10
  211. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  212. end
  213. end
  214. Humanoid.CameraOffset = Vector3.new(0,0,0)
  215. FV:Destroy()
  216. end))
  217. CameraShake(Times, Power, Noob)
  218. end
  219. end
  220. end
  221. end
  222. end
  223. end
  224.  
  225. local toggleTag = true
  226. local bilguit = Instance.new("BillboardGui", hed)
  227. bilguit.Adornee = nil
  228. bilguit.Name = "ModeName"
  229. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  230. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  231. local modet = Instance.new("TextLabel", bilguit)
  232. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  233. modet.FontSize = "Size8"
  234. modet.TextScaled = true
  235. modet.TextTransparency = 0
  236. modet.BackgroundTransparency = 1
  237. modet.TextTransparency = 0
  238. modet.TextStrokeTransparency = 0
  239. modet.Font = "Antique"
  240. modet.TextStrokeColor3 = Color3.new(1,0,0)
  241. modet.TextColor3 = Color3.new(0.25,0,0)
  242. modet.Text = "MAYHEM"
  243.  
  244.  
  245. function chatfunc(text,color,typet,font,timeex)
  246. local chat = coroutine.wrap(function()
  247. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  248. Character:FindFirstChild("TalkingBillBoard"):destroy()
  249. end
  250. local naeeym2 = Instance.new("BillboardGui",Character)
  251. naeeym2.Size = UDim2.new(0,100,0,40)
  252. naeeym2.StudsOffset = Vector3.new(0,3,0)
  253. naeeym2.Adornee = Character.Head
  254. naeeym2.Name = "TalkingBillBoard"
  255. local tecks2 = Instance.new("TextLabel",naeeym2)
  256. tecks2.BackgroundTransparency = 1
  257. tecks2.BorderSizePixel = 0
  258. tecks2.Text = ""
  259. tecks2.Font = font
  260. tecks2.TextSize = 30
  261. tecks2.TextStrokeTransparency = 0
  262. tecks2.TextColor3 = color
  263. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  264. tecks2.Size = UDim2.new(1,0,0.5,0)
  265. local tecks3 = Instance.new("TextLabel",naeeym2)
  266. tecks3.BackgroundTransparency = 1
  267. tecks3.BorderSizePixel = 0
  268. tecks3.Text = ""
  269. tecks3.Font = font
  270. tecks3.TextSize = 30
  271. tecks3.TextStrokeTransparency = 0
  272. if typet == "Inverted" then
  273. tecks3.TextColor3 = Color3.new(0,0,0)
  274. tecks3.TextStrokeColor3 = color
  275. elseif typet == "Normal" then
  276. tecks3.TextColor3 = color
  277. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  278. end
  279. tecks3.Size = UDim2.new(1,0,0.5,0)
  280. coroutine.resume(coroutine.create(function()
  281. while true do
  282. swait(1)
  283. if chaosmode == true then
  284. tecks2.TextColor3 = BrickColor.random().Color
  285. tecks3.TextStrokeColor3 = BrickColor.random().Color
  286. end
  287. end
  288. end))
  289. modet.TextTransparency = modet.TextTransparency + 1
  290. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  291. for i = 0, 74*timeex do
  292. swait()
  293. modet.TextTransparency = 1
  294. modet.TextStrokeTransparency = 1
  295. tecks2.Text = text
  296. tecks3.Text = text
  297. end
  298. local randomrot = math.random(1,2)
  299. if randomrot == 1 then
  300. for i = 1, 50 do
  301. swait()
  302. tecks2.Text = text
  303. tecks3.Text = text
  304. modet.TextTransparency = modet.TextTransparency - .02
  305. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  306. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  307. tecks2.TextTransparency = tecks2.TextTransparency + .04
  308. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  309. tecks3.TextTransparency = tecks2.TextTransparency + .04
  310. end
  311. elseif randomrot == 2 then
  312. for i = 1, 50 do
  313. swait()
  314. tecks2.Text = text
  315. tecks3.Text = text
  316. modet.TextTransparency = modet.TextTransparency - .02
  317. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  318. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  319. tecks2.TextTransparency = tecks2.TextTransparency + .04
  320. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  321. tecks3.TextTransparency = tecks2.TextTransparency + .04
  322. end
  323. end
  324. modet.TextTransparency = 0
  325. modet.TextStrokeTransparency = 0
  326. if toggleTag == false then
  327. modet.TextTransparency = 1
  328. modet.TextStrokeTransparency = 1
  329. end
  330. naeeym2:Destroy()
  331. end)
  332. chat()
  333. end
  334.  
  335. function bosschatfunc(text,color,watval)
  336. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  337. coroutine.resume(coroutine.create(function()
  338. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  339. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  340. end
  341. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  342. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  343. scrg.Name = "Dialog"
  344. local txtlb = Instance.new("TextLabel",scrg)
  345. txtlb.Text = ""
  346. txtlb.Font = "Bodoni"
  347. txtlb.TextColor3 = Color3.new(0,0,0)
  348. txtlb.TextStrokeTransparency = 0
  349. txtlb.BackgroundTransparency = 0.75
  350. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  351. txtlb.TextStrokeColor3 = color
  352. txtlb.TextScaled = true
  353. txtlb.Size = UDim2.new(1,0,0.25,0)
  354. txtlb.TextXAlignment = "Left"
  355. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  356. local txtlb2 = Instance.new("TextLabel",scrg)
  357. txtlb2.Text = plr.Name.." The Glitcher:"
  358. txtlb2.Font = "Arcade"
  359. txtlb2.TextColor3 = Color3.new(0,0,0)
  360. txtlb2.TextStrokeTransparency = 0
  361. txtlb2.BackgroundTransparency = 1
  362. txtlb2.TextStrokeColor3 = color
  363. txtlb2.TextSize = 40
  364. txtlb2.Size = UDim2.new(1,0,0.25,0)
  365. txtlb2.TextXAlignment = "Left"
  366. txtlb2.Position = UDim2.new(0,0,1,0)
  367. local fvalen = 0.55
  368. local fval = -0.49
  369. coroutine.resume(coroutine.create(function()
  370. while true do
  371. swait()
  372. if chaosmode == true then
  373. txtlb.Rotation = math.random(-1,1)
  374. txtlb2.Rotation = math.random(-1,1)
  375. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  376. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  377. txtlb.TextStrokeColor3 = BrickColor.random().Color
  378. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  379. end
  380. end
  381. end))
  382. coroutine.resume(coroutine.create(function()
  383. while true do
  384. swait()
  385. if scrg.Parent ~= nil then
  386. fvalen = fvalen - 0.0001
  387. elseif scrg.Parent == nil then
  388. break
  389. end
  390. end
  391. end))
  392. local flol = 1.75
  393. local flil = 1.6
  394. coroutine.resume(coroutine.create(function()
  395. for i = 0, 9 do
  396. swait()
  397. fval = fval + 0.05
  398. flol = flol - 0.1
  399. flil = flil - 0.1
  400. txtlb.Text = ""
  401. txtlb.Position = UDim2.new(0,0,flol,0)
  402. txtlb2.Position = UDim2.new(0,0,flil,0)
  403. end
  404. txtlb.Text = text
  405. wait(watval)
  406. local valinc = 0
  407. for i = 0, 99 do
  408. swait()
  409. valinc = valinc + 0.0001
  410. flol = flol + valinc
  411. flil = flil + valinc
  412. txtlb.Rotation = txtlb.Rotation + valinc*20
  413. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  414. txtlb.Position = UDim2.new(0,0,flol,0)
  415. txtlb2.Position = UDim2.new(0,0,flil,0)
  416. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  417. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  418. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  419. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  420. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  421. end
  422. scrg:Destroy()
  423. end))
  424. end))
  425. end
  426. end
  427.  
  428.  
  429. local Create = LoadLibrary("RbxUtility").Create
  430.  
  431. CFuncs = {
  432. ["Part"] = {
  433. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  434. local Part = Create("Part"){
  435. Parent = Parent,
  436. Reflectance = Reflectance,
  437. Transparency = Transparency,
  438. CanCollide = false,
  439. Locked = true,
  440. BrickColor = BrickColor.new(tostring(BColor)),
  441. Name = Name,
  442. Size = Size,
  443. Material = Material,
  444. }
  445. RemoveOutlines(Part)
  446. return Part
  447. end;
  448. };
  449.  
  450. ["Mesh"] = {
  451. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  452. local Msh = Create(Mesh){
  453. Parent = Part,
  454. Offset = OffSet,
  455. Scale = Scale,
  456. }
  457. if Mesh == "SpecialMesh" then
  458. Msh.MeshType = MeshType
  459. Msh.MeshId = MeshId
  460. end
  461. return Msh
  462. end;
  463. };
  464.  
  465. ["Mesh"] = {
  466. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  467. local Msh = Create(Mesh){
  468. Parent = Part,
  469. Offset = OffSet,
  470. Scale = Scale,
  471. }
  472. if Mesh == "SpecialMesh" then
  473. Msh.MeshType = MeshType
  474. Msh.MeshId = MeshId
  475. end
  476. return Msh
  477. end;
  478. };
  479.  
  480. ["Weld"] = {
  481. Create = function(Parent, Part0, Part1, C0, C1)
  482. local Weld = Create("Weld"){
  483. Parent = Parent,
  484. Part0 = Part0,
  485. Part1 = Part1,
  486. C0 = C0,
  487. C1 = C1,
  488. }
  489. return Weld
  490. end;
  491. };
  492.  
  493. ["Sound"] = {
  494. Create = function(id, par, vol, pit)
  495. coroutine.resume(coroutine.create(function()
  496. local S = Create("Sound"){
  497. Volume = vol,
  498. Name = "EffectSoundo",
  499. Pitch = pit or 1,
  500. SoundId = id,
  501. Parent = par or workspace,
  502. }
  503. wait()
  504. S:play()
  505. game:GetService("Debris"):AddItem(S, 10)
  506. end))
  507. end;
  508. };
  509.  
  510. ["TimeSound"] = {
  511. Create = function(id, par, vol, pit, timepos)
  512. coroutine.resume(coroutine.create(function()
  513. local S = Create("Sound"){
  514. Volume = vol,
  515. Name = "EffectSoundo",
  516. Pitch = pit or 1,
  517. SoundId = id,
  518. TimePosition = timepos,
  519. Parent = par or workspace,
  520. }
  521. wait()
  522. S:play()
  523. game:GetService("Debris"):AddItem(S, 10)
  524. end))
  525. end;
  526. };
  527. ["EchoSound"] = {
  528. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  529. coroutine.resume(coroutine.create(function()
  530. local Sas = Create("Sound"){
  531. Volume = vol,
  532. Name = "EffectSoundo",
  533. Pitch = pit or 1,
  534. SoundId = id,
  535. TimePosition = timepos,
  536. Parent = par or workspace,
  537. }
  538. local E = Create("EchoSoundEffect"){
  539. Delay = echodelay,
  540. Name = "Echo",
  541. Feedback = fedb,
  542. DryLevel = dryl,
  543. Parent = Sas,
  544. }
  545. wait()
  546. Sas:play()
  547. game:GetService("Debris"):AddItem(Sas, delays)
  548. end))
  549. end;
  550. };
  551.  
  552. ["LongSound"] = {
  553. Create = function(id, par, vol, pit)
  554. coroutine.resume(coroutine.create(function()
  555. local S = Create("Sound"){
  556. Volume = vol,
  557. Pitch = pit or 1,
  558. SoundId = id,
  559. Parent = par or workspace,
  560. }
  561. wait()
  562. S:play()
  563. game:GetService("Debris"):AddItem(S, 60)
  564. end))
  565. end;
  566. };
  567.  
  568. ["ParticleEmitter"] = {
  569. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  570. local fp = Create("ParticleEmitter"){
  571. Parent = Parent,
  572. Color = ColorSequence.new(Color1, Color2),
  573. LightEmission = LightEmission,
  574. Size = Size,
  575. Texture = Texture,
  576. Transparency = Transparency,
  577. ZOffset = ZOffset,
  578. Acceleration = Accel,
  579. Drag = Drag,
  580. LockedToPart = LockedToPart,
  581. VelocityInheritance = VelocityInheritance,
  582. EmissionDirection = EmissionDirection,
  583. Enabled = Enabled,
  584. Lifetime = LifeTime,
  585. Rate = Rate,
  586. Rotation = Rotation,
  587. RotSpeed = RotSpeed,
  588. Speed = Speed,
  589. VelocitySpread = VelocitySpread,
  590. }
  591. return fp
  592. end;
  593. };
  594.  
  595. CreateTemplate = {
  596.  
  597. };
  598. }
  599.  
  600.  
  601.  
  602. New = function(Object, Parent, Name, Data)
  603. local Object = Instance.new(Object)
  604. for Index, Value in pairs(Data or {}) do
  605. Object[Index] = Value
  606. end
  607. Object.Parent = Parent
  608. Object.Name = Name
  609. return Object
  610. end
  611. local halocolor = BrickColor.new("Pastel light blue")
  612. local halocolor2 = BrickColor.new("Cool yellow")
  613. local starcolor = BrickColor.new("Bright yellow")
  614. local lunacolor = BrickColor.new("Navy blue")
  615. local lunacolor2 = BrickColor.new("Bright blue")
  616. local wepcolor = BrickColor.new("Really black")
  617. local maincolor = BrickColor.new("Really black")
  618. local m = Instance.new("Model",char)
  619. local m2 = Instance.new("Model",char)
  620. local m3 = Instance.new("Model",char)
  621. local mw1 = Instance.new("Model",char)
  622. local mw2 = Instance.new("Model",char)
  623.  
  624.  
  625. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  626. local gui = it(GuiType)
  627. gui.Parent = parent
  628. gui.Text = text
  629. gui.BackgroundTransparency = backtrans
  630. gui.BackgroundColor3 = backcol
  631. gui.SizeConstraint = "RelativeXY"
  632. gui.TextXAlignment = "Center"
  633. gui.TextYAlignment = "Center"
  634. gui.Position = pos
  635. gui.Size = size
  636. gui.Font = "SourceSans"
  637. gui.FontSize = "Size14"
  638. gui.TextWrapped = false
  639. gui.TextStrokeTransparency = 0
  640. gui.TextColor = BrickColor.new("White")
  641. return gui
  642. end
  643. --------------------------- GUI STUFF
  644. local basgui = it("GuiMain")
  645. basgui.Parent = plr.PlayerGui
  646. basgui.Name = "VISgui"
  647. local fullscreenz = it("Frame")
  648. fullscreenz.Parent = basgui
  649. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  650. fullscreenz.BackgroundTransparency = 1
  651. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  652. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  653. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  654. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  655. imgl2.BackgroundTransparency = 1
  656. imgl2.BorderSizePixel = 0
  657. imgl2.ImageTransparency = 0.5
  658. imgl2.ImageColor3 = Color3.new(1,0,0)
  659. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  660. imgl2.Size = UDim2.new(0,1000,0,1000)
  661. imgl2.Image = "rbxassetid://2325939897"
  662. local techc = imgl2:Clone()
  663. techc.Parent = fullscreenz
  664. techc.ImageTransparency = 0
  665. techc.Size = UDim2.new(0,900,0,900)
  666. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  667. techc.ImageColor3 = Color3.new(1,0,0)
  668. techc.Image = "rbxassetid://2273224484"
  669. local circl = imgl2:Clone()
  670. circl.Parent = fullscreenz
  671. circl.ImageTransparency = 0
  672. circl.Size = UDim2.new(0,550,0,550)
  673. circl.Position = UDim2.new(0.75,25,0.55,25)
  674. circl.ImageColor3 = Color3.new(0,0,0)
  675. circl.Image = "rbxassetid://2312119891"
  676. local circl2 = imgl2:Clone()
  677. circl2.Parent = fullscreenz
  678. circl2.ImageTransparency = 0
  679. circl2.Size = UDim2.new(0,700,0,700)
  680. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  681. circl2.ImageColor3 = Color3.new(1,0,0)
  682. circl2.Image = "rbxassetid://2312119891"
  683. local imgl2b = imgl2:Clone()
  684. imgl2b.Parent = fullscreenz
  685. imgl2b.ImageTransparency = 0
  686. imgl2b.Size = UDim2.new(0,800,0,800)
  687. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  688. imgl2b.ImageColor3 = Color3.new(0,0,0)
  689. local ned = Instance.new("TextLabel",fullscreenz)
  690. ned.ZIndex = 2
  691. ned.Font = "Arcade"
  692. ned.BackgroundTransparency = 1
  693. ned.BorderSizePixel = 0.65
  694. ned.Size = UDim2.new(0.3,0,0.2,0)
  695. ned.Position = UDim2.new(0.7,0,0.8,0)
  696. ned.TextColor3 = BrickColor.new("Really red").Color
  697. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  698. ned.TextScaled = true
  699. ned.TextStrokeTransparency = 0
  700. ned.Text = "MAYHEM"
  701. ned.TextSize = 24
  702. ned.Rotation = 1
  703. ned.TextXAlignment = "Right"
  704. ned.TextYAlignment = "Bottom"
  705.  
  706. local extrawingmod1 = Instance.new("Model",char)
  707. local extrawingmod2 = Instance.new("Model",char)
  708.  
  709. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  710. local p = Instance.new("Part")
  711. p.TopSurface = 0
  712. p.BottomSurface = 0
  713. p.Parent = parent
  714. p.Size = Vector3.new(0.1,0.1,0.1)
  715. p.Transparency = transparency
  716. p.Reflectance = reflectance
  717. p.CanCollide = false
  718. p.Locked = true
  719. p.BrickColor = brickcolor
  720. p.Material = material
  721. return p
  722. end
  723.  
  724. function CreateMesh(parent,meshtype,x1,y1,z1)
  725. local mesh = Instance.new("SpecialMesh",parent)
  726. mesh.MeshType = meshtype
  727. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  728. return mesh
  729. end
  730.  
  731. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  732. local mesh = Instance.new("SpecialMesh",parent)
  733. mesh.MeshType = "FileMesh"
  734. mesh.MeshId = meshid
  735. mesh.Scale = Vector3.new(x1,y1,z1)
  736. return mesh
  737. end
  738.  
  739.  
  740. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  741. local mesh = Instance.new("SpecialMesh",parent)
  742. mesh.MeshType = "FileMesh"
  743. mesh.MeshId = meshid
  744. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  745. mesh.Scale = Vector3.new(x1,y1,z1)
  746. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  747. return mesh
  748. end
  749.  
  750. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  751. local weld = Instance.new("Weld")
  752. weld.Parent = parent
  753. weld.Part0 = part0
  754. weld.Part1 = part1
  755. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  756. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  757. return weld
  758. end
  759.  
  760.  
  761. --------------
  762. --------------
  763. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  764. 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))
  765. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  766. 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))
  767.  
  768. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  769. CreateMesh(handle,"Brick",0,0,0)
  770. 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))
  771. local valuaring = 10
  772. for i = 0, 49 do
  773. valuaring = valuaring + 10
  774. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  775. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  776. 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))
  777. end
  778.  
  779. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  780. CreateMesh(handle,"Brick",0,0,0)
  781. 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))
  782. local valuaring = 10
  783. for i = 0, 49 do
  784. valuaring = valuaring + 10
  785. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  786. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  787. 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))
  788. end
  789.  
  790.  
  791. local handle = CreateParta(m,1,1,"Neon",maincolor)
  792. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  793. 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))
  794.  
  795. --- Left wing.
  796.  
  797. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  798. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  799. 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))
  800.  
  801. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  802. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  803. 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))
  804. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  805. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  806. 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))
  807. A0 = Instance.new('Attachment',wed)
  808. A0.Position = vt(0,0.25,0.25)
  809. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  810. CreateMesh(wed,"Wedge",0.05,0.5,3)
  811. 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))
  812. A1 = Instance.new('Attachment',wed)
  813. A1.Position = vt(0,-0.25,-2)
  814. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  815. CreateMesh(wed,"Wedge",0.05,3,0.5)
  816. 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))
  817.  
  818. tl1 = Instance.new('Trail',wed)
  819. tl1.Attachment0 = A1
  820. tl1.Attachment1 = A0
  821. tl1.Texture = "rbxassetid://2108945559"
  822. tl1.LightEmission = 1
  823. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  824. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  825. tl1.Lifetime = 0.6
  826.  
  827.  
  828. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  829. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  830. 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))
  831.  
  832. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  833. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  834. 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))
  835. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  837. 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))
  838. A0 = Instance.new('Attachment',wed)
  839. A0.Position = vt(0,0.25,0.25)
  840. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,0.5,3)
  842. 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))
  843. A1 = Instance.new('Attachment',wed)
  844. A1.Position = vt(0,-0.25,-2)
  845. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  846. CreateMesh(wed,"Wedge",0.05,3,0.5)
  847. 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))
  848.  
  849. tl2 = Instance.new('Trail',wed)
  850. tl2.Attachment0 = A1
  851. tl2.Attachment1 = A0
  852. tl2.Texture = "rbxassetid://2108945559"
  853. tl2.LightEmission = 1
  854. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  855. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  856. tl2.Lifetime = 0.6
  857.  
  858. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  859. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  860. 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))
  861.  
  862. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  863. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  864. 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))
  865. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  867. 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))
  868. A0 = Instance.new('Attachment',wed)
  869. A0.Position = vt(0,0.25,0.25)
  870. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,0.5,3)
  872. 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))
  873. A1 = Instance.new('Attachment',wed)
  874. A1.Position = vt(0,-0.25,-2)
  875. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  876. CreateMesh(wed,"Wedge",0.05,3,0.5)
  877. 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))
  878.  
  879. tl3 = Instance.new('Trail',wed)
  880. tl3.Attachment0 = A1
  881. tl3.Attachment1 = A0
  882. tl3.Texture = "rbxassetid://2108945559"
  883. tl3.LightEmission = 1
  884. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  885. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  886. tl3.Lifetime = 0.6
  887.  
  888. tl1.Enabled = false
  889. tl2.Enabled = false
  890. tl3.Enabled = false
  891. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  892. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  893. 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))
  894.  
  895. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  897. 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))
  898. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  899. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  900. 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))
  901. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  902. CreateMesh(wed,"Wedge",0.05,0.5,3)
  903. 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))
  904. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  905. CreateMesh(wed,"Wedge",0.05,3,0.5)
  906. 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))
  907.  
  908. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  909. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  910. 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))
  911.  
  912. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  914. 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))
  915. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  917. 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))
  918. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,0.5,3)
  920. 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))
  921. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,3,0.5)
  923. 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))
  924.  
  925. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  926. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  927. 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))
  928.  
  929. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  931. 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))
  932. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  934. 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))
  935. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,0.5,3)
  937. 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))
  938. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  939. CreateMesh(wed,"Wedge",0.05,3,0.5)
  940. 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))
  941.  
  942. -- Right wing.
  943.  
  944. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  945. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  946. 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))
  947.  
  948. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  950. 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))
  951. A0 = Instance.new('Attachment',wed)
  952. A0.Position = vt(0,0.25,0.25)
  953. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. 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))
  956. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,3)
  958. 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))
  959. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,3,0.5)
  961. 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))
  962. A1 = Instance.new('Attachment',wed)
  963. A1.Position = vt(0,2,0.25)
  964.  
  965. tr1 = Instance.new('Trail',wed)
  966. tr1.Attachment0 = A1
  967. tr1.Attachment1 = A0
  968. tr1.Texture = "rbxassetid://2108945559"
  969. tr1.LightEmission = 1
  970. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  971. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  972. tr1.Lifetime = 0.6
  973.  
  974. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  975. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  976. 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))
  977.  
  978. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  980. 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))
  981. A0 = Instance.new('Attachment',wed)
  982. A0.Position = vt(0,0.25,0.25)
  983. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  985. 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))
  986. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,3)
  988. 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))
  989. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,3,0.5)
  991. 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))
  992. A1 = Instance.new('Attachment',wed)
  993. A1.Position = vt(0,2,0.25)
  994.  
  995. tr2 = Instance.new('Trail',wed)
  996. tr2.Attachment0 = A1
  997. tr2.Attachment1 = A0
  998. tr2.Texture = "rbxassetid://2108945559"
  999. tr2.LightEmission = 1
  1000. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1001. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1002. tr2.Lifetime = 0.6
  1003.  
  1004. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1005. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1006. 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))
  1007.  
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1010. 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))
  1011. A0 = Instance.new('Attachment',wed)
  1012. A0.Position = vt(0,0.25,0.25)
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1015. 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))
  1016. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1018. 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))
  1019. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1021. 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))
  1022. A1 = Instance.new('Attachment',wed)
  1023. A1.Position = vt(0,2,0.25)
  1024.  
  1025. tr3 = Instance.new('Trail',wed)
  1026. tr3.Attachment0 = A1
  1027. tr3.Attachment1 = A0
  1028. tr3.Texture = "rbxassetid://2108945559"
  1029. tr3.LightEmission = 1
  1030. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1031. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1032. tr3.Lifetime = 0.6
  1033.  
  1034.  
  1035. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1036. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1037. 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))
  1038.  
  1039. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1041. 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))
  1042. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1044. 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))
  1045. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1046. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1047. 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))
  1048. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1049. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1050. 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))
  1051.  
  1052. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1053. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1054. 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))
  1055.  
  1056. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1057. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1058. 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))
  1059. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1060. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1061. 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))
  1062. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1063. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1064. 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))
  1065. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1067. 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))
  1068.  
  1069. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1070. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1071. 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))
  1072.  
  1073. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1075. 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))
  1076. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1078. 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))
  1079. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1080. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1081. 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))
  1082. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1083. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1084. 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))
  1085.  
  1086. --HERES THE RING
  1087.  
  1088.  
  1089. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1090. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1091. 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))
  1092. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1093. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1094. 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))
  1095. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1096. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1097. 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))
  1098.  
  1099.  
  1100. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1101. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1102. 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))
  1103.  
  1104. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1105. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1106. 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))
  1107.  
  1108.  
  1109.  
  1110. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1111. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1112. 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))
  1113.  
  1114. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1115. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1116. 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))
  1117.  
  1118. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1119. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1120. 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))
  1121.  
  1122. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1123. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1124. 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))
  1125. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1126. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1127. 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))]]--
  1128.  
  1129. --- second ring
  1130.  
  1131.  
  1132. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1133. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1134. 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))
  1135.  
  1136. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1137. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1138. 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))
  1139.  
  1140.  
  1141.  
  1142. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1143. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1144. 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))
  1145.  
  1146. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1147. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1148. 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))
  1149.  
  1150. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1151. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1152. 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))
  1153.  
  1154. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1155. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1156. 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))
  1157. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1158. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1159. 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))
  1160.  
  1161.  
  1162.  
  1163. for i, v in pairs(m:GetChildren()) do
  1164. if v:IsA("Part") then
  1165. v.BrickColor = BrickColor.new("Really black")
  1166. v.Material = "Glass"
  1167. end
  1168. end
  1169. for i, v in pairs(m2:GetChildren()) do
  1170. if v:IsA("Part") then
  1171. v.BrickColor = BrickColor.new("Crimson")
  1172. v.Material = "Granite"
  1173. end
  1174. end
  1175. for i, v in pairs(m3:GetChildren()) do
  1176. if v:IsA("Part") then
  1177. v.BrickColor = BrickColor.new("Really red")
  1178. v.Material = "Neon"
  1179. end
  1180. end
  1181. for i, v in pairs(mw2:GetChildren()) do
  1182. if v:IsA("Part") then
  1183. v.BrickColor = BrickColor.new("Really red")
  1184. v.Material = "Neon"
  1185. end
  1186. end
  1187. for i, v in pairs(mw1:GetChildren()) do
  1188. if v:IsA("Part") then
  1189. v.Transparency = 1
  1190. v.BrickColor = BrickColor.new("Really red")
  1191. v.Material = "Neon"
  1192. end
  1193. end
  1194. for i, v in pairs(extrawingmod1:GetChildren()) do
  1195. if v:IsA("Part") then
  1196. v.Transparency = 1
  1197. v.BrickColor = BrickColor.new("White")
  1198. v.Material = "Neon"
  1199. end
  1200. end
  1201. for i, v in pairs(extrawingmod2:GetChildren()) do
  1202. if v:IsA("Part") then
  1203. v.Transparency = 1
  1204. v.BrickColor = BrickColor.new("White")
  1205. v.Material = "Neon"
  1206. end
  1207. end
  1208. local MAINRUINCOLOR = BrickColor.new("Really red")
  1209. ------
  1210.  
  1211.  
  1212. function RemoveOutlines(part)
  1213. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1214. end
  1215. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1216. local Part = Create("Part")({
  1217. Parent = Parent,
  1218. Reflectance = Reflectance,
  1219. Transparency = Transparency,
  1220. CanCollide = false,
  1221. Locked = true,
  1222. BrickColor = BrickColor.new(tostring(BColor)),
  1223. Name = Name,
  1224. Size = Size,
  1225. Material = Material
  1226. })
  1227. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1228. RemoveOutlines(Part)
  1229. return Part
  1230. end
  1231. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1232. local Msh = Create(Mesh)({
  1233. Parent = Part,
  1234. Offset = OffSet,
  1235. Scale = Scale
  1236. })
  1237. if Mesh == "SpecialMesh" then
  1238. Msh.MeshType = MeshType
  1239. Msh.MeshId = MeshId
  1240. end
  1241. return Msh
  1242. end
  1243. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1244. local Weld = Create("Weld")({
  1245. Parent = Parent,
  1246. Part0 = Part0,
  1247. Part1 = Part1,
  1248. C0 = C0,
  1249. C1 = C1
  1250. })
  1251. return Weld
  1252. end
  1253.  
  1254. Player = plr
  1255. Character=Player.Character
  1256. PlayerGui=Player.PlayerGui
  1257. Backpack=Player.Backpack
  1258. Torso=Character.Torso
  1259. Head=Character.Head
  1260. Humanoid=Character.Humanoid
  1261. m=Instance.new('Model',Character)
  1262. LeftArm=Character["Left Arm"]
  1263. LeftLeg=Character["Left Leg"]
  1264. RightArm=Character["Right Arm"]
  1265. RightLeg=Character["Right Leg"]
  1266. LS=Torso["Left Shoulder"]
  1267. LH=Torso["Left Hip"]
  1268. RS=Torso["Right Shoulder"]
  1269. RH=Torso["Right Hip"]
  1270. Face = Head.face
  1271. Neck=Torso.Neck
  1272. it=Instance.new
  1273. attacktype=1
  1274. vt=Vector3.new
  1275. cf=CFrame.new
  1276. euler=CFrame.fromEulerAnglesXYZ
  1277. angles=CFrame.Angles
  1278. cloaked=false
  1279. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1280. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1281. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1282. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1283. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1284. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1285. RootPart=Character.HumanoidRootPart
  1286. RootJoint=RootPart.RootJoint
  1287. RootCF=euler(-1.57,0,3.14)
  1288. attack = false
  1289. attackdebounce = false
  1290. deb=false
  1291. equipped=true
  1292. hand=false
  1293. combo=0
  1294. mana=0
  1295. trispeed=.2
  1296. attackmode='none'
  1297. local idle=0
  1298. local Anim="Idle"
  1299. local Effects={}
  1300. local gun=false
  1301. local shoot=false
  1302. local sine = 0
  1303. local change = 1
  1304.  
  1305. function RecolorTextAndRename(name,col1,col2,font)
  1306. modet.TextStrokeColor3 = col2
  1307. modet.TextColor3 = col1
  1308. modet.Font = font
  1309. modet.Text = name
  1310. techc.ImageColor3 = col2
  1311. circl.ImageColor3 = col2
  1312. circl2.ImageColor3 = col1
  1313. imgl2.ImageColor3 = col1
  1314. imgl2b.ImageColor3 = col2
  1315. ned.Text = name
  1316. ned.TextColor3 = col1
  1317. ned.TextStrokeColor3 = col2
  1318. end
  1319. --save shoulders
  1320. RSH, LSH=nil, nil
  1321. --welds
  1322. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1323. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1324. LH=Torso["Left Hip"]
  1325. RH=Torso["Right Hip"]
  1326. TorsoColor=Torso.BrickColor
  1327. function NoOutline(Part)
  1328. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1329. end
  1330. ch=Character
  1331. RSH=ch.Torso["Right Shoulder"]
  1332. LSH=ch.Torso["Left Shoulder"]
  1333. --
  1334. RSH.Parent=nil
  1335. LSH.Parent=nil
  1336. --
  1337. RW.Name="Right Shoulder"
  1338. RW.Part0=ch.Torso
  1339. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1340. RW.C1=cf(0, 0.5, 0)
  1341. RW.Part1=ch["Right Arm"]
  1342. RW.Parent=ch.Torso
  1343. --
  1344. LW.Name="Left Shoulder"
  1345. LW.Part0=ch.Torso
  1346. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1347. LW.C1=cf(0, 0.5, 0)
  1348. LW.Part1=ch["Left Arm"]
  1349. LW.Parent=ch.Torso
  1350.  
  1351. local Stats=Instance.new("BoolValue")
  1352. Stats.Name="Stats"
  1353. Stats.Parent=Character
  1354. local Atk=Instance.new("NumberValue")
  1355. Atk.Name="Damage"
  1356. Atk.Parent=Stats
  1357. Atk.Value=1
  1358. local Def=Instance.new("NumberValue")
  1359. Def.Name="Defense"
  1360. Def.Parent=Stats
  1361. Def.Value=1
  1362. local Speed=Instance.new("NumberValue")
  1363. Speed.Name="Speed"
  1364. Speed.Parent=Stats
  1365. Speed.Value=1
  1366. local Mvmt=Instance.new("NumberValue")
  1367. Mvmt.Name="Movement"
  1368. Mvmt.Parent=Stats
  1369. Mvmt.Value=1
  1370.  
  1371. local donum=0
  1372. local ast = {744586075,385254610}
  1373.  
  1374. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1375. local fp=it("Part")
  1376. fp.formFactor=formfactor
  1377. fp.Parent=parent
  1378. fp.Reflectance=reflectance
  1379. fp.Transparency=transparency
  1380. fp.CanCollide=false
  1381. fp.Locked=true
  1382. fp.BrickColor=brickcolor
  1383. fp.Name=name
  1384. fp.Size=size
  1385. fp.Position=Torso.Position
  1386. NoOutline(fp)
  1387. fp.Material="SmoothPlastic"
  1388. fp:BreakJoints()
  1389. return fp
  1390. end
  1391.  
  1392. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1393. local mesh=it(Mesh)
  1394. mesh.Parent=part
  1395. if Mesh=="SpecialMesh" then
  1396. mesh.MeshType=meshtype
  1397. if meshid~="nil" then
  1398. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1399. end
  1400. end
  1401. mesh.Offset=offset
  1402. mesh.Scale=scale
  1403. return mesh
  1404. end
  1405.  
  1406. function weld(parent,part0,part1,c0)
  1407. local weld=it("Weld")
  1408. weld.Parent=parent
  1409. weld.Part0=part0
  1410. weld.Part1=part1
  1411. weld.C0=c0
  1412. return weld
  1413. end
  1414.  
  1415. local Color1=Torso.BrickColor
  1416.  
  1417. local bodvel=Instance.new("BodyVelocity")
  1418. local bg=Instance.new("BodyGyro")
  1419.  
  1420. --------- SazEreno's Artificial HB --------------
  1421. ArtificialHB = Instance.new("BindableEvent", script)
  1422. ArtificialHB.Name = "ArtificialHB"
  1423.  
  1424. script:WaitForChild("ArtificialHB")
  1425. Frame_Speed = 1 / 60
  1426. frame = Frame_Speed
  1427. tf = 0
  1428. allowframeloss = false
  1429. tossremainder = false
  1430. lastframe = tick()
  1431. script.ArtificialHB:Fire()
  1432.  
  1433. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1434. tf = tf + s
  1435. if tf >= frame then
  1436. if allowframeloss then
  1437. script.ArtificialHB:Fire()
  1438. lastframe = tick()
  1439. else
  1440. for i = 1, math.floor(tf / frame) do
  1441. script.ArtificialHB:Fire()
  1442. end
  1443. lastframe = tick()
  1444. end
  1445. if tossremainder then
  1446. tf = 0
  1447. else
  1448. tf = tf - frame * math.floor(tf / frame)
  1449. end
  1450. end
  1451. end)
  1452.  
  1453. ------------------
  1454. function swait(num)
  1455. if num == 0 or num == nil then
  1456. ArtificialHB.Event:wait()
  1457. else
  1458. for i = 1, num do
  1459. ArtificialHB.Event:wait()
  1460. end
  1461. end
  1462. end
  1463. -------- RAINBOW LEAVE IT TO ME
  1464. local r = 255
  1465. local g = 0
  1466. local b = 0
  1467. coroutine.resume(coroutine.create(function()
  1468. while wait() do
  1469. for i = 0, 254/5 do
  1470. swait()
  1471. g = g + 5
  1472. end
  1473. for i = 0, 254/5 do
  1474. swait()
  1475. r = r - 5
  1476. end
  1477. for i = 0, 254/5 do
  1478. swait()
  1479. b = b + 5
  1480. end
  1481. for i = 0, 254/5 do
  1482. swait()
  1483. g = g - 5
  1484. end
  1485. for i = 0, 254/5 do
  1486. swait()
  1487. r = r + 5
  1488. end
  1489. for i = 0, 254/5 do
  1490. swait()
  1491. b = b - 5
  1492. end
  1493. end
  1494. end))
  1495.  
  1496.  
  1497. so = function(id,par,vol,pit)
  1498. coroutine.resume(coroutine.create(function()
  1499. local sou = Instance.new("Sound",par or workspace)
  1500. sou.Volume=vol
  1501. sou.Pitch=pit or 1
  1502. sou.SoundId=id
  1503. swait()
  1504. sou:play()
  1505. game:GetService("Debris"):AddItem(sou,6)
  1506. end))
  1507. end
  1508.  
  1509. function clerp(a,b,t)
  1510. local qa = {QuaternionFromCFrame(a)}
  1511. local qb = {QuaternionFromCFrame(b)}
  1512. local ax, ay, az = a.x, a.y, a.z
  1513. local bx, by, bz = b.x, b.y, b.z
  1514. local _t = 1-t
  1515. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1516. end
  1517.  
  1518. function QuaternionFromCFrame(cf)
  1519. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1520. local trace = m00 + m11 + m22
  1521. if trace > 0 then
  1522. local s = math.sqrt(1 + trace)
  1523. local recip = 0.5/s
  1524. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1525. else
  1526. local i = 0
  1527. if m11 > m00 then
  1528. i = 1
  1529. end
  1530. if m22 > (i == 0 and m00 or m11) then
  1531. i = 2
  1532. end
  1533. if i == 0 then
  1534. local s = math.sqrt(m00-m11-m22+1)
  1535. local recip = 0.5/s
  1536. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1537. elseif i == 1 then
  1538. local s = math.sqrt(m11-m22-m00+1)
  1539. local recip = 0.5/s
  1540. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1541. elseif i == 2 then
  1542. local s = math.sqrt(m22-m00-m11+1)
  1543. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1544. end
  1545. end
  1546. end
  1547.  
  1548. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1549. local xs, ys, zs = x + x, y + y, z + z
  1550. local wx, wy, wz = w*xs, w*ys, w*zs
  1551. local xx = x*xs
  1552. local xy = x*ys
  1553. local xz = x*zs
  1554. local yy = y*ys
  1555. local yz = y*zs
  1556. local zz = z*zs
  1557. 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))
  1558. end
  1559.  
  1560. function QuaternionSlerp(a, b, t)
  1561. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1562. local startInterp, finishInterp;
  1563. if cosTheta >= 0.0001 then
  1564. if (1 - cosTheta) > 0.0001 then
  1565. local theta = math.acos(cosTheta)
  1566. local invSinTheta = 1/math.sin(theta)
  1567. startInterp = math.sin((1-t)*theta)*invSinTheta
  1568. finishInterp = math.sin(t*theta)*invSinTheta
  1569. else
  1570. startInterp = 1-t
  1571. finishInterp = t
  1572. end
  1573. else
  1574. if (1+cosTheta) > 0.0001 then
  1575. local theta = math.acos(-cosTheta)
  1576. local invSinTheta = 1/math.sin(theta)
  1577. startInterp = math.sin((t-1)*theta)*invSinTheta
  1578. finishInterp = math.sin(t*theta)*invSinTheta
  1579. else
  1580. startInterp = t-1
  1581. finishInterp = t
  1582. end
  1583. end
  1584. 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
  1585. end
  1586.  
  1587. local function CFrameFromTopBack(at, top, back)
  1588. local right = top:Cross(back)
  1589. return CFrame.new(at.x, at.y, at.z,
  1590. right.x, top.x, back.x,
  1591. right.y, top.y, back.y,
  1592. right.z, top.z, back.z)
  1593. end
  1594.  
  1595. function Triangle(a, b, c)
  1596. local edg1 = (c-a):Dot((b-a).unit)
  1597. local edg2 = (a-b):Dot((c-b).unit)
  1598. local edg3 = (b-c):Dot((a-c).unit)
  1599. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1600. a, b, c = a, b, c
  1601. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1602. a, b, c = b, c, a
  1603. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1604. a, b, c = c, a, b
  1605. else
  1606. assert(false, "unreachable")
  1607. end
  1608.  
  1609. local len1 = (c-a):Dot((b-a).unit)
  1610. local len2 = (b-a).magnitude - len1
  1611. local width = (a + (b-a).unit*len1 - c).magnitude
  1612.  
  1613. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1614.  
  1615. local list = {}
  1616.  
  1617. if len1 > 0.01 then
  1618. local w1 = Instance.new('WedgePart', m)
  1619. game:GetService("Debris"):AddItem(w1,5)
  1620. w1.Material = "SmoothPlastic"
  1621. w1.FormFactor = 'Custom'
  1622. w1.BrickColor = BrickColor.new("Really red")
  1623. w1.Transparency = 0
  1624. w1.Reflectance = 0
  1625. w1.Material = "SmoothPlastic"
  1626. w1.CanCollide = false
  1627. local l1 = Instance.new("PointLight",w1)
  1628. l1.Color = Color3.new(170,0,0)
  1629. NoOutline(w1)
  1630. local sz = Vector3.new(0.2, width, len1)
  1631. w1.Size = sz
  1632. local sp = Instance.new("SpecialMesh",w1)
  1633. sp.MeshType = "Wedge"
  1634. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1635. w1:BreakJoints()
  1636. w1.Anchored = true
  1637. w1.Parent = workspace
  1638. w1.Transparency = 0.7
  1639. table.insert(Effects,{w1,"Disappear",.01})
  1640. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1641. table.insert(list,w1)
  1642. end
  1643.  
  1644. if len2 > 0.01 then
  1645. local w2 = Instance.new('WedgePart', m)
  1646. game:GetService("Debris"):AddItem(w2,5)
  1647. w2.Material = "SmoothPlastic"
  1648. w2.FormFactor = 'Custom'
  1649. w2.BrickColor = BrickColor.new("Really red")
  1650. w2.Transparency = 0
  1651. w2.Reflectance = 0
  1652. w2.Material = "SmoothPlastic"
  1653. w2.CanCollide = false
  1654. local l2 = Instance.new("PointLight",w2)
  1655. l2.Color = Color3.new(170,0,0)
  1656. NoOutline(w2)
  1657. local sz = Vector3.new(0.2, width, len2)
  1658. w2.Size = sz
  1659. local sp = Instance.new("SpecialMesh",w2)
  1660. sp.MeshType = "Wedge"
  1661. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1662. w2:BreakJoints()
  1663. w2.Anchored = true
  1664. w2.Parent = workspace
  1665. w2.Transparency = 0.7
  1666. table.insert(Effects,{w2,"Disappear",.01})
  1667. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1668. table.insert(list,w2)
  1669. end
  1670. return unpack(list)
  1671. end
  1672.  
  1673.  
  1674. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1675. if hit.Parent == nil then
  1676. return
  1677. end
  1678. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1679. for _, v in pairs(hit.Parent:children()) do
  1680. if v:IsA("Humanoid") then
  1681. h = v
  1682. end
  1683. end
  1684. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1685. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1686. return
  1687. end
  1688. local c = Create("ObjectValue")({
  1689. Name = "creator",
  1690. Value = game:GetService("Players").wwwargos,
  1691. Parent = h
  1692. })
  1693. game:GetService("Debris"):AddItem(c, 0.5)
  1694. if HitSound ~= nil and HitPitch ~= nil then
  1695. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1696. end
  1697. local Damage = math.random(minim, maxim)
  1698. local blocked = false
  1699. local block = hit.Parent:findFirstChild("Block")
  1700. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1701. blocked = true
  1702. block.Value = block.Value - 1
  1703. print(block.Value)
  1704. end
  1705. if blocked == false then
  1706. HitHealth = h.Health
  1707. h.MaxHealth = 100
  1708. h.Health = h.Health - Damage
  1709. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1710. print("gained kill")
  1711. dmg(h.Parent)
  1712. end
  1713. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1714. else
  1715. h.Health = h.Health - Damage / 2
  1716. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1717. end
  1718. if Type == "Knockdown" then
  1719. local hum = hit.Parent.Humanoid
  1720. hum.PlatformStand = true
  1721. coroutine.resume(coroutine.create(function(HHumanoid)
  1722. swait(1)
  1723. HHumanoid.PlatformStand = false
  1724. end), hum)
  1725. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1726. local bodvol = Create("BodyVelocity")({
  1727. velocity = angle * knockback,
  1728. P = 5000,
  1729. maxForce = Vector3.new(8000, 8000, 8000),
  1730. Parent = hit
  1731. })
  1732. local rl = Create("BodyAngularVelocity")({
  1733. P = 3000,
  1734. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1735. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1736. Parent = hit
  1737. })
  1738. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1739. game:GetService("Debris"):AddItem(rl, 0.5)
  1740. elseif Type == "Normal" then
  1741. local vp = Create("BodyVelocity")({
  1742. P = 500,
  1743. maxForce = Vector3.new(math.huge, 0, math.huge),
  1744. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1745. })
  1746. if knockback > 0 then
  1747. vp.Parent = hit.Parent.Head
  1748. end
  1749. game:GetService("Debris"):AddItem(vp, 0.5)
  1750. elseif Type == "Up" then
  1751. local bodyVelocity = Create("BodyVelocity")({
  1752. velocity = Vector3.new(0, 20, 0),
  1753. P = 5000,
  1754. maxForce = Vector3.new(8000, 8000, 8000),
  1755. Parent = hit
  1756. })
  1757. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1758. local bodyVelocity = Create("BodyVelocity")({
  1759. velocity = Vector3.new(0, 20, 0),
  1760. P = 5000,
  1761. maxForce = Vector3.new(8000, 8000, 8000),
  1762. Parent = hit
  1763. })
  1764. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1765. elseif Type == "Leech" then
  1766. local hum = hit.Parent.Humanoid
  1767. if hum ~= nil then
  1768. for i = 0, 2 do
  1769. 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)
  1770. end
  1771. Humanoid.Health = Humanoid.Health + 10
  1772. end
  1773. elseif Type == "UpKnock" then
  1774. local hum = hit.Parent.Humanoid
  1775. hum.PlatformStand = true
  1776. if hum ~= nil then
  1777. hitr = true
  1778. end
  1779. coroutine.resume(coroutine.create(function(HHumanoid)
  1780. swait(5)
  1781. HHumanoid.PlatformStand = false
  1782. hitr = false
  1783. end), hum)
  1784. local bodyVelocity = Create("BodyVelocity")({
  1785. velocity = Vector3.new(0, 20, 0),
  1786. P = 5000,
  1787. maxForce = Vector3.new(8000, 8000, 8000),
  1788. Parent = hit
  1789. })
  1790. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1791. local bodyVelocity = Create("BodyVelocity")({
  1792. velocity = Vector3.new(0, 20, 0),
  1793. P = 5000,
  1794. maxForce = Vector3.new(8000, 8000, 8000),
  1795. Parent = hit
  1796. })
  1797. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1798. elseif Type == "Snare" then
  1799. local bp = Create("BodyPosition")({
  1800. P = 2000,
  1801. D = 100,
  1802. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1803. position = hit.Parent.Torso.Position,
  1804. Parent = hit.Parent.Torso
  1805. })
  1806. game:GetService("Debris"):AddItem(bp, 1)
  1807. elseif Type == "Slashnare" then
  1808. 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)
  1809. for i = 1, math.random(4, 5) do
  1810. 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)
  1811. end
  1812. local bp = Create("BodyPosition")({
  1813. P = 2000,
  1814. D = 100,
  1815. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1816. position = hit.Parent.Torso.Position,
  1817. Parent = hit.Parent.Torso
  1818. })
  1819. game:GetService("Debris"):AddItem(bp, 1)
  1820. elseif Type == "Spike" then
  1821. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1822. local bp = Create("BodyPosition")({
  1823. P = 2000,
  1824. D = 100,
  1825. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1826. position = hit.Parent.Torso.Position,
  1827. Parent = hit.Parent.Torso
  1828. })
  1829. game:GetService("Debris"):AddItem(bp, 1)
  1830. elseif Type == "Freeze" then
  1831. local BodPos = Create("BodyPosition")({
  1832. P = 50000,
  1833. D = 1000,
  1834. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1835. position = hit.Parent.Torso.Position,
  1836. Parent = hit.Parent.Torso
  1837. })
  1838. local BodGy = Create("BodyGyro")({
  1839. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1840. P = 20000,
  1841. Parent = hit.Parent.Torso,
  1842. cframe = hit.Parent.Torso.CFrame
  1843. })
  1844. hit.Parent.Torso.Anchored = true
  1845. coroutine.resume(coroutine.create(function(Part)
  1846. swait(1.5)
  1847. Part.Anchored = false
  1848. end), hit.Parent.Torso)
  1849. game:GetService("Debris"):AddItem(BodPos, 3)
  1850. game:GetService("Debris"):AddItem(BodGy, 3)
  1851. end
  1852. local debounce = Create("BoolValue")({
  1853. Name = "DebounceHit",
  1854. Parent = hit.Parent,
  1855. Value = true
  1856. })
  1857. game:GetService("Debris"):AddItem(debounce, Delay)
  1858. c = Instance.new("ObjectValue")
  1859. c.Name = "creator"
  1860. c.Value = Player
  1861. c.Parent = h
  1862. game:GetService("Debris"):AddItem(c, 0.5)
  1863. end
  1864. end
  1865. function ShowDamage(Pos, Text, Time, Color)
  1866. local Rate = 0.03333333333333333
  1867. local Pos = Pos or Vector3.new(0, 0, 0)
  1868. local Text = Text or ""
  1869. local Time = Time or 2
  1870. local Color = Color or Color3.new(1, 0, 1)
  1871. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1872. EffectPart.Anchored = true
  1873. local BillboardGui = Create("BillboardGui")({
  1874. Size = UDim2.new(3, 0, 3, 0),
  1875. Adornee = EffectPart,
  1876. Parent = EffectPart
  1877. })
  1878. local TextLabel = Create("TextLabel")({
  1879. BackgroundTransparency = 1,
  1880. Size = UDim2.new(1, 0, 1, 0),
  1881. Text = Text,
  1882. TextColor3 = Color,
  1883. TextScaled = true,
  1884. Font = Enum.Font.ArialBold,
  1885. Parent = BillboardGui
  1886. })
  1887. game.Debris:AddItem(EffectPart, Time + 0.1)
  1888. EffectPart.Parent = game:GetService("Workspace")
  1889. delay(0, function()
  1890. local Frames = Time / Rate
  1891. for Frame = 1, Frames do
  1892. wait(Rate)
  1893. local Percent = Frame / Frames
  1894. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1895. TextLabel.TextTransparency = Percent
  1896. end
  1897. if EffectPart and EffectPart.Parent then
  1898. EffectPart:Destroy()
  1899. end
  1900. end)
  1901. end
  1902. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1903. for _, c in pairs(workspace:children()) do
  1904. local hum = c:findFirstChildOfClass("Humanoid")
  1905. if hum ~= nil then
  1906. local head = c:findFirstChild("Head")
  1907. if head ~= nil then
  1908. local targ = head.Position - Part.Position
  1909. local mag = targ.magnitude
  1910. if magni >= mag and c.Name ~= Player.Name then
  1911. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1912. end
  1913. end
  1914. end
  1915. end
  1916. end
  1917.  
  1918. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1919. for _, c in pairs(workspace:children()) do
  1920. local hum = c:findFirstChild("Humanoid")
  1921. if hum ~= nil then
  1922. local head = c:findFirstChild("Torso")
  1923. if head ~= nil then
  1924. local targ = head.Position - Part.Position
  1925. local mag = targ.magnitude
  1926. if magni >= mag and c.Name ~= Player.Name then
  1927. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1928. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1929. end
  1930. end
  1931. end
  1932. end
  1933. end
  1934.  
  1935. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1936. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1937. end
  1938.  
  1939. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1940. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1941. prt.Anchored=true
  1942. prt.CFrame=cframe
  1943. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1944. --http://www.roblox.com/asset/?id=4770560
  1945. game:GetService("Debris"):AddItem(prt,2)
  1946. CF=prt.CFrame
  1947. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1948. for i=0,1,0.2 do
  1949. wait()
  1950. Part.CFrame=CF*cf(0,0,-0.4)
  1951. end
  1952. for i=0,1,delay do
  1953. wait()
  1954. --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)
  1955. Mesh.Scale=Mesh.Scale
  1956. end
  1957. for i=0,1,0.1 do
  1958. wait()
  1959. Part.Transparency=i
  1960. end
  1961. Part.Parent=nil
  1962. end),prt,msh,CF)
  1963. end
  1964.  
  1965. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1966. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1967. prt.Anchored=true
  1968. prt.Material = "Neon"
  1969. prt.CFrame=cframe
  1970. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1971. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1972. game:GetService("Debris"):AddItem(prt,5)
  1973. coroutine.resume(coroutine.create(function(Part,Mesh)
  1974. for i=0,1,delay do
  1975. swait()
  1976. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1977. Part.Transparency=i
  1978. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1979. end
  1980. Part.Parent=nil
  1981. end),prt,msh)
  1982. end
  1983.  
  1984. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1985. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1986. prt.Anchored=true
  1987. prt.Material = "Neon"
  1988. prt.CFrame=cframe
  1989. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1990. game:GetService("Debris"):AddItem(prt,5)
  1991. coroutine.resume(coroutine.create(function(Part,Mesh)
  1992. local rtype = rottype
  1993. for i=0,1,delay do
  1994. swait()
  1995. if rtype == 1 then
  1996. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1997. elseif rtype == 2 then
  1998. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1999. end
  2000. Part.Transparency=i
  2001. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2002. end
  2003. Part.Parent=nil
  2004. end),prt,msh)
  2005. end
  2006.  
  2007. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2008. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2009. prt.Anchored=true
  2010. prt.CFrame=cframe
  2011. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2012. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2013. game:GetService("Debris"):AddItem(prt,5)
  2014. coroutine.resume(coroutine.create(function(Part,Mesh)
  2015. for i=0,1,delay do
  2016. wait()
  2017. Part.Transparency=i
  2018. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2019. end
  2020. Part.Parent=nil
  2021. end),prt,msh)
  2022. end
  2023.  
  2024. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2025. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2026. prt.Anchored=true
  2027. prt.Material = "Neon"
  2028. prt.CFrame=cframe
  2029. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. local rtype = rottype
  2033. for i=0,1,delay do
  2034. swait()
  2035. if rtype == 1 then
  2036. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2037. elseif rtype == 2 then
  2038. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2039. end
  2040. Part.Transparency=i
  2041. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2042. end
  2043. Part.Parent=nil
  2044. end),prt,msh)
  2045. end
  2046.  
  2047. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2048. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2049. prt.Anchored=true
  2050. prt.Material = "Neon"
  2051. prt.CFrame=cframe
  2052. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2053. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2054. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2055. game:GetService("Debris"):AddItem(prt,5)
  2056. coroutine.resume(coroutine.create(function(Part,Mesh)
  2057. local rtype = rottype
  2058. for i=0,1,delay do
  2059. swait()
  2060. if rtype == 1 then
  2061. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2062. elseif rtype == 2 then
  2063. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2064. end
  2065. dec.Transparency=i
  2066. dec2.Transparency=i
  2067. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2068. end
  2069. Part.Parent=nil
  2070. end),prt,msh)
  2071. end
  2072.  
  2073. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2074. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2075. prt.Anchored=true
  2076. prt.Material = "Neon"
  2077. prt.CFrame=cframe
  2078. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2079. game:GetService("Debris"):AddItem(prt,5)
  2080. coroutine.resume(coroutine.create(function(Part,Mesh)
  2081. local rtype = rottype
  2082. for i=0,1,delay do
  2083. swait()
  2084. if rtype == 1 then
  2085. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2086. elseif rtype == 2 then
  2087. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2088. end
  2089. prt.Transparency=i
  2090. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2091. end
  2092. Part.Parent=nil
  2093. end),prt,msh)
  2094. end
  2095.  
  2096. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2097. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2098. prt.Anchored=true
  2099. prt.Material = "Neon"
  2100. prt.CFrame=cframe
  2101. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2102. game:GetService("Debris"):AddItem(prt,5)
  2103. coroutine.resume(coroutine.create(function(Part,Mesh)
  2104. local rtype = rottype
  2105. for i=0,1,delay do
  2106. swait()
  2107. if rtype == 1 then
  2108. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2109. elseif rtype == 2 then
  2110. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2111. end
  2112. prt.Transparency=i
  2113. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2114. end
  2115. Part.Parent=nil
  2116. end),prt,msh)
  2117. end
  2118.  
  2119. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2120. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2121. prt.Anchored=true
  2122. prt.Material = "Neon"
  2123. prt.CFrame=cframe
  2124. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2125. game:GetService("Debris"):AddItem(prt,5)
  2126. coroutine.resume(coroutine.create(function(Part,Mesh)
  2127. local rtype = rottype
  2128. for i=0,1,delay do
  2129. swait()
  2130. if rtype == 1 then
  2131. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2132. elseif rtype == 2 then
  2133. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2134. end
  2135. prt.Transparency=i
  2136. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2137. end
  2138. Part.Parent=nil
  2139. end),prt,msh)
  2140. end
  2141.  
  2142. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2143. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2144. prt.Anchored=true
  2145. prt.Material = "Neon"
  2146. prt.CFrame=cframe
  2147. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2148. game:GetService("Debris"):AddItem(prt,5)
  2149. coroutine.resume(coroutine.create(function(Part,Mesh)
  2150. local rtype = rottype
  2151. for i=0,1,delay do
  2152. swait()
  2153. if rtype == 1 then
  2154. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2155. elseif rtype == 2 then
  2156. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2157. end
  2158. prt.Transparency=i
  2159. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2160. end
  2161. Part.Parent=nil
  2162. end),prt,msh)
  2163. end
  2164.  
  2165. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2166. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2167. prt.Anchored=false
  2168. prt.CFrame=cframe
  2169. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2170. local wld=weld(prt,prt,Parent,cframe)
  2171. game:GetService("Debris"):AddItem(prt,5)
  2172. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2173. for i=0,1,delay do
  2174. wait()
  2175. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2176. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2177. Part.Transparency=i
  2178. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2179. end
  2180. Part.Parent=nil
  2181. end),prt,msh,wld)
  2182. end
  2183.  
  2184. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2185. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2186. prt.Anchored=false
  2187. prt.CFrame=cframe
  2188. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2189. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2190. game:GetService("Debris"):AddItem(prt,5)
  2191. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2192. for i=0,1,delay do
  2193. wait()
  2194. Weld.C0=euler(i*20,0,0)
  2195. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2196. Part.Transparency=i
  2197. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2198. end
  2199. Part.Parent=nil
  2200. end),prt,msh,wld)
  2201. end
  2202.  
  2203. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2204. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2205. prt.Anchored=true
  2206. prt.CFrame=cframe
  2207. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2208. game:GetService("Debris"):AddItem(prt,2)
  2209. coroutine.resume(coroutine.create(function(Part,Mesh)
  2210. for i=0,1,delay do
  2211. wait()
  2212. Part.CFrame=Part.CFrame
  2213. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2214. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2215. prt2.Anchored=true
  2216. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2217. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2218. game:GetService("Debris"):AddItem(prt2,2)
  2219. coroutine.resume(coroutine.create(function(Part,Mesh)
  2220. for i=0,1,0.1 do
  2221. wait()
  2222. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2223. end
  2224. Part.Parent=nil
  2225. end),prt2,msh2)
  2226. end
  2227. for i=0,1,delay*2 do
  2228. wait()
  2229. Part.CFrame=Part.CFrame
  2230. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh)
  2234. end
  2235.  
  2236. function MagicCircle(brickcolor,cframe,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=true
  2239. prt.CFrame=cframe
  2240. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2241. game:GetService("Debris"):AddItem(prt,2)
  2242. coroutine.resume(coroutine.create(function(Part,Mesh)
  2243. for i=0,1,delay do
  2244. wait()
  2245. Part.CFrame=Part.CFrame
  2246. Part.Transparency=i
  2247. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2248. end
  2249. Part.Parent=nil
  2250. end),prt,msh)
  2251. end
  2252.  
  2253. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2254. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2255. prt.Anchored=true
  2256. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2257. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2258. game:GetService("Debris"):AddItem(prt,2)
  2259. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2260. CF=Part.CFrame
  2261. Numbb=0
  2262. randnumb=math.random()/10
  2263. rand1=math.random()/10
  2264. for i=0,1,rand1 do
  2265. wait()
  2266. CF=CF*cf(0,math.random()/2,0)
  2267. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2268. Part.CFrame=CF*euler(Numbb,0,0)
  2269. Part.Transparency=i
  2270. Numbb=Numbb+randnumb
  2271. end
  2272. Part.Parent=nil
  2273. end),prt,CF,Numbb,randnumb)
  2274. end
  2275.  
  2276. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2277. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2278. prt.Anchored=true
  2279. prt.CFrame=cframe
  2280. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2281. game:GetService("Debris"):AddItem(prt,5)
  2282. coroutine.resume(coroutine.create(function(Part,Mesh)
  2283. for i=0,1,delay do
  2284. wait()
  2285. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2286. Part.Transparency=i
  2287. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2288. end
  2289. Part.Parent=nil
  2290. end),prt,msh)
  2291. end
  2292.  
  2293. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2294. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2295. prt.Anchored=true
  2296. prt.CFrame=cframe
  2297. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2298. game:GetService("Debris"):AddItem(prt,2)
  2299. coroutine.resume(coroutine.create(function(Part,Mesh)
  2300. for i=0,1,delay do
  2301. wait()
  2302. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2303. Part.Transparency=i
  2304. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2305. end
  2306. Part.Parent=nil
  2307. end),prt,msh)
  2308. end
  2309.  
  2310. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2312. prt.Anchored=true
  2313. prt.CFrame=cframe*cf(x,y,z)
  2314. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2315. game:GetService("Debris"):AddItem(prt,5)
  2316. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2317. local num=math.random()
  2318. local num2=math.random(-3,2)+math.random()
  2319. local numm=0
  2320. for i=0,1,delay*2 do
  2321. swait()
  2322. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2323. Part.Transparency=i
  2324. numm=numm+0.01
  2325. end
  2326. Part.Parent=nil
  2327. Mesh.Parent=nil
  2328. end),prt,msh,x,y,z)
  2329. end
  2330.  
  2331. function dmgstart(dmg,what)
  2332. hitcon = what.Touched:connect(function(hit)
  2333. local hum = hit.Parent:FindFirstChild("Humanoid")
  2334. if hum and not hum:IsDescendantOf(Character) then
  2335. hum:TakeDamage(dmg)
  2336. end
  2337. end)
  2338. end
  2339.  
  2340. function dmgstop()
  2341. hitcon:disconnect()
  2342. end
  2343.  
  2344. function Cloak()
  2345. Face.Parent=nil
  2346. cloaked=true
  2347. for _,v in pairs(Torso.Parent:children()) do
  2348. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2349. coroutine.resume(coroutine.create(function()
  2350. for i=0,1,0.2 do
  2351. wait()
  2352. v.Transparency=i
  2353. end
  2354. v.Transparency=1
  2355. end))
  2356. end
  2357. if v.className=="Hat" then
  2358. hatp=v.Handle
  2359. coroutine.resume(coroutine.create(function(derp)
  2360. for i=0,1,0.2 do
  2361. wait()
  2362. derp.Transparency=i
  2363. end
  2364. derp.Transparency=1
  2365. end),hatp)
  2366. end
  2367. end
  2368. for _,v in pairs(m:children()) do
  2369. if v.className=="Part" then
  2370. coroutine.resume(coroutine.create(function()
  2371. for i=0,1,0.2 do
  2372. wait()
  2373. v.Transparency=i
  2374. end
  2375. v.Transparency=1
  2376. end))
  2377. end
  2378. end
  2379. end
  2380.  
  2381. function UnCloak()
  2382. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2383. Face.Parent=Head
  2384. cloaked=false
  2385. for _,v in pairs(Torso.Parent:children()) do
  2386. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2387. coroutine.resume(coroutine.create(function()
  2388. for i=0,1,0.1 do
  2389. wait()
  2390. v.Transparency=v.Transparency-0.1
  2391. end
  2392. v.Transparency=0
  2393. end))
  2394. end
  2395. if v.className=="Hat" then
  2396. hatp=v.Handle
  2397. coroutine.resume(coroutine.create(function(derp)
  2398. for i=0,1,0.1 do
  2399. wait()
  2400. derp.Transparency=derp.Transparency-0.1
  2401. end
  2402. derp.Transparency=0
  2403. end),hatp)
  2404. end
  2405. end
  2406. for _,v in pairs(m:children()) do
  2407. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2408. coroutine.resume(coroutine.create(function()
  2409. for i=0,1,0.1 do
  2410. wait()
  2411. v.Transparency=v.Transparency-0.1
  2412. end
  2413. v.Transparency=0
  2414. end))
  2415. v.Transparency=0
  2416. end
  2417. end
  2418. end
  2419.  
  2420. local origcolor = BrickColor.new("Pastel light blue")
  2421. ---- This section of explosions.
  2422.  
  2423. ----
  2424.  
  2425.  
  2426. function ring(type,pos,scale,value)
  2427. local type = type
  2428. local rng = Instance.new("Part", char)
  2429. rng.Anchored = true
  2430. rng.BrickColor = origcolor
  2431. rng.CanCollide = false
  2432. rng.FormFactor = 3
  2433. rng.Name = "Ring"
  2434. rng.Size = Vector3.new(1, 1, 1)
  2435. rng.Transparency = 0
  2436. rng.TopSurface = 0
  2437. rng.BottomSurface = 0
  2438. rng.CFrame = pos
  2439. local rngm = Instance.new("SpecialMesh", rng)
  2440. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2441. rngm.Scale = scale
  2442. local scaler2 = 1
  2443. if type == "Add" then
  2444. scaler2 = 1*value
  2445. elseif type == "Divide" then
  2446. scaler2 = 1/value
  2447. end
  2448. coroutine.resume(coroutine.create(function()
  2449. for i = 0,10,0.1 do
  2450. swait()
  2451. if type == "Add" then
  2452. scaler2 = scaler2 - 0.01*value
  2453. elseif type == "Divide" then
  2454. scaler2 = scaler2 - 0.01/value
  2455. end
  2456. rng.Transparency = rng.Transparency + 0.01
  2457. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2458. end
  2459. rng:Destroy()
  2460. end))
  2461. end
  2462.  
  2463.  
  2464. function wave(type,pos,scale,value)
  2465. local type = type
  2466. local rng = Instance.new("Part", char)
  2467. rng.Anchored = true
  2468. rng.BrickColor = origcolor
  2469. rng.CanCollide = false
  2470. rng.FormFactor = 3
  2471. rng.Name = "Ring"
  2472. rng.Size = Vector3.new(1, 1, 1)
  2473. rng.Transparency = 0
  2474. rng.TopSurface = 0
  2475. rng.BottomSurface = 0
  2476. rng.CFrame = pos
  2477. local rngm = Instance.new("SpecialMesh", rng)
  2478. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2479. rngm.Scale = scale
  2480. local scaler2 = 1
  2481. if type == "Add" then
  2482. scaler2 = 1*value
  2483. elseif type == "Divide" then
  2484. scaler2 = 1/value
  2485. end
  2486. coroutine.resume(coroutine.create(function()
  2487. for i = 0,10,0.1 do
  2488. swait()
  2489. if type == "Add" then
  2490. scaler2 = scaler2 - 0.01*value
  2491. elseif type == "Divide" then
  2492. scaler2 = scaler2 - 0.01/value
  2493. end
  2494. rng.Transparency = rng.Transparency + 0.01
  2495. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2496. end
  2497. rng:Destroy()
  2498. end))
  2499. end
  2500.  
  2501. function wind(type,pos,scale,value,speed)
  2502. local type = type
  2503. local rng = Instance.new("Part", char)
  2504. rng.Anchored = true
  2505. rng.BrickColor = origcolor
  2506. rng.CanCollide = false
  2507. rng.FormFactor = 3
  2508. rng.Name = "Ring"
  2509. rng.Size = Vector3.new(1, 1, 1)
  2510. rng.Transparency = 0
  2511. rng.TopSurface = 0
  2512. rng.BottomSurface = 0
  2513. rng.CFrame = pos
  2514. local rngm = Instance.new("SpecialMesh", rng)
  2515. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2516. rngm.Scale = scale
  2517. local scaler2 = 1
  2518. if type == "Add" then
  2519. scaler2 = 1*value
  2520. elseif type == "Divide" then
  2521. scaler2 = 1/value
  2522. end
  2523. coroutine.resume(coroutine.create(function()
  2524. for i = 0,10,0.1 do
  2525. swait()
  2526. if type == "Add" then
  2527. scaler2 = scaler2 - 0.01*value
  2528. elseif type == "Divide" then
  2529. scaler2 = scaler2 - 0.01/value
  2530. end
  2531. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2532. rng.Transparency = rng.Transparency + 0.01
  2533. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2534. end
  2535. rng:Destroy()
  2536. end))
  2537. end
  2538.  
  2539. function groundwind(type,pos,scale,value,speed)
  2540. local type = type
  2541. local rng = Instance.new("Part", char)
  2542. rng.Anchored = true
  2543. rng.BrickColor = origcolor
  2544. rng.CanCollide = false
  2545. rng.FormFactor = 3
  2546. rng.Name = "Ring"
  2547. rng.Size = Vector3.new(1, 1, 1)
  2548. rng.Transparency = 0
  2549. rng.TopSurface = 0
  2550. rng.BottomSurface = 0
  2551. rng.CFrame = pos
  2552. local rngm = Instance.new("SpecialMesh", rng)
  2553. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2554. rngm.Scale = scale
  2555. local scaler2 = 1
  2556. if type == "Add" then
  2557. scaler2 = 1*value
  2558. elseif type == "Divide" then
  2559. scaler2 = 1/value
  2560. end
  2561. coroutine.resume(coroutine.create(function()
  2562. for i = 0,10,0.1 do
  2563. swait()
  2564. if type == "Add" then
  2565. scaler2 = scaler2 - 0.01*value
  2566. elseif type == "Divide" then
  2567. scaler2 = scaler2 - 0.01/value
  2568. end
  2569. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2570. rng.Transparency = rng.Transparency + 0.01
  2571. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2572. end
  2573. rng:Destroy()
  2574. end))
  2575. end
  2576.  
  2577. function CameraManager()
  2578. if TwoD and not CamInterrupt then
  2579. if Humanoid.Health > 0 then
  2580. Camera.CameraSubject = Humanoid
  2581. Camera.CameraType = "Scriptable"
  2582. Humanoid.AutoRotate = false
  2583. if Booleans.GyroUse then
  2584. Directer.MaxTorque = Vec3(0, huge, 0)
  2585. else
  2586. Directer.MaxTorque = Vec3(0, 0, 0)
  2587. end
  2588. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2589. if Booleans.CamFollow then
  2590. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2591. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2592. else
  2593. CPart.Position = RootPart.Position
  2594. end
  2595. else
  2596. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2597. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2598. end
  2599. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2600. else
  2601. Camera.CameraSubject = Humanoid
  2602. Camera.CameraType = "Custom"
  2603. Controller.Disabled = false
  2604. end
  2605. end
  2606. end
  2607.  
  2608. function ring(type,pos,scale,value)
  2609. local type = type
  2610. local rng = Instance.new("Part", char)
  2611. rng.Anchored = true
  2612. rng.BrickColor = origcolor
  2613. rng.CanCollide = false
  2614. rng.FormFactor = 3
  2615. rng.Name = "Ring"
  2616. rng.Size = Vector3.new(1, 1, 1)
  2617. rng.Transparency = 0
  2618. rng.TopSurface = 0
  2619. rng.BottomSurface = 0
  2620. rng.CFrame = pos
  2621. local rngm = Instance.new("SpecialMesh", rng)
  2622. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2623. rngm.Scale = scale
  2624. local scaler2 = 1
  2625. if type == "Add" then
  2626. scaler2 = 1*value
  2627. elseif type == "Divide" then
  2628. scaler2 = 1/value
  2629. end
  2630. coroutine.resume(coroutine.create(function()
  2631. for i = 0,10,0.1 do
  2632. swait()
  2633. if type == "Add" then
  2634. scaler2 = scaler2 - 0.01*value
  2635. elseif type == "Divide" then
  2636. scaler2 = scaler2 - 0.01/value
  2637. end
  2638. rng.Transparency = rng.Transparency + 0.01
  2639. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2640. end
  2641. rng:Destroy()
  2642. end))
  2643. end
  2644.  
  2645.  
  2646. function wave(type,pos,scale,value)
  2647. local type = type
  2648. local rng = Instance.new("Part", char)
  2649. rng.Anchored = true
  2650. rng.BrickColor = origcolor
  2651. rng.CanCollide = false
  2652. rng.FormFactor = 3
  2653. rng.Name = "Ring"
  2654. rng.Size = Vector3.new(1, 1, 1)
  2655. rng.Transparency = 0
  2656. rng.TopSurface = 0
  2657. rng.BottomSurface = 0
  2658. rng.CFrame = pos
  2659. local rngm = Instance.new("SpecialMesh", rng)
  2660. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2661. rngm.Scale = scale
  2662. local scaler2 = 1
  2663. if type == "Add" then
  2664. scaler2 = 1*value
  2665. elseif type == "Divide" then
  2666. scaler2 = 1/value
  2667. end
  2668. coroutine.resume(coroutine.create(function()
  2669. for i = 0,10,0.1 do
  2670. swait()
  2671. if type == "Add" then
  2672. scaler2 = scaler2 - 0.01*value
  2673. elseif type == "Divide" then
  2674. scaler2 = scaler2 - 0.01/value
  2675. end
  2676. rng.Transparency = rng.Transparency + 0.01
  2677. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2678. end
  2679. rng:Destroy()
  2680. end))
  2681. end
  2682.  
  2683. function sphere(bonuspeed,type,pos,scale,value,color)
  2684. local type = type
  2685. local rng = Instance.new("Part", char)
  2686. rng.Anchored = true
  2687. if ModeOfGlitch ~= 9 then
  2688. rng.BrickColor = color
  2689. elseif ModeOfGlitch == 9 then
  2690. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2691. end
  2692. rng.CanCollide = false
  2693. rng.FormFactor = 3
  2694. rng.Name = "Ring"
  2695. rng.Material = "Neon"
  2696. rng.Size = Vector3.new(1, 1, 1)
  2697. rng.Transparency = 0
  2698. rng.TopSurface = 0
  2699. rng.BottomSurface = 0
  2700. rng.CFrame = pos
  2701. local rngm = Instance.new("SpecialMesh", rng)
  2702. rngm.MeshType = "Sphere"
  2703. rngm.Scale = scale
  2704. if rainbowmode == true then
  2705. rng.Color = Color3.new(r/255,g/255,b/255)
  2706. end
  2707. if ModeOfGlitch == 9 then
  2708. coroutine.resume(coroutine.create(function()
  2709. while true do
  2710. swait()
  2711. if rng.Parent ~= nil then
  2712. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2713. else
  2714. break
  2715. end
  2716. end
  2717. end))
  2718. end
  2719. local scaler2 = 1
  2720. if type == "Add" then
  2721. scaler2 = 1*value
  2722. elseif type == "Divide" then
  2723. scaler2 = 1/value
  2724. end
  2725. coroutine.resume(coroutine.create(function()
  2726. for i = 0,10/bonuspeed,0.1 do
  2727. swait()
  2728. if rainbowmode == true then
  2729. rng.Color = Color3.new(r/255,g/255,b/255)
  2730. end
  2731. if type == "Add" then
  2732. scaler2 = scaler2 - 0.01*value/bonuspeed
  2733. elseif type == "Divide" then
  2734. scaler2 = scaler2 - 0.01/value*bonuspeed
  2735. end
  2736. if chaosmode == true then
  2737. rng.BrickColor = BrickColor.random()
  2738. end
  2739. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2740. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2741. end
  2742. rng:Destroy()
  2743. end))
  2744. end
  2745.  
  2746. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2747. local type = type
  2748. local rng = Instance.new("Part", char)
  2749. rng.Anchored = true
  2750. if ModeOfGlitch ~= 9 then
  2751. rng.BrickColor = color
  2752. elseif ModeOfGlitch == 9 then
  2753. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2754. end
  2755. rng.CanCollide = false
  2756. rng.FormFactor = 3
  2757. rng.Name = "Ring"
  2758. rng.Material = "Neon"
  2759. rng.Size = Vector3.new(1, 1, 1)
  2760. rng.Transparency = 0
  2761. rng.TopSurface = 0
  2762. rng.BottomSurface = 0
  2763. rng.CFrame = pos
  2764. local rngm = Instance.new("SpecialMesh", rng)
  2765. rngm.MeshType = "Sphere"
  2766. rngm.Scale = scale
  2767. local scaler2 = 1
  2768. local scaler2b = 1
  2769. local scaler2c = 1
  2770. if type == "Add" then
  2771. scaler2 = 1*value
  2772. scaler2b = 1*value2
  2773. scaler2c = 1*value3
  2774. elseif type == "Divide" then
  2775. scaler2 = 1/value
  2776. scaler2b = 1/value2
  2777. scaler2c = 1/value3
  2778. end
  2779. if ModeOfGlitch == 9 then
  2780. coroutine.resume(coroutine.create(function()
  2781. while true do
  2782. swait()
  2783. if rng.Parent ~= nil then
  2784. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2785. else
  2786. break
  2787. end
  2788. end
  2789. end))
  2790. end
  2791. coroutine.resume(coroutine.create(function()
  2792. for i = 0,10/bonuspeed,0.1 do
  2793. swait()
  2794. if type == "Add" then
  2795. scaler2 = scaler2 - 0.01*value/bonuspeed
  2796. scaler2b = scaler2b - 0.01*value/bonuspeed
  2797. scaler2c = scaler2c - 0.01*value/bonuspeed
  2798. elseif type == "Divide" then
  2799. scaler2 = scaler2 - 0.01/value*bonuspeed
  2800. scaler2b = scaler2b - 0.01/value*bonuspeed
  2801. scaler2c = scaler2c - 0.01/value*bonuspeed
  2802. end
  2803. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2804. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2805. end
  2806. rng:Destroy()
  2807. end))
  2808. end
  2809.  
  2810. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2811. local type = type
  2812. local rotenable = rotatingop
  2813. local rng = Instance.new("Part", char)
  2814. rng.Anchored = true
  2815. rng.BrickColor = color
  2816. rng.CanCollide = false
  2817. rng.FormFactor = 3
  2818. rng.Name = "Ring"
  2819. rng.Material = "Neon"
  2820. rng.Size = Vector3.new(1, 1, 1)
  2821. rng.Transparency = 0
  2822. if typeoftrans == "In" then
  2823. rng.Transparency = 1
  2824. end
  2825. rng.TopSurface = 0
  2826. rng.BottomSurface = 0
  2827. rng.CFrame = pos
  2828. local rngm = Instance.new("SpecialMesh", rng)
  2829. rngm.MeshType = "FileMesh"
  2830. if typeofshape == "Normal" then
  2831. rngm.MeshId = "rbxassetid://662586858"
  2832. elseif typeofshape == "Round" then
  2833. rngm.MeshId = "rbxassetid://662585058"
  2834. end
  2835. rngm.Scale = scale
  2836. local scaler2 = 1/10
  2837. if type == "Add" then
  2838. scaler2 = 1*value/10
  2839. elseif type == "Divide" then
  2840. scaler2 = 1/value/10
  2841. end
  2842. local randomrot = math.random(1,2)
  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/10
  2848. elseif type == "Divide" then
  2849. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2850. end
  2851. if rotenable == true then
  2852. if randomrot == 1 then
  2853. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2854. elseif randomrot == 2 then
  2855. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2856. end
  2857. end
  2858. if typeoftrans == "Out" then
  2859. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2860. elseif typeoftrans == "In" then
  2861. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2862. end
  2863. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2864. end
  2865. rng:Destroy()
  2866. end))
  2867. end
  2868.  
  2869. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2870. local type = type
  2871. local rng = Instance.new("Part", char)
  2872. rng.Anchored = true
  2873. rng.BrickColor = color
  2874. rng.CanCollide = false
  2875. rng.FormFactor = 3
  2876. rng.Name = "Ring"
  2877. rng.Material = "Neon"
  2878. rng.Size = Vector3.new(1, 1, 1)
  2879. rng.Transparency = 0
  2880. rng.TopSurface = 0
  2881. rng.BottomSurface = 0
  2882. rng.CFrame = pos
  2883. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2884. local rngm = Instance.new("SpecialMesh", rng)
  2885. rngm.MeshType = "Brick"
  2886. rngm.Scale = vt(x1,y1,z1)
  2887. if rainbowmode == true then
  2888. rng.Color = Color3.new(r/255,g/255,b/255)
  2889. end
  2890. local scaler2 = 1
  2891. local speeder = FastSpeed/10
  2892. if type == "Add" then
  2893. scaler2 = 1*value
  2894. elseif type == "Divide" then
  2895. scaler2 = 1/value
  2896. end
  2897. coroutine.resume(coroutine.create(function()
  2898. for i = 0,10/bonuspeed,0.1 do
  2899. swait()
  2900. if rainbowmode == true then
  2901. rng.Color = Color3.new(r/255,g/255,b/255)
  2902. end
  2903. if type == "Add" then
  2904. scaler2 = scaler2 - 0.01*value/bonuspeed
  2905. elseif type == "Divide" then
  2906. scaler2 = scaler2 - 0.01/value*bonuspeed
  2907. end
  2908. if chaosmode == true then
  2909. rng.BrickColor = BrickColor.random()
  2910. end
  2911. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2912. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2913. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2914. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2915. end
  2916. rng:Destroy()
  2917. end))
  2918. end
  2919.  
  2920. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2921. local type = type
  2922. local rng = Instance.new("Part", char)
  2923. rng.Anchored = true
  2924. rng.BrickColor = color
  2925. rng.CanCollide = false
  2926. rng.FormFactor = 3
  2927. rng.Name = "Ring"
  2928. rng.Material = "Neon"
  2929. rng.Size = Vector3.new(1, 1, 1)
  2930. rng.Transparency = 0
  2931. rng.TopSurface = 0
  2932. rng.BottomSurface = 0
  2933. rng.CFrame = pos
  2934. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2935. local rngm = Instance.new("SpecialMesh", rng)
  2936. rngm.MeshType = "Brick"
  2937. rngm.Scale = vt(x1,y1,z1)
  2938. if rainbowmode == true then
  2939. rng.Color = Color3.new(r/255,g/255,b/255)
  2940. end
  2941. local scaler2 = 1
  2942. local speeder = FastSpeed/10
  2943. if type == "Add" then
  2944. scaler2 = 1*value
  2945. elseif type == "Divide" then
  2946. scaler2 = 1/value
  2947. end
  2948. coroutine.resume(coroutine.create(function()
  2949. for i = 0,10/bonuspeed,0.1 do
  2950. swait()
  2951. if rainbowmode == true then
  2952. rng.Color = Color3.new(r/255,g/255,b/255)
  2953. end
  2954. if type == "Add" then
  2955. scaler2 = scaler2 - 0.01*value/bonuspeed
  2956. elseif type == "Divide" then
  2957. scaler2 = scaler2 - 0.01/value*bonuspeed
  2958. end
  2959. if chaosmode == true then
  2960. rng.BrickColor = BrickColor.random()
  2961. end
  2962. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2963. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2964. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2965. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2966. end
  2967. rng:Destroy()
  2968. end))
  2969. end
  2970.  
  2971. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2972. local type = type
  2973. local rng = Instance.new("Part", char)
  2974. rng.Anchored = true
  2975. rng.BrickColor = color
  2976. rng.CanCollide = false
  2977. rng.FormFactor = 3
  2978. rng.Name = "Ring"
  2979. rng.Material = "Neon"
  2980. rng.Size = Vector3.new(1, 1, 1)
  2981. rng.Transparency = 0
  2982. rng.TopSurface = 0
  2983. rng.BottomSurface = 0
  2984. rng.CFrame = pos
  2985. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2986. local rngm = Instance.new("SpecialMesh", rng)
  2987. rngm.MeshType = "Brick"
  2988. rngm.Scale = vt(x1,y1,z1)
  2989. if rainbowmode == true then
  2990. rng.Color = Color3.new(r/255,g/255,b/255)
  2991. end
  2992. local scaler2 = 0
  2993. local speeder = FastSpeed/10
  2994. if type == "Add" then
  2995. scaler2 = 1*value
  2996. elseif type == "Divide" then
  2997. scaler2 = 1/value
  2998. end
  2999. coroutine.resume(coroutine.create(function()
  3000. for i = 0,10/bonuspeed,0.1 do
  3001. swait()
  3002. if rainbowmode == true then
  3003. rng.Color = Color3.new(r/255,g/255,b/255)
  3004. end
  3005. if type == "Add" then
  3006. scaler2 = scaler2 - 0.01*value/bonuspeed
  3007. elseif type == "Divide" then
  3008. scaler2 = scaler2 - 0.01/value*bonuspeed
  3009. end
  3010. if chaosmode == true then
  3011. rng.BrickColor = BrickColor.random()
  3012. end
  3013. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3014. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3015. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3016. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3017. end
  3018. rng:Destroy()
  3019. end))
  3020. end
  3021.  
  3022. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3023. local type = type
  3024. local rng = Instance.new("Part", char)
  3025. rng.Anchored = true
  3026. rng.BrickColor = color
  3027. rng.Color = color3
  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. local rngm = Instance.new("SpecialMesh", rng)
  3038. rngm.MeshType = "Brick"
  3039. rngm.Scale = scale
  3040. local scaler2 = 1
  3041. local scaler2b = 1
  3042. local scaler2c = 1
  3043. if type == "Add" then
  3044. scaler2 = 1*value
  3045. scaler2b = 1*value2
  3046. scaler2c = 1*value3
  3047. elseif type == "Divide" then
  3048. scaler2 = 1/value
  3049. scaler2b = 1/value2
  3050. scaler2c = 1/value3
  3051. end
  3052. coroutine.resume(coroutine.create(function()
  3053. for i = 0,10/bonuspeed,0.1 do
  3054. swait()
  3055. if type == "Add" then
  3056. scaler2 = scaler2 - 0.01*value/bonuspeed
  3057. scaler2b = scaler2b - 0.01*value/bonuspeed
  3058. scaler2c = scaler2c - 0.01*value/bonuspeed
  3059. elseif type == "Divide" then
  3060. scaler2 = scaler2 - 0.01/value*bonuspeed
  3061. scaler2b = scaler2b - 0.01/value*bonuspeed
  3062. scaler2c = scaler2c - 0.01/value*bonuspeed
  3063. end
  3064. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3065. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3066. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3067. end
  3068. rng:Destroy()
  3069. end))
  3070. end
  3071.  
  3072. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3073. local type = type
  3074. local rng = Instance.new("Part", char)
  3075. rng.Anchored = true
  3076. if ModeOfGlitch ~= 9 then
  3077. rng.BrickColor = color
  3078. elseif ModeOfGlitch == 9 then
  3079. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3080. end
  3081. rng.CanCollide = false
  3082. rng.FormFactor = 3
  3083. rng.Name = "Ring"
  3084. rng.Material = "Neon"
  3085. rng.Size = Vector3.new(1, 1, 1)
  3086. rng.Transparency = 0
  3087. rng.TopSurface = 0
  3088. rng.BottomSurface = 0
  3089. rng.CFrame = pos
  3090. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3091. local rngm = Instance.new("SpecialMesh", rng)
  3092. rngm.MeshType = "Sphere"
  3093. rngm.Scale = vt(x1,y1,z1)
  3094. if rainbowmode == true then
  3095. rng.Color = Color3.new(r/255,g/255,b/255)
  3096. end
  3097. if ModeOfGlitch == 9 then
  3098. coroutine.resume(coroutine.create(function()
  3099. while true do
  3100. swait()
  3101. if rng.Parent ~= nil then
  3102. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3103. else
  3104. break
  3105. end
  3106. end
  3107. end))
  3108. end
  3109. local scaler2 = 1
  3110. local speeder = FastSpeed
  3111. if type == "Add" then
  3112. scaler2 = 1*value
  3113. elseif type == "Divide" then
  3114. scaler2 = 1/value
  3115. end
  3116. coroutine.resume(coroutine.create(function()
  3117. for i = 0,10/bonuspeed,0.1 do
  3118. swait()
  3119. if rainbowmode == true then
  3120. rng.Color = Color3.new(r/255,g/255,b/255)
  3121. end
  3122. if type == "Add" then
  3123. scaler2 = scaler2 - 0.01*value/bonuspeed
  3124. elseif type == "Divide" then
  3125. scaler2 = scaler2 - 0.01/value*bonuspeed
  3126. end
  3127. if chaosmode == true then
  3128. rng.BrickColor = BrickColor.random()
  3129. end
  3130. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3131. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3132. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3133. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3134. end
  3135. rng:Destroy()
  3136. end))
  3137. end
  3138.  
  3139.  
  3140. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3141. local type = type
  3142. local rng = Instance.new("Part", char)
  3143. rng.Anchored = true
  3144. if ModeOfGlitch ~= 9 then
  3145. rng.BrickColor = color
  3146. elseif ModeOfGlitch == 9 then
  3147. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3148. end
  3149. rng.CanCollide = false
  3150. rng.FormFactor = 3
  3151. rng.Name = "Ring"
  3152. rng.Material = "Neon"
  3153. rng.Size = Vector3.new(1, 1, 1)
  3154. rng.Transparency = 1
  3155. rng.TopSurface = 0
  3156. rng.BottomSurface = 0
  3157. rng.CFrame = pos
  3158. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3159. local rngm = Instance.new("SpecialMesh", rng)
  3160. rngm.MeshType = "Sphere"
  3161. rngm.Scale = vt(x1,y1,z1)
  3162. if rainbowmode == true then
  3163. rng.Color = Color3.new(r/255,g/255,b/255)
  3164. end
  3165. if ModeOfGlitch == 9 then
  3166. coroutine.resume(coroutine.create(function()
  3167. while true do
  3168. swait()
  3169. if rng.Parent ~= nil then
  3170. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3171. else
  3172. break
  3173. end
  3174. end
  3175. end))
  3176. end
  3177. local scaler2 = 1
  3178. local speeder = FastSpeed
  3179. if type == "Add" then
  3180. scaler2 = 1*value
  3181. elseif type == "Divide" then
  3182. scaler2 = 1/value
  3183. end
  3184. coroutine.resume(coroutine.create(function()
  3185. for i = 0,10/bonuspeed,0.1 do
  3186. swait()
  3187. if rainbowmode == true then
  3188. rng.Color = Color3.new(r/255,g/255,b/255)
  3189. end
  3190. if type == "Add" then
  3191. scaler2 = scaler2 - 0.01*value/bonuspeed
  3192. elseif type == "Divide" then
  3193. scaler2 = scaler2 - 0.01/value*bonuspeed
  3194. end
  3195. if chaosmode == true then
  3196. rng.BrickColor = BrickColor.random()
  3197. end
  3198. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3199. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3200. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3201. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3202. end
  3203. rng:Destroy()
  3204. end))
  3205. end
  3206.  
  3207. function dmg(dude)
  3208. if dude.Name ~= Character then
  3209. local keptcolor = MAINRUINCOLOR
  3210. local bgf = Instance.new("BodyGyro",dude.Head)
  3211. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3212. --[[local val = Instance.new("BoolValue",dude)
  3213. val.Name = "IsHit"]]--
  3214. local ds = coroutine.wrap(function()
  3215. dude:WaitForChild("Head"):BreakJoints()
  3216. for i, v in pairs(dude:GetChildren()) do
  3217. if v:IsA("Part") or v:IsA("MeshPart") then
  3218. v.Name = "DEMINISHED"
  3219. end
  3220. end
  3221. wait(0.5)
  3222. targetted = nil
  3223. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3224. coroutine.resume(coroutine.create(function()
  3225. for i, v in pairs(dude:GetChildren()) do
  3226. if v:IsA("Accessory") then
  3227. v:Destroy()
  3228. end
  3229. if v:IsA("Humanoid") then
  3230. v:Destroy()
  3231. end
  3232. if v:IsA("CharacterMesh") then
  3233. v:Destroy()
  3234. end
  3235. if v:IsA("Model") then
  3236. v:Destroy()
  3237. end
  3238. if v:IsA("Part") or v:IsA("MeshPart") then
  3239. for x, o in pairs(v:GetChildren()) do
  3240. if o:IsA("Decal") then
  3241. o:Destroy()
  3242. end
  3243. end
  3244. coroutine.resume(coroutine.create(function()
  3245. v.Material = "Neon"
  3246. v.CanCollide = false
  3247. v.Anchored = false
  3248. local bld = Instance.new("ParticleEmitter",v)
  3249. bld.LightEmission = 0.75
  3250. bld.Texture = "rbxassetid://363275192" ---284205403
  3251. bld.Color = ColorSequence.new(keptcolor.Color)
  3252. bld.Rate = 500
  3253. bld.Lifetime = NumberRange.new(1)
  3254. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3255. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3256. bld.Speed = NumberRange.new(2,5)
  3257. bld.VelocitySpread = 50000
  3258. bld.Rotation = NumberRange.new(-500,500)
  3259. bld.RotSpeed = NumberRange.new(-500,500)
  3260. local sbs = Instance.new("BodyPosition", v)
  3261. sbs.P = 3000
  3262. sbs.D = 1000
  3263. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3264. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3265. v.Color = keptcolor.Color
  3266. coroutine.resume(coroutine.create(function()
  3267. for i = 0, 49 do
  3268. swait(1)
  3269. v:BreakJoints()
  3270. v.Transparency = v.Transparency + 0.02
  3271. end
  3272. v:BreakJoints()
  3273. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3274. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3275. bld.Speed = NumberRange.new(10,25)
  3276. bld.Drag = 5
  3277. bld.Acceleration = vt(0,2,0)
  3278. wait(0.5)
  3279. bld.Enabled = false
  3280. wait(8)
  3281. v:Destroy()
  3282. dude:Destroy()
  3283. end))
  3284. end))
  3285. end
  3286. end
  3287. end))
  3288. end)
  3289. ds()
  3290. end
  3291. end
  3292.  
  3293.  
  3294. function FindNearestHead(Position, Distance, SinglePlayer)
  3295. if SinglePlayer then
  3296. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3297. end
  3298. local List = {}
  3299. for i, v in pairs(workspace:GetChildren()) do
  3300. if v:IsA("Model") then
  3301. if v:findFirstChild("Head") then
  3302. if v ~= Character then
  3303. if (v.Head.Position - Position).magnitude <= Distance then
  3304. table.insert(List, v)
  3305. end
  3306. end
  3307. end
  3308. end
  3309. end
  3310. return List
  3311. end
  3312.  
  3313. function FaceMouse()
  3314. Cam = workspace.CurrentCamera
  3315. return {
  3316. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3317. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3318. }
  3319. end
  3320.  
  3321. function FaceMouse2()
  3322. Cam = workspace.CurrentCamera
  3323. return {
  3324. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3325. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3326. }
  3327. end
  3328.  
  3329. local ModeOfGlitch = 1
  3330. -- Functions are ready.
  3331. local storehumanoidWS = 16
  3332.  
  3333. function CorruptBlink()
  3334. for i = 0, 14 do
  3335. 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)
  3336. end
  3337. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3338. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3339. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3340. CameraEnshaking(2,10)
  3341. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3342. if v:FindFirstChild('Head') then
  3343. dmg(v)
  3344. end
  3345. end
  3346. for i = 0, 14 do
  3347. 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)
  3348. end
  3349. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3350. end
  3351. function PureBomb()
  3352. attack = true
  3353. hum.WalkSpeed = 0
  3354. local orb = Instance.new("Part", char)
  3355. orb.Anchored = true
  3356. orb.BrickColor = BrickColor.new("Toothpaste")
  3357. orb.CanCollide = false
  3358. orb.FormFactor = 3
  3359. orb.Name = "Ring"
  3360. orb.Material = "Neon"
  3361. orb.Size = Vector3.new(1, 1, 1)
  3362. orb.Transparency = 0
  3363. orb.TopSurface = 0
  3364. orb.BottomSurface = 0
  3365. local orbm = Instance.new("SpecialMesh", orb)
  3366. orbm.MeshType = "Sphere"
  3367. orbm.Name = "SizeMesh"
  3368. orbm.Scale = vt(0,0,0)
  3369. local scaled = 0.1
  3370. local posid = 0
  3371. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3372. for i = 0, 5, 0.1 do
  3373. swait()
  3374. scaled = scaled - 0.001
  3375. posid = posid - scaled
  3376. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3377. local scaled = 0.1
  3378. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3379. 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)
  3380. 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)
  3381. 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)
  3382. 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)
  3383. 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)
  3384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3386. 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)
  3387. end
  3388. for i = 0, 2, 0.1 do
  3389. swait()
  3390. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3391. 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)
  3392. 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)
  3393. 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)
  3394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3395. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3396. 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)
  3397. end
  3398. coroutine.resume(coroutine.create(function()
  3399. orb.Anchored = false
  3400. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3401. local a = Instance.new("Part",workspace)
  3402. a.Name = "Direction"
  3403. a.Anchored = true
  3404. a.BrickColor = bc("Bright red")
  3405. a.Material = "Neon"
  3406. a.Transparency = 1
  3407. a.CanCollide = false
  3408. local ray = Ray.new(
  3409. orb.CFrame.p, -- origin
  3410. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3411. )
  3412. local ignore = orb
  3413. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3414. a.BottomSurface = 10
  3415. a.TopSurface = 10
  3416. local distance = (orb.CFrame.p - position).magnitude
  3417. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3418. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3419. orb.CFrame = a.CFrame
  3420. a:Destroy()
  3421. local bv = Instance.new("BodyVelocity")
  3422. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3423. bv.velocity = orb.CFrame.lookVector*125
  3424. bv.Parent = orb
  3425. local hitted = false
  3426. game:GetService("Debris"):AddItem(orb, 15)
  3427. wait()
  3428. local hit =orb.Touched:connect(function(hit)
  3429. if hitted == false then
  3430. hitted = true
  3431. CameraEnshaking(10,2.5)
  3432. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3433. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3434. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3435. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3436. for i = 0, 49 do
  3437. 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)
  3438. end
  3439. for i = 0, 9 do
  3440. 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)
  3441. 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)
  3442. end
  3443. orb.Anchored = true
  3444. orb.Transparency = 1
  3445. wait(8)
  3446. orb:Destroy()
  3447. end
  3448. end)
  3449. end))
  3450. for i = 0, 1, 0.1 do
  3451. swait()
  3452. 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)
  3453. 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)
  3454. 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)
  3455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3457. 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)
  3458. end
  3459. hum.WalkSpeed = storehumanoidWS
  3460. attack = false
  3461. end
  3462.  
  3463. function BanishingOrb()
  3464. attack = true
  3465. hum.WalkSpeed = 0
  3466. local radm = math.random(1,3)
  3467. if radm == 1 then
  3468. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3469. elseif radm == 2 then
  3470. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3471. elseif radm == 3 then
  3472. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3473. end
  3474. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3475. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3476. local orb = Instance.new("Part", char)
  3477. orb.Anchored = true
  3478. orb.BrickColor = BrickColor.new("Lime green")
  3479. orb.CanCollide = false
  3480. orb.FormFactor = 3
  3481. orb.Name = "Ring"
  3482. orb.Material = "Neon"
  3483. orb.Size = Vector3.new(1, 1, 1)
  3484. orb.Transparency = 0
  3485. orb.TopSurface = 0
  3486. orb.BottomSurface = 0
  3487. local orbm = Instance.new("SpecialMesh", orb)
  3488. orbm.MeshType = "Sphere"
  3489. orbm.Name = "SizeMesh"
  3490. orbm.Scale = vt(0,0,0)
  3491. local scaled = 0.1
  3492. local posid = 0
  3493. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3494. for i = 0, 5, 0.1 do
  3495. swait()
  3496. scaled = scaled - 0.001
  3497. posid = posid - scaled
  3498. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3499. local scaled = 0.1
  3500. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3501. 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)
  3502. 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)
  3503. 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)
  3504. 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)
  3505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3506. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3507. 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)
  3508. end
  3509. for i = 0, 2, 0.1 do
  3510. swait()
  3511. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3512. 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)
  3513. 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)
  3514. 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)
  3515. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3516. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3517. 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)
  3518. end
  3519. coroutine.resume(coroutine.create(function()
  3520. orb.Anchored = false
  3521. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3522. local a = Instance.new("Part",workspace)
  3523. a.Name = "Direction"
  3524. a.Anchored = true
  3525. a.BrickColor = bc("Lime green")
  3526. a.Material = "Neon"
  3527. a.Transparency = 1
  3528. a.CanCollide = false
  3529. local ray = Ray.new(
  3530. orb.CFrame.p, -- origin
  3531. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3532. )
  3533. local ignore = orb
  3534. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3535. a.BottomSurface = 10
  3536. a.TopSurface = 10
  3537. local distance = (orb.CFrame.p - position).magnitude
  3538. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3539. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3540. orb.CFrame = a.CFrame
  3541. a:Destroy()
  3542. local bv = Instance.new("BodyVelocity")
  3543. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3544. bv.velocity = orb.CFrame.lookVector*0
  3545. bv.Parent = orb
  3546. local hitted = false
  3547. local rate = 0
  3548. coroutine.resume(coroutine.create(function()
  3549. for i = 0, 24 do
  3550. wait(0.1)
  3551. rate = rate + 0.25
  3552. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3553. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3554. if v:FindFirstChild('Head') then
  3555. dmg(v)
  3556. end
  3557. end
  3558. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3559. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3560. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3561. end
  3562. orb.Anchored = true
  3563. orb.Transparency = 1
  3564. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3565. if v:FindFirstChild('Head') then
  3566. dmg(v)
  3567. end
  3568. end
  3569. local eff = Instance.new("ParticleEmitter",orb)
  3570. eff.Texture = "rbxassetid://296874871"
  3571. eff.LightEmission = 0.95
  3572. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3573. eff.Rate = 1000000000
  3574. eff.Lifetime = NumberRange.new(3)
  3575. 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)})
  3576. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3577. eff.Speed = NumberRange.new(30)
  3578. eff.Acceleration = vt(0,-15,0)
  3579. eff.Rotation = NumberRange.new(-500,500)
  3580. eff.VelocitySpread = 100000
  3581. eff.RotSpeed = NumberRange.new(-500,500)
  3582. coroutine.resume(coroutine.create(function()
  3583. wait(0.6)
  3584. eff.Enabled = false
  3585. end))
  3586. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3587. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3588. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3589. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3590. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3591. game:GetService("Debris"):AddItem(orb, 15)
  3592. end))
  3593. end))
  3594. for i = 0, 1, 0.1 do
  3595. swait()
  3596. 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)
  3597. 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)
  3598. 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)
  3599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3600. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3601. 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)
  3602. end
  3603. hum.WalkSpeed = storehumanoidWS
  3604. attack = false
  3605. end
  3606.  
  3607.  
  3608. function ChaosGroundStrike()
  3609. attack = true
  3610. for i = 0, 2, 0.1 do
  3611. swait()
  3612. 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)
  3613. 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)
  3614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3616. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3617. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3618. end
  3619. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3620. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3621. CameraEnshaking(4,12)
  3622. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3623. if v:FindFirstChild('Head') then
  3624. dmg(v)
  3625. end
  3626. end
  3627. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3628. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3629. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3630. for i = 0, 2, 0.1 do
  3631. swait()
  3632. 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)
  3633. 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)
  3634. 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)
  3635. 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)
  3636. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3638. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3639. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3640. end
  3641. attack = false
  3642. end
  3643.  
  3644.  
  3645.  
  3646. function Starfall()
  3647. attack = true
  3648. hum.WalkSpeed = 0
  3649. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3650. for i = 0, 5, 0.1 do
  3651. swait()
  3652. 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)
  3653. 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)
  3654. 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)
  3655. 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)
  3656. 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)
  3657. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3658. 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)
  3659. 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)
  3660. end
  3661. local Overed = false
  3662. CameraEnshaking(2,20)
  3663. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3664. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3665. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3666. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3667. local orb = Instance.new("Part", char)
  3668. orb.Anchored = true
  3669. orb.BrickColor = BrickColor.new("Toothpaste")
  3670. orb.CanCollide = false
  3671. orb.FormFactor = 3
  3672. orb.Name = "Remenant"
  3673. orb.Material = "Neon"
  3674. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3675. orb.Size = Vector3.new(1, 1, 1)
  3676. orb.Transparency = 1
  3677. orb.TopSurface = 0
  3678. orb.BottomSurface = 0
  3679. hum.WalkSpeed = storehumanoidWS
  3680. coroutine.resume(coroutine.create(function()
  3681. for i = 0, 9 do
  3682. swait(10)
  3683. local lb = Instance.new("Part")
  3684. lb.Color = MAINRUINCOLOR.Color
  3685. lb.CanCollide = false
  3686. lb.Material = "Neon"
  3687. lb.Anchored = true
  3688. lb.TopSurface = 0
  3689. lb.BottomSurface = 0
  3690. lb.Transparency = 0
  3691. lb.Size = vt(1,1,1)
  3692. 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)))
  3693. lb.Anchored = false
  3694. lb.Parent = char
  3695. local thingery = Instance.new("SpecialMesh",lb)
  3696. thingery.MeshType = "Sphere"
  3697. thingery.Scale = vt(20,20,20)
  3698. game:GetService("Debris"):AddItem(lb, 10)
  3699. local bv = Instance.new("BodyVelocity")
  3700. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3701. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3702. bv.Parent = lb
  3703. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3704. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3705. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3706. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3707. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3708. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3709. local hitted = false
  3710. coroutine.resume(coroutine.create(function()
  3711. while true do
  3712. swait(1)
  3713. if lb.Parent ~= nil and hitted == false then
  3714. 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)
  3715. elseif lb.Parent == nil then
  3716. break
  3717. end
  3718. end
  3719. end))
  3720.  
  3721. game:GetService("Debris"):AddItem(a, 0.1)
  3722.  
  3723. coroutine.resume(coroutine.create(function()
  3724. swait(1)
  3725. lb.Touched:connect(function(hit)
  3726. if hitted == false then
  3727. hitted = true
  3728. lb.Transparency = 1
  3729. lb.Anchored = true
  3730. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3731. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3732. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3733. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3734. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3735. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3736. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3737. CameraEnshaking(1,5)
  3738. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3739. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3740. for i = 0, 9 do
  3741. 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)
  3742. end
  3743. for i = 0, 49 do
  3744. swait()
  3745. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3746. 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)
  3747. end
  3748. end
  3749. end)
  3750. end))
  3751. end
  3752. Overed = true
  3753. orb:Destroy()
  3754. end))
  3755.  
  3756. attack = false
  3757. end
  3758.  
  3759. function StarfallEX()
  3760. attack = true
  3761. hum.WalkSpeed = 0
  3762. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3763. for i = 0, 10, 0.1 do
  3764. swait()
  3765. 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)
  3766. 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)
  3767. 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)
  3768. 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)
  3769. 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)
  3770. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3771. 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)
  3772. 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)
  3773. end
  3774. local Overed = false
  3775. CameraEnshaking(2,20)
  3776. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3777. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3778. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3779. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3780. local orb = Instance.new("Part", char)
  3781. orb.Anchored = true
  3782. orb.BrickColor = BrickColor.new("Toothpaste")
  3783. orb.CanCollide = false
  3784. orb.FormFactor = 3
  3785. orb.Name = "Remenant"
  3786. orb.Material = "Neon"
  3787. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3788. orb.Size = Vector3.new(1, 1, 1)
  3789. orb.Transparency = 1
  3790. orb.TopSurface = 0
  3791. orb.BottomSurface = 0
  3792. hum.WalkSpeed = storehumanoidWS
  3793. coroutine.resume(coroutine.create(function()
  3794. for i = 0, 4 do
  3795. swait(15)
  3796. local lb = Instance.new("Part")
  3797. lb.Color = MAINRUINCOLOR.Color
  3798. lb.CanCollide = false
  3799. lb.Material = "Neon"
  3800. lb.Anchored = true
  3801. lb.TopSurface = 0
  3802. lb.BottomSurface = 0
  3803. lb.Transparency = 0
  3804. lb.Size = vt(1,1,1)
  3805. 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)))
  3806. lb.Anchored = false
  3807. lb.Parent = char
  3808. local thingery = Instance.new("SpecialMesh",lb)
  3809. thingery.MeshType = "Sphere"
  3810. thingery.Scale = vt(50,50,50)
  3811. game:GetService("Debris"):AddItem(lb, 10)
  3812. local bv = Instance.new("BodyVelocity")
  3813. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3814. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3815. bv.Parent = lb
  3816. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3817. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3818. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3819. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3820. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3821. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3822. local hitted = false
  3823. coroutine.resume(coroutine.create(function()
  3824. while true do
  3825. swait(1)
  3826. if lb.Parent ~= nil and hitted == false then
  3827. 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)
  3828. elseif lb.Parent == nil then
  3829. break
  3830. end
  3831. end
  3832. end))
  3833.  
  3834. game:GetService("Debris"):AddItem(a, 0.1)
  3835.  
  3836. coroutine.resume(coroutine.create(function()
  3837. swait(1)
  3838. lb.Touched:connect(function(hit)
  3839. if hitted == false then
  3840. hitted = true
  3841. lb.Transparency = 1
  3842. lb.Anchored = true
  3843. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3844. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3845. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3846. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3847. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3848. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3849. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3850. CameraEnshaking(1,5)
  3851. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3852. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3853. for i = 0, 9 do
  3854. 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)
  3855. end
  3856. for i = 0, 99 do
  3857. swait()
  3858. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3859. 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)
  3860. end
  3861. end
  3862. end)
  3863. end))
  3864. end
  3865. Overed = true
  3866. orb:Destroy()
  3867. end))
  3868.  
  3869. attack = false
  3870. end
  3871.  
  3872. function DivineBlast()
  3873. attack = true
  3874. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3875. hum.WalkSpeed = 0
  3876. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3877. elocacenter.Anchored = true
  3878. elocacenter.CFrame = sorb.CFrame
  3879. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3880. eloca1.Anchored = true
  3881. eloca1.CFrame = elocacenter.CFrame
  3882. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3883. eloca2.Anchored = true
  3884. eloca2.CFrame = elocacenter.CFrame
  3885. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3886. eloca3.Anchored = true
  3887. eloca3.CFrame = elocacenter.CFrame
  3888. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3889. eloca4.Anchored = true
  3890. eloca4.CFrame = elocacenter.CFrame
  3891. local lookavec = 0
  3892. local speeds = 0
  3893. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3894. for i = 0, 3, 0.1 do
  3895. swait()
  3896. ---
  3897. lookavec = lookavec + 0.1
  3898. speeds = speeds + 10
  3899. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3900. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3901. 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)
  3902.  
  3903. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3904. 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)
  3905.  
  3906. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3907. 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)
  3908.  
  3909. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3910. 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)
  3911. ---
  3912. root.CFrame = FaceMouse()[1]
  3913. 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)
  3914. 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)
  3915. 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)
  3916. 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)
  3917. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3918. 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)
  3919. end
  3920. for i = 0, 3, 0.1 do
  3921. swait()
  3922. ---
  3923. speeds = speeds + 10
  3924. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3925. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3926. 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)
  3927.  
  3928. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3929. 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)
  3930.  
  3931. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3932. 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)
  3933.  
  3934. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3935. 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)
  3936. ---
  3937. root.CFrame = FaceMouse()[1]
  3938. 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)
  3939. 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)
  3940. 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)
  3941. 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)
  3942. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3943. 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)
  3944. end
  3945. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3946. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3947. for i = 0, 3, 0.1 do
  3948. swait()
  3949. ---
  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(40)),.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(-40)),.1)
  3969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.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. coroutine.resume(coroutine.create(function()
  3973. local a = Instance.new("Part",Character)
  3974. a.Name = "Direction"
  3975. a.Anchored = true
  3976. a.BrickColor = bc("White")
  3977. a.Material = "Neon"
  3978. a.Transparency = 0
  3979. a.Shape = "Cylinder"
  3980. a.CanCollide = false
  3981. local a2 = Instance.new("Part",Character)
  3982. a2.Name = "Direction"
  3983. a2.Anchored = true
  3984. a2.BrickColor = bc("Bright yellow")
  3985. a2.Material = "Neon"
  3986. a2.Transparency = 0
  3987. a2.Shape = "Cylinder"
  3988. a2.CanCollide = false
  3989. local b = Instance.new("Part",Character)
  3990. b.Name = "HitDirect"
  3991. b.Anchored = true
  3992. b.BrickColor = bc("Cool yellow")
  3993. b.Material = "Neon"
  3994. b.Transparency = 1
  3995. b.CanCollide = false
  3996. local ray = Ray.new(
  3997. elocacenter.CFrame.p, -- origin
  3998. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3999. )
  4000. local ignore = Character
  4001. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4002. a.BottomSurface = 10
  4003. a.TopSurface = 10
  4004. a2.BottomSurface = 10
  4005. a2.TopSurface = 10
  4006. local distance = (elocacenter.CFrame.p - position).magnitude
  4007. a.Size = Vector3.new(distance, 1, 1)
  4008. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4009. a2.Size = Vector3.new(distance, 1, 1)
  4010. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4011. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4012. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4013. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4014. game:GetService("Debris"):AddItem(a, 10)
  4015. game:GetService("Debris"):AddItem(a2, 10)
  4016. game:GetService("Debris"):AddItem(b, 10)
  4017. local eff = Instance.new("ParticleEmitter",b)
  4018. eff.Texture = "rbxassetid://2273224484"
  4019. eff.LightEmission = 1
  4020. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4021. eff.Rate = 500000
  4022. eff.Lifetime = NumberRange.new(0.5,2)
  4023. 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)})
  4024. 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)})
  4025. eff.Speed = NumberRange.new(20,250)
  4026. eff.Drag = 5
  4027. eff.Rotation = NumberRange.new(-500,500)
  4028. eff.VelocitySpread = 9000
  4029. eff.RotSpeed = NumberRange.new(-50,50)
  4030. coroutine.resume(coroutine.create(function()
  4031. wait(0.25)
  4032. eff.Enabled = false
  4033. end))
  4034. local msh = Instance.new("SpecialMesh",a)
  4035. msh.MeshType = "Cylinder"
  4036. msh.Scale = vt(1,2,2)
  4037. local msh2 = Instance.new("SpecialMesh",a2)
  4038. msh2.MeshType = "Cylinder"
  4039. msh2.Scale = vt(1,2.5,2.5)
  4040. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4041. coroutine.resume(coroutine.create(function()
  4042. for i = 0,10,0.1 do
  4043. swait()
  4044. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4045. a.Transparency = a.Transparency + 0.025
  4046. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4047. a2.Transparency = a2.Transparency + 0.05
  4048. end
  4049. a:Destroy()
  4050. a2:Destroy()
  4051. end))
  4052. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4053. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4054. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4055. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4056. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4057. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4058. MagniDamage(b, 25, 40,65, 0, "Normal")
  4059. for i = 0, 49 do
  4060. 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)
  4061. 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)
  4062. end
  4063. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4064. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4065. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4066. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4067. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4068. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4069. end))
  4070. game:GetService("Debris"):AddItem(elocacenter, 5)
  4071. hum.WalkSpeed = storehumanoidWS
  4072. attack = false
  4073. end
  4074.  
  4075. function StarDivision()
  4076. attack = true
  4077. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4078. for i = 0, 2, 0.1 do
  4079. swait()
  4080. 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)
  4081. 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)
  4082. 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)
  4083. 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)
  4084. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4085. 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)
  4086. end
  4087. local orb = Instance.new("Part", char)
  4088. orb.BrickColor = MAINRUINCOLOR
  4089. orb.CanCollide = false
  4090. orb.FormFactor = 3
  4091. orb.Name = "Ring"
  4092. orb.Material = "Neon"
  4093. orb.Size = Vector3.new(1, 1, 1)
  4094. orb.Transparency = 0
  4095. orb.TopSurface = 0
  4096. orb.BottomSurface = 0
  4097. local orbm = Instance.new("SpecialMesh", orb)
  4098. orbm.MeshType = "Sphere"
  4099. orbm.Name = "SizeMesh"
  4100. orbm.Scale = vt(2,2,2)
  4101. local a = Instance.new("Part",workspace)
  4102. a.Name = "Direction"
  4103. a.Anchored = true
  4104. a.BrickColor = bc("Bright red")
  4105. a.Material = "Neon"
  4106. a.Transparency = 1
  4107. a.CanCollide = false
  4108. local ray = Ray.new(
  4109. sorb.CFrame.p, -- origin
  4110. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4111. )
  4112. local ignore = sorb
  4113. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4114. a.BottomSurface = 10
  4115. a.TopSurface = 10
  4116. local distance = (sorb.CFrame.p - position).magnitude
  4117. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4118. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4119. orb.CFrame = a.CFrame
  4120. a:Destroy()
  4121. local bv = Instance.new("BodyVelocity")
  4122. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4123. bv.velocity = orb.CFrame.lookVector*100
  4124. bv.Parent = orb
  4125. local hitted = false
  4126. game:GetService("Debris"):AddItem(orb, 10)
  4127. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4128. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4129. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4130. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4131. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4132. coroutine.resume(coroutine.create(function()
  4133. while true do
  4134. swait(1)
  4135. if orb.Parent ~= nil and hitted == false then
  4136. 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)
  4137. elseif orb.Parent == nil then
  4138. break
  4139. end
  4140. end
  4141. end))
  4142. coroutine.resume(coroutine.create(function()
  4143. swait(1)
  4144. orb.Touched:connect(function(hit)
  4145. if hitted == false then
  4146. hitted = true
  4147. game:GetService("Debris"):AddItem(orb, 5)
  4148. orb.Transparency = 1
  4149. orb.Anchored = true
  4150. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4151. elocacenter.Anchored = true
  4152. elocacenter.CFrame = orb.CFrame
  4153. elocacenter.Orientation = vt(0,0,0)
  4154. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4155. eloca1.Anchored = true
  4156. eloca1.CFrame = elocacenter.CFrame
  4157. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4158. eloca2.Anchored = true
  4159. eloca2.CFrame = elocacenter.CFrame
  4160. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4161. eloca3.Anchored = true
  4162. eloca3.CFrame = elocacenter.CFrame
  4163. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4164. eloca4.Anchored = true
  4165. eloca4.CFrame = elocacenter.CFrame
  4166. local lookavec = 0
  4167. local speeds = 0
  4168. CameraEnshaking(1,1)
  4169. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4170. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4171. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4172. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4173. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4174. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4175. for i = 0, 99 do
  4176. swait()
  4177. lookavec = lookavec + 1
  4178. speeds = speeds + 0.1
  4179. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4180. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4181. 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)
  4182.  
  4183. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4184. 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)
  4185.  
  4186. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4187. 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)
  4188.  
  4189. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4190. 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)
  4191. end
  4192.  
  4193. for i = 0, 149 do
  4194. swait()
  4195. speeds = speeds + 0.1
  4196. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4197. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4198. 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)
  4199.  
  4200. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4201. 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)
  4202.  
  4203. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4204. 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)
  4205.  
  4206. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4207. 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)
  4208. end
  4209. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4210. if v:FindFirstChild('Head') then
  4211. dmg(v)
  4212. end
  4213. end
  4214. CameraEnshaking(7,30)
  4215. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4216. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4217. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4218. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4219. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4220. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4221. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4222. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4223. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4224. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4225. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4226. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4227. for i = 0, 24 do
  4228. 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)
  4229. 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)
  4230. 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)
  4231. 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)
  4232. end
  4233. coroutine.resume(coroutine.create(function()
  4234. for i = 0, 499 do
  4235. swait(1)
  4236. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4237. 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)
  4238. end
  4239. elocacenter:Destroy()
  4240. eloca1:Destroy()
  4241. eloca2:Destroy()
  4242. eloca3:Destroy()
  4243. eloca4:Destroy()
  4244. end))
  4245. end
  4246. end)
  4247. end))
  4248. attack = false
  4249. end
  4250.  
  4251.  
  4252. function THE_TRUE_POWER_OF_VIOLENCE()
  4253. attack = true
  4254. hum.WalkSpeed = 0
  4255. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4256. for i = 0, 10, 0.1 do
  4257. swait()
  4258. 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)
  4259. 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)
  4260. 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)
  4261. 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)
  4262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4263. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4264. 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)
  4265. end
  4266. local orb = Instance.new("Part", char)
  4267. orb.BrickColor = MAINRUINCOLOR
  4268. orb.CanCollide = false
  4269. orb.FormFactor = 3
  4270. orb.Name = "Ring"
  4271. orb.Material = "Neon"
  4272. orb.Size = Vector3.new(1, 1, 1)
  4273. orb.Transparency = 0
  4274. orb.TopSurface = 0
  4275. orb.BottomSurface = 0
  4276. orb.CFrame = sorb.CFrame
  4277. local orbm = Instance.new("SpecialMesh", orb)
  4278. orbm.MeshType = "Sphere"
  4279. orbm.Name = "SizeMesh"
  4280. orbm.Scale = vt(0,0,0)
  4281. local sbs = Instance.new("BodyPosition", orb)
  4282. sbs.P = 3000
  4283. sbs.D = 1000
  4284. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4285. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4286. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4287. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4288. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4289. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4290. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4291. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4292. for i = 0, 10, 0.1 do
  4293. swait()
  4294. 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)
  4295. 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)
  4296. 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)
  4297. 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)
  4298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4299. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4300. 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)
  4301. end
  4302. orb.Anchored = true
  4303. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4304. elocacenter.Anchored = true
  4305. elocacenter.CFrame = orb.CFrame
  4306. elocacenter.Orientation = vt(0,0,0)
  4307. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4308. eloca1.Anchored = true
  4309. eloca1.CFrame = elocacenter.CFrame
  4310. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4311. eloca2.Anchored = true
  4312. eloca2.CFrame = elocacenter.CFrame
  4313. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4314. eloca3.Anchored = true
  4315. eloca3.CFrame = elocacenter.CFrame
  4316. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4317. eloca4.Anchored = true
  4318. eloca4.CFrame = elocacenter.CFrame
  4319. local lookavec = 0
  4320. local speeds = 0
  4321. CameraEnshaking(1,1)
  4322. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4323. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4324. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4325. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4326. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4327. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4328. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4329. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4330. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4331. for i = 0, 99 do
  4332. swait()
  4333. lookavec = lookavec + 2.5
  4334. speeds = speeds + 0.25
  4335. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4336. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4337. 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)
  4338.  
  4339. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4340. 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)
  4341.  
  4342. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4343. 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)
  4344.  
  4345. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4346. 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)
  4347. end
  4348.  
  4349. for i = 0, 149 do
  4350. swait()
  4351. speeds = speeds + 0.25
  4352. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4353. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4354. 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)
  4355.  
  4356. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4357. 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)
  4358.  
  4359. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4360. 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)
  4361.  
  4362. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4363. 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)
  4364. end
  4365. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4366. for i = 0, 99 do
  4367. swait()
  4368. lookavec = lookavec - 2.5
  4369. speeds = speeds + 0.25
  4370. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4371. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4372. 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)
  4373.  
  4374. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4375. 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)
  4376.  
  4377. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4378. 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)
  4379.  
  4380. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4381. 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)
  4382. end
  4383. local scaled = 0.1*75
  4384. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4385. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4386. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4387. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4388. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4389. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4390. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4391. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4392. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4393. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4394. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4395.  
  4396. for i = 0, 10, 0.1 do
  4397. swait()
  4398. scaled = scaled - 0.001*75
  4399. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4400. 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)
  4401. 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)
  4402. 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)
  4403. 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)
  4404. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4405. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4406. 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)
  4407. end
  4408. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4409. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4410. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4411. for x = 0, 4 do
  4412. for i = 0, 9 do
  4413. 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)
  4414. end
  4415. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4416. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4417. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4418. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4419. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4420. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4421. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4422. for i = 0, 5, 0.1 do
  4423. swait()
  4424. 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)
  4425. 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)
  4426. 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)
  4427. 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)
  4428. 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)
  4429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4432. end
  4433. end
  4434. local speedearn = 0
  4435. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4436. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4437. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4438. for i = 0, 30, 0.1 do
  4439. swait()
  4440. scaled = scaled - 0.001*75/10
  4441. speedearn = speedearn + 0.5
  4442. for i = 0, 4 do
  4443. 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)
  4444. end
  4445. 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)
  4446. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4447. 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)
  4448. 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)
  4449. 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)
  4450. 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)
  4451. 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)
  4452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4454. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4455. end
  4456. orb.Transparency = 1
  4457. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4458. if v:FindFirstChild('Head') then
  4459. dmg(v)
  4460. end
  4461. end
  4462. CameraEnshaking(7,30)
  4463. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4464. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4465. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4466. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4467. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4468. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4469. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4470. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4471. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4472. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4473. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4474. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4475. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4476. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4477. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4480. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4481. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4482. for i = 0, 99 do
  4483. 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)
  4484. 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)
  4485. end
  4486. for i = 0, 24 do
  4487. 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)
  4488. 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)
  4489. 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)
  4490. 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)
  4491. 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)
  4492. end
  4493. game:GetService("Debris"):AddItem(orb, 10)
  4494. hum.WalkSpeed = storehumanoidWS
  4495. attack = false
  4496. end
  4497.  
  4498.  
  4499. function ViolentRing()
  4500. attack = true
  4501. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4502. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4503. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4504. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4505. for i = 0, 2, 0.1 do
  4506. swait()
  4507. local snap = math.random(1,10)
  4508. if snap == 1 then
  4509. 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)
  4510. end
  4511. 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)
  4512. 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)
  4513. 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)
  4514. 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)
  4515. 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)
  4516. 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)
  4517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4518. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4519. 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)
  4520. RootPart.CFrame = FaceMouse()[1]
  4521. end
  4522. local orb = Instance.new("Part", char)
  4523. orb.BrickColor = MAINRUINCOLOR
  4524. orb.CanCollide = false
  4525. orb.FormFactor = 3
  4526. orb.Name = "Ring"
  4527. orb.Material = "Neon"
  4528. orb.Size = Vector3.new(1, 1, 1)
  4529. orb.Transparency = 0
  4530. orb.TopSurface = 0
  4531. orb.BottomSurface = 0
  4532. local orbm = Instance.new("SpecialMesh", orb)
  4533. orbm.MeshType = "Sphere"
  4534. orbm.Name = "SizeMesh"
  4535. orbm.Scale = vt(2,2,2)
  4536. orb.CFrame = mouse.Hit
  4537. local bv = Instance.new("BodyVelocity")
  4538. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4539. bv.velocity = orb.CFrame.lookVector*100
  4540. bv.Parent = orb
  4541. local hitted = false
  4542. coroutine.resume(coroutine.create(function()
  4543. game:GetService("Debris"):AddItem(orb, 5)
  4544. orb.Transparency = 1
  4545. orb.Anchored = true
  4546. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4547. elocacenter.Anchored = true
  4548. elocacenter.CFrame = orb.CFrame
  4549. elocacenter.Orientation = vt(0,0,0)
  4550. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4551. eloca1.Anchored = true
  4552. eloca1.CFrame = elocacenter.CFrame
  4553. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4554. eloca2.Anchored = true
  4555. eloca2.CFrame = elocacenter.CFrame
  4556. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4557. eloca3.Anchored = true
  4558. eloca3.CFrame = elocacenter.CFrame
  4559. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4560. eloca4.Anchored = true
  4561. eloca4.CFrame = elocacenter.CFrame
  4562. local lookavec = 0
  4563. local speeds = 0
  4564. CameraEnshaking(1,1)
  4565. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4566. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4567. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4568. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4569. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4570. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4571. for i = 0, 24 do
  4572. swait()
  4573. lookavec = lookavec + 3.5
  4574. speeds = speeds + 1
  4575. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4576. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4577. 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)
  4578.  
  4579. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4580. 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)
  4581.  
  4582. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4583. 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)
  4584.  
  4585. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4586. 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)
  4587. end
  4588.  
  4589. local risen = 0
  4590. for i = 0, 49 do
  4591. swait()
  4592. risen = risen + 0.05
  4593. speeds = speeds + 0.1
  4594. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4595. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4596. 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)
  4597.  
  4598. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4599. 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)
  4600.  
  4601. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4602. 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)
  4603.  
  4604. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4605. 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)
  4606. end
  4607. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4608. if v:FindFirstChild('Head') then
  4609. dmg(v)
  4610. end
  4611. end
  4612. CameraEnshaking(4,10)
  4613. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4614. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4615. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4616. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4617. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4618. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4619. local eff = Instance.new("ParticleEmitter",elocacenter)
  4620. eff.Texture = "rbxassetid://2273224484"
  4621. eff.LightEmission = 1
  4622. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4623. eff.Rate = 1000000
  4624. eff.Lifetime = NumberRange.new(0.5,2)
  4625. 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)})
  4626. 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)})
  4627. eff.Speed = NumberRange.new(20,250)
  4628. eff.Drag = 5
  4629. eff.Rotation = NumberRange.new(-500,500)
  4630. eff.VelocitySpread = 5000000
  4631. eff.RotSpeed = NumberRange.new(-50,50)
  4632. coroutine.resume(coroutine.create(function()
  4633. wait(1)
  4634. eff.Enabled = false
  4635. end))
  4636. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4637. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4638. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4639. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4640. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4641. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4642. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4643. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4644. for i = 0, 24 do
  4645. 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)
  4646. 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)
  4647. 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)
  4648. 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)
  4649. end
  4650. coroutine.resume(coroutine.create(function()
  4651. wait(10)
  4652. elocacenter:Destroy()
  4653. eloca1:Destroy()
  4654. eloca2:Destroy()
  4655. eloca3:Destroy()
  4656. eloca4:Destroy()
  4657. end))
  4658. end))
  4659. attack = false
  4660. end
  4661.  
  4662. function UniversalCollapse()
  4663. attack = true
  4664. local speedearn = 0
  4665. hum.WalkSpeed = 0
  4666. local sbs = Instance.new("BodyPosition", root)
  4667. sbs.P = 3000
  4668. sbs.D = 1000
  4669. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4670. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4671. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4672. for i = 0, 85, 0.1 do
  4673. swait()
  4674. speedearn = speedearn + 0.1
  4675. 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)
  4676. 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)
  4677. 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)
  4678. 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)
  4679. 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)
  4680. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4681. 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)
  4682. 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)
  4683. 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)
  4684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4685. 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)
  4686. 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)
  4687. end
  4688. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  4689. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4690. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4691. for i = 0, 25, 0.1 do
  4692. swait()
  4693. speedearn = speedearn + 0.1
  4694. 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)
  4695. 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)
  4696. 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)
  4697. 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)
  4698. 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)
  4699. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4700. 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)
  4701. 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)
  4702. 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)
  4703. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4704. 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)
  4705. 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)
  4706. end
  4707. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4708. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4709. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4710. CameraEnshaking(5,50)
  4711. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4712. for i = 0, 2 do
  4713. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4714. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4715. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4716. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4717. end
  4718. for i = 0, 49 do
  4719. 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)
  4720. 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)
  4721. 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)
  4722. 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)
  4723. end
  4724. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4725. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4726. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4727. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4728. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4729. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4730. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4731. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4732. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4733. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4734. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4735. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4736. for i = 0, 99 do
  4737. 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)
  4738. 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)
  4739. end
  4740. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4741. if v:FindFirstChild('Head') then
  4742. dmg(v)
  4743. end
  4744. end
  4745. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4746. sbs:Destroy()
  4747. hum.WalkSpeed = storehumanoidWS
  4748. attack = false
  4749. end
  4750.  
  4751.  
  4752. function ChaosEND()
  4753. attack = true
  4754. local speedearn = 0
  4755. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4756. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4757. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4758. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4759. for i = 0, 15, 0.1 do
  4760. swait()
  4761. speedearn = speedearn + 0.25
  4762. 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)
  4763. 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)
  4764. 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)
  4765. 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)
  4766. 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)
  4767. 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)
  4768. 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)
  4769. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4770. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4771. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4772. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4773. end
  4774. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4775. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4776. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4777. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4778. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4779. CameraEnshaking(5,25)
  4780. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4781. if v:FindFirstChild('Head') then
  4782. dmg(v)
  4783. end
  4784. end
  4785. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4786. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4787. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4788. for i = 0, 3, 0.1 do
  4789. swait()
  4790. 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)
  4791. 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)
  4792. 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)
  4793. 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)
  4794. 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)
  4795. 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)
  4796. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4797. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4798. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4799. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4800. end
  4801. attack = false
  4802. end
  4803.  
  4804. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4805. local orb = Instance.new("Part", char)
  4806. orb.Anchored = true
  4807. orb.BrickColor = color
  4808. orb.CanCollide = false
  4809. orb.FormFactor = 3
  4810. orb.Name = "Ring"
  4811. orb.Material = "Neon"
  4812. orb.Size = Vector3.new(1, 1, 1)
  4813. orb.Transparency = 0
  4814. orb.TopSurface = 0
  4815. orb.BottomSurface = 0
  4816. local orbm = Instance.new("SpecialMesh", orb)
  4817. orbm.MeshType = "Sphere"
  4818. orb.CFrame = positted
  4819. orbm.Name = "SizeMesh"
  4820. orbm.Scale = vt(1,1,1)
  4821. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4822. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4823. --[[for i = 0, 2 do
  4824. 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)
  4825. end]]--
  4826. coroutine.resume(coroutine.create(function()
  4827. wait(timer)
  4828. CameraEnshaking(3,ShakePower)
  4829. orb.Transparency = 1
  4830. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4831. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4832. --[[for i = 0, 4 do
  4833. 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)
  4834. end]]--
  4835. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4836. wait(3)
  4837. orb:Destroy()
  4838. end))
  4839. end
  4840.  
  4841. function orb_spawn(positted,timer)
  4842. local randomcol = math.random(1,2)
  4843. local orb = Instance.new("Part", char)
  4844. orb.Anchored = true
  4845. if randomcol == 1 then
  4846. orb.BrickColor = BrickColor.new("White")
  4847. elseif randomcol == 2 then
  4848. orb.BrickColor = BrickColor.new("Really black")
  4849. end
  4850. orb.CanCollide = false
  4851. orb.FormFactor = 3
  4852. orb.Name = "Ring"
  4853. orb.Material = "Neon"
  4854. orb.Size = Vector3.new(1, 1, 1)
  4855. orb.Transparency = 0
  4856. orb.TopSurface = 0
  4857. orb.BottomSurface = 0
  4858. local orbm = Instance.new("SpecialMesh", orb)
  4859. orbm.MeshType = "Sphere"
  4860. orb.CFrame = positted
  4861. orbm.Name = "SizeMesh"
  4862. orbm.Scale = vt(1,1,1)
  4863. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4864. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4865. for i = 0, 2 do
  4866. 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)
  4867. end
  4868. coroutine.resume(coroutine.create(function()
  4869. wait(timer)
  4870. CameraEnshaking(3,2)
  4871. orb.Transparency = 1
  4872. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4873. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4874. for i = 0, 4 do
  4875. 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)
  4876. end
  4877. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4878. wait(3)
  4879. orb:Destroy()
  4880. end))
  4881. end
  4882.  
  4883. function scattercorrupt()
  4884. attack = true
  4885. hum.WalkSpeed = 0
  4886. for i = 0, 2, 0.1 do
  4887. swait()
  4888. 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)
  4889. 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)
  4890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4892. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4893. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4894. end
  4895. local rot = 0
  4896. local randomrotations = math.random(1,2)
  4897. local lookv = 2.5
  4898. local power = 7
  4899. local radm = math.random(1,3)
  4900. if radm == 1 then
  4901. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4902. elseif radm == 2 then
  4903. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4904. elseif radm == 3 then
  4905. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4906. end
  4907. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4908. for i = 0, 1, 0.1 do
  4909. swait()
  4910. 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)
  4911. 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)
  4912. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4913. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4914. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4915. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4916. end
  4917. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4918. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4919. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4920. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4921. for i = 0, 9 do
  4922. 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)
  4923. end
  4924. local hite = Instance.new("Part", char)
  4925. hite.Anchored = true
  4926. hite.CanCollide = false
  4927. hite.FormFactor = 3
  4928. hite.Name = "Ring"
  4929. hite.Material = "Neon"
  4930. hite.Size = Vector3.new(1, 1, 1)
  4931. hite.Transparency = 1
  4932. hite.TopSurface = 0
  4933. hite.BottomSurface = 0
  4934. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4935. local rem = Instance.new("Part", char)
  4936. rem.Anchored = true
  4937. rem.CanCollide = false
  4938. rem.FormFactor = 3
  4939. rem.Name = "Ring"
  4940. rem.Material = "Neon"
  4941. rem.Size = Vector3.new(1, 1, 1)
  4942. rem.Transparency = 1
  4943. rem.TopSurface = 0
  4944. rem.BottomSurface = 0
  4945. rem.CFrame = hite.CFrame
  4946. local rem2 = rem:Clone()
  4947. rem2.Parent = char
  4948. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4949. local rem3 = rem:Clone()
  4950. rem3.Parent = char
  4951. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4952. local rem4 = rem:Clone()
  4953. rem4.Parent = char
  4954. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4955. hite:Destroy()
  4956. coroutine.resume(coroutine.create(function()
  4957. for i = 0, 24 do
  4958. swait(1)
  4959. if randomrotations == 1 then
  4960. rot = rot + 1
  4961. elseif randomrotations == 2 then
  4962. rot = rot - 1
  4963. end
  4964. power = power + 0.5
  4965. lookv = lookv + 7.5
  4966. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4967. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4968. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4969. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4970. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4971. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4972. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4973. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4974. end
  4975. end))
  4976. wait(2)
  4977. hum.WalkSpeed = storehumanoidWS
  4978. attack = false
  4979. end
  4980. function yinyangi()
  4981. attack = true
  4982. for i = 0, 2, 0.1 do
  4983. swait()
  4984. 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)
  4985. 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)
  4986. 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)
  4987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4988. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4989. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4990. end
  4991. local bv = Instance.new("BodyVelocity")
  4992. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4993. bv.velocity = root.CFrame.lookVector*175
  4994. bv.Parent = root
  4995. for Rotations = 0, 9 do
  4996. for i = 0, 1, 0.5 do
  4997. swait()
  4998. bv.velocity = root.CFrame.lookVector*175
  4999. 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)
  5000. 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)
  5001. 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)
  5002. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5003. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5004. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5005. end
  5006. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5007. for i = 0, 1, 0.5 do
  5008. swait()
  5009. bv.velocity = root.CFrame.lookVector*175
  5010. 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)
  5011. 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)
  5012. 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)
  5013. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5014. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5015. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5016. end
  5017. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5018. for i = 0, 1, 0.5 do
  5019. swait()
  5020. bv.velocity = root.CFrame.lookVector*175
  5021. 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)
  5022. 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)
  5023. 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)
  5024. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5025. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5026. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5027. end
  5028. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5029. for i = 0, 1, 0.5 do
  5030. swait()
  5031. bv.velocity = root.CFrame.lookVector*175
  5032. 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)
  5033. 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)
  5034. 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)
  5035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5036. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5037. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5038. end
  5039. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5040. end
  5041. bv:Destroy()
  5042. attack = false
  5043. end
  5044.  
  5045. function createBGCircle(size,parent,color)
  5046. local bgui = Instance.new("BillboardGui",parent)
  5047. bgui.Size = UDim2.new(size, 0, size, 0)
  5048. local imgc = Instance.new("ImageLabel",bgui)
  5049. imgc.BackgroundTransparency = 1
  5050. imgc.ImageTransparency = 0
  5051. imgc.Size = UDim2.new(1,0,1,0)
  5052. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5053. imgc.ImageColor3 = color
  5054. return bgui,imgc
  5055. end
  5056.  
  5057. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5058. local bgui,imgc = createBGCircle(size,guipar,color)
  5059. bgui.AlwaysOnTop = true
  5060. imgc.Image = "rbxassetid://" ..img
  5061. local rrot = math.random(1,2)
  5062. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5063. coroutine.resume(coroutine.create(function()
  5064. for i = 0, 24*delay do
  5065. swait()
  5066. if rotationenabled == true then
  5067. if rrot == 1 then
  5068. imgc.Rotation = imgc.Rotation + rotsp
  5069. elseif rrot == 2 then
  5070. imgc.Rotation = imgc.Rotation - rotsp
  5071. end
  5072. end
  5073. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5074. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5075. end
  5076. bgui:Destroy()
  5077. end))
  5078. end
  5079. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5080. for i, v in pairs(mw2:GetChildren()) do
  5081. if v:IsA("Part") then
  5082. v.BrickColor = one
  5083. v.Material = "Neon"
  5084. end
  5085. end
  5086. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5087. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5088. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5089. tr1.Color = ColorSequence.new(one.Color)
  5090. tr2.Color = ColorSequence.new(one.Color)
  5091. tr3.Color = ColorSequence.new(one.Color)
  5092. for i, v in pairs(mw1:GetChildren()) do
  5093. if v:IsA("Part") then
  5094. if secondaryenabled == false then
  5095. v.Transparency = 1
  5096. elseif secondaryenabled == true then
  5097. v.Transparency = 0
  5098. end
  5099. v.BrickColor = two
  5100. v.Material = "Neon"
  5101. end
  5102. end
  5103. if secondaryenabled == false then
  5104. tl1.Enabled = false
  5105. tl2.Enabled = false
  5106. tl3.Enabled = false
  5107. elseif secondaryenabled == true then
  5108. tl1.Enabled = true
  5109. tl2.Enabled = true
  5110. tl3.Enabled = true
  5111. end
  5112. tl1.Color = ColorSequence.new(two.Color)
  5113. tl2.Color = ColorSequence.new(two.Color)
  5114. tl3.Color = ColorSequence.new(two.Color)
  5115. for i, v in pairs(m:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = three
  5118. v.Material = "Ice"
  5119. end
  5120. end
  5121. for i, v in pairs(m2:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.BrickColor = four
  5124. v.Material = "Ice"
  5125. end
  5126. end
  5127. for i, v in pairs(m3:GetChildren()) do
  5128. if v:IsA("Part") then
  5129. v.BrickColor = five
  5130. v.Material = "Neon"
  5131. end
  5132. end
  5133. for i, v in pairs(extrawingmod1:GetChildren()) do
  5134. if v:IsA("Part") then
  5135. v.Transparency = exonetran
  5136. v.BrickColor = exone
  5137. v.Material = "Neon"
  5138. end
  5139. end
  5140. for i, v in pairs(extrawingmod2:GetChildren()) do
  5141. if v:IsA("Part") then
  5142. v.Transparency = extwotran
  5143. v.BrickColor = extwo
  5144. v.Material = "Neon"
  5145. end
  5146. end
  5147. end
  5148.  
  5149.  
  5150. function normalmog()
  5151. attack = true
  5152. hum.WalkSpeed = 0
  5153. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5154. for i = 0,6,0.1 do
  5155. swait()
  5156. 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)
  5157. 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)
  5158. 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)
  5159. 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)
  5160. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5161. 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)
  5162. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5163. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5164. end
  5165. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5166. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5167. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5168. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5169. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5170. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5171. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5172. rainbowmode = false
  5173. chaosmode = false
  5174. ModeOfGlitch = 1
  5175. storehumanoidWS = 16
  5176. newTheme("rbxassetid://1255569288",48.6,1,1.25)
  5177. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5178. CameraEnshaking(5,2.5)
  5179. MAINRUINCOLOR = BrickColor.new("Really red")
  5180. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5181. for i = 0, 49 do
  5182. 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)
  5183. end
  5184. for i = 0, 24 do
  5185. 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)
  5186. 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"))
  5187. end
  5188. for i = 0,3,0.1 do
  5189. 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)
  5190. end
  5191. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5192. for i = 0,2,0.1 do
  5193. swait()
  5194. 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)
  5195. 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)
  5196. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5197. 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)
  5198. 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)
  5199. 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)
  5200. end
  5201. hum.WalkSpeed = storehumanoidWS
  5202. attack = false
  5203. end
  5204.  
  5205. function attackone()
  5206. attack = true
  5207. local keptcolor = MAINRUINCOLOR
  5208. for i = 0,1,0.1 do
  5209. swait()
  5210. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5211. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5212. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5213. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5214. 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)
  5215. 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)
  5216. end
  5217. local distlook = 5
  5218. coroutine.resume(coroutine.create(function()
  5219. for i = 0, 4 do
  5220. swait(2)
  5221. CameraEnshaking(2,3)
  5222. local hite = Instance.new("Part", char)
  5223. hite.Anchored = true
  5224. hite.CanCollide = false
  5225. hite.FormFactor = 3
  5226. hite.Name = "Ring"
  5227. hite.Material = "Neon"
  5228. hite.Size = Vector3.new(1, 1, 1)
  5229. hite.Transparency = 1
  5230. hite.TopSurface = 0
  5231. hite.BottomSurface = 0
  5232. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5233. 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)
  5234. 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)
  5235. 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)
  5236. 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)
  5237. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5238. for i = 0, 14 do
  5239. local rsiz = math.random(5,20)
  5240. 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)
  5241. end
  5242. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5243. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5244. game:GetService("Debris"):AddItem(hite, 5)
  5245. distlook = distlook + 10
  5246. end
  5247. end))
  5248. for i = 0,1,0.1 do
  5249. swait()
  5250. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5251. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5252. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5253. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5254. 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)
  5255. 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)
  5256. end
  5257. attack = false
  5258. end
  5259.  
  5260. function attacktwo()
  5261. attack = true
  5262. hum.WalkSpeed = 2
  5263. local keptcolor = MAINRUINCOLOR
  5264. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5265. 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)
  5266. 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)
  5267. for i = 0, 14 do
  5268. 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)
  5269. end
  5270. for i = 0,1,0.1 do
  5271. swait()
  5272. 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)
  5273. 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)
  5274. 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)
  5275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5277. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5278. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5279. end
  5280. for i = 0, 1 do
  5281. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5282. for i = 0,1,0.6 do
  5283. swait()
  5284. 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)
  5285. 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"))
  5286. 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)
  5287. 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)
  5288. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5290. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5291. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5292. end
  5293. for i = 0,1,0.6 do
  5294. swait()
  5295. 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)
  5296. 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"))
  5297. 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)
  5298. 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)
  5299. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5301. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5302. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5303. end
  5304. for i = 0,1,0.6 do
  5305. swait()
  5306. 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)
  5307. 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"))
  5308. 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)
  5309. 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)
  5310. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5312. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5313. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5314. end
  5315. for i = 0,1,0.6 do
  5316. swait()
  5317. 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)
  5318. 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"))
  5319. 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)
  5320. 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)
  5321. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5322. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5323. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5324. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5325. end
  5326. local rot = 0
  5327. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5328. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5329. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5330. CreateMesh(dis,"Sphere",10,1,10)
  5331. local at1 = Instance.new("Attachment",dis)
  5332. at1.Position = vt(-5,0,0)
  5333. local at2 = Instance.new("Attachment",dis)
  5334. at2.Position = vt(5,0,0)
  5335. local trl = Instance.new('Trail',wed)
  5336. trl.Attachment0 = at1
  5337. trl.Attachment1 = at2
  5338. trl.Texture = "rbxassetid://1049219073"
  5339. trl.LightEmission = 1
  5340. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5341. trl.Color = ColorSequence.new(dis.Color)
  5342. trl.Lifetime = 0.6
  5343. local a = Instance.new("Part",workspace)
  5344. a.Name = "Direction"
  5345. a.Anchored = true
  5346. a.BrickColor = bc("Bright red")
  5347. a.Material = "Neon"
  5348. a.Transparency = 1
  5349. a.CanCollide = false
  5350. local ray = Ray.new(
  5351. dis.CFrame.p, -- origin
  5352. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5353. )
  5354. local ignore = dis
  5355. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5356. a.BottomSurface = 10
  5357. a.TopSurface = 10
  5358. local distance = (dis.CFrame.p - position).magnitude
  5359. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5360. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5361. dis.CFrame = a.CFrame
  5362. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5363. a:Destroy()
  5364. local bv = Instance.new("BodyVelocity")
  5365. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5366. bv.velocity = dis.CFrame.lookVector*250
  5367. bv.Parent = dis
  5368. game:GetService("Debris"):AddItem(dis, 5)
  5369. local hitted = false
  5370. coroutine.resume(coroutine.create(function()
  5371. dis.Touched:connect(function(hit)
  5372. if hitted == false and hit.Parent ~= char then
  5373. hitted = true
  5374. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5375. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5376. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5377. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5378. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5379. coroutine.resume(coroutine.create(function()
  5380. for i = 0, 9 do
  5381. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5382. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5383. local at1 = Instance.new("Attachment",disr)
  5384. at1.Position = vt(-5,0,0)
  5385. local at2 = Instance.new("Attachment",disr)
  5386. at2.Position = vt(5,0,0)
  5387. local trl = Instance.new('Trail',disr)
  5388. trl.Attachment0 = at1
  5389. trl.FaceCamera = true
  5390. trl.Attachment1 = at2
  5391. trl.Texture = "rbxassetid://2342682798"
  5392. trl.LightEmission = 1
  5393. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5394. trl.Color = ColorSequence.new(keptcolor.Color)
  5395. trl.Lifetime = 0.5
  5396. local bv = Instance.new("BodyVelocity")
  5397. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5398. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5399. bv.Parent = disr
  5400. local val = 0
  5401. coroutine.resume(coroutine.create(function()
  5402. swait(30)
  5403. for i = 0, 9 do
  5404. swait()
  5405. val = val + 0.1
  5406. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5407. end
  5408. game:GetService("Debris"):AddItem(disr, 3)
  5409. end))
  5410. end
  5411. local eff = Instance.new("ParticleEmitter",dis)
  5412. eff.Texture = "rbxassetid://2273224484"
  5413. eff.LightEmission = 1
  5414. eff.Color = ColorSequence.new(keptcolor.Color)
  5415. eff.Rate = 500000
  5416. eff.Lifetime = NumberRange.new(0.5,2)
  5417. 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)})
  5418. 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)})
  5419. eff.Speed = NumberRange.new(20,250)
  5420. eff.Drag = 5
  5421. eff.Rotation = NumberRange.new(-500,500)
  5422. eff.VelocitySpread = 9000
  5423. eff.RotSpeed = NumberRange.new(-50,50)
  5424. wait(0.25)
  5425. eff.Enabled = false
  5426. end))
  5427. for i = 0, 9 do
  5428. 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"))
  5429. end
  5430. for i = 0, 19 do
  5431. 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)
  5432. end
  5433. coroutine.resume(coroutine.create(function()
  5434. for i = 0, 19 do
  5435. swait()
  5436. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5437. end
  5438. hum.CameraOffset = vt(0,0,0)
  5439. end))
  5440. dis.Anchored = true
  5441. dis.Transparency = 1
  5442. wait(8)
  5443. dis:Destroy()
  5444. end
  5445. end)
  5446. end))
  5447. rot = rot - 15
  5448. end
  5449. for i = 0,2,0.1 do
  5450. swait()
  5451. 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)
  5452. 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)
  5453. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5455. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5456. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5457. end
  5458. attack = false
  5459. hum.WalkSpeed = storehumanoidWS
  5460. end
  5461.  
  5462. function attackthree()
  5463. attack = true
  5464. local keptcolor = MAINRUINCOLOR
  5465. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5466. for i = 0,2,0.1 do
  5467. swait()
  5468. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5469. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5470. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5471. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5472. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5473. 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)
  5474. 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)
  5475. end
  5476. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5477. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5478. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5479. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5480. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5481. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5482. for i = 0, 24 do
  5483. 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"))
  5484. end
  5485. for i = 0,4,0.1 do
  5486. swait()
  5487. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5488. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5489. CreateMesh(dis,"Sphere",1,1,1)
  5490. dis.Anchored = true
  5491. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5492. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5493. coroutine.resume(coroutine.create(function()
  5494. swait(30)
  5495. dis.Transparency = 1
  5496. coroutine.resume(coroutine.create(function()
  5497. for i = 0, 19 do
  5498. swait()
  5499. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5500. end
  5501. hum.CameraOffset = vt(0,0,0)
  5502. end))
  5503. coroutine.resume(coroutine.create(function()
  5504. local eff = Instance.new("ParticleEmitter",dis)
  5505. eff.Texture = "rbxassetid://2273224484"
  5506. eff.LightEmission = 1
  5507. eff.Color = ColorSequence.new(dis.Color)
  5508. eff.Rate = 500000
  5509. eff.Lifetime = NumberRange.new(0.5,2)
  5510. 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)})
  5511. 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)})
  5512. eff.Speed = NumberRange.new(50,450)
  5513. eff.Drag = 5
  5514. eff.Rotation = NumberRange.new(-500,500)
  5515. eff.VelocitySpread = 9000
  5516. eff.RotSpeed = NumberRange.new(-50,50)
  5517. wait(0.125)
  5518. eff.Enabled = false
  5519. end))
  5520. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5521. for i = 0, 2 do
  5522. 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)
  5523. end
  5524. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5525. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5526. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5527. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5528. end))
  5529. game:GetService("Debris"):AddItem(dis, 5)
  5530. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5531. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5532. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5533. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5534. 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)
  5535. 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)
  5536. end
  5537. attack = false
  5538. end
  5539. ----------------------------------- Abilities
  5540.  
  5541. function ExtinctiveHeartbreak()
  5542. local targetted = nil
  5543. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5544. targetted = mouse.Target.Parent
  5545. end
  5546. if targetted ~= nil then
  5547. attack = true
  5548. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5549. for i = 0, 9 do
  5550. 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)
  5551. end
  5552. for i = 0, 24 do
  5553. 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)
  5554. end
  5555. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5556. local originalpos = root.CFrame
  5557. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5558. for i = 0, 9 do
  5559. 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)
  5560. end
  5561. for i = 0, 24 do
  5562. 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)
  5563. end
  5564. hum.WalkSpeed = 0
  5565. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5566. local radm = math.random(1,3)
  5567. if radm == 1 then
  5568. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5569. elseif radm == 2 then
  5570. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5571. elseif radm == 3 then
  5572. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5573. end
  5574. for i = 0,2,0.1 do
  5575. swait()
  5576. 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)
  5577. 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)
  5578. 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)
  5579. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5580. 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)
  5581. 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)
  5582. end
  5583. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5584. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5585. for i = 0,2,0.1 do
  5586. swait()
  5587. coroutine.resume(coroutine.create(function()
  5588. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5589. for i,v in pairs(targetted:GetChildren()) do
  5590. if v:IsA("Part") or v:IsA("MeshPart") then
  5591. v.Velocity = vt(0,0,0)
  5592. end
  5593. end
  5594. end))
  5595. 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)
  5596. 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)
  5597. 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)
  5598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5599. 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)
  5600. 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)
  5601. end
  5602. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5603. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5604. for i = 0, 1 do
  5605. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5606. end
  5607. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5608. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5609. for i = 0,4,0.1 do
  5610. swait()
  5611. coroutine.resume(coroutine.create(function()
  5612. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5613. 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)))
  5614. local at1 = Instance.new("Attachment",dis)
  5615. at1.Position = vt(-25000,0,0)
  5616. local at2 = Instance.new("Attachment",dis)
  5617. at2.Position = vt(25000,0,0)
  5618. local trl = Instance.new('Trail',dis)
  5619. trl.Attachment0 = at1
  5620. trl.FaceCamera = true
  5621. trl.Attachment1 = at2
  5622. trl.Texture = "rbxassetid://1049219073"
  5623. trl.LightEmission = 1
  5624. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5625. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5626. trl.Lifetime = 5
  5627. local bv = Instance.new("BodyVelocity")
  5628. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5629. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5630. bv.Parent = dis
  5631. game:GetService("Debris"):AddItem(dis, 5)
  5632. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5633. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5634. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5635. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5636. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5637. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5638. 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)
  5639. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5640. for i = 0, 2 do
  5641. 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"))
  5642. end
  5643. 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)
  5644. for i,v in pairs(targetted:GetChildren()) do
  5645. if v:IsA("Part") or v:IsA("MeshPart") then
  5646. v.Velocity = vt(0,0,0)
  5647. end
  5648. end
  5649. end))
  5650. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5651. 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)
  5652. 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)
  5653. 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)
  5654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5655. 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)
  5656. 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)
  5657. end
  5658. hum.CameraOffset = vt(0,0,0)
  5659. for i = 0, 49 do
  5660. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5661. 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)))
  5662. local at1 = Instance.new("Attachment",dis)
  5663. at1.Position = vt(-50000,0,0)
  5664. local at2 = Instance.new("Attachment",dis)
  5665. at2.Position = vt(50000,0,0)
  5666. local trl = Instance.new('Trail',dis)
  5667. trl.Attachment0 = at1
  5668. trl.FaceCamera = true
  5669. trl.Attachment1 = at2
  5670. trl.Texture = "rbxassetid://1049219073"
  5671. trl.LightEmission = 1
  5672. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5673. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5674. trl.Lifetime = 5
  5675. local bv = Instance.new("BodyVelocity")
  5676. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5677. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5678. bv.Parent = dis
  5679. game:GetService("Debris"):AddItem(dis, 5)
  5680. end
  5681. for i = 0, 49 do
  5682. 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)
  5683. 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"))
  5684. end
  5685. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5686. for i = 0, 1 do
  5687. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5688. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5689. end
  5690. for i = 0, 4 do
  5691. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5692. end
  5693. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5694. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5695. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5696. dmg(targetted)
  5697. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5698. for i = 0, 9 do
  5699. 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)
  5700. end
  5701. for i = 0, 24 do
  5702. 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)
  5703. end
  5704. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5705. root.CFrame = originalpos
  5706. for i = 0, 9 do
  5707. 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)
  5708. end
  5709. for i = 0, 24 do
  5710. 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)
  5711. end
  5712. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5713. attack = false
  5714. hum.WalkSpeed = storehumanoidWS
  5715. end
  5716. end
  5717.  
  5718. function CorruptionEvent()
  5719. attack = true
  5720. hum.WalkSpeed = 0
  5721. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5722. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5723. local keptcolor = MAINRUINCOLOR
  5724. for i = 0,4,0.1 do
  5725. swait()
  5726. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5727. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5728. 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)
  5729. 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)
  5730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5732. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5733. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5734. end
  5735. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5736. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5737. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5738. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5739. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5740. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5741. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5742. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5743. hum.CameraOffset = vt(0,0,0)
  5744. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5745. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5746. for i = 0, 24 do
  5747. 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"))
  5748. end
  5749. local rrot = 0
  5750. coroutine.resume(coroutine.create(function()
  5751. for i = 0, 4 do
  5752. rrot = rrot + 45
  5753. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5754. xa.Anchored = true
  5755. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5756. xb.Anchored = true
  5757. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5758. xc.Anchored = true
  5759. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5760. xd.Anchored = true
  5761. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5762. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5763. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5764. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5765. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5766. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5767. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5768. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5769. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5770. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5771. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5772. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5773. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5774. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5775. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5776. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5777. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5778. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5779. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5780. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5781. for i = 0, 9 do
  5782. 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"))
  5783. 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"))
  5784. 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"))
  5785. 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"))
  5786. end
  5787. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5788. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5789. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5790. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5791. 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)
  5792. 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)
  5793. 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)
  5794. 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)
  5795. 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))
  5796. 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))
  5797. 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))
  5798. 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))
  5799. game:GetService("Debris"):AddItem(xa, 5)
  5800. game:GetService("Debris"):AddItem(xb, 5)
  5801. game:GetService("Debris"):AddItem(xc, 5)
  5802. game:GetService("Debris"):AddItem(xd, 5)
  5803. coroutine.resume(coroutine.create(function()
  5804. for i = 0, 19 do
  5805. swait()
  5806. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5807. end
  5808. hum.CameraOffset = vt(0,0,0)
  5809. end))
  5810. swait(9)
  5811. end
  5812. end))
  5813. for i = 0,2,0.1 do
  5814. swait()
  5815. 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)
  5816. 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)
  5817. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5818. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5819. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5820. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5821. end
  5822. attack = false
  5823. hum.WalkSpeed = storehumanoidWS
  5824. end
  5825.  
  5826. function EndGROUND()
  5827. attack = true
  5828. hum.WalkSpeed = 0
  5829. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5830. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5831. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5832. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5833. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5834. local keptcolor = MAINRUINCOLOR
  5835. for i = 0,4,0.1 do
  5836. swait()
  5837. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5838. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5839. 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"))
  5840. 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)
  5841. 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)
  5842. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5843. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5844. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5845. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5846. end
  5847. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5848. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5849. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5850. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5851. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5852. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5853. coroutine.resume(coroutine.create(function()
  5854. local shval = 10
  5855. for i = 0, 99 do
  5856. swait()
  5857. shval = shval - 0.1
  5858. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5859. end
  5860. hum.CameraOffset = vt(0,0,0)
  5861. end))
  5862. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5863. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5864. for i = 0, 24 do
  5865. 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"))
  5866. end
  5867. local rrot = 0
  5868. local xam = 1
  5869. coroutine.resume(coroutine.create(function()
  5870. for i = 0, 14 do
  5871. --swait()
  5872. rrot = rrot + 40*xam
  5873. xam = xam + 0.25
  5874. local bonus = xam
  5875. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5876. xa.Anchored = true
  5877. xa.Color = Color3.new(0,0,0)
  5878. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5879. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5880. local xc = 0
  5881. coroutine.resume(coroutine.create(function()
  5882. for i = 0, 99 do
  5883. swait()
  5884. xc = xc + 0.01
  5885. xa.Color = Color3.new(xc,0,0)
  5886. end
  5887. xa.Transparency = 1
  5888. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5889. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5890. for i = 0, 9 do
  5891. 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"))
  5892. end
  5893. 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)
  5894. 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)
  5895. 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))
  5896. game:GetService("Debris"):AddItem(xa, 5)
  5897. coroutine.resume(coroutine.create(function()
  5898. for i = 0, 19 do
  5899. swait()
  5900. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5901. end
  5902. hum.CameraOffset = vt(0,0,0)
  5903. end))
  5904. end))
  5905. end
  5906. end))
  5907. for i = 0,2,0.1 do
  5908. swait()
  5909. 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)
  5910. 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)
  5911. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5912. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5913. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5914. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5915. end
  5916. attack = false
  5917. hum.WalkSpeed = storehumanoidWS
  5918. end
  5919.  
  5920. function HeavenlyDisk()
  5921. attack = true
  5922. hum.WalkSpeed = 2
  5923. local keptcolor = MAINRUINCOLOR
  5924. local radm = math.random(1,3)
  5925. if radm == 1 then
  5926. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5927. elseif radm == 2 then
  5928. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5929. elseif radm == 3 then
  5930. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5931. end
  5932. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5933. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5934. 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)
  5935. 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)
  5936. for i = 0, 14 do
  5937. 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)
  5938. end
  5939. for i = 0,2,0.1 do
  5940. swait()
  5941. 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)
  5942. 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)
  5943. 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)
  5944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5945. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5947. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5948. end
  5949. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5950. for i = 0,1,0.6 do
  5951. swait()
  5952. 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)
  5953. 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"))
  5954. 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)
  5955. 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)
  5956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5959. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5960. end
  5961. for i = 0,1,0.6 do
  5962. swait()
  5963. 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)
  5964. 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"))
  5965. 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)
  5966. 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)
  5967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5970. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5971. end
  5972. for i = 0,1,0.6 do
  5973. swait()
  5974. 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)
  5975. 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"))
  5976. 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)
  5977. 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)
  5978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5981. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5982. end
  5983. for i = 0,1,0.6 do
  5984. swait()
  5985. 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)
  5986. 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"))
  5987. 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)
  5988. 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)
  5989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5992. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5993. end
  5994. local rot = 15
  5995. for i = 0, 2 do
  5996. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5997. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5998. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5999. CreateMesh(dis,"Sphere",10,1,10)
  6000. local at1 = Instance.new("Attachment",dis)
  6001. at1.Position = vt(-5,0,0)
  6002. local at2 = Instance.new("Attachment",dis)
  6003. at2.Position = vt(5,0,0)
  6004. local trl = Instance.new('Trail',wed)
  6005. trl.Attachment0 = at1
  6006. trl.Attachment1 = at2
  6007. trl.Texture = "rbxassetid://1049219073"
  6008. trl.LightEmission = 1
  6009. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6010. trl.Color = ColorSequence.new(dis.Color)
  6011. trl.Lifetime = 0.6
  6012. local a = Instance.new("Part",workspace)
  6013. a.Name = "Direction"
  6014. a.Anchored = true
  6015. a.BrickColor = bc("Bright red")
  6016. a.Material = "Neon"
  6017. a.Transparency = 1
  6018. a.CanCollide = false
  6019. local ray = Ray.new(
  6020. dis.CFrame.p, -- origin
  6021. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6022. )
  6023. local ignore = dis
  6024. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6025. a.BottomSurface = 10
  6026. a.TopSurface = 10
  6027. local distance = (dis.CFrame.p - position).magnitude
  6028. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6029. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6030. dis.CFrame = a.CFrame
  6031. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6032. a:Destroy()
  6033. local bv = Instance.new("BodyVelocity")
  6034. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6035. bv.velocity = dis.CFrame.lookVector*250
  6036. bv.Parent = dis
  6037. game:GetService("Debris"):AddItem(dis, 5)
  6038. local hitted = false
  6039. coroutine.resume(coroutine.create(function()
  6040. dis.Touched:connect(function(hit)
  6041. if hitted == false and hit.Parent ~= char then
  6042. hitted = true
  6043. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6044. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6045. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6046. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6047. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6048. coroutine.resume(coroutine.create(function()
  6049. for i = 0, 9 do
  6050. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6051. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6052. local at1 = Instance.new("Attachment",disr)
  6053. at1.Position = vt(-2,0,0)
  6054. local at2 = Instance.new("Attachment",disr)
  6055. at2.Position = vt(2,0,0)
  6056. local trl = Instance.new('Trail',disr)
  6057. trl.Attachment0 = at1
  6058. trl.FaceCamera = true
  6059. trl.Attachment1 = at2
  6060. trl.Texture = "rbxassetid://2342682798"
  6061. trl.LightEmission = 1
  6062. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6063. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6064. trl.Lifetime = 0.5
  6065. local bv = Instance.new("BodyVelocity")
  6066. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6067. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6068. bv.Parent = disr
  6069. local val = 0
  6070. coroutine.resume(coroutine.create(function()
  6071. swait(30)
  6072. for i = 0, 9 do
  6073. swait()
  6074. val = val + 0.1
  6075. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6076. end
  6077. game:GetService("Debris"):AddItem(disr, 3)
  6078. end))
  6079. end
  6080. local eff = Instance.new("ParticleEmitter",dis)
  6081. eff.Texture = "rbxassetid://2273224484"
  6082. eff.LightEmission = 1
  6083. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6084. eff.Rate = 500000
  6085. eff.Lifetime = NumberRange.new(0.5,2)
  6086. 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)})
  6087. 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)})
  6088. eff.Speed = NumberRange.new(20,250)
  6089. eff.Drag = 5
  6090. eff.Rotation = NumberRange.new(-500,500)
  6091. eff.VelocitySpread = 9000
  6092. eff.RotSpeed = NumberRange.new(-50,50)
  6093. wait(0.25)
  6094. eff.Enabled = false
  6095. end))
  6096. for i = 0, 9 do
  6097. 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"))
  6098. end
  6099. for i = 0, 19 do
  6100. 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)
  6101. end
  6102. coroutine.resume(coroutine.create(function()
  6103. for i = 0, 19 do
  6104. swait()
  6105. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6106. end
  6107. hum.CameraOffset = vt(0,0,0)
  6108. end))
  6109. dis.Anchored = true
  6110. dis.Transparency = 1
  6111. wait(8)
  6112. dis:Destroy()
  6113. end
  6114. end)
  6115. end))
  6116. rot = rot - 15
  6117. end
  6118. for i = 0,2,0.1 do
  6119. swait()
  6120. 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)
  6121. 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)
  6122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6125. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6126. end
  6127. attack = false
  6128. hum.WalkSpeed = storehumanoidWS
  6129. end
  6130.  
  6131. function FuckMeSidewaysAndCallMeGay()
  6132. local whom = (mouse.Target and mouse.Target.Parent)
  6133. --[[local fuckThisBoi = false
  6134. if(whom and whom:FindFirstChildOfClass'Humanoid')then
  6135. for _,v in next, ODers do
  6136. if(v == whom)then
  6137. fuckThisBoi = false
  6138. end
  6139. end
  6140. end
  6141. if(not fuckThisBoi)then
  6142. attack = false
  6143. warn'to fuck that boi you need to target them with z'
  6144. else]]
  6145. if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then
  6146. local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso'
  6147. local hum = whom:FindFirstChildOfClass'Humanoid'
  6148. local ocf = RootPart.CFrame
  6149. hum.WalkSpeed = 0
  6150.  
  6151. hed.Anchored = true
  6152. RootPart.Anchored = true
  6153. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6154. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6155. for i = 0, 9 do
  6156. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6157. end
  6158. for i = 0, 24 do
  6159. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6160. end
  6161. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6162. attack = true
  6163. bosschatfunc("I love you <3",MAINRUINCOLOR.Color,1)
  6164. local speed = 1
  6165. local heck;
  6166. local stopitlol = false;
  6167. heck = mouse.KeyUp:connect(function(k)
  6168. if(k:lower() == 'x')then
  6169. stopitlol = true
  6170. heck:disconnect()
  6171. end
  6172. end)
  6173. local times = 0
  6174. repeat swait()
  6175. speed = speed - .01
  6176. times = times + 1
  6177. if(speed < .1)then
  6178. speed = .1
  6179. end
  6180. for i = 0, speed, .05 do
  6181. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6182. swait()
  6183. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6185. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6187. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6188. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6189. end
  6190. CameraEnshaking(5,5)
  6191.  
  6192. CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1)
  6193.  
  6194. for i = 0, speed, .05 do
  6195. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6196. swait()
  6197. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6198. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6199. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6200. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6201. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6202. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6203. end
  6204. until stopitlol and times >= 3
  6205. for i = 1, 3 do
  6206. for i = 0, 1.5, .05 do
  6207. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6208. swait()
  6209. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4)
  6210. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6211. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4)
  6212. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6213. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6214. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4)
  6215. end
  6216. CameraEnshaking(5,25)
  6217.  
  6218. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6219.  
  6220.  
  6221. coroutine.resume(coroutine.create(function()
  6222. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6223. bld.LightEmission = 0.1
  6224. bld.Texture = "rbxassetid://284205403"
  6225. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6226. bld.Rate = 500
  6227. bld.Lifetime = NumberRange.new(1)
  6228. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6229. bld.Acceleration = vt(0,-25,0)
  6230. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6231. bld.Speed = NumberRange.new(10,50)
  6232. bld.EmissionDirection = "Back"
  6233. bld.VelocitySpread = 25
  6234. bld.Rotation = NumberRange.new(-500,500)
  6235. bld.RotSpeed = NumberRange.new(-500,500)
  6236. bld.Enabled = false
  6237. bld:Emit(250)
  6238. end))
  6239. coroutine.resume(coroutine.create(function()
  6240. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6241. bld.LightEmission = 0.1
  6242. bld.Texture = "rbxassetid://284205403"
  6243. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6244. bld.Rate = 500
  6245. bld.Lifetime = NumberRange.new(1)
  6246. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6247. bld.Acceleration = vt(0,-25,0)
  6248. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6249. bld.Speed = NumberRange.new(10,50)
  6250. bld.EmissionDirection = "Back"
  6251. bld.VelocitySpread = 25
  6252. bld.Rotation = NumberRange.new(-500,500)
  6253. bld.RotSpeed = NumberRange.new(-500,500)
  6254. bld.Enabled = false
  6255. bld:Emit(250)
  6256. end))
  6257. for i = 0, 1.5, .05 do
  6258. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6259. swait()
  6260. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4)
  6261. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6262. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4)
  6263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6266. end
  6267. end
  6268. for i = 0, 4, .05 do
  6269. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6270. swait()
  6271. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1)
  6272. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  6273. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1)
  6274. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1)
  6275. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6276. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1)
  6277. end
  6278. CameraEnshaking(5,25)
  6279. CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1)
  6280. CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75)
  6281.  
  6282. dmg(whom)
  6283. coroutine.resume(coroutine.create(function()
  6284. bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso"))
  6285. bld.LightEmission = 0.1
  6286. bld.Texture = "rbxassetid://284205403"
  6287. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6288. bld.Rate = 500
  6289. bld.Lifetime = NumberRange.new(1)
  6290. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6291. bld.Acceleration = vt(0,-25,0)
  6292. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6293. bld.Speed = NumberRange.new(10,50)
  6294. bld.EmissionDirection = "Back"
  6295. bld.VelocitySpread = 25
  6296. bld.Rotation = NumberRange.new(-500,500)
  6297. bld.RotSpeed = NumberRange.new(-500,500)
  6298. bld.Enabled = true
  6299. end))
  6300. coroutine.resume(coroutine.create(function()
  6301. bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso"))
  6302. bld.LightEmission = 0.1
  6303. bld.Texture = "rbxassetid://284205403"
  6304. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  6305. bld.Rate = 500
  6306. bld.Lifetime = NumberRange.new(1)
  6307. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6308. bld.Acceleration = vt(0,-25,0)
  6309. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  6310. bld.Speed = NumberRange.new(10,50)
  6311. bld.EmissionDirection = "Back"
  6312. bld.VelocitySpread = 25
  6313. bld.Rotation = NumberRange.new(-500,500)
  6314. bld.RotSpeed = NumberRange.new(-500,500)
  6315. bld.Enabled = true
  6316. end))
  6317. for i = 0, 3, .05 do
  6318. RootPart.CFrame = hed.CFrame*cf(0,0,1.35)
  6319. swait()
  6320. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4)
  6321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
  6322. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4)
  6323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8)
  6324. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6325. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4)
  6326. end
  6327.  
  6328. RootPart.CFrame = ocf
  6329. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6330. for i = 0, 9 do
  6331. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Pink"),0)
  6332. end
  6333. for i = 0, 24 do
  6334. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0)
  6335. end
  6336. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink"))
  6337. RootPart.Anchored = false
  6338. Humanoid.WalkSpeed = storehumanoidWS
  6339. bosschatfunc("Hehehehehe <3",MAINRUINCOLOR.Color,0.5)
  6340. attack = false
  6341. end
  6342. end
  6343.  
  6344. function RapidBurst()
  6345. attack = true
  6346. hum.WalkSpeed = 0
  6347. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6348. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6349. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6350. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
  6351. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
  6352. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6353. local keptcolor = MAINRUINCOLOR
  6354. for i = 0,8,0.1 do
  6355. swait()
  6356. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6357. 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())
  6358. 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)
  6359. 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)
  6360. 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)
  6361. 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)
  6362. 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)
  6363. 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)
  6364. 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)
  6365. end
  6366. for i = 0, 99 do
  6367. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6368. 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)))
  6369. local at1 = Instance.new("Attachment",dis)
  6370. at1.Position = vt(-25000,0,0)
  6371. local at2 = Instance.new("Attachment",dis)
  6372. at2.Position = vt(25000,0,0)
  6373. local trl = Instance.new('Trail',dis)
  6374. trl.Attachment0 = at1
  6375. trl.FaceCamera = true
  6376. trl.Attachment1 = at2
  6377. trl.Texture = "rbxassetid://1049219073"
  6378. trl.LightEmission = 1
  6379. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6380. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6381. trl.Lifetime = 5
  6382. local bv = Instance.new("BodyVelocity")
  6383. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6384. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6385. bv.Parent = dis
  6386. game:GetService("Debris"):AddItem(dis, 5)
  6387. end
  6388. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6389. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6390. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6391. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6392. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6393. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6394. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6395. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6396. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6397. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6398. hum.CameraOffset = vt(0,0,0)
  6399. for i = 0, 24 do
  6400. 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())
  6401. end
  6402. local distam = 0
  6403. coroutine.resume(coroutine.create(function()
  6404. for i = 0, 99 do
  6405. wait()
  6406. distam = distam + 1
  6407. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6408. xa.Anchored = true
  6409. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6410. game:GetService("Debris"):AddItem(xa, 5)
  6411. for i = 0, 4 do
  6412. 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())
  6413. end
  6414. coroutine.resume(coroutine.create(function()
  6415. local eff = Instance.new("ParticleEmitter",xa)
  6416. eff.Texture = "rbxassetid://2273224484"
  6417. eff.LightEmission = 1
  6418. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6419. eff.Rate = 500000
  6420. eff.Lifetime = NumberRange.new(1,3)
  6421. 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)})
  6422. 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)})
  6423. eff.Speed = NumberRange.new(50,500)
  6424. eff.Drag = 5
  6425. eff.Rotation = NumberRange.new(-500,500)
  6426. eff.VelocitySpread = 9000
  6427. eff.RotSpeed = NumberRange.new(-50,50)
  6428. wait(0.25)
  6429. eff.Enabled = false
  6430. end))
  6431. coroutine.resume(coroutine.create(function()
  6432. for i = 0, 19 do
  6433. swait()
  6434. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6435. end
  6436. hum.CameraOffset = vt(0,0,0)
  6437. end))
  6438. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6439. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6440. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6441. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6442. end
  6443. end))
  6444. attack = false
  6445. hum.WalkSpeed = storehumanoidWS
  6446. end
  6447.  
  6448.  
  6449. function FallenOrbs()
  6450. attack = true
  6451. hum.WalkSpeed = 2
  6452. local keptcolor = MAINRUINCOLOR
  6453. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6454. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6455. local radm = math.random(1,3)
  6456. if radm == 1 then
  6457. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6458. elseif radm == 2 then
  6459. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6460. elseif radm == 3 then
  6461. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6462. end
  6463. coroutine.resume(coroutine.create(function()
  6464. for i = 0, 29 do
  6465. swait(2)
  6466. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6467. dis.Anchored = true
  6468. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6469. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6470. CreateMesh(dis,"Sphere",2,2,2)
  6471. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6472. 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"))
  6473. coroutine.resume(coroutine.create(function()
  6474. wait(0.5)
  6475. dis.Anchored = false
  6476. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6477. local at1 = Instance.new("Attachment",dis)
  6478. at1.Position = vt(-1,0,0)
  6479. local at2 = Instance.new("Attachment",dis)
  6480. at2.Position = vt(1,0,0)
  6481. local trl = Instance.new('Trail',dis)
  6482. trl.Attachment0 = at1
  6483. trl.FaceCamera = true
  6484. trl.Attachment1 = at2
  6485. trl.Texture = "rbxassetid://1049219073"
  6486. trl.LightEmission = 1
  6487. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6488. trl.Color = ColorSequence.new(dis.Color)
  6489. trl.Lifetime = 0.6
  6490. local a = Instance.new("Part",workspace)
  6491. a.Name = "Direction"
  6492. a.Anchored = true
  6493. a.BrickColor = bc("Bright red")
  6494. a.Material = "Neon"
  6495. a.Transparency = 1
  6496. a.CanCollide = false
  6497. local ray = Ray.new(
  6498. dis.CFrame.p, -- origin
  6499. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6500. )
  6501. local ignore = dis
  6502. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6503. a.BottomSurface = 10
  6504. a.TopSurface = 10
  6505. local distance = (dis.CFrame.p - position).magnitude
  6506. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6507. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6508. dis.CFrame = a.CFrame
  6509. a:Destroy()
  6510. local bv = Instance.new("BodyVelocity")
  6511. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6512. bv.velocity = dis.CFrame.lookVector*500
  6513. bv.Parent = dis
  6514. game:GetService("Debris"):AddItem(dis, 5)
  6515. local hitted = false
  6516. coroutine.resume(coroutine.create(function()
  6517. dis.Touched:connect(function(hit)
  6518. if hitted == false and hit.Parent ~= char then
  6519. hitted = true
  6520. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6521. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6522. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6523. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6524. coroutine.resume(coroutine.create(function()
  6525. for i = 0, 4 do
  6526. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6527. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6528. local at1 = Instance.new("Attachment",disr)
  6529. at1.Position = vt(-10,0,0)
  6530. local at2 = Instance.new("Attachment",disr)
  6531. at2.Position = vt(10,0,0)
  6532. local trl = Instance.new('Trail',disr)
  6533. trl.Attachment0 = at1
  6534. trl.FaceCamera = true
  6535. trl.Attachment1 = at2
  6536. trl.Texture = "rbxassetid://2342682798"
  6537. trl.LightEmission = 1
  6538. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6539. trl.Color = ColorSequence.new(disr.Color)
  6540. trl.Lifetime = 0.5
  6541. local bv = Instance.new("BodyVelocity")
  6542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6543. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6544. bv.Parent = disr
  6545. local val = 0
  6546. coroutine.resume(coroutine.create(function()
  6547. swait(30)
  6548. for i = 0, 9 do
  6549. swait()
  6550. val = val + 0.1
  6551. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6552. end
  6553. game:GetService("Debris"):AddItem(disr, 3)
  6554. end))
  6555. end
  6556. local eff = Instance.new("ParticleEmitter",dis)
  6557. eff.Texture = "rbxassetid://1049219073"
  6558. eff.LightEmission = 1
  6559. eff.Color = ColorSequence.new(dis.Color)
  6560. eff.Rate = 500000
  6561. eff.Lifetime = NumberRange.new(0.5,2)
  6562. 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)})
  6563. 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)})
  6564. eff.Speed = NumberRange.new(20,250)
  6565. eff.Drag = 5
  6566. eff.Rotation = NumberRange.new(-500,500)
  6567. eff.VelocitySpread = 9000
  6568. eff.RotSpeed = NumberRange.new(-50,50)
  6569. wait(0.5)
  6570. eff.Enabled = false
  6571. end))
  6572. for i = 0, 4 do
  6573. 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"))
  6574. end
  6575. coroutine.resume(coroutine.create(function()
  6576. for i = 0, 19 do
  6577. swait()
  6578. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6579. end
  6580. hum.CameraOffset = vt(0,0,0)
  6581. end))
  6582. dis.Anchored = true
  6583. dis.Transparency = 1
  6584. wait(8)
  6585. dis:Destroy()
  6586. end
  6587. end)
  6588. end))
  6589. end))
  6590. end
  6591. end))
  6592. for i = 0,9,0.1 do
  6593. swait()
  6594. 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)
  6595. 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)
  6596. 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)
  6597. 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)
  6598. 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)
  6599. 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)
  6600. 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)
  6601. end
  6602. attack = false
  6603. hum.WalkSpeed = storehumanoidWS
  6604. end
  6605.  
  6606. function CyberSlash()
  6607. local posit = -2
  6608. attack = true
  6609. hum.WalkSpeed = 5
  6610. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6611. local radm = math.random(1,3)
  6612. if radm == 1 then
  6613. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6614. elseif radm == 2 then
  6615. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6616. elseif radm == 3 then
  6617. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6618. end
  6619. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6620. for i = 0,2,0.1 do
  6621. swait()
  6622. 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)
  6623. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6624. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6625. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6626. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6627. 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)
  6628. 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)
  6629. end
  6630. for i = 0, 2 do
  6631. CameraEnshaking(1,2)
  6632. local hite = Instance.new("Part", char)
  6633. hite.Anchored = true
  6634. hite.CanCollide = false
  6635. hite.FormFactor = 3
  6636. hite.Name = "Ring"
  6637. hite.Material = "Neon"
  6638. hite.Size = Vector3.new(1, 1, 1)
  6639. hite.Transparency = 1
  6640. hite.TopSurface = 0
  6641. hite.BottomSurface = 0
  6642. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6643. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6644. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6645. coroutine.resume(coroutine.create(function()
  6646. for i = 0, 1 do
  6647. swait()
  6648. 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)
  6649. 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)
  6650. 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)
  6651. end
  6652. end))
  6653. 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)
  6654. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6655. game:GetService("Debris"):AddItem(hite, 5)
  6656. posit = posit + 2
  6657. end
  6658. for i = 0,1,0.1 do
  6659. swait()
  6660. 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)
  6661. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6662. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6663. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6664. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6665. 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)
  6666. 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)
  6667. end
  6668. for i = 0,1,0.1 do
  6669. swait()
  6670. 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)
  6671. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6672. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6673. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6674. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6675. 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)
  6676. 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)
  6677. end
  6678. posit = -6
  6679. for i = 0, 6 do
  6680. CameraEnshaking(1,3)
  6681. local hite = Instance.new("Part", char)
  6682. hite.Anchored = true
  6683. hite.CanCollide = false
  6684. hite.FormFactor = 3
  6685. hite.Name = "Ring"
  6686. hite.Material = "Neon"
  6687. hite.Size = Vector3.new(1, 1, 1)
  6688. hite.Transparency = 1
  6689. hite.TopSurface = 0
  6690. hite.BottomSurface = 0
  6691. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6692. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6693. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6694. 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)
  6695. coroutine.resume(coroutine.create(function()
  6696. for i = 0, 2 do
  6697. swait()
  6698. 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)
  6699. 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)
  6700. 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)
  6701. end
  6702. end))
  6703. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6704. game:GetService("Debris"):AddItem(hite, 5)
  6705. posit = posit + 2
  6706. end
  6707. for i = 0,1,0.1 do
  6708. swait()
  6709. 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)
  6710. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6711. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6712. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6713. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6714. 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)
  6715. 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)
  6716. end
  6717. hum.WalkSpeed = storehumanoidWS
  6718. attack = false
  6719. end
  6720.  
  6721. function EquinoxOrbs()
  6722. hum.WalkSpeed = 0
  6723. attack = true
  6724. local radm = math.random(1,3)
  6725. if radm == 1 then
  6726. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6727. elseif radm == 2 then
  6728. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6729. elseif radm == 3 then
  6730. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6731. end
  6732. for i = 0,1,0.1 do
  6733. swait()
  6734. 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)
  6735. 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)
  6736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6737. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6738. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6739. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6740. end
  6741. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6742. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6743. for i = 0, 24 do
  6744. 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"))
  6745. end
  6746. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6747. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6748. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6749. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6750. for i = 0,4,0.1 do
  6751. swait()
  6752. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6753. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6754. CreateMesh(dis,"Sphere",1,1,1)
  6755. dis.Anchored = true
  6756. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6757. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6758. CreateMesh(dis2,"Sphere",1,1,1)
  6759. dis2.Anchored = true
  6760. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6761. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6762. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6763. coroutine.resume(coroutine.create(function()
  6764. swait(60)
  6765. dis.Transparency = 1
  6766. dis2.Transparency = 1
  6767. coroutine.resume(coroutine.create(function()
  6768. for i = 0, 19 do
  6769. swait()
  6770. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6771. end
  6772. hum.CameraOffset = vt(0,0,0)
  6773. end))
  6774. coroutine.resume(coroutine.create(function()
  6775. local eff = Instance.new("ParticleEmitter",dis)
  6776. eff.Texture = "rbxassetid://2273224484"
  6777. eff.LightEmission = 1
  6778. eff.Color = ColorSequence.new(dis.Color)
  6779. eff.Rate = 500000
  6780. eff.Lifetime = NumberRange.new(0.5,2)
  6781. 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)})
  6782. 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)})
  6783. eff.Speed = NumberRange.new(50,450)
  6784. eff.Drag = 5
  6785. eff.Rotation = NumberRange.new(-500,500)
  6786. eff.VelocitySpread = 9000
  6787. eff.RotSpeed = NumberRange.new(-50,50)
  6788. local eff2 = eff:Clone()
  6789. eff2.Parent = dis2
  6790. eff2.LightEmission = 0
  6791. eff2.Color = ColorSequence.new(dis2.Color)
  6792. wait(0.25)
  6793. eff.Enabled = false
  6794. eff2.Enabled = false
  6795. end))
  6796. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6797. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6798. for i = 0, 2 do
  6799. 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)
  6800. 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)
  6801. end
  6802. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6803. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6804. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6805. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6806. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6807. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6808. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6809. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6810. end))
  6811. game:GetService("Debris"):AddItem(dis, 5)
  6812. game:GetService("Debris"):AddItem(dis2, 5)
  6813. 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)
  6814. 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)
  6815. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6817. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6818. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6819. end
  6820. attack = false
  6821. hum.WalkSpeed = storehumanoidWS
  6822. end
  6823. function FallenDEMISE()
  6824. attack = true
  6825. hum.WalkSpeed = 0
  6826. local keptcolor = MAINRUINCOLOR
  6827. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6828. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6829. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6830. for i = 0, 15, 0.1 do
  6831. swait()
  6832. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6833. 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)))
  6834. local at1 = Instance.new("Attachment",dis)
  6835. at1.Position = vt(-25000,0,0)
  6836. local at2 = Instance.new("Attachment",dis)
  6837. at2.Position = vt(25000,0,0)
  6838. local trl = Instance.new('Trail',dis)
  6839. trl.Attachment0 = at1
  6840. trl.FaceCamera = true
  6841. trl.Attachment1 = at2
  6842. trl.Texture = "rbxassetid://1049219073"
  6843. trl.LightEmission = 1
  6844. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6845. trl.Color = ColorSequence.new(dis.Color)
  6846. trl.Lifetime = 5
  6847. local bv = Instance.new("BodyVelocity")
  6848. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6849. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6850. bv.Parent = dis
  6851. game:GetService("Debris"):AddItem(dis, 1)
  6852. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6853. 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"))
  6854. 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"))
  6855. 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)
  6856. 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)
  6857. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6858. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6859. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6860. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6861. end
  6862. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6863. for i = 0, 30, 0.1 do
  6864. swait()
  6865. coroutine.resume(coroutine.create(function()
  6866. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6867. if v:FindFirstChild('Head') then
  6868. dmg(v)
  6869. end
  6870. end
  6871. end))
  6872. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6873. 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)))
  6874. local at1 = Instance.new("Attachment",dis)
  6875. at1.Position = vt(-50000,0,0)
  6876. local at2 = Instance.new("Attachment",dis)
  6877. at2.Position = vt(50000,0,0)
  6878. local trl = Instance.new('Trail',dis)
  6879. trl.Attachment0 = at1
  6880. trl.FaceCamera = true
  6881. trl.Attachment1 = at2
  6882. trl.Texture = "rbxassetid://1049219073"
  6883. trl.LightEmission = 1
  6884. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6885. trl.Color = ColorSequence.new(dis.Color)
  6886. trl.Lifetime = 10
  6887. local bv = Instance.new("BodyVelocity")
  6888. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6889. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6890. bv.Parent = dis
  6891. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6892. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6893. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6894. 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"))
  6895. 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"))
  6896. 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"))
  6897. 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"))
  6898. for i = 0, 2 do
  6899. 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)
  6900. end
  6901. 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)
  6902. 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)
  6903. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6904. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6905. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6906. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6907. end
  6908. attack = false
  6909. hum.WalkSpeed = storehumanoidWS
  6910. end
  6911.  
  6912. function SpeedDrop()
  6913. attack = true
  6914. hum.WalkSpeed = 0
  6915. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6916. local poste = 3
  6917. local rotation = 0
  6918. local rate = 0
  6919. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6920. for i = 0, 124 do
  6921. swait()
  6922. rotation = rotation + rate
  6923. poste = poste + 0.1
  6924. rate = rate + 0.1
  6925. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6926. 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)
  6927. 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)
  6928. 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)
  6929. 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)
  6930. 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)
  6931. 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)
  6932. 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)
  6933. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6935. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6936. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6937. end
  6938. CameraEnshaking(3,7)
  6939. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6940. local loc = Instance.new("Part", char)
  6941. loc.BrickColor = MAINRUINCOLOR
  6942. loc.CanCollide = false
  6943. loc.FormFactor = 3
  6944. loc.Name = "Ring"
  6945. loc.Material = "Neon"
  6946. loc.Size = Vector3.new(1, 1, 1)
  6947. loc.Transparency = 1
  6948. loc.TopSurface = 0
  6949. loc.BottomSurface = 0
  6950. loc.Anchored = true
  6951. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6952. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6953. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6954. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6955. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6956. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6957. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6958. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6959. coroutine.resume(coroutine.create(function()
  6960. local eff = Instance.new("ParticleEmitter",loc)
  6961. eff.Texture = "rbxassetid://363275192"
  6962. eff.LightEmission = 0.95
  6963. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6964. eff.Rate = 10000
  6965. eff.Lifetime = NumberRange.new(1)
  6966. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6967. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6968. eff.Speed = NumberRange.new(100,500)
  6969. eff.Drag = 5
  6970. eff.Rotation = NumberRange.new(-500,500)
  6971. eff.VelocitySpread = 9000
  6972. eff.RotSpeed = NumberRange.new(-50,50)
  6973. wait(0.5)
  6974. eff.Enabled = false
  6975. end))
  6976. for i = 0, 49 do
  6977. 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)
  6978. end
  6979. for i = 0, 9 do
  6980. 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)
  6981. end
  6982. game:GetService("Debris"):AddItem(loc, 5)
  6983. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6984. hum.WalkSpeed = storehumanoidWS
  6985. attack = false
  6986. end
  6987.  
  6988. function cutesigh()
  6989. attack = true
  6990. hum.WalkSpeed = 0
  6991. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6992. local blush = Instance.new("Decal",hed)
  6993. blush.Texture = "rbxassetid://898404027"
  6994. blush.Face = "Front"
  6995. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6996. for i = 0, 9, 0.1 do
  6997. swait()
  6998. 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)
  6999. 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)
  7000. 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)
  7001. 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)
  7002. 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)
  7003. 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)
  7004. end
  7005. coroutine.resume(coroutine.create(function()
  7006. for i = 0, 49 do
  7007. swait()
  7008. blush.Transparency = blush.Transparency + 0.02
  7009. end
  7010. blush:Destroy()
  7011. end))
  7012. hum.WalkSpeed = storehumanoidWS
  7013. attack = false
  7014. end
  7015.  
  7016. function smiter()
  7017. local targetted = nil
  7018. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7019. targetted = mouse.Target.Parent
  7020. end
  7021. if targetted ~= nil then
  7022. RootPart.CFrame = FaceMouse()[1]
  7023. attack = true
  7024. local radm = math.random(1,3)
  7025. if radm == 1 then
  7026. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  7027. elseif radm == 2 then
  7028. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  7029. elseif radm == 3 then
  7030. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  7031. end
  7032. hum.WalkSpeed = 0
  7033. coroutine.resume(coroutine.create(function()
  7034. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  7035. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  7036. local vel = Instance.new("BodyPosition", targetted.Head)
  7037. vel.P = 12500
  7038. vel.D = 1000
  7039. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7040. vel.position = targetted.Head.CFrame.p
  7041. end))
  7042. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  7043. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  7044. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  7045. for i = 0,4,0.1 do
  7046. swait()
  7047. 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)
  7048. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  7049. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  7050. 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)
  7051. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7052. 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)
  7053. 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)
  7054. end
  7055. coroutine.resume(coroutine.create(function()
  7056. CameraEnshaking(6,5)
  7057. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  7058. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  7059. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  7060. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  7061. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7062. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  7063. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7064. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  7065. coroutine.resume(coroutine.create(function()
  7066. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7067. eff.Texture = "rbxassetid://2273224484"
  7068. eff.LightEmission = 1
  7069. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  7070. eff.Rate = 500000
  7071. eff.Lifetime = NumberRange.new(0.5,2)
  7072. 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)})
  7073. 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)})
  7074. eff.Speed = NumberRange.new(20,250)
  7075. eff.Drag = 5
  7076. eff.Rotation = NumberRange.new(-500,500)
  7077. eff.VelocitySpread = 9000
  7078. eff.RotSpeed = NumberRange.new(-50,50)
  7079. wait(0.25)
  7080. eff.Enabled = false
  7081. local eff = Instance.new("ParticleEmitter",targetted.Head)
  7082. eff.Texture = "rbxassetid://363275192"
  7083. eff.LightEmission = 0.95
  7084. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7085. eff.Rate = 10000
  7086. eff.Lifetime = NumberRange.new(1.5)
  7087. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7088. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7089. eff.Speed = NumberRange.new(25,150)
  7090. eff.Drag = 5
  7091. eff.Rotation = NumberRange.new(-500,500)
  7092. eff.VelocitySpread = 9000
  7093. eff.RotSpeed = NumberRange.new(-50,50)
  7094. local eff2 = eff:Clone()
  7095. eff2.Parent = targetted.Head
  7096. eff2.Texture = "rbxassetid://284205403"
  7097. eff2.Rate = 10000
  7098. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7099. eff2.Drag = 5
  7100. eff2.Rotation = NumberRange.new(-500,500)
  7101. eff2.VelocitySpread = 9000
  7102. wait(0.5)
  7103. eff2.Enabled = false
  7104. eff.Enabled = false
  7105. end))
  7106. for i = 0, 9 do
  7107. 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)
  7108. end
  7109. for i = 0, 49 do
  7110. local rsiz = math.random(10,50)
  7111. 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)
  7112. end
  7113. game:GetService("Debris"):AddItem(vel,1)
  7114. dmg(targetted)
  7115. end))
  7116. for i = 0,1,0.1 do
  7117. swait()
  7118. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7119. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7120. 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)
  7121. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7122. 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)
  7123. 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)
  7124. end
  7125. attack = false
  7126. hum.WalkSpeed = storehumanoidWS
  7127. end
  7128. end
  7129.  
  7130. function shytaunty()
  7131. attack = true
  7132. hum.WalkSpeed = 0
  7133. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7134. local blush = Instance.new("Decal",hed)
  7135. blush.Texture = "rbxassetid://898404027"
  7136. blush.Face = "Front"
  7137. for i = 0, 13, 0.1 do
  7138. swait()
  7139. 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)
  7140. 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)
  7141. 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)
  7142. 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)
  7143. 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)
  7144. 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)
  7145. end
  7146. coroutine.resume(coroutine.create(function()
  7147. for i = 0, 49 do
  7148. swait()
  7149. blush.Transparency = blush.Transparency + 0.02
  7150. end
  7151. blush:Destroy()
  7152. end))
  7153. hum.WalkSpeed = storehumanoidWS
  7154. attack = false
  7155. end
  7156.  
  7157. function PureBomb()
  7158. attack = true
  7159. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7160. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7161. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7162. local orb = Instance.new("Part", char)
  7163. orb.Anchored = true
  7164. orb.BrickColor = BrickColor.new("Toothpaste")
  7165. orb.CanCollide = false
  7166. orb.FormFactor = 3
  7167. orb.Name = "Ring"
  7168. orb.Material = "Neon"
  7169. orb.Size = Vector3.new(1, 1, 1)
  7170. orb.Transparency = 0
  7171. orb.TopSurface = 0
  7172. orb.BottomSurface = 0
  7173. local orbm = Instance.new("SpecialMesh", orb)
  7174. orbm.MeshType = "Sphere"
  7175. orbm.Name = "SizeMesh"
  7176. orbm.Scale = vt(0,0,0)
  7177. local scaled = 0.1
  7178. local posid = 0
  7179. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7180. for i = 0, 5, 0.1 do
  7181. swait()
  7182. scaled = scaled - 0.001
  7183. posid = posid - scaled
  7184. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7185. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7186. 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)
  7187. 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)
  7188. 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)
  7189. 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)
  7190. 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)
  7191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7192. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7193. 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)
  7194. end
  7195. for i = 0, 2, 0.1 do
  7196. swait()
  7197. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7198. 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)
  7199. 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)
  7200. 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)
  7201. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7202. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7203. 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)
  7204. end
  7205. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7206. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7207. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7208. coroutine.resume(coroutine.create(function()
  7209. orb.Anchored = false
  7210. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7211. local a = Instance.new("Part",workspace)
  7212. a.Name = "Direction"
  7213. a.Anchored = true
  7214. a.BrickColor = bc("Bright red")
  7215. a.Material = "Neon"
  7216. a.Transparency = 1
  7217. a.CanCollide = false
  7218. local ray = Ray.new(
  7219. orb.CFrame.p, -- origin
  7220. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7221. )
  7222. local ignore = orb
  7223. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7224. a.BottomSurface = 10
  7225. a.TopSurface = 10
  7226. local distance = (orb.CFrame.p - position).magnitude
  7227. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7228. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7229. orb.CFrame = a.CFrame
  7230. a:Destroy()
  7231. local bv = Instance.new("BodyVelocity")
  7232. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7233. bv.velocity = orb.CFrame.lookVector*125
  7234. bv.Parent = orb
  7235. local hitted = false
  7236. game:GetService("Debris"):AddItem(orb, 15)
  7237. wait()
  7238. local hit =orb.Touched:connect(function(hit)
  7239. if hitted == false then
  7240. hitted = true
  7241. CameraEnshaking(10,2.5)
  7242. MagniDamage(orb, 65, 65,90, 0, "Normal")
  7243. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7244. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7245. for i = 0, 49 do
  7246. 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)
  7247. end
  7248. local eff = Instance.new("ParticleEmitter",orb)
  7249. eff.Texture = "rbxassetid://2273224484"
  7250. eff.LightEmission = 1
  7251. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7252. eff.Rate = 500000
  7253. eff.Lifetime = NumberRange.new(0.5,2)
  7254. 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)})
  7255. 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)})
  7256. eff.Speed = NumberRange.new(20,250)
  7257. eff.Drag = 5
  7258. eff.Rotation = NumberRange.new(-500,500)
  7259. eff.VelocitySpread = 9000
  7260. eff.RotSpeed = NumberRange.new(-50,50)
  7261. coroutine.resume(coroutine.create(function()
  7262. wait(0.25)
  7263. eff.Enabled = false
  7264. end))
  7265. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7266. for i = 0, 9 do
  7267. 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)
  7268. 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)
  7269. end
  7270. orb.Anchored = true
  7271. orb.Transparency = 1
  7272. local eff = Instance.new("ParticleEmitter",orb)
  7273. eff.Texture = "rbxassetid://2273224484"
  7274. eff.LightEmission = 1
  7275. eff.Color = ColorSequence.new(Color3.new(M))
  7276. eff.Rate = 500000
  7277. eff.Lifetime = NumberRange.new(0.5,2)
  7278. 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)})
  7279. 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)})
  7280. eff.Speed = NumberRange.new(20,250)
  7281. eff.Drag = 5
  7282. eff.Rotation = NumberRange.new(-500,500)
  7283. eff.VelocitySpread = 9000
  7284. eff.RotSpeed = NumberRange.new(-50,50)
  7285. coroutine.resume(coroutine.create(function()
  7286. wait(1)
  7287. eff.Enabled = false
  7288. end))
  7289. wait(8)
  7290. orb:Destroy()
  7291. end
  7292. end)
  7293. end))
  7294. for i = 0, 1, 0.1 do
  7295. swait()
  7296. 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)
  7297. 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)
  7298. 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)
  7299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7301. 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)
  7302. end
  7303. attack = false
  7304. end
  7305.  
  7306.  
  7307. function BeamOfDeath()
  7308. coroutine.resume(coroutine.create(function()
  7309. attack = true
  7310. hum.WalkSpeed = 0
  7311. for i = 0, 11, 0.1 do
  7312. swait()
  7313. 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)
  7314. 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)
  7315. 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)
  7316. 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)
  7317. 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)
  7318. 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)
  7319. end
  7320. for i = 0, 1, 0.1 do
  7321. swait()
  7322. 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)
  7323. 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)
  7324. 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)
  7325. 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)
  7326. 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)
  7327. 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)
  7328. end
  7329. hum.WalkSpeed = storehumanoidWS
  7330. attack = false
  7331. end))
  7332. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7333. local radm = math.random(1,3)
  7334. if radm == 1 then
  7335. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7336. elseif radm == 2 then
  7337. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7338. elseif radm == 3 then
  7339. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7340. end
  7341. local keptcolor = MAINRUINCOLOR
  7342. local orb = Instance.new("Part", char)
  7343. orb.BrickColor = keptcolor
  7344. orb.CanCollide = false
  7345. orb.FormFactor = 3
  7346. orb.Name = "Ring"
  7347. orb.Material = "Neon"
  7348. orb.Size = Vector3.new(1, 1, 1)
  7349. orb.Transparency = 1
  7350. orb.TopSurface = 0
  7351. orb.BottomSurface = 0
  7352. local orbm = Instance.new("SpecialMesh", orb)
  7353. orbm.MeshType = "Sphere"
  7354. orbm.Name = "SizeMesh"
  7355. orbm.Scale = vt(22.5,10000,22.5)
  7356. orb.CFrame = mouse.Hit
  7357. orb.Anchored = true
  7358. orb.Orientation = vt(0,0,0)
  7359. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7360. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7361. coroutine.resume(coroutine.create(function()
  7362. coroutine.resume(coroutine.create(function()
  7363. for i = 0, 175 do
  7364. swait()
  7365. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7366. orb.Transparency = orb.Transparency - 0.005
  7367. end
  7368. end))
  7369. wait(2)
  7370. coroutine.resume(coroutine.create(function()
  7371. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7372. if hfr ~= nil then
  7373. for i = 0, 24.5 do
  7374. local deb = Instance.new("Part", char)
  7375. deb.Anchored = true
  7376. deb.CanCollide = false
  7377. deb.FormFactor = 3
  7378. deb.Name = "Ring"
  7379. deb.Material = hitfloor.Material
  7380. deb.Color = hitfloor.Color
  7381. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7382. deb.Transparency = 0
  7383. deb.TopSurface = 0
  7384. deb.BottomSurface = 0
  7385. 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)))
  7386. local deb2 = Instance.new("Part", char)
  7387. deb2.CanCollide = false
  7388. deb2.FormFactor = 3
  7389. deb2.Name = "Ring"
  7390. deb2.Material = hitfloor.Material
  7391. deb2.Color = hitfloor.Color
  7392. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7393. deb2.Transparency = 0
  7394. deb2.TopSurface = 0
  7395. deb2.BottomSurface = 0
  7396. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7397. 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)))
  7398. local eff = Instance.new("ParticleEmitter",deb)
  7399. eff.Texture = "rbxassetid://363275192"
  7400. eff.LightEmission = 0.95
  7401. eff.Color = ColorSequence.new(keptcolor.Color)
  7402. eff.Rate = 100
  7403. eff.Lifetime = NumberRange.new(1)
  7404. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7405. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7406. eff.Speed = NumberRange.new(0,5)
  7407. eff.Rotation = NumberRange.new(-500,500)
  7408. eff.VelocitySpread = 9000
  7409. eff.RotSpeed = NumberRange.new(-10,10)
  7410. local at1 = Instance.new('Attachment',deb2)
  7411. at1.Position = vt(0,15,0)
  7412. local at2 = Instance.new('Attachment',deb2)
  7413. at2.Position = vt(0,-15,0)
  7414. local tl = Instance.new('Trail',deb2)
  7415. tl.Attachment0 = at1
  7416. tl.Attachment1 = at2
  7417. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7418. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7419. tl.Lifetime = 1
  7420. game:GetService("Debris"):AddItem(deb,30)
  7421. game:GetService("Debris"):AddItem(deb2,30)
  7422. coroutine.resume(coroutine.create(function()
  7423. wait(15)
  7424. eff.Enabled = false
  7425. for i = 0, 49 do
  7426. swait()
  7427. deb.Transparency = deb.Transparency + 0.02
  7428. end
  7429. wait(1)
  7430. deb:Destroy()
  7431. end))
  7432. end
  7433. end
  7434. end))
  7435. for i = 0, 199 do
  7436. swait(1.5)
  7437. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7438. if v:FindFirstChild('Head') then
  7439. dmg(v)
  7440. end
  7441. end
  7442. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7443. 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)
  7444. 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)
  7445. 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)
  7446. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7447. end
  7448. orb:Destroy()
  7449. end))
  7450. end
  7451.  
  7452. function Beams()
  7453. attack = true
  7454. hum.WalkSpeed = 0
  7455. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7456. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7457. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7458. local keptcolor = MAINRUINCOLOR
  7459. coroutine.resume(coroutine.create(function()
  7460. for i = 0, 96 do
  7461. swait(5)
  7462. local orb = Instance.new("Part", char)
  7463. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7464. orb.BrickColor = keptcolor
  7465. orb.CanCollide = false
  7466. orb.FormFactor = 3
  7467. orb.Name = "Ring"
  7468. orb.Material = "Neon"
  7469. orb.Size = Vector3.new(1, 1, 1)
  7470. orb.Transparency = 0
  7471. orb.TopSurface = 0
  7472. orb.BottomSurface = 0
  7473. orb.Anchored = true
  7474. local orbm = Instance.new("SpecialMesh", orb)
  7475. orbm.MeshType = "Sphere"
  7476. orbm.Name = "SizeMesh"
  7477. orbm.Scale = vt(1.25,1.25,1.25)
  7478. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7479. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7480. coroutine.resume(coroutine.create(function()
  7481. wait(0.5)
  7482. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7483. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7484. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7485. orb.Transparency = 1
  7486. local a = Instance.new("Part",char)
  7487. a.Name = "Direction"
  7488. a.Anchored = true
  7489. a.BrickColor = keptcolor
  7490. a.Material = "Neon"
  7491. a.Transparency = 0.25
  7492. a.Shape = "Cylinder"
  7493. local ht = Instance.new("Part",char)
  7494. ht.Name = "DirectionHit"
  7495. ht.Anchored = true
  7496. ht.BrickColor = keptcolor
  7497. ht.CanCollide = false
  7498. ht.Transparency = 1
  7499. ht.Size = vt(0.1,0.1,0.1)
  7500. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7501. a.CanCollide = false
  7502. local ray = Ray.new(
  7503. orb.CFrame.p, -- origin
  7504. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7505. )
  7506. local ignore = char
  7507. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7508. a.BottomSurface = 10
  7509. a.TopSurface = 10
  7510. local distance = (orb.CFrame.p - position).magnitude
  7511. a.Size = Vector3.new(distance,1,1)
  7512. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7513. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7514. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7515. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7516. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7517. coroutine.resume(coroutine.create(function()
  7518. local eff = Instance.new("ParticleEmitter",ht)
  7519. eff.Texture = "rbxassetid://284205403"
  7520. eff.LightEmission = 0.95
  7521. eff.Color = ColorSequence.new(keptcolor.Color)
  7522. eff.Rate = 500
  7523. eff.Lifetime = NumberRange.new(0.5)
  7524. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7525. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7526. eff.Speed = NumberRange.new(10,50)
  7527. eff.Drag = 5
  7528. eff.Rotation = NumberRange.new(-500,500)
  7529. eff.VelocitySpread = 9000
  7530. eff.RotSpeed = NumberRange.new(-500,500)
  7531. wait(0.25)
  7532. eff.Enabled = false
  7533. end))
  7534. for i = 0, 4 do
  7535. 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)
  7536. 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)
  7537. local rsiz = math.random(10,30)
  7538. 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)
  7539. end
  7540. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7541. local msh = Instance.new("SpecialMesh",a)
  7542. msh.MeshType = "Cylinder"
  7543. msh.Scale = vt(1,1,1)
  7544. for i = 0, 49 do
  7545. swait()
  7546. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7547. a.Transparency = a.Transparency + 0.02
  7548. end
  7549. orb:Destroy()
  7550. a:Destroy()
  7551. ht:Destroy()
  7552. end))
  7553. game:GetService("Debris"):AddItem(orb, 10)
  7554. end
  7555. end))
  7556. for i = 0,6,0.1 do
  7557. swait()
  7558. 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)
  7559. 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)
  7560. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7561. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7562. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7563. 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)
  7564. 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)
  7565. end
  7566. hum.WalkSpeed = storehumanoidWS
  7567. attack = false
  7568. end
  7569.  
  7570. function CalamityTrans()
  7571. attack = true
  7572. rainbowmode = false
  7573. chaosmode = false
  7574. ModeOfGlitch = 8889
  7575. hum.WalkSpeed = 0
  7576. newThemeCust("rbxassetid://1359036559",0,1,1.25)
  7577. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7578. elocacenter.Anchored = true
  7579. elocacenter.CFrame = root.CFrame
  7580. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7581. eloca1.Anchored = true
  7582. eloca1.CFrame = elocacenter.CFrame
  7583. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7584. eloca2.Anchored = true
  7585. eloca2.CFrame = elocacenter.CFrame
  7586. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7587. eloca3.Anchored = true
  7588. eloca3.CFrame = elocacenter.CFrame
  7589. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7590. eloca4.Anchored = true
  7591. eloca4.CFrame = elocacenter.CFrame
  7592. local lookavec = 0
  7593. local speeds = 0
  7594. CameraEnshaking(3,2.5)
  7595. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7596. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7597. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7598. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7599. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7600. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7601. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7602. for i = 0, 5, 0.1 do
  7603. swait()
  7604. ---
  7605. lookavec = lookavec + 1
  7606. speeds = speeds + 10
  7607. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7608. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7609. 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)
  7610. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7611. 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)
  7612. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7613. 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)
  7614. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7615. 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)
  7616. ---
  7617. 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)
  7618. 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)
  7619. 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)
  7620. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7621. 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)
  7622. 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)
  7623. end
  7624. for i = 0, 5, 0.1 do
  7625. swait()
  7626. ---
  7627. speeds = speeds + 10
  7628. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7629. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7630. 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)
  7631. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7632. 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)
  7633. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7634. 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)
  7635. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7636. 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)
  7637. ---
  7638. 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)
  7639. 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)
  7640. 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)
  7641. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7642. 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)
  7643. 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)
  7644. end
  7645. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7646. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7647. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7648. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7649. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7650. CameraEnshaking(1,3)
  7651. for i = 0, 24 do
  7652. 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)
  7653. 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)
  7654. 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)
  7655. 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)
  7656. end
  7657. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7658. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7659. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7660. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7661. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7662. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7663. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7664. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7665. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7666. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7667. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7668. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7669. for i = 0, 5, 0.1 do
  7670. swait()
  7671. ---
  7672. lookavec = lookavec - 1
  7673. speeds = speeds + 10
  7674. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7675. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7676. 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)
  7677. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7678. 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)
  7679. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7680. 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)
  7681. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7682. 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)
  7683. ---
  7684. 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)
  7685. 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)
  7686. 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)
  7687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7688. 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)
  7689. 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)
  7690. end
  7691. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7692. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7693. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7694. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7695. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7696. for i = 0, 49 do
  7697. 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)
  7698. 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)
  7699. end
  7700. CameraEnshaking(5,6)
  7701. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7702. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7703. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7704. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7705. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7706. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7707. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7708. storehumanoidWS = 100
  7709. hum.WalkSpeed = 100
  7710. rainbowmode = false
  7711. chaosmode = false
  7712. tl1.Enabled = true
  7713. tl2.Enabled = true
  7714. tl3.Enabled = true
  7715. RecolorTextAndRename("CALAMITY",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7716. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7717. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7718. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7719. for i, v in pairs(mw2:GetChildren()) do
  7720. if v:IsA("Part") then
  7721. v.BrickColor = MAINRUINCOLOR
  7722. v.Material = "Neon"
  7723. end
  7724. end
  7725. for i, v in pairs(mw1:GetChildren()) do
  7726. if v:IsA("Part") then
  7727. v.Transparency = 0
  7728. v.BrickColor = MAINRUINCOLOR
  7729. v.Material = "Neon"
  7730. end
  7731. end
  7732. for i, v in pairs(m:GetChildren()) do
  7733. if v:IsA("Part") then
  7734. v.Color = Color3.new(0.5,0,1)
  7735. v.Material = "Neon"
  7736. end
  7737. end
  7738. for i, v in pairs(m2:GetChildren()) do
  7739. if v:IsA("Part") then
  7740. v.Color = Color3.new(0.25,0,1)
  7741. v.Material = "Neon"
  7742. end
  7743. end
  7744. for i, v in pairs(m3:GetChildren()) do
  7745. if v:IsA("Part") then
  7746. v.Color = Color3.new(0.45,0,1)
  7747. v.Material = "Neon"
  7748. end
  7749. end
  7750. for i, v in pairs(extrawingmod1:GetChildren()) do
  7751. if v:IsA("Part") then
  7752. v.Transparency = 0.75
  7753. v.Color = Color3.new(0.25,0,1)
  7754. v.Material = "Neon"
  7755. end
  7756. end
  7757. for i, v in pairs(extrawingmod2:GetChildren()) do
  7758. if v:IsA("Part") then
  7759. v.Transparency = 0.75
  7760. v.Color = Color3.new(0.5,0,1)
  7761. v.Material = "Neon"
  7762. end
  7763. end
  7764. attack = false
  7765. end
  7766.  
  7767. function GleamingBeam()
  7768. attack = true
  7769. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7770. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7771. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7772. local rsiz = math.random(1,15)
  7773. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7774. hb.Anchored = true
  7775. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7776. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7777. for i = 0, 16, 0.1 do
  7778. swait()
  7779. rsiz = math.random(5,15)
  7780. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7781. 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)
  7782. 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)
  7783. 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)
  7784. 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)
  7785. 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)
  7786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7788. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7789. end
  7790. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7791. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7792. for i = 0, 2 do
  7793. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7794. end
  7795. 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)
  7796. 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)
  7797. 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)
  7798. for i = 0, 49 do
  7799. local rsiza = math.random(1,15)
  7800. 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)
  7801. end
  7802. local a = Instance.new("Part",Character)
  7803. a.Name = "Direction"
  7804. a.Anchored = true
  7805. a.BrickColor = MAINRUINCOLOR
  7806. a.Material = "Neon"
  7807. a.Transparency = 0
  7808. a.Shape = "Cylinder"
  7809. a.CanCollide = false
  7810. local ba = Instance.new("Part",Character)
  7811. ba.Name = "HitDirect"
  7812. ba.Anchored = true
  7813. ba.BrickColor = bc("Cool yellow")
  7814. ba.Material = "Neon"
  7815. ba.Transparency = 1
  7816. ba.CanCollide = false
  7817. local ray = Ray.new(
  7818. hb.CFrame.p, -- origin
  7819. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7820. )
  7821. local ignore = Character
  7822. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7823. a.BottomSurface = 10
  7824. a.TopSurface = 10
  7825. local distance = (hb.CFrame.p - position).magnitude
  7826. a.Size = Vector3.new(distance, 1, 1)
  7827. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7828. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7829. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7830. local msh = Instance.new("SpecialMesh",a)
  7831. msh.MeshType = "Cylinder"
  7832. msh.Scale = vt(1,4,4)
  7833. game:GetService("Debris"):AddItem(a, 30)
  7834. game:GetService("Debris"):AddItem(ba, 30)
  7835. for i = 0, 25, 0.1 do
  7836. swait()
  7837. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7838. ray = Ray.new(
  7839. hb.CFrame.p, -- origin
  7840. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7841. )
  7842. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7843. distance = (hb.CFrame.p - position).magnitude
  7844. a.Size = Vector3.new(distance, 1, 1)
  7845. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7846. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7847. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7848. rsiz = math.random(5,25)
  7849. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7850. 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)
  7851. for c = 0, 2 do
  7852. 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)
  7853. end
  7854. 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)
  7855. 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)
  7856. 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)
  7857. 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)
  7858. 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)
  7859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7861. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7862. end
  7863. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7864. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7865. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7866. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7867. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7868. 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)
  7869. 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)
  7870. 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)
  7871. 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)
  7872. 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)
  7873. 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)
  7874. for i = 0, 49 do
  7875. local rsiza = math.random(1,15)
  7876. 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)
  7877. end
  7878. for i = 0, 49 do
  7879. rsiz = math.random(1,8)
  7880. 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)
  7881. end
  7882. coroutine.resume(coroutine.create(function()
  7883. for i = 0, 99 do
  7884. swait()
  7885. a.Transparency = a.Transparency + 0.01
  7886. end
  7887. a:Destroy()
  7888. ba:Destroy()
  7889. end))
  7890. hb:Destroy()
  7891. attack = false
  7892. end
  7893.  
  7894. function DualGleamingBeam()
  7895. attack = true
  7896. hum.WalkSpeed = 0
  7897. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7898. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7899. local radm = math.random(1,3)
  7900. if radm == 1 then
  7901. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7902. elseif radm == 2 then
  7903. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7904. elseif radm == 3 then
  7905. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7906. end
  7907. local rsiz = math.random(1,15)
  7908. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7909. hb.Anchored = true
  7910. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7911. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7912. hb2.Anchored = true
  7913. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7914. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7915. for i = 0, 14, 0.1 do
  7916. swait()
  7917. rsiz = math.random(5,15)
  7918. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7919. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7920. 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)
  7921. 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)
  7922. 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)
  7923. 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"))
  7924. 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)
  7925. 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)
  7926. 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)
  7927. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7928. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7929. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7930. end
  7931. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7932. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7933. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7934. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7935. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7936. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7937. 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)
  7938. 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)
  7939. 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)
  7940. 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"))
  7941. 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"))
  7942. 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"))
  7943. for i = 0, 49 do
  7944. local rsiza = math.random(1,15)
  7945. 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)
  7946. 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)
  7947. end
  7948. local a = Instance.new("Part",Character)
  7949. a.Name = "Direction"
  7950. a.Anchored = true
  7951. a.BrickColor = MAINRUINCOLOR
  7952. a.Material = "Neon"
  7953. a.Transparency = 0
  7954. a.Shape = "Cylinder"
  7955. a.CanCollide = false
  7956. local a2 = Instance.new("Part",Character)
  7957. a2.Name = "Direction"
  7958. a2.Anchored = true
  7959. a2.BrickColor = MAINRUINCOLOR
  7960. a2.Material = "Neon"
  7961. a2.Transparency = 0
  7962. a2.Shape = "Cylinder"
  7963. a2.CanCollide = false
  7964. local ba = Instance.new("Part",Character)
  7965. ba.Name = "HitDirect"
  7966. ba.Anchored = true
  7967. ba.BrickColor = MAINRUINCOLOR
  7968. ba.Material = "Neon"
  7969. ba.Transparency = 1
  7970. ba.CanCollide = false
  7971. local ba2 = Instance.new("Part",Character)
  7972. ba2.Name = "HitDirect"
  7973. ba2.Anchored = true
  7974. ba2.BrickColor = MAINRUINCOLOR
  7975. ba2.Material = "Neon"
  7976. ba2.Transparency = 1
  7977. ba2.CanCollide = false
  7978. local ray = Ray.new(
  7979. hb.CFrame.p, -- origin
  7980. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7981. )
  7982. local ignore = Character
  7983. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7984. local ray2 = Ray.new(
  7985. hb2.CFrame.p, -- origin
  7986. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7987. )
  7988. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7989. local distance2 = (hb2.CFrame.p - position).magnitude
  7990.  
  7991. a.BottomSurface = 10
  7992. a.TopSurface = 10
  7993. local distance = (hb.CFrame.p - position).magnitude
  7994. a.Size = Vector3.new(distance, 1, 1)
  7995. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7996. a2.BottomSurface = 10
  7997. a2.TopSurface = 10
  7998. a2.Size = Vector3.new(distance2, 1, 1)
  7999. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8000. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8001. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8002. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8003. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8004. local msh = Instance.new("SpecialMesh",a)
  8005. msh.MeshType = "Cylinder"
  8006. msh.Scale = vt(1,4,4)
  8007. local msh2 = Instance.new("SpecialMesh",a2)
  8008. msh2.MeshType = "Cylinder"
  8009. msh2.Scale = vt(1,4,4)
  8010. game:GetService("Debris"):AddItem(a, 30)
  8011. game:GetService("Debris"):AddItem(a2, 30)
  8012. game:GetService("Debris"):AddItem(ba, 30)
  8013. game:GetService("Debris"):AddItem(ba2, 30)
  8014. for i = 0, 20, 0.1 do
  8015. swait()
  8016. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8017. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8018. ray = Ray.new(
  8019. hb.CFrame.p, -- origin
  8020. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8021. )
  8022. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8023. distance = (hb.CFrame.p - position).magnitude
  8024. ray2 = Ray.new(
  8025. hb2.CFrame.p, -- origin
  8026. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8027. )
  8028. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8029. distance2 = (hb2.CFrame.p - position).magnitude
  8030. a.Size = Vector3.new(distance, 1, 1)
  8031. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8032. a2.Size = Vector3.new(distance2, 1, 1)
  8033. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8034. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8035. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8036. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8037. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8038. rsiz = math.random(5,25)
  8039. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8040. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8041. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8042. if v:FindFirstChild('Head') then
  8043. dmg(v)
  8044. end
  8045. end
  8046. coroutine.resume(coroutine.create(function()
  8047. local bx = Instance.new("Part",Character)
  8048. bx.Name = "Location"
  8049. bx.Anchored = true
  8050. bx.BrickColor = MAINRUINCOLOR
  8051. bx.Material = "Neon"
  8052. bx.Transparency = 1
  8053. bx.CanCollide = false
  8054. bx.Position = ba.Position
  8055. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8056. wait(math.random(1,2))
  8057. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8058. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8059. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8060. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8061. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8062. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8063. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8064. if v:FindFirstChild('Head') then
  8065. dmg(v)
  8066. end
  8067. end
  8068. wait(5)
  8069. bx:Destroy()
  8070. end))
  8071. 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)
  8072. 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)
  8073. for c = 0, 2 do
  8074. 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)
  8075. end
  8076. 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)
  8077. 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)
  8078. 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)
  8079. 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)
  8080. 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)
  8081. 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)
  8082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8083. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8084. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8085. end
  8086. for i = 0, 1 do
  8087. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8088. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8089. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8090. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8091. end
  8092. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8093. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8094. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8095. if v:FindFirstChild('Head') then
  8096. dmg(v)
  8097. end
  8098. end
  8099. 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)
  8100. 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)
  8101. 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)
  8102. 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)
  8103. 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)
  8104. 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)
  8105. 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"))
  8106. 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"))
  8107. 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"))
  8108. for i = 0, 49 do
  8109. local rsiza = math.random(1,15)
  8110. 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)
  8111. 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)
  8112. end
  8113. for i = 0, 49 do
  8114. rsiz = math.random(1,8)
  8115. 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)
  8116. end
  8117. coroutine.resume(coroutine.create(function()
  8118. for i = 0, 99 do
  8119. swait()
  8120. a.Transparency = a.Transparency + 0.01
  8121. a2.Transparency = a2.Transparency + 0.01
  8122. end
  8123. a:Destroy()
  8124. ba:Destroy()
  8125. a2:Destroy()
  8126. ba2:Destroy()
  8127. end))
  8128. hum.WalkSpeed = storehumanoidWS
  8129. hb:Destroy()
  8130. hb2:Destroy()
  8131. attack = false
  8132. end
  8133.  
  8134. function dragin()
  8135. local targetted = nil
  8136. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8137. targetted = mouse.Target.Parent
  8138. end
  8139. if targetted ~= nil then
  8140. RootPart.CFrame = FaceMouse()[1]
  8141. attack = true
  8142. hum.WalkSpeed = 0
  8143. for x = 0, 1 do
  8144. for i = 0,1,0.5 do
  8145. swait()
  8146. 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)
  8147. 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)
  8148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8149. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8150. 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)
  8151. 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)
  8152. end
  8153. for i = 0,1,0.5 do
  8154. swait()
  8155. 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)
  8156. 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)
  8157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8159. 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)
  8160. 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)
  8161. end
  8162. for i = 0,1,0.5 do
  8163. swait()
  8164. 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)
  8165. 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)
  8166. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8168. 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)
  8169. 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)
  8170. end
  8171. for i = 0,1,0.5 do
  8172. swait()
  8173. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8174. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8177. 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)
  8178. 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)
  8179. end
  8180. end
  8181. coroutine.resume(coroutine.create(function()
  8182. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8183. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8184. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8185. end))
  8186. local A1 = Instance.new("Attachment",targetted.Head)
  8187. local A2 = Instance.new("Attachment",sorb)
  8188. local Beem = Instance.new("Beam",tors)
  8189. Beem.Attachment0 = A1
  8190. Beem.Attachment1 = A2
  8191. Beem.Texture = "rbxassetid://897585362"
  8192. Beem.LightEmission = 0.75
  8193. Beem.FaceCamera = true
  8194. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8195. Beem.Width0 = 1
  8196. Beem.Width1 = 1
  8197. Beem.TextureMode = "Wrap"
  8198. Beem.TextureLength = 1
  8199. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8200. 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)
  8201. 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)
  8202. for x = 0, 24 do
  8203. local rsiz = math.random(5,15)
  8204. 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)
  8205. end
  8206.  
  8207. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8208. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8209. local radm = math.random(1,2)
  8210. if radm == 1 then
  8211. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8212. elseif radm == 2 then
  8213. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8214. end
  8215. for i = 0,3,0.1 do
  8216. swait()
  8217. coroutine.resume(coroutine.create(function()
  8218. local rsiz = math.random(5,15)
  8219. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8220. 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)
  8221. end))
  8222. 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)
  8223. 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)
  8224. 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)
  8225. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8226. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8227. 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)
  8228. 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)
  8229. end
  8230. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8231. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8232. local vel = Instance.new("BodyPosition", targetted.Head)
  8233. vel.P = 12500
  8234. vel.D = 1000
  8235. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8236. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8237. for i = 0,4,0.1 do
  8238. swait()
  8239. coroutine.resume(coroutine.create(function()
  8240. local rsiz = math.random(5,15)
  8241. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8242. 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)
  8243. end))
  8244. 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)
  8245. 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)
  8246. 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)
  8247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8249. 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)
  8250. 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)
  8251. end
  8252. local visibility = 0
  8253. coroutine.resume(coroutine.create(function()
  8254. for i = 0, 49 do
  8255. swait()
  8256. visibility = visibility + 0.02
  8257. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8258. end
  8259. Beem:Destroy()
  8260. A1:Destroy()
  8261. A2:Destroy()
  8262. end))
  8263. game:GetService("Debris"):AddItem(vel,0.75)
  8264. attack = false
  8265. hum.WalkSpeed = storehumanoidWS
  8266.  
  8267. end
  8268. end
  8269.  
  8270. function hugg()
  8271. attack = true
  8272. hum.WalkSpeed = 5
  8273. local rsiz = math.random(5,15)
  8274. for i = 0, 2, 0.1 do
  8275. swait()
  8276. 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)
  8277. 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)
  8278. 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)
  8279. 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)
  8280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8282. end
  8283. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8284. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8285. hb.Anchored = true
  8286. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8287. local huggedperson = nil
  8288. local act = false
  8289. local alreadydid = false
  8290. for i = 0, 3, 0.1 do
  8291. swait()
  8292. if act == false then
  8293. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8294. if v:FindFirstChild('Head') then
  8295. if alreadydid == false then
  8296. huggedperson = v
  8297. hum.WalkSpeed = 0
  8298. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8299. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8300. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8301. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8302. local radm = math.random(1,3)
  8303. if radm == 1 then
  8304. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8305. elseif radm == 2 then
  8306. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8307. elseif radm == 3 then
  8308. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8309. end
  8310. root.Anchored = true
  8311. coroutine.resume(coroutine.create(function()
  8312. huggedperson.Humanoid.WalkSpeed = 0
  8313. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8314. end))
  8315. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8316. alreadydid = true
  8317. act = true
  8318. print(huggedperson.Name)
  8319. end
  8320. end
  8321. end
  8322. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8323. 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)
  8324. elseif act == true then
  8325. coroutine.resume(coroutine.create(function()
  8326. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8327. end))
  8328. rsiz = math.random(5,15)
  8329. 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)
  8330. 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)
  8331. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8332. end
  8333. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  8334. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  8335. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8336. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8337. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8338. end
  8339. hb:Destroy()
  8340. if act == true then
  8341. for x = 0, 2 do
  8342. for i = 0, 2, 0.1 do
  8343. swait()
  8344. coroutine.resume(coroutine.create(function()
  8345. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8346. end))
  8347. rsiz = math.random(5,15)
  8348. 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)
  8349. 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)
  8350. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8351. 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)
  8352. 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)
  8353. 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)
  8354. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8355. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8356. end
  8357. for i = 0, 2, 0.1 do
  8358. swait()
  8359. coroutine.resume(coroutine.create(function()
  8360. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8361. end))
  8362. rsiz = math.random(5,15)
  8363. 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)
  8364. 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)
  8365. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8366. 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)
  8367. 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)
  8368. 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)
  8369. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8370. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8371. end
  8372. end
  8373. end
  8374. hum.WalkSpeed = storehumanoidWS
  8375. root.Anchored = false
  8376. if act == true then
  8377. coroutine.resume(coroutine.create(function()
  8378. huggedperson.Humanoid.WalkSpeed = 16
  8379. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8380. end))
  8381. end
  8382. hum.WalkSpeed = storehumanoidWS
  8383. attack = false
  8384. end
  8385.  
  8386. function Counter()
  8387. hum.WalkSpeed = 0
  8388. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8389. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8390. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8391. attack = true
  8392. for i = 0,1,0.1 do
  8393. swait()
  8394. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8395. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8396. 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)
  8397. 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)
  8398. 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)
  8399. 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)
  8400. end
  8401. CameraEnshaking(3,4)
  8402. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8403. 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)
  8404. 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)
  8405. 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)
  8406. coroutine.resume(coroutine.create(function()
  8407. local eff = Instance.new("ParticleEmitter",root)
  8408. eff.Texture = "rbxassetid://363275192"
  8409. eff.LightEmission = 0.95
  8410. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8411. eff.Rate = 10000
  8412. eff.Lifetime = NumberRange.new(1)
  8413. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8414. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8415. eff.Speed = NumberRange.new(10,125)
  8416. eff.Drag = 5
  8417. eff.Rotation = NumberRange.new(-500,500)
  8418. eff.VelocitySpread = 9000
  8419. eff.RotSpeed = NumberRange.new(-50,50)
  8420. local eff2 = eff:Clone()
  8421. eff2.Parent = root
  8422. eff2.Texture = "rbxassetid://284205403"
  8423. eff2.Rate = 10000
  8424. 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)})
  8425. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8426. eff2.Drag = 5
  8427. eff2.Speed = NumberRange.new(10,50)
  8428. eff2.Rotation = NumberRange.new(-500,500)
  8429. eff2.VelocitySpread = 9000
  8430. wait(0.25)
  8431. eff2.Enabled = false
  8432. eff.Enabled = false
  8433. wait(3)
  8434. eff2:Destroy()
  8435. eff:Destroy()
  8436. end))
  8437. for i = 0, 9 do
  8438. 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)
  8439. end
  8440. for i = 0, 24 do
  8441. local rsiz = math.random(5,20)
  8442. 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)
  8443. end
  8444. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8445. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8446. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8447. for i = 0,2,0.1 do
  8448. swait()
  8449. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8450. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8451. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8452. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8453. 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)
  8454. 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)
  8455. end
  8456. hum.WalkSpeed = storehumanoidWS
  8457. attack = false
  8458. end
  8459.  
  8460. function superjump()
  8461. attack = true
  8462. hum.WalkSpeed = 0
  8463. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8464. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8465. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8466. for i = 0, 2, 0.1 do
  8467. swait()
  8468. root.Velocity = vt(0,0,0)
  8469. 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"))
  8470. 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)
  8471. 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)
  8472. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8473. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8474. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8475. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8476. end
  8477. MagniDamage(root, 28, 25,50, 25, "Normal")
  8478. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8479. hum.Jump = true
  8480. swait()
  8481. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8482. 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)
  8483. 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)
  8484. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8485. for i = 0, 3, 0.1 do
  8486. swait()
  8487. 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)
  8488. 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)
  8489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8490. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8491. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8492. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8493. end
  8494. attack = false
  8495. if equipped == false then
  8496. hum.WalkSpeed = 16
  8497. else
  8498. hum.WalkSpeed = 24
  8499. end
  8500. end
  8501.  
  8502.  
  8503. -------------------------------------
  8504.  
  8505.  
  8506.  
  8507. Humanoid.Animator.Parent = nil
  8508.  
  8509.  
  8510.  
  8511. -------------------------------------
  8512.  
  8513. local attacktype = 1
  8514. mouse.Button1Down:connect(function()
  8515. if attack == false and attacktype == 1 then
  8516. attacktype = 2
  8517. attackone()
  8518. elseif attack == false and attacktype == 2 then
  8519. attacktype = 3
  8520. attacktwo()
  8521. elseif attack == false and attacktype == 3 then
  8522. attacktype = 1
  8523. attackthree()
  8524. elseif attack == false and attacktype == 4 then
  8525. attacktype = 1
  8526. --attackfour()
  8527. end
  8528. end)
  8529. mouse.KeyDown:connect(function(k)
  8530. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8531. --normalmog()
  8532. ModeOfGlitch = 1
  8533. storehumanoidWS = 16
  8534. hum.WalkSpeed = 16
  8535. rainbowmode = false
  8536. chaosmode = false
  8537. newTheme("rbxassetid://1255569288",48.6,1,0.85)
  8538. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8539. MAINRUINCOLOR = BrickColor.new("Really red")
  8540. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8541. end
  8542. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8543. ModeOfGlitch = 2
  8544. storehumanoidWS = 16
  8545. hum.WalkSpeed = 16
  8546. rainbowmode = false
  8547. chaosmode = false
  8548. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8549. newTheme("rbxassetid://1539245059",0,1,0.85)
  8550. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8551. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8552. end
  8553. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8554. ModeOfGlitch = 3
  8555. storehumanoidWS = 14
  8556. hum.WalkSpeed = 14
  8557. rainbowmode = false
  8558. chaosmode = false
  8559. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8560. newTheme("rbxassetid://1283869370",58.15,0.98,1)
  8561. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8562. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8563. end
  8564. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8565. ModeOfGlitch = 4
  8566. storehumanoidWS = 14
  8567. hum.WalkSpeed = 14
  8568. rainbowmode = false
  8569. chaosmode = true
  8570. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  8571. newTheme("rbxassetid://1369263130",0,1.01,0.85)
  8572. MAINRUINCOLOR = BrickColor.new("Black")
  8573. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8574. end
  8575. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8576. ModeOfGlitch = 5
  8577. storehumanoidWS = 14
  8578. hum.WalkSpeed = 14
  8579. rainbowmode = false
  8580. chaosmode = false
  8581. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8582. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8583. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8584. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8585. end
  8586. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8587. ModeOfGlitch = 6
  8588. storehumanoidWS = 65
  8589. hum.WalkSpeed = 65
  8590. rainbowmode = false
  8591. chaosmode = false
  8592. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8593. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8594. MAINRUINCOLOR = BrickColor.new("White")
  8595. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8596. end
  8597. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8598. ModeOfGlitch = 8
  8599. storehumanoidWS = 100
  8600. hum.WalkSpeed = 100
  8601. rainbowmode = false
  8602. chaosmode = false
  8603. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8604. newTheme("rbxassetid://1495032271",0,1.01,0.85)
  8605. MAINRUINCOLOR = BrickColor.new("Alder")
  8606. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8607. end
  8608. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8609. ModeOfGlitch = 9
  8610. storehumanoidWS = 85
  8611. hum.WalkSpeed = 85
  8612. rainbowmode = false
  8613. chaosmode = false
  8614. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8615. newTheme("rbxassetid://1296208488",0,1.01,0.85)
  8616. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8617. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8618. end
  8619. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8620. ModeOfGlitch = 5555
  8621. storehumanoidWS = 30
  8622. hum.WalkSpeed = 30
  8623. rainbowmode = false
  8624. chaosmode = false
  8625. RecolorTextAndRename("L-O-V-E",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8626. newTheme("rbxassetid://736003449",0,1,1.25)
  8627. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8628. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8629. end
  8630. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8631. CalamityTrans()
  8632. end
  8633. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8634. ModeOfGlitch = 55469696922
  8635. storehumanoidWS = 95
  8636. hum.WalkSpeed = 95
  8637. rainbowmode = false
  8638. chaosmode = false
  8639. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8640. newTheme("rbxassetid://582020393",0,1.005,0.9)
  8641. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8642. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8643. end
  8644. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8645. ModeOfGlitch = 4367677813
  8646. storehumanoidWS = 75
  8647. hum.WalkSpeed = 75
  8648. rainbowmode = false
  8649. chaosmode = false
  8650. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8651. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8652. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8653. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8654. end
  8655. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8656. ModeOfGlitch = 9999999921111
  8657. storehumanoidWS = 145
  8658. hum.WalkSpeed = 145
  8659. rainbowmode = false
  8660. chaosmode = false
  8661. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8662. newTheme("rbxassetid://643309199",0,1.01,1)
  8663. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8664. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8665. end
  8666. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8667. ModeOfGlitch = 999999999556
  8668. storehumanoidWS = 115
  8669. hum.WalkSpeed = 115
  8670. rainbowmode = false
  8671. chaosmode = false
  8672. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8673. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8674. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8675. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8676. end
  8677. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8678. ModeOfGlitch = 12
  8679. storehumanoidWS = 19
  8680. hum.WalkSpeed = 19
  8681. rainbowmode = false
  8682. chaosmode = false
  8683. print'Mode was meant for Vengeful Program or those other fans out there'
  8684. RecolorTextAndRename("NEPTUNIA",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8685. newTheme("rbxassetid://1873219898",0,1,1.7)
  8686. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8687. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8688. end
  8689.  
  8690. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8691. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8692. for i = 0, 49 do
  8693. 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)
  8694. end
  8695. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8696. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8697. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8698. hum.WalkSpeed = storehumanoidWS
  8699. attack = false
  8700. ModeOfGlitch = 50
  8701. storehumanoidWS = 18
  8702. hum.WalkSpeed = 18
  8703. rainbowmode = false
  8704. chaosmode = false
  8705. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8706. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8707. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8708. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8709. end
  8710.  
  8711. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8712. hum.WalkSpeed = 0
  8713. attack = true
  8714. for i = 0,1,0.1 do
  8715. swait()
  8716. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8717. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8718. 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)
  8719. 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)
  8720. 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)
  8721. 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)
  8722. end
  8723. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8724. for i = 0, 148 do
  8725. 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)
  8726. end
  8727. for i = 0,3,0.1 do
  8728. 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)
  8729. end
  8730. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8731. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8732. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8733. hum.WalkSpeed = storehumanoidWS
  8734. attack = false
  8735. ModeOfGlitch = 66
  8736. storehumanoidWS = 16
  8737. hum.WalkSpeed = 16
  8738. rainbowmode = false
  8739. chaosmode = false
  8740. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8741. MAINRUINCOLOR = BrickColor.new("Really black")
  8742. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8743. for i = 0,2,0.1 do
  8744. swait()
  8745. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8746. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8747. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8748. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8749. 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)
  8750. 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)
  8751. end
  8752. end
  8753.  
  8754. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8755. hum.WalkSpeed = 0
  8756. attack = true
  8757. for i = 0,1,0.1 do
  8758. swait()
  8759. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8760. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8761. 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)
  8762. 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)
  8763. 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)
  8764. 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)
  8765. end
  8766. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8767. for i = 0, 49 do
  8768. 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)
  8769. end
  8770. for i = 0,3,0.1 do
  8771. 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)
  8772. end
  8773. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8774. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8775. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8776. hum.WalkSpeed = storehumanoidWS
  8777. attack = false
  8778. ModeOfGlitch = 13
  8779. storehumanoidWS = 45
  8780. hum.WalkSpeed = 45
  8781. rainbowmode = false
  8782. chaosmode = false
  8783. RecolorTextAndRename("Judician",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8784. newTheme("rbxassetid://190845741",0,1,1.35)
  8785. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8786. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8787. for i = 0,2,0.1 do
  8788. swait()
  8789. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8790. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8791. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8792. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8793. 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)
  8794. 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)
  8795. end
  8796. end
  8797. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8798. ModeOfGlitch = 1002
  8799. storehumanoidWS = 45
  8800. hum.WalkSpeed = 45
  8801. rainbowmode = false
  8802. chaosmode = false
  8803. RecolorTextAndRename("PIXELED",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8804. newTheme("rbxassetid://2027652726",0,1,0.85)
  8805. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8806. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8807. end
  8808. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8809. ModeOfGlitch = 1003
  8810. storehumanoidWS = 90
  8811. hum.WalkSpeed = 90
  8812. rainbowmode = false
  8813. chaosmode = false
  8814. RecolorTextAndRename("ASCENDED",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8815. newTheme("rbxassetid://257453119",0,1,0.85)
  8816. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8817. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8818. end
  8819. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8820. ModeOfGlitch = 1264532489
  8821. storehumanoidWS = 175
  8822. hum.WalkSpeed = 175
  8823. rainbowmode = false
  8824. chaosmode = false
  8825. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8826. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8827. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8828. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8829. end
  8830. if k == "l" and mutedtog == false then
  8831. mutedtog = true
  8832. kan.Volume = 0.85
  8833. elseif k == "l" and mutedtog == true then
  8834. mutedtog = false
  8835. kan.Volume = 0.85
  8836. end
  8837. if k == "p" and toggleTag == false then
  8838. toggleTag = true
  8839. modet.TextTransparency = 0
  8840. modet.TextStrokeTransparency = 0
  8841. elseif k == "p" and toggleTag == true then
  8842. toggleTag = false
  8843. modet.TextTransparency = 1
  8844. modet.TextStrokeTransparency = 1
  8845. end
  8846. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8847. ExtinctiveHeartbreak()
  8848. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8849. HeavenlyDisk()
  8850. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8851. DualGleamingBeam()
  8852. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8853. BanishingOrb()
  8854. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8855. hugg()
  8856. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8857. cutesigh()
  8858. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8859. Counter()
  8860. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8861. superjump()
  8862. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8863. dragin()
  8864. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8865. UniversalCollapse()
  8866. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8867. PureBomb()
  8868. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8869. Beams()
  8870. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8871. BeamOfDeath()
  8872. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8873. THE_TRUE_POWER_OF_VIOLENCE()
  8874. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8875. GleamingBeam()
  8876. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8877. ViolentRing()
  8878. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8879. CorruptionEvent()
  8880. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8881. CorruptBlink()
  8882. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8883. scattercorrupt()
  8884. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8885. shytaunty()
  8886. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8887. RapidBurst()
  8888. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8889. ChaosEND()
  8890. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8891. CyberSlash()
  8892. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8893. smiter()
  8894. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  8895. SpeedDrop()
  8896. elseif k == "x" and attack == false and ModeOfGlitch == 5555 then
  8897. FuckMeSidewaysAndCallMeGay()
  8898. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  8899. --DivineLights()
  8900. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  8901. DivineBlast()
  8902. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  8903. EquinoxOrbs()
  8904. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  8905. yinyangi()
  8906. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  8907. FallenOrbs()
  8908. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  8909. StarfallEX()
  8910. end
  8911. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  8912. FallenDEMISE()
  8913. end
  8914. if k == "x" and attack == false and ModeOfGlitch == 1 then
  8915. EndGROUND()
  8916. end
  8917. end)
  8918.  
  8919. coroutine.resume(coroutine.create(function()
  8920. while true do
  8921. swait()
  8922. 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
  8923. 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)
  8924. end
  8925. if ModeOfGlitch == 5555 then
  8926. 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)
  8927. end
  8928. end
  8929. end))
  8930. --[[coroutine.resume(coroutine.create(function()
  8931. while true do
  8932. swait(2)
  8933. if chaosmode == true then
  8934. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  8935. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  8936. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  8937. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  8938. for i, v in pairs(mw1:GetChildren()) do
  8939. if v:IsA("Part") then
  8940. v.Transparency = 0.75
  8941. v.BrickColor = BrickColor.random()
  8942. v.Material = "Neon"
  8943. end
  8944. end
  8945. for i, v in pairs(m2:GetChildren()) do
  8946. if v:IsA("Part") then
  8947. v.BrickColor = BrickColor.random()
  8948. v.Material = "Neon"
  8949. end
  8950. end
  8951. end
  8952. end
  8953. end))]]
  8954.  
  8955.  
  8956.  
  8957. ff = Instance.new("ForceField",char)
  8958. ff.Visible = false
  8959. hum.Name = "Base"
  8960. hum.MaxHealth = 1.0E298
  8961. hum.Health = 1.0E298
  8962. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  8963. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  8964. hum.MaxHealth = 1.0E298
  8965. hum.Health = 1.0E298
  8966. end
  8967. end)
  8968.  
  8969. local Hair = Instance.new("Part", char)
  8970. Hair.Name = "Hair"
  8971. Hair.CanCollide = false
  8972. Hair.BrickColor = BrickColor.new("Institutional white")
  8973. Hair.Transparency = 0
  8974. Hair.Material = "Plastic"
  8975. Hair.Size = Vector3.new(1, 1, 2)
  8976. Hair.TopSurface = Enum.SurfaceType.Smooth
  8977. Hair.BottomSurface = Enum.SurfaceType.Smooth
  8978.  
  8979.  
  8980. local bguis = Instance.new("BillboardGui",tors)
  8981. bguis.Size = UDim2.new(25, 0, 25, 0)
  8982. local imgca = Instance.new("ImageLabel",bguis)
  8983. imgca.BackgroundTransparency = 1
  8984. imgca.ImageTransparency = 1
  8985. imgca.Size = UDim2.new(1,0,1,0)
  8986. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  8987. imgca.ImageColor3 = Color3.new(0,0,0)
  8988.  
  8989.  
  8990. local bguis2 = Instance.new("BillboardGui",tors)
  8991. bguis2.Size = UDim2.new(25, 0, 25, 0)
  8992. local imgca2 = Instance.new("ImageLabel",bguis)
  8993. imgca2.BackgroundTransparency = 1
  8994. imgca2.ImageTransparency = 1
  8995. imgca2.Size = UDim2.new(1,0,1,0)
  8996. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  8997. imgca2.ImageColor3 = Color3.new(0,0,0)
  8998.  
  8999.  
  9000.  
  9001. idleanim=.4
  9002. while true do
  9003. if mutedtog == false then
  9004. kan.Volume = currentVol
  9005. elseif mutedtog == true then
  9006. kan.Volume = 0
  9007. end
  9008. kan.PlaybackSpeed = currentPitch
  9009. kan.Pitch = currentPitch
  9010. kan.SoundId = currentThemePlaying
  9011. kan.Looped = true
  9012. kan.Parent = char
  9013. kan:Resume()
  9014. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9015. imgca.ImageTransparency = 1
  9016. imgca2.ImageTransparency = 1
  9017. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9018. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9019. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9020. elseif ModeOfGlitch == 13 then
  9021. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9022. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9023. end
  9024. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9025. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9026. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9027. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9028. coroutine.resume(coroutine.create(function()
  9029. if chaosmode == true then
  9030. for i, v in pairs(mw1:GetChildren()) do
  9031. if v:IsA("Part") then
  9032. v.Transparency = 0
  9033. v.BrickColor = BrickColor.random()
  9034. v.Material = "Neon"
  9035. end
  9036. end
  9037. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9038. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9039. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9040. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9041. end
  9042. end))
  9043. coroutine.resume(coroutine.create(function()
  9044. if ModeOfGlitch == 66 then
  9045. for i, v in pairs(m:GetChildren()) do
  9046. if v:IsA("Part") then
  9047. v.Transparency = 0
  9048. v.BrickColor = BrickColor.random()
  9049. v.Material = "Neon"
  9050. end
  9051. end
  9052. for i, v in pairs(m2:GetChildren()) do
  9053. if v:IsA("Part") then
  9054. v.Transparency = 0
  9055. v.BrickColor = BrickColor.random()
  9056. v.Material = "Neon"
  9057. end
  9058. end
  9059. for i, v in pairs(mw1:GetChildren()) do
  9060. if v:IsA("Part") then
  9061. v.Transparency = 0
  9062. v.BrickColor = BrickColor.random()
  9063. v.Material = "Neon"
  9064. end
  9065. end
  9066. for i, v in pairs(extrawingmod1:GetChildren()) do
  9067. if v:IsA("Part") then
  9068. v.Transparency = 0.5
  9069. v.BrickColor = BrickColor.random()
  9070. v.Material = "Neon"
  9071. end
  9072. end
  9073. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9074. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9075. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9076. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9077. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9078. end
  9079. end))
  9080.  
  9081. coroutine.resume(coroutine.create(function()
  9082. if ModeOfGlitch == 66 then
  9083. RecolorTextAndRename("BETRAYAL",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9084. end
  9085. end))
  9086.  
  9087. if chaosmode == false then
  9088. modet.Position = UDim2.new(0,0,0,0)
  9089. modet.Rotation = -5 * math.cos(sine / 32)
  9090. techc.Rotation = techc.Rotation + 1
  9091. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9092. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9093. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9094. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9095. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9096. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9097. else
  9098. techc.Rotation = techc.Rotation + 1
  9099. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9100. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9101. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9102. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9103. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9104. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9105. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9106. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9107. end
  9108. CameraManager()
  9109. swait()
  9110. 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)
  9111. 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)
  9112. 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)
  9113. 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)
  9114. 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)
  9115. 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)
  9116. 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)
  9117. 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)
  9118. 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)
  9119. 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)
  9120. 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)
  9121. 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)
  9122. sine = sine + change
  9123. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9124. local velderp=RootPart.Velocity.y
  9125. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9126. coroutine.resume(coroutine.create(function()
  9127. 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
  9128. if hitfloor ~= nil then
  9129. 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"))
  9130. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9131. 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)
  9132. end
  9133. end
  9134. end
  9135. end))
  9136. if equipped==true or equipped==false then
  9137. if attack==false then
  9138. idle=idle+1
  9139. else
  9140. idle=0
  9141. end
  9142. if idle>=500 then
  9143. if attack==false then
  9144. --Sheath()
  9145. end
  9146. end
  9147. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9148. Anim="Jump"
  9149. if attack==false then
  9150. 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)
  9151. 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)
  9152. 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)
  9153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9154. 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)
  9155. 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)
  9156. end
  9157. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9158. Anim="Fall"
  9159. if attack==false then
  9160. 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)
  9161. 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)
  9162. 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)
  9163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9164. 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)
  9165. 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)
  9166. end
  9167. elseif torvel<1 and hitfloor~=nil then
  9168. Anim="Idle"
  9169. if attack==false then
  9170. if ModeOfGlitch == 1 then
  9171. local snap = math.random(1,10)
  9172. if snap == 1 then
  9173. 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)
  9174. end
  9175. 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)
  9176. 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)
  9177. 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)
  9178. 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)
  9179. 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)
  9180. 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)
  9181. elseif ModeOfGlitch == 2 then
  9182. 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)
  9183. 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)
  9184. 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)
  9185. 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)
  9186. 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)
  9187. 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)
  9188. elseif ModeOfGlitch == 2 then
  9189. 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)
  9190. 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)
  9191. 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)
  9192. 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)
  9193. 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)
  9194. 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)
  9195. elseif ModeOfGlitch == 50 then
  9196. 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)
  9197. 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)
  9198. 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)
  9199. 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)
  9200. 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)
  9201. 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)
  9202. elseif ModeOfGlitch == 5555 then --5555
  9203. 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)
  9204. 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)
  9205. 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)
  9206. 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)
  9207. 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)
  9208. 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)
  9209. elseif ModeOfGlitch == 1002 then
  9210. 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)
  9211. 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)
  9212. 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)
  9213. 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)
  9214. 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)
  9215. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9216. elseif ModeOfGlitch == 12 then
  9217. 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)
  9218. 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)
  9219. 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)
  9220. 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)
  9221. 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)
  9222. 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)
  9223. elseif ModeOfGlitch == 3 then
  9224. local snap = math.random(1,32)
  9225. if snap == 1 then
  9226. 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)
  9227. end
  9228. 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)
  9229. 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)
  9230. 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)
  9231. 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)
  9232. 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)
  9233. 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)
  9234. elseif ModeOfGlitch == 4 then
  9235. local snap = math.random(1,5)
  9236. if snap == 1 then
  9237. 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)
  9238. 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)
  9239. 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)
  9240. end
  9241. 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)
  9242. 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)
  9243. 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)
  9244. 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)
  9245. 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)
  9246. 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)
  9247. elseif ModeOfGlitch == 66 then
  9248. local snap = math.random(1,2)
  9249. if snap == 1 then
  9250. 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)
  9251. 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)
  9252. 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)
  9253. end
  9254. 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)
  9255. 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)
  9256. 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)
  9257. 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)
  9258. 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)
  9259. 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)
  9260. elseif ModeOfGlitch == 5 then
  9261. 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)
  9262. 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)
  9263. 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)
  9264. 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)
  9265. 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)
  9266. 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)
  9267. elseif ModeOfGlitch == 6 then
  9268. 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)
  9269. 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)
  9270. 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)
  9271. 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)
  9272. 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)
  9273. 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)
  9274. elseif ModeOfGlitch == 13 then
  9275. 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)
  9276. 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)
  9277. 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)
  9278. 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)
  9279. 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)
  9280. 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)
  9281. elseif ModeOfGlitch == 8 then
  9282. 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)
  9283. 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)
  9284. 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)
  9285. 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)
  9286. 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)
  9287. 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)
  9288. elseif ModeOfGlitch == 9 then
  9289. 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)
  9290. 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))
  9291. 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)
  9292. 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)
  9293. 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)
  9294. 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)
  9295. 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)
  9296. 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)
  9297. elseif ModeOfGlitch == 1003 then
  9298. 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)
  9299. 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)
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304.  
  9305. elseif ModeOfGlitch == 8889 then
  9306. 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)
  9307. 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)
  9308. 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)
  9309. 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)
  9310. 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)
  9311. 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)
  9312. elseif ModeOfGlitch == 1264532489 then
  9313. 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)
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. 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)
  9319. 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)
  9320. elseif ModeOfGlitch == 9999999921111 then --9999999921111
  9321. 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)
  9322. 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)
  9323. 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)
  9324. 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)
  9325. 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)
  9326. 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)
  9327. elseif ModeOfGlitch == 4367677813 then
  9328. 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)
  9329. 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)
  9330. 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)
  9331. 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)
  9332. 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)
  9333. 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)
  9334. elseif ModeOfGlitch == 55469696922 then --5555
  9335. 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)
  9336. 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)
  9337. 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)
  9338. 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)
  9339. 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)
  9340. 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)
  9341. elseif ModeOfGlitch == 999999999556 then
  9342. 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)
  9343. 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)
  9344. 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)
  9345. 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)
  9346. 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)
  9347. 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)
  9348. end
  9349. end
  9350. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9351. Anim="Walk"
  9352. if attack==false and ModeOfGlitch ~= 66 then
  9353. 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)
  9354. 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)
  9355. 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)
  9356. 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)
  9357. 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)
  9358. 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)
  9359. elseif attack==false and ModeOfGlitch == 66 then
  9360. 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)
  9361. 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)
  9362. 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)
  9363. 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)
  9364. 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)
  9365. 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)
  9366. end
  9367. elseif torvel>=22 and hitfloor~=nil then
  9368. Anim="Run"
  9369. if attack==false then
  9370. 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
  9371. 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)
  9372. 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)
  9373. 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)
  9374. 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)
  9375. 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)
  9376. 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)
  9377. if ModeOfGlitch == 12 then
  9378. 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)
  9379. 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)
  9380. 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)
  9381. 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)
  9382. 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)
  9383. 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)
  9384. end
  9385. if ModeOfGlitch == 9 then
  9386. 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)
  9387. 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))
  9388. 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)
  9389. end
  9390. 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
  9391. 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)
  9392. 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)
  9393. 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)
  9394. 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)
  9395. 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)
  9396. 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)
  9397. elseif ModeOfGlitch == 13 then
  9398. 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)
  9399. 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)
  9400. 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)
  9401. 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)
  9402. 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)
  9403. 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)
  9404. end
  9405. end
  9406. end
  9407. end
  9408. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement