Advertisement
cubanmixed2

Feeee

Nov 19th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 349.20 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. wait(0.5)
  8.  
  9.  
  10. warn([[SG AWAKEN Loaded.
  11. The super switcher.
  12. Velnorum is one of the first wielders.
  13.  
  14. Created, Reworked by MrGoo345
  15. ]])
  16.  
  17.  
  18. ------------- ORIGINAL WIELDER OC: Velnorum
  19. print([[Icons:
  20. ! = New
  21. ? = Spoilers
  22. * = Exclusivity
  23. C = Changes
  24.  
  25. ]])
  26. warn([[V 3 Update Log:
  27. !C? - Mostly about 7-8 main modes added.
  28. ! - Non-canon [N] modes are added from few modes:
  29. > Mayhem: NANODEATH
  30. > Purity: SHD
  31. > Divinity: FALLENX
  32. !C - Moves are added back, with severe change and difference.]])
  33. --- its obs smooth af do not touch
  34. ---- Sources and functions might be taken from others
  35. plr = game:GetService("Players").LocalPlayer
  36. char = plr.Character
  37. hum = char.Humanoid
  38. local cam = game.Workspace.CurrentCamera
  39. Camera = cam
  40. local CamInterrupt = false
  41. local TwoD = false
  42. local TargetInfo = {nil, nil}
  43. cam.CameraType = "Custom"
  44. t = char.Torso
  45. h = char.Head
  46. ra = char["Right Arm"]
  47. la = char["Left Arm"]
  48. rl = char["Right Leg"]
  49. ll = char["Left Leg"]
  50. tors = char.Torso
  51. lleg = char["Left Leg"]
  52. root = char.HumanoidRootPart
  53. hed = char.Head
  54. rleg = char["Right Leg"]
  55. rarm = char["Right Arm"]
  56. larm = char["Left Arm"]
  57. radian = math.rad
  58. random = math.random
  59. Vec3 = Vector3.new
  60. Inst = Instance.new
  61. cFrame = CFrame.new
  62. Euler = CFrame.fromEulerAnglesXYZ
  63. vt = Vector3.new
  64. bc = BrickColor.new
  65. br = BrickColor.random
  66. it = Instance.new
  67. cf = CFrame.new
  68.  
  69. local Booleans = {
  70. CamFollow = true,
  71. GyroUse = true
  72. }
  73.  
  74. function lerp(object, newCFrame, alpha)
  75. return object:lerp(newCFrame, alpha)
  76. end
  77.  
  78. local Directer = Inst("BodyGyro", root)
  79. Directer.MaxTorque = Vec3(0, 0, 0)
  80. Directer.P = 600000
  81. local CPart = Inst("Part")
  82. CPart.Anchored = true
  83. CPart.CanCollide = false
  84. CPart.Locked = true
  85. CPart.Transparency = 1
  86.  
  87. local rainbowmode = false
  88. local chaosmode = false
  89.  
  90. local kan = Instance.new("Sound",char)
  91. kan.Volume = 1.25
  92. kan.TimePosition = 0
  93. kan.PlaybackSpeed = 1
  94. kan.Pitch = 1
  95. kan.SoundId = "rbxassetid://614032233"
  96. kan.Name = "wrecked"
  97. kan.Looped = true
  98. kan:Play()
  99.  
  100. local currentThemePlaying = kan.SoundId
  101. local currentPitch = kan.Pitch
  102. local currentVol = kan.Volume
  103. function newTheme(ID,timepos,pitch,vol)
  104. local kanz = kan
  105. --kanz:Stop()
  106. kanz.Volume = vol
  107. --kanz.TimePosition = timepos
  108. kanz.PlaybackSpeed = pitch
  109. kanz.Pitch = pitch
  110. kanz.SoundId = ID
  111. kanz.Name = "wrecked"
  112. kanz.Looped = true
  113. currentThemePlaying = kanz.SoundId
  114. currentVol = kanz.Volume
  115. currentPitch = kanz.Pitch
  116. --kanz:Play()
  117. --coroutine.resume(coroutine.create(function()
  118. --wait(0.05)
  119. --end))
  120. end
  121.  
  122.  
  123. function newThemeCust(ID,timepos,pitch,vol)
  124. local kanz = kan
  125. kanz:Stop()
  126. kanz.Volume = vol
  127. kanz.TimePosition = timepos
  128. kanz.PlaybackSpeed = pitch
  129. kanz.Pitch = pitch
  130. kanz.SoundId = ID
  131. kanz.Name = "wrecked"
  132. kanz.Looped = true
  133. currentThemePlaying = kanz.SoundId
  134. currentVol = kanz.Volume
  135. currentPitch = kanz.Pitch
  136. kanz:Play()
  137. coroutine.resume(coroutine.create(function()
  138. wait(0.05)
  139. end))
  140. end
  141.  
  142. local mutedtog = false
  143.  
  144. function CameraEnshaking(Length,Intensity)
  145. coroutine.resume(coroutine.create(function()
  146. local intensity = 1*Intensity
  147. local rotM = 0.01*Intensity
  148. for i = 0, Length, 0.1 do
  149. swait()
  150. intensity = intensity - 0.05*Intensity/Length
  151. rotM = rotM - 0.0005*Intensity/Length
  152. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  153. 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)
  154. end
  155. Humanoid.CameraOffset = Vec3(0, 0, 0)
  156. end))
  157. end
  158. CamShake=function(Part,Distan,Power,Times)
  159. local de=Part.Position
  160. for i,v in pairs(workspace:children()) do
  161. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  162. for _,c in pairs(v:children()) do
  163. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  164. local Noob=v.Humanoid
  165. if Noob~=nil then
  166. coroutine.resume(coroutine.create(function()
  167. FV = Instance.new("BoolValue", Noob)
  168. FV.Name = "CameraShake"
  169. for ShakeNum=1,Times do
  170. swait()
  171. local ef=Power
  172. if ef>=1 then
  173. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  174. else
  175. ef=Power*10
  176. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  177. end
  178. end
  179. Humanoid.CameraOffset = Vector3.new(0,0,0)
  180. FV:Destroy()
  181. end))
  182. CameraShake(Times, Power, Noob)
  183. end
  184. end
  185. end
  186. end
  187. end
  188. end
  189.  
  190. local toggleTag = true
  191. local bilguit = Instance.new("BillboardGui", hed)
  192. bilguit.Adornee = nil
  193. bilguit.Name = "ModeName"
  194. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  195. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  196. local modet = Instance.new("TextLabel", bilguit)
  197. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  198. modet.FontSize = "Size8"
  199. modet.TextScaled = true
  200. modet.TextTransparency = 0
  201. modet.BackgroundTransparency = 1
  202. modet.TextTransparency = 0
  203. modet.TextStrokeTransparency = 0
  204. modet.Font = "Antique"
  205. modet.TextStrokeColor3 = Color3.new(1,0,0)
  206. modet.TextColor3 = Color3.new(0.25,0,0)
  207. modet.Text = "MAYHEM"
  208.  
  209.  
  210. function chatfunc(text,color,typet,font,timeex)
  211. local chat = coroutine.wrap(function()
  212. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  213. Character:FindFirstChild("TalkingBillBoard"):destroy()
  214. end
  215. local naeeym2 = Instance.new("BillboardGui",Character)
  216. naeeym2.Size = UDim2.new(0,100,0,40)
  217. naeeym2.StudsOffset = Vector3.new(0,3,0)
  218. naeeym2.Adornee = Character.Head
  219. naeeym2.Name = "TalkingBillBoard"
  220. local tecks2 = Instance.new("TextLabel",naeeym2)
  221. tecks2.BackgroundTransparency = 1
  222. tecks2.BorderSizePixel = 0
  223. tecks2.Text = ""
  224. tecks2.Font = font
  225. tecks2.TextSize = 30
  226. tecks2.TextStrokeTransparency = 0
  227. tecks2.TextColor3 = color
  228. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  229. tecks2.Size = UDim2.new(1,0,0.5,0)
  230. local tecks3 = Instance.new("TextLabel",naeeym2)
  231. tecks3.BackgroundTransparency = 1
  232. tecks3.BorderSizePixel = 0
  233. tecks3.Text = ""
  234. tecks3.Font = font
  235. tecks3.TextSize = 30
  236. tecks3.TextStrokeTransparency = 0
  237. if typet == "Inverted" then
  238. tecks3.TextColor3 = Color3.new(0,0,0)
  239. tecks3.TextStrokeColor3 = color
  240. elseif typet == "Normal" then
  241. tecks3.TextColor3 = color
  242. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  243. end
  244. tecks3.Size = UDim2.new(1,0,0.5,0)
  245. coroutine.resume(coroutine.create(function()
  246. while true do
  247. swait(1)
  248. if chaosmode == true then
  249. tecks2.TextColor3 = BrickColor.random().Color
  250. tecks3.TextStrokeColor3 = BrickColor.random().Color
  251. end
  252. end
  253. end))
  254. modet.TextTransparency = modet.TextTransparency + 1
  255. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  256. for i = 0, 74*timeex do
  257. swait()
  258. modet.TextTransparency = 1
  259. modet.TextStrokeTransparency = 1
  260. tecks2.Text = text
  261. tecks3.Text = text
  262. end
  263. local randomrot = math.random(1,2)
  264. if randomrot == 1 then
  265. for i = 1, 50 do
  266. swait()
  267. tecks2.Text = text
  268. tecks3.Text = text
  269. modet.TextTransparency = modet.TextTransparency - .02
  270. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  271. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  272. tecks2.TextTransparency = tecks2.TextTransparency + .04
  273. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  274. tecks3.TextTransparency = tecks2.TextTransparency + .04
  275. end
  276. elseif randomrot == 2 then
  277. for i = 1, 50 do
  278. swait()
  279. tecks2.Text = text
  280. tecks3.Text = text
  281. modet.TextTransparency = modet.TextTransparency - .02
  282. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  283. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  284. tecks2.TextTransparency = tecks2.TextTransparency + .04
  285. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  286. tecks3.TextTransparency = tecks2.TextTransparency + .04
  287. end
  288. end
  289. modet.TextTransparency = 0
  290. modet.TextStrokeTransparency = 0
  291. if toggleTag == false then
  292. modet.TextTransparency = 1
  293. modet.TextStrokeTransparency = 1
  294. end
  295. naeeym2:Destroy()
  296. end)
  297. chat()
  298. end
  299.  
  300.  
  301. local Create = LoadLibrary("RbxUtility").Create
  302.  
  303. CFuncs = {
  304. ["Part"] = {
  305. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  306. local Part = Create("Part"){
  307. Parent = Parent,
  308. Reflectance = Reflectance,
  309. Transparency = Transparency,
  310. CanCollide = false,
  311. Locked = true,
  312. BrickColor = BrickColor.new(tostring(BColor)),
  313. Name = Name,
  314. Size = Size,
  315. Material = Material,
  316. }
  317. RemoveOutlines(Part)
  318. return Part
  319. end;
  320. };
  321.  
  322. ["Mesh"] = {
  323. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  324. local Msh = Create(Mesh){
  325. Parent = Part,
  326. Offset = OffSet,
  327. Scale = Scale,
  328. }
  329. if Mesh == "SpecialMesh" then
  330. Msh.MeshType = MeshType
  331. Msh.MeshId = MeshId
  332. end
  333. return Msh
  334. end;
  335. };
  336.  
  337. ["Mesh"] = {
  338. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  339. local Msh = Create(Mesh){
  340. Parent = Part,
  341. Offset = OffSet,
  342. Scale = Scale,
  343. }
  344. if Mesh == "SpecialMesh" then
  345. Msh.MeshType = MeshType
  346. Msh.MeshId = MeshId
  347. end
  348. return Msh
  349. end;
  350. };
  351.  
  352. ["Weld"] = {
  353. Create = function(Parent, Part0, Part1, C0, C1)
  354. local Weld = Create("Weld"){
  355. Parent = Parent,
  356. Part0 = Part0,
  357. Part1 = Part1,
  358. C0 = C0,
  359. C1 = C1,
  360. }
  361. return Weld
  362. end;
  363. };
  364.  
  365. ["Sound"] = {
  366. Create = function(id, par, vol, pit)
  367. coroutine.resume(coroutine.create(function()
  368. local S = Create("Sound"){
  369. Volume = vol,
  370. Name = "EffectSoundo",
  371. Pitch = pit or 1,
  372. SoundId = id,
  373. Parent = par or workspace,
  374. }
  375. wait()
  376. S:play()
  377. game:GetService("Debris"):AddItem(S, 10)
  378. end))
  379. end;
  380. };
  381.  
  382. ["TimeSound"] = {
  383. Create = function(id, par, vol, pit, timepos)
  384. coroutine.resume(coroutine.create(function()
  385. local S = Create("Sound"){
  386. Volume = vol,
  387. Name = "EffectSoundo",
  388. Pitch = pit or 1,
  389. SoundId = id,
  390. TimePosition = timepos,
  391. Parent = par or workspace,
  392. }
  393. wait()
  394. S:play()
  395. game:GetService("Debris"):AddItem(S, 10)
  396. end))
  397. end;
  398. };
  399. ["EchoSound"] = {
  400. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  401. coroutine.resume(coroutine.create(function()
  402. local Sas = Create("Sound"){
  403. Volume = vol,
  404. Name = "EffectSoundo",
  405. Pitch = pit or 1,
  406. SoundId = id,
  407. TimePosition = timepos,
  408. Parent = par or workspace,
  409. }
  410. local E = Create("EchoSoundEffect"){
  411. Delay = echodelay,
  412. Name = "Echo",
  413. Feedback = fedb,
  414. DryLevel = dryl,
  415. Parent = Sas,
  416. }
  417. wait()
  418. Sas:play()
  419. game:GetService("Debris"):AddItem(Sas, delays)
  420. end))
  421. end;
  422. };
  423.  
  424. ["LongSound"] = {
  425. Create = function(id, par, vol, pit)
  426. coroutine.resume(coroutine.create(function()
  427. local S = Create("Sound"){
  428. Volume = vol,
  429. Pitch = pit or 1,
  430. SoundId = id,
  431. Parent = par or workspace,
  432. }
  433. wait()
  434. S:play()
  435. game:GetService("Debris"):AddItem(S, 60)
  436. end))
  437. end;
  438. };
  439.  
  440. ["ParticleEmitter"] = {
  441. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  442. local fp = Create("ParticleEmitter"){
  443. Parent = Parent,
  444. Color = ColorSequence.new(Color1, Color2),
  445. LightEmission = LightEmission,
  446. Size = Size,
  447. Texture = Texture,
  448. Transparency = Transparency,
  449. ZOffset = ZOffset,
  450. Acceleration = Accel,
  451. Drag = Drag,
  452. LockedToPart = LockedToPart,
  453. VelocityInheritance = VelocityInheritance,
  454. EmissionDirection = EmissionDirection,
  455. Enabled = Enabled,
  456. Lifetime = LifeTime,
  457. Rate = Rate,
  458. Rotation = Rotation,
  459. RotSpeed = RotSpeed,
  460. Speed = Speed,
  461. VelocitySpread = VelocitySpread,
  462. }
  463. return fp
  464. end;
  465. };
  466.  
  467. CreateTemplate = {
  468.  
  469. };
  470. }
  471.  
  472.  
  473.  
  474. New = function(Object, Parent, Name, Data)
  475. local Object = Instance.new(Object)
  476. for Index, Value in pairs(Data or {}) do
  477. Object[Index] = Value
  478. end
  479. Object.Parent = Parent
  480. Object.Name = Name
  481. return Object
  482. end
  483. local halocolor = BrickColor.new("Pastel light blue")
  484. local halocolor2 = BrickColor.new("Cool yellow")
  485. local starcolor = BrickColor.new("Bright yellow")
  486. local lunacolor = BrickColor.new("Navy blue")
  487. local lunacolor2 = BrickColor.new("Bright blue")
  488. local wepcolor = BrickColor.new("Really black")
  489. local maincolor = BrickColor.new("Really black")
  490. local m = Instance.new("Model",char)
  491. local m2 = Instance.new("Model",char)
  492. local m3 = Instance.new("Model",char)
  493. local mw1 = Instance.new("Model",char)
  494. local mw2 = Instance.new("Model",char)
  495.  
  496.  
  497. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  498. local gui = it(GuiType)
  499. gui.Parent = parent
  500. gui.Text = text
  501. gui.BackgroundTransparency = backtrans
  502. gui.BackgroundColor3 = backcol
  503. gui.SizeConstraint = "RelativeXY"
  504. gui.TextXAlignment = "Center"
  505. gui.TextYAlignment = "Center"
  506. gui.Position = pos
  507. gui.Size = size
  508. gui.Font = "SourceSans"
  509. gui.FontSize = "Size14"
  510. gui.TextWrapped = false
  511. gui.TextStrokeTransparency = 0
  512. gui.TextColor = BrickColor.new("White")
  513. return gui
  514. end
  515. --------------------------- GUI STUFF
  516. local basgui = it("GuiMain")
  517. basgui.Parent = plr.PlayerGui
  518. basgui.Name = "VISgui"
  519. local fullscreenz = it("Frame")
  520. fullscreenz.Parent = basgui
  521. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  522. fullscreenz.BackgroundTransparency = 1
  523. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  524. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  525. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  526. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  527. imgl2.BackgroundTransparency = 1
  528. imgl2.BorderSizePixel = 0
  529. imgl2.ImageTransparency = 0.5
  530. imgl2.ImageColor3 = Color3.new(1,0,0)
  531. imgl2.Position = UDim2.new(0.75,-100,0.55,-100)
  532. imgl2.Size = UDim2.new(0,800,0,800)
  533. imgl2.Image = "rbxassetid://2076458450"
  534. local techc = imgl2:Clone()
  535. techc.Parent = fullscreenz
  536. techc.ImageTransparency = 0
  537. techc.Size = UDim2.new(0,900,0,900)
  538. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  539. techc.ImageColor3 = Color3.new(1,0,0)
  540. techc.Image = "rbxassetid://2273224484"
  541. local circl = imgl2:Clone()
  542. circl.Parent = fullscreenz
  543. circl.ImageTransparency = 0
  544. circl.Size = UDim2.new(0,550,0,550)
  545. circl.Position = UDim2.new(0.75,25,0.55,25)
  546. circl.ImageColor3 = Color3.new(0,0,0)
  547. circl.Image = "rbxassetid://2312119891"
  548. local circl2 = imgl2:Clone()
  549. circl2.Parent = fullscreenz
  550. circl2.ImageTransparency = 0
  551. circl2.Size = UDim2.new(0,700,0,700)
  552. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  553. circl2.ImageColor3 = Color3.new(1,0,0)
  554. circl2.Image = "rbxassetid://2312119891"
  555. local imgl2b = imgl2:Clone()
  556. imgl2b.Parent = fullscreenz
  557. imgl2b.ImageTransparency = 0
  558. imgl2b.Size = UDim2.new(0,600,0,600)
  559. imgl2b.Position = UDim2.new(0.75,0,0.55,0)
  560. imgl2b.ImageColor3 = Color3.new(0,0,0)
  561. local ned = Instance.new("TextLabel",fullscreenz)
  562. ned.ZIndex = 2
  563. ned.Font = "Arcade"
  564. ned.BackgroundTransparency = 1
  565. ned.BorderSizePixel = 0.65
  566. ned.Size = UDim2.new(0.3,0,0.2,0)
  567. ned.Position = UDim2.new(0.7,0,0.8,0)
  568. ned.TextColor3 = BrickColor.new("Really red").Color
  569. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  570. ned.TextScaled = true
  571. ned.TextStrokeTransparency = 0
  572. ned.Text = "MAYHEM"
  573. ned.TextSize = 24
  574. ned.Rotation = 1
  575. ned.TextXAlignment = "Right"
  576. ned.TextYAlignment = "Bottom"
  577.  
  578. local extrawingmod1 = Instance.new("Model",char)
  579. local extrawingmod2 = Instance.new("Model",char)
  580.  
  581. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  582. local p = Instance.new("Part")
  583. p.TopSurface = 0
  584. p.BottomSurface = 0
  585. p.Parent = parent
  586. p.Size = Vector3.new(0.1,0.1,0.1)
  587. p.Transparency = transparency
  588. p.Reflectance = reflectance
  589. p.CanCollide = false
  590. p.Locked = true
  591. p.BrickColor = brickcolor
  592. p.Material = material
  593. return p
  594. end
  595.  
  596. function CreateMesh(parent,meshtype,x1,y1,z1)
  597. local mesh = Instance.new("SpecialMesh",parent)
  598. mesh.MeshType = meshtype
  599. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  600. return mesh
  601. end
  602.  
  603. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  604. local mesh = Instance.new("SpecialMesh",parent)
  605. mesh.MeshType = "FileMesh"
  606. mesh.MeshId = meshid
  607. mesh.Scale = Vector3.new(x1,y1,z1)
  608. return mesh
  609. end
  610.  
  611.  
  612. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  613. local mesh = Instance.new("SpecialMesh",parent)
  614. mesh.MeshType = "FileMesh"
  615. mesh.MeshId = meshid
  616. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  617. mesh.Scale = Vector3.new(x1,y1,z1)
  618. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  619. return mesh
  620. end
  621.  
  622. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  623. local weld = Instance.new("Weld")
  624. weld.Parent = parent
  625. weld.Part0 = part0
  626. weld.Part1 = part1
  627. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  628. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  629. return weld
  630. end
  631.  
  632.  
  633. --------------
  634. --- Powerful Elementals ---
  635. local CALAMITYorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  636. local calor = CreateWeld(CALAMITYorb,tors,CALAMITYorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  637. local CHAOSorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  638. local chaor = CreateWeld(CHAOSorb,tors,CHAOSorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639. local MAYHEMorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  640. local mayor = CreateWeld(MAYHEMorb,tors,MAYHEMorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  641. local EQUINOXorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  642. local equor = CreateWeld(EQUINOXorb,tors,EQUINOXorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643. --------------
  644. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  645. 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))
  646. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  647. 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))
  648.  
  649. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  650. CreateMesh(handle,"Brick",0,0,0)
  651. 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))
  652. local valuaring = 10
  653. for i = 0, 49 do
  654. valuaring = valuaring + 10
  655. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  656. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  657. 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))
  658. end
  659.  
  660. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  661. CreateMesh(handle,"Brick",0,0,0)
  662. 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))
  663. local valuaring = 10
  664. for i = 0, 49 do
  665. valuaring = valuaring + 10
  666. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  667. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  668. 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))
  669. end
  670.  
  671.  
  672. local handle = CreateParta(m,1,1,"Neon",maincolor)
  673. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  674. 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))
  675.  
  676. --- Left wing.
  677.  
  678. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  679. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  680. 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))
  681.  
  682. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  683. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  684. 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))
  685. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  686. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  687. 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))
  688. A0 = Instance.new('Attachment',wed)
  689. A0.Position = vt(0,0.25,0.25)
  690. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  691. CreateMesh(wed,"Wedge",0.05,0.5,3)
  692. 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))
  693. A1 = Instance.new('Attachment',wed)
  694. A1.Position = vt(0,-0.25,-2)
  695. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  696. CreateMesh(wed,"Wedge",0.05,3,0.5)
  697. 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))
  698.  
  699. tl1 = Instance.new('Trail',wed)
  700. tl1.Attachment0 = A1
  701. tl1.Attachment1 = A0
  702. tl1.Texture = "rbxassetid://2108945559"
  703. tl1.LightEmission = 1
  704. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  705. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  706. tl1.Lifetime = 0.6
  707.  
  708.  
  709. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  710. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  711. 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))
  712.  
  713. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  714. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  715. 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))
  716. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  717. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  718. 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))
  719. A0 = Instance.new('Attachment',wed)
  720. A0.Position = vt(0,0.25,0.25)
  721. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  722. CreateMesh(wed,"Wedge",0.05,0.5,3)
  723. 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))
  724. A1 = Instance.new('Attachment',wed)
  725. A1.Position = vt(0,-0.25,-2)
  726. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  727. CreateMesh(wed,"Wedge",0.05,3,0.5)
  728. 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))
  729.  
  730. tl2 = Instance.new('Trail',wed)
  731. tl2.Attachment0 = A1
  732. tl2.Attachment1 = A0
  733. tl2.Texture = "rbxassetid://2108945559"
  734. tl2.LightEmission = 1
  735. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  736. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  737. tl2.Lifetime = 0.6
  738.  
  739. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  740. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  741. 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))
  742.  
  743. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  744. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  745. 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))
  746. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  747. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  748. 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))
  749. A0 = Instance.new('Attachment',wed)
  750. A0.Position = vt(0,0.25,0.25)
  751. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  752. CreateMesh(wed,"Wedge",0.05,0.5,3)
  753. 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))
  754. A1 = Instance.new('Attachment',wed)
  755. A1.Position = vt(0,-0.25,-2)
  756. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  757. CreateMesh(wed,"Wedge",0.05,3,0.5)
  758. 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))
  759.  
  760. tl3 = Instance.new('Trail',wed)
  761. tl3.Attachment0 = A1
  762. tl3.Attachment1 = A0
  763. tl3.Texture = "rbxassetid://2108945559"
  764. tl3.LightEmission = 1
  765. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  766. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  767. tl3.Lifetime = 0.6
  768.  
  769. tl1.Enabled = false
  770. tl2.Enabled = false
  771. tl3.Enabled = false
  772. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  773. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  774. 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))
  775.  
  776. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  777. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  778. 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))
  779. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  780. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  781. 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))
  782. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  783. CreateMesh(wed,"Wedge",0.05,0.5,3)
  784. 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))
  785. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,3,0.5)
  787. 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))
  788.  
  789. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  790. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  791. 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))
  792.  
  793. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  794. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  795. 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))
  796. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  798. 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))
  799. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,3)
  801. 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))
  802. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,3,0.5)
  804. 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))
  805.  
  806. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  807. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  808. 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))
  809.  
  810. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  811. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  812. 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))
  813. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  815. 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))
  816. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  817. CreateMesh(wed,"Wedge",0.05,0.5,3)
  818. 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))
  819. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  820. CreateMesh(wed,"Wedge",0.05,3,0.5)
  821. 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))
  822.  
  823. -- Right wing.
  824.  
  825. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  826. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  827. 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))
  828.  
  829. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  831. 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))
  832. A0 = Instance.new('Attachment',wed)
  833. A0.Position = vt(0,0.25,0.25)
  834. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  835. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  836. 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))
  837. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  838. CreateMesh(wed,"Wedge",0.05,0.5,3)
  839. 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))
  840. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,3,0.5)
  842. 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))
  843. A1 = Instance.new('Attachment',wed)
  844. A1.Position = vt(0,2,0.25)
  845.  
  846. tr1 = Instance.new('Trail',wed)
  847. tr1.Attachment0 = A1
  848. tr1.Attachment1 = A0
  849. tr1.Texture = "rbxassetid://2108945559"
  850. tr1.LightEmission = 1
  851. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  852. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  853. tr1.Lifetime = 0.6
  854.  
  855. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  856. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  857. 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))
  858.  
  859. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  860. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  861. 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))
  862. A0 = Instance.new('Attachment',wed)
  863. A0.Position = vt(0,0.25,0.25)
  864. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. 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))
  867. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,3)
  869. 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))
  870. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,3,0.5)
  872. 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))
  873. A1 = Instance.new('Attachment',wed)
  874. A1.Position = vt(0,2,0.25)
  875.  
  876. tr2 = Instance.new('Trail',wed)
  877. tr2.Attachment0 = A1
  878. tr2.Attachment1 = A0
  879. tr2.Texture = "rbxassetid://2108945559"
  880. tr2.LightEmission = 1
  881. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  882. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  883. tr2.Lifetime = 0.6
  884.  
  885. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  886. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  887. 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))
  888.  
  889. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. 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))
  892. A0 = Instance.new('Attachment',wed)
  893. A0.Position = vt(0,0.25,0.25)
  894. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. 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))
  897. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,3)
  899. 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))
  900. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,3,0.5)
  902. 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))
  903. A1 = Instance.new('Attachment',wed)
  904. A1.Position = vt(0,2,0.25)
  905.  
  906. tr3 = Instance.new('Trail',wed)
  907. tr3.Attachment0 = A1
  908. tr3.Attachment1 = A0
  909. tr3.Texture = "rbxassetid://2108945559"
  910. tr3.LightEmission = 1
  911. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  912. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  913. tr3.Lifetime = 0.6
  914.  
  915.  
  916. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  917. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  918. 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))
  919.  
  920. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  922. 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))
  923. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. 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))
  926. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,3)
  928. 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))
  929. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,3,0.5)
  931. 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))
  932.  
  933. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  934. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  935. 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))
  936.  
  937. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  939. 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))
  940. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  941. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  942. 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))
  943. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,3)
  945. 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))
  946. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,3,0.5)
  948. 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))
  949.  
  950. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  951. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  952. 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))
  953.  
  954. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  955. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  956. 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))
  957. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  958. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  959. 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))
  960. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  961. CreateMesh(wed,"Wedge",0.05,0.5,3)
  962. 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))
  963. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  964. CreateMesh(wed,"Wedge",0.05,3,0.5)
  965. 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))
  966.  
  967. ---- HERES THE RING
  968.  
  969.  
  970. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  971. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  972. 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))
  973. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  974. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  975. 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))
  976. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  977. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  978. 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))
  979.  
  980.  
  981. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  983. 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))
  984.  
  985. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  986. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  987. 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))
  988.  
  989.  
  990.  
  991. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  992. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  993. 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))
  994.  
  995. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  996. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  997. 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))
  998.  
  999. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1000. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1001. 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))
  1002.  
  1003. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1004. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1005. 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))
  1006. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1007. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1008. 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))
  1009.  
  1010. --- second ring
  1011.  
  1012. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1013. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1014. CreateWeld(ran,rarm,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))
  1015. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1016. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1017. CreateWeld(ran,rarm,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))
  1018. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1019. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1020. CreateWeld(ran,rarm,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))
  1021.  
  1022. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1023. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1024. 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))
  1025.  
  1026. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1027. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1028. 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))
  1029.  
  1030.  
  1031.  
  1032. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1033. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1034. 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))
  1035.  
  1036. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1037. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1038. 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))
  1039.  
  1040. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1041. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1042. 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))
  1043.  
  1044. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1045. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1046. 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))
  1047. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1048. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1049. 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))]]--
  1050.  
  1051.  
  1052.  
  1053. for i, v in pairs(m:GetChildren()) do
  1054. if v:IsA("Part") then
  1055. v.BrickColor = BrickColor.new("Really black")
  1056. v.Material = "Glass"
  1057. end
  1058. end
  1059. for i, v in pairs(m2:GetChildren()) do
  1060. if v:IsA("Part") then
  1061. v.BrickColor = BrickColor.new("Crimson")
  1062. v.Material = "Granite"
  1063. end
  1064. end
  1065. for i, v in pairs(m3:GetChildren()) do
  1066. if v:IsA("Part") then
  1067. v.BrickColor = BrickColor.new("Really red")
  1068. v.Material = "Neon"
  1069. end
  1070. end
  1071. for i, v in pairs(mw2:GetChildren()) do
  1072. if v:IsA("Part") then
  1073. v.BrickColor = BrickColor.new("Really red")
  1074. v.Material = "Neon"
  1075. end
  1076. end
  1077. for i, v in pairs(mw1:GetChildren()) do
  1078. if v:IsA("Part") then
  1079. v.Transparency = 1
  1080. v.BrickColor = BrickColor.new("Really red")
  1081. v.Material = "Neon"
  1082. end
  1083. end
  1084. for i, v in pairs(extrawingmod1:GetChildren()) do
  1085. if v:IsA("Part") then
  1086. v.Transparency = 1
  1087. v.BrickColor = BrickColor.new("White")
  1088. v.Material = "Neon"
  1089. end
  1090. end
  1091. for i, v in pairs(extrawingmod2:GetChildren()) do
  1092. if v:IsA("Part") then
  1093. v.Transparency = 1
  1094. v.BrickColor = BrickColor.new("White")
  1095. v.Material = "Neon"
  1096. end
  1097. end
  1098. local MAINRUINCOLOR = BrickColor.new("Really red")
  1099. ------
  1100.  
  1101.  
  1102. function RemoveOutlines(part)
  1103. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1104. end
  1105. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1106. local Part = Create("Part")({
  1107. Parent = Parent,
  1108. Reflectance = Reflectance,
  1109. Transparency = Transparency,
  1110. CanCollide = false,
  1111. Locked = true,
  1112. BrickColor = BrickColor.new(tostring(BColor)),
  1113. Name = Name,
  1114. Size = Size,
  1115. Material = Material
  1116. })
  1117. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1118. RemoveOutlines(Part)
  1119. return Part
  1120. end
  1121. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1122. local Msh = Create(Mesh)({
  1123. Parent = Part,
  1124. Offset = OffSet,
  1125. Scale = Scale
  1126. })
  1127. if Mesh == "SpecialMesh" then
  1128. Msh.MeshType = MeshType
  1129. Msh.MeshId = MeshId
  1130. end
  1131. return Msh
  1132. end
  1133. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1134. local Weld = Create("Weld")({
  1135. Parent = Parent,
  1136. Part0 = Part0,
  1137. Part1 = Part1,
  1138. C0 = C0,
  1139. C1 = C1
  1140. })
  1141. return Weld
  1142. end
  1143.  
  1144. Character=Player.Character
  1145. PlayerGui=Player.PlayerGui
  1146. Backpack=Player.Backpack
  1147. Torso=Character.Torso
  1148. Head=Character.Head
  1149. Humanoid=Character.Humanoid
  1150. m=Instance.new('Model',Character)
  1151. LeftArm=Character["Left Arm"]
  1152. LeftLeg=Character["Left Leg"]
  1153. RightArm=Character["Right Arm"]
  1154. RightLeg=Character["Right Leg"]
  1155. LS=Torso["Left Shoulder"]
  1156. LH=Torso["Left Hip"]
  1157. RS=Torso["Right Shoulder"]
  1158. RH=Torso["Right Hip"]
  1159. Face = Head.face
  1160. Neck=Torso.Neck
  1161. it=Instance.new
  1162. attacktype=1
  1163. vt=Vector3.new
  1164. cf=CFrame.new
  1165. euler=CFrame.fromEulerAnglesXYZ
  1166. angles=CFrame.Angles
  1167. cloaked=false
  1168. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1169. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1170. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1171. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1172. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1173. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1174. RootPart=Character.HumanoidRootPart
  1175. RootJoint=RootPart.RootJoint
  1176. RootCF=euler(-1.57,0,3.14)
  1177. attack = false
  1178. attackdebounce = false
  1179. deb=false
  1180. equipped=true
  1181. hand=false
  1182. combo=0
  1183. mana=0
  1184. trispeed=.2
  1185. attackmode='none'
  1186. local idle=0
  1187. local Anim="Idle"
  1188. local Effects={}
  1189. local gun=false
  1190. local shoot=false
  1191. local sine = 0
  1192. local change = 1
  1193.  
  1194. function RecolorTextAndRename(name,col1,col2,font)
  1195. modet.TextStrokeColor3 = col2
  1196. modet.TextColor3 = col1
  1197. modet.Font = font
  1198. modet.Text = name
  1199. techc.ImageColor3 = col2
  1200. circl.ImageColor3 = col2
  1201. circl2.ImageColor3 = col1
  1202. imgl2.ImageColor3 = col1
  1203. imgl2b.ImageColor3 = col2
  1204. ned.Text = name
  1205. ned.TextColor3 = col1
  1206. ned.TextStrokeColor3 = col2
  1207. end
  1208. --save shoulders
  1209. RSH, LSH=nil, nil
  1210. --welds
  1211. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1212. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1213. LH=Torso["Left Hip"]
  1214. RH=Torso["Right Hip"]
  1215. TorsoColor=Torso.BrickColor
  1216. function NoOutline(Part)
  1217. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1218. end
  1219. ch=Character
  1220. RSH=ch.Torso["Right Shoulder"]
  1221. LSH=ch.Torso["Left Shoulder"]
  1222. --
  1223. RSH.Parent=nil
  1224. LSH.Parent=nil
  1225. --
  1226. RW.Name="Right Shoulder"
  1227. RW.Part0=ch.Torso
  1228. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1229. RW.C1=cf(0, 0.5, 0)
  1230. RW.Part1=ch["Right Arm"]
  1231. RW.Parent=ch.Torso
  1232. --
  1233. LW.Name="Left Shoulder"
  1234. LW.Part0=ch.Torso
  1235. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1236. LW.C1=cf(0, 0.5, 0)
  1237. LW.Part1=ch["Left Arm"]
  1238. LW.Parent=ch.Torso
  1239.  
  1240. local Stats=Instance.new("BoolValue")
  1241. Stats.Name="Stats"
  1242. Stats.Parent=Character
  1243. local Atk=Instance.new("NumberValue")
  1244. Atk.Name="Damage"
  1245. Atk.Parent=Stats
  1246. Atk.Value=1
  1247. local Def=Instance.new("NumberValue")
  1248. Def.Name="Defense"
  1249. Def.Parent=Stats
  1250. Def.Value=1
  1251. local Speed=Instance.new("NumberValue")
  1252. Speed.Name="Speed"
  1253. Speed.Parent=Stats
  1254. Speed.Value=1
  1255. local Mvmt=Instance.new("NumberValue")
  1256. Mvmt.Name="Movement"
  1257. Mvmt.Parent=Stats
  1258. Mvmt.Value=1
  1259.  
  1260. local donum=0
  1261.  
  1262.  
  1263. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1264. local fp=it("Part")
  1265. fp.formFactor=formfactor
  1266. fp.Parent=parent
  1267. fp.Reflectance=reflectance
  1268. fp.Transparency=transparency
  1269. fp.CanCollide=false
  1270. fp.Locked=true
  1271. fp.BrickColor=brickcolor
  1272. fp.Name=name
  1273. fp.Size=size
  1274. fp.Position=Torso.Position
  1275. NoOutline(fp)
  1276. fp.Material="SmoothPlastic"
  1277. fp:BreakJoints()
  1278. return fp
  1279. end
  1280.  
  1281. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1282. local mesh=it(Mesh)
  1283. mesh.Parent=part
  1284. if Mesh=="SpecialMesh" then
  1285. mesh.MeshType=meshtype
  1286. if meshid~="nil" then
  1287. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1288. end
  1289. end
  1290. mesh.Offset=offset
  1291. mesh.Scale=scale
  1292. return mesh
  1293. end
  1294.  
  1295. function weld(parent,part0,part1,c0)
  1296. local weld=it("Weld")
  1297. weld.Parent=parent
  1298. weld.Part0=part0
  1299. weld.Part1=part1
  1300. weld.C0=c0
  1301. return weld
  1302. end
  1303.  
  1304. local Color1=Torso.BrickColor
  1305.  
  1306. local bodvel=Instance.new("BodyVelocity")
  1307. local bg=Instance.new("BodyGyro")
  1308.  
  1309. --------- SazEreno's Artificial HB --------------
  1310. ArtificialHB = Instance.new("BindableEvent", script)
  1311. ArtificialHB.Name = "ArtificialHB"
  1312.  
  1313. script:WaitForChild("ArtificialHB")
  1314. Frame_Speed = 1 / 60
  1315. frame = Frame_Speed
  1316. tf = 0
  1317. allowframeloss = false
  1318. tossremainder = false
  1319. lastframe = tick()
  1320. script.ArtificialHB:Fire()
  1321.  
  1322. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1323. tf = tf + s
  1324. if tf >= frame then
  1325. if allowframeloss then
  1326. script.ArtificialHB:Fire()
  1327. lastframe = tick()
  1328. else
  1329. for i = 1, math.floor(tf / frame) do
  1330. script.ArtificialHB:Fire()
  1331. end
  1332. lastframe = tick()
  1333. end
  1334. if tossremainder then
  1335. tf = 0
  1336. else
  1337. tf = tf - frame * math.floor(tf / frame)
  1338. end
  1339. end
  1340. end)
  1341.  
  1342. ------------------
  1343. function swait(num)
  1344. if num == 0 or num == nil then
  1345. ArtificialHB.Event:wait()
  1346. else
  1347. for i = 1, num do
  1348. ArtificialHB.Event:wait()
  1349. end
  1350. end
  1351. end
  1352. -------- RAINBOW LEAVE IT TO ME
  1353. local r = 255
  1354. local g = 0
  1355. local b = 0
  1356. coroutine.resume(coroutine.create(function()
  1357. while wait() do
  1358. for i = 0, 254/5 do
  1359. swait()
  1360. g = g + 5
  1361. end
  1362. for i = 0, 254/5 do
  1363. swait()
  1364. r = r - 5
  1365. end
  1366. for i = 0, 254/5 do
  1367. swait()
  1368. b = b + 5
  1369. end
  1370. for i = 0, 254/5 do
  1371. swait()
  1372. g = g - 5
  1373. end
  1374. for i = 0, 254/5 do
  1375. swait()
  1376. r = r + 5
  1377. end
  1378. for i = 0, 254/5 do
  1379. swait()
  1380. b = b - 5
  1381. end
  1382. end
  1383. end))
  1384.  
  1385.  
  1386. so = function(id,par,vol,pit)
  1387. coroutine.resume(coroutine.create(function()
  1388. local sou = Instance.new("Sound",par or workspace)
  1389. sou.Volume=vol
  1390. sou.Pitch=pit or 1
  1391. sou.SoundId=id
  1392. swait()
  1393. sou:play()
  1394. game:GetService("Debris"):AddItem(sou,6)
  1395. end))
  1396. end
  1397.  
  1398. function clerp(a,b,t)
  1399. local qa = {QuaternionFromCFrame(a)}
  1400. local qb = {QuaternionFromCFrame(b)}
  1401. local ax, ay, az = a.x, a.y, a.z
  1402. local bx, by, bz = b.x, b.y, b.z
  1403. local _t = 1-t
  1404. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1405. end
  1406.  
  1407. function QuaternionFromCFrame(cf)
  1408. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1409. local trace = m00 + m11 + m22
  1410. if trace > 0 then
  1411. local s = math.sqrt(1 + trace)
  1412. local recip = 0.5/s
  1413. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1414. else
  1415. local i = 0
  1416. if m11 > m00 then
  1417. i = 1
  1418. end
  1419. if m22 > (i == 0 and m00 or m11) then
  1420. i = 2
  1421. end
  1422. if i == 0 then
  1423. local s = math.sqrt(m00-m11-m22+1)
  1424. local recip = 0.5/s
  1425. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1426. elseif i == 1 then
  1427. local s = math.sqrt(m11-m22-m00+1)
  1428. local recip = 0.5/s
  1429. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1430. elseif i == 2 then
  1431. local s = math.sqrt(m22-m00-m11+1)
  1432. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1433. end
  1434. end
  1435. end
  1436.  
  1437. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1438. local xs, ys, zs = x + x, y + y, z + z
  1439. local wx, wy, wz = w*xs, w*ys, w*zs
  1440. local xx = x*xs
  1441. local xy = x*ys
  1442. local xz = x*zs
  1443. local yy = y*ys
  1444. local yz = y*zs
  1445. local zz = z*zs
  1446. 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))
  1447. end
  1448.  
  1449. function QuaternionSlerp(a, b, t)
  1450. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1451. local startInterp, finishInterp;
  1452. if cosTheta >= 0.0001 then
  1453. if (1 - cosTheta) > 0.0001 then
  1454. local theta = math.acos(cosTheta)
  1455. local invSinTheta = 1/math.sin(theta)
  1456. startInterp = math.sin((1-t)*theta)*invSinTheta
  1457. finishInterp = math.sin(t*theta)*invSinTheta
  1458. else
  1459. startInterp = 1-t
  1460. finishInterp = t
  1461. end
  1462. else
  1463. if (1+cosTheta) > 0.0001 then
  1464. local theta = math.acos(-cosTheta)
  1465. local invSinTheta = 1/math.sin(theta)
  1466. startInterp = math.sin((t-1)*theta)*invSinTheta
  1467. finishInterp = math.sin(t*theta)*invSinTheta
  1468. else
  1469. startInterp = t-1
  1470. finishInterp = t
  1471. end
  1472. end
  1473. 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
  1474. end
  1475.  
  1476. local function CFrameFromTopBack(at, top, back)
  1477. local right = top:Cross(back)
  1478. return CFrame.new(at.x, at.y, at.z,
  1479. right.x, top.x, back.x,
  1480. right.y, top.y, back.y,
  1481. right.z, top.z, back.z)
  1482. end
  1483.  
  1484. function Triangle(a, b, c)
  1485. local edg1 = (c-a):Dot((b-a).unit)
  1486. local edg2 = (a-b):Dot((c-b).unit)
  1487. local edg3 = (b-c):Dot((a-c).unit)
  1488. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1489. a, b, c = a, b, c
  1490. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1491. a, b, c = b, c, a
  1492. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1493. a, b, c = c, a, b
  1494. else
  1495. assert(false, "unreachable")
  1496. end
  1497.  
  1498. local len1 = (c-a):Dot((b-a).unit)
  1499. local len2 = (b-a).magnitude - len1
  1500. local width = (a + (b-a).unit*len1 - c).magnitude
  1501.  
  1502. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1503.  
  1504. local list = {}
  1505.  
  1506. if len1 > 0.01 then
  1507. local w1 = Instance.new('WedgePart', m)
  1508. game:GetService("Debris"):AddItem(w1,5)
  1509. w1.Material = "SmoothPlastic"
  1510. w1.FormFactor = 'Custom'
  1511. w1.BrickColor = BrickColor.new("Really red")
  1512. w1.Transparency = 0
  1513. w1.Reflectance = 0
  1514. w1.Material = "SmoothPlastic"
  1515. w1.CanCollide = false
  1516. local l1 = Instance.new("PointLight",w1)
  1517. l1.Color = Color3.new(170,0,0)
  1518. NoOutline(w1)
  1519. local sz = Vector3.new(0.2, width, len1)
  1520. w1.Size = sz
  1521. local sp = Instance.new("SpecialMesh",w1)
  1522. sp.MeshType = "Wedge"
  1523. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1524. w1:BreakJoints()
  1525. w1.Anchored = true
  1526. w1.Parent = workspace
  1527. w1.Transparency = 0.7
  1528. table.insert(Effects,{w1,"Disappear",.01})
  1529. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1530. table.insert(list,w1)
  1531. end
  1532.  
  1533. if len2 > 0.01 then
  1534. local w2 = Instance.new('WedgePart', m)
  1535. game:GetService("Debris"):AddItem(w2,5)
  1536. w2.Material = "SmoothPlastic"
  1537. w2.FormFactor = 'Custom'
  1538. w2.BrickColor = BrickColor.new("Really red")
  1539. w2.Transparency = 0
  1540. w2.Reflectance = 0
  1541. w2.Material = "SmoothPlastic"
  1542. w2.CanCollide = false
  1543. local l2 = Instance.new("PointLight",w2)
  1544. l2.Color = Color3.new(170,0,0)
  1545. NoOutline(w2)
  1546. local sz = Vector3.new(0.2, width, len2)
  1547. w2.Size = sz
  1548. local sp = Instance.new("SpecialMesh",w2)
  1549. sp.MeshType = "Wedge"
  1550. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1551. w2:BreakJoints()
  1552. w2.Anchored = true
  1553. w2.Parent = workspace
  1554. w2.Transparency = 0.7
  1555. table.insert(Effects,{w2,"Disappear",.01})
  1556. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1557. table.insert(list,w2)
  1558. end
  1559. return unpack(list)
  1560. end
  1561.  
  1562.  
  1563. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1564. if hit.Parent == nil then
  1565. return
  1566. end
  1567. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1568. for _, v in pairs(hit.Parent:children()) do
  1569. if v:IsA("Humanoid") then
  1570. h = v
  1571. end
  1572. end
  1573. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1574. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1575. return
  1576. end
  1577. local c = Create("ObjectValue")({
  1578. Name = "creator",
  1579. Value = game:GetService("Players").MrGoo345,
  1580. Parent = h
  1581. })
  1582. game:GetService("Debris"):AddItem(c, 0.5)
  1583. if HitSound ~= nil and HitPitch ~= nil then
  1584. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1585. end
  1586. local Damage = math.random(minim, maxim)
  1587. local blocked = false
  1588. local block = hit.Parent:findFirstChild("Block")
  1589. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1590. blocked = true
  1591. block.Value = block.Value - 1
  1592. print(block.Value)
  1593. end
  1594. if blocked == false then
  1595. HitHealth = h.Health
  1596. h.MaxHealth = 100
  1597. h.Health = h.Health - Damage
  1598. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1599. print("gained kill")
  1600. dmg(h.Parent)
  1601. end
  1602. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1603. else
  1604. h.Health = h.Health - Damage / 2
  1605. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1606. end
  1607. if Type == "Knockdown" then
  1608. local hum = hit.Parent.Humanoid
  1609. hum.PlatformStand = true
  1610. coroutine.resume(coroutine.create(function(HHumanoid)
  1611. swait(1)
  1612. HHumanoid.PlatformStand = false
  1613. end), hum)
  1614. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1615. local bodvol = Create("BodyVelocity")({
  1616. velocity = angle * knockback,
  1617. P = 5000,
  1618. maxForce = Vector3.new(8000, 8000, 8000),
  1619. Parent = hit
  1620. })
  1621. local rl = Create("BodyAngularVelocity")({
  1622. P = 3000,
  1623. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1624. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1625. Parent = hit
  1626. })
  1627. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1628. game:GetService("Debris"):AddItem(rl, 0.5)
  1629. elseif Type == "Normal" then
  1630. local vp = Create("BodyVelocity")({
  1631. P = 500,
  1632. maxForce = Vector3.new(math.huge, 0, math.huge),
  1633. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1634. })
  1635. if knockback > 0 then
  1636. vp.Parent = hit.Parent.Head
  1637. end
  1638. game:GetService("Debris"):AddItem(vp, 0.5)
  1639. elseif Type == "Up" then
  1640. local bodyVelocity = Create("BodyVelocity")({
  1641. velocity = Vector3.new(0, 20, 0),
  1642. P = 5000,
  1643. maxForce = Vector3.new(8000, 8000, 8000),
  1644. Parent = hit
  1645. })
  1646. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1647. local bodyVelocity = Create("BodyVelocity")({
  1648. velocity = Vector3.new(0, 20, 0),
  1649. P = 5000,
  1650. maxForce = Vector3.new(8000, 8000, 8000),
  1651. Parent = hit
  1652. })
  1653. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1654. elseif Type == "Leech" then
  1655. local hum = hit.Parent.Humanoid
  1656. if hum ~= nil then
  1657. for i = 0, 2 do
  1658. 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)
  1659. end
  1660. Humanoid.Health = Humanoid.Health + 10
  1661. end
  1662. elseif Type == "UpKnock" then
  1663. local hum = hit.Parent.Humanoid
  1664. hum.PlatformStand = true
  1665. if hum ~= nil then
  1666. hitr = true
  1667. end
  1668. coroutine.resume(coroutine.create(function(HHumanoid)
  1669. swait(5)
  1670. HHumanoid.PlatformStand = false
  1671. hitr = false
  1672. end), hum)
  1673. local bodyVelocity = Create("BodyVelocity")({
  1674. velocity = Vector3.new(0, 20, 0),
  1675. P = 5000,
  1676. maxForce = Vector3.new(8000, 8000, 8000),
  1677. Parent = hit
  1678. })
  1679. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1680. local bodyVelocity = Create("BodyVelocity")({
  1681. velocity = Vector3.new(0, 20, 0),
  1682. P = 5000,
  1683. maxForce = Vector3.new(8000, 8000, 8000),
  1684. Parent = hit
  1685. })
  1686. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1687. elseif Type == "Snare" then
  1688. local bp = Create("BodyPosition")({
  1689. P = 2000,
  1690. D = 100,
  1691. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1692. position = hit.Parent.Torso.Position,
  1693. Parent = hit.Parent.Torso
  1694. })
  1695. game:GetService("Debris"):AddItem(bp, 1)
  1696. elseif Type == "Slashnare" then
  1697. 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)
  1698. for i = 1, math.random(4, 5) do
  1699. 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)
  1700. end
  1701. local bp = Create("BodyPosition")({
  1702. P = 2000,
  1703. D = 100,
  1704. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1705. position = hit.Parent.Torso.Position,
  1706. Parent = hit.Parent.Torso
  1707. })
  1708. game:GetService("Debris"):AddItem(bp, 1)
  1709. elseif Type == "Spike" then
  1710. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1711. local bp = Create("BodyPosition")({
  1712. P = 2000,
  1713. D = 100,
  1714. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1715. position = hit.Parent.Torso.Position,
  1716. Parent = hit.Parent.Torso
  1717. })
  1718. game:GetService("Debris"):AddItem(bp, 1)
  1719. elseif Type == "Freeze" then
  1720. local BodPos = Create("BodyPosition")({
  1721. P = 50000,
  1722. D = 1000,
  1723. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1724. position = hit.Parent.Torso.Position,
  1725. Parent = hit.Parent.Torso
  1726. })
  1727. local BodGy = Create("BodyGyro")({
  1728. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1729. P = 20000,
  1730. Parent = hit.Parent.Torso,
  1731. cframe = hit.Parent.Torso.CFrame
  1732. })
  1733. hit.Parent.Torso.Anchored = true
  1734. coroutine.resume(coroutine.create(function(Part)
  1735. swait(1.5)
  1736. Part.Anchored = false
  1737. end), hit.Parent.Torso)
  1738. game:GetService("Debris"):AddItem(BodPos, 3)
  1739. game:GetService("Debris"):AddItem(BodGy, 3)
  1740. end
  1741. local debounce = Create("BoolValue")({
  1742. Name = "DebounceHit",
  1743. Parent = hit.Parent,
  1744. Value = true
  1745. })
  1746. game:GetService("Debris"):AddItem(debounce, Delay)
  1747. c = Instance.new("ObjectValue")
  1748. c.Name = "creator"
  1749. c.Value = Player
  1750. c.Parent = h
  1751. game:GetService("Debris"):AddItem(c, 0.5)
  1752. end
  1753. end
  1754. function ShowDamage(Pos, Text, Time, Color)
  1755. local Rate = 0.03333333333333333
  1756. local Pos = Pos or Vector3.new(0, 0, 0)
  1757. local Text = Text or ""
  1758. local Time = Time or 2
  1759. local Color = Color or Color3.new(1, 0, 1)
  1760. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1761. EffectPart.Anchored = true
  1762. local BillboardGui = Create("BillboardGui")({
  1763. Size = UDim2.new(3, 0, 3, 0),
  1764. Adornee = EffectPart,
  1765. Parent = EffectPart
  1766. })
  1767. local TextLabel = Create("TextLabel")({
  1768. BackgroundTransparency = 1,
  1769. Size = UDim2.new(1, 0, 1, 0),
  1770. Text = Text,
  1771. TextColor3 = Color,
  1772. TextScaled = true,
  1773. Font = Enum.Font.ArialBold,
  1774. Parent = BillboardGui
  1775. })
  1776. game.Debris:AddItem(EffectPart, Time + 0.1)
  1777. EffectPart.Parent = game:GetService("Workspace")
  1778. delay(0, function()
  1779. local Frames = Time / Rate
  1780. for Frame = 1, Frames do
  1781. wait(Rate)
  1782. local Percent = Frame / Frames
  1783. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1784. TextLabel.TextTransparency = Percent
  1785. end
  1786. if EffectPart and EffectPart.Parent then
  1787. EffectPart:Destroy()
  1788. end
  1789. end)
  1790. end
  1791. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1792. for _, c in pairs(workspace:children()) do
  1793. local hum = c:findFirstChildOfClass("Humanoid")
  1794. if hum ~= nil then
  1795. local head = c:findFirstChild("Head")
  1796. if head ~= nil then
  1797. local targ = head.Position - Part.Position
  1798. local mag = targ.magnitude
  1799. if magni >= mag and c.Name ~= Player.Name then
  1800. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1801. end
  1802. end
  1803. end
  1804. end
  1805. end
  1806.  
  1807. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1808. for _, c in pairs(workspace:children()) do
  1809. local hum = c:findFirstChild("Humanoid")
  1810. if hum ~= nil then
  1811. local head = c:findFirstChild("Torso")
  1812. if head ~= nil then
  1813. local targ = head.Position - Part.Position
  1814. local mag = targ.magnitude
  1815. if magni >= mag and c.Name ~= Player.Name then
  1816. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1817. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1818. end
  1819. end
  1820. end
  1821. end
  1822. end
  1823.  
  1824. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1825. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1826. end
  1827.  
  1828. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1829. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1830. prt.Anchored=true
  1831. prt.CFrame=cframe
  1832. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1833. --http://www.roblox.com/asset/?id=4770560
  1834. game:GetService("Debris"):AddItem(prt,2)
  1835. CF=prt.CFrame
  1836. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1837. for i=0,1,0.2 do
  1838. wait()
  1839. Part.CFrame=CF*cf(0,0,-0.4)
  1840. end
  1841. for i=0,1,delay do
  1842. wait()
  1843. --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)
  1844. Mesh.Scale=Mesh.Scale
  1845. end
  1846. for i=0,1,0.1 do
  1847. wait()
  1848. Part.Transparency=i
  1849. end
  1850. Part.Parent=nil
  1851. end),prt,msh,CF)
  1852. end
  1853.  
  1854. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1855. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1856. prt.Anchored=true
  1857. prt.Material = "Neon"
  1858. prt.CFrame=cframe
  1859. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1860. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1861. game:GetService("Debris"):AddItem(prt,5)
  1862. coroutine.resume(coroutine.create(function(Part,Mesh)
  1863. for i=0,1,delay do
  1864. swait()
  1865. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1866. Part.Transparency=i
  1867. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1868. end
  1869. Part.Parent=nil
  1870. end),prt,msh)
  1871. end
  1872.  
  1873. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1874. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1875. prt.Anchored=true
  1876. prt.Material = "Neon"
  1877. prt.CFrame=cframe
  1878. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1879. game:GetService("Debris"):AddItem(prt,5)
  1880. coroutine.resume(coroutine.create(function(Part,Mesh)
  1881. local rtype = rottype
  1882. for i=0,1,delay do
  1883. swait()
  1884. if rtype == 1 then
  1885. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1886. elseif rtype == 2 then
  1887. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1888. end
  1889. Part.Transparency=i
  1890. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1891. end
  1892. Part.Parent=nil
  1893. end),prt,msh)
  1894. end
  1895.  
  1896. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1897. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1898. prt.Anchored=true
  1899. prt.CFrame=cframe
  1900. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1901. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1902. game:GetService("Debris"):AddItem(prt,5)
  1903. coroutine.resume(coroutine.create(function(Part,Mesh)
  1904. for i=0,1,delay do
  1905. wait()
  1906. Part.Transparency=i
  1907. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1908. end
  1909. Part.Parent=nil
  1910. end),prt,msh)
  1911. end
  1912.  
  1913. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1914. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1915. prt.Anchored=true
  1916. prt.Material = "Neon"
  1917. prt.CFrame=cframe
  1918. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1919. game:GetService("Debris"):AddItem(prt,5)
  1920. coroutine.resume(coroutine.create(function(Part,Mesh)
  1921. local rtype = rottype
  1922. for i=0,1,delay do
  1923. swait()
  1924. if rtype == 1 then
  1925. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1926. elseif rtype == 2 then
  1927. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1928. end
  1929. Part.Transparency=i
  1930. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1931. end
  1932. Part.Parent=nil
  1933. end),prt,msh)
  1934. end
  1935.  
  1936. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1937. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1938. prt.Anchored=true
  1939. prt.Material = "Neon"
  1940. prt.CFrame=cframe
  1941. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1942. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1943. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1944. game:GetService("Debris"):AddItem(prt,5)
  1945. coroutine.resume(coroutine.create(function(Part,Mesh)
  1946. local rtype = rottype
  1947. for i=0,1,delay do
  1948. swait()
  1949. if rtype == 1 then
  1950. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1951. elseif rtype == 2 then
  1952. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1953. end
  1954. dec.Transparency=i
  1955. dec2.Transparency=i
  1956. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1957. end
  1958. Part.Parent=nil
  1959. end),prt,msh)
  1960. end
  1961.  
  1962. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1963. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1964. prt.Anchored=true
  1965. prt.Material = "Neon"
  1966. prt.CFrame=cframe
  1967. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1968. game:GetService("Debris"):AddItem(prt,5)
  1969. coroutine.resume(coroutine.create(function(Part,Mesh)
  1970. local rtype = rottype
  1971. for i=0,1,delay do
  1972. swait()
  1973. if rtype == 1 then
  1974. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1975. elseif rtype == 2 then
  1976. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1977. end
  1978. prt.Transparency=i
  1979. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1980. end
  1981. Part.Parent=nil
  1982. end),prt,msh)
  1983. end
  1984.  
  1985. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1986. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1987. prt.Anchored=true
  1988. prt.Material = "Neon"
  1989. prt.CFrame=cframe
  1990. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1991. game:GetService("Debris"):AddItem(prt,5)
  1992. coroutine.resume(coroutine.create(function(Part,Mesh)
  1993. local rtype = rottype
  1994. for i=0,1,delay do
  1995. swait()
  1996. if rtype == 1 then
  1997. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1998. elseif rtype == 2 then
  1999. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2000. end
  2001. prt.Transparency=i
  2002. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2003. end
  2004. Part.Parent=nil
  2005. end),prt,msh)
  2006. end
  2007.  
  2008. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2009. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2010. prt.Anchored=true
  2011. prt.Material = "Neon"
  2012. prt.CFrame=cframe
  2013. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2014. game:GetService("Debris"):AddItem(prt,5)
  2015. coroutine.resume(coroutine.create(function(Part,Mesh)
  2016. local rtype = rottype
  2017. for i=0,1,delay do
  2018. swait()
  2019. if rtype == 1 then
  2020. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2021. elseif rtype == 2 then
  2022. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2023. end
  2024. prt.Transparency=i
  2025. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2026. end
  2027. Part.Parent=nil
  2028. end),prt,msh)
  2029. end
  2030.  
  2031. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2032. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2033. prt.Anchored=true
  2034. prt.Material = "Neon"
  2035. prt.CFrame=cframe
  2036. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2037. game:GetService("Debris"):AddItem(prt,5)
  2038. coroutine.resume(coroutine.create(function(Part,Mesh)
  2039. local rtype = rottype
  2040. for i=0,1,delay do
  2041. swait()
  2042. if rtype == 1 then
  2043. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2044. elseif rtype == 2 then
  2045. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2046. end
  2047. prt.Transparency=i
  2048. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2049. end
  2050. Part.Parent=nil
  2051. end),prt,msh)
  2052. end
  2053.  
  2054. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2055. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2056. prt.Anchored=false
  2057. prt.CFrame=cframe
  2058. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2059. local wld=weld(prt,prt,Parent,cframe)
  2060. game:GetService("Debris"):AddItem(prt,5)
  2061. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2062. for i=0,1,delay do
  2063. wait()
  2064. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2065. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2066. Part.Transparency=i
  2067. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2068. end
  2069. Part.Parent=nil
  2070. end),prt,msh,wld)
  2071. end
  2072.  
  2073. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2074. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2075. prt.Anchored=false
  2076. prt.CFrame=cframe
  2077. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2078. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2079. game:GetService("Debris"):AddItem(prt,5)
  2080. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2081. for i=0,1,delay do
  2082. wait()
  2083. Weld.C0=euler(i*20,0,0)
  2084. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2085. Part.Transparency=i
  2086. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2087. end
  2088. Part.Parent=nil
  2089. end),prt,msh,wld)
  2090. end
  2091.  
  2092. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2093. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2094. prt.Anchored=true
  2095. prt.CFrame=cframe
  2096. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2097. game:GetService("Debris"):AddItem(prt,2)
  2098. coroutine.resume(coroutine.create(function(Part,Mesh)
  2099. for i=0,1,delay do
  2100. wait()
  2101. Part.CFrame=Part.CFrame
  2102. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2103. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2104. prt2.Anchored=true
  2105. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2106. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2107. game:GetService("Debris"):AddItem(prt2,2)
  2108. coroutine.resume(coroutine.create(function(Part,Mesh)
  2109. for i=0,1,0.1 do
  2110. wait()
  2111. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2112. end
  2113. Part.Parent=nil
  2114. end),prt2,msh2)
  2115. end
  2116. for i=0,1,delay*2 do
  2117. wait()
  2118. Part.CFrame=Part.CFrame
  2119. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2120. end
  2121. Part.Parent=nil
  2122. end),prt,msh)
  2123. end
  2124.  
  2125. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2126. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2127. prt.Anchored=true
  2128. prt.CFrame=cframe
  2129. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2130. game:GetService("Debris"):AddItem(prt,2)
  2131. coroutine.resume(coroutine.create(function(Part,Mesh)
  2132. for i=0,1,delay do
  2133. wait()
  2134. Part.CFrame=Part.CFrame
  2135. Part.Transparency=i
  2136. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2137. end
  2138. Part.Parent=nil
  2139. end),prt,msh)
  2140. end
  2141.  
  2142. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2143. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2144. prt.Anchored=true
  2145. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2146. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2147. game:GetService("Debris"):AddItem(prt,2)
  2148. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2149. CF=Part.CFrame
  2150. Numbb=0
  2151. randnumb=math.random()/10
  2152. rand1=math.random()/10
  2153. for i=0,1,rand1 do
  2154. wait()
  2155. CF=CF*cf(0,math.random()/2,0)
  2156. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2157. Part.CFrame=CF*euler(Numbb,0,0)
  2158. Part.Transparency=i
  2159. Numbb=Numbb+randnumb
  2160. end
  2161. Part.Parent=nil
  2162. end),prt,CF,Numbb,randnumb)
  2163. end
  2164.  
  2165. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2166. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2167. prt.Anchored=true
  2168. prt.CFrame=cframe
  2169. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2170. game:GetService("Debris"):AddItem(prt,5)
  2171. coroutine.resume(coroutine.create(function(Part,Mesh)
  2172. for i=0,1,delay do
  2173. wait()
  2174. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2175. Part.Transparency=i
  2176. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2177. end
  2178. Part.Parent=nil
  2179. end),prt,msh)
  2180. end
  2181.  
  2182. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2183. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2184. prt.Anchored=true
  2185. prt.CFrame=cframe
  2186. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2187. game:GetService("Debris"):AddItem(prt,2)
  2188. coroutine.resume(coroutine.create(function(Part,Mesh)
  2189. for i=0,1,delay do
  2190. wait()
  2191. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2192. Part.Transparency=i
  2193. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2194. end
  2195. Part.Parent=nil
  2196. end),prt,msh)
  2197. end
  2198.  
  2199. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2200. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2201. prt.Anchored=true
  2202. prt.CFrame=cframe*cf(x,y,z)
  2203. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2204. game:GetService("Debris"):AddItem(prt,5)
  2205. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2206. local num=math.random()
  2207. local num2=math.random(-3,2)+math.random()
  2208. local numm=0
  2209. for i=0,1,delay*2 do
  2210. swait()
  2211. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2212. Part.Transparency=i
  2213. numm=numm+0.01
  2214. end
  2215. Part.Parent=nil
  2216. Mesh.Parent=nil
  2217. end),prt,msh,x,y,z)
  2218. end
  2219.  
  2220. function dmgstart(dmg,what)
  2221. hitcon = what.Touched:connect(function(hit)
  2222. local hum = hit.Parent:FindFirstChild("Humanoid")
  2223. if hum and not hum:IsDescendantOf(Character) then
  2224. hum:TakeDamage(dmg)
  2225. end
  2226. end)
  2227. end
  2228.  
  2229. function dmgstop()
  2230. hitcon:disconnect()
  2231. end
  2232.  
  2233. function Cloak()
  2234. Face.Parent=nil
  2235. cloaked=true
  2236. for _,v in pairs(Torso.Parent:children()) do
  2237. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2238. coroutine.resume(coroutine.create(function()
  2239. for i=0,1,0.2 do
  2240. wait()
  2241. v.Transparency=i
  2242. end
  2243. v.Transparency=1
  2244. end))
  2245. end
  2246. if v.className=="Hat" then
  2247. hatp=v.Handle
  2248. coroutine.resume(coroutine.create(function(derp)
  2249. for i=0,1,0.2 do
  2250. wait()
  2251. derp.Transparency=i
  2252. end
  2253. derp.Transparency=1
  2254. end),hatp)
  2255. end
  2256. end
  2257. for _,v in pairs(m:children()) do
  2258. if v.className=="Part" then
  2259. coroutine.resume(coroutine.create(function()
  2260. for i=0,1,0.2 do
  2261. wait()
  2262. v.Transparency=i
  2263. end
  2264. v.Transparency=1
  2265. end))
  2266. end
  2267. end
  2268. end
  2269.  
  2270. function UnCloak()
  2271. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2272. Face.Parent=Head
  2273. cloaked=false
  2274. for _,v in pairs(Torso.Parent:children()) do
  2275. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2276. coroutine.resume(coroutine.create(function()
  2277. for i=0,1,0.1 do
  2278. wait()
  2279. v.Transparency=v.Transparency-0.1
  2280. end
  2281. v.Transparency=0
  2282. end))
  2283. end
  2284. if v.className=="Hat" then
  2285. hatp=v.Handle
  2286. coroutine.resume(coroutine.create(function(derp)
  2287. for i=0,1,0.1 do
  2288. wait()
  2289. derp.Transparency=derp.Transparency-0.1
  2290. end
  2291. derp.Transparency=0
  2292. end),hatp)
  2293. end
  2294. end
  2295. for _,v in pairs(m:children()) do
  2296. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2297. coroutine.resume(coroutine.create(function()
  2298. for i=0,1,0.1 do
  2299. wait()
  2300. v.Transparency=v.Transparency-0.1
  2301. end
  2302. v.Transparency=0
  2303. end))
  2304. v.Transparency=0
  2305. end
  2306. end
  2307. end
  2308.  
  2309. local origcolor = BrickColor.new("Pastel light blue")
  2310. ---- This section of explosions.
  2311.  
  2312. ----
  2313.  
  2314.  
  2315. function ring(type,pos,scale,value)
  2316. local type = type
  2317. local rng = Instance.new("Part", char)
  2318. rng.Anchored = true
  2319. rng.BrickColor = origcolor
  2320. rng.CanCollide = false
  2321. rng.FormFactor = 3
  2322. rng.Name = "Ring"
  2323. rng.Size = Vector3.new(1, 1, 1)
  2324. rng.Transparency = 0
  2325. rng.TopSurface = 0
  2326. rng.BottomSurface = 0
  2327. rng.CFrame = pos
  2328. local rngm = Instance.new("SpecialMesh", rng)
  2329. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2330. rngm.Scale = scale
  2331. local scaler2 = 1
  2332. if type == "Add" then
  2333. scaler2 = 1*value
  2334. elseif type == "Divide" then
  2335. scaler2 = 1/value
  2336. end
  2337. coroutine.resume(coroutine.create(function()
  2338. for i = 0,10,0.1 do
  2339. swait()
  2340. if type == "Add" then
  2341. scaler2 = scaler2 - 0.01*value
  2342. elseif type == "Divide" then
  2343. scaler2 = scaler2 - 0.01/value
  2344. end
  2345. rng.Transparency = rng.Transparency + 0.01
  2346. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2347. end
  2348. rng:Destroy()
  2349. end))
  2350. end
  2351.  
  2352.  
  2353. function wave(type,pos,scale,value)
  2354. local type = type
  2355. local rng = Instance.new("Part", char)
  2356. rng.Anchored = true
  2357. rng.BrickColor = origcolor
  2358. rng.CanCollide = false
  2359. rng.FormFactor = 3
  2360. rng.Name = "Ring"
  2361. rng.Size = Vector3.new(1, 1, 1)
  2362. rng.Transparency = 0
  2363. rng.TopSurface = 0
  2364. rng.BottomSurface = 0
  2365. rng.CFrame = pos
  2366. local rngm = Instance.new("SpecialMesh", rng)
  2367. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2368. rngm.Scale = scale
  2369. local scaler2 = 1
  2370. if type == "Add" then
  2371. scaler2 = 1*value
  2372. elseif type == "Divide" then
  2373. scaler2 = 1/value
  2374. end
  2375. coroutine.resume(coroutine.create(function()
  2376. for i = 0,10,0.1 do
  2377. swait()
  2378. if type == "Add" then
  2379. scaler2 = scaler2 - 0.01*value
  2380. elseif type == "Divide" then
  2381. scaler2 = scaler2 - 0.01/value
  2382. end
  2383. rng.Transparency = rng.Transparency + 0.01
  2384. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2385. end
  2386. rng:Destroy()
  2387. end))
  2388. end
  2389.  
  2390. function wind(type,pos,scale,value,speed)
  2391. local type = type
  2392. local rng = Instance.new("Part", char)
  2393. rng.Anchored = true
  2394. rng.BrickColor = origcolor
  2395. rng.CanCollide = false
  2396. rng.FormFactor = 3
  2397. rng.Name = "Ring"
  2398. rng.Size = Vector3.new(1, 1, 1)
  2399. rng.Transparency = 0
  2400. rng.TopSurface = 0
  2401. rng.BottomSurface = 0
  2402. rng.CFrame = pos
  2403. local rngm = Instance.new("SpecialMesh", rng)
  2404. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2405. rngm.Scale = scale
  2406. local scaler2 = 1
  2407. if type == "Add" then
  2408. scaler2 = 1*value
  2409. elseif type == "Divide" then
  2410. scaler2 = 1/value
  2411. end
  2412. coroutine.resume(coroutine.create(function()
  2413. for i = 0,10,0.1 do
  2414. swait()
  2415. if type == "Add" then
  2416. scaler2 = scaler2 - 0.01*value
  2417. elseif type == "Divide" then
  2418. scaler2 = scaler2 - 0.01/value
  2419. end
  2420. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2421. rng.Transparency = rng.Transparency + 0.01
  2422. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2423. end
  2424. rng:Destroy()
  2425. end))
  2426. end
  2427.  
  2428. function groundwind(type,pos,scale,value,speed)
  2429. local type = type
  2430. local rng = Instance.new("Part", char)
  2431. rng.Anchored = true
  2432. rng.BrickColor = origcolor
  2433. rng.CanCollide = false
  2434. rng.FormFactor = 3
  2435. rng.Name = "Ring"
  2436. rng.Size = Vector3.new(1, 1, 1)
  2437. rng.Transparency = 0
  2438. rng.TopSurface = 0
  2439. rng.BottomSurface = 0
  2440. rng.CFrame = pos
  2441. local rngm = Instance.new("SpecialMesh", rng)
  2442. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2443. rngm.Scale = scale
  2444. local scaler2 = 1
  2445. if type == "Add" then
  2446. scaler2 = 1*value
  2447. elseif type == "Divide" then
  2448. scaler2 = 1/value
  2449. end
  2450. coroutine.resume(coroutine.create(function()
  2451. for i = 0,10,0.1 do
  2452. swait()
  2453. if type == "Add" then
  2454. scaler2 = scaler2 - 0.01*value
  2455. elseif type == "Divide" then
  2456. scaler2 = scaler2 - 0.01/value
  2457. end
  2458. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2459. rng.Transparency = rng.Transparency + 0.01
  2460. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2461. end
  2462. rng:Destroy()
  2463. end))
  2464. end
  2465.  
  2466. function CameraManager()
  2467. if TwoD and not CamInterrupt then
  2468. if Humanoid.Health > 0 then
  2469. Camera.CameraSubject = Humanoid
  2470. Camera.CameraType = "Scriptable"
  2471. Humanoid.AutoRotate = false
  2472. if Booleans.GyroUse then
  2473. Directer.MaxTorque = Vec3(0, huge, 0)
  2474. else
  2475. Directer.MaxTorque = Vec3(0, 0, 0)
  2476. end
  2477. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2478. if Booleans.CamFollow then
  2479. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2480. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2481. else
  2482. CPart.Position = RootPart.Position
  2483. end
  2484. else
  2485. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2486. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2487. end
  2488. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2489. else
  2490. Camera.CameraSubject = Humanoid
  2491. Camera.CameraType = "Custom"
  2492. Controller.Disabled = false
  2493. end
  2494. end
  2495. end
  2496.  
  2497. function ring(type,pos,scale,value)
  2498. local type = type
  2499. local rng = Instance.new("Part", char)
  2500. rng.Anchored = true
  2501. rng.BrickColor = origcolor
  2502. rng.CanCollide = false
  2503. rng.FormFactor = 3
  2504. rng.Name = "Ring"
  2505. rng.Size = Vector3.new(1, 1, 1)
  2506. rng.Transparency = 0
  2507. rng.TopSurface = 0
  2508. rng.BottomSurface = 0
  2509. rng.CFrame = pos
  2510. local rngm = Instance.new("SpecialMesh", rng)
  2511. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2512. rngm.Scale = scale
  2513. local scaler2 = 1
  2514. if type == "Add" then
  2515. scaler2 = 1*value
  2516. elseif type == "Divide" then
  2517. scaler2 = 1/value
  2518. end
  2519. coroutine.resume(coroutine.create(function()
  2520. for i = 0,10,0.1 do
  2521. swait()
  2522. if type == "Add" then
  2523. scaler2 = scaler2 - 0.01*value
  2524. elseif type == "Divide" then
  2525. scaler2 = scaler2 - 0.01/value
  2526. end
  2527. rng.Transparency = rng.Transparency + 0.01
  2528. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2529. end
  2530. rng:Destroy()
  2531. end))
  2532. end
  2533.  
  2534.  
  2535. function wave(type,pos,scale,value)
  2536. local type = type
  2537. local rng = Instance.new("Part", char)
  2538. rng.Anchored = true
  2539. rng.BrickColor = origcolor
  2540. rng.CanCollide = false
  2541. rng.FormFactor = 3
  2542. rng.Name = "Ring"
  2543. rng.Size = Vector3.new(1, 1, 1)
  2544. rng.Transparency = 0
  2545. rng.TopSurface = 0
  2546. rng.BottomSurface = 0
  2547. rng.CFrame = pos
  2548. local rngm = Instance.new("SpecialMesh", rng)
  2549. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2550. rngm.Scale = scale
  2551. local scaler2 = 1
  2552. if type == "Add" then
  2553. scaler2 = 1*value
  2554. elseif type == "Divide" then
  2555. scaler2 = 1/value
  2556. end
  2557. coroutine.resume(coroutine.create(function()
  2558. for i = 0,10,0.1 do
  2559. swait()
  2560. if type == "Add" then
  2561. scaler2 = scaler2 - 0.01*value
  2562. elseif type == "Divide" then
  2563. scaler2 = scaler2 - 0.01/value
  2564. end
  2565. rng.Transparency = rng.Transparency + 0.01
  2566. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2567. end
  2568. rng:Destroy()
  2569. end))
  2570. end
  2571.  
  2572. function sphere(bonuspeed,type,pos,scale,value,color)
  2573. local type = type
  2574. local rng = Instance.new("Part", char)
  2575. rng.Anchored = true
  2576. if ModeOfGlitch ~= 9 then
  2577. rng.BrickColor = color
  2578. elseif ModeOfGlitch == 9 then
  2579. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2580. end
  2581. rng.CanCollide = false
  2582. rng.FormFactor = 3
  2583. rng.Name = "Ring"
  2584. rng.Material = "Neon"
  2585. rng.Size = Vector3.new(1, 1, 1)
  2586. rng.Transparency = 0
  2587. rng.TopSurface = 0
  2588. rng.BottomSurface = 0
  2589. rng.CFrame = pos
  2590. local rngm = Instance.new("SpecialMesh", rng)
  2591. rngm.MeshType = "Sphere"
  2592. rngm.Scale = scale
  2593. if rainbowmode == true then
  2594. rng.Color = Color3.new(r/255,g/255,b/255)
  2595. end
  2596. if ModeOfGlitch == 9 then
  2597. coroutine.resume(coroutine.create(function()
  2598. while true do
  2599. swait()
  2600. if rng.Parent ~= nil then
  2601. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2602. else
  2603. break
  2604. end
  2605. end
  2606. end))
  2607. end
  2608. local scaler2 = 1
  2609. if type == "Add" then
  2610. scaler2 = 1*value
  2611. elseif type == "Divide" then
  2612. scaler2 = 1/value
  2613. end
  2614. coroutine.resume(coroutine.create(function()
  2615. for i = 0,10/bonuspeed,0.1 do
  2616. swait()
  2617. if rainbowmode == true then
  2618. rng.Color = Color3.new(r/255,g/255,b/255)
  2619. end
  2620. if type == "Add" then
  2621. scaler2 = scaler2 - 0.01*value/bonuspeed
  2622. elseif type == "Divide" then
  2623. scaler2 = scaler2 - 0.01/value*bonuspeed
  2624. end
  2625. if chaosmode == true then
  2626. rng.BrickColor = BrickColor.random()
  2627. end
  2628. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2629. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2630. end
  2631. rng:Destroy()
  2632. end))
  2633. end
  2634.  
  2635. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2636. local type = type
  2637. local rng = Instance.new("Part", char)
  2638. rng.Anchored = true
  2639. if ModeOfGlitch ~= 9 then
  2640. rng.BrickColor = color
  2641. elseif ModeOfGlitch == 9 then
  2642. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2643. end
  2644. rng.CanCollide = false
  2645. rng.FormFactor = 3
  2646. rng.Name = "Ring"
  2647. rng.Material = "Neon"
  2648. rng.Size = Vector3.new(1, 1, 1)
  2649. rng.Transparency = 0
  2650. rng.TopSurface = 0
  2651. rng.BottomSurface = 0
  2652. rng.CFrame = pos
  2653. local rngm = Instance.new("SpecialMesh", rng)
  2654. rngm.MeshType = "Sphere"
  2655. rngm.Scale = scale
  2656. local scaler2 = 1
  2657. local scaler2b = 1
  2658. local scaler2c = 1
  2659. if type == "Add" then
  2660. scaler2 = 1*value
  2661. scaler2b = 1*value2
  2662. scaler2c = 1*value3
  2663. elseif type == "Divide" then
  2664. scaler2 = 1/value
  2665. scaler2b = 1/value2
  2666. scaler2c = 1/value3
  2667. end
  2668. if ModeOfGlitch == 9 then
  2669. coroutine.resume(coroutine.create(function()
  2670. while true do
  2671. swait()
  2672. if rng.Parent ~= nil then
  2673. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2674. else
  2675. break
  2676. end
  2677. end
  2678. end))
  2679. end
  2680. coroutine.resume(coroutine.create(function()
  2681. for i = 0,10/bonuspeed,0.1 do
  2682. swait()
  2683. if type == "Add" then
  2684. scaler2 = scaler2 - 0.01*value/bonuspeed
  2685. scaler2b = scaler2b - 0.01*value/bonuspeed
  2686. scaler2c = scaler2c - 0.01*value/bonuspeed
  2687. elseif type == "Divide" then
  2688. scaler2 = scaler2 - 0.01/value*bonuspeed
  2689. scaler2b = scaler2b - 0.01/value*bonuspeed
  2690. scaler2c = scaler2c - 0.01/value*bonuspeed
  2691. end
  2692. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2693. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2694. end
  2695. rng:Destroy()
  2696. end))
  2697. end
  2698.  
  2699. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2700. local type = type
  2701. local rotenable = rotatingop
  2702. local rng = Instance.new("Part", char)
  2703. rng.Anchored = true
  2704. rng.BrickColor = color
  2705. rng.CanCollide = false
  2706. rng.FormFactor = 3
  2707. rng.Name = "Ring"
  2708. rng.Material = "Neon"
  2709. rng.Size = Vector3.new(1, 1, 1)
  2710. rng.Transparency = 0
  2711. if typeoftrans == "In" then
  2712. rng.Transparency = 1
  2713. end
  2714. rng.TopSurface = 0
  2715. rng.BottomSurface = 0
  2716. rng.CFrame = pos
  2717. local rngm = Instance.new("SpecialMesh", rng)
  2718. rngm.MeshType = "FileMesh"
  2719. if typeofshape == "Normal" then
  2720. rngm.MeshId = "rbxassetid://662586858"
  2721. elseif typeofshape == "Round" then
  2722. rngm.MeshId = "rbxassetid://662585058"
  2723. end
  2724. rngm.Scale = scale
  2725. local scaler2 = 1/10
  2726. if type == "Add" then
  2727. scaler2 = 1*value/10
  2728. elseif type == "Divide" then
  2729. scaler2 = 1/value/10
  2730. end
  2731. local randomrot = math.random(1,2)
  2732. coroutine.resume(coroutine.create(function()
  2733. for i = 0,10/bonuspeed,0.1 do
  2734. swait()
  2735. if type == "Add" then
  2736. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2737. elseif type == "Divide" then
  2738. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2739. end
  2740. if rotenable == true then
  2741. if randomrot == 1 then
  2742. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2743. elseif randomrot == 2 then
  2744. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2745. end
  2746. end
  2747. if typeoftrans == "Out" then
  2748. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2749. elseif typeoftrans == "In" then
  2750. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2751. end
  2752. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2753. end
  2754. rng:Destroy()
  2755. end))
  2756. end
  2757.  
  2758. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2759. local type = type
  2760. local rng = Instance.new("Part", char)
  2761. rng.Anchored = true
  2762. rng.BrickColor = color
  2763. rng.CanCollide = false
  2764. rng.FormFactor = 3
  2765. rng.Name = "Ring"
  2766. rng.Material = "Neon"
  2767. rng.Size = Vector3.new(1, 1, 1)
  2768. rng.Transparency = 0
  2769. rng.TopSurface = 0
  2770. rng.BottomSurface = 0
  2771. rng.CFrame = pos
  2772. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2773. local rngm = Instance.new("SpecialMesh", rng)
  2774. rngm.MeshType = "Brick"
  2775. rngm.Scale = vt(x1,y1,z1)
  2776. if rainbowmode == true then
  2777. rng.Color = Color3.new(r/255,g/255,b/255)
  2778. end
  2779. local scaler2 = 1
  2780. local speeder = FastSpeed/10
  2781. if type == "Add" then
  2782. scaler2 = 1*value
  2783. elseif type == "Divide" then
  2784. scaler2 = 1/value
  2785. end
  2786. coroutine.resume(coroutine.create(function()
  2787. for i = 0,10/bonuspeed,0.1 do
  2788. swait()
  2789. if rainbowmode == true then
  2790. rng.Color = Color3.new(r/255,g/255,b/255)
  2791. end
  2792. if type == "Add" then
  2793. scaler2 = scaler2 - 0.01*value/bonuspeed
  2794. elseif type == "Divide" then
  2795. scaler2 = scaler2 - 0.01/value*bonuspeed
  2796. end
  2797. if chaosmode == true then
  2798. rng.BrickColor = BrickColor.random()
  2799. end
  2800. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2801. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2802. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2803. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2810. local type = type
  2811. local rng = Instance.new("Part", char)
  2812. rng.Anchored = true
  2813. rng.BrickColor = color
  2814. rng.CanCollide = false
  2815. rng.FormFactor = 3
  2816. rng.Name = "Ring"
  2817. rng.Material = "Neon"
  2818. rng.Size = Vector3.new(1, 1, 1)
  2819. rng.Transparency = 0
  2820. rng.TopSurface = 0
  2821. rng.BottomSurface = 0
  2822. rng.CFrame = pos
  2823. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2824. local rngm = Instance.new("SpecialMesh", rng)
  2825. rngm.MeshType = "Brick"
  2826. rngm.Scale = vt(x1,y1,z1)
  2827. if rainbowmode == true then
  2828. rng.Color = Color3.new(r/255,g/255,b/255)
  2829. end
  2830. local scaler2 = 1
  2831. local speeder = FastSpeed/10
  2832. if type == "Add" then
  2833. scaler2 = 1*value
  2834. elseif type == "Divide" then
  2835. scaler2 = 1/value
  2836. end
  2837. coroutine.resume(coroutine.create(function()
  2838. for i = 0,10/bonuspeed,0.1 do
  2839. swait()
  2840. if rainbowmode == true then
  2841. rng.Color = Color3.new(r/255,g/255,b/255)
  2842. end
  2843. if type == "Add" then
  2844. scaler2 = scaler2 - 0.01*value/bonuspeed
  2845. elseif type == "Divide" then
  2846. scaler2 = scaler2 - 0.01/value*bonuspeed
  2847. end
  2848. if chaosmode == true then
  2849. rng.BrickColor = BrickColor.random()
  2850. end
  2851. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2852. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2853. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2854. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2855. end
  2856. rng:Destroy()
  2857. end))
  2858. end
  2859.  
  2860. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2861. local type = type
  2862. local rng = Instance.new("Part", char)
  2863. rng.Anchored = true
  2864. rng.BrickColor = color
  2865. rng.CanCollide = false
  2866. rng.FormFactor = 3
  2867. rng.Name = "Ring"
  2868. rng.Material = "Neon"
  2869. rng.Size = Vector3.new(1, 1, 1)
  2870. rng.Transparency = 0
  2871. rng.TopSurface = 0
  2872. rng.BottomSurface = 0
  2873. rng.CFrame = pos
  2874. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2875. local rngm = Instance.new("SpecialMesh", rng)
  2876. rngm.MeshType = "Brick"
  2877. rngm.Scale = vt(x1,y1,z1)
  2878. if rainbowmode == true then
  2879. rng.Color = Color3.new(r/255,g/255,b/255)
  2880. end
  2881. local scaler2 = 0
  2882. local speeder = FastSpeed/10
  2883. if type == "Add" then
  2884. scaler2 = 1*value
  2885. elseif type == "Divide" then
  2886. scaler2 = 1/value
  2887. end
  2888. coroutine.resume(coroutine.create(function()
  2889. for i = 0,10/bonuspeed,0.1 do
  2890. swait()
  2891. if rainbowmode == true then
  2892. rng.Color = Color3.new(r/255,g/255,b/255)
  2893. end
  2894. if type == "Add" then
  2895. scaler2 = scaler2 - 0.01*value/bonuspeed
  2896. elseif type == "Divide" then
  2897. scaler2 = scaler2 - 0.01/value*bonuspeed
  2898. end
  2899. if chaosmode == true then
  2900. rng.BrickColor = BrickColor.random()
  2901. end
  2902. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2903. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2904. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2905. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2906. end
  2907. rng:Destroy()
  2908. end))
  2909. end
  2910.  
  2911. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2912. local type = type
  2913. local rng = Instance.new("Part", char)
  2914. rng.Anchored = true
  2915. rng.BrickColor = color
  2916. rng.Color = color3
  2917. rng.CanCollide = false
  2918. rng.FormFactor = 3
  2919. rng.Name = "Ring"
  2920. rng.Material = "Neon"
  2921. rng.Size = Vector3.new(1, 1, 1)
  2922. rng.Transparency = 0
  2923. rng.TopSurface = 0
  2924. rng.BottomSurface = 0
  2925. rng.CFrame = pos
  2926. local rngm = Instance.new("SpecialMesh", rng)
  2927. rngm.MeshType = "Brick"
  2928. rngm.Scale = scale
  2929. local scaler2 = 1
  2930. local scaler2b = 1
  2931. local scaler2c = 1
  2932. if type == "Add" then
  2933. scaler2 = 1*value
  2934. scaler2b = 1*value2
  2935. scaler2c = 1*value3
  2936. elseif type == "Divide" then
  2937. scaler2 = 1/value
  2938. scaler2b = 1/value2
  2939. scaler2c = 1/value3
  2940. end
  2941. coroutine.resume(coroutine.create(function()
  2942. for i = 0,10/bonuspeed,0.1 do
  2943. swait()
  2944. if type == "Add" then
  2945. scaler2 = scaler2 - 0.01*value/bonuspeed
  2946. scaler2b = scaler2b - 0.01*value/bonuspeed
  2947. scaler2c = scaler2c - 0.01*value/bonuspeed
  2948. elseif type == "Divide" then
  2949. scaler2 = scaler2 - 0.01/value*bonuspeed
  2950. scaler2b = scaler2b - 0.01/value*bonuspeed
  2951. scaler2c = scaler2c - 0.01/value*bonuspeed
  2952. end
  2953. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2954. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2955. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2956. end
  2957. rng:Destroy()
  2958. end))
  2959. end
  2960.  
  2961. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2962. local type = type
  2963. local rng = Instance.new("Part", char)
  2964. rng.Anchored = true
  2965. if ModeOfGlitch ~= 9 then
  2966. rng.BrickColor = color
  2967. elseif ModeOfGlitch == 9 then
  2968. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2969. end
  2970. rng.CanCollide = false
  2971. rng.FormFactor = 3
  2972. rng.Name = "Ring"
  2973. rng.Material = "Neon"
  2974. rng.Size = Vector3.new(1, 1, 1)
  2975. rng.Transparency = 0
  2976. rng.TopSurface = 0
  2977. rng.BottomSurface = 0
  2978. rng.CFrame = pos
  2979. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2980. local rngm = Instance.new("SpecialMesh", rng)
  2981. rngm.MeshType = "Sphere"
  2982. rngm.Scale = vt(x1,y1,z1)
  2983. if rainbowmode == true then
  2984. rng.Color = Color3.new(r/255,g/255,b/255)
  2985. end
  2986. if ModeOfGlitch == 9 then
  2987. coroutine.resume(coroutine.create(function()
  2988. while true do
  2989. swait()
  2990. if rng.Parent ~= nil then
  2991. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2992. else
  2993. break
  2994. end
  2995. end
  2996. end))
  2997. end
  2998. local scaler2 = 1
  2999. local speeder = FastSpeed
  3000. if type == "Add" then
  3001. scaler2 = 1*value
  3002. elseif type == "Divide" then
  3003. scaler2 = 1/value
  3004. end
  3005. coroutine.resume(coroutine.create(function()
  3006. for i = 0,10/bonuspeed,0.1 do
  3007. swait()
  3008. if rainbowmode == true then
  3009. rng.Color = Color3.new(r/255,g/255,b/255)
  3010. end
  3011. if type == "Add" then
  3012. scaler2 = scaler2 - 0.01*value/bonuspeed
  3013. elseif type == "Divide" then
  3014. scaler2 = scaler2 - 0.01/value*bonuspeed
  3015. end
  3016. if chaosmode == true then
  3017. rng.BrickColor = BrickColor.random()
  3018. end
  3019. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3020. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3021. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3022. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3023. end
  3024. rng:Destroy()
  3025. end))
  3026. end
  3027.  
  3028.  
  3029. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3030. local type = type
  3031. local rng = Instance.new("Part", char)
  3032. rng.Anchored = true
  3033. if ModeOfGlitch ~= 9 then
  3034. rng.BrickColor = color
  3035. elseif ModeOfGlitch == 9 then
  3036. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3037. end
  3038. rng.CanCollide = false
  3039. rng.FormFactor = 3
  3040. rng.Name = "Ring"
  3041. rng.Material = "Neon"
  3042. rng.Size = Vector3.new(1, 1, 1)
  3043. rng.Transparency = 1
  3044. rng.TopSurface = 0
  3045. rng.BottomSurface = 0
  3046. rng.CFrame = pos
  3047. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3048. local rngm = Instance.new("SpecialMesh", rng)
  3049. rngm.MeshType = "Sphere"
  3050. rngm.Scale = vt(x1,y1,z1)
  3051. if rainbowmode == true then
  3052. rng.Color = Color3.new(r/255,g/255,b/255)
  3053. end
  3054. if ModeOfGlitch == 9 then
  3055. coroutine.resume(coroutine.create(function()
  3056. while true do
  3057. swait()
  3058. if rng.Parent ~= nil then
  3059. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3060. else
  3061. break
  3062. end
  3063. end
  3064. end))
  3065. end
  3066. local scaler2 = 1
  3067. local speeder = FastSpeed
  3068. if type == "Add" then
  3069. scaler2 = 1*value
  3070. elseif type == "Divide" then
  3071. scaler2 = 1/value
  3072. end
  3073. coroutine.resume(coroutine.create(function()
  3074. for i = 0,10/bonuspeed,0.1 do
  3075. swait()
  3076. if rainbowmode == true then
  3077. rng.Color = Color3.new(r/255,g/255,b/255)
  3078. end
  3079. if type == "Add" then
  3080. scaler2 = scaler2 - 0.01*value/bonuspeed
  3081. elseif type == "Divide" then
  3082. scaler2 = scaler2 - 0.01/value*bonuspeed
  3083. end
  3084. if chaosmode == true then
  3085. rng.BrickColor = BrickColor.random()
  3086. end
  3087. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3088. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3089. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3090. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3091. end
  3092. rng:Destroy()
  3093. end))
  3094. end
  3095.  
  3096. function dmg(dude)
  3097. if dude.Name ~= Character then
  3098. local keptcolor = MAINRUINCOLOR
  3099. local bgf = Instance.new("BodyGyro",dude.Head)
  3100. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3101. --[[local val = Instance.new("BoolValue",dude)
  3102. val.Name = "IsHit"]]--
  3103. local ds = coroutine.wrap(function()
  3104. dude:WaitForChild("Head"):BreakJoints()
  3105. for i, v in pairs(dude:GetChildren()) do
  3106. if v:IsA("Part") or v:IsA("MeshPart") then
  3107. v.Name = "DEMINISHED"
  3108. end
  3109. end
  3110. wait(0.5)
  3111. targetted = nil
  3112. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3113. coroutine.resume(coroutine.create(function()
  3114. for i, v in pairs(dude:GetChildren()) do
  3115. if v:IsA("Accessory") then
  3116. v:Destroy()
  3117. end
  3118. if v:IsA("Humanoid") then
  3119. v:Destroy()
  3120. end
  3121. if v:IsA("CharacterMesh") then
  3122. v:Destroy()
  3123. end
  3124. if v:IsA("Model") then
  3125. v:Destroy()
  3126. end
  3127. if v:IsA("Part") or v:IsA("MeshPart") then
  3128. for x, o in pairs(v:GetChildren()) do
  3129. if o:IsA("Decal") then
  3130. o:Destroy()
  3131. end
  3132. end
  3133. coroutine.resume(coroutine.create(function()
  3134. v.Material = "Neon"
  3135. v.CanCollide = false
  3136. v.Anchored = false
  3137. local bld = Instance.new("ParticleEmitter",v)
  3138. bld.LightEmission = 0.75
  3139. bld.Texture = "rbxassetid://363275192" ---284205403
  3140. bld.Color = ColorSequence.new(keptcolor.Color)
  3141. bld.Rate = 500
  3142. bld.Lifetime = NumberRange.new(1)
  3143. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3144. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3145. bld.Speed = NumberRange.new(2,5)
  3146. bld.VelocitySpread = 50000
  3147. bld.Rotation = NumberRange.new(-500,500)
  3148. bld.RotSpeed = NumberRange.new(-500,500)
  3149. local sbs = Instance.new("BodyPosition", v)
  3150. sbs.P = 3000
  3151. sbs.D = 1000
  3152. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3153. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3154. v.Color = keptcolor.Color
  3155. coroutine.resume(coroutine.create(function()
  3156. for i = 0, 49 do
  3157. swait(1)
  3158. v:BreakJoints()
  3159. v.Transparency = v.Transparency + 0.02
  3160. end
  3161. v:BreakJoints()
  3162. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3163. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3164. bld.Speed = NumberRange.new(10,25)
  3165. bld.Drag = 5
  3166. bld.Acceleration = vt(0,2,0)
  3167. wait(0.5)
  3168. bld.Enabled = false
  3169. wait(8)
  3170. v:Destroy()
  3171. dude:Destroy()
  3172. end))
  3173. end))
  3174. end
  3175. end
  3176. end))
  3177. end)
  3178. ds()
  3179. end
  3180. end
  3181.  
  3182.  
  3183. function FindNearestHead(Position, Distance, SinglePlayer)
  3184. if SinglePlayer then
  3185. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3186. end
  3187. local List = {}
  3188. for i, v in pairs(workspace:GetChildren()) do
  3189. if v:IsA("Model") then
  3190. if v:findFirstChild("Head") then
  3191. if v ~= Character then
  3192. if (v.Head.Position - Position).magnitude <= Distance then
  3193. table.insert(List, v)
  3194. end
  3195. end
  3196. end
  3197. end
  3198. end
  3199. return List
  3200. end
  3201.  
  3202. function FaceMouse()
  3203. Cam = workspace.CurrentCamera
  3204. return {
  3205. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3206. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3207. }
  3208. end
  3209.  
  3210. function FaceMouse2()
  3211. Cam = workspace.CurrentCamera
  3212. return {
  3213. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3214. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3215. }
  3216. end
  3217.  
  3218. local ModeOfGlitch = 1
  3219. -- Functions are ready.
  3220. local storehumanoidWS = 16
  3221.  
  3222. function CorruptBlink()
  3223. for i = 0, 14 do
  3224. 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)
  3225. end
  3226. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3227. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3228. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3229. CameraEnshaking(2,10)
  3230. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3231. if v:FindFirstChild('Head') then
  3232. dmg(v)
  3233. end
  3234. end
  3235. for i = 0, 14 do
  3236. 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)
  3237. end
  3238. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3239. end
  3240. function PureBomb()
  3241. attack = true
  3242. hum.WalkSpeed = 0
  3243. local orb = Instance.new("Part", char)
  3244. orb.Anchored = true
  3245. orb.BrickColor = BrickColor.new("Toothpaste")
  3246. orb.CanCollide = false
  3247. orb.FormFactor = 3
  3248. orb.Name = "Ring"
  3249. orb.Material = "Neon"
  3250. orb.Size = Vector3.new(1, 1, 1)
  3251. orb.Transparency = 0
  3252. orb.TopSurface = 0
  3253. orb.BottomSurface = 0
  3254. local orbm = Instance.new("SpecialMesh", orb)
  3255. orbm.MeshType = "Sphere"
  3256. orbm.Name = "SizeMesh"
  3257. orbm.Scale = vt(0,0,0)
  3258. local scaled = 0.1
  3259. local posid = 0
  3260. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3261. for i = 0, 5, 0.1 do
  3262. swait()
  3263. scaled = scaled - 0.001
  3264. posid = posid - scaled
  3265. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3266. local scaled = 0.1
  3267. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3268. 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)
  3269. 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)
  3270. 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)
  3271. 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)
  3272. 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)
  3273. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3274. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3275. 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)
  3276. end
  3277. for i = 0, 2, 0.1 do
  3278. swait()
  3279. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3280. 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)
  3281. 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)
  3282. 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)
  3283. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3284. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3285. 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)
  3286. end
  3287. coroutine.resume(coroutine.create(function()
  3288. orb.Anchored = false
  3289. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3290. local a = Instance.new("Part",workspace)
  3291. a.Name = "Direction"
  3292. a.Anchored = true
  3293. a.BrickColor = bc("Bright red")
  3294. a.Material = "Neon"
  3295. a.Transparency = 1
  3296. a.CanCollide = false
  3297. local ray = Ray.new(
  3298. orb.CFrame.p, -- origin
  3299. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3300. )
  3301. local ignore = orb
  3302. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3303. a.BottomSurface = 10
  3304. a.TopSurface = 10
  3305. local distance = (orb.CFrame.p - position).magnitude
  3306. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3307. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3308. orb.CFrame = a.CFrame
  3309. a:Destroy()
  3310. local bv = Instance.new("BodyVelocity")
  3311. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3312. bv.velocity = orb.CFrame.lookVector*125
  3313. bv.Parent = orb
  3314. local hitted = false
  3315. game:GetService("Debris"):AddItem(orb, 15)
  3316. wait()
  3317. local hit =orb.Touched:connect(function(hit)
  3318. if hitted == false then
  3319. hitted = true
  3320. CameraEnshaking(10,2.5)
  3321. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3322. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3323. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3324. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3325. for i = 0, 49 do
  3326. 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)
  3327. end
  3328. for i = 0, 9 do
  3329. 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)
  3330. 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)
  3331. end
  3332. orb.Anchored = true
  3333. orb.Transparency = 1
  3334. wait(8)
  3335. orb:Destroy()
  3336. end
  3337. end)
  3338. end))
  3339. for i = 0, 1, 0.1 do
  3340. swait()
  3341. 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)
  3342. 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)
  3343. 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)
  3344. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3346. 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)
  3347. end
  3348. hum.WalkSpeed = storehumanoidWS
  3349. attack = false
  3350. end
  3351.  
  3352. function BanishingOrb()
  3353. attack = true
  3354. hum.WalkSpeed = 0
  3355. local orb = Instance.new("Part", char)
  3356. orb.Anchored = true
  3357. orb.BrickColor = BrickColor.new("Black")
  3358. orb.CanCollide = false
  3359. orb.FormFactor = 3
  3360. orb.Name = "Ring"
  3361. orb.Material = "Neon"
  3362. orb.Size = Vector3.new(1, 1, 1)
  3363. orb.Transparency = 0
  3364. orb.TopSurface = 0
  3365. orb.BottomSurface = 0
  3366. local orbm = Instance.new("SpecialMesh", orb)
  3367. orbm.MeshType = "Sphere"
  3368. orbm.Name = "SizeMesh"
  3369. orbm.Scale = vt(0,0,0)
  3370. local scaled = 0.1
  3371. local posid = 0
  3372. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3373. for i = 0, 5, 0.1 do
  3374. swait()
  3375. scaled = scaled - 0.001
  3376. posid = posid - scaled
  3377. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3378. local scaled = 0.1
  3379. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3380. 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("Black"),10)
  3381. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3382. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3387. end
  3388. for i = 0, 2, 0.1 do
  3389. swait()
  3390. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3391. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3392. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3395. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3396. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3397. end
  3398. coroutine.resume(coroutine.create(function()
  3399. orb.Anchored = false
  3400. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3401. local a = Instance.new("Part",workspace)
  3402. a.Name = "Direction"
  3403. a.Anchored = true
  3404. a.BrickColor = bc("Bright red")
  3405. a.Material = "Neon"
  3406. a.Transparency = 1
  3407. a.CanCollide = false
  3408. local ray = Ray.new(
  3409. orb.CFrame.p, -- origin
  3410. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3411. )
  3412. local ignore = orb
  3413. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3414. a.BottomSurface = 10
  3415. a.TopSurface = 10
  3416. local distance = (orb.CFrame.p - position).magnitude
  3417. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3418. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3419. orb.CFrame = a.CFrame
  3420. a:Destroy()
  3421. local bv = Instance.new("BodyVelocity")
  3422. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3423. bv.velocity = orb.CFrame.lookVector*0
  3424. bv.Parent = orb
  3425. local hitted = false
  3426. local rate = 0
  3427. coroutine.resume(coroutine.create(function()
  3428. for i = 0, 24 do
  3429. wait(0.1)
  3430. rate = rate + 0.25
  3431. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3432. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3433. if v:FindFirstChild('Head') then
  3434. dmg(v)
  3435. end
  3436. end
  3437. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3438. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3439. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3440. end
  3441. orb.Anchored = true
  3442. orb.Transparency = 1
  3443. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3444. if v:FindFirstChild('Head') then
  3445. dmg(v)
  3446. end
  3447. end
  3448. local eff = Instance.new("ParticleEmitter",orb)
  3449. eff.Texture = "rbxassetid://296874871"
  3450. eff.LightEmission = 0.95
  3451. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3452. eff.Rate = 1000000000
  3453. eff.Lifetime = NumberRange.new(3)
  3454. 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)})
  3455. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3456. eff.Speed = NumberRange.new(30)
  3457. eff.Acceleration = vt(0,-15,0)
  3458. eff.Rotation = NumberRange.new(-500,500)
  3459. eff.VelocitySpread = 100000
  3460. eff.RotSpeed = NumberRange.new(-500,500)
  3461. coroutine.resume(coroutine.create(function()
  3462. wait(0.6)
  3463. eff.Enabled = false
  3464. end))
  3465. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3466. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3467. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3468. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3469. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3470. game:GetService("Debris"):AddItem(orb, 15)
  3471. end))
  3472. end))
  3473. for i = 0, 1, 0.1 do
  3474. swait()
  3475. 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)
  3476. 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)
  3477. 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)
  3478. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3479. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3480. 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)
  3481. end
  3482. hum.WalkSpeed = storehumanoidWS
  3483. attack = false
  3484. end
  3485.  
  3486.  
  3487. function ChaosGroundStrike()
  3488. attack = true
  3489. for i = 0, 2, 0.1 do
  3490. swait()
  3491. 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)
  3492. 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)
  3493. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3495. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3496. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3497. end
  3498. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3499. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3500. CameraEnshaking(4,12)
  3501. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3502. if v:FindFirstChild('Head') then
  3503. dmg(v)
  3504. end
  3505. end
  3506. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3507. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3508. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3509. for i = 0, 2, 0.1 do
  3510. swait()
  3511. 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)
  3512. 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)
  3513. 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)
  3514. 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)
  3515. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3516. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3517. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3518. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3519. end
  3520. attack = false
  3521. end
  3522.  
  3523.  
  3524.  
  3525. function Starfall()
  3526. attack = true
  3527. hum.WalkSpeed = 0
  3528. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3529. for i = 0, 5, 0.1 do
  3530. swait()
  3531. 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)
  3532. 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)
  3533. 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)
  3534. 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)
  3535. 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)
  3536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3537. 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)
  3538. 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)
  3539. end
  3540. local Overed = false
  3541. CameraEnshaking(2,20)
  3542. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3543. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3544. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3545. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3546. local orb = Instance.new("Part", char)
  3547. orb.Anchored = true
  3548. orb.BrickColor = BrickColor.new("Toothpaste")
  3549. orb.CanCollide = false
  3550. orb.FormFactor = 3
  3551. orb.Name = "Remenant"
  3552. orb.Material = "Neon"
  3553. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3554. orb.Size = Vector3.new(1, 1, 1)
  3555. orb.Transparency = 1
  3556. orb.TopSurface = 0
  3557. orb.BottomSurface = 0
  3558. hum.WalkSpeed = storehumanoidWS
  3559. coroutine.resume(coroutine.create(function()
  3560. for i = 0, 9 do
  3561. swait(10)
  3562. local lb = Instance.new("Part")
  3563. lb.Color = MAINRUINCOLOR.Color
  3564. lb.CanCollide = false
  3565. lb.Material = "Neon"
  3566. lb.Anchored = true
  3567. lb.TopSurface = 0
  3568. lb.BottomSurface = 0
  3569. lb.Transparency = 0
  3570. lb.Size = vt(1,1,1)
  3571. 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)))
  3572. lb.Anchored = false
  3573. lb.Parent = char
  3574. local thingery = Instance.new("SpecialMesh",lb)
  3575. thingery.MeshType = "Sphere"
  3576. thingery.Scale = vt(20,20,20)
  3577. game:GetService("Debris"):AddItem(lb, 10)
  3578. local bv = Instance.new("BodyVelocity")
  3579. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3580. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3581. bv.Parent = lb
  3582. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3583. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3584. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3585. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3586. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3587. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3588. local hitted = false
  3589. coroutine.resume(coroutine.create(function()
  3590. while true do
  3591. swait(1)
  3592. if lb.Parent ~= nil and hitted == false then
  3593. 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)
  3594. elseif lb.Parent == nil then
  3595. break
  3596. end
  3597. end
  3598. end))
  3599.  
  3600. game:GetService("Debris"):AddItem(a, 0.1)
  3601.  
  3602. coroutine.resume(coroutine.create(function()
  3603. swait(1)
  3604. lb.Touched:connect(function(hit)
  3605. if hitted == false then
  3606. hitted = true
  3607. lb.Transparency = 1
  3608. lb.Anchored = true
  3609. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3610. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3611. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3612. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3613. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3614. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3615. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3616. CameraEnshaking(1,5)
  3617. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3618. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3619. for i = 0, 9 do
  3620. 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)
  3621. end
  3622. for i = 0, 49 do
  3623. swait()
  3624. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3625. 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)
  3626. end
  3627. end
  3628. end)
  3629. end))
  3630. end
  3631. Overed = true
  3632. orb:Destroy()
  3633. end))
  3634.  
  3635. attack = false
  3636. end
  3637.  
  3638. function StarfallEX()
  3639. attack = true
  3640. hum.WalkSpeed = 0
  3641. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3642. for i = 0, 10, 0.1 do
  3643. swait()
  3644. 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)
  3645. 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)
  3646. 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)
  3647. 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)
  3648. 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)
  3649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3650. 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)
  3651. 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)
  3652. end
  3653. local Overed = false
  3654. CameraEnshaking(2,20)
  3655. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3656. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3657. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3658. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3659. local orb = Instance.new("Part", char)
  3660. orb.Anchored = true
  3661. orb.BrickColor = BrickColor.new("Toothpaste")
  3662. orb.CanCollide = false
  3663. orb.FormFactor = 3
  3664. orb.Name = "Remenant"
  3665. orb.Material = "Neon"
  3666. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3667. orb.Size = Vector3.new(1, 1, 1)
  3668. orb.Transparency = 1
  3669. orb.TopSurface = 0
  3670. orb.BottomSurface = 0
  3671. hum.WalkSpeed = storehumanoidWS
  3672. coroutine.resume(coroutine.create(function()
  3673. for i = 0, 4 do
  3674. swait(15)
  3675. local lb = Instance.new("Part")
  3676. lb.Color = MAINRUINCOLOR.Color
  3677. lb.CanCollide = false
  3678. lb.Material = "Neon"
  3679. lb.Anchored = true
  3680. lb.TopSurface = 0
  3681. lb.BottomSurface = 0
  3682. lb.Transparency = 0
  3683. lb.Size = vt(1,1,1)
  3684. 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)))
  3685. lb.Anchored = false
  3686. lb.Parent = char
  3687. local thingery = Instance.new("SpecialMesh",lb)
  3688. thingery.MeshType = "Sphere"
  3689. thingery.Scale = vt(50,50,50)
  3690. game:GetService("Debris"):AddItem(lb, 10)
  3691. local bv = Instance.new("BodyVelocity")
  3692. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3693. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3694. bv.Parent = lb
  3695. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3696. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3697. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3698. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3699. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3700. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3701. local hitted = false
  3702. coroutine.resume(coroutine.create(function()
  3703. while true do
  3704. swait(1)
  3705. if lb.Parent ~= nil and hitted == false then
  3706. 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)
  3707. elseif lb.Parent == nil then
  3708. break
  3709. end
  3710. end
  3711. end))
  3712.  
  3713. game:GetService("Debris"):AddItem(a, 0.1)
  3714.  
  3715. coroutine.resume(coroutine.create(function()
  3716. swait(1)
  3717. lb.Touched:connect(function(hit)
  3718. if hitted == false then
  3719. hitted = true
  3720. lb.Transparency = 1
  3721. lb.Anchored = true
  3722. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3723. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3724. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3725. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3726. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3727. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3728. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3729. CameraEnshaking(1,5)
  3730. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3731. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3732. for i = 0, 9 do
  3733. 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)
  3734. end
  3735. for i = 0, 99 do
  3736. swait()
  3737. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3738. 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)
  3739. end
  3740. end
  3741. end)
  3742. end))
  3743. end
  3744. Overed = true
  3745. orb:Destroy()
  3746. end))
  3747.  
  3748. attack = false
  3749. end
  3750.  
  3751. function DivineBlast()
  3752. attack = true
  3753. hum.WalkSpeed = 0
  3754. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3755. elocacenter.Anchored = true
  3756. elocacenter.CFrame = sorb.CFrame
  3757. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3758. eloca1.Anchored = true
  3759. eloca1.CFrame = elocacenter.CFrame
  3760. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3761. eloca2.Anchored = true
  3762. eloca2.CFrame = elocacenter.CFrame
  3763. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3764. eloca3.Anchored = true
  3765. eloca3.CFrame = elocacenter.CFrame
  3766. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3767. eloca4.Anchored = true
  3768. eloca4.CFrame = elocacenter.CFrame
  3769. local lookavec = 0
  3770. local speeds = 0
  3771. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3772. for i = 0, 3, 0.1 do
  3773. swait()
  3774. ---
  3775. lookavec = lookavec + 0.1
  3776. speeds = speeds + 10
  3777. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3778. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3779. 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)
  3780.  
  3781. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3782. 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)
  3783.  
  3784. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3785. 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)
  3786.  
  3787. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3788. 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)
  3789. ---
  3790. root.CFrame = FaceMouse()[1]
  3791. 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)
  3792. 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)
  3793. 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)
  3794. 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)
  3795. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3796. 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)
  3797. end
  3798. for i = 0, 3, 0.1 do
  3799. swait()
  3800. ---
  3801. speeds = speeds + 10
  3802. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3803. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3804. 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)
  3805.  
  3806. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3807. 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)
  3808.  
  3809. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3810. 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)
  3811.  
  3812. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3813. 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)
  3814. ---
  3815. root.CFrame = FaceMouse()[1]
  3816. 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)
  3817. 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)
  3818. 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)
  3819. 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)
  3820. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3821. 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)
  3822. end
  3823. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3824. for i = 0, 3, 0.1 do
  3825. swait()
  3826. ---
  3827. speeds = speeds + 10
  3828. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3829. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3830. 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)
  3831.  
  3832. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3833. 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)
  3834.  
  3835. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3836. 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)
  3837.  
  3838. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3839. 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)
  3840. ---
  3841. root.CFrame = FaceMouse()[1]
  3842. 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)
  3843. 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)
  3844. 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(40)),.1)
  3845. 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)
  3846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3847. 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)
  3848. end
  3849. coroutine.resume(coroutine.create(function()
  3850. local a = Instance.new("Part",Character)
  3851. a.Name = "Direction"
  3852. a.Anchored = true
  3853. a.BrickColor = bc("White")
  3854. a.Material = "Neon"
  3855. a.Transparency = 0
  3856. a.Shape = "Cylinder"
  3857. a.CanCollide = false
  3858. local a2 = Instance.new("Part",Character)
  3859. a2.Name = "Direction"
  3860. a2.Anchored = true
  3861. a2.BrickColor = bc("Bright yellow")
  3862. a2.Material = "Neon"
  3863. a2.Transparency = 0
  3864. a2.Shape = "Cylinder"
  3865. a2.CanCollide = false
  3866. local b = Instance.new("Part",Character)
  3867. b.Name = "HitDirect"
  3868. b.Anchored = true
  3869. b.BrickColor = bc("Cool yellow")
  3870. b.Material = "Neon"
  3871. b.Transparency = 1
  3872. b.CanCollide = false
  3873. local ray = Ray.new(
  3874. elocacenter.CFrame.p, -- origin
  3875. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3876. )
  3877. local ignore = Character
  3878. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3879. a.BottomSurface = 10
  3880. a.TopSurface = 10
  3881. a2.BottomSurface = 10
  3882. a2.TopSurface = 10
  3883. local distance = (elocacenter.CFrame.p - position).magnitude
  3884. a.Size = Vector3.new(distance, 1, 1)
  3885. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3886. a2.Size = Vector3.new(distance, 1, 1)
  3887. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3888. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3889. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3890. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3891. game:GetService("Debris"):AddItem(a, 10)
  3892. game:GetService("Debris"):AddItem(a2, 10)
  3893. game:GetService("Debris"):AddItem(b, 10)
  3894. local msh = Instance.new("SpecialMesh",a)
  3895. msh.MeshType = "Cylinder"
  3896. msh.Scale = vt(1,2,2)
  3897. local msh2 = Instance.new("SpecialMesh",a2)
  3898. msh2.MeshType = "Cylinder"
  3899. msh2.Scale = vt(1,2.5,2.5)
  3900. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  3901. coroutine.resume(coroutine.create(function()
  3902. for i = 0,10,0.1 do
  3903. swait()
  3904. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  3905. a.Transparency = a.Transparency + 0.025
  3906. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  3907. a2.Transparency = a2.Transparency + 0.05
  3908. end
  3909. a:Destroy()
  3910. a2:Destroy()
  3911. end))
  3912. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  3913. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  3914. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  3915. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  3916. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  3917. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  3918. MagniDamage(b, 25, 40,65, 0, "Normal")
  3919. for i = 0, 49 do
  3920. 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)
  3921. 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)
  3922. end
  3923. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  3924. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  3925. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3926. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3927. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3928. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3929. end))
  3930. game:GetService("Debris"):AddItem(elocacenter, 5)
  3931. hum.WalkSpeed = storehumanoidWS
  3932. attack = false
  3933. end
  3934.  
  3935. function StarDivision()
  3936. attack = true
  3937. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3938. for i = 0, 2, 0.1 do
  3939. swait()
  3940. 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)
  3941. 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)
  3942. 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)
  3943. 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)
  3944. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3945. 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)
  3946. end
  3947. local orb = Instance.new("Part", char)
  3948. orb.BrickColor = MAINRUINCOLOR
  3949. orb.CanCollide = false
  3950. orb.FormFactor = 3
  3951. orb.Name = "Ring"
  3952. orb.Material = "Neon"
  3953. orb.Size = Vector3.new(1, 1, 1)
  3954. orb.Transparency = 0
  3955. orb.TopSurface = 0
  3956. orb.BottomSurface = 0
  3957. local orbm = Instance.new("SpecialMesh", orb)
  3958. orbm.MeshType = "Sphere"
  3959. orbm.Name = "SizeMesh"
  3960. orbm.Scale = vt(2,2,2)
  3961. local a = Instance.new("Part",workspace)
  3962. a.Name = "Direction"
  3963. a.Anchored = true
  3964. a.BrickColor = bc("Bright red")
  3965. a.Material = "Neon"
  3966. a.Transparency = 1
  3967. a.CanCollide = false
  3968. local ray = Ray.new(
  3969. sorb.CFrame.p, -- origin
  3970. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3971. )
  3972. local ignore = sorb
  3973. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3974. a.BottomSurface = 10
  3975. a.TopSurface = 10
  3976. local distance = (sorb.CFrame.p - position).magnitude
  3977. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3978. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3979. orb.CFrame = a.CFrame
  3980. a:Destroy()
  3981. local bv = Instance.new("BodyVelocity")
  3982. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3983. bv.velocity = orb.CFrame.lookVector*100
  3984. bv.Parent = orb
  3985. local hitted = false
  3986. game:GetService("Debris"):AddItem(orb, 10)
  3987. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3988. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3989. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3990. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3991. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3992. coroutine.resume(coroutine.create(function()
  3993. while true do
  3994. swait(1)
  3995. if orb.Parent ~= nil and hitted == false then
  3996. 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)
  3997. elseif orb.Parent == nil then
  3998. break
  3999. end
  4000. end
  4001. end))
  4002. coroutine.resume(coroutine.create(function()
  4003. swait(1)
  4004. orb.Touched:connect(function(hit)
  4005. if hitted == false then
  4006. hitted = true
  4007. game:GetService("Debris"):AddItem(orb, 5)
  4008. orb.Transparency = 1
  4009. orb.Anchored = true
  4010. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4011. elocacenter.Anchored = true
  4012. elocacenter.CFrame = orb.CFrame
  4013. elocacenter.Orientation = vt(0,0,0)
  4014. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4015. eloca1.Anchored = true
  4016. eloca1.CFrame = elocacenter.CFrame
  4017. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4018. eloca2.Anchored = true
  4019. eloca2.CFrame = elocacenter.CFrame
  4020. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4021. eloca3.Anchored = true
  4022. eloca3.CFrame = elocacenter.CFrame
  4023. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4024. eloca4.Anchored = true
  4025. eloca4.CFrame = elocacenter.CFrame
  4026. local lookavec = 0
  4027. local speeds = 0
  4028. CameraEnshaking(1,1)
  4029. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4030. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4031. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4032. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4033. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4034. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4035. for i = 0, 99 do
  4036. swait()
  4037. lookavec = lookavec + 1
  4038. speeds = speeds + 0.1
  4039. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4040. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4041. 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)
  4042.  
  4043. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4044. 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)
  4045.  
  4046. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4047. 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)
  4048.  
  4049. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4050. 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)
  4051. end
  4052.  
  4053. for i = 0, 149 do
  4054. swait()
  4055. speeds = speeds + 0.1
  4056. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4057. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4058. 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)
  4059.  
  4060. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4061. 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)
  4062.  
  4063. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4064. 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)
  4065.  
  4066. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4067. 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)
  4068. end
  4069. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4070. if v:FindFirstChild('Head') then
  4071. dmg(v)
  4072. end
  4073. end
  4074. CameraEnshaking(7,30)
  4075. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4076. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4077. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4078. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4079. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4080. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4081. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4082. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4083. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4084. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4085. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4086. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4087. for i = 0, 24 do
  4088. 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)
  4089. 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)
  4090. 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)
  4091. 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)
  4092. end
  4093. coroutine.resume(coroutine.create(function()
  4094. for i = 0, 499 do
  4095. swait(1)
  4096. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4097. 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)
  4098. end
  4099. elocacenter:Destroy()
  4100. eloca1:Destroy()
  4101. eloca2:Destroy()
  4102. eloca3:Destroy()
  4103. eloca4:Destroy()
  4104. end))
  4105. end
  4106. end)
  4107. end))
  4108. attack = false
  4109. end
  4110.  
  4111. function GalacticalBeams()
  4112. attack = true
  4113. local keptcolor = MAINRUINCOLOR
  4114. coroutine.resume(coroutine.create(function()
  4115. for i = 0, 0 do
  4116. swait(10)
  4117. local orb = Instance.new("Part", char)
  4118. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  4119. orb.BrickColor = keptcolor
  4120. orb.CanCollide = false
  4121. orb.FormFactor = 3
  4122. orb.Name = "Ring"
  4123. orb.Material = "Neon"
  4124. orb.Size = Vector3.new(1, 1, 1)
  4125. orb.Transparency = 1
  4126. orb.TopSurface = 0
  4127. orb.BottomSurface = 0
  4128. orb.Anchored = true
  4129. local orbm = Instance.new("SpecialMesh", orb)
  4130. orbm.MeshType = "Sphere"
  4131. orbm.Name = "SizeMesh"
  4132. orbm.Scale = vt(1.25,1.25,1.25)
  4133. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  4134. coroutine.resume(coroutine.create(function()
  4135. orb.Transparency = 1
  4136. local a = Instance.new("Part",char)
  4137. a.Name = "Direction"
  4138. a.Anchored = true
  4139. a.BrickColor = keptcolor
  4140. a.Material = "Neon"
  4141. a.Transparency = 1
  4142. a.Shape = "Cylinder"
  4143. local x = Instance.new("Part",char)
  4144. x.Name = "Direction"
  4145. x.Anchored = true
  4146. x.BrickColor = keptcolor
  4147. x.Material = "Neon"
  4148. x.Transparency = 1
  4149. x.Shape = "Cylinder"
  4150. local ht = Instance.new("Part",char)
  4151. ht.Name = "DirectionHit"
  4152. ht.Anchored = true
  4153. ht.BrickColor = keptcolor
  4154. ht.CanCollide = false
  4155. ht.Transparency = 1
  4156. ht.Size = vt(0.1,0.1,0.1)
  4157. a.CanCollide = false
  4158. local ray = Ray.new(
  4159. orb.CFrame.p, -- origin
  4160. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4161. )
  4162. local ignore = char
  4163. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4164. a.BottomSurface = 10
  4165. a.TopSurface = 10
  4166. local distance = (orb.CFrame.p - position).magnitude
  4167. a.Size = Vector3.new(distance,1,1)
  4168. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4169. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4170. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4171. local poste = 0
  4172. local rotation = 0
  4173. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  4174. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  4175. CameraEnshaking(2,2)
  4176. for i = 0, 49 do
  4177. swait()
  4178. rotation = rotation + 5
  4179. poste = poste + 1
  4180. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4181. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4182. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4183. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4184. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4185. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4186. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4187. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4188. end
  4189. local A1 = Instance.new("Attachment",x)
  4190. local A2 = Instance.new("Attachment",ht)
  4191. local Beem = Instance.new("Beam",ht)
  4192. Beem.Attachment0 = A1
  4193. Beem.Attachment1 = A2
  4194. Beem.LightEmission = 1
  4195. Beem.FaceCamera = true
  4196. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  4197. Beem.Width0 = 125
  4198. Beem.Width1 = 125
  4199. Beem.Texture = "rbxassetid://1134824633"
  4200. Beem.TextureMode = "Wrap"
  4201. Beem.TextureLength = 200
  4202. Beem.TextureSpeed = 1.5
  4203. Beem.Color = ColorSequence.new(keptcolor.Color)
  4204. CameraEnshaking(3,6)
  4205. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  4206. a.Transparency = 0.25
  4207. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  4208. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  4209. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  4210. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  4211. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  4212. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  4213. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  4214. local eff = Instance.new("ParticleEmitter",ht)
  4215. eff.Texture = "rbxassetid://284205403"
  4216. eff.LightEmission = 0.95
  4217. eff.Color = ColorSequence.new(keptcolor.Color)
  4218. eff.Rate = 500
  4219. eff.Lifetime = NumberRange.new(1)
  4220. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4221. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4222. eff.Speed = NumberRange.new(80,500)
  4223. eff.Drag = 5
  4224. eff.Rotation = NumberRange.new(-500,500)
  4225. eff.VelocitySpread = 9000
  4226. eff.RotSpeed = NumberRange.new(-500,500)
  4227. for i = 0, 24 do
  4228. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  4229. local rsiz = math.random(10,50)
  4230. sphereMK(math.random(3,6),1.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)
  4231. end
  4232. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4233. local msh = Instance.new("SpecialMesh",a)
  4234. msh.MeshType = "Cylinder"
  4235. msh.Scale = vt(1,15,15)
  4236. for i = 0, 49 do
  4237. swait()
  4238. CameraEnshaking(1,4)
  4239. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  4240. rotation = rotation + 5
  4241. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  4242. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  4243. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  4244. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4245. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4246. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4247. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4248. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4249. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4250. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4251. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  4252. for i = 0, 2 do
  4253. local rsiz = math.random(50,250)
  4254. sphereMK(math.random(3,6),math.random(2,4),"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)
  4255. end
  4256. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  4257. end
  4258. eff.Enabled = false
  4259. local visibility = 0
  4260. for i = 0, 49 do
  4261. swait()
  4262. visibility = visibility + 0.02
  4263. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  4264. rotation = rotation + 5
  4265. poste = poste - 1
  4266. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4267. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4268. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4269. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4270. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4271. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4272. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4273. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4274. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  4275. a.Transparency = a.Transparency + 0.02
  4276. end
  4277. wait(1)
  4278. orb:Destroy()
  4279. a:Destroy()
  4280. ht:Destroy()
  4281. end))
  4282. game:GetService("Debris"):AddItem(orb, 10)
  4283. end
  4284. end))
  4285. hum.WalkSpeed = storehumanoidWS
  4286. attack = false
  4287. end
  4288.  
  4289. function BeamOfDeath()
  4290. attack = true
  4291. hum.WalkSpeed = 0
  4292. local keptcolor = MAINRUINCOLOR
  4293. local orb = Instance.new("Part", char)
  4294. orb.BrickColor = keptcolor
  4295. orb.CanCollide = false
  4296. orb.FormFactor = 3
  4297. orb.Name = "Ring"
  4298. orb.Material = "Neon"
  4299. orb.Size = Vector3.new(1, 1, 1)
  4300. orb.Transparency = 1
  4301. orb.TopSurface = 0
  4302. orb.BottomSurface = 0
  4303. local orbm = Instance.new("SpecialMesh", orb)
  4304. orbm.MeshType = "Sphere"
  4305. orbm.Name = "SizeMesh"
  4306. orbm.Scale = vt(22.5,10000,22.5)
  4307. orb.CFrame = mouse.Hit
  4308. orb.Anchored = true
  4309. orb.Orientation = vt(0,0,0)
  4310. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  4311. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  4312. coroutine.resume(coroutine.create(function()
  4313. coroutine.resume(coroutine.create(function()
  4314. for i = 0, 399 do
  4315. swait()
  4316. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  4317. orb.Transparency = orb.Transparency - 0.0025
  4318. end
  4319. end))
  4320. wait(9)
  4321. coroutine.resume(coroutine.create(function()
  4322. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4323. if hfr ~= nil then
  4324. for i = 0, 49 do
  4325. local deb = Instance.new("Part", char)
  4326. deb.Anchored = true
  4327. deb.CanCollide = false
  4328. deb.FormFactor = 3
  4329. deb.Name = "Ring"
  4330. deb.Material = hitfloor.Material
  4331. deb.Color = hitfloor.Color
  4332. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  4333. deb.Transparency = 0
  4334. deb.TopSurface = 0
  4335. deb.BottomSurface = 0
  4336. 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)))
  4337. local deb2 = Instance.new("Part", char)
  4338. deb2.CanCollide = false
  4339. deb2.FormFactor = 3
  4340. deb2.Name = "Ring"
  4341. deb2.Material = hitfloor.Material
  4342. deb2.Color = hitfloor.Color
  4343. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  4344. deb2.Transparency = 0
  4345. deb2.TopSurface = 0
  4346. deb2.BottomSurface = 0
  4347. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  4348. 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)))
  4349. local eff = Instance.new("ParticleEmitter",deb)
  4350. eff.Texture = "rbxassetid://363275192"
  4351. eff.LightEmission = 0.95
  4352. eff.Color = ColorSequence.new(keptcolor.Color)
  4353. eff.Rate = 100
  4354. eff.Lifetime = NumberRange.new(1)
  4355. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  4356. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4357. eff.Speed = NumberRange.new(0,5)
  4358. eff.Rotation = NumberRange.new(-500,500)
  4359. eff.VelocitySpread = 9000
  4360. eff.RotSpeed = NumberRange.new(-10,10)
  4361. local at1 = Instance.new('Attachment',deb2)
  4362. at1.Position = vt(0,15,0)
  4363. local at2 = Instance.new('Attachment',deb2)
  4364. at2.Position = vt(0,-15,0)
  4365. local tl = Instance.new('Trail',deb2)
  4366. tl.Attachment0 = at1
  4367. tl.Attachment1 = at2
  4368. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4369. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  4370. tl.Lifetime = 1
  4371. game:GetService("Debris"):AddItem(deb,30)
  4372. game:GetService("Debris"):AddItem(deb2,30)
  4373. coroutine.resume(coroutine.create(function()
  4374. wait(15)
  4375. eff.Enabled = false
  4376. for i = 0, 49 do
  4377. swait()
  4378. deb.Transparency = deb.Transparency + 0.02
  4379. end
  4380. wait(1)
  4381. deb:Destroy()
  4382. end))
  4383. end
  4384. end
  4385. end))
  4386. for i = 0, 199 do
  4387. swait(1.5)
  4388. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  4389. if v:FindFirstChild('Head') then
  4390. dmg(v)
  4391. end
  4392. end
  4393. 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)
  4394. 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)
  4395. 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)
  4396. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  4397. end
  4398. orb:Destroy()
  4399. end))
  4400. hum.WalkSpeed = storehumanoidWS
  4401. attack = false
  4402. end
  4403.  
  4404. function DualGleamingBeam()
  4405. attack = true
  4406. hum.WalkSpeed = 0
  4407. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  4408. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  4409. local radm = math.random(1,3)
  4410. if radm == 1 then
  4411. end
  4412. local rsiz = math.random(1,15)
  4413. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4414. hb.Anchored = true
  4415. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4416. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4417. hb2.Anchored = true
  4418. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4419. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  4420. for i = 0, 14, 0.1 do
  4421. swait()
  4422. rsiz = math.random(5,15)
  4423. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4424. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  4425. 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)
  4426. 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)
  4427. 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)
  4428. 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"))
  4429. 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)
  4430. 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)
  4431. 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)
  4432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  4433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  4434. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  4435. end
  4436. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  4437. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  4438. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  4439. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  4440. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  4441. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  4442. 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)
  4443. 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)
  4444. 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)
  4445. 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"))
  4446. 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"))
  4447. 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"))
  4448. for i = 0, 49 do
  4449. local rsiza = math.random(1,15)
  4450. 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)
  4451. 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)
  4452. end
  4453. local a = Instance.new("Part",Character)
  4454. a.Name = "Direction"
  4455. a.Anchored = true
  4456. a.BrickColor = MAINRUINCOLOR
  4457. a.Material = "Neon"
  4458. a.Transparency = 0
  4459. a.Shape = "Cylinder"
  4460. a.CanCollide = false
  4461. local a2 = Instance.new("Part",Character)
  4462. a2.Name = "Direction"
  4463. a2.Anchored = true
  4464. a2.BrickColor = MAINRUINCOLOR
  4465. a2.Material = "Neon"
  4466. a2.Transparency = 0
  4467. a2.Shape = "Cylinder"
  4468. a2.CanCollide = false
  4469. local ba = Instance.new("Part",Character)
  4470. ba.Name = "HitDirect"
  4471. ba.Anchored = true
  4472. ba.BrickColor = MAINRUINCOLOR
  4473. ba.Material = "Neon"
  4474. ba.Transparency = 1
  4475. ba.CanCollide = false
  4476. local ba2 = Instance.new("Part",Character)
  4477. ba2.Name = "HitDirect"
  4478. ba2.Anchored = true
  4479. ba2.BrickColor = MAINRUINCOLOR
  4480. ba2.Material = "Neon"
  4481. ba2.Transparency = 1
  4482. ba2.CanCollide = false
  4483. local ray = Ray.new(
  4484. hb.CFrame.p, -- origin
  4485. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  4486. )
  4487. local ignore = Character
  4488. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4489. local ray2 = Ray.new(
  4490. hb2.CFrame.p, -- origin
  4491. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  4492. )
  4493. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  4494. local distance2 = (hb2.CFrame.p - position).magnitude
  4495.  
  4496. a.BottomSurface = 10
  4497. a.TopSurface = 10
  4498. local distance = (hb.CFrame.p - position).magnitude
  4499. a.Size = Vector3.new(distance, 1, 1)
  4500. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4501. a2.BottomSurface = 10
  4502. a2.TopSurface = 10
  4503. a2.Size = Vector3.new(distance2, 1, 1)
  4504. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  4505. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4506. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  4507. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4508. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4509. local msh = Instance.new("SpecialMesh",a)
  4510. msh.MeshType = "Cylinder"
  4511. msh.Scale = vt(1,4,4)
  4512. local msh2 = Instance.new("SpecialMesh",a2)
  4513. msh2.MeshType = "Cylinder"
  4514. msh2.Scale = vt(1,4,4)
  4515. game:GetService("Debris"):AddItem(a, 30)
  4516. game:GetService("Debris"):AddItem(a2, 30)
  4517. game:GetService("Debris"):AddItem(ba, 30)
  4518. game:GetService("Debris"):AddItem(ba2, 30)
  4519. for i = 0, 20, 0.1 do
  4520. swait()
  4521. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4522. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  4523. ray = Ray.new(
  4524. hb.CFrame.p, -- origin
  4525. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  4526. )
  4527. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4528. distance = (hb.CFrame.p - position).magnitude
  4529. ray2 = Ray.new(
  4530. hb2.CFrame.p, -- origin
  4531. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  4532. )
  4533. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  4534. distance2 = (hb2.CFrame.p - position).magnitude
  4535. a.Size = Vector3.new(distance, 1, 1)
  4536. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4537. a2.Size = Vector3.new(distance2, 1, 1)
  4538. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  4539. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4540. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  4541. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4542. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4543. rsiz = math.random(5,25)
  4544. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  4545. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  4546. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  4547. if v:FindFirstChild('Head') then
  4548. dmg(v)
  4549. end
  4550. end
  4551. coroutine.resume(coroutine.create(function()
  4552. local bx = Instance.new("Part",Character)
  4553. bx.Name = "Location"
  4554. bx.Anchored = true
  4555. bx.BrickColor = MAINRUINCOLOR
  4556. bx.Material = "Neon"
  4557. bx.Transparency = 1
  4558. bx.CanCollide = false
  4559. bx.Position = ba.Position
  4560. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  4561. wait(math.random(1,2))
  4562. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  4563. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  4564. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  4565. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  4566. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  4567. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  4568. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  4569. if v:FindFirstChild('Head') then
  4570. dmg(v)
  4571. end
  4572. end
  4573. wait(5)
  4574. bx:Destroy()
  4575. end))
  4576. 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)
  4577. 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)
  4578. for c = 0, 2 do
  4579. 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)
  4580. end
  4581. 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)
  4582. 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)
  4583. 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)
  4584. 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)
  4585. 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)
  4586. 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)
  4587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  4588. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  4589. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  4590. end
  4591. for i = 0, 1 do
  4592. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  4593. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  4594. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  4595. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  4596. end
  4597. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  4598. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  4599. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  4600. if v:FindFirstChild('Head') then
  4601. dmg(v)
  4602. end
  4603. end
  4604. 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)
  4605. 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)
  4606. 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)
  4607. 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)
  4608. 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)
  4609. 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)
  4610. 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"))
  4611. 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"))
  4612. 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"))
  4613. for i = 0, 49 do
  4614. local rsiza = math.random(1,15)
  4615. 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)
  4616. 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)
  4617. end
  4618. for i = 0, 49 do
  4619. rsiz = math.random(1,8)
  4620. 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)
  4621. end
  4622. coroutine.resume(coroutine.create(function()
  4623. for i = 0, 99 do
  4624. swait()
  4625. a.Transparency = a.Transparency + 0.01
  4626. a2.Transparency = a2.Transparency + 0.01
  4627. end
  4628. a:Destroy()
  4629. ba:Destroy()
  4630. a2:Destroy()
  4631. ba2:Destroy()
  4632. end))
  4633. hum.WalkSpeed = storehumanoidWS
  4634. hb:Destroy()
  4635. hb2:Destroy()
  4636. attack = false
  4637. end
  4638.  
  4639. function Fireball()
  4640. attack = true
  4641. hum.WalkSpeed = 0
  4642. local keptcolor = MAINRUINCOLOR
  4643. for i = 0,2,0.1 do
  4644. swait()
  4645. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  4646. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  4647. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
  4648. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
  4649. 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(0)),.3)
  4650. 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(-1),math.rad(0),math.rad(0)),.3)
  4651. end
  4652. local orb = Instance.new("Part", char)
  4653. orb.BrickColor = keptcolor
  4654. orb.CanCollide = false
  4655. orb.FormFactor = 3
  4656. orb.Name = "Ring"
  4657. orb.Material = "Neon"
  4658. orb.Size = Vector3.new(1, 1, 1)
  4659. orb.Transparency = 0
  4660. orb.TopSurface = 0
  4661. orb.BottomSurface = 0
  4662. local orbm = Instance.new("SpecialMesh", orb)
  4663. orbm.MeshType = "Sphere"
  4664. orbm.Name = "SizeMesh"
  4665. orbm.Scale = vt(4,4,4)
  4666. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  4667. local eff = Instance.new("ParticleEmitter",orb)
  4668. eff.Texture = "rbxassetid://296874871"
  4669. eff.LightEmission = 0.95
  4670. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  4671. eff.Rate = 10000
  4672. eff.Lifetime = NumberRange.new(1.5)
  4673. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4674. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4675. eff.Speed = NumberRange.new(25)
  4676. eff.Drag = 5
  4677. eff.Rotation = NumberRange.new(-500,500)
  4678. eff.VelocitySpread = 9000
  4679. eff.RotSpeed = NumberRange.new(-500,500)
  4680. local a = Instance.new("Part",workspace)
  4681. a.Name = "Direction"
  4682. a.Anchored = true
  4683. a.BrickColor = bc("Toothpaste")
  4684. a.Material = "Neon"
  4685. a.Transparency = 1
  4686. a.CanCollide = false
  4687. local ray = Ray.new(
  4688. orb.CFrame.p, -- origin
  4689. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  4690. )
  4691. local ignore = orb
  4692. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4693. a.BottomSurface = 10
  4694. a.TopSurface = 10
  4695. local distance = (orb.CFrame.p - position).magnitude
  4696. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4697. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4698. orb.CFrame = a.CFrame
  4699. a:Destroy()
  4700. CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
  4701. local bv = Instance.new("BodyVelocity")
  4702. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4703. bv.velocity = orb.CFrame.lookVector*75
  4704. bv.Parent = orb
  4705. game:GetService("Debris"):AddItem(orb, 10)
  4706. local hitted = false
  4707. coroutine.resume(coroutine.create(function()
  4708. while true do
  4709. swait()
  4710. if orb.Parent ~= nil and hitted == false then
  4711. sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
  4712. elseif orb.Parent == nil and hitted == true then
  4713. break
  4714. end
  4715. end
  4716. end))
  4717. local hit =orb.Touched:connect(function(hit)
  4718. if hitted == false and hit.Parent ~= char then
  4719. hitted = true
  4720. eff.Enabled = false
  4721. CameraEnshaking(4,4)
  4722. CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
  4723. CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
  4724. MagniDamage(orb, 25, 20,30, 0, "Normal")
  4725. sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  4726. sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  4727. sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  4728. for i = 0, 9 do
  4729. sphere2(4,"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.5,1,1.5),-0.005,4,-0.005,keptcolor)
  4730. end
  4731. for i = 0, 49 do
  4732. local rsiz = math.random(10,30)
  4733. sphereMK(math.random(1,3),1,"Add",orb.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)
  4734. end
  4735. local eff = Instance.new("ParticleEmitter",orb)
  4736. eff.Texture = "rbxassetid://296874871"
  4737. eff.LightEmission = 0.95
  4738. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  4739. eff.Rate = 10000
  4740. eff.Lifetime = NumberRange.new(1.5)
  4741. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  4742. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4743. eff.Speed = NumberRange.new(150)
  4744. eff.Drag = 5
  4745. eff.Rotation = NumberRange.new(-500,500)
  4746. eff.VelocitySpread = 9000
  4747. eff.RotSpeed = NumberRange.new(-500,500)
  4748. coroutine.resume(coroutine.create(function()
  4749. wait(0.25)
  4750. eff.Enabled = false
  4751. end))
  4752. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4753. orb.Anchored = true
  4754. orb.Transparency = 1
  4755. coroutine.resume(coroutine.create(function()
  4756. if hfr ~= nil then
  4757. orb.Size = vt(50,1,50)
  4758. orb.Orientation = vt(0,0,0)
  4759. orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
  4760. orbm:Destroy()
  4761. local firef = eff:Clone()
  4762. firef.Parent = orb
  4763. firef.VelocitySpread = 50
  4764. firef.Rate = 500
  4765. firef.Drag = 3
  4766. firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4767. firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4768. firef.Speed = NumberRange.new(10,30)
  4769. for i = 0, 24 do
  4770. wait(0.25)
  4771. MagniDamage(orb, 25, 3,6, 0, "Normal")
  4772. end
  4773. firef.Enabled = false
  4774. end
  4775. end))
  4776. wait(10)
  4777. orb:Destroy()
  4778. end
  4779. end)
  4780. for i = 0,1,0.1 do
  4781. swait()
  4782. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
  4783. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  4784. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
  4785. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
  4786. 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(0),math.rad(0)),.5)
  4787. 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)
  4788. end
  4789. hum.WalkSpeed = storehumanoidWS
  4790. attack = false
  4791. end
  4792.  
  4793. function UniversalCollapse()
  4794. attack = true
  4795. local speedearn = 0
  4796. hum.WalkSpeed = 0
  4797. local sbs = Instance.new("BodyPosition", root)
  4798. sbs.P = 3000
  4799. sbs.D = 1000
  4800. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4801. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4802. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4803. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4804. for i = 0, 110, 0.1 do
  4805. swait()
  4806. speedearn = speedearn + 0.1
  4807. 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)
  4808. 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)
  4809. 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)
  4810. 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)
  4811. 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)
  4812. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4813. 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)
  4814. 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)
  4815. 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)
  4816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4817. 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)
  4818. 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)
  4819. end
  4820. CameraEnshaking(5,50)
  4821. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4822. for i = 0, 2 do
  4823. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4824. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4825. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4826. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4827. end
  4828. for i = 0, 49 do
  4829. 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)
  4830. 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)
  4831. 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)
  4832. 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)
  4833. end
  4834. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4835. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4836. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4837. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4838. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4839. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4840. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4841. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4842. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4843. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4844. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4845. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4846. for i = 0, 99 do
  4847. 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)
  4848. 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)
  4849. end
  4850. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4851. if v:FindFirstChild('Head') then
  4852. dmg(v)
  4853. end
  4854. end
  4855. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4856. sbs:Destroy()
  4857. hum.WalkSpeed = storehumanoidWS
  4858. attack = false
  4859. end
  4860.  
  4861.  
  4862. function ChaosEND()
  4863. attack = true
  4864. local speedearn = 0
  4865. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4866. for i = 0, 15, 0.1 do
  4867. swait()
  4868. speedearn = speedearn + 0.25
  4869. 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)
  4870. 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)
  4871. 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)
  4872. 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)
  4873. 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)
  4874. 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)
  4875. 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)
  4876. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4877. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4878. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4879. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4880. end
  4881. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4882. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4883. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4884. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4885. CameraEnshaking(5,25)
  4886. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4887. if v:FindFirstChild('Head') then
  4888. dmg(v)
  4889. end
  4890. end
  4891. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4892. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4893. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4894. for i = 0, 3, 0.1 do
  4895. swait()
  4896. 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)
  4897. 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)
  4898. 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)
  4899. 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)
  4900. 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)
  4901. 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)
  4902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4904. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4905. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4906. end
  4907. attack = false
  4908. end
  4909.  
  4910. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4911. local orb = Instance.new("Part", char)
  4912. orb.Anchored = true
  4913. orb.BrickColor = color
  4914. orb.CanCollide = false
  4915. orb.FormFactor = 3
  4916. orb.Name = "Ring"
  4917. orb.Material = "Neon"
  4918. orb.Size = Vector3.new(1, 1, 1)
  4919. orb.Transparency = 0
  4920. orb.TopSurface = 0
  4921. orb.BottomSurface = 0
  4922. local orbm = Instance.new("SpecialMesh", orb)
  4923. orbm.MeshType = "Sphere"
  4924. orb.CFrame = positted
  4925. orbm.Name = "SizeMesh"
  4926. orbm.Scale = vt(1,1,1)
  4927. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4928. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4929. --[[for i = 0, 2 do
  4930. 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)
  4931. end]]--
  4932. coroutine.resume(coroutine.create(function()
  4933. wait(timer)
  4934. CameraEnshaking(3,ShakePower)
  4935. orb.Transparency = 1
  4936. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4937. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4938. --[[for i = 0, 4 do
  4939. 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)
  4940. end]]--
  4941. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4942. wait(3)
  4943. orb:Destroy()
  4944. end))
  4945. end
  4946.  
  4947. function orb_spawn(positted,timer)
  4948. local randomcol = math.random(1,2)
  4949. local orb = Instance.new("Part", char)
  4950. orb.Anchored = true
  4951. if randomcol == 1 then
  4952. orb.BrickColor = BrickColor.new("White")
  4953. elseif randomcol == 2 then
  4954. orb.BrickColor = BrickColor.new("Really black")
  4955. end
  4956. orb.CanCollide = false
  4957. orb.FormFactor = 3
  4958. orb.Name = "Ring"
  4959. orb.Material = "Neon"
  4960. orb.Size = Vector3.new(1, 1, 1)
  4961. orb.Transparency = 0
  4962. orb.TopSurface = 0
  4963. orb.BottomSurface = 0
  4964. local orbm = Instance.new("SpecialMesh", orb)
  4965. orbm.MeshType = "Sphere"
  4966. orb.CFrame = positted
  4967. orbm.Name = "SizeMesh"
  4968. orbm.Scale = vt(1,1,1)
  4969. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4970. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4971. for i = 0, 2 do
  4972. 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)
  4973. end
  4974. coroutine.resume(coroutine.create(function()
  4975. wait(timer)
  4976. CameraEnshaking(3,2)
  4977. orb.Transparency = 1
  4978. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4979. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4980. for i = 0, 4 do
  4981. 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)
  4982. end
  4983. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4984. wait(3)
  4985. orb:Destroy()
  4986. end))
  4987. end
  4988.  
  4989. function scattercorrupt()
  4990. attack = true
  4991. local rot = 0
  4992. local randomrotations = math.random(1,2)
  4993. local lookv = 2.5
  4994. local power = 5
  4995. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4996. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4997. for i = 0, 9 do
  4998. 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)
  4999. end
  5000. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5001. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5002. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5003. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5004. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5005. local hite = Instance.new("Part", char)
  5006. hite.Anchored = true
  5007. hite.CanCollide = false
  5008. hite.FormFactor = 3
  5009. hite.Name = "Ring"
  5010. hite.Material = "Neon"
  5011. hite.Size = Vector3.new(1, 1, 1)
  5012. hite.Transparency = 1
  5013. hite.TopSurface = 0
  5014. hite.BottomSurface = 0
  5015. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5016. local rem = Instance.new("Part", char)
  5017. rem.Anchored = true
  5018. rem.CanCollide = false
  5019. rem.FormFactor = 3
  5020. rem.Name = "Ring"
  5021. rem.Material = "Neon"
  5022. rem.Size = Vector3.new(1, 1, 1)
  5023. rem.Transparency = 1
  5024. rem.TopSurface = 0
  5025. rem.BottomSurface = 0
  5026. rem.CFrame = hite.CFrame
  5027. local rem2 = rem:Clone()
  5028. rem2.Parent = char
  5029. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5030. local rem3 = rem:Clone()
  5031. rem3.Parent = char
  5032. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5033. local rem4 = rem:Clone()
  5034. rem4.Parent = char
  5035. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5036. hite:Destroy()
  5037. coroutine.resume(coroutine.create(function()
  5038. for i = 0, 24 do
  5039. swait(1)
  5040. if randomrotations == 1 then
  5041. rot = rot + 1
  5042. elseif randomrotations == 2 then
  5043. rot = rot - 1
  5044. end
  5045. power = power + 0.5
  5046. lookv = lookv + 7.5
  5047. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5048. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5049. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5050. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5051. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5052. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5053. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5054. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5055. end
  5056. end))
  5057. attack = false
  5058. end
  5059. function yinyangi()
  5060. attack = true
  5061. for i = 0, 2, 0.1 do
  5062. swait()
  5063. 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)
  5064. 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)
  5065. 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)
  5066. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5067. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5068. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5069. end
  5070. local bv = Instance.new("BodyVelocity")
  5071. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5072. bv.velocity = root.CFrame.lookVector*175
  5073. bv.Parent = root
  5074. for Rotations = 0, 9 do
  5075. for i = 0, 1, 0.5 do
  5076. swait()
  5077. bv.velocity = root.CFrame.lookVector*175
  5078. 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)
  5079. 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)
  5080. 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)
  5081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5083. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5084. end
  5085. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5086. for i = 0, 1, 0.5 do
  5087. swait()
  5088. bv.velocity = root.CFrame.lookVector*175
  5089. 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)
  5090. 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)
  5091. 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)
  5092. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5093. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5094. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5095. end
  5096. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5097. for i = 0, 1, 0.5 do
  5098. swait()
  5099. bv.velocity = root.CFrame.lookVector*175
  5100. 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)
  5101. 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)
  5102. 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)
  5103. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5104. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5105. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5106. end
  5107. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5108. for i = 0, 1, 0.5 do
  5109. swait()
  5110. bv.velocity = root.CFrame.lookVector*175
  5111. 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)
  5112. 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)
  5113. 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)
  5114. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5115. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5116. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5117. end
  5118. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5119. end
  5120. bv:Destroy()
  5121. attack = false
  5122. end
  5123.  
  5124. function createBGCircle(size,parent,color)
  5125. local bgui = Instance.new("BillboardGui",parent)
  5126. bgui.Size = UDim2.new(size, 0, size, 0)
  5127. local imgc = Instance.new("ImageLabel",bgui)
  5128. imgc.BackgroundTransparency = 1
  5129. imgc.ImageTransparency = 0
  5130. imgc.Size = UDim2.new(1,0,1,0)
  5131. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5132. imgc.ImageColor3 = color
  5133. return bgui,imgc
  5134. end
  5135.  
  5136. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5137. local bgui,imgc = createBGCircle(size,guipar,color)
  5138. bgui.AlwaysOnTop = true
  5139. imgc.Image = "rbxassetid://" ..img
  5140. local rrot = math.random(1,2)
  5141. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5142. coroutine.resume(coroutine.create(function()
  5143. for i = 0, 24*delay do
  5144. swait()
  5145. if rotationenabled == true then
  5146. if rrot == 1 then
  5147. imgc.Rotation = imgc.Rotation + rotsp
  5148. elseif rrot == 2 then
  5149. imgc.Rotation = imgc.Rotation - rotsp
  5150. end
  5151. end
  5152. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5153. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5154. end
  5155. bgui:Destroy()
  5156. end))
  5157. end
  5158. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5159. for i, v in pairs(mw2:GetChildren()) do
  5160. if v:IsA("Part") then
  5161. v.BrickColor = one
  5162. v.Material = "Neon"
  5163. end
  5164. end
  5165. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5166. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5167. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5168. tr1.Color = ColorSequence.new(one.Color)
  5169. tr2.Color = ColorSequence.new(one.Color)
  5170. tr3.Color = ColorSequence.new(one.Color)
  5171. for i, v in pairs(mw1:GetChildren()) do
  5172. if v:IsA("Part") then
  5173. if secondaryenabled == false then
  5174. v.Transparency = 1
  5175. elseif secondaryenabled == true then
  5176. v.Transparency = 0
  5177. end
  5178. v.BrickColor = two
  5179. v.Material = "Neon"
  5180. end
  5181. end
  5182. if secondaryenabled == false then
  5183. tl1.Enabled = false
  5184. tl2.Enabled = false
  5185. tl3.Enabled = false
  5186. elseif secondaryenabled == true then
  5187. tl1.Enabled = true
  5188. tl2.Enabled = true
  5189. tl3.Enabled = true
  5190. end
  5191. tl1.Color = ColorSequence.new(two.Color)
  5192. tl2.Color = ColorSequence.new(two.Color)
  5193. tl3.Color = ColorSequence.new(two.Color)
  5194. for i, v in pairs(m:GetChildren()) do
  5195. if v:IsA("Part") then
  5196. v.BrickColor = three
  5197. v.Material = "Ice"
  5198. end
  5199. end
  5200. for i, v in pairs(m2:GetChildren()) do
  5201. if v:IsA("Part") then
  5202. v.BrickColor = four
  5203. v.Material = "Ice"
  5204. end
  5205. end
  5206. for i, v in pairs(m3:GetChildren()) do
  5207. if v:IsA("Part") then
  5208. v.BrickColor = five
  5209. v.Material = "Neon"
  5210. end
  5211. end
  5212. for i, v in pairs(extrawingmod1:GetChildren()) do
  5213. if v:IsA("Part") then
  5214. v.Transparency = exonetran
  5215. v.BrickColor = exone
  5216. v.Material = "Neon"
  5217. end
  5218. end
  5219. for i, v in pairs(extrawingmod2:GetChildren()) do
  5220. if v:IsA("Part") then
  5221. v.Transparency = extwotran
  5222. v.BrickColor = extwo
  5223. v.Material = "Neon"
  5224. end
  5225. end
  5226. end
  5227.  
  5228.  
  5229. function normalmog()
  5230. attack = true
  5231. hum.WalkSpeed = 0
  5232. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5233. for i = 0,6,0.1 do
  5234. swait()
  5235. 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)
  5236. 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)
  5237. 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)
  5238. 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)
  5239. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5240. 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)
  5241. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5242. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5243. end
  5244. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5245. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5246. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5247. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5248. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5249. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5250. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5251. rainbowmode = false
  5252. chaosmode = false
  5253. ModeOfGlitch = 1
  5254. storehumanoidWS = 16
  5255. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5256. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5257. CameraEnshaking(5,2.5)
  5258. MAINRUINCOLOR = BrickColor.new("Really red")
  5259. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5260. for i = 0, 49 do
  5261. 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)
  5262. end
  5263. for i = 0, 24 do
  5264. 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)
  5265. 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"))
  5266. end
  5267. for i = 0,3,0.1 do
  5268. 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)
  5269. end
  5270. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5271. for i = 0,2,0.1 do
  5272. swait()
  5273. 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)
  5274. 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)
  5275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5276. 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)
  5277. 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)
  5278. 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)
  5279. end
  5280. hum.WalkSpeed = storehumanoidWS
  5281. attack = false
  5282. end
  5283.  
  5284. function attackone()
  5285. attack = true
  5286. local keptcolor = MAINRUINCOLOR
  5287. for i = 0,1,0.1 do
  5288. swait()
  5289. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5290. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5291. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5292. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5293. 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)
  5294. 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)
  5295. end
  5296. local distlook = 5
  5297. coroutine.resume(coroutine.create(function()
  5298. for i = 0, 4 do
  5299. swait(2)
  5300. CameraEnshaking(2,3)
  5301. local hite = Instance.new("Part", char)
  5302. hite.Anchored = true
  5303. hite.CanCollide = false
  5304. hite.FormFactor = 3
  5305. hite.Name = "Ring"
  5306. hite.Material = "Neon"
  5307. hite.Size = Vector3.new(1, 1, 1)
  5308. hite.Transparency = 1
  5309. hite.TopSurface = 0
  5310. hite.BottomSurface = 0
  5311. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5312. 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)
  5313. 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)
  5314. 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)
  5315. 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)
  5316. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5317. for i = 0, 14 do
  5318. local rsiz = math.random(5,20)
  5319. 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)
  5320. end
  5321. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5322. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5323. game:GetService("Debris"):AddItem(hite, 5)
  5324. distlook = distlook + 10
  5325. end
  5326. end))
  5327. for i = 0,1,0.1 do
  5328. swait()
  5329. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5330. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5331. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5332. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5333. 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)
  5334. 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)
  5335. end
  5336. attack = false
  5337. end
  5338.  
  5339. function attacktwo()
  5340. attack = true
  5341. for i = 0,1,0.1 do
  5342. swait()
  5343. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  5344. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5345. 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)
  5346. 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)
  5347. 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)
  5348. 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)
  5349. end
  5350. CameraEnshaking(3,4)
  5351. MagniDamage(root, 12, 15,30, 0, "Normal")
  5352. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5353. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5354. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5355. coroutine.resume(coroutine.create(function()
  5356. local eff = Instance.new("ParticleEmitter",root)
  5357. eff.Texture = "rbxassetid://363275192"
  5358. eff.LightEmission = 0.95
  5359. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5360. eff.Rate = 10000
  5361. eff.Lifetime = NumberRange.new(1)
  5362. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,30,0)})
  5363. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  5364. eff.Speed = NumberRange.new(10,125)
  5365. eff.Drag = 5
  5366. eff.Rotation = NumberRange.new(-500,500)
  5367. eff.VelocitySpread = 9000
  5368. eff.RotSpeed = NumberRange.new(-50,50)
  5369. local eff2 = eff:Clone()
  5370. eff2.Parent = root
  5371. eff2.Texture = "rbxassetid://2092248396"
  5372. eff2.Rate = 10000
  5373. eff2.Lifetime = NumberRange.new(1.5)
  5374. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,3,0),NumberSequenceKeypoint.new(0.8,6,0),NumberSequenceKeypoint.new(1,0,0)})
  5375. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.25,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  5376. eff2.Drag = 5
  5377. eff2.Speed = NumberRange.new(25,150)
  5378. eff2.Rotation = NumberRange.new(-500,500)
  5379. eff2.VelocitySpread = 9000
  5380. wait(0.25)
  5381. eff2.Enabled = false
  5382. eff.Enabled = false
  5383. wait(5)
  5384. eff2:Destroy()
  5385. eff:Destroy()
  5386. end))
  5387. for i = 0, 9 do
  5388. sphere2(7.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)
  5389. end
  5390. for i = 0, 24 do
  5391. local rsiz = math.random(5,20)
  5392. sphereMK(math.random(1,5),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)
  5393. end
  5394. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  5395. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  5396. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  5397. for i = 0,2,0.1 do
  5398. swait()
  5399. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5400. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  5401. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  5402. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  5403. 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)
  5404. 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)
  5405. end
  5406. attack = false
  5407. end
  5408.  
  5409. function attackthree()
  5410. attack = true
  5411. local keptcolor = MAINRUINCOLOR
  5412. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  5413. for i = 0,1,0.1 do
  5414. swait()
  5415. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  5416. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5417. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  5418. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  5419. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  5420. 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(0)),.5)
  5421. 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)),.5)
  5422. end
  5423. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  5424. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  5425. local angle = -25
  5426. coroutine.resume(coroutine.create(function()
  5427. for i = 0, 2 do
  5428. local orb = Instance.new("Part", char)
  5429. orb.BrickColor = MAINRUINCOLOR
  5430. orb.CanCollide = false
  5431. orb.FormFactor = 3
  5432. orb.Name = "Ring"
  5433. orb.Material = "Neon"
  5434. orb.Size = Vector3.new(1, 1, 1)
  5435. orb.Transparency = 0.5
  5436. orb.TopSurface = 0
  5437. orb.BottomSurface = 0
  5438. local orbm = Instance.new("SpecialMesh", orb)
  5439. orbm.MeshType = "Sphere"
  5440. orbm.Name = "SizeMesh"
  5441. orbm.Scale = vt(3,3,3)
  5442. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  5443. local bv = Instance.new("BodyVelocity")
  5444. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5445. bv.velocity = orb.CFrame.lookVector*100
  5446. bv.Parent = orb
  5447. game:GetService("Debris"):AddItem(orb, 10)
  5448. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5449. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5450. coroutine.resume(coroutine.create(function()
  5451. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5452. for i = 0, 7 do
  5453. swait(2.5)
  5454. CameraEnshaking(1,2)
  5455. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5456. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  5457. for i = 0, 4 do
  5458. local rsiz = math.random(5,10)
  5459. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  5460. sphereMK(math.random(2,6),0.15,"Add",orb.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)
  5461. end
  5462. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5463. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5464. end
  5465. orb.Transparency = 1
  5466. orb.Anchored = false
  5467. wait(10)
  5468. orb:Destroy()
  5469. end))
  5470. angle = angle + 25
  5471. end
  5472. end))
  5473. for i = 0,1,0.1 do
  5474. swait()
  5475. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5476. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5477. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  5478. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  5479. 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)
  5480. 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)
  5481. end
  5482. attack = false
  5483. end
  5484. ----------------------------------- Abilities
  5485.  
  5486. function ExtinctiveHeartbreak()
  5487. local targetted = nil
  5488. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5489. targetted = mouse.Target.Parent
  5490. end
  5491. if targetted ~= nil then
  5492. attack = true
  5493. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5494. for i = 0, 9 do
  5495. 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)
  5496. end
  5497. for i = 0, 24 do
  5498. 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)
  5499. end
  5500. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5501. local originalpos = root.CFrame
  5502. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5503. for i = 0, 9 do
  5504. 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)
  5505. end
  5506. for i = 0, 24 do
  5507. 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)
  5508. end
  5509. hum.WalkSpeed = 0
  5510. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5511. for i = 0,2,0.1 do
  5512. swait()
  5513. 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)
  5514. 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)
  5515. 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)
  5516. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5517. 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)
  5518. 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)
  5519. end
  5520. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5521. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5522. for i = 0,2,0.1 do
  5523. swait()
  5524. coroutine.resume(coroutine.create(function()
  5525. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5526. for i,v in pairs(targetted:GetChildren()) do
  5527. if v:IsA("Part") or v:IsA("MeshPart") then
  5528. v.Velocity = vt(0,0,0)
  5529. end
  5530. end
  5531. end))
  5532. 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)
  5533. 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)
  5534. 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)
  5535. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5536. 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)
  5537. 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)
  5538. end
  5539. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5540. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5541. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5542. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5543. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5544. for i = 0,4,0.1 do
  5545. swait()
  5546. coroutine.resume(coroutine.create(function()
  5547. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5548. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5549. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5550. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5551. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5552. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5553. 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)
  5554. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5555. for i = 0, 2 do
  5556. 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"))
  5557. end
  5558. 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)
  5559. for i,v in pairs(targetted:GetChildren()) do
  5560. if v:IsA("Part") or v:IsA("MeshPart") then
  5561. v.Velocity = vt(0,0,0)
  5562. end
  5563. end
  5564. end))
  5565. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5566. 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)
  5567. 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)
  5568. 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)
  5569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5570. 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)
  5571. 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)
  5572. end
  5573. hum.CameraOffset = vt(0,0,0)
  5574. for i = 0, 49 do
  5575. 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)
  5576. 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"))
  5577. end
  5578. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5579. for i = 0, 1 do
  5580. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5581. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5582. end
  5583. for i = 0, 4 do
  5584. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5585. end
  5586. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5587. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5588. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5589. dmg(targetted)
  5590. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5591. for i = 0, 9 do
  5592. 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)
  5593. end
  5594. for i = 0, 24 do
  5595. 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)
  5596. end
  5597. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5598. root.CFrame = originalpos
  5599. for i = 0, 9 do
  5600. 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)
  5601. end
  5602. for i = 0, 24 do
  5603. 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)
  5604. end
  5605. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5606. attack = false
  5607. hum.WalkSpeed = storehumanoidWS
  5608. end
  5609. end
  5610.  
  5611. function THE_TRUE_POWER_OF_VIOLENCE()
  5612. attack = true
  5613. hum.WalkSpeed = 0
  5614. for i = 0, 10, 0.1 do
  5615. swait()
  5616. 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)
  5617. 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)
  5618. 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)
  5619. 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)
  5620. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  5621. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  5622. 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)
  5623. end
  5624. local orb = Instance.new("Part", char)
  5625. orb.BrickColor = MAINRUINCOLOR
  5626. orb.CanCollide = false
  5627. orb.FormFactor = 3
  5628. orb.Name = "Ring"
  5629. orb.Material = "Neon"
  5630. orb.Size = Vector3.new(1, 1, 1)
  5631. orb.Transparency = 0
  5632. orb.TopSurface = 0
  5633. orb.BottomSurface = 0
  5634. orb.CFrame = sorb.CFrame
  5635. local orbm = Instance.new("SpecialMesh", orb)
  5636. orbm.MeshType = "Sphere"
  5637. orbm.Name = "SizeMesh"
  5638. orbm.Scale = vt(0,0,0)
  5639. local sbs = Instance.new("BodyPosition", orb)
  5640. sbs.P = 3000
  5641. sbs.D = 1000
  5642. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  5643. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  5644. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  5645. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  5646. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  5647. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  5648. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  5649. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  5650. for i = 0, 10, 0.1 do
  5651. swait()
  5652. 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)
  5653. 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)
  5654. 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)
  5655. 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)
  5656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  5657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  5658. 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)
  5659. end
  5660. orb.Anchored = true
  5661. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  5662. elocacenter.Anchored = true
  5663. elocacenter.CFrame = orb.CFrame
  5664. elocacenter.Orientation = vt(0,0,0)
  5665. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  5666. eloca1.Anchored = true
  5667. eloca1.CFrame = elocacenter.CFrame
  5668. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  5669. eloca2.Anchored = true
  5670. eloca2.CFrame = elocacenter.CFrame
  5671. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  5672. eloca3.Anchored = true
  5673. eloca3.CFrame = elocacenter.CFrame
  5674. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  5675. eloca4.Anchored = true
  5676. eloca4.CFrame = elocacenter.CFrame
  5677. local lookavec = 0
  5678. local speeds = 0
  5679. CameraEnshaking(1,1)
  5680. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  5681. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  5682. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  5683. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  5684. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5685. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5686. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5687. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5688. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5689. for i = 0, 99 do
  5690. swait()
  5691. lookavec = lookavec + 2.5
  5692. speeds = speeds + 0.25
  5693. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5694. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5695. 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)
  5696.  
  5697. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5698. 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)
  5699.  
  5700. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5701. 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)
  5702.  
  5703. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5704. 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)
  5705. end
  5706.  
  5707. for i = 0, 149 do
  5708. swait()
  5709. speeds = speeds + 0.25
  5710. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5711. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5712. 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)
  5713.  
  5714. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5715. 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)
  5716.  
  5717. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5718. 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)
  5719.  
  5720. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5721. 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)
  5722. end
  5723. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  5724. for i = 0, 99 do
  5725. swait()
  5726. lookavec = lookavec - 2.5
  5727. speeds = speeds + 0.25
  5728. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5729. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5730. 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)
  5731.  
  5732. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5733. 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)
  5734.  
  5735. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5736. 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)
  5737.  
  5738. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5739. 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)
  5740. end
  5741. local scaled = 0.1*75
  5742. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  5743. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  5744. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  5745. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  5746. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  5747. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  5748. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5749. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5750. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5751. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5752. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5753.  
  5754. for i = 0, 10, 0.1 do
  5755. swait()
  5756. scaled = scaled - 0.001*75
  5757. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  5758. 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)
  5759. 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)
  5760. 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)
  5761. 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)
  5762. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  5763. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  5764. 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)
  5765. end
  5766. for x = 0, 4 do
  5767. for i = 0, 9 do
  5768. 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)
  5769. end
  5770. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  5771. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  5772. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5773. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5774. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5775. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5776. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5777. for i = 0, 5, 0.1 do
  5778. swait()
  5779. 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)
  5780. 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)
  5781. 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)
  5782. 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)
  5783. 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)
  5784. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  5785. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  5786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  5787. end
  5788. end
  5789. local speedearn = 0
  5790. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  5791. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  5792. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  5793. for i = 0, 30, 0.1 do
  5794. swait()
  5795. scaled = scaled - 0.001*75/10
  5796. speedearn = speedearn + 0.5
  5797. for i = 0, 4 do
  5798. 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)
  5799. end
  5800. 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)
  5801. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  5802. 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)
  5803. 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)
  5804. 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)
  5805. 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)
  5806. 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)
  5807. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  5808. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  5809. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  5810. end
  5811. orb.Transparency = 1
  5812. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  5813. if v:FindFirstChild('Head') then
  5814. dmg(v)
  5815. end
  5816. end
  5817. CameraEnshaking(7,30)
  5818. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  5819. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  5820. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  5821. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  5822. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  5823. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  5824. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  5825. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  5826. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  5827. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  5828. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  5829. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  5830. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  5831. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  5832. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5833. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5834. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5835. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5836. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5837. for i = 0, 99 do
  5838. 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)
  5839. 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)
  5840. end
  5841. for i = 0, 24 do
  5842. 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)
  5843. 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)
  5844. 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)
  5845. 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)
  5846. 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)
  5847. end
  5848. game:GetService("Debris"):AddItem(orb, 10)
  5849. hum.WalkSpeed = storehumanoidWS
  5850. attack = false
  5851. end
  5852.  
  5853. function ViolentRing()
  5854. attack = true
  5855.  
  5856. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  5857. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  5858. for i = 0, 2, 0.1 do
  5859. swait()
  5860. local snap = math.random(1,10)
  5861. if snap == 1 then
  5862. 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)
  5863. end
  5864. 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)
  5865. 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)
  5866. 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)
  5867. 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)
  5868. 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)
  5869. 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)
  5870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  5871. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  5872. 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)
  5873. RootPart.CFrame = FaceMouse()[1]
  5874. end
  5875. local orb = Instance.new("Part", char)
  5876. orb.BrickColor = MAINRUINCOLOR
  5877. orb.CanCollide = false
  5878. orb.FormFactor = 3
  5879. orb.Name = "Ring"
  5880. orb.Material = "Neon"
  5881. orb.Size = Vector3.new(1, 1, 1)
  5882. orb.Transparency = 0
  5883. orb.TopSurface = 0
  5884. orb.BottomSurface = 0
  5885. local orbm = Instance.new("SpecialMesh", orb)
  5886. orbm.MeshType = "Sphere"
  5887. orbm.Name = "SizeMesh"
  5888. orbm.Scale = vt(2,2,2)
  5889. orb.CFrame = mouse.Hit
  5890. local bv = Instance.new("BodyVelocity")
  5891. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5892. bv.velocity = orb.CFrame.lookVector*100
  5893. bv.Parent = orb
  5894. local hitted = false
  5895. coroutine.resume(coroutine.create(function()
  5896. game:GetService("Debris"):AddItem(orb, 5)
  5897. orb.Transparency = 1
  5898. orb.Anchored = true
  5899. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5900. elocacenter.Anchored = true
  5901. elocacenter.CFrame = orb.CFrame
  5902. elocacenter.Orientation = vt(0,0,0)
  5903. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5904. eloca1.Anchored = true
  5905. eloca1.CFrame = elocacenter.CFrame
  5906. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5907. eloca2.Anchored = true
  5908. eloca2.CFrame = elocacenter.CFrame
  5909. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5910. eloca3.Anchored = true
  5911. eloca3.CFrame = elocacenter.CFrame
  5912. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5913. eloca4.Anchored = true
  5914. eloca4.CFrame = elocacenter.CFrame
  5915. local lookavec = 0
  5916. local speeds = 0
  5917. CameraEnshaking(1,1)
  5918. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  5919. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5920. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5921. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5922. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5923. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5924. for i = 0, 24 do
  5925. swait()
  5926. lookavec = lookavec + 3.5
  5927. speeds = speeds + 1
  5928. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5929. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5930. 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)
  5931.  
  5932. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5933. 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)
  5934.  
  5935. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5936. 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)
  5937.  
  5938. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5939. 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)
  5940. end
  5941.  
  5942. local risen = 0
  5943. for i = 0, 49 do
  5944. swait()
  5945. risen = risen + 0.05
  5946. speeds = speeds + 0.1
  5947. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5948. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5949. 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)
  5950.  
  5951. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5952. 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)
  5953.  
  5954. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5955. 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)
  5956.  
  5957. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5958. 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)
  5959. end
  5960. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  5961. if v:FindFirstChild('Head') then
  5962. dmg(v)
  5963. end
  5964. end
  5965. CameraEnshaking(4,10)
  5966. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  5967. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  5968. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  5969. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  5970. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  5971. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  5972. local eff = Instance.new("ParticleEmitter",elocacenter)
  5973. eff.Texture = "rbxassetid://2273224484"
  5974. eff.LightEmission = 1
  5975. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  5976. eff.Rate = 1000000
  5977. eff.Lifetime = NumberRange.new(0.5,2)
  5978. 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)})
  5979. 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)})
  5980. eff.Speed = NumberRange.new(20,250)
  5981. eff.Drag = 5
  5982. eff.Rotation = NumberRange.new(-500,500)
  5983. eff.VelocitySpread = 5000000
  5984. eff.RotSpeed = NumberRange.new(-50,50)
  5985. coroutine.resume(coroutine.create(function()
  5986. wait(1)
  5987. eff.Enabled = false
  5988. end))
  5989. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  5990. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  5991. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5992. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5993. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5994. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5995. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5996. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  5997. for i = 0, 24 do
  5998. 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)
  5999. 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)
  6000. 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)
  6001. 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)
  6002. end
  6003. coroutine.resume(coroutine.create(function()
  6004. wait(10)
  6005. elocacenter:Destroy()
  6006. eloca1:Destroy()
  6007. eloca2:Destroy()
  6008. eloca3:Destroy()
  6009. eloca4:Destroy()
  6010. end))
  6011. end))
  6012. attack = false
  6013. end
  6014.  
  6015. function CorruptionEvent()
  6016. attack = true
  6017. hum.WalkSpeed = 0
  6018. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6019. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6020. local keptcolor = MAINRUINCOLOR
  6021. for i = 0,4,0.1 do
  6022. swait()
  6023. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6024. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6025. 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)
  6026. 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)
  6027. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  6028. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  6029. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  6030. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6031. end
  6032. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6033. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  6034. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  6035. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6036. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6037. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6038. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  6039. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  6040. hum.CameraOffset = vt(0,0,0)
  6041. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6042. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6043. for i = 0, 24 do
  6044. 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"))
  6045. end
  6046. local rrot = 0
  6047. coroutine.resume(coroutine.create(function()
  6048. for i = 0, 4 do
  6049. rrot = rrot + 45
  6050. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6051. xa.Anchored = true
  6052. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6053. xb.Anchored = true
  6054. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6055. xc.Anchored = true
  6056. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6057. xd.Anchored = true
  6058. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6059. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6060. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6061. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6062. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6063. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6064. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6065. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6066. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6067. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6068. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6069. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6070. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6071. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6072. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6073. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6074. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6075. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6076. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6077. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6078. for i = 0, 9 do
  6079. 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"))
  6080. 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"))
  6081. 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"))
  6082. 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"))
  6083. end
  6084. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6085. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6086. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6087. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6088. 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)
  6089. 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)
  6090. 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)
  6091. 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)
  6092. 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))
  6093. 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))
  6094. 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))
  6095. 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))
  6096. game:GetService("Debris"):AddItem(xa, 5)
  6097. game:GetService("Debris"):AddItem(xb, 5)
  6098. game:GetService("Debris"):AddItem(xc, 5)
  6099. game:GetService("Debris"):AddItem(xd, 5)
  6100. coroutine.resume(coroutine.create(function()
  6101. for i = 0, 19 do
  6102. swait()
  6103. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6104. end
  6105. hum.CameraOffset = vt(0,0,0)
  6106. end))
  6107. swait(9)
  6108. end
  6109. end))
  6110. for i = 0,2,0.1 do
  6111. swait()
  6112. 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)
  6113. 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)
  6114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6116. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6117. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6118. end
  6119. attack = false
  6120. hum.WalkSpeed = storehumanoidWS
  6121. end
  6122.  
  6123. function EndGROUND()
  6124. attack = true
  6125. hum.WalkSpeed = 0
  6126. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6127. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6128. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6129. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6130. local keptcolor = MAINRUINCOLOR
  6131. for i = 0,4,0.1 do
  6132. swait()
  6133. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6134. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6135. 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"))
  6136. 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)
  6137. 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)
  6138. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6140. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6141. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6142. end
  6143. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6144. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6145. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6146. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6147. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6148. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6149. coroutine.resume(coroutine.create(function()
  6150. local shval = 10
  6151. for i = 0, 99 do
  6152. swait()
  6153. shval = shval - 0.1
  6154. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6155. end
  6156. hum.CameraOffset = vt(0,0,0)
  6157. end))
  6158. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6159. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6160. for i = 0, 24 do
  6161. 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"))
  6162. end
  6163. local rrot = 0
  6164. local xam = 1
  6165. coroutine.resume(coroutine.create(function()
  6166. for i = 0, 14 do
  6167. --swait()
  6168. rrot = rrot + 40*xam
  6169. xam = xam + 0.25
  6170. local bonus = xam
  6171. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6172. xa.Anchored = true
  6173. xa.Color = Color3.new(0,0,0)
  6174. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6175. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6176. local xc = 0
  6177. coroutine.resume(coroutine.create(function()
  6178. for i = 0, 99 do
  6179. swait()
  6180. xc = xc + 0.01
  6181. xa.Color = Color3.new(xc,0,0)
  6182. end
  6183. xa.Transparency = 1
  6184. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6185. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6186. for i = 0, 9 do
  6187. 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"))
  6188. end
  6189. 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)
  6190. 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)
  6191. 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))
  6192. game:GetService("Debris"):AddItem(xa, 5)
  6193. coroutine.resume(coroutine.create(function()
  6194. for i = 0, 19 do
  6195. swait()
  6196. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6197. end
  6198. hum.CameraOffset = vt(0,0,0)
  6199. end))
  6200. end))
  6201. end
  6202. end))
  6203. for i = 0,2,0.1 do
  6204. swait()
  6205. 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)
  6206. 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)
  6207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6209. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6210. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6211. end
  6212. attack = false
  6213. hum.WalkSpeed = storehumanoidWS
  6214. end
  6215.  
  6216. function HeavenlyDisk()
  6217. attack = true
  6218. hum.WalkSpeed = 2
  6219. local keptcolor = MAINRUINCOLOR
  6220. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6221. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6222. 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)
  6223. 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)
  6224. for i = 0, 14 do
  6225. 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)
  6226. end
  6227. for i = 0,2,0.1 do
  6228. swait()
  6229. 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)
  6230. 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)
  6231. 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)
  6232. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6233. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6234. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6235. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6236. end
  6237. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6238. for i = 0,1,0.6 do
  6239. swait()
  6240. 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)
  6241. 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"))
  6242. 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)
  6243. 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)
  6244. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6246. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6247. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6248. end
  6249. for i = 0,1,0.6 do
  6250. swait()
  6251. 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)
  6252. 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"))
  6253. 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)
  6254. 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)
  6255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6258. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6259. end
  6260. for i = 0,1,0.6 do
  6261. swait()
  6262. 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)
  6263. 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"))
  6264. 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)
  6265. 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)
  6266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6269. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6270. end
  6271. for i = 0,1,0.6 do
  6272. swait()
  6273. 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)
  6274. 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"))
  6275. 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)
  6276. 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)
  6277. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6280. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6281. end
  6282. local rot = 15
  6283. for i = 0, 2 do
  6284. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6285. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6286. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6287. CreateMesh(dis,"Sphere",10,1,10)
  6288. local at1 = Instance.new("Attachment",dis)
  6289. at1.Position = vt(-5,0,0)
  6290. local at2 = Instance.new("Attachment",dis)
  6291. at2.Position = vt(5,0,0)
  6292. local trl = Instance.new('Trail',wed)
  6293. trl.Attachment0 = at1
  6294. trl.Attachment1 = at2
  6295. trl.Texture = "rbxassetid://1049219073"
  6296. trl.LightEmission = 1
  6297. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6298. trl.Color = ColorSequence.new(dis.Color)
  6299. trl.Lifetime = 0.6
  6300. local a = Instance.new("Part",workspace)
  6301. a.Name = "Direction"
  6302. a.Anchored = true
  6303. a.BrickColor = bc("Bright red")
  6304. a.Material = "Neon"
  6305. a.Transparency = 1
  6306. a.CanCollide = false
  6307. local ray = Ray.new(
  6308. dis.CFrame.p, -- origin
  6309. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6310. )
  6311. local ignore = dis
  6312. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6313. a.BottomSurface = 10
  6314. a.TopSurface = 10
  6315. local distance = (dis.CFrame.p - position).magnitude
  6316. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6317. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6318. dis.CFrame = a.CFrame
  6319. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6320. a:Destroy()
  6321. local bv = Instance.new("BodyVelocity")
  6322. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6323. bv.velocity = dis.CFrame.lookVector*250
  6324. bv.Parent = dis
  6325. game:GetService("Debris"):AddItem(dis, 5)
  6326. local hitted = false
  6327. coroutine.resume(coroutine.create(function()
  6328. dis.Touched:connect(function(hit)
  6329. if hitted == false and hit.Parent ~= char then
  6330. hitted = true
  6331. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6332. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6333. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6334. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6335. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6336. coroutine.resume(coroutine.create(function()
  6337. local eff = Instance.new("ParticleEmitter",dis)
  6338. eff.Texture = "rbxassetid://2273224484"
  6339. eff.LightEmission = 1
  6340. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6341. eff.Rate = 500000
  6342. eff.Lifetime = NumberRange.new(0.5,2)
  6343. 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)})
  6344. 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)})
  6345. eff.Speed = NumberRange.new(20,250)
  6346. eff.Drag = 5
  6347. eff.Rotation = NumberRange.new(-500,500)
  6348. eff.VelocitySpread = 9000
  6349. eff.RotSpeed = NumberRange.new(-50,50)
  6350. wait(0.25)
  6351. eff.Enabled = false
  6352. end))
  6353. for i = 0, 9 do
  6354. 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"))
  6355. end
  6356. for i = 0, 19 do
  6357. 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)
  6358. end
  6359. coroutine.resume(coroutine.create(function()
  6360. for i = 0, 19 do
  6361. swait()
  6362. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6363. end
  6364. hum.CameraOffset = vt(0,0,0)
  6365. end))
  6366. dis.Anchored = true
  6367. dis.Transparency = 1
  6368. wait(8)
  6369. dis:Destroy()
  6370. end
  6371. end)
  6372. end))
  6373. rot = rot - 15
  6374. end
  6375. for i = 0,2,0.1 do
  6376. swait()
  6377. 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)
  6378. 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)
  6379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6381. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6382. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6383. end
  6384. attack = false
  6385. hum.WalkSpeed = storehumanoidWS
  6386. end
  6387.  
  6388. function ANNIHILATIONTrans()
  6389. attack = true
  6390. rainbowmode = false
  6391. chaosmode = false
  6392. ModeOfGlitch = 789
  6393. hum.WalkSpeed = 0
  6394. newThemeCust("rbxassetid://1255569288",0,1,1.25)
  6395. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  6396. elocacenter.Anchored = true
  6397. elocacenter.CFrame = root.CFrame
  6398. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6399. eloca1.Anchored = true
  6400. eloca1.CFrame = elocacenter.CFrame
  6401. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6402. eloca2.Anchored = true
  6403. eloca2.CFrame = elocacenter.CFrame
  6404. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6405. eloca3.Anchored = true
  6406. eloca3.CFrame = elocacenter.CFrame
  6407. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6408. eloca4.Anchored = true
  6409. eloca4.CFrame = elocacenter.CFrame
  6410. local lookavec = 0
  6411. local speeds = 0
  6412. CameraEnshaking(3,2.5)
  6413. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6414. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6415. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6416. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6417. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6418. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  6419. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  6420. for i = 0, 5, 0.1 do
  6421. swait()
  6422. ---
  6423. lookavec = lookavec + 1
  6424. speeds = speeds + 10
  6425. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6426. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6427. 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)
  6428. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6429. 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)
  6430. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6431. 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)
  6432. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6433. 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)
  6434. ---
  6435. 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)
  6436. 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)
  6437. 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)
  6438. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6439. 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)
  6440. 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)
  6441. end
  6442. for i = 0, 5, 0.1 do
  6443. swait()
  6444. ---
  6445. speeds = speeds + 10
  6446. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6447. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6448. 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)
  6449. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6450. 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)
  6451. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6452. 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)
  6453. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6454. 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)
  6455. ---
  6456. 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)
  6457. 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)
  6458. 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)
  6459. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6460. 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)
  6461. 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)
  6462. end
  6463. MAINRUINCOLOR = BrickColor.new("Crimson")
  6464. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  6465. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  6466. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  6467. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  6468. CameraEnshaking(1,3)
  6469. for i = 0, 24 do
  6470. 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)
  6471. 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)
  6472. 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)
  6473. 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)
  6474. end
  6475. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6476. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6477. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6478. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6479. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6480. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6481. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6482. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6483. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6484. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6485. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6486. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6487. for i = 0, 5, 0.1 do
  6488. swait()
  6489. ---
  6490. lookavec = lookavec - 1
  6491. speeds = speeds + 10
  6492. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6493. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6494. 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)
  6495. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6496. 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)
  6497. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6498. 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)
  6499. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6500. 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)
  6501. ---
  6502. 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)
  6503. 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)
  6504. 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)
  6505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6506. 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)
  6507. 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)
  6508. end
  6509. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6510. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6511. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6512. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6513. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6514. for i = 0, 49 do
  6515. 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)
  6516. 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)
  6517. end
  6518. CameraEnshaking(5,6)
  6519. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  6520. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  6521. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  6522. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  6523. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  6524. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  6525. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  6526. storehumanoidWS = 100
  6527. hum.WalkSpeed = 100
  6528. rainbowmode = false
  6529. chaosmode = false
  6530. tl1.Enabled = true
  6531. tl2.Enabled = true
  6532. tl3.Enabled = true
  6533. RecolorTextAndRename("ANNIHILATION",Color3.new(117,0,0),Color3.new(0,0,1),"Code")
  6534. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6535. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6536. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6537. for i, v in pairs(mw2:GetChildren()) do
  6538. if v:IsA("Part") then
  6539. v.BrickColor = MAINRUINCOLOR
  6540. v.Material = "Neon"
  6541. end
  6542. end
  6543. for i, v in pairs(mw1:GetChildren()) do
  6544. if v:IsA("Part") then
  6545. v.Transparency = 0
  6546. v.BrickColor = MAINRUINCOLOR
  6547. v.Material = "Neon"
  6548. end
  6549. end
  6550. for i, v in pairs(m:GetChildren()) do
  6551. if v:IsA("Part") then
  6552. v.BrickColor = BrickColor.new("Crimson")
  6553. v.Material = "Neon"
  6554. end
  6555. end
  6556. for i, v in pairs(m2:GetChildren()) do
  6557. if v:IsA("Part") then
  6558. v.BrickColor = BrickColor.new("Crimson")
  6559. v.Material = "Neon"
  6560. end
  6561. end
  6562. for i, v in pairs(m3:GetChildren()) do
  6563. if v:IsA("Part") then
  6564. v.BrickColor = BrickColor.new("Maroon")
  6565. v.Material = "Neon"
  6566. end
  6567. end
  6568. for i, v in pairs(extrawingmod1:GetChildren()) do
  6569. if v:IsA("Part") then
  6570. v.Transparency = 0.75
  6571. v.BrickColor = BrickColor.new("Maroon")
  6572. v.Material = "Neon"
  6573. end
  6574. end
  6575. for i, v in pairs(extrawingmod2:GetChildren()) do
  6576. if v:IsA("Part") then
  6577. v.Transparency = 0.75
  6578. v.BrickColor = BrickColor.new("Crimson")
  6579. v.Material = "Neon"
  6580. end
  6581. end
  6582. attack = false
  6583. end
  6584.  
  6585. function BIGBLACKTrans()
  6586. attack = true
  6587. rainbowmode = false
  6588. chaosmode = false
  6589. ModeOfGlitch = 100
  6590. hum.WalkSpeed = 0
  6591. newThemeCust("rbxassetid://1420353940",0,1,1.25)
  6592. local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
  6593. elocacenter.Anchored = true
  6594. elocacenter.CFrame = root.CFrame
  6595. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6596. eloca1.Anchored = true
  6597. eloca1.CFrame = elocacenter.CFrame
  6598. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6599. eloca2.Anchored = true
  6600. eloca2.CFrame = elocacenter.CFrame
  6601. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6602. eloca3.Anchored = true
  6603. eloca3.CFrame = elocacenter.CFrame
  6604. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6605. eloca4.Anchored = true
  6606. eloca4.CFrame = elocacenter.CFrame
  6607. local lookavec = 0
  6608. local speeds = 0
  6609. CameraEnshaking(3,2.5)
  6610. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6611. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6612. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6613. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6614. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6615. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  6616. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
  6617. for i = 0, 5, 0.1 do
  6618. swait()
  6619. ---
  6620. lookavec = lookavec + 1
  6621. speeds = speeds + 10
  6622. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6623. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6624. 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)
  6625. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6626. 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)
  6627. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6628. 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)
  6629. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6630. 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)
  6631. ---
  6632. 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)
  6633. 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)
  6634. 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)
  6635. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6636. 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)
  6637. 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)
  6638. end
  6639. for i = 0, 5, 0.1 do
  6640. swait()
  6641. ---
  6642. speeds = speeds + 10
  6643. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6644. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6645. 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)
  6646. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6647. 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)
  6648. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6649. 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)
  6650. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6651. 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)
  6652. ---
  6653. 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)
  6654. 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)
  6655. 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)
  6656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6657. 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)
  6658. 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)
  6659. end
  6660. MAINRUINCOLOR = BrickColor.new("Black")
  6661. CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
  6662. CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
  6663. CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
  6664. CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
  6665. CameraEnshaking(1,3)
  6666. for i = 0, 24 do
  6667. 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)
  6668. 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)
  6669. 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)
  6670. 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)
  6671. end
  6672. sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6673. sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6674. sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6675. sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6676. sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6677. sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6678. sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6679. sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6680. sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6681. sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6682. sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6683. sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6684. for i = 0, 5, 0.1 do
  6685. swait()
  6686. ---
  6687. lookavec = lookavec - 1
  6688. speeds = speeds + 10
  6689. elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6690. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6691. 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)
  6692. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6693. 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)
  6694. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6695. 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)
  6696. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6697. 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)
  6698. ---
  6699. 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)
  6700. 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)
  6701. 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)
  6702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6703. 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)
  6704. 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)
  6705. end
  6706. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6707. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6708. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6709. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6710. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6711. for i = 0, 49 do
  6712. 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)
  6713. 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)
  6714. end
  6715. CameraEnshaking(5,6)
  6716. CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
  6717. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  6718. CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
  6719. CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
  6720. CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
  6721. CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
  6722. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
  6723. storehumanoidWS = 100
  6724. hum.WalkSpeed = 100
  6725. rainbowmode = false
  6726. chaosmode = false
  6727. tl1.Enabled = true
  6728. tl2.Enabled = true
  6729. tl3.Enabled = true
  6730. RecolorTextAndRename("THE BIG BLACK",Color3.new(0,0,0),Color3.new(1,1,1),"Code")
  6731. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6732. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6733. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6734. for i, v in pairs(mw2:GetChildren()) do
  6735. if v:IsA("Part") then
  6736. v.BrickColor = MAINRUINCOLOR
  6737. v.Material = "Neon"
  6738. end
  6739. end
  6740. for i, v in pairs(mw2:GetChildren()) do
  6741. if v:IsA("Part") then
  6742. v.BrickColor = BrickColor.new("Really black")
  6743. v.Material = "Glass"
  6744. end
  6745. end
  6746. for i, v in pairs(mw1:GetChildren()) do
  6747. if v:IsA("Part") then
  6748. v.Transparency = 0
  6749. v.BrickColor = BrickColor.new("Really black")
  6750. v.Material = "Glass"
  6751. end
  6752. end
  6753. for i, v in pairs(m:GetChildren()) do
  6754. if v:IsA("Part") then
  6755. v.BrickColor = BrickColor.new("Really black")
  6756. v.Material = "Glass"
  6757. end
  6758. end
  6759. for i, v in pairs(m2:GetChildren()) do
  6760. if v:IsA("Part") then
  6761. v.BrickColor = BrickColor.new("Dark stone grey")
  6762. v.Material = "Granite"
  6763. end
  6764. end
  6765. for i, v in pairs(m3:GetChildren()) do
  6766. if v:IsA("Part") then
  6767. v.BrickColor = BrickColor.new("Really black")
  6768. v.Material = "Glass"
  6769. end
  6770. end
  6771. for i, v in pairs(extrawingmod1:GetChildren()) do
  6772. if v:IsA("Part") then
  6773. v.Transparency = 0
  6774. v.BrickColor = BrickColor.new("Dark stone grey")
  6775. v.Material = "Glass"
  6776. end
  6777. end
  6778. for i, v in pairs(extrawingmod2:GetChildren()) do
  6779. if v:IsA("Part") then
  6780. v.Transparency = 0
  6781. v.BrickColor = BrickColor.new("Dark stone grey")
  6782. v.Material = "Glass"
  6783. end
  6784. end
  6785. attack = false
  6786. end
  6787.  
  6788. function RapidBurst()
  6789. attack = true
  6790. hum.WalkSpeed = 0
  6791. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6792. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6793. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6794. local keptcolor = MAINRUINCOLOR
  6795. for i = 0,8,0.1 do
  6796. swait()
  6797. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6798. 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())
  6799. 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)
  6800. 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)
  6801. 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)
  6802. 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)
  6803. 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)
  6804. 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)
  6805. 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)
  6806. end
  6807. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6808. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6809. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6810. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6811. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6812. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6813. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6814. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6815. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6816. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6817. hum.CameraOffset = vt(0,0,0)
  6818. for i = 0, 24 do
  6819. 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())
  6820. end
  6821. local distam = 0
  6822. coroutine.resume(coroutine.create(function()
  6823. for i = 0, 99 do
  6824. wait()
  6825. distam = distam + 1
  6826. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6827. xa.Anchored = true
  6828. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6829. game:GetService("Debris"):AddItem(xa, 5)
  6830. for i = 0, 4 do
  6831. 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())
  6832. end
  6833. coroutine.resume(coroutine.create(function()
  6834. local eff = Instance.new("ParticleEmitter",xa)
  6835. eff.Texture = "rbxassetid://2273224484"
  6836. eff.LightEmission = 1
  6837. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6838. eff.Rate = 500000
  6839. eff.Lifetime = NumberRange.new(1,3)
  6840. 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)})
  6841. 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)})
  6842. eff.Speed = NumberRange.new(50,500)
  6843. eff.Drag = 5
  6844. eff.Rotation = NumberRange.new(-500,500)
  6845. eff.VelocitySpread = 9000
  6846. eff.RotSpeed = NumberRange.new(-50,50)
  6847. wait(0.25)
  6848. eff.Enabled = false
  6849. end))
  6850. coroutine.resume(coroutine.create(function()
  6851. for i = 0, 19 do
  6852. swait()
  6853. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6854. end
  6855. hum.CameraOffset = vt(0,0,0)
  6856. end))
  6857. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6858. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6859. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6860. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6861. end
  6862. end))
  6863. attack = false
  6864. hum.WalkSpeed = storehumanoidWS
  6865. end
  6866.  
  6867.  
  6868. function FallenOrbs()
  6869. attack = true
  6870. hum.WalkSpeed = 2
  6871. local keptcolor = MAINRUINCOLOR
  6872. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6873. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6874. coroutine.resume(coroutine.create(function()
  6875. for i = 0, 29 do
  6876. swait(2)
  6877. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6878. dis.Anchored = true
  6879. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6880. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6881. CreateMesh(dis,"Sphere",2,2,2)
  6882. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6883. 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"))
  6884. coroutine.resume(coroutine.create(function()
  6885. wait(0.5)
  6886. dis.Anchored = false
  6887. CFuncs["EchoSound"].Create("rbxassetid://144140670", dis, 5, 1.75,0.1,2,0.15,0.5,1)
  6888. local at1 = Instance.new("Attachment",dis)
  6889. at1.Position = vt(-1,0,0)
  6890. local at2 = Instance.new("Attachment",dis)
  6891. at2.Position = vt(1,0,0)
  6892. local trl = Instance.new('Trail',wed)
  6893. trl.Attachment0 = at1
  6894. tr1.FaceCamera = true
  6895. trl.Attachment1 = at2
  6896. trl.Texture = "rbxassetid://1049219073"
  6897. trl.LightEmission = 1
  6898. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6899. trl.Color = ColorSequence.new(dis.Color)
  6900. trl.Lifetime = 0.6
  6901. local a = Instance.new("Part",workspace)
  6902. a.Name = "Direction"
  6903. a.Anchored = true
  6904. a.BrickColor = bc("Bright red")
  6905. a.Material = "Neon"
  6906. a.Transparency = 1
  6907. a.CanCollide = false
  6908. local ray = Ray.new(
  6909. dis.CFrame.p, -- origin
  6910. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6911. )
  6912. local ignore = dis
  6913. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6914. a.BottomSurface = 10
  6915. a.TopSurface = 10
  6916. local distance = (dis.CFrame.p - position).magnitude
  6917. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6918. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6919. dis.CFrame = a.CFrame
  6920. a:Destroy()
  6921. local bv = Instance.new("BodyVelocity")
  6922. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6923. bv.velocity = dis.CFrame.lookVector*500
  6924. bv.Parent = dis
  6925. game:GetService("Debris"):AddItem(dis, 5)
  6926. local hitted = false
  6927. coroutine.resume(coroutine.create(function()
  6928. dis.Touched:connect(function(hit)
  6929. if hitted == false and hit.Parent ~= char then
  6930. hitted = true
  6931. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6932. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6933. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6934. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6935. coroutine.resume(coroutine.create(function()
  6936. local eff = Instance.new("ParticleEmitter",dis)
  6937. eff.Texture = "rbxassetid://2273224484"
  6938. eff.LightEmission = 1
  6939. eff.Color = ColorSequence.new(dis.Color)
  6940. eff.Rate = 500000
  6941. eff.Lifetime = NumberRange.new(0.5,2)
  6942. 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)})
  6943. 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)})
  6944. eff.Speed = NumberRange.new(20,250)
  6945. eff.Drag = 5
  6946. eff.Rotation = NumberRange.new(-500,500)
  6947. eff.VelocitySpread = 9000
  6948. eff.RotSpeed = NumberRange.new(-50,50)
  6949. wait(0.5)
  6950. eff.Enabled = false
  6951. end))
  6952. for i = 0, 4 do
  6953. 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"))
  6954. end
  6955. coroutine.resume(coroutine.create(function()
  6956. for i = 0, 19 do
  6957. swait()
  6958. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6959. end
  6960. hum.CameraOffset = vt(0,0,0)
  6961. end))
  6962. dis.Anchored = true
  6963. dis.Transparency = 1
  6964. wait(8)
  6965. dis:Destroy()
  6966. end
  6967. end)
  6968. end))
  6969. end))
  6970. end
  6971. end))
  6972. for i = 0,9,0.1 do
  6973. swait()
  6974. 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)
  6975. 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)
  6976. 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)
  6977. 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)
  6978. 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)
  6979. 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)
  6980. 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)
  6981. end
  6982. attack = false
  6983. hum.WalkSpeed = storehumanoidWS
  6984. end
  6985.  
  6986. -------------------------------------
  6987.  
  6988. Humanoid.Animator.Parent = nil
  6989.  
  6990. -------------------------------------
  6991.  
  6992. local attacktype = 1
  6993. mouse.Button1Down:connect(function()
  6994. if attack == false and attacktype == 1 then
  6995. attacktype = 2
  6996. attackone()
  6997. elseif attack == false and attacktype == 2 then
  6998. attacktype = 3
  6999. attacktwo()
  7000. elseif attack == false and attacktype == 3 then
  7001. attacktype = 1
  7002. attackthree()
  7003. elseif attack == false and attacktype == 4 then
  7004. attacktype = 1
  7005. --attackfour()
  7006. end
  7007. end)
  7008. mouse.KeyDown:connect(function(k)
  7009. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  7010. --normalmog() ---Disabled due to crashing... only in VSB
  7011. ModeOfGlitch = 1
  7012. storehumanoidWS = 16
  7013. hum.WalkSpeed = 16
  7014. rainbowmode = false
  7015. chaosmode = false
  7016. newTheme("rbxassetid://614032233",48.6,1,1.25)
  7017. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  7018. MAINRUINCOLOR = BrickColor.new("Really red")
  7019. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  7020. end
  7021. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  7022. ModeOfGlitch = 2
  7023. storehumanoidWS = 16
  7024. hum.WalkSpeed = 16
  7025. rainbowmode = false
  7026. chaosmode = false
  7027. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  7028. newTheme("rbxassetid://1539245059",0,1,1.25)
  7029. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  7030. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7031. end
  7032. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  7033. ModeOfGlitch = 3
  7034. storehumanoidWS = 16
  7035. hum.WalkSpeed = 16
  7036. rainbowmode = false
  7037. chaosmode = false
  7038. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  7039. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  7040. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7041. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7042. end
  7043. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  7044. ModeOfGlitch = 4
  7045. storehumanoidWS = 16
  7046. hum.WalkSpeed = 16
  7047. rainbowmode = false
  7048. chaosmode = true
  7049. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  7050. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  7051. MAINRUINCOLOR = BrickColor.new("Black")
  7052. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7053. end
  7054. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  7055. ModeOfGlitch = 5
  7056. storehumanoidWS = 16
  7057. hum.WalkSpeed = 16
  7058. rainbowmode = false
  7059. chaosmode = false
  7060. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  7061. newTheme("rbxassetid://661079869",0,1.02,1.25)
  7062. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  7063. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7064. end
  7065. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  7066. ModeOfGlitch = 6
  7067. storehumanoidWS = 100
  7068. hum.WalkSpeed = 100
  7069. rainbowmode = false
  7070. chaosmode = false
  7071. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  7072. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  7073. MAINRUINCOLOR = BrickColor.new("White")
  7074. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7075. end
  7076. if k == "m" and attack == false and ModeOfGlitch == 11 and ModeOfGlitch ~= 100 then
  7077. BIGBLACKTrans()
  7078. end
  7079. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  7080. ModeOfGlitch = 8
  7081. storehumanoidWS = 140
  7082. hum.WalkSpeed = 140
  7083. rainbowmode = false
  7084. chaosmode = false
  7085. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  7086. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  7087. MAINRUINCOLOR = BrickColor.new("Alder")
  7088. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7089. end
  7090. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 789 then
  7091. ANNIHILATIONTrans()
  7092. end
  7093. if k == "g" and attack == false and ModeOfGlitch ~= 10 then
  7094. ModeOfGlitch = 10
  7095. storehumanoidWS = 16
  7096. hum.WalkSpeed = 16
  7097. rainbowmode = false
  7098. chaosmode = false
  7099. RecolorTextAndRename("Luna",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"Antique")
  7100. newTheme("rbxassetid://1449911189",0,1.02,1.25)
  7101. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7102. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7103. end
  7104. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7105. ModeOfGlitch = 55469696922
  7106. storehumanoidWS = 275
  7107. hum.WalkSpeed = 275
  7108. rainbowmode = false
  7109. chaosmode = false
  7110. RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  7111. newTheme("rbxassetid://582020393",0,1.005,1.25)
  7112. MAINRUINCOLOR = BrickColor.new("Hot pink")
  7113. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7114. end
  7115. if k == "n" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 987 then
  7116. ModeOfGlitch = 987
  7117. storehumanoidWS = 275
  7118. hum.WalkSpeed = 275
  7119. rainbowmode = false
  7120. chaosmode = false
  7121. RecolorTextAndRename("Lunar",Color3.new(0,0,0),BrickColor.new("Navy blue").Color,"Antique")
  7122. newTheme("rbxassetid://2223020681",0,1.005,1.25)
  7123. MAINRUINCOLOR = BrickColor.new("Cyan")
  7124. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7125. end
  7126. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7127. ModeOfGlitch = 4367677813
  7128. storehumanoidWS = 225
  7129. hum.WalkSpeed = 225
  7130. rainbowmode = false
  7131. chaosmode = false
  7132. RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7133. newTheme("rbxassetid://363284685",0,1.01,1.25)
  7134. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7135. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7136. end
  7137. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7138. ModeOfGlitch = 1264532489
  7139. storehumanoidWS = 250
  7140. hum.WalkSpeed = 250
  7141. rainbowmode = false
  7142. chaosmode = false
  7143. RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7144. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  7145. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7146. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7147. end
  7148. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 11 then
  7149. ModeOfGlitch = 11
  7150. storehumanoidWS = 16
  7151. hum.WalkSpeed = 16
  7152. rainbowmode = false
  7153. chaosmode = false
  7154. RecolorTextAndRename("MURDER",Color3.new(0,0,0),BrickColor.new("Really red").Color,"Antique")
  7155. newTheme("rbxassetid://407749940",1,1.01,1.25)
  7156. MAINRUINCOLOR = BrickColor.new("Really red")
  7157. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7158. end
  7159. if k == "l" and mutedtog == false then
  7160. mutedtog = true
  7161. kan.Volume = 0
  7162. elseif k == "l" and mutedtog == true then
  7163. mutedtog = false
  7164. kan.Volume = 1.25
  7165. end
  7166. if k == "p" and toggleTag == false then
  7167. toggleTag = true
  7168. modet.TextTransparency = 0
  7169. modet.TextStrokeTransparency = 0
  7170. elseif k == "p" and toggleTag == true then
  7171. toggleTag = false
  7172. modet.TextTransparency = 1
  7173. modet.TextStrokeTransparency = 1
  7174. end
  7175. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7176. ExtinctiveHeartbreak()
  7177. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7178. HeavenlyDisk()
  7179. elseif k == "v" and attack == false and ModeOfGlitch == 8 then
  7180. THE_TRUE_POWER_OF_VIOLENCE()
  7181. elseif k == "z" and attack == false and ModeOfGlitch == 789 then
  7182. ViolentRing()
  7183. elseif k == "z" and attack == false and ModeOfGlitch == 100 then
  7184. GalacticalBeams()
  7185. elseif k == "z" and attack == false and ModeOfGlitch == 987 then
  7186. BeamOfDeath()
  7187. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7188. DualGleamingBeam()
  7189. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  7190. Fireball()
  7191. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7192. CorruptionEvent()
  7193. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7194. RapidBurst()
  7195. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7196. FallenOrbs()
  7197. end
  7198. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7199. EndGROUND()
  7200. end
  7201. end)
  7202.  
  7203. coroutine.resume(coroutine.create(function()
  7204. while true do
  7205. swait()
  7206. if ModeOfGlitch == 100 then
  7207. 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))),1,0.25,7.5,-0.0075,MAINRUINCOLOR,0)
  7208. end
  7209. if ModeOfGlitch == 5555 then
  7210. 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)
  7211. end
  7212. end
  7213. end))
  7214. --[[coroutine.resume(coroutine.create(function()
  7215. while true do
  7216. swait(2)
  7217. if chaosmode == true then
  7218. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7219. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7220. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7221. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7222. for i, v in pairs(mw1:GetChildren()) do
  7223. if v:IsA("Part") then
  7224. v.Transparency = 0.75
  7225. v.BrickColor = BrickColor.random()
  7226. v.Material = "Neon"
  7227. end
  7228. end
  7229. for i, v in pairs(m2:GetChildren()) do
  7230. if v:IsA("Part") then
  7231. v.BrickColor = BrickColor.random()
  7232. v.Material = "Neon"
  7233. end
  7234. end
  7235. end
  7236. end
  7237. end))]]
  7238.  
  7239. coroutine.resume(coroutine.create(function()
  7240. while true do
  7241. swait()
  7242. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 789 or ModeOfGlitch == 987 then
  7243. 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)
  7244. end
  7245. end
  7246. end))
  7247. --[[coroutine.resume(coroutine.create(function()
  7248. while true do
  7249. swait(2)
  7250. if chaosmode == true then
  7251. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7252. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7253. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7254. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7255. for i, v in pairs(mw1:GetChildren()) do
  7256. if v:IsA("Part") then
  7257. v.Transparency = 0.75
  7258. v.BrickColor = BrickColor.random()
  7259. v.Material = "Neon"
  7260. end
  7261. end
  7262. for i, v in pairs(m2:GetChildren()) do
  7263. if v:IsA("Part") then
  7264. v.BrickColor = BrickColor.random()
  7265. v.Material = "Neon"
  7266. end
  7267. end
  7268. end
  7269. end
  7270. end))]]--
  7271. Humanoid.Name = "STARGLITCHER"
  7272. Humanoid.MaxHealth = math.huge
  7273. Humanoid.Health = math.huge
  7274. Instance.new("ForceField",char).Visible = false
  7275.  
  7276.  
  7277. local bguis = Instance.new("BillboardGui",tors)
  7278. bguis.Size = UDim2.new(25, 0, 25, 0)
  7279. local imgca = Instance.new("ImageLabel",bguis)
  7280. imgca.BackgroundTransparency = 1
  7281. imgca.ImageTransparency = 1
  7282. imgca.Size = UDim2.new(1,0,1,0)
  7283. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7284. imgca.ImageColor3 = Color3.new(0,0,0)
  7285.  
  7286. idleanim=.4
  7287. while true do
  7288. if mutedtog == false then
  7289. kan.Volume = currentVol
  7290. elseif mutedtog == true then
  7291. kan.Volume = 0
  7292. end
  7293. kan.PlaybackSpeed = currentPitch
  7294. kan.Pitch = currentPitch
  7295. kan.SoundId = currentThemePlaying
  7296. kan.Looped = true
  7297. kan.Parent = char
  7298. kan:Resume()
  7299. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 then
  7300. imgca.ImageTransparency = 1
  7301. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 then
  7302. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7303. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7304. end
  7305. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7306. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7307. coroutine.resume(coroutine.create(function()
  7308. if chaosmode == true then
  7309. for i, v in pairs(mw1:GetChildren()) do
  7310. if v:IsA("Part") then
  7311. v.Transparency = 0
  7312. v.BrickColor = BrickColor.random()
  7313. v.Material = "Neon"
  7314. end
  7315. end
  7316. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7317. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7318. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7319. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7320. end
  7321. end))
  7322. if chaosmode == false then
  7323. modet.Position = UDim2.new(0,0,0,0)
  7324. modet.Rotation = -5 * math.cos(sine / 32)
  7325. techc.Rotation = techc.Rotation + 1
  7326. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7327. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7328. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50
  7329. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25
  7330. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7331. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7332. else
  7333. techc.Rotation = techc.Rotation + 1
  7334. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7335. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7336. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7337. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7338. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7339. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7340. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7341. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7342. end
  7343. CameraManager()
  7344. swait()
  7345. 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)
  7346. 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)
  7347. 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)
  7348. 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)
  7349. 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)
  7350. 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)
  7351. 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)
  7352. 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)
  7353. 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)
  7354. 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)
  7355. 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)
  7356. 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)
  7357. sine = sine + change
  7358. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7359. local velderp=RootPart.Velocity.y
  7360. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7361. coroutine.resume(coroutine.create(function()
  7362. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 987 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 100 then
  7363. if hitfloor ~= nil then
  7364. 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"))
  7365. if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 100 then
  7366. 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)
  7367. end
  7368. end
  7369. end
  7370. end))
  7371. if equipped==true or equipped==false then
  7372. if attack==false then
  7373. idle=idle+1
  7374. else
  7375. idle=0
  7376. end
  7377. if idle>=500 then
  7378. if attack==false then
  7379. --Sheath()
  7380. end
  7381. end
  7382. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7383. Anim="Jump"
  7384. if attack==false then
  7385. 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)
  7386. 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)
  7387. 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)
  7388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7389. 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)
  7390. 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)
  7391. end
  7392. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7393. Anim="Fall"
  7394. if attack==false then
  7395. 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)
  7396. 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)
  7397. 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)
  7398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7399. 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)
  7400. 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)
  7401. end
  7402. elseif torvel<1 and hitfloor~=nil then
  7403. Anim="Idle"
  7404. if attack==false then
  7405. if ModeOfGlitch == 1 then
  7406. local snap = math.random(1,10)
  7407. if snap == 1 then
  7408. 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)
  7409. end
  7410. 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)
  7411. 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)
  7412. 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)
  7413. 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)
  7414. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  7415. 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)
  7416. elseif ModeOfGlitch == 2 then
  7417. 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)
  7418. 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)
  7419. 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)
  7420. 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)
  7421. 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)
  7422. 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)
  7423. elseif ModeOfGlitch == 3 then
  7424. local snap = math.random(1,32)
  7425. if snap == 1 then
  7426. 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)
  7427. end
  7428. 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)
  7429. 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)
  7430. 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)
  7431. 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)
  7432. 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)
  7433. 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)
  7434. elseif ModeOfGlitch == 4 then
  7435. local snap = math.random(1,5)
  7436. if snap == 1 then
  7437. 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)
  7438. 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)
  7439. 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)
  7440. end
  7441. 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)
  7442. 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)
  7443. 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)
  7444. 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)
  7445. 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)
  7446. 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)
  7447. elseif ModeOfGlitch == 10 then
  7448. 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(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1)
  7449. 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(10 + 3 * math.cos(sine / 34))),.1)
  7450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1)
  7451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1)
  7452. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1)
  7453. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1)
  7454. elseif ModeOfGlitch == 11 then
  7455. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7456. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7457. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7458. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  7459. 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)
  7460. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7461. elseif ModeOfGlitch == 100 then
  7462. 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)
  7463. 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))
  7464. 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)
  7465. 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)
  7466. 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)
  7467. 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)
  7468. 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)
  7469. 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)
  7470. elseif ModeOfGlitch == 789 then
  7471. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7472. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7473. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7474. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7475. 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)
  7476. 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)
  7477. elseif ModeOfGlitch == 5 then
  7478. 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)
  7479. 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)
  7480. 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)
  7481. 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)
  7482. 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)
  7483. 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)
  7484. elseif ModeOfGlitch == 6 then
  7485. 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)
  7486. 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)
  7487. 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)
  7488. 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)
  7489. 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)
  7490. 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)
  7491. elseif ModeOfGlitch == 8 then
  7492. 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)
  7493. 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)
  7494. 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)
  7495. 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)
  7496. 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)
  7497. 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)
  7498. elseif ModeOfGlitch == 987 then
  7499. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
  7500. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1)
  7501. 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(-5 - 2 * math.cos(sine / 53))),.1)
  7502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
  7503. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
  7504. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
  7505. elseif ModeOfGlitch == 1264532489 then
  7506. 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)
  7507. 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)
  7508. 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)
  7509. 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)
  7510. 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)
  7511. 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)
  7512. 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)
  7513. elseif ModeOfGlitch == 4367677813 then
  7514. 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)
  7515. 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)
  7516. 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(-60)),.1)
  7517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1)
  7518. 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)
  7519. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7520. elseif ModeOfGlitch == 55469696922 then
  7521. 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),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 2 * math.cos(sine / 32))),.1)
  7522. 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(17 + 2 * math.cos(sine / 32))),.1)
  7523. 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)
  7524. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7525. 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)
  7526. 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)
  7527. end
  7528. end
  7529. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7530. Anim="Walk"
  7531. if attack==false then
  7532. 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)
  7533. 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)
  7534. 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)
  7535. 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)
  7536. 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)
  7537. 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)
  7538. end
  7539. elseif torvel>=22 and hitfloor~=nil then
  7540. Anim="Run"
  7541. if attack==false then
  7542. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 789 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 987 then
  7543. 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 + 85 * math.cos(sine / 6))),.1)
  7544. 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 + 85 * math.cos(sine / 6))),.1)
  7545. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  7546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  7547. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  7548. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  7549. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 789 or ModeOfGlitch == 987 then
  7550. 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)
  7551. 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)
  7552. 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)
  7553. 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)
  7554. 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)
  7555. 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)
  7556. end
  7557. end
  7558. end
  7559. end
  7560. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement