Advertisement
Guest User

(- Test 2 -)

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