Advertisement
artucox7

SGAwaken

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