SHARE
TWEET

Untitled

zerong2 Jun 25th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8.  
  9. wait(0.2)
  10.  
  11.  
  12. warn([[SpectrumGlitcher v5 AWAKENED Loaded.
  13. The super switcher.
  14. Velnorum is one of the first wielders.
  15.  
  16. Created, Reworked by NoobyGames12
  17. Edited by GodzPlaysRB
  18. Edited by wanTH092 (Gam_Filano CH)
  19. SpectrumGlitcher Developers ^^^
  20. ]])
  21.  
  22.  
  23. ------------- ORIGINAL WIELDER OC: Velnorum
  24. print([[Icons:
  25. ! = New
  26. ? = Spoilers
  27. * = Exclusivity
  28. C = Changes
  29.  
  30. ]])
  31. warn([[V 7.5 Update Log:
  32. C: Changed everything to guest xd
  33. ]])
  34. --- its obs smooth af do not touch
  35. ---- Sources and functions might be taken from others
  36. plr = game:GetService("Players").LocalPlayer
  37. char = plr.Character
  38. hum = char.Humanoid
  39. local cam = game.Workspace.CurrentCamera
  40. Camera = cam
  41. mouse = plr:GetMouse()
  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://407749940"
  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. function newThemeCust(ID,timepos,pitch,vol)
  158. local kanz = kan
  159. kanz:Stop()
  160. kanz.Volume = vol
  161. kanz.TimePosition = timepos
  162. kanz.PlaybackSpeed = pitch
  163. kanz.Pitch = pitch
  164. kanz.SoundId = ID
  165. kanz.Name = "wrecked"
  166. kanz.Looped = true
  167. currentThemePlaying = kanz.SoundId
  168. currentVol = kanz.Volume
  169. currentPitch = kanz.Pitch
  170. kanz:Play()
  171. coroutine.resume(coroutine.create(function()
  172. wait(0.05)
  173. end))
  174. end
  175.  
  176. local mutedtog = false
  177.  
  178. function CameraEnshaking(Length,Intensity)
  179. coroutine.resume(coroutine.create(function()
  180.       local intensity = 1*Intensity
  181.       local rotM = 0.01*Intensity
  182. for i = 0, Length, 0.1 do
  183. swait()
  184. intensity = intensity - 0.05*Intensity/Length
  185. rotM = rotM - 0.0005*Intensity/Length
  186.       hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  187.       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)
  188. end
  189. Humanoid.CameraOffset = Vec3(0, 0, 0)
  190. end))
  191. end
  192. CamShake=function(Part,Distan,Power,Times)
  193. local de=Part.Position
  194. for i,v in pairs(workspace:children()) do
  195.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  196. for _,c in pairs(v:children()) do
  197. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  198. local Noob=v.Humanoid
  199. if Noob~=nil then
  200. coroutine.resume(coroutine.create(function()
  201. FV = Instance.new("BoolValue", Noob)
  202. FV.Name = "CameraShake"
  203. for ShakeNum=1,Times do
  204. swait()
  205. local ef=Power
  206.   if ef>=1 then
  207.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  208.   else
  209.    ef=Power*10
  210.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  211.   end  
  212. end
  213. Humanoid.CameraOffset = Vector3.new(0,0,0)
  214. FV:Destroy()
  215. end))
  216. CameraShake(Times, Power, Noob)
  217. end
  218. end
  219. end
  220. end
  221. end
  222. end
  223.  
  224. local toggleTag = true
  225. local bilguit = Instance.new("BillboardGui", hed)
  226. bilguit.Adornee = nil
  227. bilguit.Name = "ModeName"
  228. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  229. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  230. local modet = Instance.new("TextLabel", bilguit)
  231. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  232. modet.FontSize = "Size8"
  233. modet.TextScaled = true
  234. modet.TextTransparency = 0
  235. modet.BackgroundTransparency = 1
  236. modet.TextTransparency = 0
  237. modet.TextStrokeTransparency = 0
  238. modet.Font = "Antique"
  239. modet.TextStrokeColor3 = Color3.new(1,0,0)
  240. modet.TextColor3 = Color3.new(0.25,0,0)
  241. modet.Text = "Mueder Guest"
  242.  
  243.  
  244. function chatfunc(text,color,typet,font,timeex)
  245. local chat = coroutine.wrap(function()
  246. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  247. Character:FindFirstChild("TalkingBillBoard"):destroy()
  248. end
  249. local naeeym2 = Instance.new("BillboardGui",Character)
  250. naeeym2.Size = UDim2.new(0,100,0,40)
  251. naeeym2.StudsOffset = Vector3.new(0,3,0)
  252. naeeym2.Adornee = Character.Head
  253. naeeym2.Name = "TalkingBillBoard"
  254. local tecks2 = Instance.new("TextLabel",naeeym2)
  255. tecks2.BackgroundTransparency = 1
  256. tecks2.BorderSizePixel = 0
  257. tecks2.Text = ""
  258. tecks2.Font = font
  259. tecks2.TextSize = 30
  260. tecks2.TextStrokeTransparency = 0
  261. tecks2.TextColor3 = color
  262. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  263. tecks2.Size = UDim2.new(1,0,0.5,0)
  264. local tecks3 = Instance.new("TextLabel",naeeym2)
  265. tecks3.BackgroundTransparency = 1
  266. tecks3.BorderSizePixel = 0
  267. tecks3.Text = ""
  268. tecks3.Font = font
  269. tecks3.TextSize = 30
  270. tecks3.TextStrokeTransparency = 0
  271. if typet == "Inverted" then
  272. tecks3.TextColor3 = Color3.new(0,0,0)
  273. tecks3.TextStrokeColor3 = color
  274. elseif typet == "Normal" then
  275. tecks3.TextColor3 = color
  276. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  277. end
  278. tecks3.Size = UDim2.new(1,0,0.5,0)
  279. coroutine.resume(coroutine.create(function()
  280. while true do
  281. swait(1)
  282. if chaosmode == true then
  283. tecks2.TextColor3 = BrickColor.random().Color
  284. tecks3.TextStrokeColor3 = BrickColor.random().Color
  285. end
  286. end
  287. end))
  288. modet.TextTransparency = modet.TextTransparency  + 1
  289. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  290. for i = 0, 74*timeex do
  291. swait()
  292. modet.TextTransparency = 1
  293. modet.TextStrokeTransparency = 1
  294. tecks2.Text = text
  295. tecks3.Text = text
  296. end
  297. local randomrot = math.random(1,2)
  298. if randomrot == 1 then
  299. for i = 1, 50 do
  300. swait()
  301. tecks2.Text = text
  302. tecks3.Text = text
  303. modet.TextTransparency = modet.TextTransparency - .02
  304. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  305. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  306. tecks2.TextTransparency = tecks2.TextTransparency + .04
  307. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  308. tecks3.TextTransparency = tecks2.TextTransparency + .04
  309. end
  310. elseif randomrot == 2 then
  311.     for i = 1, 50 do
  312. swait()
  313. tecks2.Text = text
  314. tecks3.Text = text
  315. modet.TextTransparency = modet.TextTransparency - .02
  316. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  317. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  318. tecks2.TextTransparency = tecks2.TextTransparency + .04
  319. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  320. tecks3.TextTransparency = tecks2.TextTransparency + .04
  321. end
  322. end
  323. modet.TextTransparency = 0
  324. modet.TextStrokeTransparency = 0
  325. if toggleTag == false then
  326. modet.TextTransparency = 1
  327. modet.TextStrokeTransparency = 1
  328. end
  329. naeeym2:Destroy()
  330. end)
  331. chat()
  332. end
  333.  
  334. function bosschatfunc(text,color,watval)
  335. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  336. coroutine.resume(coroutine.create(function()
  337. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  338. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  339. end
  340. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  341. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  342. scrg.Name = "Dialog"
  343. local txtlb = Instance.new("TextLabel",scrg)
  344. txtlb.Text = ""
  345. txtlb.Font = "Bodoni"
  346. txtlb.TextColor3 = Color3.new(0,0,0)
  347. txtlb.TextStrokeTransparency = 0
  348. txtlb.BackgroundTransparency = 0.75
  349. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  350. txtlb.TextStrokeColor3 = color
  351. txtlb.TextScaled = true
  352. txtlb.Size = UDim2.new(1,0,0.25,0)
  353. txtlb.TextXAlignment = "Left"
  354. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  355. local txtlb2 = Instance.new("TextLabel",scrg)
  356. txtlb2.Text = plr.Name.." The Guest:"
  357. txtlb2.Font = "Antique"
  358. txtlb2.TextColor3 = Color3.new(0,0,0)
  359. txtlb2.TextStrokeTransparency = 0
  360. txtlb2.BackgroundTransparency = 1
  361. txtlb2.TextStrokeColor3 = color
  362. txtlb2.TextSize = 40
  363. txtlb2.Size = UDim2.new(1,0,0.25,0)
  364. txtlb2.TextXAlignment = "Left"
  365. txtlb2.Position = UDim2.new(0,0,1,0)
  366. local fvalen = 0.55
  367. local fval = -0.49
  368. coroutine.resume(coroutine.create(function()
  369. while true do
  370. swait()
  371. if chaosmode == true then
  372. txtlb.Rotation = math.random(-1,1)
  373. txtlb2.Rotation = math.random(-1,1)
  374. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  375. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  376. txtlb.TextStrokeColor3 = BrickColor.random().Color
  377. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  378. end
  379. end
  380. end))
  381. coroutine.resume(coroutine.create(function()
  382. while true do
  383. swait()
  384. if scrg.Parent ~= nil then
  385.     fvalen = fvalen - 0.0001
  386. elseif scrg.Parent == nil then
  387. break
  388. end
  389. end
  390. end))
  391. local flol = 1.75
  392. local flil = 1.6
  393. coroutine.resume(coroutine.create(function()
  394.     for i = 0, 9 do
  395.         swait()
  396.         fval = fval + 0.05
  397.         flol = flol - 0.1
  398.         flil = flil - 0.1
  399.         txtlb.Text = ""
  400.         txtlb.Position = UDim2.new(0,0,flol,0)
  401.         txtlb2.Position = UDim2.new(0,0,flil,0)
  402.     end
  403.     txtlb.Text = text
  404. wait(watval)
  405. local valinc = 0
  406. for i = 0, 99 do
  407. swait()
  408. valinc = valinc + 0.0001
  409. flol = flol + valinc
  410. flil = flil + valinc
  411. txtlb.Rotation = txtlb.Rotation + valinc*20
  412. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  413. txtlb.Position = UDim2.new(0,0,flol,0)
  414. txtlb2.Position = UDim2.new(0,0,flil,0)
  415. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  416. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  417. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  418. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  419. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  420. end
  421. scrg:Destroy()
  422. end))
  423. end))
  424. end
  425. end
  426.  
  427.  
  428. local Create = LoadLibrary("RbxUtility").Create
  429.  
  430. CFuncs = { 
  431.     ["Part"] = {
  432.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  433.             local Part = Create("Part"){
  434.                 Parent = Parent,
  435.                 Reflectance = Reflectance,
  436.                 Transparency = Transparency,
  437.                 CanCollide = false,
  438.                 Locked = true,
  439.                 BrickColor = BrickColor.new(tostring(BColor)),
  440.                 Name = Name,
  441.                 Size = Size,
  442.                 Material = Material,
  443.             }
  444.             RemoveOutlines(Part)
  445.             return Part
  446.         end;
  447.     };
  448.    
  449.     ["Mesh"] = {
  450.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  451.             local Msh = Create(Mesh){
  452.                 Parent = Part,
  453.                 Offset = OffSet,
  454.                 Scale = Scale,
  455.             }
  456.             if Mesh == "SpecialMesh" then
  457.                 Msh.MeshType = MeshType
  458.                 Msh.MeshId = MeshId
  459.             end
  460.             return Msh
  461.         end;
  462.     };
  463.    
  464.     ["Mesh"] = {
  465.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  466.             local Msh = Create(Mesh){
  467.                 Parent = Part,
  468.                 Offset = OffSet,
  469.                 Scale = Scale,
  470.             }
  471.             if Mesh == "SpecialMesh" then
  472.                 Msh.MeshType = MeshType
  473.                 Msh.MeshId = MeshId
  474.             end
  475.             return Msh
  476.         end;
  477.     };
  478.    
  479.     ["Weld"] = {
  480.         Create = function(Parent, Part0, Part1, C0, C1)
  481.             local Weld = Create("Weld"){
  482.                 Parent = Parent,
  483.                 Part0 = Part0,
  484.                 Part1 = Part1,
  485.                 C0 = C0,
  486.                 C1 = C1,
  487.             }
  488.             return Weld
  489.         end;
  490.     };
  491.  
  492.     ["Sound"] = {
  493.         Create = function(id, par, vol, pit)
  494.             coroutine.resume(coroutine.create(function()
  495.                 local S = Create("Sound"){
  496.                     Volume = vol,
  497.                                         Name = "EffectSoundo",
  498.                     Pitch = pit or 1,
  499.                     SoundId = id,
  500.                     Parent = par or workspace,
  501.                 }
  502.                 wait()
  503.                 S:play()
  504.                 game:GetService("Debris"):AddItem(S, 10)
  505.             end))
  506.         end;
  507.     };
  508.  
  509.     ["TimeSound"] = {
  510.         Create = function(id, par, vol, pit, timepos)
  511.             coroutine.resume(coroutine.create(function()
  512.                 local S = Create("Sound"){
  513.                     Volume = vol,
  514.                                         Name = "EffectSoundo",
  515.                     Pitch = pit or 1,
  516.                     SoundId = id,
  517.                                         TimePosition = timepos,
  518.                     Parent = par or workspace,
  519.                 }
  520.                 wait()
  521.                 S:play()
  522.                 game:GetService("Debris"):AddItem(S, 10)
  523.             end))
  524.         end;
  525.     };
  526.         ["EchoSound"] = {
  527.         Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  528.             coroutine.resume(coroutine.create(function()
  529.                 local Sas = Create("Sound"){
  530.                     Volume = vol,
  531.                     Name = "EffectSoundo",
  532.                     Pitch = pit or 1,
  533.                     SoundId = id,
  534.                     TimePosition = timepos,
  535.                     Parent = par or workspace,
  536.                 }
  537.                 local E = Create("EchoSoundEffect"){
  538.                     Delay = echodelay,
  539.                     Name = "Echo",
  540.                     Feedback = fedb,
  541.                     DryLevel = dryl,
  542.                     Parent = Sas,
  543.                 }
  544.                 wait()
  545.                 Sas:play()
  546.                 game:GetService("Debris"):AddItem(Sas, delays)
  547.             end))
  548.         end;
  549.     };
  550.  
  551. ["LongSound"] = {
  552.         Create = function(id, par, vol, pit)
  553.             coroutine.resume(coroutine.create(function()
  554.                 local S = Create("Sound"){
  555.                     Volume = vol,
  556.                     Pitch = pit or 1,
  557.                     SoundId = id,
  558.                     Parent = par or workspace,
  559.                 }
  560.                 wait()
  561.                 S:play()
  562.                 game:GetService("Debris"):AddItem(S, 60)
  563.             end))
  564.         end;
  565.     };
  566.    
  567.     ["ParticleEmitter"] = {
  568.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  569.             local fp = Create("ParticleEmitter"){
  570.                 Parent = Parent,
  571.                 Color = ColorSequence.new(Color1, Color2),
  572.                 LightEmission = LightEmission,
  573.                 Size = Size,
  574.                 Texture = Texture,
  575.                 Transparency = Transparency,
  576.                 ZOffset = ZOffset,
  577.                 Acceleration = Accel,
  578.                 Drag = Drag,
  579.                 LockedToPart = LockedToPart,
  580.                 VelocityInheritance = VelocityInheritance,
  581.                 EmissionDirection = EmissionDirection,
  582.                 Enabled = Enabled,
  583.                 Lifetime = LifeTime,
  584.                 Rate = Rate,
  585.                 Rotation = Rotation,
  586.                 RotSpeed = RotSpeed,
  587.                 Speed = Speed,
  588.                 VelocitySpread = VelocitySpread,
  589.             }
  590.             return fp
  591.         end;
  592.     };
  593.  
  594.     CreateTemplate = {
  595.    
  596.     };
  597. }
  598.  
  599.  
  600.  
  601. New = function(Object, Parent, Name, Data)
  602.     local Object = Instance.new(Object)
  603.     for Index, Value in pairs(Data or {}) do
  604.         Object[Index] = Value
  605.     end
  606.     Object.Parent = Parent
  607.     Object.Name = Name
  608.     return Object
  609. end
  610. local halocolor = BrickColor.new("Pastel light blue")
  611. local halocolor2 = BrickColor.new("Cool yellow")
  612. local starcolor = BrickColor.new("Bright yellow")
  613. local lunacolor = BrickColor.new("Navy blue")
  614. local lunacolor2 = BrickColor.new("Bright blue")
  615. local wepcolor = BrickColor.new("Really black")
  616. local maincolor = BrickColor.new("Really black")
  617. local m = Instance.new("Model",char)
  618. local m2 = Instance.new("Model",char)
  619. local m3 = Instance.new("Model",char)
  620. local mw1 = Instance.new("Model",char)
  621. local mw2 = Instance.new("Model",char)
  622.  
  623.  
  624. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  625.   local gui = it(GuiType)
  626.   gui.Parent = parent
  627.   gui.Text = text
  628.   gui.BackgroundTransparency = backtrans
  629.   gui.BackgroundColor3 = backcol
  630.   gui.SizeConstraint = "RelativeXY"
  631.   gui.TextXAlignment = "Center"
  632.   gui.TextYAlignment = "Center"
  633.   gui.Position = pos
  634.   gui.Size = size
  635.   gui.Font = "SourceSans"
  636.   gui.FontSize = "Size14"
  637.   gui.TextWrapped = false
  638.   gui.TextStrokeTransparency = 0
  639.   gui.TextColor = BrickColor.new("White")
  640.   return gui
  641. end
  642. --------------------------- GUI STUFF
  643. local basgui = it("GuiMain")
  644. basgui.Parent = plr.PlayerGui
  645. basgui.Name = "VISgui"
  646. local fullscreenz = it("Frame")
  647. fullscreenz.Parent = basgui
  648. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  649. fullscreenz.BackgroundTransparency = 1
  650. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  651. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  652. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  653. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  654. imgl2.BackgroundTransparency = 1
  655. imgl2.BorderSizePixel = 0
  656. imgl2.ImageTransparency = 0.5
  657. imgl2.ImageColor3 = Color3.new(1,0,0)
  658. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  659. imgl2.Size = UDim2.new(0,1000,0,1000)
  660. imgl2.Image = "rbxassetid://2325939897"
  661. local techc = imgl2:Clone()
  662. techc.Parent = fullscreenz
  663. techc.ImageTransparency = 0
  664. techc.Size = UDim2.new(0,900,0,900)
  665. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  666. techc.ImageColor3 = Color3.new(1,0,0)
  667. techc.Image = "rbxassetid://2273224484"
  668. local circl = imgl2:Clone()
  669. circl.Parent = fullscreenz
  670. circl.ImageTransparency = 0
  671. circl.Size = UDim2.new(0,550,0,550)
  672. circl.Position = UDim2.new(0.75,25,0.55,25)
  673. circl.ImageColor3 = Color3.new(0,0,0)
  674. circl.Image = "rbxassetid://2312119891"
  675. local circl2 = imgl2:Clone()
  676. circl2.Parent = fullscreenz
  677. circl2.ImageTransparency = 0
  678. circl2.Size = UDim2.new(0,700,0,700)
  679. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  680. circl2.ImageColor3 = Color3.new(1,0,0)
  681. circl2.Image = "rbxassetid://2312119891"
  682. local imgl2b = imgl2:Clone()
  683. imgl2b.Parent = fullscreenz
  684. imgl2b.ImageTransparency = 0
  685. imgl2b.Size = UDim2.new(0,800,0,800)
  686. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  687. imgl2b.ImageColor3 = Color3.new(0,0,0)
  688. local ned = Instance.new("TextLabel",fullscreenz)
  689. ned.ZIndex = 2
  690. ned.Font = "Arcade"
  691. ned.BackgroundTransparency = 1
  692. ned.BorderSizePixel = 0.65
  693. ned.Size = UDim2.new(0.3,0,0.2,0)
  694. ned.Position = UDim2.new(0.7,0,0.8,0)
  695. ned.TextColor3 = BrickColor.new("Really red").Color
  696. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  697. ned.TextScaled = true
  698. ned.TextStrokeTransparency = 0
  699. ned.Text = "Murder Guest"
  700. ned.TextSize = 24
  701. ned.Rotation = 1
  702. ned.TextXAlignment = "Right"
  703. ned.TextYAlignment = "Bottom"
  704.  
  705. local extrawingmod1 = Instance.new("Model",char)
  706. local extrawingmod2 = Instance.new("Model",char)
  707.  
  708. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  709. local p = Instance.new("Part")
  710. p.TopSurface = 0
  711. p.BottomSurface = 0
  712. p.Parent = parent
  713. p.Size = Vector3.new(0.1,0.1,0.1)
  714. p.Transparency = transparency
  715. p.Reflectance = reflectance
  716. p.CanCollide = false
  717. p.Locked = true
  718. p.BrickColor = brickcolor
  719. p.Material = material
  720. return p
  721. end
  722.  
  723. function CreateMesh(parent,meshtype,x1,y1,z1)
  724. local mesh = Instance.new("SpecialMesh",parent)
  725. mesh.MeshType = meshtype
  726. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  727. return mesh
  728. end
  729.  
  730. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  731. local mesh = Instance.new("SpecialMesh",parent)
  732. mesh.MeshType = "FileMesh"
  733. mesh.MeshId = meshid
  734. mesh.Scale = Vector3.new(x1,y1,z1)
  735. return mesh
  736. end
  737.  
  738.  
  739. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  740. local mesh = Instance.new("SpecialMesh",parent)
  741. mesh.MeshType = "FileMesh"
  742. mesh.MeshId = meshid
  743. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  744. mesh.Scale = Vector3.new(x1,y1,z1)
  745. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  746. return mesh
  747. end
  748.  
  749. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  750. local weld = Instance.new("Weld")
  751. weld.Parent = parent
  752. weld.Part0 = part0
  753. weld.Part1 = part1
  754. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  755. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  756. return weld
  757. end
  758.  
  759.  
  760. --------------
  761. --------------
  762. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  763. 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))
  764. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  765. 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))
  766.  
  767. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  768. CreateMesh(handle,"Brick",0,0,0)
  769. 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))
  770. local valuaring = 10
  771. for i = 0, 49 do
  772.     valuaring = valuaring + 10
  773. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  774. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  775. 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))
  776. end
  777.  
  778. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  779. CreateMesh(handle,"Brick",0,0,0)
  780. 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))
  781. local valuaring = 10
  782. for i = 0, 49 do
  783.     valuaring = valuaring + 10
  784. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  785. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  786. 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))
  787. end
  788.  
  789.  
  790. local handle = CreateParta(m,1,1,"Neon",maincolor)
  791. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  792. 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))
  793.  
  794. --- Left wing.
  795.  
  796. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  797. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  798. 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))
  799.  
  800. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  801. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  802. 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))
  803. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  804. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  805. 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))
  806. A0 = Instance.new('Attachment',wed)
  807. A0.Position = vt(0,0.25,0.25)
  808. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,0.5,3)
  810. 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))
  811. A1 = Instance.new('Attachment',wed)
  812. A1.Position = vt(0,-0.25,-2)
  813. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,3,0.5)
  815. 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))
  816.  
  817. tl1 = Instance.new('Trail',wed)
  818. tl1.Attachment0 = A1
  819. tl1.Attachment1 = A0
  820. tl1.Texture = "rbxassetid://2108945559"
  821. tl1.LightEmission = 1
  822. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  823. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  824. tl1.Lifetime = 0.6
  825.  
  826.  
  827. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  828. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  829. 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))
  830.  
  831. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  832. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  833. 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))
  834. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  835. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  836. 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))
  837. A0 = Instance.new('Attachment',wed)
  838. A0.Position = vt(0,0.25,0.25)
  839. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.5,3)
  841. 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))
  842. A1 = Instance.new('Attachment',wed)
  843. A1.Position = vt(0,-0.25,-2)
  844. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  845. CreateMesh(wed,"Wedge",0.05,3,0.5)
  846. 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))
  847.  
  848. tl2 = Instance.new('Trail',wed)
  849. tl2.Attachment0 = A1
  850. tl2.Attachment1 = A0
  851. tl2.Texture = "rbxassetid://2108945559"
  852. tl2.LightEmission = 1
  853. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  854. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  855. tl2.Lifetime = 0.6
  856.  
  857. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. 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))
  860.  
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. 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))
  867. A0 = Instance.new('Attachment',wed)
  868. A0.Position = vt(0,0.25,0.25)
  869. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,3)
  871. 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))
  872. A1 = Instance.new('Attachment',wed)
  873. A1.Position = vt(0,-0.25,-2)
  874. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,3,0.5)
  876. 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))
  877.  
  878. tl3 = Instance.new('Trail',wed)
  879. tl3.Attachment0 = A1
  880. tl3.Attachment1 = A0
  881. tl3.Texture = "rbxassetid://2108945559"
  882. tl3.LightEmission = 1
  883. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  884. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  885. tl3.Lifetime = 0.6
  886.  
  887. tl1.Enabled = false
  888. tl2.Enabled = false
  889. tl3.Enabled = false
  890. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  891. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  892. 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))
  893.  
  894. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. 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))
  897. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  899. 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))
  900. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,3)
  902. 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))
  903. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,3,0.5)
  905. 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))
  906.  
  907. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  908. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  909. 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))
  910.  
  911. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  913. 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))
  914. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. 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))
  917. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,3)
  919. 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))
  920. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,3,0.5)
  922. 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))
  923.  
  924. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  925. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  926. 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))
  927.  
  928. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  930. 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))
  931. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  933. 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))
  934. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  935. CreateMesh(wed,"Wedge",0.05,0.5,3)
  936. 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))
  937. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,3,0.5)
  939. 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))
  940.  
  941. -- Right wing.
  942.  
  943. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. 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))
  946.  
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. A0 = Instance.new('Attachment',wed)
  951. A0.Position = vt(0,0.25,0.25)
  952. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. 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))
  955. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,3)
  957. 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))
  958. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,3,0.5)
  960. 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))
  961. A1 = Instance.new('Attachment',wed)
  962. A1.Position = vt(0,2,0.25)
  963.  
  964. tr1 = Instance.new('Trail',wed)
  965. tr1.Attachment0 = A1
  966. tr1.Attachment1 = A0
  967. tr1.Texture = "rbxassetid://2108945559"
  968. tr1.LightEmission = 1
  969. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  970. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  971. tr1.Lifetime = 0.6
  972.  
  973. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  974. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  975. 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))
  976.  
  977. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. 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))
  980. A0 = Instance.new('Attachment',wed)
  981. A0.Position = vt(0,0.25,0.25)
  982. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  984. 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))
  985. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,3)
  987. 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))
  988. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,3,0.5)
  990. 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))
  991. A1 = Instance.new('Attachment',wed)
  992. A1.Position = vt(0,2,0.25)
  993.  
  994. tr2 = Instance.new('Trail',wed)
  995. tr2.Attachment0 = A1
  996. tr2.Attachment1 = A0
  997. tr2.Texture = "rbxassetid://2108945559"
  998. tr2.LightEmission = 1
  999. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1000. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1001. tr2.Lifetime = 0.6
  1002.  
  1003. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1004. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1005. 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))
  1006.  
  1007. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1009. 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))
  1010. A0 = Instance.new('Attachment',wed)
  1011. A0.Position = vt(0,0.25,0.25)
  1012. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1013. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1014. 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))
  1015. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1016. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1017. 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))
  1018. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1019. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1020. 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))
  1021. A1 = Instance.new('Attachment',wed)
  1022. A1.Position = vt(0,2,0.25)
  1023.  
  1024. tr3 = Instance.new('Trail',wed)
  1025. tr3.Attachment0 = A1
  1026. tr3.Attachment1 = A0
  1027. tr3.Texture = "rbxassetid://2108945559"
  1028. tr3.LightEmission = 1
  1029. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1030. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1031. tr3.Lifetime = 0.6
  1032.  
  1033.  
  1034. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1035. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1036. 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))
  1037.  
  1038. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1040. 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))
  1041. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1043. 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))
  1044. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1045. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1046. 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))
  1047. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1048. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1049. 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))
  1050.  
  1051. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1052. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1053. 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))
  1054.  
  1055. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1056. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1057. 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))
  1058. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1059. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1060. 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))
  1061. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1063. 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))
  1064. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1066. 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))
  1067.  
  1068. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1069. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1070. 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))
  1071.  
  1072. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1074. 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))
  1075. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1076. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1077. 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))
  1078. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1079. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1080. 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))
  1081. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1082. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1083. 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))
  1084.  
  1085. --HERES THE RING
  1086.  
  1087.  
  1088. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1089. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1090. 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))
  1091. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1092. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1093. 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))
  1094. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1095. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1096. 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))
  1097.  
  1098.  
  1099. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1100. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1101. 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))
  1102.  
  1103. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1104. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1105. 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))
  1106.  
  1107.  
  1108.  
  1109. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1110. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1111. 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))
  1112.  
  1113. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1114. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1115. 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))
  1116.  
  1117. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1118. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1119. 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))
  1120.  
  1121. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1122. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1123. 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))
  1124. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1125. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1126. 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))]]--
  1127.  
  1128. --- second ring
  1129.  
  1130.  
  1131. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1132. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1133. 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))
  1134.  
  1135. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1136. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1137. 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))
  1138.  
  1139.  
  1140.  
  1141. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1142. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1143. 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))
  1144.  
  1145. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1146. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1147. 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))
  1148.  
  1149. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1150. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1151. 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))
  1152.  
  1153. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1154. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1155. 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))
  1156. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1157. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1158. 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))
  1159.  
  1160.  
  1161.  
  1162. for i, v in pairs(m:GetChildren()) do
  1163. if v:IsA("Part") then
  1164. v.BrickColor = BrickColor.new("Really black")
  1165. v.Material = "Glass"
  1166. end
  1167. end
  1168. for i, v in pairs(m2:GetChildren()) do
  1169. if v:IsA("Part") then
  1170. v.BrickColor = BrickColor.new("Crimson")
  1171. v.Material = "Granite"
  1172. end
  1173. end
  1174. for i, v in pairs(m3:GetChildren()) do
  1175. if v:IsA("Part") then
  1176. v.BrickColor = BrickColor.new("Really red")
  1177. v.Material = "Neon"
  1178. end
  1179. end
  1180. for i, v in pairs(mw2:GetChildren()) do
  1181. if v:IsA("Part") then
  1182. v.BrickColor = BrickColor.new("Really red")
  1183. v.Material = "Neon"
  1184. end
  1185. end
  1186. for i, v in pairs(mw1:GetChildren()) do
  1187. if v:IsA("Part") then
  1188. v.Transparency = 1
  1189. v.BrickColor = BrickColor.new("Really red")
  1190. v.Material = "Neon"
  1191. end
  1192. end
  1193. for i, v in pairs(extrawingmod1:GetChildren()) do
  1194. if v:IsA("Part") then
  1195. v.Transparency = 1
  1196. v.BrickColor = BrickColor.new("White")
  1197. v.Material = "Neon"
  1198. end
  1199. end
  1200. for i, v in pairs(extrawingmod2:GetChildren()) do
  1201. if v:IsA("Part") then
  1202. v.Transparency = 1
  1203. v.BrickColor = BrickColor.new("White")
  1204. v.Material = "Neon"
  1205. end
  1206. end
  1207. local MAINRUINCOLOR = BrickColor.new("Really red")
  1208. ------
  1209.  
  1210.  
  1211. function RemoveOutlines(part)
  1212.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1213. end
  1214. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1215.   local Part = Create("Part")({
  1216.     Parent = Parent,
  1217.     Reflectance = Reflectance,
  1218.     Transparency = Transparency,
  1219.     CanCollide = false,
  1220.     Locked = true,
  1221.     BrickColor = BrickColor.new(tostring(BColor)),
  1222.     Name = Name,
  1223.     Size = Size,
  1224.     Material = Material
  1225.   })
  1226.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1227.   RemoveOutlines(Part)
  1228.   return Part
  1229. end
  1230. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1231.   local Msh = Create(Mesh)({
  1232.     Parent = Part,
  1233.     Offset = OffSet,
  1234.     Scale = Scale
  1235.   })
  1236.   if Mesh == "SpecialMesh" then
  1237.     Msh.MeshType = MeshType
  1238.     Msh.MeshId = MeshId
  1239.   end
  1240.   return Msh
  1241. end
  1242. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1243.   local Weld = Create("Weld")({
  1244.     Parent = Parent,
  1245.     Part0 = Part0,
  1246.     Part1 = Part1,
  1247.     C0 = C0,
  1248.     C1 = C1
  1249.   })
  1250.   return Weld
  1251. end
  1252.  
  1253. Player = plr
  1254. Character=Player.Character
  1255. PlayerGui=Player.PlayerGui
  1256. Backpack=Player.Backpack
  1257. Torso=Character.Torso
  1258. Head=Character.Head
  1259. Humanoid=Character.Humanoid
  1260. m=Instance.new('Model',Character)
  1261. LeftArm=Character["Left Arm"]
  1262. LeftLeg=Character["Left Leg"]
  1263. RightArm=Character["Right Arm"]
  1264. RightLeg=Character["Right Leg"]
  1265. LS=Torso["Left Shoulder"]
  1266. LH=Torso["Left Hip"]
  1267. RS=Torso["Right Shoulder"]
  1268. RH=Torso["Right Hip"]
  1269. Face = Head.face
  1270. Neck=Torso.Neck
  1271. it=Instance.new
  1272. attacktype=1
  1273. vt=Vector3.new
  1274. cf=CFrame.new
  1275. euler=CFrame.fromEulerAnglesXYZ
  1276. angles=CFrame.Angles
  1277. cloaked=false
  1278. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1279. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1280. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1281. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1282. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1283. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1284. RootPart=Character.HumanoidRootPart
  1285. RootJoint=RootPart.RootJoint
  1286. RootCF=euler(-1.57,0,3.14)
  1287. attack = false
  1288. attackdebounce = false
  1289. deb=false
  1290. equipped=true
  1291. hand=false
  1292. combo=0
  1293. mana=0
  1294. trispeed=.2
  1295. attackmode='none'
  1296. local idle=0
  1297. local Anim="Idle"
  1298. local Effects={}
  1299. local gun=false
  1300. local shoot=false
  1301. local sine = 0
  1302. local change = 1
  1303.  
  1304. function RecolorTextAndRename(name,col1,col2,font)
  1305. modet.TextStrokeColor3 = col2
  1306. modet.TextColor3 = col1
  1307. modet.Font = font
  1308. modet.Text = name
  1309. techc.ImageColor3 = col2
  1310. circl.ImageColor3 = col2
  1311. circl2.ImageColor3 = col1
  1312. imgl2.ImageColor3 = col1
  1313. imgl2b.ImageColor3 = col2
  1314. ned.Text = name
  1315. ned.TextColor3 = col1
  1316. ned.TextStrokeColor3 = col2
  1317. end
  1318. --save shoulders
  1319. RSH, LSH=nil, nil
  1320. --welds
  1321. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1322. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1323. LH=Torso["Left Hip"]
  1324. RH=Torso["Right Hip"]
  1325. TorsoColor=Torso.BrickColor
  1326. function NoOutline(Part)
  1327. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1328. end
  1329. ch=Character
  1330. RSH=ch.Torso["Right Shoulder"]
  1331. LSH=ch.Torso["Left Shoulder"]
  1332. --
  1333. RSH.Parent=nil
  1334. LSH.Parent=nil
  1335. --
  1336. RW.Name="Right Shoulder"
  1337. RW.Part0=ch.Torso
  1338. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1339. RW.C1=cf(0, 0.5, 0)
  1340. RW.Part1=ch["Right Arm"]
  1341. RW.Parent=ch.Torso
  1342. --
  1343. LW.Name="Left Shoulder"
  1344. LW.Part0=ch.Torso
  1345. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1346. LW.C1=cf(0, 0.5, 0)
  1347. LW.Part1=ch["Left Arm"]
  1348. LW.Parent=ch.Torso
  1349.  
  1350. local Stats=Instance.new("BoolValue")
  1351. Stats.Name="Stats"
  1352. Stats.Parent=Character
  1353. local Atk=Instance.new("NumberValue")
  1354. Atk.Name="Damage"
  1355. Atk.Parent=Stats
  1356. Atk.Value=1
  1357. local Def=Instance.new("NumberValue")
  1358. Def.Name="Defense"
  1359. Def.Parent=Stats
  1360. Def.Value=1
  1361. local Speed=Instance.new("NumberValue")
  1362. Speed.Name="Speed"
  1363. Speed.Parent=Stats
  1364. Speed.Value=1
  1365. local Mvmt=Instance.new("NumberValue")
  1366. Mvmt.Name="Movement"
  1367. Mvmt.Parent=Stats
  1368. Mvmt.Value=1
  1369.  
  1370. local donum=0
  1371. local ast = {744586075,385254610}
  1372.  
  1373. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1374. local fp=it("Part")
  1375. fp.formFactor=formfactor
  1376. fp.Parent=parent
  1377. fp.Reflectance=reflectance
  1378. fp.Transparency=transparency
  1379. fp.CanCollide=false
  1380. fp.Locked=true
  1381. fp.BrickColor=brickcolor
  1382. fp.Name=name
  1383. fp.Size=size
  1384. fp.Position=Torso.Position
  1385. NoOutline(fp)
  1386. fp.Material="SmoothPlastic"
  1387. fp:BreakJoints()
  1388. return fp
  1389. end
  1390.  
  1391. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1392. local mesh=it(Mesh)
  1393. mesh.Parent=part
  1394. if Mesh=="SpecialMesh" then
  1395. mesh.MeshType=meshtype
  1396. if meshid~="nil" then
  1397. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1398. end
  1399. end
  1400. mesh.Offset=offset
  1401. mesh.Scale=scale
  1402. return mesh
  1403. end
  1404.  
  1405. function weld(parent,part0,part1,c0)
  1406. local weld=it("Weld")
  1407. weld.Parent=parent
  1408. weld.Part0=part0
  1409. weld.Part1=part1
  1410. weld.C0=c0
  1411. return weld
  1412. end
  1413.  
  1414. local Color1=Torso.BrickColor
  1415.  
  1416. local bodvel=Instance.new("BodyVelocity")
  1417. local bg=Instance.new("BodyGyro")
  1418.  
  1419. --------- SazEreno's Artificial HB --------------
  1420. ArtificialHB = Instance.new("BindableEvent", script)
  1421. ArtificialHB.Name = "ArtificialHB"
  1422.  
  1423. script:WaitForChild("ArtificialHB")
  1424. Frame_Speed = 1 / 60
  1425. frame = Frame_Speed
  1426. tf = 0
  1427. allowframeloss = false
  1428. tossremainder = false
  1429. lastframe = tick()
  1430. script.ArtificialHB:Fire()
  1431.  
  1432. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1433.     tf = tf + s
  1434.     if tf >= frame then
  1435.         if allowframeloss then
  1436.             script.ArtificialHB:Fire()
  1437.             lastframe = tick()
  1438.         else
  1439.             for i = 1, math.floor(tf / frame) do
  1440.                 script.ArtificialHB:Fire()
  1441.             end
  1442.         lastframe = tick()
  1443.         end
  1444.         if tossremainder then
  1445.             tf = 0
  1446.         else
  1447.             tf = tf - frame * math.floor(tf / frame)
  1448.         end
  1449.     end
  1450. end)
  1451.  
  1452. ------------------
  1453. function swait(num)
  1454. if num == 0 or num == nil then
  1455.         ArtificialHB.Event:wait()
  1456.     else
  1457.         for i = 1, num do
  1458.             ArtificialHB.Event:wait()
  1459.         end
  1460.     end
  1461. end
  1462. -------- RAINBOW LEAVE IT TO ME
  1463. local r = 255
  1464. local g = 0
  1465. local b = 0
  1466. coroutine.resume(coroutine.create(function()
  1467. while wait() do
  1468.     for i = 0, 254/5 do
  1469.         swait()
  1470.         g = g + 5
  1471.     end
  1472.     for i = 0, 254/5 do
  1473.         swait()
  1474.         r = r - 5
  1475.     end
  1476.     for i = 0, 254/5 do
  1477.         swait()
  1478.         b = b + 5
  1479.     end
  1480.     for i = 0, 254/5 do
  1481.         swait()
  1482.         g = g - 5
  1483.     end
  1484.     for i = 0, 254/5 do
  1485.         swait()
  1486.         r = r + 5
  1487.     end
  1488.     for i = 0, 254/5 do
  1489.         swait()
  1490.         b = b - 5
  1491.     end
  1492. end
  1493. end))
  1494.  
  1495.  
  1496. so = function(id,par,vol,pit)
  1497. coroutine.resume(coroutine.create(function()
  1498. local sou = Instance.new("Sound",par or workspace)
  1499. sou.Volume=vol
  1500. sou.Pitch=pit or 1
  1501. sou.SoundId=id
  1502. swait()
  1503. sou:play()
  1504. game:GetService("Debris"):AddItem(sou,6)
  1505. end))
  1506. end
  1507.  
  1508. function clerp(a,b,t)
  1509. local qa = {QuaternionFromCFrame(a)}
  1510. local qb = {QuaternionFromCFrame(b)}
  1511. local ax, ay, az = a.x, a.y, a.z
  1512. local bx, by, bz = b.x, b.y, b.z
  1513. local _t = 1-t
  1514. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1515. end
  1516.  
  1517. function QuaternionFromCFrame(cf)
  1518. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1519. local trace = m00 + m11 + m22
  1520. if trace > 0 then
  1521. local s = math.sqrt(1 + trace)
  1522. local recip = 0.5/s
  1523. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1524. else
  1525. local i = 0
  1526. if m11 > m00 then
  1527. i = 1
  1528. end
  1529. if m22 > (i == 0 and m00 or m11) then
  1530. i = 2
  1531. end
  1532. if i == 0 then
  1533. local s = math.sqrt(m00-m11-m22+1)
  1534. local recip = 0.5/s
  1535. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1536. elseif i == 1 then
  1537. local s = math.sqrt(m11-m22-m00+1)
  1538. local recip = 0.5/s
  1539. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1540. elseif i == 2 then
  1541. local s = math.sqrt(m22-m00-m11+1)
  1542. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1543. end
  1544. end
  1545. end
  1546.  
  1547. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1548. local xs, ys, zs = x + x, y + y, z + z
  1549. local wx, wy, wz = w*xs, w*ys, w*zs
  1550. local xx = x*xs
  1551. local xy = x*ys
  1552. local xz = x*zs
  1553. local yy = y*ys
  1554. local yz = y*zs
  1555. local zz = z*zs
  1556. 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))
  1557. end
  1558.  
  1559. function QuaternionSlerp(a, b, t)
  1560. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1561. local startInterp, finishInterp;
  1562. if cosTheta >= 0.0001 then
  1563. if (1 - cosTheta) > 0.0001 then
  1564. local theta = math.acos(cosTheta)
  1565. local invSinTheta = 1/math.sin(theta)
  1566. startInterp = math.sin((1-t)*theta)*invSinTheta
  1567. finishInterp = math.sin(t*theta)*invSinTheta  
  1568. else
  1569. startInterp = 1-t
  1570. finishInterp = t
  1571. end
  1572. else
  1573. if (1+cosTheta) > 0.0001 then
  1574. local theta = math.acos(-cosTheta)
  1575. local invSinTheta = 1/math.sin(theta)
  1576. startInterp = math.sin((t-1)*theta)*invSinTheta
  1577. finishInterp = math.sin(t*theta)*invSinTheta
  1578. else
  1579. startInterp = t-1
  1580. finishInterp = t
  1581. end
  1582. end
  1583. 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
  1584. end
  1585.  
  1586. local function CFrameFromTopBack(at, top, back)
  1587. local right = top:Cross(back)
  1588. return CFrame.new(at.x, at.y, at.z,
  1589. right.x, top.x, back.x,
  1590. right.y, top.y, back.y,
  1591. right.z, top.z, back.z)
  1592. end
  1593.  
  1594. function Triangle(a, b, c)
  1595. local edg1 = (c-a):Dot((b-a).unit)
  1596. local edg2 = (a-b):Dot((c-b).unit)
  1597. local edg3 = (b-c):Dot((a-c).unit)
  1598. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1599. a, b, c = a, b, c
  1600. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1601. a, b, c = b, c, a
  1602. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1603. a, b, c = c, a, b
  1604. else
  1605. assert(false, "unreachable")
  1606. end
  1607.  
  1608. local len1 = (c-a):Dot((b-a).unit)
  1609. local len2 = (b-a).magnitude - len1
  1610. local width = (a + (b-a).unit*len1 - c).magnitude
  1611.  
  1612. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1613.  
  1614. local list = {}
  1615.  
  1616. if len1 > 0.01 then
  1617. local w1 = Instance.new('WedgePart', m)
  1618. game:GetService("Debris"):AddItem(w1,5)
  1619. w1.Material = "SmoothPlastic"
  1620. w1.FormFactor = 'Custom'
  1621. w1.BrickColor = BrickColor.new("Really red")
  1622. w1.Transparency = 0
  1623. w1.Reflectance = 0
  1624. w1.Material = "SmoothPlastic"
  1625. w1.CanCollide = false
  1626. local l1 = Instance.new("PointLight",w1)
  1627. l1.Color = Color3.new(170,0,0)
  1628. NoOutline(w1)
  1629. local sz = Vector3.new(0.2, width, len1)
  1630. w1.Size = sz
  1631. local sp = Instance.new("SpecialMesh",w1)
  1632. sp.MeshType = "Wedge"
  1633. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1634. w1:BreakJoints()
  1635. w1.Anchored = true
  1636. w1.Parent = workspace
  1637. w1.Transparency = 0.7
  1638. table.insert(Effects,{w1,"Disappear",.01})
  1639. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1640. table.insert(list,w1)
  1641. end
  1642.  
  1643. if len2 > 0.01 then
  1644. local w2 = Instance.new('WedgePart', m)
  1645. game:GetService("Debris"):AddItem(w2,5)
  1646. w2.Material = "SmoothPlastic"
  1647. w2.FormFactor = 'Custom'
  1648. w2.BrickColor = BrickColor.new("Really red")
  1649. w2.Transparency = 0
  1650. w2.Reflectance = 0
  1651. w2.Material = "SmoothPlastic"
  1652. w2.CanCollide = false
  1653. local l2 = Instance.new("PointLight",w2)
  1654. l2.Color = Color3.new(170,0,0)
  1655. NoOutline(w2)
  1656. local sz = Vector3.new(0.2, width, len2)
  1657. w2.Size = sz
  1658. local sp = Instance.new("SpecialMesh",w2)
  1659. sp.MeshType = "Wedge"
  1660. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1661. w2:BreakJoints()
  1662. w2.Anchored = true
  1663. w2.Parent = workspace
  1664. w2.Transparency = 0.7
  1665. table.insert(Effects,{w2,"Disappear",.01})
  1666. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1667. table.insert(list,w2)
  1668. end
  1669. return unpack(list)
  1670. end
  1671.  
  1672.  
  1673. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1674.   if hit.Parent == nil then
  1675.     return
  1676.   end
  1677.   local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1678.   for _, v in pairs(hit.Parent:children()) do
  1679.     if v:IsA("Humanoid") then
  1680.       h = v
  1681.     end
  1682.   end
  1683.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1684.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1685.       return
  1686.     end
  1687.     local c = Create("ObjectValue")({
  1688.       Name = "creator",
  1689.       Value = game:GetService("Players").LocalPlayer,
  1690.       Parent = h
  1691.     })
  1692.     game:GetService("Debris"):AddItem(c, 0.5)
  1693.     if HitSound ~= nil and HitPitch ~= nil then
  1694.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1695.     end
  1696.     local Damage = math.random(minim, maxim)
  1697.     local blocked = false
  1698.     local block = hit.Parent:findFirstChild("Block")
  1699.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1700.       blocked = true
  1701.       block.Value = block.Value - 1
  1702.       print(block.Value)
  1703.     end
  1704.     if blocked == false then
  1705.       HitHealth = h.Health
  1706.       h.MaxHealth = 100
  1707.       h.Health = h.Health - Damage
  1708.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1709.         print("gained kill")
  1710.         dmg(h.Parent)
  1711.       end
  1712.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1713.     else
  1714.       h.Health = h.Health - Damage / 2
  1715.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1716.     end
  1717.     if Type == "Knockdown" then
  1718.       local hum = hit.Parent.Humanoid
  1719.       hum.PlatformStand = true
  1720.       coroutine.resume(coroutine.create(function(HHumanoid)
  1721.         swait(1)
  1722.         HHumanoid.PlatformStand = false
  1723.       end), hum)
  1724.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1725.       local bodvol = Create("BodyVelocity")({
  1726.         velocity = angle * knockback,
  1727.         P = 5000,
  1728.         maxForce = Vector3.new(8000, 8000, 8000),
  1729.         Parent = hit
  1730.       })
  1731.       local rl = Create("BodyAngularVelocity")({
  1732.         P = 3000,
  1733.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1734.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1735.         Parent = hit
  1736.       })
  1737.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1738.       game:GetService("Debris"):AddItem(rl, 0.5)
  1739.     elseif Type == "Normal" then
  1740.       local vp = Create("BodyVelocity")({
  1741.         P = 500,
  1742.         maxForce = Vector3.new(math.huge, 0, math.huge),
  1743.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1744.       })
  1745.       if knockback > 0 then
  1746.         vp.Parent = hit.Parent.Head
  1747.       end
  1748.       game:GetService("Debris"):AddItem(vp, 0.5)
  1749.     elseif Type == "Up" then
  1750.       local bodyVelocity = Create("BodyVelocity")({
  1751.         velocity = Vector3.new(0, 20, 0),
  1752.         P = 5000,
  1753.         maxForce = Vector3.new(8000, 8000, 8000),
  1754.         Parent = hit
  1755.       })
  1756.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1757.       local bodyVelocity = Create("BodyVelocity")({
  1758.         velocity = Vector3.new(0, 20, 0),
  1759.         P = 5000,
  1760.         maxForce = Vector3.new(8000, 8000, 8000),
  1761.         Parent = hit
  1762.       })
  1763.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1764.     elseif Type == "Leech" then
  1765.       local hum = hit.Parent.Humanoid
  1766.       if hum ~= nil then
  1767.         for i = 0, 2 do
  1768.           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)
  1769.         end
  1770.         Humanoid.Health = Humanoid.Health + 10
  1771.       end
  1772.     elseif Type == "UpKnock" then
  1773.       local hum = hit.Parent.Humanoid
  1774.       hum.PlatformStand = true
  1775.       if hum ~= nil then
  1776.         hitr = true
  1777.       end
  1778.       coroutine.resume(coroutine.create(function(HHumanoid)
  1779.         swait(5)
  1780.         HHumanoid.PlatformStand = false
  1781.         hitr = false
  1782.       end), hum)
  1783.       local bodyVelocity = Create("BodyVelocity")({
  1784.         velocity = Vector3.new(0, 20, 0),
  1785.         P = 5000,
  1786.         maxForce = Vector3.new(8000, 8000, 8000),
  1787.         Parent = hit
  1788.       })
  1789.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1790.       local bodyVelocity = Create("BodyVelocity")({
  1791.         velocity = Vector3.new(0, 20, 0),
  1792.         P = 5000,
  1793.         maxForce = Vector3.new(8000, 8000, 8000),
  1794.         Parent = hit
  1795.       })
  1796.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1797.     elseif Type == "Snare" then
  1798.       local bp = Create("BodyPosition")({
  1799.         P = 2000,
  1800.         D = 100,
  1801.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1802.         position = hit.Parent.Torso.Position,
  1803.         Parent = hit.Parent.Torso
  1804.       })
  1805.       game:GetService("Debris"):AddItem(bp, 1)
  1806.     elseif Type == "Slashnare" then
  1807.       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)
  1808.       for i = 1, math.random(4, 5) do
  1809.         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)
  1810.       end
  1811.       local bp = Create("BodyPosition")({
  1812.         P = 2000,
  1813.         D = 100,
  1814.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1815.         position = hit.Parent.Torso.Position,
  1816.         Parent = hit.Parent.Torso
  1817.       })
  1818.       game:GetService("Debris"):AddItem(bp, 1)
  1819.     elseif Type == "Spike" then
  1820.       CreateBigIceSword(hit.Parent.Torso.CFrame)
  1821.       local bp = Create("BodyPosition")({
  1822.         P = 2000,
  1823.         D = 100,
  1824.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1825.         position = hit.Parent.Torso.Position,
  1826.         Parent = hit.Parent.Torso
  1827.       })
  1828.       game:GetService("Debris"):AddItem(bp, 1)
  1829.     elseif Type == "Freeze" then
  1830.       local BodPos = Create("BodyPosition")({
  1831.         P = 50000,
  1832.         D = 1000,
  1833.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1834.         position = hit.Parent.Torso.Position,
  1835.         Parent = hit.Parent.Torso
  1836.       })
  1837.       local BodGy = Create("BodyGyro")({
  1838.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1839.         P = 20000,
  1840.         Parent = hit.Parent.Torso,
  1841.         cframe = hit.Parent.Torso.CFrame
  1842.       })
  1843.       hit.Parent.Torso.Anchored = true
  1844.       coroutine.resume(coroutine.create(function(Part)
  1845.         swait(1.5)
  1846.         Part.Anchored = false
  1847.       end), hit.Parent.Torso)
  1848.       game:GetService("Debris"):AddItem(BodPos, 3)
  1849.       game:GetService("Debris"):AddItem(BodGy, 3)
  1850.     end
  1851.     local debounce = Create("BoolValue")({
  1852.       Name = "DebounceHit",
  1853.       Parent = hit.Parent,
  1854.       Value = true
  1855.     })
  1856.     game:GetService("Debris"):AddItem(debounce, Delay)
  1857.     c = Instance.new("ObjectValue")
  1858.     c.Name = "creator"
  1859.     c.Value = Player
  1860.     c.Parent = h
  1861.     game:GetService("Debris"):AddItem(c, 0.5)
  1862.   end
  1863. end
  1864. function ShowDamage(Pos, Text, Time, Color)
  1865.   local Rate = 0.03333333333333333
  1866.   local Pos = Pos or Vector3.new(0, 0, 0)
  1867.   local Text = Text or ""
  1868.   local Time = Time or 2
  1869.   local Color = Color or Color3.new(1, 0, 1)
  1870.   local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1871.   EffectPart.Anchored = true
  1872.   local BillboardGui = Create("BillboardGui")({
  1873.     Size = UDim2.new(3, 0, 3, 0),
  1874.     Adornee = EffectPart,
  1875.     Parent = EffectPart
  1876.   })
  1877.   local TextLabel = Create("TextLabel")({
  1878.     BackgroundTransparency = 1,
  1879.     Size = UDim2.new(1, 0, 1, 0),
  1880.     Text = Text,
  1881.     TextColor3 = Color,
  1882.     TextScaled = true,
  1883.     Font = Enum.Font.ArialBold,
  1884.     Parent = BillboardGui
  1885.   })
  1886.   game.Debris:AddItem(EffectPart, Time + 0.1)
  1887.   EffectPart.Parent = game:GetService("Workspace")
  1888.   delay(0, function()
  1889.     local Frames = Time / Rate
  1890.     for Frame = 1, Frames do
  1891.       wait(Rate)
  1892.       local Percent = Frame / Frames
  1893.       EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1894.       TextLabel.TextTransparency = Percent
  1895.     end
  1896.     if EffectPart and EffectPart.Parent then
  1897.       EffectPart:Destroy()
  1898.     end
  1899.   end)
  1900. end
  1901. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1902.   for _, c in pairs(workspace:children()) do
  1903.     local hum = c:findFirstChildOfClass("Humanoid")
  1904.     if hum ~= nil then
  1905.       local head = c:findFirstChild("Head")
  1906.       if head ~= nil then
  1907.         local targ = head.Position - Part.Position
  1908.         local mag = targ.magnitude
  1909.         if magni >= mag and c.Name ~= Player.Name then
  1910.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1911.         end
  1912.       end
  1913.     end
  1914.   end
  1915. end
  1916.  
  1917. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1918.   for _, c in pairs(workspace:children()) do
  1919.     local hum = c:findFirstChild("Humanoid")
  1920.     if hum ~= nil then
  1921.       local head = c:findFirstChild("Torso")
  1922.       if head ~= nil then
  1923.         local targ = head.Position - Part.Position
  1924.         local mag = targ.magnitude
  1925.         if magni >= mag and c.Name ~= Player.Name then
  1926.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1927.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1928.         end
  1929.       end
  1930.     end
  1931.   end
  1932. end
  1933.  
  1934. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1935. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1936. end
  1937.  
  1938. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1939. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1940. prt.Anchored=true
  1941. prt.CFrame=cframe
  1942. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1943. --http://www.roblox.com/asset/?id=4770560
  1944. game:GetService("Debris"):AddItem(prt,2)
  1945. CF=prt.CFrame
  1946. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1947. for i=0,1,0.2 do
  1948. wait()
  1949. Part.CFrame=CF*cf(0,0,-0.4)
  1950. end
  1951. for i=0,1,delay do
  1952. wait()
  1953. --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)
  1954. Mesh.Scale=Mesh.Scale
  1955. end
  1956. for i=0,1,0.1 do
  1957. wait()
  1958. Part.Transparency=i
  1959. end
  1960. Part.Parent=nil
  1961. end),prt,msh,CF)
  1962. end
  1963.  
  1964. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1965. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1966. prt.Anchored=true
  1967. prt.Material = "Neon"
  1968. prt.CFrame=cframe
  1969. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1970. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1971. game:GetService("Debris"):AddItem(prt,5)
  1972. coroutine.resume(coroutine.create(function(Part,Mesh)
  1973. for i=0,1,delay do
  1974. swait()
  1975. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1976. Part.Transparency=i
  1977. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1978. end
  1979. Part.Parent=nil
  1980. end),prt,msh)
  1981. end
  1982.  
  1983. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1984. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1985. prt.Anchored=true
  1986. prt.Material = "Neon"
  1987. prt.CFrame=cframe
  1988. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1989. game:GetService("Debris"):AddItem(prt,5)
  1990. coroutine.resume(coroutine.create(function(Part,Mesh)
  1991.     local rtype = rottype
  1992. for i=0,1,delay do
  1993. swait()
  1994. if rtype == 1 then
  1995. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1996. elseif rtype == 2 then
  1997. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1998. end
  1999. Part.Transparency=i
  2000. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2001. end
  2002. Part.Parent=nil
  2003. end),prt,msh)
  2004. end
  2005.  
  2006. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2007. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2008. prt.Anchored=true
  2009. prt.CFrame=cframe
  2010. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2011. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2012. game:GetService("Debris"):AddItem(prt,5)
  2013. coroutine.resume(coroutine.create(function(Part,Mesh)
  2014. for i=0,1,delay do
  2015. wait()
  2016. Part.Transparency=i
  2017. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2018. end
  2019. Part.Parent=nil
  2020. end),prt,msh)
  2021. end
  2022.  
  2023. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2024. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2025. prt.Anchored=true
  2026. prt.Material = "Neon"
  2027. prt.CFrame=cframe
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh)
  2031.     local rtype = rottype
  2032. for i=0,1,delay do
  2033. swait()
  2034. if rtype == 1 then
  2035. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2036. elseif rtype == 2 then
  2037. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2038. end
  2039. Part.Transparency=i
  2040. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2041. end
  2042. Part.Parent=nil
  2043. end),prt,msh)
  2044. end
  2045.  
  2046. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2047. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2048. prt.Anchored=true
  2049. prt.Material = "Neon"
  2050. prt.CFrame=cframe
  2051. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2052. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2053. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2054. game:GetService("Debris"):AddItem(prt,5)
  2055. coroutine.resume(coroutine.create(function(Part,Mesh)
  2056.     local rtype = rottype
  2057. for i=0,1,delay do
  2058. swait()
  2059. if rtype == 1 then
  2060. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2061. elseif rtype == 2 then
  2062. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2063. end
  2064. dec.Transparency=i
  2065. dec2.Transparency=i
  2066. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2067. end
  2068. Part.Parent=nil
  2069. end),prt,msh)
  2070. end
  2071.  
  2072. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2073. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2074. prt.Anchored=true
  2075. prt.Material = "Neon"
  2076. prt.CFrame=cframe
  2077. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2078. game:GetService("Debris"):AddItem(prt,5)
  2079. coroutine.resume(coroutine.create(function(Part,Mesh)
  2080.     local rtype = rottype
  2081. for i=0,1,delay do
  2082. swait()
  2083. if rtype == 1 then
  2084. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2085. elseif rtype == 2 then
  2086. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2087. end
  2088. prt.Transparency=i
  2089. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2090. end
  2091. Part.Parent=nil
  2092. end),prt,msh)
  2093. end
  2094.  
  2095. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2096. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2097. prt.Anchored=true
  2098. prt.Material = "Neon"
  2099. prt.CFrame=cframe
  2100. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2101. game:GetService("Debris"):AddItem(prt,5)
  2102. coroutine.resume(coroutine.create(function(Part,Mesh)
  2103.     local rtype = rottype
  2104. for i=0,1,delay do
  2105. swait()
  2106. if rtype == 1 then
  2107. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2108. elseif rtype == 2 then
  2109. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2110. end
  2111. prt.Transparency=i
  2112. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2113. end
  2114. Part.Parent=nil
  2115. end),prt,msh)
  2116. end
  2117.  
  2118. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2119. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt.Anchored=true
  2121. prt.Material = "Neon"
  2122. prt.CFrame=cframe
  2123. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2124. game:GetService("Debris"):AddItem(prt,5)
  2125. coroutine.resume(coroutine.create(function(Part,Mesh)
  2126.     local rtype = rottype
  2127. for i=0,1,delay do
  2128. swait()
  2129. if rtype == 1 then
  2130. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2131. elseif rtype == 2 then
  2132. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2133. end
  2134. prt.Transparency=i
  2135. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2136. end
  2137. Part.Parent=nil
  2138. end),prt,msh)
  2139. end
  2140.  
  2141. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2142. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2143. prt.Anchored=true
  2144. prt.Material = "Neon"
  2145. prt.CFrame=cframe
  2146. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2147. game:GetService("Debris"):AddItem(prt,5)
  2148. coroutine.resume(coroutine.create(function(Part,Mesh)
  2149.     local rtype = rottype
  2150. for i=0,1,delay do
  2151. swait()
  2152. if rtype == 1 then
  2153. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2154. elseif rtype == 2 then
  2155. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2156. end
  2157. prt.Transparency=i
  2158. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2159. end
  2160. Part.Parent=nil
  2161. end),prt,msh)
  2162. end
  2163.  
  2164. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2165. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2166. prt.Anchored=false
  2167. prt.CFrame=cframe
  2168. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2169. local wld=weld(prt,prt,Parent,cframe)
  2170. game:GetService("Debris"):AddItem(prt,5)
  2171. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2172. for i=0,1,delay do
  2173. wait()
  2174. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2175. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2176. Part.Transparency=i
  2177. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2178. end
  2179. Part.Parent=nil
  2180. end),prt,msh,wld)
  2181. end
  2182.  
  2183. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2184. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2185. prt.Anchored=false
  2186. prt.CFrame=cframe
  2187. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2188. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2189. game:GetService("Debris"):AddItem(prt,5)
  2190. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2191. for i=0,1,delay do
  2192. wait()
  2193. Weld.C0=euler(i*20,0,0)
  2194. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2195. Part.Transparency=i
  2196. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2197. end
  2198. Part.Parent=nil
  2199. end),prt,msh,wld)
  2200. end
  2201.  
  2202. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2203. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2204. prt.Anchored=true
  2205. prt.CFrame=cframe
  2206. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2207. game:GetService("Debris"):AddItem(prt,2)
  2208. coroutine.resume(coroutine.create(function(Part,Mesh)
  2209. for i=0,1,delay do
  2210. wait()
  2211. Part.CFrame=Part.CFrame
  2212. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2213. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2214. prt2.Anchored=true
  2215. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2216. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2217. game:GetService("Debris"):AddItem(prt2,2)
  2218. coroutine.resume(coroutine.create(function(Part,Mesh)
  2219. for i=0,1,0.1 do
  2220. wait()
  2221. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2222. end
  2223. Part.Parent=nil
  2224. end),prt2,msh2)
  2225. end
  2226. for i=0,1,delay*2 do
  2227. wait()
  2228. Part.CFrame=Part.CFrame
  2229. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2230. end
  2231. Part.Parent=nil
  2232. end),prt,msh)
  2233. end
  2234.  
  2235. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2236. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2237. prt.Anchored=true
  2238. prt.CFrame=cframe
  2239. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2240. game:GetService("Debris"):AddItem(prt,2)
  2241. coroutine.resume(coroutine.create(function(Part,Mesh)
  2242. for i=0,1,delay do
  2243. wait()
  2244. Part.CFrame=Part.CFrame
  2245. Part.Transparency=i
  2246. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2247. end
  2248. Part.Parent=nil
  2249. end),prt,msh)
  2250. end
  2251.  
  2252. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2253. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2254. prt.Anchored=true
  2255. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2256. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2257. game:GetService("Debris"):AddItem(prt,2)
  2258. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2259. CF=Part.CFrame
  2260. Numbb=0
  2261. randnumb=math.random()/10
  2262. rand1=math.random()/10
  2263. for i=0,1,rand1 do
  2264. wait()
  2265. CF=CF*cf(0,math.random()/2,0)
  2266. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2267. Part.CFrame=CF*euler(Numbb,0,0)
  2268. Part.Transparency=i
  2269. Numbb=Numbb+randnumb
  2270. end
  2271. Part.Parent=nil
  2272. end),prt,CF,Numbb,randnumb)
  2273. end
  2274.  
  2275. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2276. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2277. prt.Anchored=true
  2278. prt.CFrame=cframe
  2279. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2280. game:GetService("Debris"):AddItem(prt,5)
  2281. coroutine.resume(coroutine.create(function(Part,Mesh)
  2282. for i=0,1,delay do
  2283. wait()
  2284. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2285. Part.Transparency=i
  2286. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2287. end
  2288. Part.Parent=nil
  2289. end),prt,msh)
  2290. end
  2291.  
  2292. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2293. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2294. prt.Anchored=true
  2295. prt.CFrame=cframe
  2296. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2297. game:GetService("Debris"):AddItem(prt,2)
  2298. coroutine.resume(coroutine.create(function(Part,Mesh)
  2299. for i=0,1,delay do
  2300. wait()
  2301. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2302. Part.Transparency=i
  2303. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2304. end
  2305. Part.Parent=nil
  2306. end),prt,msh)
  2307. end
  2308.  
  2309. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2310. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2311. prt.Anchored=true
  2312. prt.CFrame=cframe*cf(x,y,z)
  2313. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2314. game:GetService("Debris"):AddItem(prt,5)
  2315. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2316. local num=math.random()
  2317. local num2=math.random(-3,2)+math.random()
  2318. local numm=0
  2319. for i=0,1,delay*2 do
  2320. swait()
  2321. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2322. Part.Transparency=i
  2323. numm=numm+0.01
  2324. end
  2325. Part.Parent=nil
  2326. Mesh.Parent=nil
  2327. end),prt,msh,x,y,z)
  2328. end
  2329.  
  2330. function dmgstart(dmg,what)
  2331.     hitcon = what.Touched:connect(function(hit)
  2332.         local hum = hit.Parent:FindFirstChild("Humanoid")
  2333.         if hum and not hum:IsDescendantOf(Character) then
  2334.             hum:TakeDamage(dmg)
  2335.         end
  2336.     end)
  2337. end
  2338.  
  2339. function dmgstop()
  2340.     hitcon:disconnect()
  2341. end
  2342.  
  2343. function Cloak()
  2344. Face.Parent=nil
  2345. cloaked=true
  2346.         for _,v in pairs(Torso.Parent:children()) do
  2347.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2348.                 coroutine.resume(coroutine.create(function()
  2349.                 for i=0,1,0.2 do
  2350.                 wait()
  2351.                 v.Transparency=i
  2352.                 end
  2353.                 v.Transparency=1
  2354.                 end))
  2355.                 end
  2356.                 if v.className=="Hat" then
  2357.                 hatp=v.Handle
  2358.                 coroutine.resume(coroutine.create(function(derp)
  2359.                 for i=0,1,0.2 do
  2360.                 wait()
  2361.                 derp.Transparency=i
  2362.                 end
  2363.                 derp.Transparency=1
  2364.                 end),hatp)
  2365.                 end
  2366.         end
  2367.         for _,v in pairs(m:children()) do
  2368.                 if v.className=="Part" then
  2369.                 coroutine.resume(coroutine.create(function()
  2370.                 for i=0,1,0.2 do
  2371.                 wait()
  2372.                 v.Transparency=i
  2373.                 end
  2374.                 v.Transparency=1
  2375.                 end))
  2376.                 end
  2377.         end
  2378. end
  2379.  
  2380. function UnCloak()
  2381. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2382. Face.Parent=Head
  2383. cloaked=false
  2384.         for _,v in pairs(Torso.Parent:children()) do
  2385.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2386.                 coroutine.resume(coroutine.create(function()
  2387.                 for i=0,1,0.1 do
  2388.                 wait()
  2389.                 v.Transparency=v.Transparency-0.1
  2390.                 end
  2391.                 v.Transparency=0
  2392.                 end))
  2393.                 end
  2394.                 if v.className=="Hat" then
  2395.                 hatp=v.Handle
  2396.                 coroutine.resume(coroutine.create(function(derp)
  2397.                 for i=0,1,0.1 do
  2398.                 wait()
  2399.                 derp.Transparency=derp.Transparency-0.1
  2400.                 end
  2401.                 derp.Transparency=0
  2402.                 end),hatp)
  2403.                 end
  2404.         end
  2405.         for _,v in pairs(m:children()) do
  2406.                 if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2407.                 coroutine.resume(coroutine.create(function()
  2408.                 for i=0,1,0.1 do
  2409.                 wait()
  2410.                 v.Transparency=v.Transparency-0.1
  2411.                 end
  2412.                 v.Transparency=0
  2413.                 end))
  2414.                 v.Transparency=0
  2415.                 end
  2416.         end
  2417. end
  2418.  
  2419. local origcolor = BrickColor.new("Pastel light blue")
  2420. ---- This section of explosions.
  2421.  
  2422. ----
  2423.  
  2424.  
  2425. function ring(type,pos,scale,value)
  2426. local type = type
  2427. local rng = Instance.new("Part", char)
  2428.         rng.Anchored = true
  2429.         rng.BrickColor = origcolor
  2430.         rng.CanCollide = false
  2431.         rng.FormFactor = 3
  2432.         rng.Name = "Ring"
  2433.         rng.Size = Vector3.new(1, 1, 1)
  2434.         rng.Transparency = 0
  2435.         rng.TopSurface = 0
  2436.         rng.BottomSurface = 0
  2437.         rng.CFrame = pos
  2438.         local rngm = Instance.new("SpecialMesh", rng)
  2439.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2440. rngm.Scale = scale
  2441. local scaler2 = 1
  2442. if type == "Add" then
  2443. scaler2 = 1*value
  2444. elseif type == "Divide" then
  2445. scaler2 = 1/value
  2446. end
  2447. coroutine.resume(coroutine.create(function()
  2448. for i = 0,10,0.1 do
  2449. swait()
  2450. if type == "Add" then
  2451. scaler2 = scaler2 - 0.01*value
  2452. elseif type == "Divide" then
  2453. scaler2 = scaler2 - 0.01/value
  2454. end
  2455. rng.Transparency = rng.Transparency + 0.01
  2456. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2457. end
  2458. rng:Destroy()
  2459. end))
  2460. end
  2461.  
  2462.  
  2463. function wave(type,pos,scale,value)
  2464. local type = type
  2465. local rng = Instance.new("Part", char)
  2466.         rng.Anchored = true
  2467.         rng.BrickColor = origcolor
  2468.         rng.CanCollide = false
  2469.         rng.FormFactor = 3
  2470.         rng.Name = "Ring"
  2471.         rng.Size = Vector3.new(1, 1, 1)
  2472.         rng.Transparency = 0
  2473.         rng.TopSurface = 0
  2474.         rng.BottomSurface = 0
  2475.         rng.CFrame = pos
  2476.         local rngm = Instance.new("SpecialMesh", rng)
  2477.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2478. rngm.Scale = scale
  2479. local scaler2 = 1
  2480. if type == "Add" then
  2481. scaler2 = 1*value
  2482. elseif type == "Divide" then
  2483. scaler2 = 1/value
  2484. end
  2485. coroutine.resume(coroutine.create(function()
  2486. for i = 0,10,0.1 do
  2487. swait()
  2488. if type == "Add" then
  2489. scaler2 = scaler2 - 0.01*value
  2490. elseif type == "Divide" then
  2491. scaler2 = scaler2 - 0.01/value
  2492. end
  2493. rng.Transparency = rng.Transparency + 0.01
  2494. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2495. end
  2496. rng:Destroy()
  2497. end))
  2498. end
  2499.  
  2500. function wind(type,pos,scale,value,speed)
  2501. local type = type
  2502. local rng = Instance.new("Part", char)
  2503.         rng.Anchored = true
  2504.         rng.BrickColor = origcolor
  2505.         rng.CanCollide = false
  2506.         rng.FormFactor = 3
  2507.         rng.Name = "Ring"
  2508.         rng.Size = Vector3.new(1, 1, 1)
  2509.         rng.Transparency = 0
  2510.         rng.TopSurface = 0
  2511.         rng.BottomSurface = 0
  2512.         rng.CFrame = pos
  2513.         local rngm = Instance.new("SpecialMesh", rng)
  2514.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2515. rngm.Scale = scale
  2516. local scaler2 = 1
  2517. if type == "Add" then
  2518. scaler2 = 1*value
  2519. elseif type == "Divide" then
  2520. scaler2 = 1/value
  2521. end
  2522. coroutine.resume(coroutine.create(function()
  2523. for i = 0,10,0.1 do
  2524. swait()
  2525. if type == "Add" then
  2526. scaler2 = scaler2 - 0.01*value
  2527. elseif type == "Divide" then
  2528. scaler2 = scaler2 - 0.01/value
  2529. end
  2530. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2531. rng.Transparency = rng.Transparency + 0.01
  2532. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2533. end
  2534. rng:Destroy()
  2535. end))
  2536. end
  2537.  
  2538. function groundwind(type,pos,scale,value,speed)
  2539. local type = type
  2540. local rng = Instance.new("Part", char)
  2541.         rng.Anchored = true
  2542.         rng.BrickColor = origcolor
  2543.         rng.CanCollide = false
  2544.         rng.FormFactor = 3
  2545.         rng.Name = "Ring"
  2546.         rng.Size = Vector3.new(1, 1, 1)
  2547.         rng.Transparency = 0
  2548.         rng.TopSurface = 0
  2549.         rng.BottomSurface = 0
  2550.         rng.CFrame = pos
  2551.         local rngm = Instance.new("SpecialMesh", rng)
  2552.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2553. rngm.Scale = scale
  2554. local scaler2 = 1
  2555. if type == "Add" then
  2556. scaler2 = 1*value
  2557. elseif type == "Divide" then
  2558. scaler2 = 1/value
  2559. end
  2560. coroutine.resume(coroutine.create(function()
  2561. for i = 0,10,0.1 do
  2562. swait()
  2563. if type == "Add" then
  2564. scaler2 = scaler2 - 0.01*value
  2565. elseif type == "Divide" then
  2566. scaler2 = scaler2 - 0.01/value
  2567. end
  2568. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2569. rng.Transparency = rng.Transparency + 0.01
  2570. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2571. end
  2572. rng:Destroy()
  2573. end))
  2574. end
  2575.  
  2576. function CameraManager()
  2577.   if TwoD and not CamInterrupt then
  2578.     if Humanoid.Health > 0 then
  2579.       Camera.CameraSubject = Humanoid
  2580.       Camera.CameraType = "Scriptable"
  2581.       Humanoid.AutoRotate = false
  2582.       if Booleans.GyroUse then
  2583.         Directer.MaxTorque = Vec3(0, huge, 0)
  2584.       else
  2585.         Directer.MaxTorque = Vec3(0, 0, 0)
  2586.       end
  2587.       if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2588.         if Booleans.CamFollow then
  2589.           CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2590.           Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2591.         else
  2592.           CPart.Position = RootPart.Position
  2593.         end
  2594.       else
  2595.         local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2596.         CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2597.       end
  2598.       Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2599.     else
  2600.       Camera.CameraSubject = Humanoid
  2601.       Camera.CameraType = "Custom"
  2602.       Controller.Disabled = false
  2603.     end
  2604.   end
  2605. end
  2606.  
  2607. function ring(type,pos,scale,value)
  2608. local type = type
  2609. local rng = Instance.new("Part", char)
  2610.         rng.Anchored = true
  2611.         rng.BrickColor = origcolor
  2612.         rng.CanCollide = false
  2613.         rng.FormFactor = 3
  2614.         rng.Name = "Ring"
  2615.         rng.Size = Vector3.new(1, 1, 1)
  2616.         rng.Transparency = 0
  2617.         rng.TopSurface = 0
  2618.         rng.BottomSurface = 0
  2619.         rng.CFrame = pos
  2620.         local rngm = Instance.new("SpecialMesh", rng)
  2621.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2622. rngm.Scale = scale
  2623. local scaler2 = 1
  2624. if type == "Add" then
  2625. scaler2 = 1*value
  2626. elseif type == "Divide" then
  2627. scaler2 = 1/value
  2628. end
  2629. coroutine.resume(coroutine.create(function()
  2630. for i = 0,10,0.1 do
  2631. swait()
  2632. if type == "Add" then
  2633. scaler2 = scaler2 - 0.01*value
  2634. elseif type == "Divide" then
  2635. scaler2 = scaler2 - 0.01/value
  2636. end
  2637. rng.Transparency = rng.Transparency + 0.01
  2638. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2639. end
  2640. rng:Destroy()
  2641. end))
  2642. end
  2643.  
  2644.  
  2645. function wave(type,pos,scale,value)
  2646. local type = type
  2647. local rng = Instance.new("Part", char)
  2648.         rng.Anchored = true
  2649.         rng.BrickColor = origcolor
  2650.         rng.CanCollide = false
  2651.         rng.FormFactor = 3
  2652.         rng.Name = "Ring"
  2653.         rng.Size = Vector3.new(1, 1, 1)
  2654.         rng.Transparency = 0
  2655.         rng.TopSurface = 0
  2656.         rng.BottomSurface = 0
  2657.         rng.CFrame = pos
  2658.         local rngm = Instance.new("SpecialMesh", rng)
  2659.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2660. rngm.Scale = scale
  2661. local scaler2 = 1
  2662. if type == "Add" then
  2663. scaler2 = 1*value
  2664. elseif type == "Divide" then
  2665. scaler2 = 1/value
  2666. end
  2667. coroutine.resume(coroutine.create(function()
  2668. for i = 0,10,0.1 do
  2669. swait()
  2670. if type == "Add" then
  2671. scaler2 = scaler2 - 0.01*value
  2672. elseif type == "Divide" then
  2673. scaler2 = scaler2 - 0.01/value
  2674. end
  2675. rng.Transparency = rng.Transparency + 0.01
  2676. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2677. end
  2678. rng:Destroy()
  2679. end))
  2680. end
  2681.  
  2682. function sphere(bonuspeed,type,pos,scale,value,color)
  2683. local type = type
  2684. local rng = Instance.new("Part", char)
  2685.         rng.Anchored = true
  2686. if ModeOfGlitch ~= 9 then
  2687.         rng.BrickColor = color
  2688. elseif ModeOfGlitch == 9 then
  2689. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2690. end
  2691.         rng.CanCollide = false
  2692.         rng.FormFactor = 3
  2693.         rng.Name = "Ring"
  2694.         rng.Material = "Neon"
  2695.         rng.Size = Vector3.new(1, 1, 1)
  2696.         rng.Transparency = 0
  2697.         rng.TopSurface = 0
  2698.         rng.BottomSurface = 0
  2699.         rng.CFrame = pos
  2700.         local rngm = Instance.new("SpecialMesh", rng)
  2701.         rngm.MeshType = "Sphere"
  2702. rngm.Scale = scale
  2703. if rainbowmode == true then
  2704. rng.Color = Color3.new(r/255,g/255,b/255)
  2705. end
  2706. if ModeOfGlitch == 9 then
  2707. coroutine.resume(coroutine.create(function()
  2708. while true do
  2709. swait()
  2710. if rng.Parent ~= nil then
  2711. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2712. else
  2713. break
  2714. end
  2715. end
  2716. end))
  2717. end
  2718. local scaler2 = 1
  2719. if type == "Add" then
  2720. scaler2 = 1*value
  2721. elseif type == "Divide" then
  2722. scaler2 = 1/value
  2723. end
  2724. coroutine.resume(coroutine.create(function()
  2725. for i = 0,10/bonuspeed,0.1 do
  2726. swait()
  2727. if rainbowmode == true then
  2728. rng.Color = Color3.new(r/255,g/255,b/255)
  2729. end
  2730. if type == "Add" then
  2731. scaler2 = scaler2 - 0.01*value/bonuspeed
  2732. elseif type == "Divide" then
  2733. scaler2 = scaler2 - 0.01/value*bonuspeed
  2734. end
  2735. if chaosmode == true then
  2736. rng.BrickColor = BrickColor.random()
  2737. end
  2738. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2739. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2740. end
  2741. rng:Destroy()
  2742. end))
  2743. end
  2744.  
  2745. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2746. local type = type
  2747. local rng = Instance.new("Part", char)
  2748.         rng.Anchored = true
  2749. if ModeOfGlitch ~= 9 then
  2750.         rng.BrickColor = color
  2751. elseif ModeOfGlitch == 9 then
  2752. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2753. end
  2754.         rng.CanCollide = false
  2755.         rng.FormFactor = 3
  2756.         rng.Name = "Ring"
  2757.         rng.Material = "Neon"
  2758.         rng.Size = Vector3.new(1, 1, 1)
  2759.         rng.Transparency = 0
  2760.         rng.TopSurface = 0
  2761.         rng.BottomSurface = 0
  2762.         rng.CFrame = pos
  2763.         local rngm = Instance.new("SpecialMesh", rng)
  2764.         rngm.MeshType = "Sphere"
  2765. rngm.Scale = scale
  2766. local scaler2 = 1
  2767. local scaler2b = 1
  2768. local scaler2c = 1
  2769. if type == "Add" then
  2770. scaler2 = 1*value
  2771. scaler2b = 1*value2
  2772. scaler2c = 1*value3
  2773. elseif type == "Divide" then
  2774. scaler2 = 1/value
  2775. scaler2b = 1/value2
  2776. scaler2c = 1/value3
  2777. end
  2778. if ModeOfGlitch == 9 then
  2779. coroutine.resume(coroutine.create(function()
  2780. while true do
  2781. swait()
  2782. if rng.Parent ~= nil then
  2783. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2784. else
  2785. break
  2786. end
  2787. end
  2788. end))
  2789. end
  2790. coroutine.resume(coroutine.create(function()
  2791. for i = 0,10/bonuspeed,0.1 do
  2792. swait()
  2793. if type == "Add" then
  2794. scaler2 = scaler2 - 0.01*value/bonuspeed
  2795. scaler2b = scaler2b - 0.01*value/bonuspeed
  2796. scaler2c = scaler2c - 0.01*value/bonuspeed
  2797. elseif type == "Divide" then
  2798. scaler2 = scaler2 - 0.01/value*bonuspeed
  2799. scaler2b = scaler2b - 0.01/value*bonuspeed
  2800. scaler2c = scaler2c - 0.01/value*bonuspeed
  2801. end
  2802. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2803. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2810. local type = type
  2811. local rotenable = rotatingop
  2812. local rng = Instance.new("Part", char)
  2813.         rng.Anchored = true
  2814.         rng.BrickColor = color
  2815.         rng.CanCollide = false
  2816.         rng.FormFactor = 3
  2817.         rng.Name = "Ring"
  2818.         rng.Material = "Neon"
  2819.         rng.Size = Vector3.new(1, 1, 1)
  2820.         rng.Transparency = 0
  2821. if typeoftrans == "In" then
  2822. rng.Transparency = 1
  2823. end
  2824.         rng.TopSurface = 0
  2825.         rng.BottomSurface = 0
  2826.         rng.CFrame = pos
  2827.         local rngm = Instance.new("SpecialMesh", rng)
  2828.         rngm.MeshType = "FileMesh"
  2829. if typeofshape == "Normal" then
  2830. rngm.MeshId = "rbxassetid://662586858"
  2831. elseif typeofshape == "Round" then
  2832. rngm.MeshId = "rbxassetid://662585058"
  2833. end
  2834. rngm.Scale = scale
  2835. local scaler2 = 1/10
  2836. if type == "Add" then
  2837. scaler2 = 1*value/10
  2838. elseif type == "Divide" then
  2839. scaler2 = 1/value/10
  2840. end
  2841. local randomrot = math.random(1,2)
  2842. coroutine.resume(coroutine.create(function()
  2843. for i = 0,10/bonuspeed,0.1 do
  2844. swait()
  2845. if type == "Add" then
  2846. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2847. elseif type == "Divide" then
  2848. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2849. end
  2850. if rotenable == true then
  2851. if randomrot == 1 then
  2852. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2853. elseif randomrot == 2 then
  2854. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2855. end
  2856. end
  2857. if typeoftrans == "Out" then
  2858. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2859. elseif typeoftrans == "In" then
  2860. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2861. end
  2862. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2863. end
  2864. rng:Destroy()
  2865. end))
  2866. end
  2867.  
  2868. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2869. local type = type
  2870. local rng = Instance.new("Part", char)
  2871.         rng.Anchored = true
  2872.         rng.BrickColor = color
  2873.         rng.CanCollide = false
  2874.         rng.FormFactor = 3
  2875.         rng.Name = "Ring"
  2876.         rng.Material = "Neon"
  2877.         rng.Size = Vector3.new(1, 1, 1)
  2878.         rng.Transparency = 0
  2879.         rng.TopSurface = 0
  2880.         rng.BottomSurface = 0
  2881.         rng.CFrame = pos
  2882. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2883.         local rngm = Instance.new("SpecialMesh", rng)
  2884.         rngm.MeshType = "Brick"
  2885. rngm.Scale = vt(x1,y1,z1)
  2886. if rainbowmode == true then
  2887. rng.Color = Color3.new(r/255,g/255,b/255)
  2888. end
  2889. local scaler2 = 1
  2890. local speeder = FastSpeed/10
  2891. if type == "Add" then
  2892. scaler2 = 1*value
  2893. elseif type == "Divide" then
  2894. scaler2 = 1/value
  2895. end
  2896. coroutine.resume(coroutine.create(function()
  2897. for i = 0,10/bonuspeed,0.1 do
  2898. swait()
  2899. if rainbowmode == true then
  2900. rng.Color = Color3.new(r/255,g/255,b/255)
  2901. end
  2902. if type == "Add" then
  2903. scaler2 = scaler2 - 0.01*value/bonuspeed
  2904. elseif type == "Divide" then
  2905. scaler2 = scaler2 - 0.01/value*bonuspeed
  2906. end
  2907. if chaosmode == true then
  2908. rng.BrickColor = BrickColor.random()
  2909. end
  2910. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2911. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2912. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2913. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2914. end
  2915. rng:Destroy()
  2916. end))
  2917. end
  2918.  
  2919. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2920. local type = type
  2921. local rng = Instance.new("Part", char)
  2922.         rng.Anchored = true
  2923.         rng.BrickColor = color
  2924.         rng.CanCollide = false
  2925.         rng.FormFactor = 3
  2926.         rng.Name = "Ring"
  2927.         rng.Material = "Neon"
  2928.         rng.Size = Vector3.new(1, 1, 1)
  2929.         rng.Transparency = 0
  2930.         rng.TopSurface = 0
  2931.         rng.BottomSurface = 0
  2932.         rng.CFrame = pos
  2933. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2934.         local rngm = Instance.new("SpecialMesh", rng)
  2935.         rngm.MeshType = "Brick"
  2936. rngm.Scale = vt(x1,y1,z1)
  2937. if rainbowmode == true then
  2938. rng.Color = Color3.new(r/255,g/255,b/255)
  2939. end
  2940. local scaler2 = 1
  2941. local speeder = FastSpeed/10
  2942. if type == "Add" then
  2943. scaler2 = 1*value
  2944. elseif type == "Divide" then
  2945. scaler2 = 1/value
  2946. end
  2947. coroutine.resume(coroutine.create(function()
  2948. for i = 0,10/bonuspeed,0.1 do
  2949. swait()
  2950. if rainbowmode == true then
  2951. rng.Color = Color3.new(r/255,g/255,b/255)
  2952. end
  2953. if type == "Add" then
  2954. scaler2 = scaler2 - 0.01*value/bonuspeed
  2955. elseif type == "Divide" then
  2956. scaler2 = scaler2 - 0.01/value*bonuspeed
  2957. end
  2958. if chaosmode == true then
  2959. rng.BrickColor = BrickColor.random()
  2960. end
  2961. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2962. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2963. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2964. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2965. end
  2966. rng:Destroy()
  2967. end))
  2968. end
  2969.  
  2970. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2971. local type = type
  2972. local rng = Instance.new("Part", char)
  2973.         rng.Anchored = true
  2974.         rng.BrickColor = color
  2975.         rng.CanCollide = false
  2976.         rng.FormFactor = 3
  2977.         rng.Name = "Ring"
  2978.         rng.Material = "Neon"
  2979.         rng.Size = Vector3.new(1, 1, 1)
  2980.         rng.Transparency = 0
  2981.         rng.TopSurface = 0
  2982.         rng.BottomSurface = 0
  2983.         rng.CFrame = pos
  2984. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2985.         local rngm = Instance.new("SpecialMesh", rng)
  2986.         rngm.MeshType = "Brick"
  2987. rngm.Scale = vt(x1,y1,z1)
  2988. if rainbowmode == true then
  2989. rng.Color = Color3.new(r/255,g/255,b/255)
  2990. end
  2991. local scaler2 = 0
  2992. local speeder = FastSpeed/10
  2993. if type == "Add" then
  2994. scaler2 = 1*value
  2995. elseif type == "Divide" then
  2996. scaler2 = 1/value
  2997. end
  2998. coroutine.resume(coroutine.create(function()
  2999. for i = 0,10/bonuspeed,0.1 do
  3000. swait()
  3001. if rainbowmode == true then
  3002. rng.Color = Color3.new(r/255,g/255,b/255)
  3003. end
  3004. if type == "Add" then
  3005. scaler2 = scaler2 - 0.01*value/bonuspeed
  3006. elseif type == "Divide" then
  3007. scaler2 = scaler2 - 0.01/value*bonuspeed
  3008. end
  3009. if chaosmode == true then
  3010. rng.BrickColor = BrickColor.random()
  3011. end
  3012. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3013. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3014. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3015. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3016. end
  3017. rng:Destroy()
  3018. end))
  3019. end
  3020.  
  3021. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3022. local type = type
  3023. local rng = Instance.new("Part", char)
  3024.         rng.Anchored = true
  3025.         rng.BrickColor = color
  3026.         rng.Color = color3
  3027.         rng.CanCollide = false
  3028.         rng.FormFactor = 3
  3029.         rng.Name = "Ring"
  3030.         rng.Material = "Neon"
  3031.         rng.Size = Vector3.new(1, 1, 1)
  3032.         rng.Transparency = 0
  3033.         rng.TopSurface = 0
  3034.         rng.BottomSurface = 0
  3035.         rng.CFrame = pos
  3036.         local rngm = Instance.new("SpecialMesh", rng)
  3037.         rngm.MeshType = "Brick"
  3038. rngm.Scale = scale
  3039. local scaler2 = 1
  3040. local scaler2b = 1
  3041. local scaler2c = 1
  3042. if type == "Add" then
  3043. scaler2 = 1*value
  3044. scaler2b = 1*value2
  3045. scaler2c = 1*value3
  3046. elseif type == "Divide" then
  3047. scaler2 = 1/value
  3048. scaler2b = 1/value2
  3049. scaler2c = 1/value3
  3050. end
  3051. coroutine.resume(coroutine.create(function()
  3052. for i = 0,10/bonuspeed,0.1 do
  3053. swait()
  3054. if type == "Add" then
  3055. scaler2 = scaler2 - 0.01*value/bonuspeed
  3056. scaler2b = scaler2b - 0.01*value/bonuspeed
  3057. scaler2c = scaler2c - 0.01*value/bonuspeed
  3058. elseif type == "Divide" then
  3059. scaler2 = scaler2 - 0.01/value*bonuspeed
  3060. scaler2b = scaler2b - 0.01/value*bonuspeed
  3061. scaler2c = scaler2c - 0.01/value*bonuspeed
  3062. end
  3063. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3064. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3065. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3066. end
  3067. rng:Destroy()
  3068. end))
  3069. end
  3070.  
  3071. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3072. local type = type
  3073. local rng = Instance.new("Part", char)
  3074.         rng.Anchored = true
  3075. if ModeOfGlitch ~= 9 then
  3076.         rng.BrickColor = color
  3077. elseif ModeOfGlitch == 9 then
  3078. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3079. end
  3080.         rng.CanCollide = false
  3081.         rng.FormFactor = 3
  3082.         rng.Name = "Ring"
  3083.         rng.Material = "Neon"
  3084.         rng.Size = Vector3.new(1, 1, 1)
  3085.         rng.Transparency = 0
  3086.         rng.TopSurface = 0
  3087.         rng.BottomSurface = 0
  3088.         rng.CFrame = pos
  3089. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3090.         local rngm = Instance.new("SpecialMesh", rng)
  3091.         rngm.MeshType = "Sphere"
  3092. rngm.Scale = vt(x1,y1,z1)
  3093. if rainbowmode == true then
  3094. rng.Color = Color3.new(r/255,g/255,b/255)
  3095. end
  3096. if ModeOfGlitch == 9 then
  3097. coroutine.resume(coroutine.create(function()
  3098. while true do
  3099. swait()
  3100. if rng.Parent ~= nil then
  3101. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3102. else
  3103. break
  3104. end
  3105. end
  3106. end))
  3107. end
  3108. local scaler2 = 1
  3109. local speeder = FastSpeed
  3110. if type == "Add" then
  3111. scaler2 = 1*value
  3112. elseif type == "Divide" then
  3113. scaler2 = 1/value
  3114. end
  3115. coroutine.resume(coroutine.create(function()
  3116. for i = 0,10/bonuspeed,0.1 do
  3117. swait()
  3118. if rainbowmode == true then
  3119. rng.Color = Color3.new(r/255,g/255,b/255)
  3120. end
  3121. if type == "Add" then
  3122. scaler2 = scaler2 - 0.01*value/bonuspeed
  3123. elseif type == "Divide" then
  3124. scaler2 = scaler2 - 0.01/value*bonuspeed
  3125. end
  3126. if chaosmode == true then
  3127. rng.BrickColor = BrickColor.random()
  3128. end
  3129. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3130. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3131. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3132. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3133. end
  3134. rng:Destroy()
  3135. end))
  3136. end
  3137.  
  3138.  
  3139. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3140. local type = type
  3141. local rng = Instance.new("Part", char)
  3142.         rng.Anchored = true
  3143. if ModeOfGlitch ~= 9 then
  3144.         rng.BrickColor = color
  3145. elseif ModeOfGlitch == 9 then
  3146. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3147. end
  3148.         rng.CanCollide = false
  3149.         rng.FormFactor = 3
  3150.         rng.Name = "Ring"
  3151.         rng.Material = "Neon"
  3152.         rng.Size = Vector3.new(1, 1, 1)
  3153.         rng.Transparency = 1
  3154.         rng.TopSurface = 0
  3155.         rng.BottomSurface = 0
  3156.         rng.CFrame = pos
  3157. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3158.         local rngm = Instance.new("SpecialMesh", rng)
  3159.         rngm.MeshType = "Sphere"
  3160. rngm.Scale = vt(x1,y1,z1)
  3161. if rainbowmode == true then
  3162. rng.Color = Color3.new(r/255,g/255,b/255)
  3163. end
  3164. if ModeOfGlitch == 9 then
  3165. coroutine.resume(coroutine.create(function()
  3166. while true do
  3167. swait()
  3168. if rng.Parent ~= nil then
  3169. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3170. else
  3171. break
  3172. end
  3173. end
  3174. end))
  3175. end
  3176. local scaler2 = 1
  3177. local speeder = FastSpeed
  3178. if type == "Add" then
  3179. scaler2 = 1*value
  3180. elseif type == "Divide" then
  3181. scaler2 = 1/value
  3182. end
  3183. coroutine.resume(coroutine.create(function()
  3184. for i = 0,10/bonuspeed,0.1 do
  3185. swait()
  3186. if rainbowmode == true then
  3187. rng.Color = Color3.new(r/255,g/255,b/255)
  3188. end
  3189. if type == "Add" then
  3190. scaler2 = scaler2 - 0.01*value/bonuspeed
  3191. elseif type == "Divide" then
  3192. scaler2 = scaler2 - 0.01/value*bonuspeed
  3193. end
  3194. if chaosmode == true then
  3195. rng.BrickColor = BrickColor.random()
  3196. end
  3197. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3198. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3199. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3200. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3201. end
  3202. rng:Destroy()
  3203. end))
  3204. end
  3205.  
  3206. function dmg(dude)
  3207. if dude.Name ~= Character then
  3208. local keptcolor = MAINRUINCOLOR
  3209. local bgf = Instance.new("BodyGyro",dude.Head)
  3210. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3211. --[[local val = Instance.new("BoolValue",dude)
  3212. val.Name = "IsHit"]]--
  3213. local ds = coroutine.wrap(function()
  3214. dude:WaitForChild("Head"):BreakJoints()
  3215. for i, v in pairs(dude:GetChildren()) do
  3216. if v:IsA("Part") or v:IsA("MeshPart") then
  3217. v.Name = "DEMINISHED"
  3218. end
  3219. end
  3220. wait(0.5)
  3221. targetted = nil
  3222. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3223. coroutine.resume(coroutine.create(function()
  3224. for i, v in pairs(dude:GetChildren()) do
  3225. if v:IsA("Accessory") then
  3226. v:Destroy()
  3227. end
  3228. if v:IsA("Humanoid") then
  3229. v:Destroy()
  3230. end
  3231. if v:IsA("CharacterMesh") then
  3232. v:Destroy()
  3233. end
  3234. if v:IsA("Model") then
  3235. v:Destroy()
  3236. end
  3237. if v:IsA("Part") or v:IsA("MeshPart") then
  3238. for x, o in pairs(v:GetChildren()) do
  3239. if o:IsA("Decal") then
  3240. o:Destroy()
  3241. end
  3242. end
  3243. coroutine.resume(coroutine.create(function()
  3244. v.Material = "Neon"
  3245. v.CanCollide = false
  3246. v.Anchored = false
  3247. local bld = Instance.new("ParticleEmitter",v)
  3248. bld.LightEmission = 0.75
  3249. bld.Texture = "rbxassetid://363275192" ---284205403
  3250. bld.Color = ColorSequence.new(keptcolor.Color)
  3251. bld.Rate = 500
  3252. bld.Lifetime = NumberRange.new(1)
  3253. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3254. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3255. bld.Speed = NumberRange.new(2,5)
  3256. bld.VelocitySpread = 50000
  3257. bld.Rotation = NumberRange.new(-500,500)
  3258. bld.RotSpeed = NumberRange.new(-500,500)
  3259.         local sbs = Instance.new("BodyPosition", v)
  3260.         sbs.P = 3000
  3261.         sbs.D = 1000
  3262.         sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3263.         sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3264. v.Color = keptcolor.Color
  3265. coroutine.resume(coroutine.create(function()
  3266. for i = 0, 49 do
  3267. swait(1)
  3268. v:BreakJoints()
  3269. v.Transparency = v.Transparency + 0.02
  3270. end
  3271. v:BreakJoints()
  3272. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3273. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3274. bld.Speed = NumberRange.new(10,25)
  3275. bld.Drag = 5
  3276. bld.Acceleration = vt(0,2,0)
  3277. wait(0.5)
  3278. bld.Enabled = false
  3279. wait(8)
  3280. v:Destroy()
  3281. dude:Destroy()
  3282. end))
  3283. end))
  3284. end
  3285. end
  3286. end))
  3287. end)
  3288. ds()
  3289. end
  3290. end
  3291.  
  3292.  
  3293. function FindNearestHead(Position, Distance, SinglePlayer)
  3294.     if SinglePlayer then
  3295.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3296.     end
  3297.     local List = {}
  3298.     for i, v in pairs(workspace:GetChildren()) do
  3299.         if v:IsA("Model") then
  3300.             if v:findFirstChild("Head") then
  3301.                 if v ~= Character then
  3302.                     if (v.Head.Position - Position).magnitude <= Distance then
  3303.                         table.insert(List, v)
  3304.                     end
  3305.                 end
  3306.             end
  3307.         end
  3308.     end
  3309.     return List
  3310. end
  3311.  
  3312. function FaceMouse()
  3313.   Cam = workspace.CurrentCamera
  3314.   return {
  3315.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3316.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3317.   }
  3318. end
  3319.  
  3320. function FaceMouse2()
  3321.   Cam = workspace.CurrentCamera
  3322.   return {
  3323.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3324.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3325.   }
  3326. end
  3327.  
  3328. local ModeOfGlitch = 1
  3329. -- Functions are ready.
  3330. local storehumanoidWS = 16
  3331.  
  3332. function CorruptBlink()
  3333. for i = 0, 14 do
  3334. 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)
  3335. end
  3336. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3337. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3338. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3339. CameraEnshaking(2,10)
  3340. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3341. if v:FindFirstChild('Head') then
  3342. dmg(v)
  3343. end
  3344. end
  3345. for i = 0, 14 do
  3346. 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)
  3347. end
  3348. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3349. end
  3350. function PureBomb()
  3351. attack = true
  3352. hum.WalkSpeed = 0
  3353. local orb = Instance.new("Part", char)
  3354.         orb.Anchored = true
  3355.         orb.BrickColor = BrickColor.new("Toothpaste")
  3356.         orb.CanCollide = false
  3357.         orb.FormFactor = 3
  3358.         orb.Name = "Ring"
  3359.         orb.Material = "Neon"
  3360.         orb.Size = Vector3.new(1, 1, 1)
  3361.         orb.Transparency = 0
  3362.         orb.TopSurface = 0
  3363.         orb.BottomSurface = 0
  3364.         local orbm = Instance.new("SpecialMesh", orb)
  3365.         orbm.MeshType = "Sphere"
  3366. orbm.Name = "SizeMesh"
  3367. orbm.Scale = vt(0,0,0)
  3368. local scaled = 0.1
  3369. local posid = 0
  3370. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3371. for i = 0, 5, 0.1 do
  3372. swait()
  3373. scaled = scaled - 0.001
  3374. posid = posid - scaled
  3375. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3376. local scaled = 0.1
  3377. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3378. 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)
  3379. 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)
  3380. 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)
  3381. 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)
  3382. 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)
  3383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3385. 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)
  3386. end
  3387. for i = 0, 2, 0.1 do
  3388. swait()
  3389. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3390. 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)
  3391. 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)
  3392. 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)
  3393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3394. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3395. 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)
  3396. end
  3397. coroutine.resume(coroutine.create(function()
  3398. orb.Anchored = false
  3399. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3400.     local a = Instance.new("Part",workspace)
  3401.     a.Name = "Direction"   
  3402.     a.Anchored = true
  3403.     a.BrickColor = bc("Bright red")
  3404. a.Material = "Neon"
  3405. a.Transparency = 1
  3406.     a.CanCollide = false
  3407.     local ray = Ray.new(
  3408.         orb.CFrame.p,                           -- origin
  3409.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3410.     )
  3411.     local ignore = orb
  3412.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3413.     a.BottomSurface = 10
  3414.     a.TopSurface = 10
  3415.     local distance = (orb.CFrame.p - position).magnitude
  3416.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3417.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3418. orb.CFrame = a.CFrame
  3419. a:Destroy()
  3420. local bv = Instance.new("BodyVelocity")
  3421. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3422. bv.velocity = orb.CFrame.lookVector*125
  3423. bv.Parent = orb
  3424. local hitted = false
  3425. game:GetService("Debris"):AddItem(orb, 15)
  3426. wait()
  3427. local hit =orb.Touched:connect(function(hit)
  3428.     if hitted == false then
  3429.     hitted = true
  3430. CameraEnshaking(10,2.5)
  3431. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3432.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  3433. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3434. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3435. for i = 0, 49 do
  3436. 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)
  3437. end
  3438. for i = 0, 9 do
  3439. 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)
  3440. 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)
  3441. end
  3442. orb.Anchored = true
  3443. orb.Transparency = 1
  3444. wait(8)
  3445. orb:Destroy()
  3446. end
  3447. end)
  3448. end))
  3449. for i = 0, 1, 0.1 do
  3450. swait()
  3451. 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)
  3452. 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)
  3453. 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)
  3454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3455. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3456. 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)
  3457. end
  3458. hum.WalkSpeed = storehumanoidWS
  3459. attack = false
  3460. end
  3461.  
  3462. function BanishingOrb()
  3463. attack = true
  3464. hum.WalkSpeed = 0
  3465. local radm = math.random(1,3)
  3466. if radm == 1 then
  3467. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3468. elseif radm == 2 then
  3469. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3470. elseif radm == 3 then
  3471. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3472. end
  3473. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3474. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3475. local orb = Instance.new("Part", char)
  3476.         orb.Anchored = true
  3477.         orb.BrickColor = BrickColor.new("Lime green")
  3478.         orb.CanCollide = false
  3479.         orb.FormFactor = 3
  3480.         orb.Name = "Ring"
  3481.         orb.Material = "Neon"
  3482.         orb.Size = Vector3.new(1, 1, 1)
  3483.         orb.Transparency = 0
  3484.         orb.TopSurface = 0
  3485.         orb.BottomSurface = 0
  3486.         local orbm = Instance.new("SpecialMesh", orb)
  3487.         orbm.MeshType = "Sphere"
  3488. orbm.Name = "SizeMesh"
  3489. orbm.Scale = vt(0,0,0)
  3490. local scaled = 0.1
  3491. local posid = 0
  3492. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3493. for i = 0, 5, 0.1 do
  3494. swait()
  3495. scaled = scaled - 0.001
  3496. posid = posid - scaled
  3497. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3498. local scaled = 0.1
  3499. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3500. 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)
  3501. 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)
  3502. 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)
  3503. 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)
  3504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3506. 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)
  3507. end
  3508. for i = 0, 2, 0.1 do
  3509. swait()
  3510. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3511. 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)
  3512. 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)
  3513. 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)
  3514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3515. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3516. 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)
  3517. end
  3518. coroutine.resume(coroutine.create(function()
  3519. orb.Anchored = false
  3520. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3521.     local a = Instance.new("Part",workspace)
  3522.     a.Name = "Direction"   
  3523.     a.Anchored = true
  3524.     a.BrickColor = bc("Lime green")
  3525. a.Material = "Neon"
  3526. a.Transparency = 1
  3527.     a.CanCollide = false
  3528.     local ray = Ray.new(
  3529.         orb.CFrame.p,                           -- origin
  3530.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3531.     )
  3532.     local ignore = orb
  3533.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3534.     a.BottomSurface = 10
  3535.     a.TopSurface = 10
  3536.     local distance = (orb.CFrame.p - position).magnitude
  3537.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3538.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3539. orb.CFrame = a.CFrame
  3540. a:Destroy()
  3541. local bv = Instance.new("BodyVelocity")
  3542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3543. bv.velocity = orb.CFrame.lookVector*0
  3544. bv.Parent = orb
  3545. local hitted = false
  3546. local rate = 0
  3547. coroutine.resume(coroutine.create(function()
  3548. for i = 0, 24 do
  3549. wait(0.1)
  3550. rate = rate + 0.25
  3551. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3552. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3553. if v:FindFirstChild('Head') then
  3554. dmg(v)
  3555. end
  3556. end
  3557. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3558. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3559. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3560. end
  3561. orb.Anchored = true
  3562. orb.Transparency = 1
  3563. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3564. if v:FindFirstChild('Head') then
  3565. dmg(v)
  3566. end
  3567. end
  3568. local eff = Instance.new("ParticleEmitter",orb)
  3569. eff.Texture = "rbxassetid://296874871"
  3570. eff.LightEmission = 0.95
  3571. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3572. eff.Rate = 1000000000
  3573. eff.Lifetime = NumberRange.new(3)
  3574. 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)})
  3575. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3576. eff.Speed = NumberRange.new(30)
  3577. eff.Acceleration = vt(0,-15,0)
  3578. eff.Rotation = NumberRange.new(-500,500)
  3579. eff.VelocitySpread = 100000
  3580. eff.RotSpeed = NumberRange.new(-500,500)
  3581. coroutine.resume(coroutine.create(function()
  3582.     wait(0.6)
  3583.     eff.Enabled = false
  3584. end))
  3585. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3586. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3587. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  3588. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3589. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3590. game:GetService("Debris"):AddItem(orb, 15)
  3591. end))
  3592. end))
  3593. for i = 0, 1, 0.1 do
  3594. swait()
  3595. 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)
  3596. 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)
  3597. 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)
  3598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3599. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3600. 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)
  3601. end
  3602. hum.WalkSpeed = storehumanoidWS
  3603. attack = false
  3604. end
  3605.  
  3606.  
  3607. function ChaosGroundStrike()
  3608. attack = true
  3609. for i = 0, 2, 0.1 do
  3610. swait()
  3611. 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)
  3612. 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)
  3613. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3614. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3615. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3616. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3617. end
  3618. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3619. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3620. CameraEnshaking(4,12)
  3621. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3622. if v:FindFirstChild('Head') then
  3623. dmg(v)
  3624. end
  3625. end
  3626. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3627. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3628. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3629. for i = 0, 2, 0.1 do
  3630. swait()
  3631. 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)
  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. 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)
  3634. 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)
  3635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3638. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3639. end
  3640. attack = false
  3641. end
  3642.  
  3643.  
  3644.  
  3645. function Starfall()
  3646. attack = true
  3647. hum.WalkSpeed = 0
  3648. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3649. for i = 0, 5, 0.1 do
  3650. swait()
  3651. 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)
  3652. 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)
  3653. 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)
  3654. 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)
  3655. 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)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3657. 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)
  3658. 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)
  3659. end
  3660. local Overed = false
  3661. CameraEnshaking(2,20)
  3662. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3663. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3664. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3665. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3666. local orb = Instance.new("Part", char)
  3667.         orb.Anchored = true
  3668.         orb.BrickColor = BrickColor.new("Toothpaste")
  3669.         orb.CanCollide = false
  3670.         orb.FormFactor = 3
  3671.         orb.Name = "Remenant"
  3672.         orb.Material = "Neon"
  3673. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3674.         orb.Size = Vector3.new(1, 1, 1)
  3675.         orb.Transparency = 1
  3676.         orb.TopSurface = 0
  3677.         orb.BottomSurface = 0
  3678. hum.WalkSpeed = storehumanoidWS
  3679. coroutine.resume(coroutine.create(function()
  3680. for i = 0, 9 do
  3681. swait(10)
  3682.                  local lb = Instance.new("Part")
  3683.     lb.Color = MAINRUINCOLOR.Color
  3684.      lb.CanCollide = false
  3685. lb.Material = "Neon"
  3686.      lb.Anchored = true
  3687. lb.TopSurface = 0
  3688.         lb.BottomSurface = 0
  3689.      lb.Transparency = 0
  3690.      lb.Size = vt(1,1,1)
  3691.      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)))
  3692. lb.Anchored = false
  3693.   lb.Parent = char
  3694. local thingery = Instance.new("SpecialMesh",lb)
  3695.      thingery.MeshType = "Sphere"
  3696. thingery.Scale = vt(20,20,20)
  3697. game:GetService("Debris"):AddItem(lb, 10)
  3698.   local bv = Instance.new("BodyVelocity")
  3699.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3700.   bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3701.   bv.Parent = lb
  3702. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3703. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3704. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3705. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3706. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3707. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3708. local hitted = false
  3709. coroutine.resume(coroutine.create(function()
  3710. while true do
  3711. swait(1)
  3712. if lb.Parent ~= nil and hitted == false then
  3713. 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)
  3714. elseif lb.Parent == nil then
  3715. break
  3716. end
  3717. end
  3718. end))
  3719.  
  3720. game:GetService("Debris"):AddItem(a, 0.1)
  3721.  
  3722. coroutine.resume(coroutine.create(function()
  3723. swait(1)
  3724. lb.Touched:connect(function(hit)
  3725. if hitted == false then
  3726. hitted = true
  3727. lb.Transparency = 1
  3728. lb.Anchored = true
  3729. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3730. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3731. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3732. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3733. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3734. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3735. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3736. CameraEnshaking(1,5)
  3737. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3738. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3739. for i = 0, 9 do
  3740. 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)
  3741. end
  3742. for i = 0, 49 do
  3743. swait()
  3744. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3745. 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)
  3746. end
  3747. end
  3748. end)
  3749. end))
  3750. end
  3751. Overed = true
  3752. orb:Destroy()
  3753. end))
  3754.  
  3755. attack = false
  3756. end
  3757.  
  3758. function StarfallEX()
  3759. attack = true
  3760. hum.WalkSpeed = 0
  3761. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3762. for i = 0, 10, 0.1 do
  3763. swait()
  3764. 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)
  3765. 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)
  3766. 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)
  3767. 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)
  3768. 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)
  3769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3770. 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)
  3771. 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)
  3772. end
  3773. local Overed = false
  3774. CameraEnshaking(2,20)
  3775. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3776. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3777. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3778. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3779. local orb = Instance.new("Part", char)
  3780.         orb.Anchored = true
  3781.         orb.BrickColor = BrickColor.new("Toothpaste")
  3782.         orb.CanCollide = false
  3783.         orb.FormFactor = 3
  3784.         orb.Name = "Remenant"
  3785.         orb.Material = "Neon"
  3786. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3787.         orb.Size = Vector3.new(1, 1, 1)
  3788.         orb.Transparency = 1
  3789.         orb.TopSurface = 0
  3790.         orb.BottomSurface = 0
  3791. hum.WalkSpeed = storehumanoidWS
  3792. coroutine.resume(coroutine.create(function()
  3793. for i = 0, 4 do
  3794. swait(15)
  3795.                  local lb = Instance.new("Part")
  3796.     lb.Color = MAINRUINCOLOR.Color
  3797.      lb.CanCollide = false
  3798. lb.Material = "Neon"
  3799.      lb.Anchored = true
  3800. lb.TopSurface = 0
  3801.         lb.BottomSurface = 0
  3802.      lb.Transparency = 0
  3803.      lb.Size = vt(1,1,1)
  3804.      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)))
  3805. lb.Anchored = false
  3806.   lb.Parent = char
  3807. local thingery = Instance.new("SpecialMesh",lb)
  3808.      thingery.MeshType = "Sphere"
  3809. thingery.Scale = vt(50,50,50)
  3810. game:GetService("Debris"):AddItem(lb, 10)
  3811.   local bv = Instance.new("BodyVelocity")
  3812.   bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3813.   bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3814.   bv.Parent = lb
  3815. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3816. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3817. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3818. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3819. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3820. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3821. local hitted = false
  3822. coroutine.resume(coroutine.create(function()
  3823. while true do
  3824. swait(1)
  3825. if lb.Parent ~= nil and hitted == false then
  3826. 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)
  3827. elseif lb.Parent == nil then
  3828. break
  3829. end
  3830. end
  3831. end))
  3832.  
  3833. game:GetService("Debris"):AddItem(a, 0.1)
  3834.  
  3835. coroutine.resume(coroutine.create(function()
  3836. swait(1)
  3837. lb.Touched:connect(function(hit)
  3838. if hitted == false then
  3839. hitted = true
  3840. lb.Transparency = 1
  3841. lb.Anchored = true
  3842. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3843. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3844. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3845. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3846. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3847. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3848. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3849. CameraEnshaking(1,5)
  3850. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3851. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3852. for i = 0, 9 do
  3853. 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)
  3854. end
  3855. for i = 0, 99 do
  3856. swait()
  3857. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3858. 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)
  3859. end
  3860. end
  3861. end)
  3862. end))
  3863. end
  3864. Overed = true
  3865. orb:Destroy()
  3866. end))
  3867.  
  3868. attack = false
  3869. end
  3870.  
  3871. function DivineBlast()
  3872. attack = true
  3873. bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
  3874. hum.WalkSpeed = 0
  3875. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3876. elocacenter.Anchored = true
  3877. elocacenter.CFrame = sorb.CFrame
  3878. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3879. eloca1.Anchored = true
  3880. eloca1.CFrame = elocacenter.CFrame
  3881. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3882. eloca2.Anchored = true
  3883. eloca2.CFrame = elocacenter.CFrame
  3884. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3885. eloca3.Anchored = true
  3886. eloca3.CFrame = elocacenter.CFrame
  3887. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3888. eloca4.Anchored = true
  3889. eloca4.CFrame = elocacenter.CFrame
  3890. local lookavec = 0
  3891. local speeds = 0
  3892. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3893. for i = 0, 3, 0.1 do
  3894. swait()
  3895. ---
  3896. lookavec = lookavec + 0.1
  3897. speeds = speeds + 10
  3898. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3899. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3900. 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)
  3901.  
  3902. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3903. 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)
  3904.  
  3905. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3906. 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)
  3907.  
  3908. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3909. 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)
  3910. ---
  3911. root.CFrame = FaceMouse()[1]
  3912. 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)
  3913. 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)
  3914. 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)
  3915. 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)
  3916. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3917. 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)
  3918. end
  3919. for i = 0, 3, 0.1 do
  3920. swait()
  3921. ---
  3922. speeds = speeds + 10
  3923. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3924. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3925. 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)
  3926.  
  3927. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3928. 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)
  3929.  
  3930. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3931. 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)
  3932.  
  3933. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3934. 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)
  3935. ---
  3936. root.CFrame = FaceMouse()[1]
  3937. 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)
  3938. 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)
  3939. 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)
  3940. 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)
  3941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3942. 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)
  3943. end
  3944. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3945. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  3946. for i = 0, 3, 0.1 do
  3947. swait()
  3948. ---
  3949. speeds = speeds + 10
  3950. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3951. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3952. 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)
  3953.  
  3954. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3955. 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)
  3956.  
  3957. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3958. 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)
  3959.  
  3960. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3961. 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)
  3962. ---
  3963. root.CFrame = FaceMouse()[1]
  3964. 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)
  3965. 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)
  3966. 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)
  3967. 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)
  3968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3969. 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)
  3970. end
  3971. coroutine.resume(coroutine.create(function()
  3972. local a = Instance.new("Part",Character)
  3973.     a.Name = "Direction"   
  3974.     a.Anchored = true
  3975.     a.BrickColor = bc("White")
  3976. a.Material = "Neon"
  3977. a.Transparency = 0
  3978. a.Shape = "Cylinder"
  3979.     a.CanCollide = false
  3980. local a2 = Instance.new("Part",Character)
  3981.     a2.Name = "Direction"  
  3982.     a2.Anchored = true
  3983.     a2.BrickColor = bc("Bright yellow")
  3984. a2.Material = "Neon"
  3985. a2.Transparency = 0
  3986. a2.Shape = "Cylinder"
  3987.     a2.CanCollide = false
  3988. local b = Instance.new("Part",Character)
  3989.     b.Name = "HitDirect"   
  3990.     b.Anchored = true
  3991.     b.BrickColor = bc("Cool yellow")
  3992. b.Material = "Neon"
  3993. b.Transparency = 1
  3994.     b.CanCollide = false
  3995.     local ray = Ray.new(
  3996.         elocacenter.CFrame.p,                           -- origin
  3997.         (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3998.     )
  3999.     local ignore = Character
  4000.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4001.     a.BottomSurface = 10
  4002.     a.TopSurface = 10
  4003.     a2.BottomSurface = 10
  4004.     a2.TopSurface = 10
  4005.     local distance = (elocacenter.CFrame.p - position).magnitude
  4006.     a.Size = Vector3.new(distance, 1, 1)
  4007.     a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4008.     a2.Size = Vector3.new(distance, 1, 1)
  4009.     a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4010. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4011. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4012. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4013. game:GetService("Debris"):AddItem(a, 10)
  4014. game:GetService("Debris"):AddItem(a2, 10)
  4015. game:GetService("Debris"):AddItem(b, 10)
  4016. local eff = Instance.new("ParticleEmitter",b)
  4017. eff.Texture = "rbxassetid://2273224484"
  4018. eff.LightEmission = 1
  4019. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4020. eff.Rate = 500000
  4021. eff.Lifetime = NumberRange.new(0.5,2)
  4022. 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)})
  4023. 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)})
  4024. eff.Speed = NumberRange.new(20,250)
  4025. eff.Drag = 5
  4026. eff.Rotation = NumberRange.new(-500,500)
  4027. eff.VelocitySpread = 9000
  4028. eff.RotSpeed = NumberRange.new(-50,50)
  4029. coroutine.resume(coroutine.create(function()
  4030. wait(0.25)
  4031. eff.Enabled = false
  4032. end))
  4033. local msh = Instance.new("SpecialMesh",a)
  4034. msh.MeshType = "Cylinder"
  4035. msh.Scale = vt(1,2,2)
  4036. local msh2 = Instance.new("SpecialMesh",a2)
  4037. msh2.MeshType = "Cylinder"
  4038. msh2.Scale = vt(1,2.5,2.5)
  4039. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4040. coroutine.resume(coroutine.create(function()
  4041. for i = 0,10,0.1 do
  4042. swait()
  4043. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4044. a.Transparency = a.Transparency + 0.025
  4045. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4046. a2.Transparency = a2.Transparency + 0.05
  4047. end
  4048. a:Destroy()
  4049. a2:Destroy()
  4050. end))
  4051. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4052. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4053. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4054. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4055. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4056. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4057. MagniDamage(b, 25, 40,65, 0, "Normal")
  4058. for i = 0, 49 do
  4059. 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)
  4060. 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)
  4061. end
  4062. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4063. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4064. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4065. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4066. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4067. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4068. end))
  4069. game:GetService("Debris"):AddItem(elocacenter, 5)
  4070. hum.WalkSpeed = storehumanoidWS
  4071. attack = false
  4072. end
  4073.  
  4074. function StarDivision()
  4075. attack = true
  4076. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4077. for i = 0, 2, 0.1 do
  4078. swait()
  4079. 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)
  4080. 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)
  4081. 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)
  4082. 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)
  4083. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4084. 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)
  4085. end
  4086. local orb = Instance.new("Part", char)
  4087.         orb.BrickColor = MAINRUINCOLOR
  4088.         orb.CanCollide = false
  4089.         orb.FormFactor = 3
  4090.         orb.Name = "Ring"
  4091.         orb.Material = "Neon"
  4092.         orb.Size = Vector3.new(1, 1, 1)
  4093.         orb.Transparency = 0
  4094.         orb.TopSurface = 0
  4095.         orb.BottomSurface = 0
  4096.         local orbm = Instance.new("SpecialMesh", orb)
  4097.         orbm.MeshType = "Sphere"
  4098. orbm.Name = "SizeMesh"
  4099. orbm.Scale = vt(2,2,2)
  4100. local a = Instance.new("Part",workspace)
  4101.     a.Name = "Direction"   
  4102.     a.Anchored = true
  4103.     a.BrickColor = bc("Bright red")
  4104. a.Material = "Neon"
  4105. a.Transparency = 1
  4106.     a.CanCollide = false
  4107.     local ray = Ray.new(
  4108.         sorb.CFrame.p,                           -- origin
  4109.         (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4110.     )
  4111.     local ignore = sorb
  4112.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4113.     a.BottomSurface = 10
  4114.     a.TopSurface = 10
  4115.     local distance = (sorb.CFrame.p - position).magnitude
  4116.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  4117.     a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4118. orb.CFrame = a.CFrame
  4119. a:Destroy()
  4120. local bv = Instance.new("BodyVelocity")
  4121. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4122. bv.velocity = orb.CFrame.lookVector*100
  4123. bv.Parent = orb
  4124. local hitted = false
  4125. game:GetService("Debris"):AddItem(orb, 10)
  4126. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4127. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4128. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4129. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4130. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4131. coroutine.resume(coroutine.create(function()
  4132. while true do
  4133. swait(1)
  4134. if orb.Parent ~= nil and hitted == false then
  4135. 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)
  4136. elseif orb.Parent == nil then
  4137. break
  4138. end
  4139. end
  4140. end))
  4141. coroutine.resume(coroutine.create(function()
  4142. swait(1)
  4143. orb.Touched:connect(function(hit)
  4144. if hitted == false then
  4145. hitted = true
  4146. game:GetService("Debris"):AddItem(orb, 5)
  4147. orb.Transparency = 1
  4148. orb.Anchored = true
  4149. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4150. elocacenter.Anchored = true
  4151. elocacenter.CFrame = orb.CFrame
  4152. elocacenter.Orientation = vt(0,0,0)
  4153. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4154. eloca1.Anchored = true
  4155. eloca1.CFrame = elocacenter.CFrame
  4156. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4157. eloca2.Anchored = true
  4158. eloca2.CFrame = elocacenter.CFrame
  4159. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4160. eloca3.Anchored = true
  4161. eloca3.CFrame = elocacenter.CFrame
  4162. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4163. eloca4.Anchored = true
  4164. eloca4.CFrame = elocacenter.CFrame
  4165. local lookavec = 0
  4166. local speeds = 0
  4167. CameraEnshaking(1,1)
  4168. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4169. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4170. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4171. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4172. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4173. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4174. for i = 0, 99 do
  4175. swait()
  4176. lookavec = lookavec + 1
  4177. speeds = speeds + 0.1
  4178. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4179. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4180. 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)
  4181.  
  4182. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4183. 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)
  4184.  
  4185. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4186. 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)
  4187.  
  4188. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4189. 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)
  4190. end
  4191.  
  4192. for i = 0, 149 do
  4193. swait()
  4194. speeds = speeds + 0.1
  4195. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4196. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4197. 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)
  4198.  
  4199. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4200. 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)
  4201.  
  4202. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4203. 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)
  4204.  
  4205. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4206. 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)
  4207. end
  4208. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4209. if v:FindFirstChild('Head') then
  4210. dmg(v)
  4211. end
  4212. end
  4213. CameraEnshaking(7,30)
  4214. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4215. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4216. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4217. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4218. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4219. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4220. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4221. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4222. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4223. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4224. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4225. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4226. for i = 0, 24 do
  4227. 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)
  4228. 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)
  4229. 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)
  4230. 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)
  4231. end
  4232. coroutine.resume(coroutine.create(function()
  4233. for i = 0, 499 do
  4234. swait(1)
  4235. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4236. 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)
  4237. end
  4238. elocacenter:Destroy()
  4239. eloca1:Destroy()
  4240. eloca2:Destroy()
  4241. eloca3:Destroy()
  4242. eloca4:Destroy()
  4243. end))
  4244. end
  4245. end)
  4246. end))
  4247. attack = false
  4248. end
  4249.  
  4250.  
  4251. function THE_TRUE_POWER_OF_VIOLENCE()
  4252. attack = true
  4253. hum.WalkSpeed = 0
  4254. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4255. for i = 0, 10, 0.1 do
  4256. swait()
  4257. 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)
  4258. 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)
  4259. 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)
  4260. 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)
  4261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4262. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4263. 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)
  4264. end
  4265. local orb = Instance.new("Part", char)
  4266.         orb.BrickColor = MAINRUINCOLOR
  4267.         orb.CanCollide = false
  4268.         orb.FormFactor = 3
  4269.         orb.Name = "Ring"
  4270.         orb.Material = "Neon"
  4271.         orb.Size = Vector3.new(1, 1, 1)
  4272.         orb.Transparency = 0
  4273.         orb.TopSurface = 0
  4274.         orb.BottomSurface = 0
  4275. orb.CFrame = sorb.CFrame
  4276.         local orbm = Instance.new("SpecialMesh", orb)
  4277.         orbm.MeshType = "Sphere"
  4278. orbm.Name = "SizeMesh"
  4279. orbm.Scale = vt(0,0,0)
  4280.         local sbs = Instance.new("BodyPosition", orb)
  4281.         sbs.P = 3000
  4282.         sbs.D = 1000
  4283.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4284.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4285. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4286. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4287. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4288. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4289. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4290. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4291. for i = 0, 10, 0.1 do
  4292. swait()
  4293. 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)
  4294. 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)
  4295. 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)
  4296. 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)
  4297. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4298. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4299. 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)
  4300. end
  4301. orb.Anchored = true
  4302. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4303. elocacenter.Anchored = true
  4304. elocacenter.CFrame = orb.CFrame
  4305. elocacenter.Orientation = vt(0,0,0)
  4306. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4307. eloca1.Anchored = true
  4308. eloca1.CFrame = elocacenter.CFrame
  4309. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4310. eloca2.Anchored = true
  4311. eloca2.CFrame = elocacenter.CFrame
  4312. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4313. eloca3.Anchored = true
  4314. eloca3.CFrame = elocacenter.CFrame
  4315. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4316. eloca4.Anchored = true
  4317. eloca4.CFrame = elocacenter.CFrame
  4318. local lookavec = 0
  4319. local speeds = 0
  4320. CameraEnshaking(1,1)
  4321. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4322. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4323. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4324. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4325. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4326. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4327. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4328. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4329. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4330. for i = 0, 99 do
  4331. swait()
  4332. lookavec = lookavec + 2.5
  4333. speeds = speeds + 0.25
  4334. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4335. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4336. 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)
  4337.  
  4338. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4339. 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)
  4340.  
  4341. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4342. 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)
  4343.  
  4344. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4345. 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)
  4346. end
  4347.  
  4348. for i = 0, 149 do
  4349. swait()
  4350. speeds = speeds + 0.25
  4351. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4352. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4353. 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)
  4354.  
  4355. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4356. 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)
  4357.  
  4358. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4359. 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)
  4360.  
  4361. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4362. 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)
  4363. end
  4364. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4365. for i = 0, 99 do
  4366. swait()
  4367. lookavec = lookavec - 2.5
  4368. speeds = speeds + 0.25
  4369. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4370. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4371. 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)
  4372.  
  4373. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4374. 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)
  4375.  
  4376. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4377. 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)
  4378.  
  4379. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4380. 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)
  4381. end
  4382. local scaled = 0.1*75
  4383. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4384. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4385. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4386. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4387. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4388. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4389. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4390. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4391. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4392. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4393. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4394.  
  4395. for i = 0, 10, 0.1 do
  4396. swait()
  4397. scaled = scaled - 0.001*75
  4398. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4399. 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)
  4400. 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)
  4401. 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)
  4402. 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)
  4403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4404. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4405. 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)
  4406. end
  4407. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4408. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4409. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4410. for x = 0, 4 do
  4411. for i = 0, 9 do
  4412. 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)
  4413. end
  4414. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4415. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4416. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4417. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4418. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4419. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4420. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4421. for i = 0, 5, 0.1 do
  4422. swait()
  4423. 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)
  4424. 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)
  4425. 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)
  4426. 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)
  4427. 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)
  4428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4430. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4431. end
  4432. end
  4433. local speedearn = 0
  4434. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4435. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4436. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4437. for i = 0, 30, 0.1 do
  4438. swait()
  4439. scaled = scaled - 0.001*75/10
  4440. speedearn = speedearn + 0.5
  4441. for i = 0, 4 do
  4442. 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)
  4443. end
  4444. 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)
  4445. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4446. 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)
  4447. 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)
  4448. 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)
  4449. 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)
  4450. 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)
  4451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4454. end
  4455. orb.Transparency = 1
  4456. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4457. if v:FindFirstChild('Head') then
  4458. dmg(v)
  4459. end
  4460. end
  4461. CameraEnshaking(7,30)
  4462. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4463. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4464. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4465. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4466. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4467. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4468. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4469. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4470. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4471. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4472. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4473. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4474. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4475. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4476. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4477. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4480. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4481. for i = 0, 99 do
  4482. 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)
  4483. 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)
  4484. end
  4485. for i = 0, 24 do
  4486. 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)
  4487. 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)
  4488. 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)
  4489. 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)
  4490. 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)
  4491. end
  4492. game:GetService("Debris"):AddItem(orb, 10)
  4493. hum.WalkSpeed = storehumanoidWS
  4494. attack = false
  4495. end
  4496.  
  4497.  
  4498. function ViolentRing()
  4499. attack = true
  4500. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4501. bosschatfunc("CAN I TAKE THAT EASY?!",MAINRUINCOLOR.Color,0.7)
  4502. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4503. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4504. for i = 0, 2, 0.1 do
  4505. swait()
  4506. local snap = math.random(1,10)
  4507. if snap == 1 then
  4508. 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)
  4509. end
  4510. 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)
  4511. 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)
  4512. 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)
  4513. 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)
  4514. 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)
  4515. 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)
  4516. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4517. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4518. 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)
  4519. RootPart.CFrame = FaceMouse()[1]
  4520. end
  4521. local orb = Instance.new("Part", char)
  4522.         orb.BrickColor = MAINRUINCOLOR
  4523.         orb.CanCollide = false
  4524.         orb.FormFactor = 3
  4525.         orb.Name = "Ring"
  4526.         orb.Material = "Neon"
  4527.         orb.Size = Vector3.new(1, 1, 1)
  4528.         orb.Transparency = 0
  4529.         orb.TopSurface = 0
  4530.         orb.BottomSurface = 0
  4531.         local orbm = Instance.new("SpecialMesh", orb)
  4532.         orbm.MeshType = "Sphere"
  4533. orbm.Name = "SizeMesh"
  4534. orbm.Scale = vt(2,2,2)
  4535. orb.CFrame = mouse.Hit
  4536. local bv = Instance.new("BodyVelocity")
  4537. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4538. bv.velocity = orb.CFrame.lookVector*100
  4539. bv.Parent = orb
  4540. local hitted = false
  4541. coroutine.resume(coroutine.create(function()
  4542. game:GetService("Debris"):AddItem(orb, 5)
  4543. orb.Transparency = 1
  4544. orb.Anchored = true
  4545. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4546. elocacenter.Anchored = true
  4547. elocacenter.CFrame = orb.CFrame
  4548. elocacenter.Orientation = vt(0,0,0)
  4549. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4550. eloca1.Anchored = true
  4551. eloca1.CFrame = elocacenter.CFrame
  4552. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4553. eloca2.Anchored = true
  4554. eloca2.CFrame = elocacenter.CFrame
  4555. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4556. eloca3.Anchored = true
  4557. eloca3.CFrame = elocacenter.CFrame
  4558. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4559. eloca4.Anchored = true
  4560. eloca4.CFrame = elocacenter.CFrame
  4561. local lookavec = 0
  4562. local speeds = 0
  4563. CameraEnshaking(1,1)
  4564. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4565. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4566. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4567. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4568. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4569. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4570. for i = 0, 24 do
  4571. swait()
  4572. lookavec = lookavec + 3.5
  4573. speeds = speeds + 1
  4574. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4575. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4576. 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)
  4577.  
  4578. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4579. 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)
  4580.  
  4581. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4582. 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)
  4583.  
  4584. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4585. 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)
  4586. end
  4587.  
  4588. local risen = 0
  4589. for i = 0, 49 do
  4590. swait()
  4591. risen = risen + 0.05
  4592. speeds = speeds + 0.1
  4593. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4594. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4595. 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)
  4596.  
  4597. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4598. 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)
  4599.  
  4600. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4601. 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)
  4602.  
  4603. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4604. 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)
  4605. end
  4606. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4607. if v:FindFirstChild('Head') then
  4608. dmg(v)
  4609. end
  4610. end
  4611. CameraEnshaking(4,10)
  4612. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4613. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4614. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4615. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4616. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4617. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4618. local eff = Instance.new("ParticleEmitter",elocacenter)
  4619. eff.Texture = "rbxassetid://2273224484"
  4620. eff.LightEmission = 1
  4621. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4622. eff.Rate = 1000000
  4623. eff.Lifetime = NumberRange.new(0.5,2)
  4624. 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)})
  4625. 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)})
  4626. eff.Speed = NumberRange.new(20,250)
  4627. eff.Drag = 5
  4628. eff.Rotation = NumberRange.new(-500,500)
  4629. eff.VelocitySpread = 5000000
  4630. eff.RotSpeed = NumberRange.new(-50,50)
  4631. coroutine.resume(coroutine.create(function()
  4632. wait(1)
  4633. eff.Enabled = false
  4634. end))
  4635. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4636. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4637. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4638. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4639. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4640. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4641. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4642. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4643. for i = 0, 24 do
  4644. 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)
  4645. 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)
  4646. 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)
  4647. 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)
  4648. end
  4649. coroutine.resume(coroutine.create(function()
  4650. wait(10)
  4651. elocacenter:Destroy()
  4652. eloca1:Destroy()
  4653. eloca2:Destroy()
  4654. eloca3:Destroy()
  4655. eloca4:Destroy()
  4656. end))
  4657. end))
  4658. attack = false
  4659. end
  4660.  
  4661. function UniversalCollapse()
  4662. attack = true
  4663. local speedearn = 0
  4664. hum.WalkSpeed = 0
  4665.         local sbs = Instance.new("BodyPosition", root)
  4666.         sbs.P = 3000
  4667.         sbs.D = 1000
  4668.         sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4669.         sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4670. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4671. for i = 0, 85, 0.1 do
  4672. swait()
  4673. speedearn = speedearn + 0.1
  4674. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4680. 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)
  4681. 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)
  4682. 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)
  4683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4684. 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)
  4685. 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)
  4686. end
  4687. bosschatfunc("Gone down..",MAINRUINCOLOR.Color,1)
  4688. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  4689. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  4690. for i = 0, 25, 0.1 do
  4691. swait()
  4692. speedearn = speedearn + 0.1
  4693. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4699. 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)
  4700. 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)
  4701. 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)
  4702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4703. 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)
  4704. 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)
  4705. end
  4706. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  4707. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  4708. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  4709. CameraEnshaking(5,50)
  4710. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4711. for i = 0, 2 do
  4712. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4713. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4714. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4715. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4716. end
  4717. for i = 0, 49 do
  4718. 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)
  4719. 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)
  4720. 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)
  4721. 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)
  4722. end
  4723. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4724. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4725. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4726. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4727. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4728. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4729. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4730. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4731. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4732. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4733. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4734. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4735. for i = 0, 99 do
  4736. 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)
  4737. 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)
  4738. end
  4739. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4740. if v:FindFirstChild('Head') then
  4741. dmg(v)
  4742. end
  4743. end
  4744. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4745. sbs:Destroy()
  4746. hum.WalkSpeed = storehumanoidWS
  4747. attack = false
  4748. end
  4749.  
  4750.  
  4751. function ChaosEND()
  4752. attack = true
  4753. local speedearn = 0
  4754. bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
  4755. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  4756. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  4757. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4758. for i = 0, 15, 0.1 do
  4759. swait()
  4760. speedearn = speedearn + 0.25
  4761. 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)
  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. 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)
  4767. 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)
  4768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4770. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4771. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4772. end
  4773. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  4774. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  4775. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
  4776. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  4777. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  4778. CameraEnshaking(5,25)
  4779. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4780. if v:FindFirstChild('Head') then
  4781. dmg(v)
  4782. end
  4783. end
  4784. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4785. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4786. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4787. for i = 0, 3, 0.1 do
  4788. swait()
  4789. 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)
  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. 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)
  4794. 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)
  4795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4798. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4799. end
  4800. attack = false
  4801. end
  4802.  
  4803. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4804. local orb = Instance.new("Part", char)
  4805.         orb.Anchored = true
  4806.         orb.BrickColor = color
  4807.         orb.CanCollide = false
  4808.         orb.FormFactor = 3
  4809.         orb.Name = "Ring"
  4810.         orb.Material = "Neon"
  4811.         orb.Size = Vector3.new(1, 1, 1)
  4812.         orb.Transparency = 0
  4813.         orb.TopSurface = 0
  4814.         orb.BottomSurface = 0
  4815.         local orbm = Instance.new("SpecialMesh", orb)
  4816.         orbm.MeshType = "Sphere"
  4817. orb.CFrame = positted
  4818. orbm.Name = "SizeMesh"
  4819. orbm.Scale = vt(1,1,1)
  4820. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4821. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4822. --[[for i = 0, 2 do
  4823. 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)
  4824. end]]--
  4825. coroutine.resume(coroutine.create(function()
  4826. wait(timer)
  4827. CameraEnshaking(3,ShakePower)
  4828. orb.Transparency = 1
  4829. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4830. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4831. --[[for i = 0, 4 do
  4832. 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)
  4833. end]]--
  4834. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4835. wait(3)
  4836. orb:Destroy()
  4837. end))
  4838. end
  4839.  
  4840. function orb_spawn(positted,timer)
  4841. local randomcol = math.random(1,2)
  4842. local orb = Instance.new("Part", char)
  4843.         orb.Anchored = true
  4844. if randomcol == 1 then
  4845.         orb.BrickColor = BrickColor.new("White")
  4846. elseif randomcol == 2 then
  4847. orb.BrickColor = BrickColor.new("Really black")
  4848. end
  4849.         orb.CanCollide = false
  4850.         orb.FormFactor = 3
  4851.         orb.Name = "Ring"
  4852.         orb.Material = "Neon"
  4853.         orb.Size = Vector3.new(1, 1, 1)
  4854.         orb.Transparency = 0
  4855.         orb.TopSurface = 0
  4856.         orb.BottomSurface = 0
  4857.         local orbm = Instance.new("SpecialMesh", orb)
  4858.         orbm.MeshType = "Sphere"
  4859. orb.CFrame = positted
  4860. orbm.Name = "SizeMesh"
  4861. orbm.Scale = vt(1,1,1)
  4862. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
  4863. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4864. for i = 0, 2 do
  4865. 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)
  4866. end
  4867. coroutine.resume(coroutine.create(function()
  4868. wait(timer)
  4869. CameraEnshaking(3,2)
  4870. orb.Transparency = 1
  4871. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4872. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4873. for i = 0, 4 do
  4874. 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)
  4875. end
  4876. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
  4877. wait(3)
  4878. orb:Destroy()
  4879. end))
  4880. end
  4881.  
  4882. function scattercorrupt()
  4883. attack = true
  4884. hum.WalkSpeed = 0
  4885. for i = 0, 2, 0.1 do
  4886. swait()
  4887. 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)
  4888. 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)
  4889. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4891. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  4892. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  4893. end
  4894. local rot = 0
  4895. local randomrotations = math.random(1,2)
  4896. local lookv = 2.5
  4897. local power = 7
  4898. local radm = math.random(1,3)
  4899. if radm == 1 then
  4900. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  4901. elseif radm == 2 then
  4902. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  4903. elseif radm == 3 then
  4904. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  4905. end
  4906. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  4907. for i = 0, 1, 0.1 do
  4908. swait()
  4909. 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)
  4910. 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)
  4911. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  4912. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  4913. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  4914. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  4915. end
  4916. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  4917. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  4918. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4919. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4920. for i = 0, 9 do
  4921. 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)
  4922. end
  4923. local hite = Instance.new("Part", char)
  4924.         hite.Anchored = true
  4925.         hite.CanCollide = false
  4926.         hite.FormFactor = 3
  4927.         hite.Name = "Ring"
  4928.         hite.Material = "Neon"
  4929.         hite.Size = Vector3.new(1, 1, 1)
  4930.         hite.Transparency = 1
  4931.         hite.TopSurface = 0
  4932.         hite.BottomSurface = 0
  4933. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4934. local rem = Instance.new("Part", char)
  4935.         rem.Anchored = true
  4936.         rem.CanCollide = false
  4937.         rem.FormFactor = 3
  4938.         rem.Name = "Ring"
  4939.         rem.Material = "Neon"
  4940.         rem.Size = Vector3.new(1, 1, 1)
  4941.         rem.Transparency = 1
  4942.         rem.TopSurface = 0
  4943.         rem.BottomSurface = 0
  4944. rem.CFrame = hite.CFrame
  4945. local rem2 = rem:Clone()
  4946. rem2.Parent = char
  4947. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4948. local rem3 = rem:Clone()
  4949. rem3.Parent = char
  4950. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4951. local rem4 = rem:Clone()
  4952. rem4.Parent = char
  4953. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4954. hite:Destroy()
  4955. coroutine.resume(coroutine.create(function()
  4956. for i = 0, 24 do
  4957. swait(1)
  4958. if randomrotations == 1 then
  4959. rot = rot + 1
  4960. elseif randomrotations == 2 then
  4961. rot = rot - 1
  4962. end
  4963. power = power + 0.5
  4964. lookv = lookv + 7.5
  4965. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4966. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4967. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4968. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4969. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4970. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4971. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4972. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  4973. end
  4974. end))
  4975. wait(2)
  4976. hum.WalkSpeed = storehumanoidWS
  4977. attack = false
  4978. end
  4979. function yinyangi()
  4980. attack = true
  4981. for i = 0, 2, 0.1 do
  4982. swait()
  4983. 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)
  4984. 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)
  4985. 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)
  4986. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4987. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4988. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4989. end
  4990. local bv = Instance.new("BodyVelocity")
  4991. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4992. bv.velocity = root.CFrame.lookVector*175
  4993. bv.Parent = root
  4994. for Rotations = 0, 9 do
  4995. for i = 0, 1, 0.5 do
  4996. swait()
  4997. bv.velocity = root.CFrame.lookVector*175
  4998. 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)
  4999. 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)
  5000. 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)
  5001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5002. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5003. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5004. end
  5005. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5006. for i = 0, 1, 0.5 do
  5007. swait()
  5008. bv.velocity = root.CFrame.lookVector*175
  5009. 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)
  5010. 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)
  5011. 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)
  5012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5013. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5015. end
  5016. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5017. for i = 0, 1, 0.5 do
  5018. swait()
  5019. bv.velocity = root.CFrame.lookVector*175
  5020. 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)
  5021. 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)
  5022. 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)
  5023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5026. end
  5027. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5028. for i = 0, 1, 0.5 do
  5029. swait()
  5030. bv.velocity = root.CFrame.lookVector*175
  5031. 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)
  5032. 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)
  5033. 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)
  5034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5036. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5037. end
  5038. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5039. end
  5040. bv:Destroy()
  5041. attack = false
  5042. end
  5043.  
  5044. function createBGCircle(size,parent,color)
  5045. local bgui = Instance.new("BillboardGui",parent)
  5046. bgui.Size = UDim2.new(size, 0, size, 0)
  5047. local imgc = Instance.new("ImageLabel",bgui)
  5048. imgc.BackgroundTransparency = 1
  5049. imgc.ImageTransparency = 0
  5050. imgc.Size = UDim2.new(1,0,1,0)
  5051. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5052. imgc.ImageColor3 = color
  5053. return bgui,imgc
  5054. end
  5055.  
  5056. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5057. local bgui,imgc = createBGCircle(size,guipar,color)
  5058. bgui.AlwaysOnTop = true
  5059. imgc.Image = "rbxassetid://" ..img
  5060. local rrot = math.random(1,2)
  5061. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5062. coroutine.resume(coroutine.create(function()
  5063. for i = 0, 24*delay do
  5064. swait()
  5065. if rotationenabled == true then
  5066. if rrot == 1 then
  5067. imgc.Rotation = imgc.Rotation + rotsp
  5068. elseif rrot == 2 then
  5069. imgc.Rotation = imgc.Rotation - rotsp
  5070. end
  5071. end
  5072. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5073. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5074. end
  5075. bgui:Destroy()
  5076. end))
  5077. end
  5078. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5079. for i, v in pairs(mw2:GetChildren()) do
  5080. if v:IsA("Part") then
  5081. v.BrickColor = one
  5082. v.Material = "Neon"
  5083. end
  5084. end
  5085. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5086. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5087. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5088. tr1.Color = ColorSequence.new(one.Color)
  5089. tr2.Color = ColorSequence.new(one.Color)
  5090. tr3.Color = ColorSequence.new(one.Color)
  5091. for i, v in pairs(mw1:GetChildren()) do
  5092. if v:IsA("Part") then
  5093. if secondaryenabled == false then
  5094. v.Transparency = 1
  5095. elseif secondaryenabled == true then
  5096. v.Transparency = 0
  5097. end
  5098. v.BrickColor = two
  5099. v.Material = "Neon"
  5100. end
  5101. end
  5102. if secondaryenabled == false then
  5103. tl1.Enabled = false
  5104. tl2.Enabled = false
  5105. tl3.Enabled = false
  5106. elseif secondaryenabled == true then
  5107. tl1.Enabled = true
  5108. tl2.Enabled = true
  5109. tl3.Enabled = true
  5110. end
  5111. tl1.Color = ColorSequence.new(two.Color)
  5112. tl2.Color = ColorSequence.new(two.Color)
  5113. tl3.Color = ColorSequence.new(two.Color)
  5114. for i, v in pairs(m:GetChildren()) do
  5115. if v:IsA("Part") then
  5116. v.BrickColor = three
  5117. v.Material = "Ice"
  5118. end
  5119. end
  5120. for i, v in pairs(m2:GetChildren()) do
  5121. if v:IsA("Part") then
  5122. v.BrickColor = four
  5123. v.Material = "Ice"
  5124. end
  5125. end
  5126. for i, v in pairs(m3:GetChildren()) do
  5127. if v:IsA("Part") then
  5128. v.BrickColor = five
  5129. v.Material = "Neon"
  5130. end
  5131. end
  5132. for i, v in pairs(extrawingmod1:GetChildren()) do
  5133. if v:IsA("Part") then
  5134. v.Transparency = exonetran
  5135. v.BrickColor = exone
  5136. v.Material = "Neon"
  5137. end
  5138. end
  5139. for i, v in pairs(extrawingmod2:GetChildren()) do
  5140. if v:IsA("Part") then
  5141. v.Transparency = extwotran
  5142. v.BrickColor = extwo
  5143. v.Material = "Neon"
  5144. end
  5145. end
  5146. end
  5147.  
  5148.  
  5149. function normalmog()
  5150. attack = true
  5151. hum.WalkSpeed = 0
  5152. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5153. for i = 0,6,0.1 do
  5154. swait()
  5155. 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)
  5156. 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)
  5157. 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)
  5158. 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)
  5159. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5160. 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)
  5161. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5162. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5163. end
  5164. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5165. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5166. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5167. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5168. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5169. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5170. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5171. rainbowmode = false
  5172. chaosmode = false
  5173. ModeOfGlitch = 1
  5174. storehumanoidWS = 16
  5175. newTheme("rbxassetid://367339030",48.6,1,1.25)
  5176. RecolorTextAndRename("Murder Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5177. CameraEnshaking(5,2.5)
  5178. MAINRUINCOLOR = BrickColor.new("Really red")
  5179. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5180. for i = 0, 49 do
  5181. 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)
  5182. end
  5183. for i = 0, 24 do
  5184. 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)
  5185. 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"))
  5186. end
  5187. for i = 0,3,0.1 do
  5188. 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)
  5189. end
  5190. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5191. for i = 0,2,0.1 do
  5192. swait()
  5193. 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)
  5194. 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)
  5195. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5196. 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)
  5197. 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)
  5198. 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)
  5199. end
  5200. hum.WalkSpeed = storehumanoidWS
  5201. attack = false
  5202. end
  5203.  
  5204. function attackone()
  5205.     attack = true
  5206. local keptcolor = MAINRUINCOLOR
  5207.     for i = 0,1,0.1 do
  5208.         swait()
  5209.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5210. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5211. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5212. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5213. 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)
  5214. 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)
  5215.     end
  5216. local distlook = 5
  5217. coroutine.resume(coroutine.create(function()
  5218. for i = 0, 4 do
  5219. swait(2)
  5220. CameraEnshaking(2,3)
  5221. local hite = Instance.new("Part", char)
  5222.         hite.Anchored = true
  5223.         hite.CanCollide = false
  5224.         hite.FormFactor = 3
  5225.         hite.Name = "Ring"
  5226.         hite.Material = "Neon"
  5227.         hite.Size = Vector3.new(1, 1, 1)
  5228.         hite.Transparency = 1
  5229.         hite.TopSurface = 0
  5230.         hite.BottomSurface = 0
  5231. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5232. 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)
  5233. 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)
  5234. 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)
  5235. 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)
  5236. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5237. for i = 0, 14 do
  5238. local rsiz = math.random(5,20)
  5239. 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)
  5240. end
  5241. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5242. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5243. game:GetService("Debris"):AddItem(hite, 5)
  5244. distlook = distlook + 10
  5245. end
  5246. end))
  5247.     for i = 0,1,0.1 do
  5248.         swait()
  5249.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5250. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5251. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5252. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5253. 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)
  5254. 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)
  5255.     end
  5256.     attack = false
  5257. end
  5258.  
  5259. function attacktwo()
  5260.     attack = true
  5261. hum.WalkSpeed = 2
  5262. local keptcolor = MAINRUINCOLOR
  5263. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5264. 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)
  5265. 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)
  5266. for i = 0, 14 do
  5267. 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)
  5268. end
  5269. for i = 0,1,0.1 do
  5270. swait()
  5271. 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)
  5272. 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)
  5273. 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)
  5274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5276. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5277. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5278. end
  5279. for i = 0, 1 do
  5280. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5281. for i = 0,1,0.6 do
  5282. swait()
  5283. 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)
  5284. 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"))
  5285. 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)
  5286. 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)
  5287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5289. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5290. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5291. end
  5292. for i = 0,1,0.6 do
  5293. swait()
  5294. 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)
  5295. 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"))
  5296. 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)
  5297. 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)
  5298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5300. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5301. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5302. end
  5303. for i = 0,1,0.6 do
  5304. swait()
  5305. 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)
  5306. 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"))
  5307. 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)
  5308. 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)
  5309. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5311. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5312. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5313. end
  5314. for i = 0,1,0.6 do
  5315. swait()
  5316. 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)
  5317. 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"))
  5318. 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)
  5319. 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)
  5320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5321. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5322. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5323. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5324. end
  5325. local rot = 0
  5326. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5327. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5328. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5329. CreateMesh(dis,"Sphere",10,1,10)
  5330. local at1 = Instance.new("Attachment",dis)
  5331. at1.Position = vt(-5,0,0)
  5332. local at2 = Instance.new("Attachment",dis)
  5333. at2.Position = vt(5,0,0)
  5334. local trl = Instance.new('Trail',wed)
  5335. trl.Attachment0 = at1
  5336. trl.Attachment1 = at2
  5337. trl.Texture = "rbxassetid://1049219073"
  5338. trl.LightEmission = 1
  5339. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5340. trl.Color = ColorSequence.new(dis.Color)
  5341. trl.Lifetime = 0.6
  5342. local a = Instance.new("Part",workspace)
  5343.     a.Name = "Direction"   
  5344.     a.Anchored = true
  5345.     a.BrickColor = bc("Bright red")
  5346. a.Material = "Neon"
  5347. a.Transparency = 1
  5348.     a.CanCollide = false
  5349.     local ray = Ray.new(
  5350.         dis.CFrame.p,                           -- origin
  5351.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5352.     )
  5353.     local ignore = dis
  5354.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5355.     a.BottomSurface = 10
  5356.     a.TopSurface = 10
  5357.     local distance = (dis.CFrame.p - position).magnitude
  5358.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  5359.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5360. dis.CFrame = a.CFrame
  5361. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5362. a:Destroy()
  5363. local bv = Instance.new("BodyVelocity")
  5364. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5365. bv.velocity = dis.CFrame.lookVector*250
  5366. bv.Parent = dis
  5367. game:GetService("Debris"):AddItem(dis, 5)
  5368. local hitted = false
  5369. coroutine.resume(coroutine.create(function()
  5370. dis.Touched:connect(function(hit)
  5371.     if hitted == false and hit.Parent ~= char then
  5372.     hitted = true
  5373.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5374.     MagniDamage(dis, 30, 33,56, 0, "Normal")
  5375.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5376.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5377.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5378.     coroutine.resume(coroutine.create(function()
  5379.         for i = 0, 9 do
  5380. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5381. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5382. local at1 = Instance.new("Attachment",disr)
  5383. at1.Position = vt(-5,0,0)
  5384. local at2 = Instance.new("Attachment",disr)
  5385. at2.Position = vt(5,0,0)
  5386. local trl = Instance.new('Trail',disr)
  5387. trl.Attachment0 = at1
  5388. trl.FaceCamera = true
  5389. trl.Attachment1 = at2
  5390. trl.Texture = "rbxassetid://2342682798"
  5391. trl.LightEmission = 1
  5392. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5393. trl.Color = ColorSequence.new(keptcolor.Color)
  5394. trl.Lifetime = 0.5
  5395. local bv = Instance.new("BodyVelocity")
  5396. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5397. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5398. bv.Parent = disr
  5399. local val = 0
  5400. coroutine.resume(coroutine.create(function()
  5401.     swait(30)
  5402.     for i = 0, 9 do
  5403.         swait()
  5404.         val = val + 0.1
  5405.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5406.     end
  5407. game:GetService("Debris"):AddItem(disr, 3)
  5408. end))
  5409. end
  5410. local eff = Instance.new("ParticleEmitter",dis)
  5411. eff.Texture = "rbxassetid://2273224484"
  5412. eff.LightEmission = 1
  5413. eff.Color = ColorSequence.new(keptcolor.Color)
  5414. eff.Rate = 500000
  5415. eff.Lifetime = NumberRange.new(0.5,2)
  5416. 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)})
  5417. 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)})
  5418. eff.Speed = NumberRange.new(20,250)
  5419. eff.Drag = 5
  5420. eff.Rotation = NumberRange.new(-500,500)
  5421. eff.VelocitySpread = 9000
  5422. eff.RotSpeed = NumberRange.new(-50,50)
  5423. wait(0.25)
  5424. eff.Enabled = false
  5425. end))
  5426.     for i = 0, 9 do
  5427.         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"))
  5428.     end
  5429. for i = 0, 19 do
  5430. 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)
  5431. end
  5432. coroutine.resume(coroutine.create(function()
  5433. for i = 0, 19 do
  5434. swait()
  5435. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5436. end
  5437. hum.CameraOffset = vt(0,0,0)
  5438. end))
  5439. dis.Anchored = true
  5440. dis.Transparency = 1
  5441. wait(8)
  5442. dis:Destroy()
  5443. end
  5444. end)
  5445. end))
  5446. rot = rot - 15
  5447. end
  5448. for i = 0,2,0.1 do
  5449. swait()
  5450. 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)
  5451. 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)
  5452. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5454. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5455. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5456. end
  5457. attack = false
  5458. hum.WalkSpeed = storehumanoidWS
  5459. end
  5460.  
  5461. function attackthree()
  5462. attack = true
  5463. local keptcolor = MAINRUINCOLOR
  5464. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5465.     for i = 0,2,0.1 do
  5466.         swait()
  5467.         sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5468. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5469. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5470. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5471. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5472. 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)
  5473. 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)
  5474.     end
  5475. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5476. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5477. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5478. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5479. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5480. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5481. for i = 0, 24 do
  5482.         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"))
  5483. end
  5484. for i = 0,4,0.1 do
  5485.         swait()
  5486.         root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5487.         local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5488. CreateMesh(dis,"Sphere",1,1,1)
  5489. dis.Anchored = true
  5490. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5491. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5492. coroutine.resume(coroutine.create(function()
  5493.     swait(30)
  5494.     dis.Transparency = 1
  5495. coroutine.resume(coroutine.create(function()
  5496. for i = 0, 19 do
  5497. swait()
  5498. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5499. end
  5500. hum.CameraOffset = vt(0,0,0)
  5501. end))
  5502. coroutine.resume(coroutine.create(function()
  5503. local eff = Instance.new("ParticleEmitter",dis)
  5504. eff.Texture = "rbxassetid://2273224484"
  5505. eff.LightEmission = 1
  5506. eff.Color = ColorSequence.new(dis.Color)
  5507. eff.Rate = 500000
  5508. eff.Lifetime = NumberRange.new(0.5,2)
  5509. 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)})
  5510. 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)})
  5511. eff.Speed = NumberRange.new(50,450)
  5512. eff.Drag = 5
  5513. eff.Rotation = NumberRange.new(-500,500)
  5514. eff.VelocitySpread = 9000
  5515. eff.RotSpeed = NumberRange.new(-50,50)
  5516. wait(0.125)
  5517. eff.Enabled = false
  5518. end))
  5519. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5520.     for i = 0, 2 do
  5521.         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)
  5522.     end
  5523.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5524.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5525.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5526.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5527. end))
  5528. game:GetService("Debris"):AddItem(dis, 5)
  5529. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5530. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5531. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5532. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5533. 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)
  5534. 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)
  5535.     end
  5536. attack = false
  5537. end
  5538. ----------------------------------- Abilities
  5539.  
  5540. function ExtinctiveHeartbreak()
  5541. local targetted = nil
  5542. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5543. targetted = mouse.Target.Parent
  5544. end
  5545. if targetted ~= nil then
  5546. attack = true
  5547. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5548. for i = 0, 9 do
  5549. 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)
  5550. end
  5551. for i = 0, 24 do
  5552. 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)
  5553. end
  5554. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5555. local originalpos = root.CFrame
  5556. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5557. for i = 0, 9 do
  5558. 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)
  5559. end
  5560. for i = 0, 24 do
  5561. 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)
  5562. end
  5563. hum.WalkSpeed = 0
  5564. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5565. local radm = math.random(1,3)
  5566. if radm == 1 then
  5567. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5568. elseif radm == 2 then
  5569. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5570. elseif radm == 3 then
  5571. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5572. end
  5573. for i = 0,2,0.1 do
  5574. swait()
  5575. 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)
  5576. 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)
  5577. 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)
  5578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5579. 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)
  5580. 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)
  5581. end
  5582. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5583. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5584. for i = 0,2,0.1 do
  5585. swait()
  5586. coroutine.resume(coroutine.create(function()
  5587. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5588. for i,v in pairs(targetted:GetChildren()) do
  5589. if v:IsA("Part") or v:IsA("MeshPart") then
  5590. v.Velocity = vt(0,0,0)
  5591. end
  5592. end
  5593. end))
  5594. 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)
  5595. 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)
  5596. 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)
  5597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5598. 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)
  5599. 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)
  5600. end
  5601. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5602. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5603. for i = 0, 1 do
  5604. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5605. end
  5606. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5607. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5608. for i = 0,4,0.1 do
  5609. swait()
  5610. coroutine.resume(coroutine.create(function()
  5611. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5612. 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)))
  5613. local at1 = Instance.new("Attachment",dis)
  5614. at1.Position = vt(-25000,0,0)
  5615. local at2 = Instance.new("Attachment",dis)
  5616. at2.Position = vt(25000,0,0)
  5617. local trl = Instance.new('Trail',dis)
  5618. trl.Attachment0 = at1
  5619. trl.FaceCamera = true
  5620. trl.Attachment1 = at2
  5621. trl.Texture = "rbxassetid://1049219073"
  5622. trl.LightEmission = 1
  5623. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5624. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5625. trl.Lifetime = 5
  5626. local bv = Instance.new("BodyVelocity")
  5627. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5628. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5629. bv.Parent = dis
  5630. game:GetService("Debris"):AddItem(dis, 5)
  5631. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5632. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5633. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5634. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5635. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5636. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5637. 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)
  5638. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5639. for i = 0, 2 do
  5640. 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"))
  5641. end
  5642. 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)
  5643. for i,v in pairs(targetted:GetChildren()) do
  5644. if v:IsA("Part") or v:IsA("MeshPart") then
  5645. v.Velocity = vt(0,0,0)
  5646. end
  5647. end
  5648. end))
  5649. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5650. 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)
  5651. 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)
  5652. 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)
  5653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5654. 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)
  5655. 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)
  5656. end
  5657. hum.CameraOffset = vt(0,0,0)
  5658. for i = 0, 49 do
  5659. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5660. 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)))
  5661. local at1 = Instance.new("Attachment",dis)
  5662. at1.Position = vt(-50000,0,0)
  5663. local at2 = Instance.new("Attachment",dis)
  5664. at2.Position = vt(50000,0,0)
  5665. local trl = Instance.new('Trail',dis)
  5666. trl.Attachment0 = at1
  5667. trl.FaceCamera = true
  5668. trl.Attachment1 = at2
  5669. trl.Texture = "rbxassetid://1049219073"
  5670. trl.LightEmission = 1
  5671. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5672. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5673. trl.Lifetime = 5
  5674. local bv = Instance.new("BodyVelocity")
  5675. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5676. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5677. bv.Parent = dis
  5678. game:GetService("Debris"):AddItem(dis, 5)
  5679. end
  5680. for i = 0, 49 do
  5681. 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)
  5682. 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"))
  5683. end
  5684. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5685. for i = 0, 1 do
  5686. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5687. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5688. end
  5689. for i = 0, 4 do
  5690. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5691. end
  5692. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5693. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5694. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5695. dmg(targetted)
  5696. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5697. for i = 0, 9 do
  5698. 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)
  5699. end
  5700. for i = 0, 24 do
  5701. 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)
  5702. end
  5703. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5704. root.CFrame = originalpos
  5705. for i = 0, 9 do
  5706. 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)
  5707. end
  5708. for i = 0, 24 do
  5709. 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)
  5710. end
  5711. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5712. attack = false
  5713. hum.WalkSpeed = storehumanoidWS
  5714. end
  5715. end
  5716.  
  5717. function CorruptionEvent()
  5718. attack = true
  5719. hum.WalkSpeed = 0
  5720. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5721. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5722. local keptcolor = MAINRUINCOLOR
  5723. for i = 0,4,0.1 do
  5724. swait()
  5725. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5726. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5727. 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)
  5728. 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)
  5729. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5730. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5731. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5732. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5733. end
  5734. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5735. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5736. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5737. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5738. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5739. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5740. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5741. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5742. hum.CameraOffset = vt(0,0,0)
  5743. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5744. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5745. for i = 0, 24 do
  5746. 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"))
  5747. end
  5748. local rrot = 0
  5749. coroutine.resume(coroutine.create(function()
  5750. for i = 0, 4 do
  5751. rrot = rrot + 45
  5752. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5753. xa.Anchored = true
  5754. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5755. xb.Anchored = true
  5756. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5757. xc.Anchored = true
  5758. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5759. xd.Anchored = true
  5760. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5761. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5762. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5763. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5764. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5765. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5766. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5767. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5768. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5769. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5770. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5771. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5772. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5773. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5774. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5775. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5776. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5777. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5778. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5779. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5780. for i = 0, 9 do
  5781. 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"))
  5782. 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"))
  5783. 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"))
  5784. 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"))
  5785. end
  5786. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5787. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5788. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5789. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5790. 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)
  5791. 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)
  5792. 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)
  5793. 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)
  5794. 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))
  5795. 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))
  5796. 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))
  5797. 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))
  5798. game:GetService("Debris"):AddItem(xa, 5)
  5799. game:GetService("Debris"):AddItem(xb, 5)
  5800. game:GetService("Debris"):AddItem(xc, 5)
  5801. game:GetService("Debris"):AddItem(xd, 5)
  5802. coroutine.resume(coroutine.create(function()
  5803. for i = 0, 19 do
  5804. swait()
  5805. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5806. end
  5807. hum.CameraOffset = vt(0,0,0)
  5808. end))
  5809. swait(9)
  5810. end
  5811. end))
  5812. for i = 0,2,0.1 do
  5813. swait()
  5814. 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)
  5815. 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)
  5816. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5817. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5818. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5819. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5820. end
  5821. attack = false
  5822. hum.WalkSpeed = storehumanoidWS
  5823. end
  5824.  
  5825. function EndGROUND()
  5826.     attack = true
  5827. hum.WalkSpeed = 0
  5828. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5829. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5830. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5831. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5832. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5833. local keptcolor = MAINRUINCOLOR
  5834. for i = 0,4,0.1 do
  5835. swait()
  5836. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5837. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5838. 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"))
  5839. 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)
  5840. 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)
  5841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5843. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5844. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5845. end
  5846. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5847. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5848. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5849. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5850. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5851. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5852. coroutine.resume(coroutine.create(function()
  5853.     local shval = 10
  5854.     for i = 0, 99 do
  5855.         swait()
  5856.         shval = shval - 0.1
  5857.         hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5858.     end
  5859.     hum.CameraOffset = vt(0,0,0)
  5860. end))
  5861. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5862. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5863. for i = 0, 24 do
  5864. 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"))
  5865. end
  5866. local rrot = 0
  5867. local xam = 1
  5868. coroutine.resume(coroutine.create(function()
  5869. for i = 0, 14 do
  5870. --swait()
  5871. rrot = rrot + 40*xam
  5872. xam = xam + 0.25
  5873. local bonus = xam
  5874. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5875. xa.Anchored = true
  5876. xa.Color = Color3.new(0,0,0)
  5877. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5878. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5879. local xc = 0
  5880. coroutine.resume(coroutine.create(function()
  5881. for i = 0, 99 do
  5882.     swait()
  5883.     xc = xc + 0.01
  5884.     xa.Color = Color3.new(xc,0,0)
  5885. end
  5886. xa.Transparency = 1
  5887. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5888. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5889. for i = 0, 9 do
  5890. 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"))
  5891. end
  5892. 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)
  5893. 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)
  5894. 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))
  5895. game:GetService("Debris"):AddItem(xa, 5)
  5896. coroutine.resume(coroutine.create(function()
  5897. for i = 0, 19 do
  5898. swait()
  5899. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5900. end
  5901. hum.CameraOffset = vt(0,0,0)
  5902. end))
  5903. end))
  5904. end
  5905. end))
  5906. for i = 0,2,0.1 do
  5907. swait()
  5908. 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)
  5909. 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)
  5910. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5911. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5912. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5913. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5914. end
  5915. attack = false
  5916. hum.WalkSpeed = storehumanoidWS
  5917. end
  5918.  
  5919. function HeavenlyDisk()
  5920. attack = true
  5921. hum.WalkSpeed = 2
  5922. local keptcolor = MAINRUINCOLOR
  5923. local radm = math.random(1,3)
  5924. if radm == 1 then
  5925. bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
  5926. elseif radm == 2 then
  5927. bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5928. elseif radm == 3 then
  5929. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5930. end
  5931. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5932. CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
  5933. 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)
  5934. 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)
  5935. for i = 0, 14 do
  5936. 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)
  5937. end
  5938. for i = 0,2,0.1 do
  5939. swait()
  5940. 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)
  5941. 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)
  5942. 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)
  5943. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5945. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5946. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5947. end
  5948. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5949. for i = 0,1,0.6 do
  5950. swait()
  5951. 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)
  5952. 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"))
  5953. 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)
  5954. 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)
  5955. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5956. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5957. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5958. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5959. end
  5960. for i = 0,1,0.6 do
  5961. swait()
  5962. 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)
  5963. 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"))
  5964. 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)
  5965. 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)
  5966. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5967. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5969. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5970. end
  5971. for i = 0,1,0.6 do
  5972. swait()
  5973. 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)
  5974. 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"))
  5975. 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)
  5976. 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)
  5977. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5978. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5979. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5980. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5981. end
  5982. for i = 0,1,0.6 do
  5983. swait()
  5984. 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)
  5985. 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"))
  5986. 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)
  5987. 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)
  5988. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5989. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5990. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5991. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5992. end
  5993. local rot = 15
  5994. for i = 0, 2 do
  5995. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5996. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5997. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5998. CreateMesh(dis,"Sphere",10,1,10)
  5999. local at1 = Instance.new("Attachment",dis)
  6000. at1.Position = vt(-5,0,0)
  6001. local at2 = Instance.new("Attachment",dis)
  6002. at2.Position = vt(5,0,0)
  6003. local trl = Instance.new('Trail',wed)
  6004. trl.Attachment0 = at1
  6005. trl.Attachment1 = at2
  6006. trl.Texture = "rbxassetid://1049219073"
  6007. trl.LightEmission = 1
  6008. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6009. trl.Color = ColorSequence.new(dis.Color)
  6010. trl.Lifetime = 0.6
  6011. local a = Instance.new("Part",workspace)
  6012.     a.Name = "Direction"   
  6013.     a.Anchored = true
  6014.     a.BrickColor = bc("Bright red")
  6015. a.Material = "Neon"
  6016. a.Transparency = 1
  6017.     a.CanCollide = false
  6018.     local ray = Ray.new(
  6019.         dis.CFrame.p,                           -- origin
  6020.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6021.     )
  6022.     local ignore = dis
  6023.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6024.     a.BottomSurface = 10
  6025.     a.TopSurface = 10
  6026.     local distance = (dis.CFrame.p - position).magnitude
  6027.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6028.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6029. dis.CFrame = a.CFrame
  6030. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6031. a:Destroy()
  6032. local bv = Instance.new("BodyVelocity")
  6033. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6034. bv.velocity = dis.CFrame.lookVector*250
  6035. bv.Parent = dis
  6036. game:GetService("Debris"):AddItem(dis, 5)
  6037. local hitted = false
  6038. coroutine.resume(coroutine.create(function()
  6039. dis.Touched:connect(function(hit)
  6040.     if hitted == false and hit.Parent ~= char then
  6041.     hitted = true
  6042.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6043.     MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6044.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6045.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6046.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6047.     coroutine.resume(coroutine.create(function()
  6048.         for i = 0, 9 do
  6049. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6050. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6051. local at1 = Instance.new("Attachment",disr)
  6052. at1.Position = vt(-2,0,0)
  6053. local at2 = Instance.new("Attachment",disr)
  6054. at2.Position = vt(2,0,0)
  6055. local trl = Instance.new('Trail',disr)
  6056. trl.Attachment0 = at1
  6057. trl.FaceCamera = true
  6058. trl.Attachment1 = at2
  6059. trl.Texture = "rbxassetid://2342682798"
  6060. trl.LightEmission = 1
  6061. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6062. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6063. trl.Lifetime = 0.5
  6064. local bv = Instance.new("BodyVelocity")
  6065. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6066. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6067. bv.Parent = disr
  6068. local val = 0
  6069. coroutine.resume(coroutine.create(function()
  6070.     swait(30)
  6071.     for i = 0, 9 do
  6072.         swait()
  6073.         val = val + 0.1
  6074.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6075.     end
  6076. game:GetService("Debris"):AddItem(disr, 3)
  6077. end))
  6078. end
  6079. local eff = Instance.new("ParticleEmitter",dis)
  6080. eff.Texture = "rbxassetid://2273224484"
  6081. eff.LightEmission = 1
  6082. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6083. eff.Rate = 500000
  6084. eff.Lifetime = NumberRange.new(0.5,2)
  6085. 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)})
  6086. 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)})
  6087. eff.Speed = NumberRange.new(20,250)
  6088. eff.Drag = 5
  6089. eff.Rotation = NumberRange.new(-500,500)
  6090. eff.VelocitySpread = 9000
  6091. eff.RotSpeed = NumberRange.new(-50,50)
  6092. wait(0.25)
  6093. eff.Enabled = false
  6094. end))
  6095.     for i = 0, 9 do
  6096.         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"))
  6097.     end
  6098. for i = 0, 19 do
  6099. 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)
  6100. end
  6101. coroutine.resume(coroutine.create(function()
  6102. for i = 0, 19 do
  6103. swait()
  6104. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6105. end
  6106. hum.CameraOffset = vt(0,0,0)
  6107. end))
  6108. dis.Anchored = true
  6109. dis.Transparency = 1
  6110. wait(8)
  6111. dis:Destroy()
  6112. end
  6113. end)
  6114. end))
  6115. rot = rot - 15
  6116. end
  6117. for i = 0,2,0.1 do
  6118. swait()
  6119. 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)
  6120. 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)
  6121. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6123. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6124. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6125. end
  6126. attack = false
  6127. hum.WalkSpeed = storehumanoidWS
  6128. end
  6129.  
  6130.  
  6131. function RapidBurst()
  6132. attack = true
  6133. hum.WalkSpeed = 0
  6134. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6135. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6136. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6137. bosschatfunc("SHATTER YOU PIECE OF TRASH!",MAINRUINCOLOR.Color,1.8)
  6138. bosschatfunc("SHATTER!?!!!",MAINRUINCOLOR.Color,1.9)
  6139. bosschatfunc("SHATTER!!!!!",MAINRUINCOLOR.Color,2)
  6140. local keptcolor = MAINRUINCOLOR
  6141. for i = 0,8,0.1 do
  6142. swait()
  6143. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6144. 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())
  6145. 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)
  6146. 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)
  6147. 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)
  6148. 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)
  6149. 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)
  6150. 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)
  6151. 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)
  6152. end
  6153. for i = 0, 99 do
  6154. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6155. 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)))
  6156. local at1 = Instance.new("Attachment",dis)
  6157. at1.Position = vt(-25000,0,0)
  6158. local at2 = Instance.new("Attachment",dis)
  6159. at2.Position = vt(25000,0,0)
  6160. local trl = Instance.new('Trail',dis)
  6161. trl.Attachment0 = at1
  6162. trl.FaceCamera = true
  6163. trl.Attachment1 = at2
  6164. trl.Texture = "rbxassetid://1049219073"
  6165. trl.LightEmission = 1
  6166. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6167. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6168. trl.Lifetime = 5
  6169. local bv = Instance.new("BodyVelocity")
  6170. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6171. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6172. bv.Parent = dis
  6173. game:GetService("Debris"):AddItem(dis, 5)
  6174. end
  6175. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6176. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6177. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6178. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6179. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6180. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6181. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6182. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6183. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6184. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6185. hum.CameraOffset = vt(0,0,0)
  6186. for i = 0, 24 do
  6187. 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())
  6188. end
  6189. local distam = 0
  6190. coroutine.resume(coroutine.create(function()
  6191. for i = 0, 99 do
  6192.     wait()
  6193. distam = distam + 1
  6194. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6195. xa.Anchored = true
  6196. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6197. game:GetService("Debris"):AddItem(xa, 5)
  6198. for i = 0, 4 do
  6199. 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())
  6200. end
  6201. coroutine.resume(coroutine.create(function()
  6202. local eff = Instance.new("ParticleEmitter",xa)
  6203. eff.Texture = "rbxassetid://2273224484"
  6204. eff.LightEmission = 1
  6205. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6206. eff.Rate = 500000
  6207. eff.Lifetime = NumberRange.new(1,3)
  6208. 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)})
  6209. 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)})
  6210. eff.Speed = NumberRange.new(50,500)
  6211. eff.Drag = 5
  6212. eff.Rotation = NumberRange.new(-500,500)
  6213. eff.VelocitySpread = 9000
  6214. eff.RotSpeed = NumberRange.new(-50,50)
  6215. wait(0.25)
  6216. eff.Enabled = false
  6217. end))
  6218. coroutine.resume(coroutine.create(function()
  6219. for i = 0, 19 do
  6220. swait()
  6221. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6222. end
  6223. hum.CameraOffset = vt(0,0,0)
  6224. end))
  6225. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6226. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6227. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6228. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6229. end
  6230. end))
  6231. attack = false
  6232. hum.WalkSpeed = storehumanoidWS
  6233. end
  6234.  
  6235. function InsaneDrop()
  6236. attack = true
  6237. hum.WalkSpeed = 0
  6238. CFuncs["Sound"].Create("rbxassetid://907329669", char, 2.5, 0.5)
  6239. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 0.5)
  6240. CFuncs["EchoSound"].Create("rbxassetid://907329669", char, 4, 1,0,10,0.15,0.5,1)
  6241. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.8)
  6242. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,1.9)
  6243. bosschatfunc("LEAVE THE DEATH WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  6244. local keptcolor = MAINRUINCOLOR
  6245. for i = 0,8,0.1 do
  6246. swait()
  6247. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6248. 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())
  6249. 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)
  6250. 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)
  6251. 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)
  6252. 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)
  6253. 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)
  6254. 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)
  6255. 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)
  6256. end
  6257. for i = 0, 99 do
  6258. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6259. 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)))
  6260. local at1 = Instance.new("Attachment",dis)
  6261. at1.Position = vt(-25000,0,0)
  6262. local at2 = Instance.new("Attachment",dis)
  6263. at2.Position = vt(25000,0,0)
  6264. local trl = Instance.new('Trail',dis)
  6265. trl.Attachment0 = at1
  6266. trl.FaceCamera = true
  6267. trl.Attachment1 = at2
  6268. trl.Texture = "rbxassetid://1049219073"
  6269. trl.LightEmission = 1
  6270. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6271. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6272. trl.Lifetime = 5
  6273. local bv = Instance.new("BodyVelocity")
  6274. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6275. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6276. bv.Parent = dis
  6277. game:GetService("Debris"):AddItem(dis, 5)
  6278. end
  6279. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6280. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6281. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6282. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6283. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6284. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6285. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6286. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6287. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6288. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6289. hum.CameraOffset = vt(0,0,0)
  6290. for i = 0, 24 do
  6291. 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())
  6292. end
  6293. local distam = 0
  6294. coroutine.resume(coroutine.create(function()
  6295. for i = 0, 99 do
  6296.     wait()
  6297. distam = distam + 1
  6298. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6299. xa.Anchored = true
  6300. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6301. game:GetService("Debris"):AddItem(xa, 5)
  6302. for i = 0, 4 do
  6303. 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())
  6304. end
  6305. coroutine.resume(coroutine.create(function()
  6306. local eff = Instance.new("ParticleEmitter",xa)
  6307. eff.Texture = "rbxassetid://2273224484"
  6308. eff.LightEmission = 1
  6309. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6310. eff.Rate = 500000
  6311. eff.Lifetime = NumberRange.new(1,3)
  6312. 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)})
  6313. 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)})
  6314. eff.Speed = NumberRange.new(50,500)
  6315. eff.Drag = 5
  6316. eff.Rotation = NumberRange.new(-500,500)
  6317. eff.VelocitySpread = 9000
  6318. eff.RotSpeed = NumberRange.new(-50,50)
  6319. wait(0.25)
  6320. eff.Enabled = false
  6321. end))
  6322. coroutine.resume(coroutine.create(function()
  6323. for i = 0, 19 do
  6324. swait()
  6325. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6326. end
  6327. hum.CameraOffset = vt(0,0,0)
  6328. end))
  6329. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6330. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6331. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6332. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6333. end
  6334. end))
  6335. attack = false
  6336. hum.WalkSpeed = storehumanoidWS
  6337. end
  6338.  
  6339. function FallenOrbs()
  6340. attack = true
  6341. hum.WalkSpeed = 2
  6342. local keptcolor = MAINRUINCOLOR
  6343. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  6344. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  6345. local radm = math.random(1,3)
  6346. if radm == 1 then
  6347. bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
  6348. elseif radm == 2 then
  6349. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6350. elseif radm == 3 then
  6351. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6352. end
  6353. coroutine.resume(coroutine.create(function()
  6354. for i = 0, 29 do
  6355. swait(2)
  6356. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6357. dis.Anchored = true
  6358. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6359. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6360. CreateMesh(dis,"Sphere",2,2,2)
  6361. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6362. 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"))
  6363. coroutine.resume(coroutine.create(function()
  6364. wait(0.5)
  6365. dis.Anchored = false
  6366. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6367. local at1 = Instance.new("Attachment",dis)
  6368. at1.Position = vt(-1,0,0)
  6369. local at2 = Instance.new("Attachment",dis)
  6370. at2.Position = vt(1,0,0)
  6371. local trl = Instance.new('Trail',dis)
  6372. trl.Attachment0 = at1
  6373. trl.FaceCamera = true
  6374. trl.Attachment1 = at2
  6375. trl.Texture = "rbxassetid://1049219073"
  6376. trl.LightEmission = 1
  6377. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6378. trl.Color = ColorSequence.new(dis.Color)
  6379. trl.Lifetime = 0.6
  6380. local a = Instance.new("Part",workspace)
  6381.     a.Name = "Direction"   
  6382.     a.Anchored = true
  6383.     a.BrickColor = bc("Bright red")
  6384. a.Material = "Neon"
  6385. a.Transparency = 1
  6386.     a.CanCollide = false
  6387.     local ray = Ray.new(
  6388.         dis.CFrame.p,                           -- origin
  6389.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6390.     )
  6391.     local ignore = dis
  6392.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6393.     a.BottomSurface = 10
  6394.     a.TopSurface = 10
  6395.     local distance = (dis.CFrame.p - position).magnitude
  6396.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  6397.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6398. dis.CFrame = a.CFrame
  6399. a:Destroy()
  6400. local bv = Instance.new("BodyVelocity")
  6401. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6402. bv.velocity = dis.CFrame.lookVector*500
  6403. bv.Parent = dis
  6404. game:GetService("Debris"):AddItem(dis, 5)
  6405. local hitted = false
  6406. coroutine.resume(coroutine.create(function()
  6407. dis.Touched:connect(function(hit)
  6408.     if hitted == false and hit.Parent ~= char then
  6409.     hitted = true
  6410.     CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6411.     MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6412.     sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6413.     sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6414.     coroutine.resume(coroutine.create(function()
  6415. for i = 0, 4 do
  6416. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6417. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6418. local at1 = Instance.new("Attachment",disr)
  6419. at1.Position = vt(-10,0,0)
  6420. local at2 = Instance.new("Attachment",disr)
  6421. at2.Position = vt(10,0,0)
  6422. local trl = Instance.new('Trail',disr)
  6423. trl.Attachment0 = at1
  6424. trl.FaceCamera = true
  6425. trl.Attachment1 = at2
  6426. trl.Texture = "rbxassetid://2342682798"
  6427. trl.LightEmission = 1
  6428. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6429. trl.Color = ColorSequence.new(disr.Color)
  6430. trl.Lifetime = 0.5
  6431. local bv = Instance.new("BodyVelocity")
  6432. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6433. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6434. bv.Parent = disr
  6435. local val = 0
  6436. coroutine.resume(coroutine.create(function()
  6437.     swait(30)
  6438.     for i = 0, 9 do
  6439.         swait()
  6440.         val = val + 0.1
  6441.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6442.     end
  6443. game:GetService("Debris"):AddItem(disr, 3)
  6444. end))
  6445. end
  6446. local eff = Instance.new("ParticleEmitter",dis)
  6447. eff.Texture = "rbxassetid://1049219073"
  6448. eff.LightEmission = 1
  6449. eff.Color = ColorSequence.new(dis.Color)
  6450. eff.Rate = 500000
  6451. eff.Lifetime = NumberRange.new(0.5,2)
  6452. 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)})
  6453. 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)})
  6454. eff.Speed = NumberRange.new(20,250)
  6455. eff.Drag = 5
  6456. eff.Rotation = NumberRange.new(-500,500)
  6457. eff.VelocitySpread = 9000
  6458. eff.RotSpeed = NumberRange.new(-50,50)
  6459. wait(0.5)
  6460. eff.Enabled = false
  6461. end))
  6462.     for i = 0, 4 do
  6463.         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"))
  6464.     end
  6465. coroutine.resume(coroutine.create(function()
  6466. for i = 0, 19 do
  6467. swait()
  6468. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6469. end
  6470. hum.CameraOffset = vt(0,0,0)
  6471. end))
  6472. dis.Anchored = true
  6473. dis.Transparency = 1
  6474. wait(8)
  6475. dis:Destroy()
  6476. end
  6477. end)
  6478. end))
  6479. end))
  6480. end
  6481. end))
  6482. for i = 0,9,0.1 do
  6483. swait()
  6484. 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)
  6485. 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)
  6486. 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)
  6487. 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)
  6488. 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)
  6489. 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)
  6490. 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)
  6491. end
  6492. attack = false
  6493. hum.WalkSpeed = storehumanoidWS
  6494. end
  6495.  
  6496. function CyberSlash()
  6497. local posit = -2
  6498. attack = true
  6499. hum.WalkSpeed = 5
  6500. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  6501. local radm = math.random(1,3)
  6502. if radm == 1 then
  6503. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  6504. elseif radm == 2 then
  6505. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  6506. elseif radm == 3 then
  6507. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  6508. end
  6509. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  6510.     for i = 0,2,0.1 do
  6511.         swait()
  6512. 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)
  6513.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  6514. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  6515. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6516. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  6517. 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)
  6518. 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)
  6519.     end
  6520. for i = 0, 2 do
  6521. CameraEnshaking(1,2)
  6522. local hite = Instance.new("Part", char)
  6523.         hite.Anchored = true
  6524.         hite.CanCollide = false
  6525.         hite.FormFactor = 3
  6526.         hite.Name = "Ring"
  6527.         hite.Material = "Neon"
  6528.         hite.Size = Vector3.new(1, 1, 1)
  6529.         hite.Transparency = 1
  6530.         hite.TopSurface = 0
  6531.         hite.BottomSurface = 0
  6532. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  6533. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  6534. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  6535. coroutine.resume(coroutine.create(function()
  6536. for i = 0, 1 do
  6537.     swait()
  6538.         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)
  6539.         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)
  6540.         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)
  6541. end
  6542. end))
  6543. 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)
  6544. MagniDamage(hite, 3, 30,40, 0, "Normal")
  6545. game:GetService("Debris"):AddItem(hite, 5)
  6546. posit = posit + 2
  6547. end
  6548.     for i = 0,1,0.1 do
  6549.         swait()
  6550. 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)
  6551.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  6552. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  6553. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  6554. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  6555. 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)
  6556. 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)
  6557.     end
  6558.     for i = 0,1,0.1 do
  6559.         swait()
  6560. 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)
  6561.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  6562. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  6563. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  6564. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  6565. 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)
  6566. 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)
  6567.     end
  6568.     posit = -6
  6569.     for i = 0, 6 do
  6570. CameraEnshaking(1,3)
  6571. local hite = Instance.new("Part", char)
  6572.         hite.Anchored = true
  6573.         hite.CanCollide = false
  6574.         hite.FormFactor = 3
  6575.         hite.Name = "Ring"
  6576.         hite.Material = "Neon"
  6577.         hite.Size = Vector3.new(1, 1, 1)
  6578.         hite.Transparency = 1
  6579.         hite.TopSurface = 0
  6580.         hite.BottomSurface = 0
  6581. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  6582. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  6583. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  6584. 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)
  6585. coroutine.resume(coroutine.create(function()
  6586. for i = 0, 2 do
  6587.     swait()
  6588.         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)
  6589.         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)
  6590.         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)
  6591. end
  6592. end))
  6593. MagniDamage(hite, 5, 40,70, 0, "Normal")
  6594. game:GetService("Debris"):AddItem(hite, 5)
  6595. posit = posit + 2
  6596.     end
  6597.     for i = 0,1,0.1 do
  6598.         swait()
  6599. 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)
  6600.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  6601. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  6602. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  6603. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  6604. 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)
  6605. 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)
  6606.     end
  6607.     hum.WalkSpeed = storehumanoidWS
  6608. attack = false
  6609. end
  6610.  
  6611. function EquinoxOrbs()
  6612. hum.WalkSpeed = 0
  6613. attack = true
  6614. local radm = math.random(1,3)
  6615. if radm == 1 then
  6616. bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
  6617. elseif radm == 2 then
  6618. bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
  6619. elseif radm == 3 then
  6620. bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
  6621. end
  6622. for i = 0,1,0.1 do
  6623. swait()
  6624.     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)
  6625. 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)
  6626. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6627. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6628. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6629. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6630. end
  6631. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6632. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6633. for i = 0, 24 do
  6634.         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"))
  6635. end
  6636. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6637. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6638. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6639. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6640. for i = 0,4,0.1 do
  6641. swait()
  6642. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6643. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6644. CreateMesh(dis,"Sphere",1,1,1)
  6645. dis.Anchored = true
  6646. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6647. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6648. CreateMesh(dis2,"Sphere",1,1,1)
  6649. dis2.Anchored = true
  6650. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6651. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6652. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6653. coroutine.resume(coroutine.create(function()
  6654.     swait(60)
  6655.     dis.Transparency = 1
  6656.     dis2.Transparency = 1
  6657. coroutine.resume(coroutine.create(function()
  6658. for i = 0, 19 do
  6659. swait()
  6660. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6661. end
  6662. hum.CameraOffset = vt(0,0,0)
  6663. end))
  6664. coroutine.resume(coroutine.create(function()
  6665. local eff = Instance.new("ParticleEmitter",dis)
  6666. eff.Texture = "rbxassetid://2273224484"
  6667. eff.LightEmission = 1
  6668. eff.Color = ColorSequence.new(dis.Color)
  6669. eff.Rate = 500000
  6670. eff.Lifetime = NumberRange.new(0.5,2)
  6671. 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)})
  6672. 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)})
  6673. eff.Speed = NumberRange.new(50,450)
  6674. eff.Drag = 5
  6675. eff.Rotation = NumberRange.new(-500,500)
  6676. eff.VelocitySpread = 9000
  6677. eff.RotSpeed = NumberRange.new(-50,50)
  6678. local eff2 = eff:Clone()
  6679. eff2.Parent = dis2
  6680. eff2.LightEmission = 0
  6681. eff2.Color = ColorSequence.new(dis2.Color)
  6682. wait(0.25)
  6683. eff.Enabled = false
  6684. eff2.Enabled = false
  6685. end))
  6686. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6687. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6688.     for i = 0, 2 do
  6689.         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)
  6690.         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)
  6691.     end
  6692.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6693.     CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6694.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6695.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6696.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6697.     CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6698.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6699.     sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6700. end))
  6701. game:GetService("Debris"):AddItem(dis, 5)
  6702. game:GetService("Debris"):AddItem(dis2, 5)
  6703. 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)
  6704. 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)
  6705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6707. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6708. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6709. end
  6710. attack = false
  6711. hum.WalkSpeed = storehumanoidWS
  6712. end
  6713. function FallenDEMISE()
  6714. attack = true
  6715. hum.WalkSpeed = 0
  6716. local keptcolor = MAINRUINCOLOR
  6717. bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6718. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6719. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6720. for i = 0, 15, 0.1 do
  6721. swait()
  6722. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6723. 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)))
  6724. local at1 = Instance.new("Attachment",dis)
  6725. at1.Position = vt(-25000,0,0)
  6726. local at2 = Instance.new("Attachment",dis)
  6727. at2.Position = vt(25000,0,0)
  6728. local trl = Instance.new('Trail',dis)
  6729. trl.Attachment0 = at1
  6730. trl.FaceCamera = true
  6731. trl.Attachment1 = at2
  6732. trl.Texture = "rbxassetid://1049219073"
  6733. trl.LightEmission = 1
  6734. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6735. trl.Color = ColorSequence.new(dis.Color)
  6736. trl.Lifetime = 5
  6737. local bv = Instance.new("BodyVelocity")
  6738. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6739. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6740. bv.Parent = dis
  6741. game:GetService("Debris"):AddItem(dis, 1)
  6742. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6743. 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"))
  6744. 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"))
  6745. 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)
  6746. 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)
  6747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6749. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6750. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6751. end
  6752. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6753. for i = 0, 30, 0.1 do
  6754. swait()
  6755. coroutine.resume(coroutine.create(function()
  6756. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6757. if v:FindFirstChild('Head') then
  6758. dmg(v)
  6759. end
  6760. end
  6761. end))
  6762. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6763. 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)))
  6764. local at1 = Instance.new("Attachment",dis)
  6765. at1.Position = vt(-50000,0,0)
  6766. local at2 = Instance.new("Attachment",dis)
  6767. at2.Position = vt(50000,0,0)
  6768. local trl = Instance.new('Trail',dis)
  6769. trl.Attachment0 = at1
  6770. trl.FaceCamera = true
  6771. trl.Attachment1 = at2
  6772. trl.Texture = "rbxassetid://1049219073"
  6773. trl.LightEmission = 1
  6774. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6775. trl.Color = ColorSequence.new(dis.Color)
  6776. trl.Lifetime = 10
  6777. local bv = Instance.new("BodyVelocity")
  6778. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6779. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6780. bv.Parent = dis
  6781. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6782. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6783. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6784. 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"))
  6785. 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"))
  6786. 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"))
  6787. 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"))
  6788. for i = 0, 2 do
  6789. 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)
  6790. end
  6791. 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)
  6792. 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)
  6793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6795. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6796. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6797. end
  6798. attack = false
  6799. hum.WalkSpeed = storehumanoidWS
  6800. end
  6801.  
  6802. function SpeedDrop()
  6803. attack = true
  6804. hum.WalkSpeed = 0
  6805. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  6806. local poste = 3
  6807. local rotation = 0
  6808. local rate = 0
  6809. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  6810. for i = 0, 124 do
  6811. swait()
  6812. rotation = rotation + rate
  6813. poste = poste + 0.1
  6814. rate = rate + 0.1
  6815. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  6816. 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)
  6817. 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)
  6818. 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)
  6819. 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)
  6820. 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)
  6821. 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)
  6822. 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)
  6823. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  6824. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  6825. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  6826. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  6827. end
  6828. CameraEnshaking(3,7)
  6829. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  6830. local loc = Instance.new("Part", char)
  6831. loc.BrickColor = MAINRUINCOLOR
  6832. loc.CanCollide = false
  6833. loc.FormFactor = 3
  6834. loc.Name = "Ring"
  6835. loc.Material = "Neon"
  6836. loc.Size = Vector3.new(1, 1, 1)
  6837. loc.Transparency = 1
  6838. loc.TopSurface = 0
  6839. loc.BottomSurface = 0
  6840. loc.Anchored = true
  6841. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  6842. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  6843. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  6844. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  6845. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  6846. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6847. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6848. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  6849. coroutine.resume(coroutine.create(function()
  6850. local eff = Instance.new("ParticleEmitter",loc)
  6851. eff.Texture = "rbxassetid://363275192"
  6852. eff.LightEmission = 0.95
  6853. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6854. eff.Rate = 10000
  6855. eff.Lifetime = NumberRange.new(1)
  6856. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  6857. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6858. eff.Speed = NumberRange.new(100,500)
  6859. eff.Drag = 5
  6860. eff.Rotation = NumberRange.new(-500,500)
  6861. eff.VelocitySpread = 9000
  6862. eff.RotSpeed = NumberRange.new(-50,50)
  6863. wait(0.5)
  6864. eff.Enabled = false
  6865. end))
  6866. for i = 0, 49 do
  6867. 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)
  6868. end
  6869. for i = 0, 9 do
  6870. 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)
  6871. end
  6872. game:GetService("Debris"):AddItem(loc, 5)
  6873. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  6874. hum.WalkSpeed = storehumanoidWS
  6875. attack = false
  6876. end
  6877.  
  6878. function cutesigh()
  6879. attack = true
  6880. hum.WalkSpeed = 0
  6881. bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
  6882. local blush = Instance.new("Decal",hed)
  6883. blush.Texture = "rbxassetid://898404027"
  6884. blush.Face = "Front"
  6885. CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
  6886. for i = 0, 9, 0.1 do
  6887. swait()
  6888. 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)
  6889. 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)
  6890. 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)
  6891. 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)
  6892. 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)
  6893. 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)
  6894. end
  6895. coroutine.resume(coroutine.create(function()
  6896. for i = 0, 49 do
  6897. swait()
  6898. blush.Transparency = blush.Transparency + 0.02
  6899. end
  6900. blush:Destroy()
  6901. end))
  6902. hum.WalkSpeed = storehumanoidWS
  6903. attack = false
  6904. end
  6905.  
  6906. function smiter()
  6907. local targetted = nil
  6908. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6909. targetted = mouse.Target.Parent
  6910. end
  6911. if targetted ~= nil then
  6912. RootPart.CFrame = FaceMouse()[1]
  6913. attack = true
  6914. local radm = math.random(1,3)
  6915. if radm == 1 then
  6916. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  6917. elseif radm == 2 then
  6918. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  6919. elseif radm == 3 then
  6920. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  6921. end
  6922. hum.WalkSpeed = 0
  6923. coroutine.resume(coroutine.create(function()
  6924. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  6925. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  6926. local vel = Instance.new("BodyPosition", targetted.Head)
  6927. vel.P = 12500
  6928. vel.D = 1000
  6929. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6930. vel.position = targetted.Head.CFrame.p
  6931. end))
  6932. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  6933. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  6934. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  6935.     for i = 0,4,0.1 do
  6936.         swait()
  6937. 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)
  6938.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  6939. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  6940. 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)
  6941. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  6942. 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)
  6943. 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)
  6944.     end
  6945. coroutine.resume(coroutine.create(function()
  6946. CameraEnshaking(6,5)
  6947. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  6948. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  6949. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  6950. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  6951. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6952. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  6953. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6954. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  6955. coroutine.resume(coroutine.create(function()
  6956. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6957. eff.Texture = "rbxassetid://2273224484"
  6958. eff.LightEmission = 1
  6959. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6960. eff.Rate = 500000
  6961. eff.Lifetime = NumberRange.new(0.5,2)
  6962. 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)})
  6963. 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)})
  6964. eff.Speed = NumberRange.new(20,250)
  6965. eff.Drag = 5
  6966. eff.Rotation = NumberRange.new(-500,500)
  6967. eff.VelocitySpread = 9000
  6968. eff.RotSpeed = NumberRange.new(-50,50)
  6969. wait(0.25)
  6970. eff.Enabled = false
  6971. local eff = Instance.new("ParticleEmitter",targetted.Head)
  6972. eff.Texture = "rbxassetid://363275192"
  6973. eff.LightEmission = 0.95
  6974. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6975. eff.Rate = 10000
  6976. eff.Lifetime = NumberRange.new(1.5)
  6977. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  6978. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6979. eff.Speed = NumberRange.new(25,150)
  6980. eff.Drag = 5
  6981. eff.Rotation = NumberRange.new(-500,500)
  6982. eff.VelocitySpread = 9000
  6983. eff.RotSpeed = NumberRange.new(-50,50)
  6984. local eff2 = eff:Clone()
  6985. eff2.Parent = targetted.Head
  6986. eff2.Texture = "rbxassetid://284205403"
  6987. eff2.Rate = 10000
  6988. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6989. eff2.Drag = 5
  6990. eff2.Rotation = NumberRange.new(-500,500)
  6991. eff2.VelocitySpread = 9000
  6992. wait(0.5)
  6993. eff2.Enabled = false
  6994. eff.Enabled = false
  6995. end))
  6996. for i = 0, 9 do
  6997. 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)
  6998. end
  6999. for i = 0, 49 do
  7000. local rsiz = math.random(10,50)
  7001. 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)
  7002. end
  7003. game:GetService("Debris"):AddItem(vel,1)
  7004. dmg(targetted)
  7005. end))
  7006.     for i = 0,1,0.1 do
  7007.         swait()
  7008.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  7009. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  7010. 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)
  7011. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  7012. 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)
  7013. 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)
  7014.     end
  7015. attack = false
  7016. hum.WalkSpeed = storehumanoidWS
  7017. end
  7018. end
  7019.  
  7020. function shytaunty()
  7021. attack = true
  7022. hum.WalkSpeed = 0
  7023. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  7024. local blush = Instance.new("Decal",hed)
  7025. blush.Texture = "rbxassetid://898404027"
  7026. blush.Face = "Front"
  7027. for i = 0, 13, 0.1 do
  7028. swait()
  7029. 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)
  7030. 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)
  7031. 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)
  7032. 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)
  7033. 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)
  7034. 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)
  7035. end
  7036. coroutine.resume(coroutine.create(function()
  7037. for i = 0, 49 do
  7038. swait()
  7039. blush.Transparency = blush.Transparency + 0.02
  7040. end
  7041. blush:Destroy()
  7042. end))
  7043. hum.WalkSpeed = storehumanoidWS
  7044. attack = false
  7045. end
  7046.  
  7047. function PureBomb()
  7048. attack = true
  7049. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  7050. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  7051. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  7052. local orb = Instance.new("Part", char)
  7053.         orb.Anchored = true
  7054.         orb.BrickColor = BrickColor.new("Toothpaste")
  7055.         orb.CanCollide = false
  7056.         orb.FormFactor = 3
  7057.         orb.Name = "Ring"
  7058.         orb.Material = "Neon"
  7059.         orb.Size = Vector3.new(1, 1, 1)
  7060.         orb.Transparency = 0
  7061.         orb.TopSurface = 0
  7062.         orb.BottomSurface = 0
  7063.         local orbm = Instance.new("SpecialMesh", orb)
  7064.         orbm.MeshType = "Sphere"
  7065. orbm.Name = "SizeMesh"
  7066. orbm.Scale = vt(0,0,0)
  7067. local scaled = 0.1
  7068. local posid = 0
  7069. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  7070. for i = 0, 5, 0.1 do
  7071. swait()
  7072. scaled = scaled - 0.001
  7073. posid = posid - scaled
  7074. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7075. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7076. 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)
  7077. 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)
  7078. 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)
  7079. 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)
  7080. 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)
  7081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  7083. 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)
  7084. end
  7085. for i = 0, 2, 0.1 do
  7086. swait()
  7087. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  7088. 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)
  7089. 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)
  7090. 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)
  7091. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  7092. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  7093. 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)
  7094. end
  7095. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  7096. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  7097. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  7098. coroutine.resume(coroutine.create(function()
  7099. orb.Anchored = false
  7100. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  7101.     local a = Instance.new("Part",workspace)
  7102.     a.Name = "Direction"   
  7103.     a.Anchored = true
  7104.     a.BrickColor = bc("Bright red")
  7105. a.Material = "Neon"
  7106. a.Transparency = 1
  7107.     a.CanCollide = false
  7108.     local ray = Ray.new(
  7109.         orb.CFrame.p,                           -- origin
  7110.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7111.     )
  7112.     local ignore = orb
  7113.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7114.     a.BottomSurface = 10
  7115.     a.TopSurface = 10
  7116.     local distance = (orb.CFrame.p - position).magnitude
  7117.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  7118.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7119. orb.CFrame = a.CFrame
  7120. a:Destroy()
  7121. local bv = Instance.new("BodyVelocity")
  7122. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7123. bv.velocity = orb.CFrame.lookVector*125
  7124. bv.Parent = orb
  7125. local hitted = false
  7126. game:GetService("Debris"):AddItem(orb, 15)
  7127. wait()
  7128. local hit =orb.Touched:connect(function(hit)
  7129.     if hitted == false then
  7130.     hitted = true
  7131. CameraEnshaking(10,2.5)
  7132.     MagniDamage(orb, 65, 65,90, 0, "Normal")
  7133. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  7134. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  7135. for i = 0, 49 do
  7136. 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)
  7137. end
  7138. local eff = Instance.new("ParticleEmitter",orb)
  7139. eff.Texture = "rbxassetid://2273224484"
  7140. eff.LightEmission = 1
  7141. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  7142. eff.Rate = 500000
  7143. eff.Lifetime = NumberRange.new(0.5,2)
  7144. 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)})
  7145. 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)})
  7146. eff.Speed = NumberRange.new(20,250)
  7147. eff.Drag = 5
  7148. eff.Rotation = NumberRange.new(-500,500)
  7149. eff.VelocitySpread = 9000
  7150. eff.RotSpeed = NumberRange.new(-50,50)
  7151. coroutine.resume(coroutine.create(function()
  7152. wait(0.25)
  7153. eff.Enabled = false
  7154. end))
  7155. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7156. for i = 0, 9 do
  7157. 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)
  7158. 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)
  7159. end
  7160. orb.Anchored = true
  7161. orb.Transparency = 1
  7162. local eff = Instance.new("ParticleEmitter",orb)
  7163. eff.Texture = "rbxassetid://2273224484"
  7164. eff.LightEmission = 1
  7165. eff.Color = ColorSequence.new(Color3.new(M))
  7166. eff.Rate = 500000
  7167. eff.Lifetime = NumberRange.new(0.5,2)
  7168. 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)})
  7169. 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)})
  7170. eff.Speed = NumberRange.new(20,250)
  7171. eff.Drag = 5
  7172. eff.Rotation = NumberRange.new(-500,500)
  7173. eff.VelocitySpread = 9000
  7174. eff.RotSpeed = NumberRange.new(-50,50)
  7175. coroutine.resume(coroutine.create(function()
  7176. wait(1)
  7177. eff.Enabled = false
  7178. end))
  7179. wait(8)
  7180. orb:Destroy()
  7181. end
  7182. end)
  7183. end))
  7184. for i = 0, 1, 0.1 do
  7185. swait()
  7186. 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)
  7187. 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)
  7188. 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)
  7189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  7190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  7191. 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)
  7192. end
  7193. attack = false
  7194. end
  7195.  
  7196.  
  7197. function BeamOfDeath()
  7198. coroutine.resume(coroutine.create(function()
  7199. attack = true
  7200. hum.WalkSpeed = 0
  7201. for i = 0, 11, 0.1 do
  7202. swait()
  7203. 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)
  7204. 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)
  7205. 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)
  7206. 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)
  7207. 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)
  7208. 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)
  7209. end
  7210. for i = 0, 1, 0.1 do
  7211. swait()
  7212. 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)
  7213. 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)
  7214. 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)
  7215. 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)
  7216. 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)
  7217. 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)
  7218. end
  7219. hum.WalkSpeed = storehumanoidWS
  7220. attack = false
  7221. end))
  7222. CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
  7223. local radm = math.random(1,3)
  7224. if radm == 1 then
  7225. bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
  7226. elseif radm == 2 then
  7227. bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
  7228. elseif radm == 3 then
  7229. bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
  7230. end
  7231. local keptcolor = MAINRUINCOLOR
  7232. local orb = Instance.new("Part", char)
  7233.         orb.BrickColor = keptcolor
  7234.         orb.CanCollide = false
  7235.         orb.FormFactor = 3
  7236.         orb.Name = "Ring"
  7237.         orb.Material = "Neon"
  7238.         orb.Size = Vector3.new(1, 1, 1)
  7239.         orb.Transparency = 1
  7240.         orb.TopSurface = 0
  7241.         orb.BottomSurface = 0
  7242.         local orbm = Instance.new("SpecialMesh", orb)
  7243.         orbm.MeshType = "Sphere"
  7244. orbm.Name = "SizeMesh"
  7245. orbm.Scale = vt(22.5,10000,22.5)
  7246. orb.CFrame = mouse.Hit
  7247. orb.Anchored = true
  7248. orb.Orientation = vt(0,0,0)
  7249. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  7250. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
  7251. coroutine.resume(coroutine.create(function()
  7252. coroutine.resume(coroutine.create(function()
  7253. for i = 0, 175 do
  7254. swait()
  7255. orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
  7256. orb.Transparency = orb.Transparency - 0.005
  7257. end
  7258. end))
  7259. wait(2)
  7260. coroutine.resume(coroutine.create(function()
  7261. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  7262. if hfr ~= nil then
  7263.     for i = 0, 24.5 do
  7264. local deb = Instance.new("Part", char)
  7265. deb.Anchored = true
  7266. deb.CanCollide = false
  7267. deb.FormFactor = 3
  7268. deb.Name = "Ring"
  7269. deb.Material = hitfloor.Material
  7270. deb.Color = hitfloor.Color
  7271. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  7272. deb.Transparency = 0
  7273. deb.TopSurface = 0
  7274. deb.BottomSurface = 0
  7275. 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)))
  7276. local deb2 = Instance.new("Part", char)
  7277. deb2.CanCollide = false
  7278. deb2.FormFactor = 3
  7279. deb2.Name = "Ring"
  7280. deb2.Material = hitfloor.Material
  7281. deb2.Color = hitfloor.Color
  7282. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  7283. deb2.Transparency = 0
  7284. deb2.TopSurface = 0
  7285. deb2.BottomSurface = 0
  7286. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  7287. 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)))
  7288. local eff = Instance.new("ParticleEmitter",deb)
  7289. eff.Texture = "rbxassetid://363275192"
  7290. eff.LightEmission = 0.95
  7291. eff.Color = ColorSequence.new(keptcolor.Color)
  7292. eff.Rate = 100
  7293. eff.Lifetime = NumberRange.new(1)
  7294. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  7295. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7296. eff.Speed = NumberRange.new(0,5)
  7297. eff.Rotation = NumberRange.new(-500,500)
  7298. eff.VelocitySpread = 9000
  7299. eff.RotSpeed = NumberRange.new(-10,10)
  7300. local at1 = Instance.new('Attachment',deb2)
  7301. at1.Position = vt(0,15,0)
  7302. local at2 = Instance.new('Attachment',deb2)
  7303. at2.Position = vt(0,-15,0)
  7304. local tl = Instance.new('Trail',deb2)
  7305. tl.Attachment0 = at1
  7306. tl.Attachment1 = at2
  7307. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7308. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  7309. tl.Lifetime = 1
  7310. game:GetService("Debris"):AddItem(deb,30)
  7311. game:GetService("Debris"):AddItem(deb2,30)
  7312. coroutine.resume(coroutine.create(function()
  7313.     wait(15)
  7314. eff.Enabled = false
  7315.     for i = 0, 49 do
  7316.         swait()
  7317.         deb.Transparency = deb.Transparency + 0.02
  7318.     end
  7319. wait(1)
  7320.     deb:Destroy()
  7321. end))
  7322. end
  7323. end
  7324. end))
  7325. for i = 0, 199 do
  7326. swait(1.5)
  7327. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  7328. if v:FindFirstChild('Head') then
  7329. dmg(v)
  7330. end
  7331. end
  7332. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  7333. 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)
  7334. 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)
  7335. 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)
  7336. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  7337. end
  7338. orb:Destroy()
  7339. end))
  7340. end
  7341.  
  7342. function Beams()
  7343. attack = true
  7344. hum.WalkSpeed = 0
  7345. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  7346. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  7347. bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
  7348. local keptcolor = MAINRUINCOLOR
  7349. coroutine.resume(coroutine.create(function()
  7350. for i = 0, 96 do
  7351. swait(5)
  7352. local orb = Instance.new("Part", char)
  7353. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  7354.         orb.BrickColor = keptcolor
  7355.         orb.CanCollide = false
  7356.         orb.FormFactor = 3
  7357.         orb.Name = "Ring"
  7358.         orb.Material = "Neon"
  7359.         orb.Size = Vector3.new(1, 1, 1)
  7360.         orb.Transparency = 0
  7361.         orb.TopSurface = 0
  7362.         orb.BottomSurface = 0
  7363. orb.Anchored = true
  7364.         local orbm = Instance.new("SpecialMesh", orb)
  7365.         orbm.MeshType = "Sphere"
  7366. orbm.Name = "SizeMesh"
  7367. orbm.Scale = vt(1.25,1.25,1.25)
  7368. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  7369. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7370. coroutine.resume(coroutine.create(function()
  7371. wait(0.5)
  7372. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  7373. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7374. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  7375. orb.Transparency = 1
  7376.     local a = Instance.new("Part",char)
  7377.     a.Name = "Direction"   
  7378.     a.Anchored = true
  7379.     a.BrickColor = keptcolor
  7380. a.Material = "Neon"
  7381. a.Transparency = 0.25
  7382. a.Shape = "Cylinder"
  7383.     local ht = Instance.new("Part",char)
  7384.     ht.Name = "DirectionHit"   
  7385.     ht.Anchored = true
  7386.     ht.BrickColor = keptcolor
  7387. ht.CanCollide = false
  7388. ht.Transparency = 1
  7389. ht.Size = vt(0.1,0.1,0.1)
  7390. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  7391.     a.CanCollide = false
  7392.     local ray = Ray.new(
  7393.         orb.CFrame.p,                           -- origin
  7394.         (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  7395.     )
  7396.     local ignore = char
  7397.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7398.     a.BottomSurface = 10
  7399.     a.TopSurface = 10
  7400.     local distance = (orb.CFrame.p - position).magnitude
  7401.     a.Size = Vector3.new(distance,1,1)
  7402.     a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7403.     ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7404. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7405. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  7406. MagniDamage(ht, 9, 30,60, 0, "Normal")
  7407. coroutine.resume(coroutine.create(function()
  7408. local eff = Instance.new("ParticleEmitter",ht)
  7409. eff.Texture = "rbxassetid://284205403"
  7410. eff.LightEmission = 0.95
  7411. eff.Color = ColorSequence.new(keptcolor.Color)
  7412. eff.Rate = 500
  7413. eff.Lifetime = NumberRange.new(0.5)
  7414. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  7415. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  7416. eff.Speed = NumberRange.new(10,50)
  7417. eff.Drag = 5
  7418. eff.Rotation = NumberRange.new(-500,500)
  7419. eff.VelocitySpread = 9000
  7420. eff.RotSpeed = NumberRange.new(-500,500)
  7421. wait(0.25)
  7422. eff.Enabled = false
  7423. end))
  7424. for i = 0, 4 do
  7425. 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)
  7426. 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)
  7427. local rsiz = math.random(10,30)
  7428. 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)
  7429. end
  7430. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7431. local msh = Instance.new("SpecialMesh",a)
  7432. msh.MeshType = "Cylinder"
  7433. msh.Scale = vt(1,1,1)
  7434. for i = 0, 49 do
  7435. swait()
  7436. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  7437. a.Transparency = a.Transparency + 0.02
  7438. end
  7439. orb:Destroy()
  7440. a:Destroy()
  7441. ht:Destroy()
  7442. end))
  7443. game:GetService("Debris"):AddItem(orb, 10)
  7444. end
  7445. end))
  7446.     for i = 0,6,0.1 do
  7447.         swait()
  7448. 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)
  7449.             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)
  7450. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  7451. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  7452. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  7453. 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)
  7454. 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)
  7455.     end
  7456. hum.WalkSpeed = storehumanoidWS
  7457. attack = false
  7458. end
  7459.  
  7460. function CalamityTrans()
  7461. attack = true
  7462. rainbowmode = false
  7463. chaosmode = false
  7464.                ModeOfGlitch = 8889
  7465. hum.WalkSpeed = 0
  7466. newThemeCust("rbxassetid://723652641",0,1,1.25)
  7467. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7468. elocacenter.Anchored = true
  7469. elocacenter.CFrame = root.CFrame
  7470. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7471. eloca1.Anchored = true
  7472. eloca1.CFrame = elocacenter.CFrame
  7473. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7474. eloca2.Anchored = true
  7475. eloca2.CFrame = elocacenter.CFrame
  7476. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7477. eloca3.Anchored = true
  7478. eloca3.CFrame = elocacenter.CFrame
  7479. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7480. eloca4.Anchored = true
  7481. eloca4.CFrame = elocacenter.CFrame
  7482. local lookavec = 0
  7483. local speeds = 0
  7484. CameraEnshaking(3,2.5)
  7485. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7486. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7487. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7488. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7489. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7490. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7491. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7492. for i = 0, 5, 0.1 do
  7493. swait()
  7494. ---
  7495. lookavec = lookavec + 1
  7496. speeds = speeds + 10
  7497. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7498. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7499. 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)
  7500. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7501. 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)
  7502. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7503. 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)
  7504. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7505. 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)
  7506. ---
  7507. 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)
  7508. 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)
  7509. 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)
  7510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7511. 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)
  7512. 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)
  7513. end
  7514. for i = 0, 5, 0.1 do
  7515. swait()
  7516. ---
  7517. speeds = speeds + 10
  7518. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7519. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7520. 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)
  7521. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7522. 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)
  7523. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7524. 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)
  7525. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7526. 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)
  7527. ---
  7528. 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)
  7529. 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)
  7530. 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)
  7531. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7532. 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)
  7533. 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)
  7534. end
  7535. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7536. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7537. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7538. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7539. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7540. CameraEnshaking(1,3)
  7541. for i = 0, 24 do
  7542. 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)
  7543. 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)
  7544. 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)
  7545. 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)
  7546. end
  7547. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7548. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7549. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7550. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7551. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7552. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7553. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7554. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7555. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7556. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7557. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7558. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7559. for i = 0, 5, 0.1 do
  7560. swait()
  7561. ---
  7562. lookavec = lookavec - 1
  7563. speeds = speeds + 10
  7564. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7565. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7566. 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)
  7567. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7568. 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)
  7569. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7570. 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)
  7571. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7572. 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)
  7573. ---
  7574. 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)
  7575. 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)
  7576. 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)
  7577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7578. 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)
  7579. 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)
  7580. end
  7581. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7582. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7583. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7584. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7585. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7586. for i = 0, 49 do
  7587. 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)
  7588. 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)
  7589. end
  7590. CameraEnshaking(5,6)
  7591. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7592. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7593. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7594. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7595. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7596. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7597. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7598. storehumanoidWS = 100
  7599. hum.WalkSpeed = 100
  7600. rainbowmode = false
  7601. chaosmode = false
  7602. tl1.Enabled = true
  7603. tl2.Enabled = true
  7604. tl3.Enabled = true
  7605. RecolorTextAndRename("Galactical Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
  7606. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7607. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7608. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7609. for i, v in pairs(mw2:GetChildren()) do
  7610. if v:IsA("Part") then
  7611. v.BrickColor = MAINRUINCOLOR
  7612. v.Material = "Neon"
  7613. end
  7614. end
  7615. for i, v in pairs(mw1:GetChildren()) do
  7616. if v:IsA("Part") then
  7617. v.Transparency = 0
  7618. v.BrickColor = MAINRUINCOLOR
  7619. v.Material = "Neon"
  7620. end
  7621. end
  7622. for i, v in pairs(m:GetChildren()) do
  7623. if v:IsA("Part") then
  7624. v.Color = Color3.new(0.5,0,1)
  7625. v.Material = "Neon"
  7626. end
  7627. end
  7628. for i, v in pairs(m2:GetChildren()) do
  7629. if v:IsA("Part") then
  7630. v.Color = Color3.new(0.25,0,1)
  7631. v.Material = "Neon"
  7632. end
  7633. end
  7634. for i, v in pairs(m3:GetChildren()) do
  7635. if v:IsA("Part") then
  7636. v.Color = Color3.new(0.45,0,1)
  7637. v.Material = "Neon"
  7638. end
  7639. end
  7640. for i, v in pairs(extrawingmod1:GetChildren()) do
  7641. if v:IsA("Part") then
  7642. v.Transparency = 0.75
  7643. v.Color = Color3.new(0.25,0,1)
  7644. v.Material = "Neon"
  7645. end
  7646. end
  7647. for i, v in pairs(extrawingmod2:GetChildren()) do
  7648. if v:IsA("Part") then
  7649. v.Transparency = 0.75
  7650. v.Color = Color3.new(0.5,0,1)
  7651. v.Material = "Neon"
  7652. end
  7653. end
  7654. attack = false
  7655. end
  7656.  
  7657. function InsaneTrans()
  7658. attack = true
  7659. rainbowmode = false
  7660. chaosmode = false
  7661.                ModeOfGlitch = 8889
  7662. hum.WalkSpeed = 0
  7663. newThemeCust("rbxassetid://723652641",1,1,10)
  7664. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  7665. elocacenter.Anchored = true
  7666. elocacenter.CFrame = root.CFrame
  7667. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7668. eloca1.Anchored = true
  7669. eloca1.CFrame = elocacenter.CFrame
  7670. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7671. eloca2.Anchored = true
  7672. eloca2.CFrame = elocacenter.CFrame
  7673. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7674. eloca3.Anchored = true
  7675. eloca3.CFrame = elocacenter.CFrame
  7676. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  7677. eloca4.Anchored = true
  7678. eloca4.CFrame = elocacenter.CFrame
  7679. local lookavec = 0
  7680. local speeds = 0
  7681. CameraEnshaking(3,2.5)
  7682. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7683. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7684. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7685. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7686. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  7687. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7688. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  7689. for i = 0, 5, 0.1 do
  7690. swait()
  7691. ---
  7692. lookavec = lookavec + 1
  7693. speeds = speeds + 10
  7694. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7695. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7696. 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)
  7697. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7698. 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)
  7699. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7700. 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)
  7701. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7702. 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)
  7703. ---
  7704. 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)
  7705. 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)
  7706. 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)
  7707. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7708. 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)
  7709. 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)
  7710. end
  7711. for i = 0, 5, 0.1 do
  7712. swait()
  7713. ---
  7714. speeds = speeds + 10
  7715. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7716. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7717. 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)
  7718. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7719. 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)
  7720. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7721. 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)
  7722. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7723. 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)
  7724. ---
  7725. 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)
  7726. 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)
  7727. 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)
  7728. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7729. 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)
  7730. 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)
  7731. end
  7732. MAINRUINCOLOR = BrickColor.new("Really black")
  7733. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  7734. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  7735. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  7736. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  7737. CameraEnshaking(1,3)
  7738. for i = 0, 24 do
  7739. 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)
  7740. 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)
  7741. 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)
  7742. 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)
  7743. end
  7744. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7745. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7746. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7747. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7748. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7749. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7750. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7751. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7752. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7753. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7754. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7755. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7756. for i = 0, 5, 0.1 do
  7757. swait()
  7758. ---
  7759. lookavec = lookavec - 1
  7760. speeds = speeds + 10
  7761. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7762. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7763. 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)
  7764. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7765. 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)
  7766. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7767. 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)
  7768. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7769. 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)
  7770. ---
  7771. 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)
  7772. 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)
  7773. 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)
  7774. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7775. 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)
  7776. 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)
  7777. end
  7778. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7779. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7780. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7781. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7782. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7783. for i = 0, 49 do
  7784. 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)
  7785. 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)
  7786. end
  7787. CameraEnshaking(5,6)
  7788. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  7789. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  7790. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  7791. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  7792. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  7793. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  7794. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  7795. storehumanoidWS = 100
  7796. hum.WalkSpeed = 100
  7797. rainbowmode = false
  7798. chaosmode = false
  7799. tl1.Enabled = true
  7800. tl2.Enabled = true
  7801. tl3.Enabled = true
  7802. RecolorTextAndRename("The Insane Guest",Color3.new(170,0,0),Color3.new(0,0,0),"Antique")
  7803. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7804. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7805. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7806. for i, v in pairs(mw2:GetChildren()) do
  7807. if v:IsA("Part") then
  7808. v.BrickColor = MAINRUINCOLOR
  7809. v.Material = "Neon"
  7810. end
  7811. end
  7812. for i, v in pairs(mw1:GetChildren()) do
  7813. if v:IsA("Part") then
  7814. v.Transparency = 0
  7815. v.BrickColor = MAINRUINCOLOR
  7816. v.Material = "Neon"
  7817. end
  7818. end
  7819. for i, v in pairs(m:GetChildren()) do
  7820. if v:IsA("Part") then
  7821. v.Color = Color3.new(170,0,0)
  7822. v.Material = "Neon"
  7823. end
  7824. end
  7825. for i, v in pairs(m2:GetChildren()) do
  7826. if v:IsA("Part") then
  7827. v.Color = Color3.new(0,0,0)
  7828. v.Material = "Neon"
  7829. end
  7830. end
  7831. for i, v in pairs(m3:GetChildren()) do
  7832. if v:IsA("Part") then
  7833. v.Color = Color3.new(0,0,0)
  7834. v.Material = "Neon"
  7835. end
  7836. end
  7837. for i, v in pairs(extrawingmod1:GetChildren()) do
  7838. if v:IsA("Part") then
  7839. v.Transparency = 0.75
  7840. v.Color = Color3.new(0,0,0)
  7841. v.Material = "Neon"
  7842. end
  7843. end
  7844. for i, v in pairs(extrawingmod2:GetChildren()) do
  7845. if v:IsA("Part") then
  7846. v.Transparency = 0.75
  7847. v.Color = Color3.new(0,0,0)
  7848. v.Material = "Neon"
  7849. end
  7850. end
  7851. attack = false
  7852. end
  7853.  
  7854. function GleamingBeam()
  7855. attack = true
  7856. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7857. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7858. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7859. local rsiz = math.random(1,15)
  7860.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7861.     hb.Anchored = true
  7862.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7863.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7864.     for i = 0, 16, 0.1 do
  7865.         swait()
  7866. rsiz = math.random(5,15)
  7867. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7868. 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)
  7869. 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)
  7870. 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)
  7871. 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)
  7872. 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)
  7873. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7874. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7875. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7876.     end
  7877.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7878.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7879. for i = 0, 2 do
  7880.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7881. end
  7882. 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)
  7883. 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)
  7884. 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)
  7885. for i = 0, 49 do
  7886. local rsiza = math.random(1,15)
  7887. 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) 
  7888. end
  7889. local a = Instance.new("Part",Character)
  7890.     a.Name = "Direction"   
  7891.     a.Anchored = true
  7892.     a.BrickColor = MAINRUINCOLOR
  7893. a.Material = "Neon"
  7894. a.Transparency = 0
  7895. a.Shape = "Cylinder"
  7896.     a.CanCollide = false
  7897. local ba = Instance.new("Part",Character)
  7898.     ba.Name = "HitDirect"  
  7899.     ba.Anchored = true
  7900.     ba.BrickColor = bc("Cool yellow")
  7901. ba.Material = "Neon"
  7902. ba.Transparency = 1
  7903.     ba.CanCollide = false
  7904.     local ray = Ray.new(
  7905.         hb.CFrame.p,                           -- origin
  7906.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7907.     )
  7908.     local ignore = Character
  7909.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7910.     a.BottomSurface = 10
  7911.     a.TopSurface = 10
  7912.     local distance = (hb.CFrame.p - position).magnitude
  7913.     a.Size = Vector3.new(distance, 1, 1)
  7914.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7915. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7916. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7917. local msh = Instance.new("SpecialMesh",a)
  7918. msh.MeshType = "Cylinder"
  7919. msh.Scale = vt(1,4,4)
  7920. game:GetService("Debris"):AddItem(a, 30)
  7921. game:GetService("Debris"):AddItem(ba, 30)
  7922.     for i = 0, 25, 0.1 do
  7923.         swait()
  7924. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7925. ray = Ray.new(
  7926.         hb.CFrame.p,                           -- origin
  7927.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7928.     )
  7929. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7930. distance = (hb.CFrame.p - position).magnitude
  7931.     a.Size = Vector3.new(distance, 1, 1)
  7932.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7933. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7934. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7935. rsiz = math.random(5,25)
  7936.     MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7937. 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)
  7938. for c = 0, 2 do
  7939. 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)
  7940. end
  7941. 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)
  7942. 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)
  7943. 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)
  7944. 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)
  7945. 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)
  7946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7947. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7948. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7949.     end
  7950.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7951.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7952.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7953.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7954.     MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7955. 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)
  7956. 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)
  7957. 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)
  7958. 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)
  7959. 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)
  7960. 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)
  7961. for i = 0, 49 do
  7962. local rsiza = math.random(1,15)
  7963. 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) 
  7964. end
  7965. for i = 0, 49 do
  7966. rsiz = math.random(1,8)
  7967. 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)
  7968. end
  7969. coroutine.resume(coroutine.create(function()
  7970. for i = 0, 99 do
  7971. swait()
  7972. a.Transparency = a.Transparency + 0.01
  7973. end
  7974. a:Destroy()
  7975. ba:Destroy()
  7976. end))
  7977. hb:Destroy()
  7978. attack = false
  7979. end
  7980.  
  7981. function DualGleamingBeam()
  7982. attack = true
  7983. hum.WalkSpeed = 0
  7984. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7985. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7986. local radm = math.random(1,3)
  7987. if radm == 1 then
  7988. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7989. elseif radm == 2 then
  7990. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7991. elseif radm == 3 then
  7992. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7993. end
  7994. local rsiz = math.random(1,15)
  7995.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7996.     hb.Anchored = true
  7997.     hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7998.     local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7999.     hb2.Anchored = true
  8000.     hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8001.     CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  8002.     for i = 0, 14, 0.1 do
  8003.         swait()
  8004. rsiz = math.random(5,15)
  8005. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8006. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8007. 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)
  8008. 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)
  8009. 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)
  8010. 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"))
  8011. 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)
  8012. 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)
  8013. 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)
  8014. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  8015. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  8016. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  8017.     end
  8018.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  8019.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  8020.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  8021.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  8022.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  8023.     CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  8024. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8025. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8026. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  8027. 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"))
  8028. 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"))
  8029. 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"))
  8030. for i = 0, 49 do
  8031. local rsiza = math.random(1,15)
  8032. 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)  
  8033. 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)
  8034. end
  8035. local a = Instance.new("Part",Character)
  8036.     a.Name = "Direction"   
  8037.     a.Anchored = true
  8038.     a.BrickColor = MAINRUINCOLOR
  8039. a.Material = "Neon"
  8040. a.Transparency = 0
  8041. a.Shape = "Cylinder"
  8042.     a.CanCollide = false
  8043. local a2 = Instance.new("Part",Character)
  8044.     a2.Name = "Direction"  
  8045.     a2.Anchored = true
  8046.     a2.BrickColor = MAINRUINCOLOR
  8047. a2.Material = "Neon"
  8048. a2.Transparency = 0
  8049. a2.Shape = "Cylinder"
  8050.     a2.CanCollide = false
  8051. local ba = Instance.new("Part",Character)
  8052.     ba.Name = "HitDirect"  
  8053.     ba.Anchored = true
  8054.     ba.BrickColor = MAINRUINCOLOR
  8055. ba.Material = "Neon"
  8056. ba.Transparency = 1
  8057.     ba.CanCollide = false
  8058. local ba2 = Instance.new("Part",Character)
  8059.     ba2.Name = "HitDirect" 
  8060.     ba2.Anchored = true
  8061.     ba2.BrickColor = MAINRUINCOLOR
  8062. ba2.Material = "Neon"
  8063. ba2.Transparency = 1
  8064.     ba2.CanCollide = false
  8065.     local ray = Ray.new(
  8066.         hb.CFrame.p,                           -- origin
  8067.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8068.     )
  8069.     local ignore = Character
  8070.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8071.     local ray2 = Ray.new(
  8072.         hb2.CFrame.p,                           -- origin
  8073.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8074.     )
  8075.     local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8076.     local distance2 = (hb2.CFrame.p - position).magnitude
  8077.  
  8078.     a.BottomSurface = 10
  8079.     a.TopSurface = 10
  8080.     local distance = (hb.CFrame.p - position).magnitude
  8081.     a.Size = Vector3.new(distance, 1, 1)
  8082.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8083.     a2.BottomSurface = 10
  8084.     a2.TopSurface = 10
  8085.     a2.Size = Vector3.new(distance2, 1, 1)
  8086.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8087. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8088. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8089. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8090. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8091. local msh = Instance.new("SpecialMesh",a)
  8092. msh.MeshType = "Cylinder"
  8093. msh.Scale = vt(1,4,4)
  8094. local msh2 = Instance.new("SpecialMesh",a2)
  8095. msh2.MeshType = "Cylinder"
  8096. msh2.Scale = vt(1,4,4)
  8097. game:GetService("Debris"):AddItem(a, 30)
  8098. game:GetService("Debris"):AddItem(a2, 30)
  8099. game:GetService("Debris"):AddItem(ba, 30)
  8100. game:GetService("Debris"):AddItem(ba2, 30)
  8101.     for i = 0, 20, 0.1 do
  8102.         swait()
  8103. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  8104. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  8105. ray = Ray.new(
  8106.         hb.CFrame.p,                           -- origin
  8107.         (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  8108.     )
  8109. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8110. distance = (hb.CFrame.p - position).magnitude
  8111. ray2 = Ray.new(
  8112.         hb2.CFrame.p,                           -- origin
  8113.         (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  8114.     )
  8115. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  8116. distance2 = (hb2.CFrame.p - position).magnitude
  8117.     a.Size = Vector3.new(distance, 1, 1)
  8118.     a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8119.     a2.Size = Vector3.new(distance2, 1, 1)
  8120.     a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  8121. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8122. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  8123. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8124. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  8125. rsiz = math.random(5,25)
  8126.     MagniDamage(ba, 12, 800,18000, 0, "Normal")
  8127.     MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  8128. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  8129. if v:FindFirstChild('Head') then
  8130. dmg(v)
  8131. end
  8132. end
  8133. coroutine.resume(coroutine.create(function()
  8134. local bx = Instance.new("Part",Character)
  8135. bx.Name = "Location"   
  8136. bx.Anchored = true
  8137. bx.BrickColor = MAINRUINCOLOR
  8138. bx.Material = "Neon"
  8139. bx.Transparency = 1
  8140. bx.CanCollide = false
  8141. bx.Position = ba.Position
  8142. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  8143. wait(math.random(1,2))
  8144. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  8145. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  8146. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  8147.     CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  8148.     CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  8149.     MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  8150. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  8151. if v:FindFirstChild('Head') then
  8152. dmg(v)
  8153. end
  8154. end
  8155. wait(5)
  8156. bx:Destroy()
  8157. end))
  8158. 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)
  8159. 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)
  8160. for c = 0, 2 do
  8161. 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)
  8162. end
  8163. 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)
  8164. 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)
  8165. 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)
  8166. 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)
  8167. 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)
  8168. 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)
  8169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  8170. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  8171. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  8172.     end
  8173. for i = 0, 1 do
  8174.     CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  8175.     CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  8176.     CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  8177.     CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  8178. end
  8179.     MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  8180.     MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  8181. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  8182. if v:FindFirstChild('Head') then
  8183. dmg(v)
  8184. end
  8185. end
  8186. 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)
  8187. 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)
  8188. 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)
  8189. 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)
  8190. 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)
  8191. 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)
  8192. 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"))
  8193. 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"))
  8194. 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"))
  8195. for i = 0, 49 do
  8196. local rsiza = math.random(1,15)
  8197. 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)
  8198. 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)  
  8199. end
  8200. for i = 0, 49 do
  8201. rsiz = math.random(1,8)
  8202. 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)
  8203. end
  8204. coroutine.resume(coroutine.create(function()
  8205. for i = 0, 99 do
  8206. swait()
  8207. a.Transparency = a.Transparency + 0.01
  8208. a2.Transparency = a2.Transparency + 0.01
  8209. end
  8210. a:Destroy()
  8211. ba:Destroy()
  8212. a2:Destroy()
  8213. ba2:Destroy()
  8214. end))
  8215. hum.WalkSpeed = storehumanoidWS
  8216. hb:Destroy()
  8217. hb2:Destroy()
  8218. attack = false
  8219. end
  8220.  
  8221. function dragin()
  8222. local targetted = nil
  8223. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8224. targetted = mouse.Target.Parent
  8225. end
  8226. if targetted ~= nil then
  8227. RootPart.CFrame = FaceMouse()[1]
  8228. attack = true
  8229. hum.WalkSpeed = 0
  8230. for x = 0, 1 do
  8231. for i = 0,1,0.5 do
  8232. swait()
  8233. 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)
  8234. 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)
  8235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  8236. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8237. 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)
  8238. 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)
  8239. end
  8240. for i = 0,1,0.5 do
  8241. swait()
  8242. 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)
  8243. 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)
  8244. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  8245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8246. 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)
  8247. 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)
  8248. end
  8249. for i = 0,1,0.5 do
  8250. swait()
  8251. 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)
  8252. 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)
  8253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  8254. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8255. 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)
  8256. 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)
  8257. end
  8258. for i = 0,1,0.5 do
  8259. swait()
  8260. 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)
  8261. 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)
  8262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  8263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  8264. 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)
  8265. 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)
  8266. end
  8267. end
  8268. coroutine.resume(coroutine.create(function()
  8269. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  8270. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  8271. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  8272. end))
  8273. local A1 = Instance.new("Attachment",targetted.Head)
  8274. local A2 = Instance.new("Attachment",sorb)
  8275. local Beem = Instance.new("Beam",tors)
  8276. Beem.Attachment0 = A1
  8277. Beem.Attachment1 = A2
  8278. Beem.Texture = "rbxassetid://897585362"
  8279. Beem.LightEmission = 0.75
  8280. Beem.FaceCamera = true
  8281. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  8282. Beem.Width0 = 1
  8283. Beem.Width1 = 1
  8284. Beem.TextureMode = "Wrap"
  8285. Beem.TextureLength = 1
  8286. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8287. 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)
  8288. 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)
  8289. for x = 0, 24 do
  8290. local rsiz = math.random(5,15)
  8291. 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)
  8292. end
  8293.  
  8294. CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
  8295. CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
  8296. local radm = math.random(1,2)
  8297. if radm == 1 then
  8298. bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
  8299. elseif radm == 2 then
  8300. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  8301. end
  8302. for i = 0,3,0.1 do
  8303. swait()
  8304. coroutine.resume(coroutine.create(function()
  8305. local rsiz = math.random(5,15)
  8306. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8307. 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)
  8308. end))
  8309. 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)
  8310. 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)
  8311. 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)
  8312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  8313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  8314. 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)
  8315. 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)
  8316. end
  8317. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  8318. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  8319. local vel = Instance.new("BodyPosition", targetted.Head)
  8320. vel.P = 12500
  8321. vel.D = 1000
  8322. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8323. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  8324. for i = 0,4,0.1 do
  8325. swait()
  8326. coroutine.resume(coroutine.create(function()
  8327. local rsiz = math.random(5,15)
  8328. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  8329. 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)
  8330. end))
  8331. 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)
  8332. 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)
  8333. 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)
  8334. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  8335. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  8336. 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)
  8337. 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)
  8338. end
  8339. local visibility = 0
  8340. coroutine.resume(coroutine.create(function()
  8341. for i = 0, 49 do
  8342. swait()
  8343. visibility = visibility + 0.02
  8344. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  8345. end
  8346. Beem:Destroy()
  8347. A1:Destroy()
  8348. A2:Destroy()
  8349. end))
  8350. game:GetService("Debris"):AddItem(vel,0.75)
  8351. attack = false
  8352. hum.WalkSpeed = storehumanoidWS
  8353.  
  8354. end
  8355. end
  8356.  
  8357. function hugg()
  8358. attack = true
  8359. hum.WalkSpeed = 5
  8360. local rsiz = math.random(5,15)
  8361. for i = 0, 2, 0.1 do
  8362. swait()
  8363. 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)
  8364. 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)
  8365. 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)
  8366. 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)
  8367. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8368. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8369. end
  8370. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8371.     local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8372.     hb.Anchored = true
  8373.     hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8374. local huggedperson = nil
  8375. local act = false
  8376. local alreadydid = false
  8377. for i = 0, 3, 0.1 do
  8378. swait()
  8379. if act == false then
  8380. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8381. if v:FindFirstChild('Head') then
  8382. if alreadydid == false then
  8383. huggedperson = v
  8384. hum.WalkSpeed = 0
  8385. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8386. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8387. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8388. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8389. local radm = math.random(1,3)
  8390. if radm == 1 then
  8391. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8392. elseif radm == 2 then
  8393. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8394. elseif radm == 3 then
  8395. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8396. end
  8397. root.Anchored = true
  8398. coroutine.resume(coroutine.create(function()
  8399. huggedperson.Humanoid.WalkSpeed = 0
  8400. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8401. end))
  8402. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8403. alreadydid = true
  8404. act = true
  8405. print(huggedperson.Name)
  8406. end
  8407. end
  8408. end
  8409. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8410. 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)
  8411. elseif act == true then
  8412. coroutine.resume(coroutine.create(function()
  8413. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8414. end))
  8415. rsiz = math.random(5,15)
  8416. 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)
  8417. 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)
  8418. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8419. end
  8420. 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)
  8421. 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)
  8422. 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)
  8423. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8424. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8425. end
  8426. hb:Destroy()
  8427. if act == true then
  8428. for x = 0, 2 do
  8429. for i = 0, 2, 0.1 do
  8430. swait()
  8431. coroutine.resume(coroutine.create(function()
  8432. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8433. end))
  8434. rsiz = math.random(5,15)
  8435. 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)
  8436. 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)
  8437. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8438. 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)
  8439. 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)
  8440. 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)
  8441. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8442. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8443. end
  8444. for i = 0, 2, 0.1 do
  8445. swait()
  8446. coroutine.resume(coroutine.create(function()
  8447. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8448. end))
  8449. rsiz = math.random(5,15)
  8450. 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)
  8451. 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)
  8452. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8453. 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)
  8454. 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)
  8455. 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)
  8456. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8457. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8458. end
  8459. end
  8460. end
  8461. hum.WalkSpeed = storehumanoidWS
  8462. root.Anchored = false
  8463. if act == true then
  8464. coroutine.resume(coroutine.create(function()
  8465. huggedperson.Humanoid.WalkSpeed = 16
  8466. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8467. end))
  8468. end
  8469. hum.WalkSpeed = storehumanoidWS
  8470. attack = false
  8471. end
  8472.  
  8473. function Counter()
  8474.     hum.WalkSpeed = 0
  8475. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  8476. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  8477. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  8478.     attack = true
  8479.     for i = 0,1,0.1 do
  8480.         swait()
  8481.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8482. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8483. 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)
  8484. 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)
  8485. 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)
  8486. 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)
  8487.     end
  8488. CameraEnshaking(3,4)
  8489. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  8490. 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)
  8491. 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)
  8492. 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)
  8493. coroutine.resume(coroutine.create(function()
  8494. local eff = Instance.new("ParticleEmitter",root)
  8495. eff.Texture = "rbxassetid://363275192"
  8496. eff.LightEmission = 0.95
  8497. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8498. eff.Rate = 10000
  8499. eff.Lifetime = NumberRange.new(1)
  8500. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  8501. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8502. eff.Speed = NumberRange.new(10,125)
  8503. eff.Drag = 5
  8504. eff.Rotation = NumberRange.new(-500,500)
  8505. eff.VelocitySpread = 9000
  8506. eff.RotSpeed = NumberRange.new(-50,50)
  8507. local eff2 = eff:Clone()
  8508. eff2.Parent = root
  8509. eff2.Texture = "rbxassetid://284205403"
  8510. eff2.Rate = 10000
  8511. 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)})
  8512. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  8513. eff2.Drag = 5
  8514. eff2.Speed = NumberRange.new(10,50)
  8515. eff2.Rotation = NumberRange.new(-500,500)
  8516. eff2.VelocitySpread = 9000
  8517. wait(0.25)
  8518. eff2.Enabled = false
  8519. eff.Enabled = false
  8520. wait(3)
  8521. eff2:Destroy()
  8522. eff:Destroy()
  8523. end))
  8524. for i = 0, 9 do
  8525. 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)
  8526. end
  8527. for i = 0, 24 do
  8528. local rsiz = math.random(5,20)
  8529. 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)
  8530. end
  8531. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8532. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8533. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8534.     for i = 0,2,0.1 do
  8535.         swait()
  8536.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8537. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8538. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8539. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8540. 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)
  8541. 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)
  8542.     end
  8543.     hum.WalkSpeed = storehumanoidWS
  8544. attack = false
  8545. end
  8546.  
  8547. function superjump()
  8548. attack = true
  8549. hum.WalkSpeed = 0
  8550. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  8551. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  8552. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  8553. for i = 0, 2, 0.1 do
  8554.         swait()
  8555. root.Velocity = vt(0,0,0)
  8556. 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"))
  8557. 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)
  8558. 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)
  8559. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  8560. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  8561. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  8562. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  8563. end
  8564. MagniDamage(root, 28, 25,50, 25, "Normal")
  8565. CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
  8566. hum.Jump = true
  8567. swait()
  8568. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  8569. 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)
  8570. 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)
  8571. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  8572. for i = 0, 3, 0.1 do
  8573.         swait()
  8574. 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)
  8575. 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)
  8576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  8577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  8578. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  8579. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  8580. end
  8581. attack = false
  8582. if equipped == false then
  8583. hum.WalkSpeed = 16
  8584. else
  8585. hum.WalkSpeed = 24
  8586. end
  8587. end
  8588.  
  8589.  
  8590. -------------------------------------
  8591.  
  8592.  
  8593.  
  8594. Humanoid.Animator.Parent = nil
  8595.  
  8596.  
  8597.  
  8598. -------------------------------------
  8599.  
  8600. local attacktype = 1
  8601. mouse.Button1Down:connect(function()
  8602.   if attack == false and attacktype == 1 then
  8603.     attacktype = 2
  8604.     attackone()
  8605.   elseif attack == false and attacktype == 2 then
  8606.     attacktype = 3
  8607.     attacktwo()
  8608.   elseif attack == false and attacktype == 3 then
  8609.     attacktype = 1
  8610.     attackthree()
  8611.   elseif attack == false and attacktype == 4 then
  8612.     attacktype = 1
  8613.     --attackfour()
  8614.   end
  8615. end)
  8616. mouse.KeyDown:connect(function(k)
  8617. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  8618. --normalmog()
  8619. ModeOfGlitch = 1
  8620. storehumanoidWS = 16
  8621. hum.WalkSpeed = 16
  8622. rainbowmode = false
  8623. chaosmode = false
  8624. newTheme("rbxassetid://407749940",48.6,1,0.85)
  8625. RecolorTextAndRename("Murder Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8626. MAINRUINCOLOR = BrickColor.new("Really red")
  8627. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8628. end
  8629. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  8630. ModeOfGlitch = 2
  8631. storehumanoidWS = 16
  8632. hum.WalkSpeed = 16
  8633. rainbowmode = false
  8634. chaosmode = false
  8635. RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  8636. newTheme("rbxassetid://1539245059",0,1,0.85)
  8637. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  8638. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8639. end
  8640. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  8641.                ModeOfGlitch = 3
  8642. storehumanoidWS = 14
  8643. hum.WalkSpeed = 14
  8644. rainbowmode = false
  8645. chaosmode = false
  8646. RecolorTextAndRename("Starber Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  8647. newTheme("rbxassetid://262402387",58.15,0.98,1)
  8648. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8649. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8650. end
  8651. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  8652.                ModeOfGlitch = 4
  8653. storehumanoidWS = 14
  8654. hum.WalkSpeed = 14
  8655. rainbowmode = false
  8656. chaosmode = true
  8657. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),Color3.new(1,1,1),"Antique")
  8658. newTheme("rbxassetid://2203914587",10,1.01,0.85)
  8659. MAINRUINCOLOR = BrickColor.new("Crimson")
  8660. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8661. end
  8662. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  8663.                ModeOfGlitch = 5
  8664. storehumanoidWS = 14
  8665. hum.WalkSpeed = 14
  8666. rainbowmode = false
  8667. chaosmode = false
  8668. RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  8669. newTheme("rbxassetid://661079869",0,1.02,0.85)
  8670. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8671. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8672. end
  8673. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  8674.                ModeOfGlitch = 6
  8675. storehumanoidWS = 65
  8676. hum.WalkSpeed = 65
  8677. rainbowmode = false
  8678. chaosmode = false
  8679. RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  8680. newTheme("rbxassetid://1347011178",0,1.01,0.85)
  8681. MAINRUINCOLOR = BrickColor.new("White")
  8682. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8683. end
  8684. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  8685.                ModeOfGlitch = 8
  8686. storehumanoidWS = 100
  8687. hum.WalkSpeed = 100
  8688. rainbowmode = false
  8689. chaosmode = false
  8690. RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  8691. newTheme("rbxassetid://919231299",0,1.01,0.85)
  8692. MAINRUINCOLOR = BrickColor.new("Alder")
  8693. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8694. end
  8695. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  8696.                ModeOfGlitch = 9
  8697. storehumanoidWS = 85
  8698. hum.WalkSpeed = 85
  8699. rainbowmode = false
  8700. chaosmode = false
  8701. RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  8702. newTheme("rbxassetid://1812212957",0,1.01,0.85)
  8703. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  8704. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8705. end
  8706. if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
  8707.                ModeOfGlitch = 5555
  8708. storehumanoidWS = 30
  8709. hum.WalkSpeed = 30
  8710. rainbowmode = false
  8711. chaosmode = false
  8712. RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
  8713. newTheme("rbxassetid://736003449",0,1,1.25)
  8714. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8715. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8716. end
  8717. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  8718. CalamityTrans()
  8719. end
  8720. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 8889 then
  8721. InsaneTrans()
  8722. end
  8723. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  8724.                ModeOfGlitch = 55469696922
  8725. storehumanoidWS = 95
  8726. hum.WalkSpeed = 95
  8727. rainbowmode = false
  8728. chaosmode = false
  8729. RecolorTextAndRename("Pandora",BrickColor.new("White").Color,BrickColor.new("Lavender").Color,"Code")
  8730. newTheme("rbxassetid://1382488262",0,1,1.25)
  8731. MAINRUINCOLOR = BrickColor.new("Lavender")
  8732. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  8733. end
  8734. if k == "k" and attack == false and ModeOfGlitch ~= 999 then
  8735.                ModeOfGlitch = 999
  8736. storehumanoidWS = 34
  8737. hum.WalkSpeed = 34
  8738. rainbowmode = false
  8739. chaosmode = false
  8740. CRAZED = false
  8741. RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  8742. newTheme("rbxassetid://2234873423",0,1.005,0.9)
  8743. MAINRUINCOLOR = BrickColor.new("Hot pink")
  8744. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8745. end
  8746. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  8747.                ModeOfGlitch = 4367677813
  8748. storehumanoidWS = 75
  8749. hum.WalkSpeed = 75
  8750. rainbowmode = false
  8751. chaosmode = false
  8752. RecolorTextAndRename("S.H.D Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  8753. newTheme("rbxassetid://363284685",0,1.01,0.95)
  8754. MAINRUINCOLOR = BrickColor.new("Baby blue")
  8755. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8756. end
  8757. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  8758.                ModeOfGlitch = 9999999921111
  8759. storehumanoidWS = 145
  8760. hum.WalkSpeed = 145
  8761. rainbowmode = false
  8762. chaosmode = false
  8763. RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  8764. newTheme("rbxassetid://643309199",0,1.01,1)
  8765. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  8766. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8767. end
  8768. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  8769.                ModeOfGlitch = 999999999556
  8770. storehumanoidWS = 115
  8771. hum.WalkSpeed = 115
  8772. rainbowmode = false
  8773. chaosmode = false
  8774. RecolorTextAndRename("Crazy Game",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  8775. newTheme("rbxassetid://719008519",0,1.02,0.85)
  8776. MAINRUINCOLOR = BrickColor.new("Navy blue")
  8777. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8778. end
  8779. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
  8780.                ModeOfGlitch = 12
  8781. storehumanoidWS = 19
  8782. hum.WalkSpeed = 19
  8783. rainbowmode = false
  8784. chaosmode = false
  8785. print'Mode was meant for Vengeful Program or those other fans out there'
  8786. RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
  8787. newTheme("rbxassetid://1873219898",0,1,1.7)
  8788. MAINRUINCOLOR = BrickColor.new("Royal purple")
  8789. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8790. end
  8791.  
  8792. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
  8793. sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
  8794. for i = 0, 49 do
  8795. 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)
  8796. end
  8797. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8798. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8799. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8800. hum.WalkSpeed = storehumanoidWS
  8801. attack = false
  8802.     ModeOfGlitch = 50
  8803. storehumanoidWS = 18
  8804. hum.WalkSpeed = 18
  8805. rainbowmode = false
  8806. chaosmode = false
  8807. RecolorTextAndRename("EnBelived",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
  8808. newTheme("rbxassetid://435773595",0,1.01,1.5)
  8809. MAINRUINCOLOR = BrickColor.new("Institutional white")
  8810. RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8811. end
  8812.  
  8813. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  8814.     hum.WalkSpeed = 0
  8815.     attack = true
  8816.     for i = 0,1,0.1 do
  8817.         swait()
  8818.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8820. 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)
  8821. 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)
  8822. 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)
  8823. 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)
  8824.     end
  8825. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8826. for i = 0, 148 do
  8827. 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)
  8828. end
  8829. for i = 0,3,0.1 do
  8830. 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)
  8831. end
  8832. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8833. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8834. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8835.     hum.WalkSpeed = storehumanoidWS
  8836. attack = false
  8837.     ModeOfGlitch = 66
  8838. storehumanoidWS = 16
  8839. hum.WalkSpeed = 16
  8840. rainbowmode = false
  8841. chaosmode = false
  8842. newTheme("rbxassetid://"..ast[Mrandom(1,2)],0,1,1.35)
  8843. MAINRUINCOLOR = BrickColor.new("Really black")
  8844. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8845.     for i = 0,2,0.1 do
  8846.         swait()
  8847. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8848. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8850. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8851. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  8852. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  8853.     end
  8854. end
  8855.  
  8856. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
  8857.     hum.WalkSpeed = 0
  8858.     attack = true
  8859.     for i = 0,1,0.1 do
  8860.         swait()
  8861.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  8862. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  8863. 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)
  8864. 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)
  8865. 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)
  8866. 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)
  8867.     end
  8868. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8869. for i = 0, 49 do
  8870. 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)
  8871. end
  8872. for i = 0,3,0.1 do
  8873. 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)
  8874. end
  8875. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  8876. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  8877. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  8878.     hum.WalkSpeed = storehumanoidWS
  8879. attack = false
  8880.     ModeOfGlitch = 13
  8881. storehumanoidWS = 45
  8882. hum.WalkSpeed = 45
  8883. rainbowmode = false
  8884. chaosmode = false
  8885. RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
  8886. newTheme("rbxassetid://190845741",0,1,1.35)
  8887. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  8888. RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8889.     for i = 0,2,0.1 do
  8890.         swait()
  8891. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8892. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8893. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8894. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8895. 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)
  8896. 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)
  8897.     end
  8898. end
  8899. if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
  8900.                ModeOfGlitch = 1002
  8901. storehumanoidWS = 45
  8902. hum.WalkSpeed = 45
  8903. rainbowmode = false
  8904. chaosmode = false
  8905. RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
  8906. newTheme("rbxassetid://2027652726",0,1,0.85)
  8907. MAINRUINCOLOR = BrickColor.new("Dark blue")
  8908. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8909. end
  8910. if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
  8911.                ModeOfGlitch = 1003
  8912. storehumanoidWS = 90
  8913. hum.WalkSpeed = 90
  8914. rainbowmode = false
  8915. chaosmode = false
  8916. RecolorTextAndRename("A.s.c.e.n.d.e.d G.u.e.s.t",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
  8917. newTheme("rbxassetid://257453119",0,1,0.85)
  8918. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  8919. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8920. end
  8921. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  8922.                ModeOfGlitch = 1264532489
  8923. storehumanoidWS = 175
  8924. hum.WalkSpeed = 175
  8925. rainbowmode = false
  8926. chaosmode = false
  8927. RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  8928. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  8929. MAINRUINCOLOR = BrickColor.new("Pastel green")
  8930. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  8931. end
  8932. if k == "l" and mutedtog == false then
  8933. mutedtog = true
  8934. kan.Volume = 0.85
  8935. elseif k == "l" and mutedtog == true then
  8936. mutedtog = false
  8937. kan.Volume = 0.85
  8938. end
  8939. if k == "p" and toggleTag == false then
  8940. toggleTag = true
  8941. modet.TextTransparency = 0
  8942. modet.TextStrokeTransparency = 0
  8943. elseif k == "p" and toggleTag == true then
  8944. toggleTag = false
  8945. modet.TextTransparency = 1
  8946. modet.TextStrokeTransparency = 1
  8947. end
  8948. if k == "z" and attack == false and ModeOfGlitch == 1 then
  8949. ExtinctiveHeartbreak()
  8950. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  8951. HeavenlyDisk()
  8952. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  8953. DualGleamingBeam()
  8954. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  8955. BanishingOrb()
  8956. elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
  8957. hugg()
  8958. elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
  8959. cutesigh()
  8960. elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
  8961. Counter()
  8962. elseif k == "v" and attack == false and ModeOfGlitch == 12 then
  8963. superjump()
  8964. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  8965. dragin()
  8966. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  8967. UniversalCollapse()
  8968. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  8969. PureBomb()
  8970. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  8971. Beams()
  8972. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  8973. BeamOfDeath()
  8974. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  8975. THE_TRUE_POWER_OF_VIOLENCE()
  8976. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  8977. GleamingBeam()
  8978. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  8979. ViolentRing()
  8980. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  8981. CorruptionEvent()
  8982. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  8983. CorruptBlink()
  8984. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  8985. scattercorrupt()
  8986. elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
  8987. shytaunty()
  8988. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  8989. RapidBurst()
  8990. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  8991. InsaneDrop()
  8992. wait(2)
  8993. ChaosEND()
  8994. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  8995. ChaosEND()
  8996. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  8997. CyberSlash()
  8998. elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
  8999. smiter()
  9000. elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
  9001. SpeedDrop()
  9002. elseif k == "v" and attack == false and ModeOfGlitch == 5 then
  9003. --DivineLights()
  9004. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9005. DivineBlast()
  9006. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9007. EquinoxOrbs()
  9008. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9009. yinyangi()
  9010. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9011. FallenOrbs()
  9012. elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
  9013. StarfallEX()
  9014. end
  9015. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9016. FallenDEMISE()
  9017. end
  9018. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9019. EndGROUND()
  9020. end
  9021. end)
  9022.  
  9023. coroutine.resume(coroutine.create(function()
  9024. while true do
  9025. swait()
  9026. 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
  9027. 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)
  9028. end
  9029. if ModeOfGlitch == 5555 then
  9030. 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)
  9031. end
  9032. end
  9033. end))
  9034. --[[coroutine.resume(coroutine.create(function()
  9035. while true do
  9036. swait(2)
  9037. if chaosmode == true then
  9038. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9039. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9040. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9041. RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9042. for i, v in pairs(mw1:GetChildren()) do
  9043. if v:IsA("Part") then
  9044. v.Transparency = 0.75
  9045. v.BrickColor = BrickColor.random()
  9046. v.Material = "Neon"
  9047. end
  9048. end
  9049. for i, v in pairs(m2:GetChildren()) do
  9050. if v:IsA("Part") then
  9051. v.BrickColor = BrickColor.random()
  9052. v.Material = "Neon"
  9053. end
  9054. end
  9055. end
  9056. end
  9057. end))]]
  9058.  
  9059.  
  9060.  
  9061. ff = Instance.new("ForceField",char)
  9062. ff.Visible = false
  9063. hum.Name = "Base"
  9064. hum.MaxHealth = 1.0E298
  9065. hum.Health = 1.0E298
  9066. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  9067.   if hum.Health > 0.1 and hum.Health < 1.0E298 then
  9068.     hum.MaxHealth = 1.0E298
  9069.     hum.Health = 1.0E298
  9070.   end
  9071. end)
  9072.  
  9073. local Hair = Instance.new("Part", char)
  9074. Hair.Name = "Hair"
  9075. Hair.CanCollide = false
  9076. Hair.BrickColor = BrickColor.new("Institutional white")
  9077. Hair.Transparency = 0
  9078. Hair.Material = "Plastic"
  9079. Hair.Size = Vector3.new(1, 1, 2)
  9080. Hair.TopSurface = Enum.SurfaceType.Smooth
  9081. Hair.BottomSurface = Enum.SurfaceType.Smooth
  9082.  
  9083.  
  9084. local bguis = Instance.new("BillboardGui",tors)
  9085. bguis.Size = UDim2.new(25, 0, 25, 0)
  9086. local imgca = Instance.new("ImageLabel",bguis)
  9087. imgca.BackgroundTransparency = 1
  9088. imgca.ImageTransparency = 1
  9089. imgca.Size = UDim2.new(1,0,1,0)
  9090. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9091. imgca.ImageColor3 = Color3.new(0,0,0)
  9092.  
  9093.  
  9094. local bguis2 = Instance.new("BillboardGui",tors)
  9095. bguis2.Size = UDim2.new(25, 0, 25, 0)
  9096. local imgca2 = Instance.new("ImageLabel",bguis)
  9097. imgca2.BackgroundTransparency = 1
  9098. imgca2.ImageTransparency = 1
  9099. imgca2.Size = UDim2.new(1,0,1,0)
  9100. imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
  9101. imgca2.ImageColor3 = Color3.new(0,0,0)
  9102.  
  9103.  
  9104.  
  9105. idleanim=.4
  9106. while true do
  9107. if mutedtog == false then
  9108. kan.Volume = currentVol
  9109. elseif mutedtog == true then
  9110. kan.Volume = 0
  9111. end
  9112. kan.PlaybackSpeed = currentPitch
  9113. kan.Pitch = currentPitch
  9114. kan.SoundId = currentThemePlaying
  9115. kan.Looped = true
  9116. kan.Parent = char
  9117. kan:Resume()
  9118. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
  9119. imgca.ImageTransparency = 1
  9120. imgca2.ImageTransparency = 1
  9121. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9122. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9123. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9124. elseif ModeOfGlitch == 13 then
  9125. imgca2.ImageColor3 = MAINRUINCOLOR.Color
  9126. imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9127. end
  9128. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9129. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9130. imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
  9131. bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9132. coroutine.resume(coroutine.create(function()
  9133.     if chaosmode == true then
  9134. for i, v in pairs(mw1:GetChildren()) do
  9135. if v:IsA("Part") then
  9136. v.Transparency = 0
  9137. v.BrickColor = BrickColor.random()
  9138. v.Material = "Neon"
  9139. end
  9140. end
  9141. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9142. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9143. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9144.     RecolorTextAndRename("F.a.l.l.e.n G.u.e.s.t",Color3.new(0,0,0),BrickColor.random().Color,"Antique")
  9145.     end
  9146. end))
  9147. coroutine.resume(coroutine.create(function()
  9148.     if ModeOfGlitch == 66 then
  9149.         for i, v in pairs(m:GetChildren()) do
  9150. if v:IsA("Part") then
  9151. v.Transparency = 0
  9152. v.BrickColor = BrickColor.random()
  9153. v.Material = "Neon"
  9154. end
  9155. end
  9156.         for i, v in pairs(m2:GetChildren()) do
  9157. if v:IsA("Part") then
  9158. v.Transparency = 0
  9159. v.BrickColor = BrickColor.random()
  9160. v.Material = "Neon"
  9161. end
  9162. end
  9163. for i, v in pairs(mw1:GetChildren()) do
  9164. if v:IsA("Part") then
  9165. v.Transparency = 0
  9166. v.BrickColor = BrickColor.random()
  9167. v.Material = "Neon"
  9168. end
  9169. end
  9170. for i, v in pairs(extrawingmod1:GetChildren()) do
  9171. if v:IsA("Part") then
  9172. v.Transparency = 0.5
  9173. v.BrickColor = BrickColor.random()
  9174. v.Material = "Neon"
  9175. end
  9176. end
  9177. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9178. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9179. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9180. gane.Color = ColorSequence.new(BrickColor.random().Color)
  9181. gan.Color = ColorSequence.new(BrickColor.random().Color)
  9182. end
  9183. end))
  9184.  
  9185. coroutine.resume(coroutine.create(function()
  9186.     if ModeOfGlitch == 66 then
  9187. RecolorTextAndRename("B R O K E N G.U.E.S.T",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
  9188.     end
  9189.     end))
  9190.  
  9191. if chaosmode == false then
  9192. modet.Position = UDim2.new(0,0,0,0)
  9193. modet.Rotation = -5 * math.cos(sine / 32)
  9194. techc.Rotation = techc.Rotation + 1
  9195. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
  9196. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
  9197. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
  9198. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
  9199. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9200. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9201. else
  9202.     techc.Rotation = techc.Rotation + 1
  9203. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9204. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9205. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9206. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9207. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9208. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9209. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9210. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9211. end
  9212. CameraManager()
  9213. swait()
  9214. 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)
  9215. 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)
  9216. 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)
  9217. 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)
  9218. 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)
  9219. 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)
  9220. 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)
  9221. 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)
  9222. 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)
  9223. 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)
  9224. 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)
  9225. 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)
  9226.  sine = sine + change
  9227. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9228. local velderp=RootPart.Velocity.y
  9229. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9230. coroutine.resume(coroutine.create(function()
  9231. 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
  9232. if hitfloor ~= nil then
  9233. 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"))
  9234. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
  9235. 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)
  9236. end
  9237. end
  9238. end
  9239. end))
  9240. if equipped==true or equipped==false then
  9241. if attack==false then
  9242. idle=idle+1
  9243. else
  9244. idle=0
  9245. end
  9246. if idle>=500 then
  9247. if attack==false then
  9248. --Sheath()
  9249. end
  9250. end
  9251. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9252. Anim="Jump"
  9253. if attack==false then
  9254. 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)
  9255. 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)
  9256. 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)
  9257. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9258. 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)
  9259. 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)
  9260. end
  9261. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9262. Anim="Fall"
  9263. if attack==false then
  9264. 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)
  9265. 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)
  9266. 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)
  9267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9268. 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)
  9269. 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)
  9270. end
  9271. elseif torvel<1 and hitfloor~=nil then
  9272. Anim="Idle"
  9273. if attack==false then
  9274. if ModeOfGlitch == 1 then
  9275. local snap = math.random(1,10)
  9276. if snap == 1 then
  9277. 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)
  9278. end
  9279. 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)
  9280. 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)
  9281. 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)
  9282. 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)
  9283. 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)
  9284. 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)
  9285. elseif ModeOfGlitch == 2 then
  9286. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  9287. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  9288. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.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)
  9289. 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)
  9290. 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)
  9291. 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)
  9292. elseif ModeOfGlitch == 2 then
  9293. 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)
  9294. 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)
  9295. 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)
  9296. 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)
  9297. 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)
  9298. 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)
  9299. elseif ModeOfGlitch == 50 then
  9300. 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)
  9301. 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)
  9302. 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)
  9303. 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)
  9304. 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)
  9305. 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)
  9306. elseif ModeOfGlitch == 5555 then --5555
  9307. 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)
  9308. 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)
  9309. 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)
  9310. 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)
  9311. 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)
  9312. 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)
  9313. elseif ModeOfGlitch == 1002 then
  9314. 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)
  9315. 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)
  9316. 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)
  9317. 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)
  9318. 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)
  9319. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9320. elseif ModeOfGlitch == 12 then
  9321. 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)
  9322. 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)
  9323. 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)
  9324. 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)
  9325. 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)
  9326. 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)
  9327. elseif ModeOfGlitch == 3 then
  9328. local snap = math.random(1,32)
  9329. if snap == 1 then
  9330. 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)
  9331. end
  9332. 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)
  9333. 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)
  9334. 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)
  9335. 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)
  9336. 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)
  9337. 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)
  9338. elseif ModeOfGlitch == 4 then
  9339. local snap = math.random(1,5)
  9340. if snap == 1 then
  9341. 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)
  9342. 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)
  9343. 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)
  9344. end
  9345. 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)
  9346. 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)
  9347. 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)
  9348. 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)
  9349. 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)
  9350. 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)
  9351. elseif ModeOfGlitch == 66 then
  9352. local snap = math.random(1,2)
  9353. if snap == 1 then
  9354. 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)
  9355. 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)
  9356. 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)
  9357. end
  9358. 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)
  9359. 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)
  9360. 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)
  9361. 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)
  9362. 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)
  9363. 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)
  9364. elseif ModeOfGlitch == 5 then
  9365. 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)
  9366. 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)
  9367. 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)
  9368. 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)
  9369. 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)
  9370. 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)
  9371. elseif ModeOfGlitch == 6 then
  9372. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9373. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  9374. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9375. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  9376. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  9377. 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)
  9378. elseif ModeOfGlitch == 13 then
  9379. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  9380. 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)
  9381. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  9382. 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)
  9383. 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)
  9384. 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)
  9385. elseif ModeOfGlitch == 8 then
  9386. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  9387. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  9388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  9389. 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)
  9390. 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)
  9391. 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)
  9392. elseif ModeOfGlitch == 9 then
  9393. 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)
  9394. 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))
  9395. 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)
  9396. 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)
  9397. 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)
  9398. 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)
  9399. 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)
  9400. 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)
  9401. elseif ModeOfGlitch == 1003 then
  9402. 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)
  9403. 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)
  9404. 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)
  9405. 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)
  9406. 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)
  9407. 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)
  9408.  
  9409. elseif ModeOfGlitch == 8889 then
  9410. 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)
  9411. 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)
  9412. 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)
  9413. 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)
  9414. 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)
  9415. 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)
  9416. elseif ModeOfGlitch == 1264532489 then
  9417. 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)
  9418. 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)
  9419. 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)
  9420. 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)
  9421. 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)
  9422. 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)
  9423. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  9424. elseif ModeOfGlitch == 9999999921111 then  --9999999921111
  9425. 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)
  9426. 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)
  9427. 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)
  9428. 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)
  9429. 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)
  9430. 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)
  9431. elseif ModeOfGlitch == 4367677813 then
  9432. 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)
  9433. 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)
  9434. 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)
  9435. 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)
  9436. 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)
  9437. 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)
  9438. elseif ModeOfGlitch == 55469696922 then --5555
  9439. 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)
  9440. 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)
  9441. 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)
  9442. 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)
  9443. 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)
  9444. 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)
  9445. elseif ModeOfGlitch == 999999999556 then
  9446. 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)
  9447. 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)
  9448. 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)
  9449. 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)
  9450. 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)
  9451. 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)
  9452. end
  9453. end
  9454. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9455. Anim="Walk"
  9456. if attack==false and ModeOfGlitch ~= 66 then
  9457. 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)
  9458. 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)
  9459. 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)
  9460. 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)
  9461. 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)
  9462. 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)
  9463. elseif attack==false and ModeOfGlitch == 66 then
  9464. 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)
  9465. 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)
  9466. 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)
  9467. 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)
  9468. 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)
  9469. 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)
  9470. end
  9471. elseif torvel>=22 and hitfloor~=nil then
  9472. Anim="Run"
  9473. if attack==false then
  9474. 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
  9475. 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)
  9476. 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)
  9477. 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)
  9478. 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)
  9479. 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)
  9480. 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)
  9481. if ModeOfGlitch == 12 then
  9482. 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)
  9483. 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)
  9484. 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)
  9485. 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)
  9486. 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)
  9487. 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)
  9488. end
  9489. if ModeOfGlitch == 9 then
  9490.     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)
  9491. 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))
  9492. 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)
  9493. end
  9494. 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
  9495. 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)
  9496. 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)
  9497. 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)
  9498. 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)
  9499. 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)
  9500. 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)
  9501. elseif ModeOfGlitch == 13 then
  9502. 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)
  9503. 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)
  9504. 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)
  9505. 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)
  9506. 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)
  9507. 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)
  9508. end
  9509. end
  9510. end
  9511. end
  9512. end
RAW Paste Data