Advertisement
Goo345

Untitled

Aug 3rd, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 300.70 KB | None | 0 0
  1. warn([[Star Glitcher Loaded.
  2. All purpose switcher... -- wat
  3.  
  4. It's not over yet.
  5. The faith is among us.
  6. And yet you still haven't defeated me.
  7. Now is my chance to destroy you.
  8. With the elemental being struggling to gain power.
  9. This is the result.
  10. Very unstable and powerful.
  11. An insanely chaotic being.
  12. Nobody knew that one could hold this power.
  13. It's the one that has been created by an unknown being.
  14. You know this name already.
  15. The power is inside your body.
  16. You will decide things with this power.
  17. And the future changes with your choices.
  18. For now, you'll decide.
  19. You're one of them who holds this chaotic power.
  20. And so on, you would get chaotic to everyone else.
  21. You seem not to trust anybody, but yourself.
  22. It's only your decision.
  23. No mercy, No spare.
  24. Its in your hands, You are the Star Glitcher.
  25.  
  26. Created by 'NoobyGames12'
  27. Edited by 'danny199990'
  28. Some stuff by 'XXUNORIBOASXX'
  29. Even more edited by 'GodzillaGamer2037'
  30.  
  31. ]])
  32. print([[Icons:
  33. ! = New
  34. ? = Spoilers
  35. * = Exclusive
  36. ]])
  37. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  38. - Original themes included
  39. *-Divine Purity
  40. *-Distortion mode
  41. *-Divine universe
  42. !-Ultra Chaos/Rainbow mode
  43.  
  44. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  45. ]])
  46. --- its obs smooth af do not touch
  47. ---- Sources and functions might be taken from others
  48. Player = game:GetService("Players").LocalPlayer
  49. PlayerGui = Player.PlayerGui
  50. Cam = workspace.CurrentCamera
  51. Backpack = Player.Backpack
  52. Character = Player.Character
  53. Humanoid = Character.Humanoid
  54. Mouse = Player:GetMouse()
  55. RootPart = Character["HumanoidRootPart"]
  56. Torso = Character["Torso"]
  57. Head = Character["Head"]
  58. RightArm = Character["Right Arm"]
  59. LeftArm = Character["Left Arm"]
  60. RightLeg = Character["Right Leg"]
  61. LeftLeg = Character["Left Leg"]
  62. RootJoint = RootPart["RootJoint"]
  63. Neck = Torso["Neck"]
  64. RightShoulder = Torso["Right Shoulder"]
  65. LeftShoulder = Torso["Left Shoulder"]
  66. RightHip = Torso["Right Hip"]
  67. LeftHip = Torso["Left Hip"]
  68.  
  69. IT = Instance.new
  70. CF = CFrame.new
  71. VT = Vector3.new
  72. RAD = math.rad
  73. C3 = Color3.new
  74. UD2 = UDim2.new
  75. BRICKC = BrickColor.new
  76. ANGLES = CFrame.Angles
  77. EULER = CFrame.fromEulerAnglesXYZ
  78. COS = math.cos
  79. ACOS = math.acos
  80. SIN = math.sin
  81. ASIN = math.asin
  82. ABS = math.abs
  83. MRANDOM = math.random
  84. FLOOR = math.floor
  85.  
  86. plr = game:GetService("Players").LocalPlayer
  87. char = plr.Character
  88. hum = char.Humanoid
  89. local cam = game.Workspace.CurrentCamera
  90. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  91. Camera = cam
  92. local CamInterrupt = false
  93. local TwoD = false
  94. local TargetInfo = {nil, nil}
  95. cam.CameraType = "Custom"
  96. t = char.Torso
  97. h = char.Head
  98. ra = char["Right Arm"]
  99. la = char["Left Arm"]
  100. rl = char["Right Leg"]
  101. ll = char["Left Leg"]
  102. tors = char.Torso
  103. lleg = char["Left Leg"]
  104. root = char.HumanoidRootPart
  105. hed = char.Head
  106. rleg = char["Right Leg"]
  107. rarm = char["Right Arm"]
  108. larm = char["Left Arm"]
  109. radian = math.rad
  110. random = math.random
  111. Vec3 = Vector3.new
  112. Inst = Instance.new
  113. cFrame = CFrame.new
  114. Euler = CFrame.fromEulerAnglesXYZ
  115. vt = Vector3.new
  116. bc = BrickColor.new
  117. br = BrickColor.random
  118. it = Instance.new
  119. cf = CFrame.new
  120. local eff = true
  121. local shielding = false
  122.  
  123. Animation_Speed = 3
  124. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  125. local Speed = 12
  126. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  127. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  128. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  129. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  130. local DAMAGEMULTIPLIER = 1
  131. local ANIM = "Idle"
  132. local ATTACK = false
  133. local EQUIPPED = false
  134. local HOLD = false
  135. local COMBO = 1
  136. local Rooted = false
  137. local SINE = 0
  138. local KEYHOLD = false
  139. local CHANGE = 2 / Animation_Speed
  140. local WALKINGANIM = false
  141. local VALUE1 = false
  142. local VALUE2 = false
  143. local ROBLOXIDLEANIMATION = IT("Animation")
  144. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  145. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  146. --ROBLOXIDLEANIMATION.Parent = Humanoid
  147. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  148. WEAPONGUI.Name = "Weapon GUI"
  149. local Effects = IT("Folder", Character)
  150. Effects.Name = "Effects"
  151. local ANIMATOR = Humanoid.Animator
  152. local ANIMATE = Character.Animate
  153. local UNANCHOR = true
  154. local WHITELIST = {}
  155. local TAUNT = false
  156. local OFFSET = 0
  157. local FULL = false
  158.  
  159. local Booleans = {
  160. CamFollow = true,
  161. GyroUse = true
  162. }
  163.  
  164. function Swait(NUMBER)
  165. if NUMBER == 0 or NUMBER == nil then
  166. ArtificialHB.Event:wait()
  167. else
  168. for i = 1, NUMBER do
  169. ArtificialHB.Event:wait()
  170. end
  171. end
  172. end
  173.  
  174. function lerp(object, newCFrame, alpha)
  175. return object:lerp(newCFrame, alpha)
  176. end
  177.  
  178. local Directer = Inst("BodyGyro", root)
  179. Directer.MaxTorque = Vec3(0, 0, 0)
  180. Directer.P = 600000
  181. local CPart = Inst("Part")
  182. CPart.Anchored = true
  183. CPart.CanCollide = false
  184. CPart.Locked = true
  185. CPart.Transparency = 1
  186.  
  187. local rainbowmode = false
  188. local chaosmode = false
  189.  
  190. kan = Instance.new("Sound",char)
  191. kan.Volume = 1.25
  192. kan.TimePosition = 0
  193. kan.PlaybackSpeed = 1
  194. kan.Pitch = 1
  195. kan.SoundId = "rbxassetid://614032233"
  196. kan.Name = "wrecked"
  197. kan.Looped = true
  198. kan:Play()
  199.  
  200. function newTheme(ID,timepos,pitch,vol)
  201. local kanz = kan
  202. --kanz:Stop()
  203. --kanz.Volume = vol
  204. --kanz.TimePosition = timepos
  205. kanz.PlaybackSpeed = pitch
  206. kanz.Pitch = pitch
  207. kanz.SoundId = ID
  208. kanz.Name = "wrecked"
  209. kanz.Looped = true
  210. kanz.Volume = 3
  211. --kanz:Play()
  212. --coroutine.resume(coroutine.create(function()
  213. --wait(0.05)
  214. --end))
  215. end
  216.  
  217. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  218. local NEWSOUND = nil
  219. coroutine.resume(coroutine.create(function()
  220. NEWSOUND = S:Clone()
  221. NEWSOUND.Parent = PARENT
  222. NEWSOUND.Volume = VOLUME
  223. NEWSOUND.Pitch = PITCH
  224. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  225. NEWSOUND:play()
  226. if DOESLOOP == true then
  227. NEWSOUND.Looped = true
  228. else
  229. repeat wait(1) until NEWSOUND.Playing == false
  230. NEWSOUND:remove()
  231. end
  232. end))
  233. return NEWSOUND
  234. end
  235.  
  236. function newThemeCust(ID,timepos,pitch,vol)
  237. local kanz = kan
  238. kanz:Stop()
  239. kanz.Volume = vol
  240. kanz.TimePosition = timepos
  241. kanz.PlaybackSpeed = pitch
  242. kanz.Pitch = pitch
  243. kanz.SoundId = ID
  244. kanz.Name = "wrecked"
  245. kanz.Looped = true
  246. kanz:Play()
  247. coroutine.resume(coroutine.create(function()
  248. wait(0.05)
  249. end))
  250. end
  251.  
  252.  
  253.  
  254. function CameraShake(Times, Power, PlayerTarget)
  255. coroutine.resume(coroutine.create(function()
  256. FV = Instance.new("BoolValue", PlayerTarget)
  257. FV.Name = "CameraShake"
  258. for ShakeNum=1,Times do
  259. swait()
  260. local ef=Power
  261. if ef>=1 then
  262. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  263. else
  264. ef=Power*10
  265. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  266. end
  267. end
  268. Humanoid.CameraOffset = Vector3.new(0,0,0)
  269. FV:Destroy()
  270. end))
  271. end
  272.  
  273. function CameraEnshaking(Length,Intensity)
  274. coroutine.resume(coroutine.create(function()
  275. local intensity = 1*Intensity
  276. local rotM = 0.01*Intensity
  277. for i = 0, Length, 0.1 do
  278. swait()
  279. intensity = intensity - 0.05*Intensity/Length
  280. rotM = rotM - 0.0005*Intensity/Length
  281. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  282. 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)
  283. end
  284. Humanoid.CameraOffset = Vec3(0, 0, 0)
  285. end))
  286. end
  287. CamShake=function(Part,Distan,Power,Times)
  288. local de=Part.Position
  289. for i,v in pairs(workspace:children()) do
  290. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  291. for _,c in pairs(v:children()) do
  292. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  293. local Noob=v.Humanoid
  294. if Noob~=nil then
  295. coroutine.resume(coroutine.create(function()
  296. FV = Instance.new("BoolValue", Noob)
  297. FV.Name = "CameraShake"
  298. for ShakeNum=1,Times do
  299. swait()
  300. local ef=Power
  301. if ef>=1 then
  302. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  303. else
  304. ef=Power*10
  305. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  306. end
  307. end
  308. Humanoid.CameraOffset = Vector3.new(0,0,0)
  309. FV:Destroy()
  310. end))
  311. CameraShake(Times, Power, Noob)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. end
  318.  
  319. function chatfunc(text,color)
  320. local chat = coroutine.wrap(function()
  321. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  322. Character:FindFirstChild("TalkingBillBoard"):destroy()
  323. end
  324. local naeeym2 = Instance.new("BillboardGui",Character)
  325. naeeym2.Size = UDim2.new(0,100,0,40)
  326. naeeym2.StudsOffset = Vector3.new(0,3,0)
  327. naeeym2.Adornee = Character.Head
  328. naeeym2.Name = "TalkingBillBoard"
  329. local tecks2 = Instance.new("TextLabel",naeeym2)
  330. tecks2.BackgroundTransparency = 1
  331. tecks2.BorderSizePixel = 0
  332. tecks2.Text = ""
  333. tecks2.Font = "SciFi"
  334. tecks2.TextSize = 30
  335. tecks2.TextStrokeTransparency = 0
  336. tecks2.TextColor3 = color
  337. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  338. tecks2.Size = UDim2.new(1,0,0.5,0)
  339. local tecks3 = Instance.new("TextLabel",naeeym2)
  340. tecks3.BackgroundTransparency = 1
  341. tecks3.BorderSizePixel = 0
  342. tecks3.Text = ""
  343. tecks3.Font = "SciFi"
  344. tecks3.TextSize = 30
  345. tecks3.TextStrokeTransparency = 0
  346. tecks3.TextColor3 = Color3.new(0,0,0)
  347. tecks3.TextStrokeColor3 = color
  348. tecks3.Size = UDim2.new(1,0,0.5,0)
  349. coroutine.resume(coroutine.create(function()
  350. while true do
  351. swait(1)
  352. plr.Character.wrecked.Volume = 0.3
  353. if chaosmode == true then
  354. tecks2.TextColor3 = BrickColor.random().Color
  355. tecks3.TextStrokeColor3 = BrickColor.random().Color
  356. end
  357. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  358. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  359. tecks2.Rotation = math.random(-5,5)
  360. tecks3.Rotation = math.random(-5,5)
  361. end
  362. end))
  363. for i = 1,string.len(text),1 do
  364. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  365. tecks2.Text = string.sub(text,1,i)
  366. tecks3.Text = string.sub(text,1,i)
  367. swait(1)
  368. end
  369. wait(1)
  370. local randomrot = math.random(1,2)
  371. if randomrot == 1 then
  372. for i = 1, 50 do
  373. swait()
  374. tecks2.Rotation = tecks2.Rotation - .75
  375. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  376. tecks2.TextTransparency = tecks2.TextTransparency + .04
  377. tecks3.Rotation = tecks2.Rotation + .75
  378. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks3.TextTransparency = tecks2.TextTransparency + .04
  380. end
  381. elseif randomrot == 2 then
  382. for i = 1, 50 do
  383. swait()
  384. tecks2.Rotation = tecks2.Rotation + .75
  385. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  386. tecks2.TextTransparency = tecks2.TextTransparency + .04
  387. tecks3.Rotation = tecks2.Rotation - .75
  388. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  389. tecks3.TextTransparency = tecks2.TextTransparency + .04
  390. end
  391. end
  392. naeeym2:Destroy()
  393. end)
  394. chat()
  395. end
  396.  
  397. ArtificialHB = Instance.new("BindableEvent", script)
  398. ArtificialHB.Name = "ArtificialHB"
  399.  
  400. script:WaitForChild("ArtificialHB")
  401.  
  402. frame = Frame_Speed
  403. tf = 0
  404. allowframeloss = false
  405. tossremainder = false
  406. lastframe = tick()
  407. script.ArtificialHB:Fire()
  408.  
  409. game:GetService("RunService").Heartbeat:connect(function(s, p)
  410. tf = tf + s
  411. if tf >= frame then
  412. if allowframeloss then
  413. script.ArtificialHB:Fire()
  414. lastframe = tick()
  415. else
  416. for i = 1, math.floor(tf / frame) do
  417. script.ArtificialHB:Fire()
  418. end
  419. lastframe = tick()
  420. end
  421. if tossremainder then
  422. tf = 0
  423. else
  424. tf = tf - frame * math.floor(tf / frame)
  425. end
  426. end
  427. end)
  428.  
  429. local Create = LoadLibrary("RbxUtility").Create
  430.  
  431. CFuncs = {
  432. ["Part"] = {
  433. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  434. local Part = Create("Part"){
  435. Parent = Parent,
  436. Reflectance = Reflectance,
  437. Transparency = Transparency,
  438. CanCollide = false,
  439. Locked = true,
  440. BrickColor = BrickColor.new(tostring(BColor)),
  441. Name = Name,
  442. Size = Size,
  443. Material = Material,
  444. }
  445. RemoveOutlines(Part)
  446. return Part
  447. end;
  448. };
  449.  
  450. ["Mesh"] = {
  451. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  452. local Msh = Create(Mesh){
  453. Parent = Part,
  454. Offset = OffSet,
  455. Scale = Scale,
  456. }
  457. if Mesh == "SpecialMesh" then
  458. Msh.MeshType = MeshType
  459. Msh.MeshId = MeshId
  460. end
  461. return Msh
  462. end;
  463. };
  464.  
  465. ["Mesh"] = {
  466. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  467. local Msh = Create(Mesh){
  468. Parent = Part,
  469. Offset = OffSet,
  470. Scale = Scale,
  471. }
  472. if Mesh == "SpecialMesh" then
  473. Msh.MeshType = MeshType
  474. Msh.MeshId = MeshId
  475. end
  476. return Msh
  477. end;
  478. };
  479.  
  480. ["Weld"] = {
  481. Create = function(Parent, Part0, Part1, C0, C1)
  482. local Weld = Create("Weld"){
  483. Parent = Parent,
  484. Part0 = Part0,
  485. Part1 = Part1,
  486. C0 = C0,
  487. C1 = C1,
  488. }
  489. return Weld
  490. end;
  491. };
  492.  
  493. ["Sound"] = {
  494. Create = function(id, par, vol, pit)
  495. coroutine.resume(coroutine.create(function()
  496. local S = Create("Sound"){
  497. Volume = vol,
  498. Name = "EffectSoundo",
  499. Pitch = pit or 1,
  500. SoundId = id,
  501. Parent = par or workspace,
  502. }
  503. wait()
  504. S:play()
  505. game:GetService("Debris"):AddItem(S, 10)
  506. end))
  507. end;
  508. };
  509.  
  510. ["LongSound"] = {
  511. Create = function(id, par, vol, pit)
  512. coroutine.resume(coroutine.create(function()
  513. local S = Create("Sound"){
  514. Volume = vol,
  515. Pitch = pit or 1,
  516. SoundId = id,
  517. Parent = par or workspace,
  518. }
  519. wait()
  520. S:play()
  521. game:GetService("Debris"):AddItem(S, 30)
  522. end))
  523. end;
  524. };
  525.  
  526. ["ParticleEmitter"] = {
  527. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  528. local fp = Create("ParticleEmitter"){
  529. Parent = Parent,
  530. Color = ColorSequence.new(Color1, Color2),
  531. LightEmission = LightEmission,
  532. Size = Size,
  533. Texture = Texture,
  534. Transparency = Transparency,
  535. ZOffset = ZOffset,
  536. Acceleration = Accel,
  537. Drag = Drag,
  538. LockedToPart = LockedToPart,
  539. VelocityInheritance = VelocityInheritance,
  540. EmissionDirection = EmissionDirection,
  541. Enabled = Enabled,
  542. Lifetime = LifeTime,
  543. Rate = Rate,
  544. Rotation = Rotation,
  545. RotSpeed = RotSpeed,
  546. Speed = Speed,
  547. VelocitySpread = VelocitySpread,
  548. }
  549. return fp
  550. end;
  551. };
  552.  
  553. CreateTemplate = {
  554.  
  555. };
  556. }
  557.  
  558.  
  559.  
  560. New = function(Object, Parent, Name, Data)
  561. local Object = Instance.new(Object)
  562. for Index, Value in pairs(Data or {}) do
  563. Object[Index] = Value
  564. end
  565. Object.Parent = Parent
  566. Object.Name = Name
  567. return Object
  568. end
  569. local halocolor = BrickColor.new("Pastel light blue")
  570. local halocolor2 = BrickColor.new("Cool yellow")
  571. local starcolor = BrickColor.new("Bright yellow")
  572. local lunacolor = BrickColor.new("Navy blue")
  573. local lunacolor2 = BrickColor.new("Bright blue")
  574. local wepcolor = BrickColor.new("Really black")
  575. local maincolor = BrickColor.new("Really black")
  576. local m = Instance.new("Model",char)
  577. local m2 = Instance.new("Model",char)
  578. local m3 = Instance.new("Model",char)
  579. local mw1 = Instance.new("Model",char)
  580. local mw2 = Instance.new("Model",char)
  581.  
  582. local extrawingmod1 = Instance.new("Model",char)
  583. local extrawingmod2 = Instance.new("Model",char)
  584.  
  585. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  586. local p = Instance.new("Part")
  587. p.TopSurface = 0
  588. p.BottomSurface = 0
  589. p.Parent = parent
  590. p.Size = Vector3.new(0.1,0.1,0.1)
  591. p.Transparency = transparency
  592. p.Reflectance = reflectance
  593. p.CanCollide = false
  594. p.Locked = true
  595. p.BrickColor = brickcolor
  596. p.Material = material
  597. return p
  598. end
  599.  
  600. function CreateMesh(parent,meshtype,x1,y1,z1)
  601. local mesh = Instance.new("SpecialMesh",parent)
  602. mesh.MeshType = meshtype
  603. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  604. return mesh
  605. end
  606.  
  607. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  608. local mesh = Instance.new("SpecialMesh",parent)
  609. mesh.MeshType = "FileMesh"
  610. mesh.MeshId = meshid
  611. mesh.Scale = Vector3.new(x1,y1,z1)
  612. return mesh
  613. end
  614.  
  615.  
  616. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  617. local mesh = Instance.new("SpecialMesh",parent)
  618. mesh.MeshType = "FileMesh"
  619. mesh.MeshId = meshid
  620. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  621. mesh.Scale = Vector3.new(x1,y1,z1)
  622. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  623. return mesh
  624. end
  625.  
  626. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  627. local weld = Instance.new("Weld")
  628. weld.Parent = parent
  629. weld.Part0 = part0
  630. weld.Part1 = part1
  631. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  632. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  633. return weld
  634. end
  635.  
  636.  
  637. --------------
  638. local secondchar = Instance.new("Model",char)
  639. local GhostCol = BrickColor.new("Really red")
  640. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  641. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  642. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643.  
  644. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  645. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  646. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  647.  
  648. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  649. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  650. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  651.  
  652. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  653. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  654. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  655.  
  656. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  657. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  658. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  659.  
  660. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  661. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  662. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  663. --------------
  664. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  665. 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))
  666. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  667. 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))
  668.  
  669. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  670. CreateMesh(handle,"Brick",0,0,0)
  671. 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))
  672. local valuaring = 10
  673. for i = 0, 49 do
  674. valuaring = valuaring + 10
  675. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  676. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  677. 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))
  678. end
  679.  
  680. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  681. CreateMesh(handle,"Brick",0,0,0)
  682. 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))
  683. local valuaring = 10
  684. for i = 0, 49 do
  685. valuaring = valuaring + 10
  686. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  687. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  688. 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))
  689. end
  690.  
  691.  
  692. local handle = CreateParta(m,1,1,"Neon",maincolor)
  693. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  694. 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))
  695.  
  696. --- Left wing.
  697.  
  698. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  699. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  700. 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))
  701.  
  702. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  703. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  704. 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))
  705. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  706. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  707. 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))
  708. A0 = Instance.new('Attachment',wed)
  709. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.5,3)
  711. 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))
  712. A1 = Instance.new('Attachment',wed)
  713. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  714. CreateMesh(wed,"Wedge",0.05,3,0.5)
  715. 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))
  716.  
  717. tl1 = Instance.new('Trail',wed)
  718. tl1.Attachment0 = A0
  719. tl1.Attachment1 = A1
  720. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  721. tl1.LightEmission = 1
  722. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  723. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  724. tl1.Lifetime = 0.6
  725.  
  726.  
  727. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  728. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  729. 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))
  730.  
  731. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  733. 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))
  734. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  735. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  736. 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))
  737. A0 = Instance.new('Attachment',wed)
  738. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.5,3)
  740. 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))
  741. A1 = Instance.new('Attachment',wed)
  742. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  743. CreateMesh(wed,"Wedge",0.05,3,0.5)
  744. 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))
  745.  
  746. tl2 = Instance.new('Trail',wed)
  747. tl2.Attachment0 = A0
  748. tl2.Attachment1 = A1
  749. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  750. tl2.LightEmission = 1
  751. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  752. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  753. tl2.Lifetime = 0.6
  754.  
  755. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  756. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  757. 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))
  758.  
  759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  761. 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))
  762. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  763. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  764. 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))
  765. A0 = Instance.new('Attachment',wed)
  766. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  767. CreateMesh(wed,"Wedge",0.05,0.5,3)
  768. 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))
  769. A1 = Instance.new('Attachment',wed)
  770. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  771. CreateMesh(wed,"Wedge",0.05,3,0.5)
  772. 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))
  773.  
  774. tl3 = Instance.new('Trail',wed)
  775. tl3.Attachment0 = A0
  776. tl3.Attachment1 = A1
  777. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  778. tl3.LightEmission = 1
  779. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  780. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  781. tl3.Lifetime = 0.6
  782.  
  783. tl1.Enabled = false
  784. tl2.Enabled = false
  785. tl3.Enabled = false
  786. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  787. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  788. 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))
  789.  
  790. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  791. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  792. 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))
  793. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  794. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  795. 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))
  796. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,3)
  798. 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))
  799. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,3,0.5)
  801. 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))
  802.  
  803. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  804. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  805. 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))
  806.  
  807. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  808. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  809. 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))
  810. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  811. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  812. 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))
  813. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,0.5,3)
  815. 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))
  816. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  817. CreateMesh(wed,"Wedge",0.05,3,0.5)
  818. 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))
  819.  
  820. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  822. 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))
  823.  
  824. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  825. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  826. 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))
  827. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  828. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  829. 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))
  830. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,3)
  832. 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))
  833. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,3,0.5)
  835. 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))
  836.  
  837. -- Right wing.
  838.  
  839. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  841. 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))
  842.  
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  845. 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))
  846. A0 = Instance.new('Attachment',wed)
  847. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  848. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  849. 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))
  850. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,3)
  852. 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))
  853. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,3,0.5)
  855. 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))
  856. A1 = Instance.new('Attachment',wed)
  857.  
  858. tr1 = Instance.new('Trail',wed)
  859. tr1.Attachment0 = A0
  860. tr1.Attachment1 = A1
  861. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  862. tr1.LightEmission = 1
  863. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  864. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  865. tr1.Lifetime = 0.6
  866.  
  867. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  868. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  869. 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))
  870.  
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  873. 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))
  874. A0 = Instance.new('Attachment',wed)
  875. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  876. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  877. 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))
  878. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  879. CreateMesh(wed,"Wedge",0.05,0.5,3)
  880. 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))
  881. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  882. CreateMesh(wed,"Wedge",0.05,3,0.5)
  883. 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))
  884. A1 = Instance.new('Attachment',wed)
  885.  
  886. tr2 = Instance.new('Trail',wed)
  887. tr2.Attachment0 = A0
  888. tr2.Attachment1 = A1
  889. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  890. tr2.LightEmission = 1
  891. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  892. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  893. tr2.Lifetime = 0.6
  894.  
  895. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  896. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  897. 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))
  898.  
  899. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. 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))
  902. A0 = Instance.new('Attachment',wed)
  903. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. 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))
  906. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,3)
  908. 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))
  909. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,3,0.5)
  911. 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))
  912. A1 = Instance.new('Attachment',wed)
  913.  
  914. tr3 = Instance.new('Trail',wed)
  915. tr3.Attachment0 = A0
  916. tr3.Attachment1 = A1
  917. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  918. tr3.LightEmission = 1
  919. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  920. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  921. tr3.Lifetime = 0.6
  922.  
  923.  
  924. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  925. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  926. 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))
  927.  
  928. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  930. 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))
  931. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  933. 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))
  934. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  935. CreateMesh(wed,"Wedge",0.05,0.5,3)
  936. 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))
  937. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,3,0.5)
  939. 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))
  940.  
  941. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  942. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  943. 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))
  944.  
  945. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  947. 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))
  948. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  950. 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))
  951. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  952. CreateMesh(wed,"Wedge",0.05,0.5,3)
  953. 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))
  954. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  955. CreateMesh(wed,"Wedge",0.05,3,0.5)
  956. 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))
  957.  
  958. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  959. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  960. 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))
  961.  
  962. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  964. 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))
  965. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  967. 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))
  968. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.5,3)
  970. 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))
  971. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,3,0.5)
  973. 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))
  974.  
  975. ---- HERES THE RING
  976.  
  977.  
  978. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  979. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  980. 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))
  981. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  983. 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))
  984. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  985. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  986. 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))
  987.  
  988.  
  989. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  990. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  991. 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))
  992.  
  993. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  994. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  995. 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))
  996.  
  997.  
  998.  
  999. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1000. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1001. 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))
  1002.  
  1003. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1004. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1005. 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))
  1006.  
  1007. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1008. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1009. 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))
  1010.  
  1011. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1012. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1013. 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))
  1014. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1015. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1016. 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))
  1017.  
  1018. --- second ring
  1019.  
  1020. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1021. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1022. 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))
  1023. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1024. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1025. 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))
  1026. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1027. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1028. 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))
  1029.  
  1030. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1031. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1032. 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))
  1033.  
  1034. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1035. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1036. 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))
  1037.  
  1038.  
  1039.  
  1040. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1041. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1042. 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))
  1043.  
  1044. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1045. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1046. 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))
  1047.  
  1048. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1049. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1050. 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))
  1051.  
  1052. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1053. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1054. 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))
  1055. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1056. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1057. 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))]]--
  1058.  
  1059.  
  1060.  
  1061. for i, v in pairs(m:GetChildren()) do
  1062. if v:IsA("Part") then
  1063. v.BrickColor = BrickColor.new("Really black")
  1064. v.Material = "Glass"
  1065. end
  1066. end
  1067. for i, v in pairs(m2:GetChildren()) do
  1068. if v:IsA("Part") then
  1069. v.BrickColor = BrickColor.new("Crimson")
  1070. v.Material = "Granite"
  1071. end
  1072. end
  1073. for i, v in pairs(m3:GetChildren()) do
  1074. if v:IsA("Part") then
  1075. v.BrickColor = BrickColor.new("Really red")
  1076. v.Material = "Neon"
  1077. end
  1078. end
  1079. for i, v in pairs(mw2:GetChildren()) do
  1080. if v:IsA("Part") then
  1081. v.BrickColor = BrickColor.new("Really red")
  1082. v.Material = "Neon"
  1083. end
  1084. end
  1085. for i, v in pairs(mw1:GetChildren()) do
  1086. if v:IsA("Part") then
  1087. v.Transparency = 1
  1088. v.BrickColor = BrickColor.new("Really red")
  1089. v.Material = "Neon"
  1090. end
  1091. end
  1092. for i, v in pairs(extrawingmod1:GetChildren()) do
  1093. if v:IsA("Part") then
  1094. v.Transparency = 1
  1095. v.BrickColor = BrickColor.new("White")
  1096. v.Material = "Neon"
  1097. end
  1098. end
  1099. for i, v in pairs(extrawingmod2:GetChildren()) do
  1100. if v:IsA("Part") then
  1101. v.Transparency = 1
  1102. v.BrickColor = BrickColor.new("White")
  1103. v.Material = "Neon"
  1104. end
  1105. end
  1106. local MAINRUINCOLOR = BrickColor.new("Really red")
  1107. ------
  1108.  
  1109.  
  1110. function RemoveOutlines(part)
  1111. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1112. end
  1113. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1114. local Part = Create("Part")({
  1115. Parent = Parent,
  1116. Reflectance = Reflectance,
  1117. Transparency = Transparency,
  1118. CanCollide = false,
  1119. Locked = true,
  1120. BrickColor = BrickColor.new(tostring(BColor)),
  1121. Name = Name,
  1122. Size = Size,
  1123. Material = Material
  1124. })
  1125. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1126. RemoveOutlines(Part)
  1127. return Part
  1128. end
  1129. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1130. local Msh = Create(Mesh)({
  1131. Parent = Part,
  1132. Offset = OffSet,
  1133. Scale = Scale
  1134. })
  1135. if Mesh == "SpecialMesh" then
  1136. Msh.MeshType = MeshType
  1137. Msh.MeshId = MeshId
  1138. end
  1139. return Msh
  1140. end
  1141. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1142. local Weld = Create("Weld")({
  1143. Parent = Parent,
  1144. Part0 = Part0,
  1145. Part1 = Part1,
  1146. C0 = C0,
  1147. C1 = C1
  1148. })
  1149. return Weld
  1150. end
  1151.  
  1152. Player=game:GetService("Players").LocalPlayer
  1153. Character=Player.Character
  1154. PlayerGui=Player.PlayerGui
  1155. Backpack=Player.Backpack
  1156. Torso=Character.Torso
  1157. Head=Character.Head
  1158. Humanoid=Character.Humanoid
  1159. m=Instance.new('Model',Character)
  1160. LeftArm=Character["Left Arm"]
  1161. LeftLeg=Character["Left Leg"]
  1162. RightArm=Character["Right Arm"]
  1163. RightLeg=Character["Right Leg"]
  1164. LS=Torso["Left Shoulder"]
  1165. LH=Torso["Left Hip"]
  1166. RS=Torso["Right Shoulder"]
  1167. RH=Torso["Right Hip"]
  1168. Face = Head.face
  1169. Neck=Torso.Neck
  1170. it=Instance.new
  1171. attacktype=1
  1172. vt=Vector3.new
  1173. cf=CFrame.new
  1174. euler=CFrame.fromEulerAnglesXYZ
  1175. angles=CFrame.Angles
  1176. cloaked=false
  1177. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1178. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1179. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1180. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1181. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1182. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1183. RootPart=Character.HumanoidRootPart
  1184. RootJoint=RootPart.RootJoint
  1185. RootCF=euler(-1.57,0,3.14)
  1186. attack = false
  1187. attackdebounce = false
  1188. deb=false
  1189. equipped=true
  1190. hand=false
  1191. MMouse=nil
  1192. combo=0
  1193. mana=0
  1194. trispeed=.2
  1195. attackmode='none'
  1196. local idle=0
  1197. local Anim="Idle"
  1198. local Effects={}
  1199. local gun=false
  1200. local shoot=false
  1201. local sine = 0
  1202. local change = 1
  1203. player=nil
  1204.  
  1205.  
  1206. local toggleTag = true
  1207. local txt = Instance.new("BillboardGui", Head)
  1208. txt.Adornee = nil
  1209. txt.Name = "NameDetect"
  1210. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1211. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1212. local text = Instance.new("TextLabel", txt)
  1213. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1214. text.FontSize = "Size8"
  1215. text.TextScaled = true
  1216. text.TextTransparency = 0
  1217. text.BackgroundTransparency = 1
  1218. text.TextTransparency = 0
  1219. text.TextStrokeTransparency = 0
  1220. text.Font = "Fantasy"
  1221. text.TextStrokeColor3 = Color3.new(1,0,0)
  1222. text.TextColor3 = Color3.new(0,0,0)
  1223. text.Text = "Mayhem"
  1224.  
  1225. function RecolorTextAndRename(name,col1,col2)
  1226. text.TextStrokeColor3 = col2
  1227. text.TextColor3 = col1
  1228. text.Text = name
  1229. end
  1230. mouse=Player:GetMouse()
  1231. --save shoulders
  1232. RSH, LSH=nil, nil
  1233. --welds
  1234. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1235. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1236. LH=Torso["Left Hip"]
  1237. RH=Torso["Right Hip"]
  1238. TorsoColor=Torso.BrickColor
  1239. function NoOutline(Part)
  1240. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1241. end
  1242. player=Player
  1243. ch=Character
  1244. RSH=ch.Torso["Right Shoulder"]
  1245. LSH=ch.Torso["Left Shoulder"]
  1246. --
  1247. RSH.Parent=nil
  1248. LSH.Parent=nil
  1249. --
  1250. RW.Name="Right Shoulder"
  1251. RW.Part0=ch.Torso
  1252. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1253. RW.C1=cf(0, 0.5, 0)
  1254. RW.Part1=ch["Right Arm"]
  1255. RW.Parent=ch.Torso
  1256. --
  1257. LW.Name="Left Shoulder"
  1258. LW.Part0=ch.Torso
  1259. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1260. LW.C1=cf(0, 0.5, 0)
  1261. LW.Part1=ch["Left Arm"]
  1262. LW.Parent=ch.Torso
  1263.  
  1264. local Stats=Instance.new("BoolValue")
  1265. Stats.Name="Stats"
  1266. Stats.Parent=Character
  1267. local Atk=Instance.new("NumberValue")
  1268. Atk.Name="Damage"
  1269. Atk.Parent=Stats
  1270. Atk.Value=1
  1271. local Def=Instance.new("NumberValue")
  1272. Def.Name="Defense"
  1273. Def.Parent=Stats
  1274. Def.Value=1
  1275. local Speed=Instance.new("NumberValue")
  1276. Speed.Name="Speed"
  1277. Speed.Parent=Stats
  1278. Speed.Value=1
  1279. local Mvmt=Instance.new("NumberValue")
  1280. Mvmt.Name="Movement"
  1281. Mvmt.Parent=Stats
  1282. Mvmt.Value=1
  1283.  
  1284. local donum=0
  1285.  
  1286.  
  1287. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1288. local fp=it("Part")
  1289. fp.formFactor=formfactor
  1290. fp.Parent=parent
  1291. fp.Reflectance=reflectance
  1292. fp.Transparency=transparency
  1293. fp.CanCollide=false
  1294. fp.Locked=true
  1295. fp.BrickColor=brickcolor
  1296. fp.Name=name
  1297. fp.Size=size
  1298. fp.Position=Torso.Position
  1299. NoOutline(fp)
  1300. fp.Material="SmoothPlastic"
  1301. fp:BreakJoints()
  1302. return fp
  1303. end
  1304.  
  1305. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1306. local mesh=it(Mesh)
  1307. mesh.Parent=part
  1308. if Mesh=="SpecialMesh" then
  1309. mesh.MeshType=meshtype
  1310. if meshid~="nil" then
  1311. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1312. end
  1313. end
  1314. mesh.Offset=offset
  1315. mesh.Scale=scale
  1316. return mesh
  1317. end
  1318.  
  1319. function weld(parent,part0,part1,c0)
  1320. local weld=it("Weld")
  1321. weld.Parent=parent
  1322. weld.Part0=part0
  1323. weld.Part1=part1
  1324. weld.C0=c0
  1325. return weld
  1326. end
  1327.  
  1328. local Color1=Torso.BrickColor
  1329.  
  1330. local bodvel=Instance.new("BodyVelocity")
  1331. local bg=Instance.new("BodyGyro")
  1332.  
  1333. function swait(num)
  1334. if num==0 or num==nil then
  1335. game:service'RunService'.Stepped:wait(0)
  1336. else
  1337. for i=0,num do
  1338. game:service'RunService'.Stepped:wait(0)
  1339. end
  1340. end
  1341. end
  1342.  
  1343. -------- RAINBOW LEAVE IT TO ME
  1344. local r = 255
  1345. local g = 0
  1346. local b = 0
  1347. coroutine.resume(coroutine.create(function()
  1348. while wait() do
  1349. for i = 0, 254/5 do
  1350. swait()
  1351. g = g + 5
  1352. end
  1353. for i = 0, 254/5 do
  1354. swait()
  1355. r = r - 5
  1356. end
  1357. for i = 0, 254/5 do
  1358. swait()
  1359. b = b + 5
  1360. end
  1361. for i = 0, 254/5 do
  1362. swait()
  1363. g = g - 5
  1364. end
  1365. for i = 0, 254/5 do
  1366. swait()
  1367. r = r + 5
  1368. end
  1369. for i = 0, 254/5 do
  1370. swait()
  1371. b = b - 5
  1372. end
  1373. end
  1374. end))
  1375.  
  1376.  
  1377. so = function(id,par,vol,pit)
  1378. coroutine.resume(coroutine.create(function()
  1379. local sou = Instance.new("Sound",par or workspace)
  1380. sou.Volume=vol
  1381. sou.Pitch=pit or 1
  1382. sou.SoundId=id
  1383. swait()
  1384. sou:play()
  1385. game:GetService("Debris"):AddItem(sou,6)
  1386. end))
  1387. end
  1388.  
  1389. function QuaternionSlerp(a, b, t)
  1390. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1391. local startInterp, finishInterp;
  1392. if cosTheta >= 0.0001 then
  1393. if (1 - cosTheta) > 0.0001 then
  1394. local theta = ACOS(cosTheta)
  1395. local invSinTheta = 1 / SIN(theta)
  1396. startInterp = SIN((1 - t) * theta) * invSinTheta
  1397. finishInterp = SIN(t * theta) * invSinTheta
  1398. else
  1399. startInterp = 1 - t
  1400. finishInterp = t
  1401. end
  1402. else
  1403. if (1 + cosTheta) > 0.0001 then
  1404. local theta = ACOS(-cosTheta)
  1405. local invSinTheta = 1 / SIN(theta)
  1406. startInterp = SIN((t - 1) * theta) * invSinTheta
  1407. finishInterp = SIN(t * theta) * invSinTheta
  1408. else
  1409. startInterp = t - 1
  1410. finishInterp = t
  1411. end
  1412. end
  1413. 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
  1414. end
  1415.  
  1416. function Clerp(a,b,t)
  1417. local qa = {QuaternionFromCFrame(a)}
  1418. local qb = {QuaternionFromCFrame(b)}
  1419. local ax, ay, az = a.x, a.y, a.z
  1420. local bx, by, bz = b.x, b.y, b.z
  1421. local _t = 1-t
  1422. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1423. end
  1424.  
  1425. function QuaternionFromCFrame(cf)
  1426. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1427. local trace = m00 + m11 + m22
  1428. if trace > 0 then
  1429. local s = math.sqrt(1 + trace)
  1430. local recip = 0.5/s
  1431. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1432. else
  1433. local i = 0
  1434. if m11 > m00 then
  1435. i = 1
  1436. end
  1437. if m22 > (i == 0 and m00 or m11) then
  1438. i = 2
  1439. end
  1440. if i == 0 then
  1441. local s = math.sqrt(m00-m11-m22+1)
  1442. local recip = 0.5/s
  1443. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1444. elseif i == 1 then
  1445. local s = math.sqrt(m11-m22-m00+1)
  1446. local recip = 0.5/s
  1447. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1448. elseif i == 2 then
  1449. local s = math.sqrt(m22-m00-m11+1)
  1450. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1451. end
  1452. end
  1453. end
  1454.  
  1455. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1456. local xs, ys, zs = x + x, y + y, z + z
  1457. local wx, wy, wz = w*xs, w*ys, w*zs
  1458. local xx = x*xs
  1459. local xy = x*ys
  1460. local xz = x*zs
  1461. local yy = y*ys
  1462. local yz = y*zs
  1463. local zz = z*zs
  1464. 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))
  1465. end
  1466.  
  1467. function QuaternionSlerp(a, b, t)
  1468. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1469. local startInterp, finishInterp;
  1470. if cosTheta >= 0.0001 then
  1471. if (1 - cosTheta) > 0.0001 then
  1472. local theta = math.acos(cosTheta)
  1473. local invSinTheta = 1/math.sin(theta)
  1474. startInterp = math.sin((1-t)*theta)*invSinTheta
  1475. finishInterp = math.sin(t*theta)*invSinTheta
  1476. else
  1477. startInterp = 1-t
  1478. finishInterp = t
  1479. end
  1480. else
  1481. if (1+cosTheta) > 0.0001 then
  1482. local theta = math.acos(-cosTheta)
  1483. local invSinTheta = 1/math.sin(theta)
  1484. startInterp = math.sin((t-1)*theta)*invSinTheta
  1485. finishInterp = math.sin(t*theta)*invSinTheta
  1486. else
  1487. startInterp = t-1
  1488. finishInterp = t
  1489. end
  1490. end
  1491. 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
  1492. end
  1493.  
  1494. local function CFrameFromTopBack(at, top, back)
  1495. local right = top:Cross(back)
  1496. return CFrame.new(at.x, at.y, at.z,
  1497. right.x, top.x, back.x,
  1498. right.y, top.y, back.y,
  1499. right.z, top.z, back.z)
  1500. end
  1501.  
  1502. function Triangle(a, b, c)
  1503. local edg1 = (c-a):Dot((b-a).unit)
  1504. local edg2 = (a-b):Dot((c-b).unit)
  1505. local edg3 = (b-c):Dot((a-c).unit)
  1506. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1507. a, b, c = a, b, c
  1508. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1509. a, b, c = b, c, a
  1510. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1511. a, b, c = c, a, b
  1512. else
  1513. assert(false, "unreachable")
  1514. end
  1515.  
  1516. local len1 = (c-a):Dot((b-a).unit)
  1517. local len2 = (b-a).magnitude - len1
  1518. local width = (a + (b-a).unit*len1 - c).magnitude
  1519.  
  1520. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1521.  
  1522. local list = {}
  1523.  
  1524. if len1 > 0.01 then
  1525. local w1 = Instance.new('WedgePart', m)
  1526. game:GetService("Debris"):AddItem(w1,5)
  1527. w1.Material = "SmoothPlastic"
  1528. w1.FormFactor = 'Custom'
  1529. w1.BrickColor = BrickColor.new("Really red")
  1530. w1.Transparency = 0
  1531. w1.Reflectance = 0
  1532. w1.Material = "SmoothPlastic"
  1533. w1.CanCollide = false
  1534. local l1 = Instance.new("PointLight",w1)
  1535. l1.Color = Color3.new(170,0,0)
  1536. NoOutline(w1)
  1537. local sz = Vector3.new(0.2, width, len1)
  1538. w1.Size = sz
  1539. local sp = Instance.new("SpecialMesh",w1)
  1540. sp.MeshType = "Wedge"
  1541. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1542. w1:BreakJoints()
  1543. w1.Anchored = true
  1544. w1.Parent = workspace
  1545. w1.Transparency = 0.7
  1546. table.insert(Effects,{w1,"Disappear",.01})
  1547. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1548. table.insert(list,w1)
  1549. end
  1550.  
  1551. if len2 > 0.01 then
  1552. local w2 = Instance.new('WedgePart', m)
  1553. game:GetService("Debris"):AddItem(w2,5)
  1554. w2.Material = "SmoothPlastic"
  1555. w2.FormFactor = 'Custom'
  1556. w2.BrickColor = BrickColor.new("Really red")
  1557. w2.Transparency = 0
  1558. w2.Reflectance = 0
  1559. w2.Material = "SmoothPlastic"
  1560. w2.CanCollide = false
  1561. local l2 = Instance.new("PointLight",w2)
  1562. l2.Color = Color3.new(170,0,0)
  1563. NoOutline(w2)
  1564. local sz = Vector3.new(0.2, width, len2)
  1565. w2.Size = sz
  1566. local sp = Instance.new("SpecialMesh",w2)
  1567. sp.MeshType = "Wedge"
  1568. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1569. w2:BreakJoints()
  1570. w2.Anchored = true
  1571. w2.Parent = workspace
  1572. w2.Transparency = 0.7
  1573. table.insert(Effects,{w2,"Disappear",.01})
  1574. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1575. table.insert(list,w2)
  1576. end
  1577. return unpack(list)
  1578. end
  1579.  
  1580.  
  1581. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1582. if hit.Parent == nil then
  1583. return
  1584. end
  1585. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1586. for _, v in pairs(hit.Parent:children()) do
  1587. if v:IsA("Humanoid") then
  1588. h = v
  1589. end
  1590. end
  1591. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1592. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1593. return
  1594. end
  1595. local c = Create("ObjectValue")({
  1596. Name = "creator",
  1597. Value = game:service("Players").LocalPlayer,
  1598. Parent = h
  1599. })
  1600. game:GetService("Debris"):AddItem(c, 0.5)
  1601. if HitSound ~= nil and HitPitch ~= nil then
  1602. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1603. end
  1604. local Damage = math.random(minim, maxim)
  1605. local blocked = false
  1606. local block = hit.Parent:findFirstChild("Block")
  1607. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1608. blocked = true
  1609. block.Value = block.Value - 1
  1610. print(block.Value)
  1611. end
  1612. if blocked == false then
  1613. HitHealth = h.Health
  1614. h.Health = h.Health - Damage
  1615. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1616. print("gained kill")
  1617. end
  1618. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1619. else
  1620. h.Health = h.Health - Damage / 2
  1621. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1622. end
  1623. if Type == "Knockdown" then
  1624. local hum = hit.Parent.Humanoid
  1625. hum.PlatformStand = true
  1626. coroutine.resume(coroutine.create(function(HHumanoid)
  1627. swait(1)
  1628. HHumanoid.PlatformStand = false
  1629. end), hum)
  1630. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1631. local bodvol = Create("BodyVelocity")({
  1632. velocity = angle * knockback,
  1633. P = 5000,
  1634. maxForce = Vector3.new(8000, 8000, 8000),
  1635. Parent = hit
  1636. })
  1637. local rl = Create("BodyAngularVelocity")({
  1638. P = 3000,
  1639. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1640. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1641. Parent = hit
  1642. })
  1643. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1644. game:GetService("Debris"):AddItem(rl, 0.5)
  1645. elseif Type == "Normal" then
  1646. local vp = Create("BodyVelocity")({
  1647. P = 500,
  1648. maxForce = Vector3.new(math.huge, 0, math.huge),
  1649. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1650. })
  1651. if knockback > 0 then
  1652. vp.Parent = hit.Parent.Head
  1653. end
  1654. game:GetService("Debris"):AddItem(vp, 0.5)
  1655. elseif Type == "Up" then
  1656. local bodyVelocity = Create("BodyVelocity")({
  1657. velocity = Vector3.new(0, 20, 0),
  1658. P = 5000,
  1659. maxForce = Vector3.new(8000, 8000, 8000),
  1660. Parent = hit
  1661. })
  1662. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1663. local bodyVelocity = Create("BodyVelocity")({
  1664. velocity = Vector3.new(0, 20, 0),
  1665. P = 5000,
  1666. maxForce = Vector3.new(8000, 8000, 8000),
  1667. Parent = hit
  1668. })
  1669. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1670. elseif Type == "Leech" then
  1671. local hum = hit.Parent.Humanoid
  1672. if hum ~= nil then
  1673. for i = 0, 2 do
  1674. 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)
  1675. end
  1676. Humanoid.Health = Humanoid.Health + 10
  1677. end
  1678. elseif Type == "UpKnock" then
  1679. local hum = hit.Parent.Humanoid
  1680. hum.PlatformStand = true
  1681. if hum ~= nil then
  1682. hitr = true
  1683. end
  1684. coroutine.resume(coroutine.create(function(HHumanoid)
  1685. swait(5)
  1686. HHumanoid.PlatformStand = false
  1687. hitr = false
  1688. end), hum)
  1689. local bodyVelocity = Create("BodyVelocity")({
  1690. velocity = Vector3.new(0, 20, 0),
  1691. P = 5000,
  1692. maxForce = Vector3.new(8000, 8000, 8000),
  1693. Parent = hit
  1694. })
  1695. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1696. local bodyVelocity = Create("BodyVelocity")({
  1697. velocity = Vector3.new(0, 20, 0),
  1698. P = 5000,
  1699. maxForce = Vector3.new(8000, 8000, 8000),
  1700. Parent = hit
  1701. })
  1702. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1703. elseif Type == "Snare" then
  1704. local bp = Create("BodyPosition")({
  1705. P = 2000,
  1706. D = 100,
  1707. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1708. position = hit.Parent.Torso.Position,
  1709. Parent = hit.Parent.Torso
  1710. })
  1711. game:GetService("Debris"):AddItem(bp, 1)
  1712. elseif Type == "Slashnare" then
  1713. 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)
  1714. for i = 1, math.random(4, 5) do
  1715. 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)
  1716. end
  1717. local bp = Create("BodyPosition")({
  1718. P = 2000,
  1719. D = 100,
  1720. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1721. position = hit.Parent.Torso.Position,
  1722. Parent = hit.Parent.Torso
  1723. })
  1724. game:GetService("Debris"):AddItem(bp, 1)
  1725. elseif Type == "Spike" then
  1726. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1727. local bp = Create("BodyPosition")({
  1728. P = 2000,
  1729. D = 100,
  1730. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1731. position = hit.Parent.Torso.Position,
  1732. Parent = hit.Parent.Torso
  1733. })
  1734. game:GetService("Debris"):AddItem(bp, 1)
  1735. elseif Type == "Freeze" then
  1736. local BodPos = Create("BodyPosition")({
  1737. P = 50000,
  1738. D = 1000,
  1739. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1740. position = hit.Parent.Torso.Position,
  1741. Parent = hit.Parent.Torso
  1742. })
  1743. local BodGy = Create("BodyGyro")({
  1744. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1745. P = 20000,
  1746. Parent = hit.Parent.Torso,
  1747. cframe = hit.Parent.Torso.CFrame
  1748. })
  1749. hit.Parent.Torso.Anchored = true
  1750. coroutine.resume(coroutine.create(function(Part)
  1751. swait(1.5)
  1752. Part.Anchored = false
  1753. end), hit.Parent.Torso)
  1754. game:GetService("Debris"):AddItem(BodPos, 3)
  1755. game:GetService("Debris"):AddItem(BodGy, 3)
  1756. end
  1757. local debounce = Create("BoolValue")({
  1758. Name = "DebounceHit",
  1759. Parent = hit.Parent,
  1760. Value = true
  1761. })
  1762. game:GetService("Debris"):AddItem(debounce, Delay)
  1763. c = Instance.new("ObjectValue")
  1764. c.Name = "creator"
  1765. c.Value = Player
  1766. c.Parent = h
  1767. game:GetService("Debris"):AddItem(c, 0.5)
  1768. end
  1769. end
  1770. function ShowDamage(Pos, Text, Time, Color)
  1771. local Rate = 0.03333333333333333
  1772. local Pos = Pos or Vector3.new(0, 0, 0)
  1773. local Text = Text or ""
  1774. local Time = Time or 2
  1775. local Color = Color or Color3.new(1, 0, 1)
  1776. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1777. EffectPart.Anchored = true
  1778. local BillboardGui = Create("BillboardGui")({
  1779. Size = UDim2.new(3, 0, 3, 0),
  1780. Adornee = EffectPart,
  1781. Parent = EffectPart
  1782. })
  1783. local TextLabel = Create("TextLabel")({
  1784. BackgroundTransparency = 1,
  1785. Size = UDim2.new(1, 0, 1, 0),
  1786. Text = Text,
  1787. TextColor3 = Color,
  1788. TextScaled = true,
  1789. Font = Enum.Font.ArialBold,
  1790. Parent = BillboardGui
  1791. })
  1792. game.Debris:AddItem(EffectPart, Time + 0.1)
  1793. EffectPart.Parent = game:GetService("Workspace")
  1794. delay(0, function()
  1795. local Frames = Time / Rate
  1796. for Frame = 1, Frames do
  1797. wait(Rate)
  1798. local Percent = Frame / Frames
  1799. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1800. TextLabel.TextTransparency = Percent
  1801. end
  1802. if EffectPart and EffectPart.Parent then
  1803. EffectPart:Destroy()
  1804. end
  1805. end)
  1806. end
  1807. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1808. for _, c in pairs(workspace:children()) do
  1809. local hum = c:findFirstChildOfClass("Humanoid")
  1810. if hum ~= nil then
  1811. local head = c:findFirstChild("Head")
  1812. if head ~= nil then
  1813. local targ = head.Position - Part.Position
  1814. local mag = targ.magnitude
  1815. if magni >= mag and c.Name ~= Player.Name then
  1816. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1817. end
  1818. end
  1819. end
  1820. end
  1821. end
  1822.  
  1823. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1824. for _, c in pairs(workspace:children()) do
  1825. local hum = c:findFirstChild("Humanoid")
  1826. if hum ~= nil then
  1827. local head = c:findFirstChild("Torso")
  1828. if head ~= nil then
  1829. local targ = head.Position - Part.Position
  1830. local mag = targ.magnitude
  1831. if magni >= mag and c.Name ~= Player.Name then
  1832. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1833. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1834. end
  1835. end
  1836. end
  1837. end
  1838. end
  1839.  
  1840. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1841. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1842. end
  1843.  
  1844. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1845. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1846. prt.Anchored=true
  1847. prt.CFrame=cframe
  1848. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1849. --http://www.roblox.com/asset/?id=4770560
  1850. game:GetService("Debris"):AddItem(prt,2)
  1851. CF=prt.CFrame
  1852. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1853. for i=0,1,0.2 do
  1854. wait()
  1855. Part.CFrame=CF*cf(0,0,-0.4)
  1856. end
  1857. for i=0,1,delay do
  1858. wait()
  1859. --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)
  1860. Mesh.Scale=Mesh.Scale
  1861. end
  1862. for i=0,1,0.1 do
  1863. wait()
  1864. Part.Transparency=i
  1865. end
  1866. Part.Parent=nil
  1867. end),prt,msh,CF)
  1868. end
  1869.  
  1870. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1871. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1872. prt.Anchored=true
  1873. prt.Material = "Neon"
  1874. prt.CFrame=cframe
  1875. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1876. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1877. game:GetService("Debris"):AddItem(prt,5)
  1878. coroutine.resume(coroutine.create(function(Part,Mesh)
  1879. for i=0,1,delay do
  1880. swait()
  1881. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1882. Part.Transparency=i
  1883. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1884. end
  1885. Part.Parent=nil
  1886. end),prt,msh)
  1887. end
  1888.  
  1889. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1890. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1891. prt.Anchored=true
  1892. prt.Material = "Neon"
  1893. prt.CFrame=cframe
  1894. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1895. game:GetService("Debris"):AddItem(prt,5)
  1896. coroutine.resume(coroutine.create(function(Part,Mesh)
  1897. local rtype = rottype
  1898. for i=0,1,delay do
  1899. swait()
  1900. if rtype == 1 then
  1901. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1902. elseif rtype == 2 then
  1903. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1904. end
  1905. Part.Transparency=i
  1906. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1907. end
  1908. Part.Parent=nil
  1909. end),prt,msh)
  1910. end
  1911.  
  1912. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1913. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1914. prt.Anchored=true
  1915. prt.CFrame=cframe
  1916. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1917. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1918. game:GetService("Debris"):AddItem(prt,5)
  1919. coroutine.resume(coroutine.create(function(Part,Mesh)
  1920. for i=0,1,delay do
  1921. wait()
  1922. Part.Transparency=i
  1923. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1924. end
  1925. Part.Parent=nil
  1926. end),prt,msh)
  1927. end
  1928.  
  1929. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1930. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1931. prt.Anchored=true
  1932. prt.Material = "Neon"
  1933. prt.CFrame=cframe
  1934. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1935. game:GetService("Debris"):AddItem(prt,5)
  1936. coroutine.resume(coroutine.create(function(Part,Mesh)
  1937. local rtype = rottype
  1938. for i=0,1,delay do
  1939. swait()
  1940. if rtype == 1 then
  1941. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1942. elseif rtype == 2 then
  1943. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1944. end
  1945. Part.Transparency=i
  1946. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1947. end
  1948. Part.Parent=nil
  1949. end),prt,msh)
  1950. end
  1951.  
  1952. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1953. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1954. prt.Anchored=true
  1955. prt.Material = "Neon"
  1956. prt.CFrame=cframe
  1957. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1958. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1959. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1960. game:GetService("Debris"):AddItem(prt,5)
  1961. coroutine.resume(coroutine.create(function(Part,Mesh)
  1962. local rtype = rottype
  1963. for i=0,1,delay do
  1964. swait()
  1965. if rtype == 1 then
  1966. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1967. elseif rtype == 2 then
  1968. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1969. end
  1970. dec.Transparency=i
  1971. dec2.Transparency=i
  1972. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1973. end
  1974. Part.Parent=nil
  1975. end),prt,msh)
  1976. end
  1977.  
  1978. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1979. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1980. prt.Anchored=true
  1981. prt.Material = "Neon"
  1982. prt.CFrame=cframe
  1983. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1984. game:GetService("Debris"):AddItem(prt,5)
  1985. coroutine.resume(coroutine.create(function(Part,Mesh)
  1986. local rtype = rottype
  1987. for i=0,1,delay do
  1988. swait()
  1989. if rtype == 1 then
  1990. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1991. elseif rtype == 2 then
  1992. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1993. end
  1994. prt.Transparency=i
  1995. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1996. end
  1997. Part.Parent=nil
  1998. end),prt,msh)
  1999. end
  2000.  
  2001. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2002. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2003. prt.Anchored=true
  2004. prt.Material = "Neon"
  2005. prt.CFrame=cframe
  2006. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2007. game:GetService("Debris"):AddItem(prt,5)
  2008. coroutine.resume(coroutine.create(function(Part,Mesh)
  2009. local rtype = rottype
  2010. for i=0,1,delay do
  2011. swait()
  2012. if rtype == 1 then
  2013. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2014. elseif rtype == 2 then
  2015. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2016. end
  2017. prt.Transparency=i
  2018. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2019. end
  2020. Part.Parent=nil
  2021. end),prt,msh)
  2022. end
  2023.  
  2024. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2025. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2026. prt.Anchored=true
  2027. prt.Material = "Neon"
  2028. prt.CFrame=cframe
  2029. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. local rtype = rottype
  2033. for i=0,1,delay do
  2034. swait()
  2035. if rtype == 1 then
  2036. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2037. elseif rtype == 2 then
  2038. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2039. end
  2040. prt.Transparency=i
  2041. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2042. end
  2043. Part.Parent=nil
  2044. end),prt,msh)
  2045. end
  2046.  
  2047. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2048. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2049. prt.Anchored=true
  2050. prt.Material = "Neon"
  2051. prt.CFrame=cframe
  2052. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2053. game:GetService("Debris"):AddItem(prt,5)
  2054. coroutine.resume(coroutine.create(function(Part,Mesh)
  2055. local rtype = rottype
  2056. for i=0,1,delay do
  2057. swait()
  2058. if rtype == 1 then
  2059. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2060. elseif rtype == 2 then
  2061. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2062. end
  2063. prt.Transparency=i
  2064. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2065. end
  2066. Part.Parent=nil
  2067. end),prt,msh)
  2068. end
  2069.  
  2070. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2071. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2072. prt.Anchored=false
  2073. prt.CFrame=cframe
  2074. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2075. local wld=weld(prt,prt,Parent,cframe)
  2076. game:GetService("Debris"):AddItem(prt,5)
  2077. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2078. for i=0,1,delay do
  2079. wait()
  2080. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2081. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2082. Part.Transparency=i
  2083. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2084. end
  2085. Part.Parent=nil
  2086. end),prt,msh,wld)
  2087. end
  2088.  
  2089. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2090. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2091. prt.Anchored=false
  2092. prt.CFrame=cframe
  2093. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2094. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2095. game:GetService("Debris"):AddItem(prt,5)
  2096. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2097. for i=0,1,delay do
  2098. wait()
  2099. Weld.C0=euler(i*20,0,0)
  2100. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2101. Part.Transparency=i
  2102. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2103. end
  2104. Part.Parent=nil
  2105. end),prt,msh,wld)
  2106. end
  2107.  
  2108. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2109. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2110. prt.Anchored=true
  2111. prt.CFrame=cframe
  2112. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2113. game:GetService("Debris"):AddItem(prt,2)
  2114. coroutine.resume(coroutine.create(function(Part,Mesh)
  2115. for i=0,1,delay do
  2116. wait()
  2117. Part.CFrame=Part.CFrame
  2118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2119. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt2.Anchored=true
  2121. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2122. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2123. game:GetService("Debris"):AddItem(prt2,2)
  2124. coroutine.resume(coroutine.create(function(Part,Mesh)
  2125. for i=0,1,0.1 do
  2126. wait()
  2127. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2128. end
  2129. Part.Parent=nil
  2130. end),prt2,msh2)
  2131. end
  2132. for i=0,1,delay*2 do
  2133. wait()
  2134. Part.CFrame=Part.CFrame
  2135. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2136. end
  2137. Part.Parent=nil
  2138. end),prt,msh)
  2139. end
  2140.  
  2141. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2142. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2143. prt.Anchored=true
  2144. prt.CFrame=cframe
  2145. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2146. game:GetService("Debris"):AddItem(prt,2)
  2147. coroutine.resume(coroutine.create(function(Part,Mesh)
  2148. for i=0,1,delay do
  2149. wait()
  2150. Part.CFrame=Part.CFrame
  2151. Part.Transparency=i
  2152. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2153. end
  2154. Part.Parent=nil
  2155. end),prt,msh)
  2156. end
  2157.  
  2158. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2159. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2160. prt.Anchored=true
  2161. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2162. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2163. game:GetService("Debris"):AddItem(prt,2)
  2164. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2165. CF=Part.CFrame
  2166. Numbb=0
  2167. randnumb=math.random()/10
  2168. rand1=math.random()/10
  2169. for i=0,1,rand1 do
  2170. wait()
  2171. CF=CF*cf(0,math.random()/2,0)
  2172. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2173. Part.CFrame=CF*euler(Numbb,0,0)
  2174. Part.Transparency=i
  2175. Numbb=Numbb+randnumb
  2176. end
  2177. Part.Parent=nil
  2178. end),prt,CF,Numbb,randnumb)
  2179. end
  2180.  
  2181. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2182. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2183. prt.Anchored=true
  2184. prt.CFrame=cframe
  2185. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2186. game:GetService("Debris"):AddItem(prt,5)
  2187. coroutine.resume(coroutine.create(function(Part,Mesh)
  2188. for i=0,1,delay do
  2189. wait()
  2190. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2191. Part.Transparency=i
  2192. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2193. end
  2194. Part.Parent=nil
  2195. end),prt,msh)
  2196. end
  2197.  
  2198. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2199. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2200. prt.Anchored=true
  2201. prt.CFrame=cframe
  2202. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,2)
  2204. coroutine.resume(coroutine.create(function(Part,Mesh)
  2205. for i=0,1,delay do
  2206. wait()
  2207. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2208. Part.Transparency=i
  2209. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2210. end
  2211. Part.Parent=nil
  2212. end),prt,msh)
  2213. end
  2214.  
  2215. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2216. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2217. prt.Anchored=true
  2218. prt.CFrame=cframe*cf(x,y,z)
  2219. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2220. game:GetService("Debris"):AddItem(prt,5)
  2221. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2222. local num=math.random()
  2223. local num2=math.random(-3,2)+math.random()
  2224. local numm=0
  2225. for i=0,1,delay*2 do
  2226. swait()
  2227. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2228. Part.Transparency=i
  2229. numm=numm+0.01
  2230. end
  2231. Part.Parent=nil
  2232. Mesh.Parent=nil
  2233. end),prt,msh,x,y,z)
  2234. end
  2235.  
  2236. function dmgstart(dmg,what)
  2237. hitcon = what.Touched:connect(function(hit)
  2238. local hum = hit.Parent:FindFirstChild("Humanoid")
  2239. if hum and not hum:IsDescendantOf(Character) then
  2240. hum:TakeDamage(dmg)
  2241. end
  2242. end)
  2243. end
  2244.  
  2245. function dmgstop()
  2246. hitcon:disconnect()
  2247. end
  2248.  
  2249. function Cloak()
  2250. Face.Parent=nil
  2251. cloaked=true
  2252. for _,v in pairs(Torso.Parent:children()) do
  2253. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2254. coroutine.resume(coroutine.create(function()
  2255. for i=0,1,0.2 do
  2256. wait()
  2257. v.Transparency=i
  2258. end
  2259. v.Transparency=1
  2260. end))
  2261. end
  2262. if v.className=="Hat" then
  2263. hatp=v.Handle
  2264. coroutine.resume(coroutine.create(function(derp)
  2265. for i=0,1,0.2 do
  2266. wait()
  2267. derp.Transparency=i
  2268. end
  2269. derp.Transparency=1
  2270. end),hatp)
  2271. end
  2272. end
  2273. for _,v in pairs(m:children()) do
  2274. if v.className=="Part" then
  2275. coroutine.resume(coroutine.create(function()
  2276. for i=0,1,0.2 do
  2277. wait()
  2278. v.Transparency=i
  2279. end
  2280. v.Transparency=1
  2281. end))
  2282. end
  2283. end
  2284. end
  2285.  
  2286. function UnCloak()
  2287. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2288. Face.Parent=Head
  2289. cloaked=false
  2290. for _,v in pairs(Torso.Parent:children()) do
  2291. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2292. coroutine.resume(coroutine.create(function()
  2293. for i=0,1,0.1 do
  2294. wait()
  2295. v.Transparency=v.Transparency-0.1
  2296. end
  2297. v.Transparency=0
  2298. end))
  2299. end
  2300. if v.className=="Hat" then
  2301. hatp=v.Handle
  2302. coroutine.resume(coroutine.create(function(derp)
  2303. for i=0,1,0.1 do
  2304. wait()
  2305. derp.Transparency=derp.Transparency-0.1
  2306. end
  2307. derp.Transparency=0
  2308. end),hatp)
  2309. end
  2310. end
  2311. for _,v in pairs(m:children()) do
  2312. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2313. coroutine.resume(coroutine.create(function()
  2314. for i=0,1,0.1 do
  2315. wait()
  2316. v.Transparency=v.Transparency-0.1
  2317. end
  2318. v.Transparency=0
  2319. end))
  2320. v.Transparency=0
  2321. end
  2322. end
  2323. end
  2324.  
  2325. local origcolor = BrickColor.new("Pastel light blue")
  2326. ---- This section of explosions.
  2327. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2328. local expart = Instance.new("Part",char)
  2329. local expart2 = Instance.new("Part",char)
  2330. local rin = Instance.new("Part",char)
  2331. local rin2 = Instance.new("Part",char)
  2332. local partMesh = Instance.new("SpecialMesh",expart)
  2333. partMesh.MeshType = "Sphere"
  2334. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2335. partMesh2.MeshType = "Sphere"
  2336. local partMesh3 = Instance.new("SpecialMesh",rin)
  2337. partMesh3.MeshType = "Brick"
  2338. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2339. partMesh4.MeshType = "Brick"
  2340. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2341. partMesh.Scale = vt(rad,rad,rad)
  2342. expart.Size = vt(1,1,1)
  2343. expart.Transparency = 0
  2344. expart.Anchored = true
  2345. expart.Material = "Neon"
  2346. expart.BrickColor = bc("White")
  2347. expart.CFrame = par.CFrame
  2348. partMesh2.Scale = vt(rad,rad,rad)
  2349. expart2.Size = vt(1.15,1.15,1.15)
  2350. expart2.Transparency = 0.5
  2351. expart2.Anchored = true
  2352. expart2.Material = "Neon"
  2353. expart2.BrickColor = par.BrickColor
  2354. expart2.CFrame = par.CFrame
  2355. rin.Size = vt(1.15,1.15,1.15)
  2356. rin.Transparency = 1
  2357. rin.Anchored = true
  2358. rin.Material = "Neon"
  2359. rin.BrickColor = par.BrickColor
  2360. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2361. rin2.Size = vt(1.15,1.15,1.15)
  2362. rin2.Transparency = 1
  2363. rin2.Anchored = true
  2364. rin2.Material = "Neon"
  2365. rin2.BrickColor = par.BrickColor
  2366. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2367. partMesh3.Scale = vt(0,1,0)
  2368. partMesh4.Scale = vt(0,1,0)
  2369. local dec2 = Instance.new("Decal", rin)
  2370. dec2.Face = "Top"
  2371. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2372. dec2.Parent = rin
  2373. local dec2b = dec2:Clone()
  2374. dec2b.Face = "Bottom"
  2375. dec2b.Parent = rin
  2376.  
  2377. local dec2a = Instance.new("Decal", rin2)
  2378. dec2a.Face = "Top"
  2379. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2380. dec2a.Parent = rin2
  2381. local dec2ab = dec2a:Clone()
  2382. dec2ab.Face = "Bottom"
  2383. dec2ab.Parent = rin2
  2384. expart.CanCollide = false
  2385. expart2.CanCollide = false
  2386. rin.CanCollide = false
  2387. rin2.CanCollide = false
  2388. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2389. local value = 1*rad/6.5
  2390. for i = 0, 199 do
  2391. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2392. expart.CFrame = expart.CFrame
  2393. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2394. expart2.CFrame = expart.CFrame
  2395. value = value - 0.035*rad/30
  2396. if value < 7.5 then
  2397. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2398. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2399. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2400. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2401. end
  2402. if value < 0 then
  2403. dec2.Transparency = dec2.Transparency + 0.025
  2404. dec2a.Transparency = dec2a.Transparency + 0.025
  2405. dec2b.Transparency = dec2b.Transparency + 0.025
  2406. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2407. expart.Transparency = expart.Transparency + 0.025
  2408. expart2.Transparency = expart2.Transparency + 0.025
  2409. rin.Transparency = rin.Transparency + 0.025
  2410. rin2.Transparency = rin2.Transparency + 0.025
  2411. end
  2412. swait()
  2413. end
  2414. game:GetService("Debris"):AddItem(expart, 1)
  2415. game:GetService("Debris"):AddItem(expart2, 1)
  2416. game:GetService("Debris"):AddItem(rin, 1)
  2417. game:GetService("Debris"):AddItem(rin2, 1)
  2418. end
  2419.  
  2420. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2421. local expart = Instance.new("Part",char)
  2422. local expart2 = Instance.new("Part",char)
  2423. local partMesh = Instance.new("SpecialMesh",expart)
  2424. partMesh.MeshType = "Sphere"
  2425. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2426. partMesh2.MeshType = "Sphere"
  2427. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2428. partMesh.Scale = vt(rad,rad,rad)
  2429. expart.Size = vt(1,1,1)
  2430. expart.Transparency = 0
  2431. expart.Anchored = true
  2432. expart.Material = "Neon"
  2433. expart.BrickColor = bc("White")
  2434. expart.CFrame = par.CFrame
  2435. partMesh2.Scale = vt(rad,rad,rad)
  2436. expart2.Size = vt(1.15,1.15,1.15)
  2437. expart2.Transparency = 0.5
  2438. expart2.Anchored = true
  2439. expart2.Material = "Neon"
  2440. expart2.BrickColor = par.BrickColor
  2441. expart2.CFrame = par.CFrame
  2442. expart.CanCollide = false
  2443. expart2.CanCollide = false
  2444. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2445. local value = 1*rad/6.5
  2446. for i = 0, 75 do
  2447. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2448. expart.CFrame = expart.CFrame
  2449. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2450. expart2.CFrame = expart.CFrame
  2451. value = value - 0.035*rad/5
  2452. if value < 0 then
  2453. value = 0
  2454. expart.Transparency = expart.Transparency + 0.05
  2455. expart2.Transparency = expart2.Transparency + 0.05
  2456. end
  2457. swait()
  2458. end
  2459. game:GetService("Debris"):AddItem(expart, 1)
  2460. game:GetService("Debris"):AddItem(expart2, 1)
  2461. end
  2462.  
  2463. function AreaDanger(rad,par,mindam,maxdam)
  2464. local expart = Instance.new("Part",char)
  2465. local partMesh = Instance.new("SpecialMesh",expart)
  2466. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2467. partMesh.MeshType = "Sphere"
  2468. partMesh.Scale = vt(rad,rad,rad)
  2469. expart.Size = vt(1,1,1)
  2470. expart.Transparency = 0.5
  2471. expart.Anchored = true
  2472. expart.Material = "Neon"
  2473. expart.CanCollide = false
  2474. expart.BrickColor = par.BrickColor
  2475. expart.CFrame = par.CFrame
  2476. local value = 1*rad/5
  2477. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2478. for i = 0, 14 do
  2479. wait()
  2480. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2481. expart.CFrame = expart.CFrame
  2482. value = value - 0.035*rad
  2483. if value < 0 then
  2484. value = 0
  2485. end
  2486. end
  2487. wait(0.25)
  2488. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2489. wait(0.5)
  2490. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2491. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2492. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2493. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2494. for i = 0, 14 do
  2495. wait()
  2496. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2497. expart.CFrame = expart.CFrame
  2498. value = value - 0.035*rad/2
  2499. end
  2500. expart.Transparency = 1
  2501. game:GetService("Debris"):AddItem(expart, 5)
  2502. end
  2503.  
  2504. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2505. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2506. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2507. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2508. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2509. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2510. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2511. for i = 0, 24 do
  2512. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2513. end
  2514. for i = 0, 24 do
  2515. local expart = Instance.new("Part",char)
  2516. expart.Transparency = 1
  2517. expart.Anchored = true
  2518. expart.CanCollide = false
  2519. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2520. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2521. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2522. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2523. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2524. for i = 0, 9 do
  2525. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2526. end
  2527. game:GetService("Debris"):AddItem(expart, 2)
  2528. wait(0.1)
  2529. end
  2530. end
  2531.  
  2532. function EXterPlosion(par)
  2533. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2534. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2535. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2536. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2537. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2538. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2539. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2540. for i = 0, 24 do
  2541. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2542. end
  2543. for i = 0, 24 do
  2544. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2545. end
  2546. end
  2547. ----
  2548.  
  2549.  
  2550. function ring(type,pos,scale,value)
  2551. local type = type
  2552. local rng = Instance.new("Part", char)
  2553. rng.Anchored = true
  2554. rng.BrickColor = origcolor
  2555. rng.CanCollide = false
  2556. rng.FormFactor = 3
  2557. rng.Name = "Ring"
  2558. rng.Size = Vector3.new(1, 1, 1)
  2559. rng.Transparency = 0
  2560. rng.TopSurface = 0
  2561. rng.BottomSurface = 0
  2562. rng.CFrame = pos
  2563. local rngm = Instance.new("SpecialMesh", rng)
  2564. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2565. rngm.Scale = scale
  2566. local scaler2 = 1
  2567. if type == "Add" then
  2568. scaler2 = 1*value
  2569. elseif type == "Divide" then
  2570. scaler2 = 1/value
  2571. end
  2572. coroutine.resume(coroutine.create(function()
  2573. for i = 0,10,0.1 do
  2574. swait()
  2575. if type == "Add" then
  2576. scaler2 = scaler2 - 0.01*value
  2577. elseif type == "Divide" then
  2578. scaler2 = scaler2 - 0.01/value
  2579. end
  2580. rng.Transparency = rng.Transparency + 0.01
  2581. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2582. end
  2583. rng:Destroy()
  2584. end))
  2585. end
  2586.  
  2587.  
  2588. function wave(type,pos,scale,value)
  2589. local type = type
  2590. local rng = Instance.new("Part", char)
  2591. rng.Anchored = true
  2592. rng.BrickColor = origcolor
  2593. rng.CanCollide = false
  2594. rng.FormFactor = 3
  2595. rng.Name = "Ring"
  2596. rng.Size = Vector3.new(1, 1, 1)
  2597. rng.Transparency = 0
  2598. rng.TopSurface = 0
  2599. rng.BottomSurface = 0
  2600. rng.CFrame = pos
  2601. local rngm = Instance.new("SpecialMesh", rng)
  2602. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2603. rngm.Scale = scale
  2604. local scaler2 = 1
  2605. if type == "Add" then
  2606. scaler2 = 1*value
  2607. elseif type == "Divide" then
  2608. scaler2 = 1/value
  2609. end
  2610. coroutine.resume(coroutine.create(function()
  2611. for i = 0,10,0.1 do
  2612. swait()
  2613. if type == "Add" then
  2614. scaler2 = scaler2 - 0.01*value
  2615. elseif type == "Divide" then
  2616. scaler2 = scaler2 - 0.01/value
  2617. end
  2618. rng.Transparency = rng.Transparency + 0.01
  2619. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2620. end
  2621. rng:Destroy()
  2622. end))
  2623. end
  2624.  
  2625. function wind(type,pos,scale,value,speed)
  2626. local type = type
  2627. local rng = Instance.new("Part", char)
  2628. rng.Anchored = true
  2629. rng.BrickColor = origcolor
  2630. rng.CanCollide = false
  2631. rng.FormFactor = 3
  2632. rng.Name = "Ring"
  2633. rng.Size = Vector3.new(1, 1, 1)
  2634. rng.Transparency = 0
  2635. rng.TopSurface = 0
  2636. rng.BottomSurface = 0
  2637. rng.CFrame = pos
  2638. local rngm = Instance.new("SpecialMesh", rng)
  2639. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2640. rngm.Scale = scale
  2641. local scaler2 = 1
  2642. if type == "Add" then
  2643. scaler2 = 1*value
  2644. elseif type == "Divide" then
  2645. scaler2 = 1/value
  2646. end
  2647. coroutine.resume(coroutine.create(function()
  2648. for i = 0,10,0.1 do
  2649. swait()
  2650. if type == "Add" then
  2651. scaler2 = scaler2 - 0.01*value
  2652. elseif type == "Divide" then
  2653. scaler2 = scaler2 - 0.01/value
  2654. end
  2655. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2656. rng.Transparency = rng.Transparency + 0.01
  2657. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2658. end
  2659. rng:Destroy()
  2660. end))
  2661. end
  2662.  
  2663. function groundwind(type,pos,scale,value,speed)
  2664. local type = type
  2665. local rng = Instance.new("Part", char)
  2666. rng.Anchored = true
  2667. rng.BrickColor = origcolor
  2668. rng.CanCollide = false
  2669. rng.FormFactor = 3
  2670. rng.Name = "Ring"
  2671. rng.Size = Vector3.new(1, 1, 1)
  2672. rng.Transparency = 0
  2673. rng.TopSurface = 0
  2674. rng.BottomSurface = 0
  2675. rng.CFrame = pos
  2676. local rngm = Instance.new("SpecialMesh", rng)
  2677. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2678. rngm.Scale = scale
  2679. local scaler2 = 1
  2680. if type == "Add" then
  2681. scaler2 = 1*value
  2682. elseif type == "Divide" then
  2683. scaler2 = 1/value
  2684. end
  2685. coroutine.resume(coroutine.create(function()
  2686. for i = 0,10,0.1 do
  2687. swait()
  2688. if type == "Add" then
  2689. scaler2 = scaler2 - 0.01*value
  2690. elseif type == "Divide" then
  2691. scaler2 = scaler2 - 0.01/value
  2692. end
  2693. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2694. rng.Transparency = rng.Transparency + 0.01
  2695. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2696. end
  2697. rng:Destroy()
  2698. end))
  2699. end
  2700.  
  2701. function CameraManager()
  2702. if TwoD and not CamInterrupt then
  2703. if Humanoid.Health > 0 then
  2704. Camera.CameraSubject = Humanoid
  2705. Camera.CameraType = "Scriptable"
  2706. Humanoid.AutoRotate = false
  2707. if Booleans.GyroUse then
  2708. Directer.MaxTorque = Vec3(0, huge, 0)
  2709. else
  2710. Directer.MaxTorque = Vec3(0, 0, 0)
  2711. end
  2712. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2713. if Booleans.CamFollow then
  2714. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2715. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2716. else
  2717. CPart.Position = RootPart.Position
  2718. end
  2719. else
  2720. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2721. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2722. end
  2723. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2724. else
  2725. Camera.CameraSubject = Humanoid
  2726. Camera.CameraType = "Custom"
  2727. Controller.Disabled = false
  2728. end
  2729. end
  2730. end
  2731.  
  2732. function sphere(bonuspeed,type,pos,scale,value,color)
  2733. local type = type
  2734. local rng = Instance.new("Part", char)
  2735. rng.Anchored = true
  2736. rng.BrickColor = color
  2737. rng.CanCollide = false
  2738. rng.FormFactor = 3
  2739. rng.Name = "Ring"
  2740. rng.Material = "Neon"
  2741. rng.Size = Vector3.new(1, 1, 1)
  2742. rng.Transparency = 0
  2743. rng.TopSurface = 0
  2744. rng.BottomSurface = 0
  2745. rng.CFrame = pos
  2746. local rngm = Instance.new("SpecialMesh", rng)
  2747. rngm.MeshType = "Sphere"
  2748. rngm.Scale = scale
  2749. if rainbowmode == true then
  2750. rng.Color = Color3.new(r/255,g/255,b/255)
  2751. end
  2752. local scaler2 = 1
  2753. if type == "Add" then
  2754. scaler2 = 1*value
  2755. elseif type == "Divide" then
  2756. scaler2 = 1/value
  2757. end
  2758. coroutine.resume(coroutine.create(function()
  2759. for i = 0,10/bonuspeed,0.1 do
  2760. swait()
  2761. if rainbowmode == true then
  2762. rng.Color = Color3.new(r/255,g/255,b/255)
  2763. end
  2764. if type == "Add" then
  2765. scaler2 = scaler2 - 0.01*value/bonuspeed
  2766. elseif type == "Divide" then
  2767. scaler2 = scaler2 - 0.01/value*bonuspeed
  2768. end
  2769. if chaosmode == true then
  2770. rng.BrickColor = BrickColor.random()
  2771. end
  2772. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2773. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2774. end
  2775. rng:Destroy()
  2776. end))
  2777. end
  2778.  
  2779. function spherew(bonuspeed,type,pos,scale,value,color)
  2780. local type = type
  2781. local rng = Instance.new("Part", workspace)
  2782. rng.Anchored = true
  2783. rng.BrickColor = color
  2784. rng.CanCollide = false
  2785. rng.FormFactor = 3
  2786. rng.Name = "Ring"
  2787. rng.Material = "Neon"
  2788. rng.Size = Vector3.new(1, 1, 1)
  2789. rng.Transparency = 0
  2790. rng.TopSurface = 0
  2791. rng.BottomSurface = 0
  2792. rng.CFrame = pos
  2793. local rngm = Instance.new("SpecialMesh", rng)
  2794. rngm.MeshType = "Sphere"
  2795. rngm.Scale = scale
  2796. if rainbowmode == true then
  2797. rng.Color = Color3.new(r/255,g/255,b/255)
  2798. end
  2799. local scaler2 = 1
  2800. if type == "Add" then
  2801. scaler2 = 1*value
  2802. elseif type == "Divide" then
  2803. scaler2 = 1/value
  2804. end
  2805. coroutine.resume(coroutine.create(function()
  2806. for i = 0,10/bonuspeed,0.1 do
  2807. swait()
  2808. if rainbowmode == true then
  2809. rng.Color = Color3.new(r/255,g/255,b/255)
  2810. end
  2811. if type == "Add" then
  2812. scaler2 = scaler2 - 0.01*value/bonuspeed
  2813. elseif type == "Divide" then
  2814. scaler2 = scaler2 - 0.01/value*bonuspeed
  2815. end
  2816. if chaosmode == true then
  2817. rng.BrickColor = BrickColor.random()
  2818. end
  2819. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2820. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2821. end
  2822. rng:Destroy()
  2823. end))
  2824. end
  2825.  
  2826. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2827. local type = type
  2828. local rng = Instance.new("Part", char)
  2829. rng.Anchored = true
  2830. rng.BrickColor = color
  2831. rng.CanCollide = false
  2832. rng.FormFactor = 3
  2833. rng.Name = "Ring"
  2834. rng.Material = "Neon"
  2835. rng.Size = Vector3.new(1, 1, 1)
  2836. rng.Transparency = 0
  2837. rng.TopSurface = 0
  2838. rng.BottomSurface = 0
  2839. rng.CFrame = pos
  2840. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2841. local rngm = Instance.new("SpecialMesh", rng)
  2842. rngm.MeshType = "Brick"
  2843. rngm.Scale = vt(x1,y1,z1)
  2844. if rainbowmode == true then
  2845. rng.Color = Color3.new(r/255,g/255,b/255)
  2846. end
  2847. local scaler2 = 1
  2848. local speeder = FastSpeed/10
  2849. if type == "Add" then
  2850. scaler2 = 1*value
  2851. elseif type == "Divide" then
  2852. scaler2 = 1/value
  2853. end
  2854. coroutine.resume(coroutine.create(function()
  2855. for i = 0,10/bonuspeed,0.1 do
  2856. swait()
  2857. if rainbowmode == true then
  2858. rng.Color = Color3.new(r/255,g/255,b/255)
  2859. end
  2860. if type == "Add" then
  2861. scaler2 = scaler2 - 0.01*value/bonuspeed
  2862. elseif type == "Divide" then
  2863. scaler2 = scaler2 - 0.01/value*bonuspeed
  2864. end
  2865. if chaosmode == true then
  2866. rng.BrickColor = BrickColor.random()
  2867. end
  2868. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2869. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2870. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2871. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2872. end
  2873. rng:Destroy()
  2874. end))
  2875. end
  2876.  
  2877. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2878. local type = type
  2879. local rng = Instance.new("Part", char)
  2880. rng.Anchored = true
  2881. rng.BrickColor = color
  2882. rng.CanCollide = false
  2883. rng.FormFactor = 3
  2884. rng.Name = "Ring"
  2885. rng.Material = "Neon"
  2886. rng.Size = Vector3.new(1, 1, 1)
  2887. rng.Transparency = 0
  2888. rng.TopSurface = 0
  2889. rng.BottomSurface = 0
  2890. rng.CFrame = pos
  2891. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2892. local rngm = Instance.new("SpecialMesh", rng)
  2893. rngm.MeshType = "Brick"
  2894. rngm.Scale = vt(x1,y1,z1)
  2895. if rainbowmode == true then
  2896. rng.Color = Color3.new(r/255,g/255,b/255)
  2897. end
  2898. local scaler2 = 0
  2899. local speeder = FastSpeed/10
  2900. if type == "Add" then
  2901. scaler2 = 1*value
  2902. elseif type == "Divide" then
  2903. scaler2 = 1/value
  2904. end
  2905. coroutine.resume(coroutine.create(function()
  2906. for i = 0,10/bonuspeed,0.1 do
  2907. swait()
  2908. if rainbowmode == true then
  2909. rng.Color = Color3.new(r/255,g/255,b/255)
  2910. end
  2911. if type == "Add" then
  2912. scaler2 = scaler2 - 0.01*value/bonuspeed
  2913. elseif type == "Divide" then
  2914. scaler2 = scaler2 - 0.01/value*bonuspeed
  2915. end
  2916. if chaosmode == true then
  2917. rng.BrickColor = BrickColor.random()
  2918. end
  2919. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2920. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2921. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2922. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2923. end
  2924. rng:Destroy()
  2925. end))
  2926. end
  2927.  
  2928. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2929. local type = type
  2930. local rng = Instance.new("Part", workspace)
  2931. rng.Anchored = true
  2932. rng.BrickColor = color
  2933. rng.CanCollide = false
  2934. rng.FormFactor = 3
  2935. rng.Name = "Ring"
  2936. rng.Material = "Neon"
  2937. rng.Size = Vector3.new(1, 1, 1)
  2938. rng.Transparency = 0
  2939. rng.TopSurface = 0
  2940. rng.BottomSurface = 0
  2941. rng.CFrame = pos
  2942. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2943. local rngm = Instance.new("SpecialMesh", rng)
  2944. rngm.MeshType = "Sphere"
  2945. rngm.Scale = vt(x1,y1,z1)
  2946. if rainbowmode == true then
  2947. rng.Color = Color3.new(r/255,g/255,b/255)
  2948. end
  2949. local scaler2 = 1
  2950. local speeder = FastSpeed
  2951. if type == "Add" then
  2952. scaler2 = 1*value
  2953. elseif type == "Divide" then
  2954. scaler2 = 1/value
  2955. end
  2956. coroutine.resume(coroutine.create(function()
  2957. for i = 0,10/bonuspeed,0.1 do
  2958. swait()
  2959. if rainbowmode == true then
  2960. rng.Color = Color3.new(r/255,g/255,b/255)
  2961. end
  2962. if type == "Add" then
  2963. scaler2 = scaler2 - 0.01*value/bonuspeed
  2964. elseif type == "Divide" then
  2965. scaler2 = scaler2 - 0.01/value*bonuspeed
  2966. end
  2967. if chaosmode == true then
  2968. rng.BrickColor = BrickColor.random()
  2969. end
  2970. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2971. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2972. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2973. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2974. end
  2975. rng:Destroy()
  2976. end))
  2977. end
  2978. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2979. local type = type
  2980. local rng = Instance.new("Part", char)
  2981. rng.Anchored = true
  2982. rng.BrickColor = color
  2983. rng.CanCollide = false
  2984. rng.FormFactor = 3
  2985. rng.Name = "Ring"
  2986. rng.Material = "Neon"
  2987. rng.Size = Vector3.new(1, 1, 1)
  2988. rng.Transparency = 0
  2989. rng.TopSurface = 0
  2990. rng.BottomSurface = 0
  2991. rng.CFrame = pos
  2992. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2993. local rngm = Instance.new("SpecialMesh", rng)
  2994. rngm.MeshType = "Sphere"
  2995. rngm.Scale = vt(x1,y1,z1)
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. local scaler2 = 1
  3000. local speeder = FastSpeed
  3001. if type == "Add" then
  3002. scaler2 = 1*value
  3003. elseif type == "Divide" then
  3004. scaler2 = 1/value
  3005. end
  3006. coroutine.resume(coroutine.create(function()
  3007. for i = 0,10/bonuspeed,0.1 do
  3008. swait()
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. if type == "Add" then
  3013. scaler2 = scaler2 - 0.01*value/bonuspeed
  3014. elseif type == "Divide" then
  3015. scaler2 = scaler2 - 0.01/value*bonuspeed
  3016. end
  3017. if chaosmode == true then
  3018. rng.BrickColor = BrickColor.random()
  3019. end
  3020. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3021. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3022. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3023. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3024. end
  3025. rng:Destroy()
  3026. end))
  3027. end
  3028.  
  3029.  
  3030. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3031. local type = type
  3032. local rng = Instance.new("Part", char)
  3033. rng.Anchored = true
  3034. rng.BrickColor = color
  3035. rng.CanCollide = false
  3036. rng.FormFactor = 3
  3037. rng.Name = "Ring"
  3038. rng.Material = "Neon"
  3039. rng.Size = Vector3.new(1, 1, 1)
  3040. rng.Transparency = 1
  3041. rng.TopSurface = 0
  3042. rng.BottomSurface = 0
  3043. rng.CFrame = pos
  3044. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3045. local rngm = Instance.new("SpecialMesh", rng)
  3046. rngm.MeshType = "Sphere"
  3047. rngm.Scale = vt(x1,y1,z1)
  3048. if rainbowmode == true then
  3049. rng.Color = Color3.new(r/255,g/255,b/255)
  3050. end
  3051. local scaler2 = 1
  3052. local speeder = FastSpeed
  3053. if type == "Add" then
  3054. scaler2 = 1*value
  3055. elseif type == "Divide" then
  3056. scaler2 = 1/value
  3057. end
  3058. coroutine.resume(coroutine.create(function()
  3059. for i = 0,10/bonuspeed,0.1 do
  3060. swait()
  3061. if rainbowmode == true then
  3062. rng.Color = Color3.new(r/255,g/255,b/255)
  3063. end
  3064. if type == "Add" then
  3065. scaler2 = scaler2 - 0.01*value/bonuspeed
  3066. elseif type == "Divide" then
  3067. scaler2 = scaler2 - 0.01/value*bonuspeed
  3068. end
  3069. if chaosmode == true then
  3070. rng.BrickColor = BrickColor.random()
  3071. end
  3072. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3073. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3074. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3075. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3076. end
  3077. rng:Destroy()
  3078. end))
  3079. end
  3080.  
  3081. function dmg(dude)
  3082. if dude.Name ~= Character then
  3083. local bgf = Instance.new("BodyGyro",dude.Head)
  3084. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3085. local val = Instance.new("BoolValue",dude)
  3086. val.Name = "IsHit"
  3087. local ds = coroutine.wrap(function()
  3088. dude:WaitForChild("Head"):BreakJoints()
  3089. wait(0.5)
  3090. targetted = nil
  3091. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3092. coroutine.resume(coroutine.create(function()
  3093. for i, v in pairs(dude:GetChildren()) do
  3094. if v:IsA("Accessory") then
  3095. v:Destroy()
  3096. end
  3097. if v:IsA("Humanoid") then
  3098. v:Destroy()
  3099. end
  3100. if v:IsA("CharacterMesh") then
  3101. v:Destroy()
  3102. end
  3103. if v:IsA("Model") then
  3104. v:Destroy()
  3105. end
  3106. if v:IsA("Part") or v:IsA("MeshPart") then
  3107. for x, o in pairs(v:GetChildren()) do
  3108. if o:IsA("Decal") then
  3109. o:Destroy()
  3110. end
  3111. end
  3112. coroutine.resume(coroutine.create(function()
  3113. v.Material = "Neon"
  3114. v.CanCollide = false
  3115. local bld = Instance.new("ParticleEmitter",v)
  3116. bld.LightEmission = 1
  3117. bld.Texture = "rbxassetid://284205403"
  3118. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3119. bld.Rate = 50
  3120. bld.Lifetime = NumberRange.new(1)
  3121. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3122. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3123. bld.Speed = NumberRange.new(0,0)
  3124. bld.VelocitySpread = 50000
  3125. bld.Rotation = NumberRange.new(-500,500)
  3126. bld.RotSpeed = NumberRange.new(-500,500)
  3127. local sbs = Instance.new("BodyPosition", v)
  3128. sbs.P = 3000
  3129. sbs.D = 1000
  3130. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3131. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3132. v.Color = Color3.new(1,1,1)
  3133. coroutine.resume(coroutine.create(function()
  3134. for i = 0, 49 do
  3135. swait(1)
  3136. v.Transparency = v.Transparency + 0.02
  3137. end
  3138. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3139. bld.Speed = NumberRange.new(1,5)
  3140. bld.Acceleration = vt(0,10,0)
  3141. wait(0.5)
  3142. bld.Enabled = false
  3143. wait(3)
  3144. v:Destroy()
  3145. dude:Destroy()
  3146. end))
  3147. end))
  3148. end
  3149. end
  3150. end))
  3151. end)
  3152. ds()
  3153. end
  3154. end
  3155.  
  3156.  
  3157. function FindNearestHead(Position, Distance, SinglePlayer)
  3158. if SinglePlayer then
  3159. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3160. end
  3161. local List = {}
  3162. for i, v in pairs(workspace:GetChildren()) do
  3163. if v:IsA("Model") then
  3164. if v:findFirstChild("Head") then
  3165. if v ~= Character then
  3166. if (v.Head.Position - Position).magnitude <= Distance then
  3167. table.insert(List, v)
  3168. end
  3169. end
  3170. end
  3171. end
  3172. end
  3173. return List
  3174. end
  3175.  
  3176. function FaceMouse()
  3177. Cam = workspace.CurrentCamera
  3178. return {
  3179. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3180. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3181. }
  3182. end
  3183.  
  3184. function FaceMouse2()
  3185. Cam = workspace.CurrentCamera
  3186. return {
  3187. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3188. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3189. }
  3190. end
  3191.  
  3192. local ModeOfGlitch = 1
  3193. -- Functions are ready.
  3194. local storehumanoidWS = 16
  3195.  
  3196. function Blink()
  3197. for i = 0, 14 do
  3198. 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)
  3199. end
  3200. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3201. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3202. CameraEnshaking(2,10)
  3203. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3204. if v:FindFirstChild('Head') then
  3205. end
  3206. end
  3207. for i = 0, 14 do
  3208. 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)
  3209. end
  3210. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3211. end
  3212. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3213. function WACKYEFFECT(Table)
  3214. local TYPE = (Table.EffectType or "Sphere")
  3215. local SIZE = (Table.Size or VT(1,1,1))
  3216. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  3217. local TRANSPARENCY = (Table.Transparency or 0)
  3218. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  3219. local CFRAME = (Table.CFrame or Torso.CFrame)
  3220. local MOVEDIRECTION = (Table.MoveToPos or nil)
  3221. local ROTATION1 = (Table.RotationX or 0)
  3222. local ROTATION2 = (Table.RotationY or 0)
  3223. local ROTATION3 = (Table.RotationZ or 0)
  3224. local MATERIAL = (Table.Material or "Neon")
  3225. local COLOR = (Table.Color or C3(1,1,1))
  3226. local TIME = (Table.Time or 45)
  3227. local SOUNDID = (Table.SoundID or nil)
  3228. local SOUNDPITCH = (Table.SoundPitch or nil)
  3229. local SOUNDVOLUME = (Table.SoundVolume or nil)
  3230. coroutine.resume(coroutine.create(function()
  3231. local PLAYSSOUND = false
  3232. local SOUND = nil
  3233. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  3234. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  3235. PLAYSSOUND = true
  3236. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  3237. end
  3238. EFFECT.Color = COLOR
  3239. local MSH = nil
  3240. if TYPE == "Sphere" then
  3241. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  3242. elseif TYPE == "Block" then
  3243. MSH = IT("BlockMesh",EFFECT)
  3244. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  3245. elseif TYPE == "Wave" then
  3246. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  3247. elseif TYPE == "Ring" then
  3248. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  3249. elseif TYPE == "Slash" then
  3250. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3251. elseif TYPE == "Round Slash" then
  3252. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3253. elseif TYPE == "Swirl" then
  3254. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  3255. elseif TYPE == "Skull" then
  3256. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  3257. elseif TYPE == "Crystal" then
  3258. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  3259. end
  3260. if MSH ~= nil then
  3261. local MOVESPEED = nil
  3262. if MOVEDIRECTION ~= nil then
  3263. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  3264. end
  3265. local GROWTH = SIZE - ENDSIZE
  3266. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  3267. if TYPE == "Block" then
  3268. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3269. else
  3270. EFFECT.CFrame = CFRAME
  3271. end
  3272. for LOOP = 1, TIME+1 do
  3273. Swait()
  3274. MSH.Scale = MSH.Scale - GROWTH/TIME
  3275. if TYPE == "Wave" then
  3276. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  3277. end
  3278. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  3279. if TYPE == "Block" then
  3280. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3281. else
  3282. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  3283. end
  3284. if MOVEDIRECTION ~= nil then
  3285. local ORI = EFFECT.Orientation
  3286. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  3287. EFFECT.Orientation = ORI
  3288. end
  3289. end
  3290. if PLAYSSOUND == false then
  3291. EFFECT:remove()
  3292. else
  3293. SOUND.Stopped:Connect(function()
  3294. EFFECT:remove()
  3295. end)
  3296. end
  3297. else
  3298. if PLAYSSOUND == false then
  3299. EFFECT:remove()
  3300. else
  3301. repeat Swait() until SOUND.Playing == false
  3302. EFFECT:remove()
  3303. end
  3304. end
  3305. end))
  3306. end
  3307. function ExtinctiveHeartbreak()
  3308. local targetted = nil
  3309. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3310. targetted = mouse.Target.Parent
  3311. end
  3312. if targetted ~= nil then
  3313. attack = true
  3314. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3315. for i = 0, 9 do
  3316. 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)
  3317. end
  3318. for i = 0, 24 do
  3319. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3320. end
  3321. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3322. local originalpos = root.CFrame
  3323. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3324. for i = 0, 9 do
  3325. 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)
  3326. end
  3327. for i = 0, 24 do
  3328. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3329. end
  3330. hum.WalkSpeed = 0
  3331. targetted.Head.Anchored = true
  3332. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3333. for i = 0,2,0.1 do
  3334. swait()
  3335. 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)),.4)
  3336. 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)
  3337. 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)
  3338. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3339. 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)
  3340. 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)
  3341. end
  3342. coroutine.resume(coroutine.create(function()
  3343. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3344. bld.LightEmission = 0.1
  3345. bld.Texture = "rbxassetid://284205403"
  3346. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3347. bld.Rate = 500
  3348. bld.Lifetime = NumberRange.new(1)
  3349. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3350. bld.Acceleration = vt(0,-25,0)
  3351. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3352. bld.Speed = NumberRange.new(10,50)
  3353. bld.EmissionDirection = "Front"
  3354. bld.VelocitySpread = 25
  3355. bld.Rotation = NumberRange.new(-500,500)
  3356. bld.RotSpeed = NumberRange.new(-500,500)
  3357. end))
  3358. coroutine.resume(coroutine.create(function()
  3359. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3360. bld.LightEmission = 0.1
  3361. bld.Texture = "rbxassetid://284205403"
  3362. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3363. bld.Rate = 500
  3364. bld.Lifetime = NumberRange.new(1)
  3365. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3366. bld.Acceleration = vt(0,-25,0)
  3367. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3368. bld.Speed = NumberRange.new(10,50)
  3369. bld.EmissionDirection = "Front"
  3370. bld.VelocitySpread = 25
  3371. bld.Rotation = NumberRange.new(-500,500)
  3372. bld.RotSpeed = NumberRange.new(-500,500)
  3373. end))
  3374. CameraEnshaking(5,5)
  3375. game:GetService("Debris"):AddItem(bld,3)
  3376. dmg(targetted)
  3377. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3378. for i = 0,1,0.1 do
  3379. swait()
  3380. 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)
  3381. 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)),.8)
  3382. 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)
  3383. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3384. 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)
  3385. 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)
  3386. end
  3387. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3388. for i = 0, 9 do
  3389. 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)
  3390. end
  3391. for i = 0, 24 do
  3392. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3393. end
  3394. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3395. root.CFrame = originalpos
  3396. for i = 0, 9 do
  3397. 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)
  3398. end
  3399. for i = 0, 24 do
  3400. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3401. end
  3402. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3403. bld.Enabled = false
  3404. attack = false
  3405. hum.WalkSpeed = storehumanoidWS
  3406. end
  3407. end
  3408. function MeteorStrike()
  3409. attack = true
  3410. for i = 0, 2, 0.1 do
  3411. swait()
  3412. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3413. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3414. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3415. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3416. RW.C0=Clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3417. 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)
  3418. end
  3419. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3420. for i=1,20 do
  3421. sphereMKCharge(5,-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))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3422. swait()
  3423. end
  3424. swait(30)
  3425. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3426. for i =1,20 do
  3427. sphereMKw(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,MAINRUINCOLOR,0)
  3428. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3429. end
  3430. for i = 0,2,0.1 do
  3431. swait()
  3432. 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)
  3433. 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)
  3434. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3435. 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)
  3436. 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)
  3437. 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)
  3438. end
  3439. for i =1,20 do
  3440. sphereMKw(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3441. end
  3442. text.TextTransparency = 1
  3443. text.TextStrokeTransparency = 1
  3444. tr2.Enabled = false
  3445. tr1.Enabled = false
  3446. tr3.Enabled = false
  3447. tl1.Enabled = false
  3448. tl2.Enabled = false
  3449. tl3.Enabled = false
  3450. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3451. eff = false
  3452. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3453. local invtab = {}
  3454. local function search(targ)
  3455. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3456. table.insert(invtab,targ)
  3457. end
  3458. for i,v in pairs(targ:GetChildren()) do
  3459. search(v)
  3460. end
  3461. end
  3462. search(plr.Character)
  3463. local frm = 0
  3464. local frmcon
  3465. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3466. if frm < 10 then
  3467. for i,v in pairs(invtab) do
  3468. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3469. v.Transparency = v.Transparency + 0.1
  3470. end
  3471. end
  3472. frm = frm + 1
  3473. else
  3474. frmcon:disconnect()
  3475. end
  3476. end)
  3477. swait(200)
  3478. text.TextTransparency = 0
  3479. text.TextStrokeTransparency = 0
  3480. tr2.Enabled = false
  3481. tr1.Enabled = false
  3482. tr3.Enabled = false
  3483. tl1.Enabled = false
  3484. tl2.Enabled = false
  3485. tl3.Enabled = false
  3486. eff = true
  3487. for i =1,20 do
  3488. sphereMKw(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3489. end
  3490. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3491. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3492. local invtab = {}
  3493. local function search(targ)
  3494. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3495. table.insert(invtab,targ)
  3496. end
  3497. for i,v in pairs(targ:GetChildren()) do
  3498. search(v)
  3499. end
  3500. end
  3501. search(plr.Character)
  3502. local frm = 0
  3503. local frmcon
  3504. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3505. if frm < 10 then
  3506. for i,v in pairs(invtab) do
  3507. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3508. v.Transparency = v.Transparency - 0.1
  3509. end
  3510. end
  3511. frm = frm + 1
  3512. else
  3513. frmcon:disconnect()
  3514. end
  3515. end)
  3516. swait(5)
  3517. for i = 0, 2, 0.1 do
  3518. swait()
  3519. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3520. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3521. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3522. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3523. RW.C0=Clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3524. 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)
  3525. end
  3526. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3527. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3528. MagniDamage(root, 30, 65,90, 0, "Normal")
  3529. for i =1,20 do
  3530. sphereMK(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3531. end
  3532. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3533. for i =1,20 do
  3534. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3535. end
  3536. swait(20)
  3537. attack = false
  3538. tr2.Enabled = true
  3539. tr1.Enabled = true
  3540. tr3.Enabled = true
  3541. tl1.Enabled = true
  3542. tl2.Enabled = true
  3543. tl3.Enabled = true
  3544. end
  3545. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  3546. coroutine.resume(coroutine.create(function()
  3547. local METEOR = IT("Model",Effects)
  3548. METEOR.Name = "Meteorite"
  3549. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  3550. METEOR.PrimaryPart = CENTER
  3551. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  3552. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3553. for i = 1, 15 do
  3554. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
  3555. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3556. end
  3557. if ISDEBREE ~= true then
  3558. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3559. else
  3560. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3561. end
  3562. local IMPACT = false
  3563. CreateSound(463593339, CENTER, 10, 0.6)
  3564. if SIZE >= 3.5 then
  3565. for i = 1, MRANDOM(3,7) do
  3566. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  3567. end
  3568. end
  3569. for i = 1, 200 do
  3570. Swait()
  3571. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  3572. if HITFLOOR == nil then
  3573. local ORI = CENTER.Orientation
  3574. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3575. else
  3576. if HITFLOOR.Anchored == true then
  3577. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  3578. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  3579. end
  3580. IMPACT = true
  3581. break
  3582. end
  3583. end
  3584. if IMPACT == true then
  3585. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  3586. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  3587. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  3588. ApplyAoE(CENTER.Position,30*SIZE)
  3589. end
  3590. METEOR:remove()
  3591. end))
  3592. end
  3593. function FinalCalam()
  3594. attack = true
  3595. hum.WalkSpeed = 0
  3596. local orb = Instance.new("Part", char)
  3597. orb.Anchored = true
  3598. orb.BrickColor = MAINRUINCOLOR
  3599. orb.CanCollide = false
  3600. orb.FormFactor = 3
  3601. orb.Name = "Ring"
  3602. orb.Material = "Neon"
  3603. orb.Size = Vector3.new(1, 1, 1)
  3604. orb.Transparency = 0
  3605. orb.TopSurface = 0
  3606. orb.BottomSurface = 0
  3607. local orbm = Instance.new("SpecialMesh", orb)
  3608. orbm.MeshType = "Sphere"
  3609. orbm.Name = "SizeMesh"
  3610. orbm.Scale = vt(0,0,0)
  3611. local scaled = 0.1
  3612. local posid = 0
  3613. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3614. for i = 0, 5, 0.1 do
  3615. swait()
  3616. scaled = scaled - 0.001
  3617. posid = posid - scaled
  3618. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3619. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3620. 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,MAINRUINCOLOR,10)
  3621. 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,MAINRUINCOLOR,0)
  3622. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3623. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3624. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3625. 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)
  3626. end
  3627. swait(60)
  3628. for i =1,3 do
  3629. swait(30)
  3630. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3631. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3632. end
  3633. swait(30)
  3634. for i = 0, 2, 0.1 do
  3635. swait()
  3636. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3637. 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)
  3638. 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)
  3639. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3640. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3641. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3642. 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)
  3643. end
  3644. swait(60)
  3645. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3646. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3647. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3648. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3649. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3650. if v:FindFirstChild('Head') then
  3651. dmg(v)
  3652. end
  3653. end
  3654. for i = 1,20 do
  3655. 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,MAINRUINCOLOR,0)
  3656. for i = 0, 10 do
  3657. 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,MAINRUINCOLOR,0)
  3658. end
  3659. end
  3660. orb:Remove()
  3661. attack = false
  3662. hum.WalkSpeed = storehumanoidWS
  3663. end
  3664. function PureBomb()
  3665. attack = true
  3666.  
  3667. local orb = Instance.new("Part", char)
  3668. orb.Anchored = true
  3669. orb.BrickColor = BrickColor.new("Toothpaste")
  3670. orb.CanCollide = false
  3671. orb.FormFactor = 3
  3672. orb.Name = "Ring"
  3673. orb.Material = "Neon"
  3674. orb.Size = Vector3.new(1, 1, 1)
  3675. orb.Transparency = 0
  3676. orb.TopSurface = 0
  3677. orb.BottomSurface = 0
  3678. local orbm = Instance.new("SpecialMesh", orb)
  3679. orbm.MeshType = "Sphere"
  3680. orbm.Name = "SizeMesh"
  3681. orbm.Scale = vt(0,0,0)
  3682. local scaled = 0.1
  3683. local posid = 0
  3684. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3685. for i = 0, 5, 0.1 do
  3686. swait()
  3687. scaled = scaled - 0.001
  3688. posid = posid - scaled
  3689. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3690. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3691. 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)
  3692. 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)
  3693. 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)
  3694. 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)
  3695. 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)
  3696. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3697. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3698. 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)
  3699. end
  3700. for i = 0, 2, 0.1 do
  3701. swait()
  3702. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3703. 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)
  3704. 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)
  3705. 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)
  3706. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3707. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3708. 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)
  3709. end
  3710. coroutine.resume(coroutine.create(function()
  3711. orb.Anchored = false
  3712. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3713. local a = Instance.new("Part",workspace)
  3714. a.Name = "Direction"
  3715. a.Anchored = true
  3716. a.BrickColor = bc("Bright red")
  3717. a.Material = "Neon"
  3718. a.Transparency = 1
  3719. a.CanCollide = false
  3720. local ray = Ray.new(
  3721. orb.CFrame.p, -- origin
  3722. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3723. )
  3724. local ignore = orb
  3725. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3726. a.BottomSurface = 10
  3727. a.TopSurface = 10
  3728. local distance = (orb.CFrame.p - position).magnitude
  3729. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3730. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3731. orb.CFrame = a.CFrame
  3732. a:Destroy()
  3733. local bv = Instance.new("BodyVelocity")
  3734. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3735. bv.velocity = orb.CFrame.lookVector*125
  3736. bv.Parent = orb
  3737. local hitted = false
  3738. game:GetService("Debris"):AddItem(orb, 15)
  3739. wait()
  3740. local hit =orb.Touched:connect(function(hit)
  3741. if hitted == false then
  3742. hitted = true
  3743. CameraEnshaking(10,2.5)
  3744. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3745. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3746. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3747. for i = 0, 49 do
  3748. 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)
  3749. end
  3750. for i = 0, 9 do
  3751. 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)
  3752. 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)
  3753. end
  3754. orb.Anchored = true
  3755. orb.Transparency = 1
  3756. wait(8)
  3757. orb:Destroy()
  3758. end
  3759. end)
  3760. end))
  3761. for i = 0, 1, 0.1 do
  3762. swait()
  3763. 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)
  3764. 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)
  3765. 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)
  3766. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3767. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3768. 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)
  3769. end
  3770. attack = false
  3771. end
  3772.  
  3773. function ChaosGroundStrike()
  3774. attack = true
  3775. for i = 0, 2, 0.1 do
  3776. swait()
  3777. 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)
  3778. 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)
  3779. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3780. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3781. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3782. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3783. end
  3784. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3785. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3786. CameraEnshaking(4,12)
  3787. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3788. if v:FindFirstChild('Head') then
  3789. dmg(v)
  3790. end
  3791. end
  3792. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3793. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3794. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3795. for i = 0, 2, 0.1 do
  3796. swait()
  3797. 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)
  3798. 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)
  3799. 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)
  3800. 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)
  3801. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3802. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3803. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3804. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3805. end
  3806. attack = false
  3807. end
  3808.  
  3809. function ChaosGroundStrike2()
  3810. attack = true
  3811. for i = 0, 2, 0.1 do
  3812. swait()
  3813. 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)
  3814. 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)
  3815. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3816. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3817. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3818. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3819. end
  3820. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3821. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3822. CameraEnshaking(4,12)
  3823. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 250)) do
  3824. if v:FindFirstChild('Head') then
  3825. dmg(v)
  3826. end
  3827. end
  3828. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.new("Alder"))
  3829. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.new("Alder"))
  3830. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(250,0.1,250),0.01,BrickColor.new("Alder"))
  3831. for i = 0, 2, 0.1 do
  3832. swait()
  3833. 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.new("Alder"),0)
  3834. 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.new("Alder"),0)
  3835. 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)
  3836. 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)
  3837. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3838. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3839. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3840. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3841. end
  3842. attack = false
  3843. end
  3844.  
  3845.  
  3846. function Starfall()
  3847. attack = true
  3848. hum.WalkSpeed = 0
  3849. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3850. for i = 0, 5, 0.1 do
  3851. swait()
  3852. 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)
  3853. 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)
  3854. 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)
  3855. 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)
  3856. 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)
  3857. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3858. 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)
  3859. 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)
  3860. end
  3861. local Overed = false
  3862. CameraEnshaking(2,20)
  3863. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3864. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3865. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3866. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3867. local orb = Instance.new("Part", char)
  3868. orb.Anchored = true
  3869. orb.BrickColor = BrickColor.new("Toothpaste")
  3870. orb.CanCollide = false
  3871. orb.FormFactor = 3
  3872. orb.Name = "Remenant"
  3873. orb.Material = "Neon"
  3874. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3875. orb.Size = Vector3.new(1, 1, 1)
  3876. orb.Transparency = 1
  3877. orb.TopSurface = 0
  3878. orb.BottomSurface = 0
  3879. hum.WalkSpeed = storehumanoidWS
  3880. coroutine.resume(coroutine.create(function()
  3881. for i = 0, 9 do
  3882. swait(10)
  3883. local lb = Instance.new("Part")
  3884. lb.Color = MAINRUINCOLOR.Color
  3885. lb.CanCollide = false
  3886. lb.Material = "Neon"
  3887. lb.Anchored = true
  3888. lb.TopSurface = 0
  3889. lb.BottomSurface = 0
  3890. lb.Transparency = 0
  3891. lb.Size = vt(1,1,1)
  3892. 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)))
  3893. lb.Anchored = false
  3894. lb.Parent = char
  3895. local thingery = Instance.new("SpecialMesh",lb)
  3896. thingery.MeshType = "Sphere"
  3897. thingery.Scale = vt(20,20,20)
  3898. game:GetService("Debris"):AddItem(lb, 10)
  3899. local bv = Instance.new("BodyVelocity")
  3900. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3901. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3902. bv.Parent = lb
  3903. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3904. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3905. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3906. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3907. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3908. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3909. local hitted = false
  3910. coroutine.resume(coroutine.create(function()
  3911. while true do
  3912. swait(1)
  3913. if lb.Parent ~= nil and hitted == false then
  3914. 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)
  3915. elseif lb.Parent == nil then
  3916. break
  3917. end
  3918. end
  3919. end))
  3920.  
  3921. game:GetService("Debris"):AddItem(a, 0.1)
  3922.  
  3923. coroutine.resume(coroutine.create(function()
  3924. swait(1)
  3925. lb.Touched:connect(function(hit)
  3926. if hitted == false then
  3927. hitted = true
  3928. lb.Transparency = 1
  3929. lb.Anchored = true
  3930. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3931. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3932. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3933. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3934. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3935. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3936. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3937. CameraEnshaking(1,5)
  3938. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3939. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3940. for i = 0, 9 do
  3941. 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)
  3942. end
  3943. for i = 0, 49 do
  3944. swait()
  3945. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3946. 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)
  3947. end
  3948. end
  3949. end)
  3950. end))
  3951. end
  3952. Overed = true
  3953. orb:Destroy()
  3954. end))
  3955.  
  3956. attack = false
  3957. end
  3958.  
  3959. function StarfallEX()
  3960. attack = true
  3961. hum.WalkSpeed = 0
  3962. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3963. for i = 0, 5, 0.1 do
  3964. swait()
  3965. 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)
  3966. 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)
  3967. 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)
  3968. 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)
  3969. 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)
  3970. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3971. 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)
  3972. 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)
  3973. end
  3974. local Overed = false
  3975. CameraEnshaking(2,20)
  3976. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3977. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3978. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3979. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3980. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3981. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3982. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3983. local orb = Instance.new("Part", char)
  3984. orb.Anchored = true
  3985. orb.BrickColor = BrickColor.new("Toothpaste")
  3986. orb.CanCollide = false
  3987. orb.FormFactor = 3
  3988. orb.Name = "Remenant"
  3989. orb.Material = "Neon"
  3990. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3991. orb.Size = Vector3.new(1, 1, 1)
  3992. orb.Transparency = 1
  3993. orb.TopSurface = 0
  3994. orb.BottomSurface = 0
  3995. hum.WalkSpeed = storehumanoidWS
  3996. coroutine.resume(coroutine.create(function()
  3997. for i = 0, 9 do
  3998. swait(10)
  3999. local lb = Instance.new("Part")
  4000. lb.Color = MAINRUINCOLOR.Color
  4001. lb.CanCollide = false
  4002. lb.Material = "Neon"
  4003. lb.Anchored = true
  4004. lb.TopSurface = 0
  4005. lb.BottomSurface = 0
  4006. lb.Transparency = 0
  4007. lb.Size = vt(1,1,1)
  4008. 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)))
  4009. lb.Anchored = false
  4010. lb.Parent = char
  4011. local thingery = Instance.new("SpecialMesh",lb)
  4012. thingery.MeshType = "Sphere"
  4013. thingery.Scale = vt(20,20,20)
  4014. game:GetService("Debris"):AddItem(lb, 10)
  4015. local bv = Instance.new("BodyVelocity")
  4016. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4017. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4018. bv.Parent = lb
  4019. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4020. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4021. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4022. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4023. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4024. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4025. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4026. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4027. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4028. local hitted = false
  4029. coroutine.resume(coroutine.create(function()
  4030. while true do
  4031. swait(1)
  4032. if lb.Parent ~= nil and hitted == false then
  4033. 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)
  4034. 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)
  4035. elseif lb.Parent == nil then
  4036. break
  4037. end
  4038. end
  4039. end))
  4040.  
  4041. game:GetService("Debris"):AddItem(a, 0.1)
  4042.  
  4043. coroutine.resume(coroutine.create(function()
  4044. swait(1)
  4045. lb.Touched:connect(function(hit)
  4046. if hitted == false then
  4047. hitted = true
  4048. lb.Transparency = 1
  4049. lb.Anchored = true
  4050. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4051. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4052. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4053. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4054. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4055. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4056. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4057. CameraEnshaking(10,5)
  4058. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4059. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4060. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4061. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4062. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4063. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4064. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4065. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4066. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4067. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4068. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4069. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4070. for i = 0, 9 do
  4071. 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)
  4072. 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)
  4073. 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)
  4074. 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)
  4075. 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)
  4076. 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)
  4077. end
  4078. for i = 0, 49 do
  4079. swait()
  4080. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  4081. 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)
  4082. 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)
  4083. 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)
  4084. end
  4085. end
  4086. end)
  4087. end))
  4088. end
  4089. Overed = true
  4090. orb:Destroy()
  4091. end))
  4092.  
  4093. attack = false
  4094. end
  4095.  
  4096. function StarDivision()
  4097. attack = true
  4098. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4099. for i = 0, 2, 0.1 do
  4100. swait()
  4101. 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)
  4102. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  4103. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  4104. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  4105. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  4106. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4107. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  4108. end
  4109. local orb = Instance.new("Part", char)
  4110. orb.BrickColor = MAINRUINCOLOR
  4111. orb.CanCollide = false
  4112. orb.FormFactor = 3
  4113. orb.Name = "Ring"
  4114. orb.Material = "Neon"
  4115. orb.Size = Vector3.new(1, 1, 1)
  4116. orb.Transparency = 0
  4117. orb.TopSurface = 0
  4118. orb.BottomSurface = 0
  4119. local orbm = Instance.new("SpecialMesh", orb)
  4120. orbm.MeshType = "Sphere"
  4121. orbm.Name = "SizeMesh"
  4122. orbm.Scale = vt(2,2,2)
  4123. local a = Instance.new("Part",workspace)
  4124. a.Name = "Direction"
  4125. a.Anchored = true
  4126. a.BrickColor = bc("Bright red")
  4127. a.Material = "Neon"
  4128. a.Transparency = 1
  4129. a.CanCollide = false
  4130. local ray = Ray.new(
  4131. sorb.CFrame.p, -- origin
  4132. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4133. )
  4134. local ignore = sorb
  4135. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4136. a.BottomSurface = 10
  4137. a.TopSurface = 10
  4138. local distance = (sorb.CFrame.p - position).magnitude
  4139. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4140. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4141. orb.CFrame = a.CFrame
  4142. a:Destroy()
  4143. local bv = Instance.new("BodyVelocity")
  4144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4145. bv.velocity = orb.CFrame.lookVector*100
  4146. bv.Parent = orb
  4147. local hitted = false
  4148. game:GetService("Debris"):AddItem(orb, 10)
  4149. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4150. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4151. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4152. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4153. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4154. coroutine.resume(coroutine.create(function()
  4155. while true do
  4156. swait(1)
  4157. if orb.Parent ~= nil and hitted == false then
  4158. 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)
  4159. elseif orb.Parent == nil then
  4160. break
  4161. end
  4162. end
  4163. end))
  4164. coroutine.resume(coroutine.create(function()
  4165. swait(1)
  4166. orb.Touched:connect(function(hit)
  4167. if hitted == false then
  4168. hitted = true
  4169. game:GetService("Debris"):AddItem(orb, 5)
  4170. orb.Transparency = 1
  4171. orb.Anchored = true
  4172. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4173. elocacenter.Anchored = true
  4174. elocacenter.CFrame = orb.CFrame
  4175. elocacenter.Orientation = vt(0,0,0)
  4176. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4177. eloca1.Anchored = true
  4178. eloca1.CFrame = elocacenter.CFrame
  4179. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4180. eloca2.Anchored = true
  4181. eloca2.CFrame = elocacenter.CFrame
  4182. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4183. eloca3.Anchored = true
  4184. eloca3.CFrame = elocacenter.CFrame
  4185. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4186. eloca4.Anchored = true
  4187. eloca4.CFrame = elocacenter.CFrame
  4188. local lookavec = 0
  4189. local speeds = 0
  4190. CameraEnshaking(1,1)
  4191. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4192. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4193. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4194. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4195. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4196. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4197. for i = 0, 99 do
  4198. swait()
  4199. lookavec = lookavec + 1
  4200. speeds = speeds + 0.1
  4201. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4202. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4203. 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)
  4204.  
  4205. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4206. 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)
  4207.  
  4208. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4209. 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)
  4210.  
  4211. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4212. 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)
  4213. end
  4214.  
  4215. for i = 0, 149 do
  4216. swait()
  4217. speeds = speeds + 0.1
  4218. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4219. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4220. 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)
  4221.  
  4222. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4223. 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)
  4224.  
  4225. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4226. 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)
  4227.  
  4228. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4229. 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)
  4230. end
  4231. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4232. if v:FindFirstChild('Head') then
  4233. dmg(v)
  4234. end
  4235. end
  4236. CameraEnshaking(7,30)
  4237. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4238. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4239. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4240. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4241. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4242. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4243. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4244. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4245. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4246. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4247. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4248. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4249. for i = 0, 24 do
  4250. 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)
  4251. 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)
  4252. 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)
  4253. 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)
  4254. end
  4255. coroutine.resume(coroutine.create(function()
  4256. for i = 0, 499 do
  4257. swait(1)
  4258. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4259. 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)
  4260. end
  4261. elocacenter:Destroy()
  4262. eloca1:Destroy()
  4263. eloca2:Destroy()
  4264. eloca3:Destroy()
  4265. eloca4:Destroy()
  4266. end))
  4267. end
  4268. end)
  4269. end))
  4270. attack = false
  4271. end
  4272.  
  4273.  
  4274. function UniversalCollapse()
  4275. attack = true
  4276. local speedearn = 0
  4277. hum.WalkSpeed = 0
  4278. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4279. for i = 0, 10, 0.1 do
  4280. swait()
  4281. speedearn = speedearn + 0.1
  4282. 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)
  4283. 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)
  4284. 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)
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. 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)
  4290. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4291. 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)
  4292. 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)
  4293. end
  4294. CameraEnshaking(5,45)
  4295. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4296. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4297. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4298. if v:FindFirstChild('Head') then
  4299. dmg(v)
  4300. end
  4301. end
  4302. hum.WalkSpeed = storehumanoidWS
  4303. attack = false
  4304. end
  4305. function ChaosBegone()
  4306. attack = true
  4307. local speedearn = 0
  4308. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4309. for i = 0, 10, 0.1 do
  4310. swait()
  4311. speedearn = speedearn + 0.1
  4312. 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)
  4313. 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)
  4314. 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)
  4315. 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)
  4316. 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)
  4317. 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)
  4318. 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)
  4319. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4320. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4321. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4322. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4323. end
  4324. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4325. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4326. CameraEnshaking(5,25)
  4327. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4328. if v:FindFirstChild('Head') then
  4329. dmg(v)
  4330. end
  4331. end
  4332. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4333. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4334. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4335. for i = 0, 3, 0.1 do
  4336. swait()
  4337. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4338. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4339. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4340. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4341. 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)
  4342. 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)
  4343. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4344. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4345. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4346. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4347. end
  4348. attack = false
  4349. end
  4350.  
  4351. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4352. local orb = Instance.new("Part", char)
  4353. orb.Anchored = true
  4354. orb.BrickColor = color
  4355. orb.CanCollide = false
  4356. orb.FormFactor = 3
  4357. orb.Name = "Ring"
  4358. orb.Material = "Neon"
  4359. orb.Size = Vector3.new(1, 1, 1)
  4360. orb.Transparency = 0
  4361. orb.TopSurface = 0
  4362. orb.BottomSurface = 0
  4363. local orbm = Instance.new("SpecialMesh", orb)
  4364. orbm.MeshType = "Sphere"
  4365. orb.CFrame = positted
  4366. orbm.Name = "SizeMesh"
  4367. orbm.Scale = vt(1,1,1)
  4368. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4369. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4370. --[[for i = 0, 2 do
  4371. 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)
  4372. end]]--
  4373. coroutine.resume(coroutine.create(function()
  4374. wait(timer)
  4375. CameraEnshaking(3,ShakePower)
  4376. orb.Transparency = 1
  4377. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4378. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4379. --[[for i = 0, 4 do
  4380. 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)
  4381. end]]--
  4382. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4383. wait(3)
  4384. orb:Destroy()
  4385. end))
  4386. end
  4387.  
  4388. function orb_spawn(positted,timer)
  4389. local randomcol = math.random(1,2)
  4390. local orb = Instance.new("Part", char)
  4391. orb.Anchored = true
  4392. if randomcol == 1 then
  4393. orb.BrickColor = BrickColor.new("White")
  4394. elseif randomcol == 2 then
  4395. orb.BrickColor = BrickColor.new("Really black")
  4396. end
  4397. orb.CanCollide = false
  4398. orb.FormFactor = 3
  4399. orb.Name = "Ring"
  4400. orb.Material = "Neon"
  4401. orb.Size = Vector3.new(1, 1, 1)
  4402. orb.Transparency = 0
  4403. orb.TopSurface = 0
  4404. orb.BottomSurface = 0
  4405. local orbm = Instance.new("SpecialMesh", orb)
  4406. orbm.MeshType = "Sphere"
  4407. orb.CFrame = positted
  4408. orbm.Name = "SizeMesh"
  4409. orbm.Scale = vt(1,1,1)
  4410. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4411. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4412. for i = 0, 2 do
  4413. 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)
  4414. end
  4415. coroutine.resume(coroutine.create(function()
  4416. wait(timer)
  4417. CameraEnshaking(3,2)
  4418. orb.Transparency = 1
  4419. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4420. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4421. for i = 0, 4 do
  4422. 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)
  4423. end
  4424. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4425. wait(3)
  4426. orb:Destroy()
  4427. end))
  4428. end
  4429.  
  4430. function orb_spawn2(positted,timer)
  4431. local randomcol = math.random(1,7)
  4432. local orb = Instance.new("Part", char)
  4433. orb.Anchored = true
  4434. if randomcol == 1 then
  4435. orb.BrickColor = BrickColor.new("White")
  4436. elseif randomcol == 2 then
  4437. orb.BrickColor = BrickColor.new("Really black")
  4438. elseif randomcol == 3 then
  4439. orb.BrickColor = BrickColor.new("Really red")
  4440. elseif randomcol == 4 then
  4441. orb.BrickColor = BrickColor.new("Really blue")
  4442. elseif randomcol == 5 then
  4443. orb.BrickColor = BrickColor.new("Deep orange")
  4444. elseif randomcol == 6 then
  4445. orb.BrickColor = BrickColor.new("Bright yellow")
  4446. elseif randomcol == 7 then
  4447. orb.BrickColor = BrickColor.new("Lime green")
  4448. elseif randomcol == 8 then
  4449. orb.BrickColor = BrickColor.new("Hot pink")
  4450. end
  4451. orb.CanCollide = false
  4452. orb.FormFactor = 3
  4453. orb.Name = "Ring"
  4454. orb.Material = "Neon"
  4455. orb.Size = Vector3.new(1, 1, 1)
  4456. orb.Transparency = 0
  4457. orb.TopSurface = 0
  4458. orb.BottomSurface = 0
  4459. local orbm = Instance.new("SpecialMesh", orb)
  4460. orbm.MeshType = "Sphere"
  4461. orb.CFrame = positted
  4462. orbm.Name = "SizeMesh"
  4463. orbm.Scale = vt(1,1,1)
  4464. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4465. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4466. for i = 0, 2 do
  4467. 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)
  4468. end
  4469. coroutine.resume(coroutine.create(function()
  4470. wait(timer)
  4471. CameraEnshaking(3,2)
  4472. orb.Transparency = 1
  4473. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4474. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4475. for i = 0, 4 do
  4476. 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)
  4477. end
  4478. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4479. wait(3)
  4480. orb:Destroy()
  4481. end))
  4482. end
  4483.  
  4484.  
  4485. function scattercorrupt()
  4486. attack = true
  4487. local rot = 0
  4488. local randomrotations = math.random(1,2)
  4489. local lookv = 2.5
  4490. local power = 5
  4491. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4492. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4493. for i = 0, 9 do
  4494. 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)
  4495. end
  4496. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4497. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4498. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4499. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4500. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4501. local hite = Instance.new("Part", char)
  4502. hite.Anchored = true
  4503. hite.CanCollide = false
  4504. hite.FormFactor = 3
  4505. hite.Name = "Ring"
  4506. hite.Material = "Neon"
  4507. hite.Size = Vector3.new(1, 1, 1)
  4508. hite.Transparency = 1
  4509. hite.TopSurface = 0
  4510. hite.BottomSurface = 0
  4511. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4512. local rem = Instance.new("Part", char)
  4513. rem.Anchored = true
  4514. rem.CanCollide = false
  4515. rem.FormFactor = 3
  4516. rem.Name = "Ring"
  4517. rem.Material = "Neon"
  4518. rem.Size = Vector3.new(1, 1, 1)
  4519. rem.Transparency = 1
  4520. rem.TopSurface = 0
  4521. rem.BottomSurface = 0
  4522. rem.CFrame = hite.CFrame
  4523. local rem2 = rem:Clone()
  4524. rem2.Parent = char
  4525. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4526. local rem3 = rem:Clone()
  4527. rem3.Parent = char
  4528. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4529. local rem4 = rem:Clone()
  4530. rem4.Parent = char
  4531. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4532. hite:Destroy()
  4533. coroutine.resume(coroutine.create(function()
  4534. for i = 0, 24 do
  4535. swait(1)
  4536. if randomrotations == 1 then
  4537. rot = rot + 1
  4538. elseif randomrotations == 2 then
  4539. rot = rot - 1
  4540. end
  4541. power = power + 0.5
  4542. lookv = lookv + 7.5
  4543. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4544. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4545. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4546. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4547. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4548. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4549. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4550. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4551. end
  4552. end))
  4553. attack = false
  4554. end
  4555. function scattercorrupt2()
  4556. attack = true
  4557. local rot = 0
  4558. local randomrotations = math.random(1,2)
  4559. local lookv = 2.5
  4560. local power = 5
  4561. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Smoky grey"))
  4562. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Smoky grey"))
  4563. for i = 0, 9 do
  4564. 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("Smoky grey"),0)
  4565. end
  4566. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4567. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4568. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4569. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4570. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4571. local hite = Instance.new("Part", char)
  4572. hite.Anchored = true
  4573. hite.CanCollide = false
  4574. hite.FormFactor = 3
  4575. hite.Name = "Ring"
  4576. hite.Material = "Neon"
  4577. hite.Size = Vector3.new(1, 1, 1)
  4578. hite.Transparency = 1
  4579. hite.TopSurface = 0
  4580. hite.BottomSurface = 0
  4581. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4582. local rem = Instance.new("Part", char)
  4583. rem.Anchored = true
  4584. rem.CanCollide = false
  4585. rem.FormFactor = 3
  4586. rem.Name = "Ring"
  4587. rem.Material = "Neon"
  4588. rem.Size = Vector3.new(1, 1, 1)
  4589. rem.Transparency = 1
  4590. rem.TopSurface = 0
  4591. rem.BottomSurface = 0
  4592. rem.CFrame = hite.CFrame
  4593. local rem2 = rem:Clone()
  4594. rem2.Parent = char
  4595. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4596. local rem3 = rem:Clone()
  4597. rem3.Parent = char
  4598. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4599. local rem4 = rem:Clone()
  4600. rem4.Parent = char
  4601. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4602. hite:Destroy()
  4603. coroutine.resume(coroutine.create(function()
  4604. for i = 0, 24 do
  4605. swait(1)
  4606. if randomrotations == 1 then
  4607. rot = rot + 1
  4608. elseif randomrotations == 2 then
  4609. rot = rot - 1
  4610. end
  4611. power = power + 0.5
  4612. lookv = lookv + 7.5
  4613. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4614. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4615. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4616. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4617. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4618. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4619. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4620. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4621. end
  4622. end))
  4623. attack = false
  4624. end
  4625. function Meteor_Shower()
  4626. ATTACK = true
  4627. Rooted = false
  4628. CreateSound(1368573150, RightArm, 3, 0.8)
  4629. CreateSound(649634100, Torso, 10, 0.8)
  4630. for i=0, 1.2, 0.1 / Animation_Speed do
  4631. Swait()
  4632. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/2, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  4633. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4634. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  4635. end
  4636. local POS = Mouse.Hit.p
  4637. CreateSound(463593339, Effects, 3, 1)
  4638. coroutine.resume(coroutine.create(function()
  4639. for i = 1, 35 do
  4640. wait(MRANDOM(5,150)/100)
  4641. scattercorrupt2(CF(POS) * ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(0,1500)/10).p,MRANDOM(10,25)/10)
  4642. end
  4643. end))
  4644. ATTACK = false
  4645. Rooted = false
  4646. end
  4647. function yinyangi()
  4648. attack = true
  4649. for i = 0, 2, 0.1 do
  4650. swait()
  4651. 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)
  4652. 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)
  4653. 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)
  4654. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4655. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4656. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4657. end
  4658. local bv = Instance.new("BodyVelocity")
  4659. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4660. bv.velocity = root.CFrame.lookVector*175
  4661. bv.Parent = root
  4662. for Rotations = 0, 9 do
  4663. for i = 0, 1, 0.5 do
  4664. swait()
  4665. bv.velocity = root.CFrame.lookVector*175
  4666. 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)
  4667. 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)
  4668. 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)
  4669. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4670. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4671. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4672. end
  4673. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4674. for i = 0, 1, 0.5 do
  4675. swait()
  4676. bv.velocity = root.CFrame.lookVector*175
  4677. 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)
  4678. 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)
  4679. 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)
  4680. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4681. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4682. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4683. end
  4684. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4685. for i = 0, 1, 0.5 do
  4686. swait()
  4687. bv.velocity = root.CFrame.lookVector*175
  4688. 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)
  4689. 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)
  4690. 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)
  4691. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4692. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4693. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4694. end
  4695. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4696. for i = 0, 1, 0.5 do
  4697. swait()
  4698. bv.velocity = root.CFrame.lookVector*175
  4699. 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)
  4700. 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)
  4701. 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)
  4702. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4703. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4704. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4705. end
  4706. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4707. end
  4708. bv:Destroy()
  4709. attack = false
  4710. end
  4711.  
  4712. function yinyangi2()
  4713. attack = true
  4714. for i = 0, 2, 0.1 do
  4715. swait()
  4716. 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)
  4717. 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)
  4718. 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)
  4719. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4720. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4721. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4722. end
  4723. local bv = Instance.new("BodyVelocity")
  4724. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4725. bv.velocity = root.CFrame.lookVector*175
  4726. bv.Parent = root
  4727. for Rotations = 0, 9 do
  4728. for i = 0, 1, 0.5 do
  4729. swait()
  4730. bv.velocity = root.CFrame.lookVector*175
  4731. 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)
  4732. 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)
  4733. 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)
  4734. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4735. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4736. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4737. end
  4738. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4739. for i = 0, 1, 0.5 do
  4740. swait()
  4741. bv.velocity = root.CFrame.lookVector*175
  4742. 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)
  4743. 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)
  4744. 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)
  4745. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4746. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4747. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4748. end
  4749. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4750. for i = 0, 1, 0.5 do
  4751. swait()
  4752. bv.velocity = root.CFrame.lookVector*175
  4753. 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)
  4754. 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)
  4755. 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)
  4756. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4757. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4758. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4759. end
  4760. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4761. for i = 0, 1, 0.5 do
  4762. swait()
  4763. bv.velocity = root.CFrame.lookVector*175
  4764. 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)
  4765. 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)
  4766. 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)
  4767. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4768. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4769. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4770. end
  4771. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4772. end
  4773. bv:Destroy()
  4774. attack = false
  4775. end
  4776.  
  4777. function Wip2()
  4778. attack = true
  4779.  
  4780. local rngb = Instance.new("Part", char)
  4781. rngb.Anchored = true
  4782. rngb.BrickColor = origcolor
  4783. rngb.CanCollide = false
  4784. rngb.FormFactor = 3
  4785. rngb.Name = "Ring"
  4786. rngb.Material = "Neon"
  4787. rngb.Size = Vector3.new(1, 0.05, 1)
  4788. rngb.Transparency = 1
  4789. rngb.TopSurface = 0
  4790. rngb.BottomSurface = 0
  4791. local rngmb = Instance.new("SpecialMesh", rngb)
  4792. rngmb.MeshType = "Brick"
  4793. rngmb.Name = "SizeMesh"
  4794. rngmb.Scale = vt(0,1,0)
  4795.  
  4796. local orb = rngb:Clone()
  4797. orb.Parent = char
  4798. orb.Transparency = 0
  4799. orb.BrickColor = BrickColor.new("Really black")
  4800. orb.Size = vt(1,1,1)
  4801. local orbmish = orb.SizeMesh
  4802. orbmish.Scale = vt(0,0,0)
  4803. orbmish.MeshType = "Sphere"
  4804.  
  4805. local orbe = rngb:Clone()
  4806. orbe.Parent = char
  4807. orbe.Transparency = 0.5
  4808. orbe.BrickColor = BrickColor.new("New Yeller")
  4809. orbe.Size = vt(1,1,1)
  4810. local orbmish2 = orbe.SizeMesh
  4811. orbmish2.Scale = vt(0,0,0)
  4812. orbmish2.MeshType = "Sphere"
  4813. orbe.Color = Color3.new(255/255,0/255,255/255)
  4814.  
  4815. rngb:Destroy()
  4816. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4817. local scaled = 1
  4818. for i = 0,5,0.1 do
  4819. swait()
  4820. scaled = scaled - 0.02
  4821. if rainbowmode == true then
  4822. orbe.Color = Color3.new(255/255,0/255,255/255)
  4823. end
  4824. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4825. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4826. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4827. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4828. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4829. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4830. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4831. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4832. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4833. 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(0)),.3)
  4834. 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(10),math.rad(0)),.3)
  4835. RootPart.CFrame = FaceMouse()[1]
  4836. end]]--
  4837. for i = 0,5,0.1 do
  4838. swait()
  4839. if rainbowmode == true then
  4840. orbe.Color = Color3.new(255/255,0/255,255/255)
  4841. end
  4842. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4843. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4844. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4845. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4846. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4847. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4848. 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(0)),.3)
  4849. 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(10),math.rad(0)),.3)
  4850. RootPart.CFrame = FaceMouse()[1]
  4851. end
  4852. orbe.Transparency = 1
  4853. orb.Transparency = 1
  4854. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4855. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4856. local a = Instance.new("Part",Character)
  4857. a.Name = "Direction"
  4858. a.Anchored = true
  4859. a.BrickColor = bc("Really black")
  4860. a.Material = "Neon"
  4861. a.Transparency = 0
  4862. a.Shape = "Cylinder"
  4863. a.CanCollide = false
  4864. local a2 = Instance.new("Part",Character)
  4865. a2.Name = "Direction"
  4866. a2.Anchored = true
  4867. a2.BrickColor = bc("New Yeller")
  4868. a2.Color = Color3.new(255/255,0/255,255/255)
  4869. a2.Material = "Neon"
  4870. a2.Transparency = 0.5
  4871. a2.Shape = "Cylinder"
  4872. a2.CanCollide = false
  4873. local ba = Instance.new("Part",Character)
  4874. ba.Name = "HitDirect"
  4875. ba.Anchored = true
  4876. ba.BrickColor = bc("Cool yellow")
  4877. ba.Material = "Neon"
  4878. ba.Transparency = 1
  4879. ba.CanCollide = false
  4880. local ray = Ray.new(
  4881. orb.CFrame.p, -- origin
  4882. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4883. )
  4884. local ignore = Character
  4885. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4886. a.BottomSurface = 10
  4887. a.TopSurface = 10
  4888. a2.BottomSurface = 10
  4889. a2.TopSurface = 10
  4890. local distance = (orb.CFrame.p - position).magnitude
  4891. a.Size = Vector3.new(distance, 1, 1)
  4892. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4893. a2.Size = Vector3.new(distance, 1, 1)
  4894. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4895. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4896. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4897. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4898. game:GetService("Debris"):AddItem(a, 20)
  4899. game:GetService("Debris"):AddItem(a2, 20)
  4900. game:GetService("Debris"):AddItem(ba, 20)
  4901. local msh = Instance.new("SpecialMesh",a)
  4902. msh.MeshType = "Cylinder"
  4903. msh.Scale = vt(1,5*5,5*5)
  4904. local msh2 = Instance.new("SpecialMesh",a2)
  4905. msh2.MeshType = "Cylinder"
  4906. msh2.Scale = vt(1,6*5,6*5)
  4907.  
  4908. for i = 0,10,0.1 do
  4909. swait()
  4910. CameraEnshaking(1,5)
  4911. a2.Color = Color3.new(98/255, 37/255, 209/255)
  4912. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4913. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4914. ray = Ray.new(
  4915. orb.CFrame.p, -- origin
  4916. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4917. )
  4918. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4919. distance = (orb.CFrame.p - position).magnitude
  4920. if typrot == 1 then
  4921. rotation = rotation + 2.5
  4922. elseif typrot == 2 then
  4923. rotation = rotation - 2.5
  4924. end
  4925. RootPart.CFrame = FaceMouse()[1]
  4926. a.Size = Vector3.new(distance, 1, 1)
  4927. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4928. a2.Size = Vector3.new(distance, 1, 1)
  4929. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4930. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4931. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4932. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4933. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4934. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4935. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4936. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4937. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4938. end
  4939. a:Destroy()
  4940. a2:Destroy()
  4941. ba:Destroy()
  4942. orb:Destroy()
  4943. orbe:Destroy()
  4944. attack = false
  4945. end
  4946.  
  4947. function Wip()
  4948. attack = true
  4949.  
  4950. local rngb = Instance.new("Part", char)
  4951. rngb.Anchored = true
  4952. rngb.BrickColor = origcolor
  4953. rngb.CanCollide = false
  4954. rngb.FormFactor = 3
  4955. rngb.Name = "Ring"
  4956. rngb.Material = "Neon"
  4957. rngb.Size = Vector3.new(1, 0.05, 1)
  4958. rngb.Transparency = 1
  4959. rngb.TopSurface = 0
  4960. rngb.BottomSurface = 0
  4961. local rngmb = Instance.new("SpecialMesh", rngb)
  4962. rngmb.MeshType = "Brick"
  4963. rngmb.Name = "SizeMesh"
  4964. rngmb.Scale = vt(0,1,0)
  4965.  
  4966. local orb = rngb:Clone()
  4967. orb.Parent = char
  4968. orb.Transparency = 0
  4969. orb.BrickColor = BrickColor.new("White")
  4970. orb.Size = vt(1,1,1)
  4971. local orbmish = orb.SizeMesh
  4972. orbmish.Scale = vt(0,0,0)
  4973. orbmish.MeshType = "Sphere"
  4974.  
  4975. local orbe = rngb:Clone()
  4976. orbe.Parent = char
  4977. orbe.Transparency = 0.5
  4978. orbe.BrickColor = BrickColor.new("New Yeller")
  4979. orbe.Size = vt(1,1,1)
  4980. local orbmish2 = orbe.SizeMesh
  4981. orbmish2.Scale = vt(0,0,0)
  4982. orbmish2.MeshType = "Sphere"
  4983. orbe.Color = Color3.new(r/255,g/255,b/255)
  4984.  
  4985. rngb:Destroy()
  4986. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4987. local scaled = 1
  4988. for i = 0,5,0.1 do
  4989. swait()
  4990. scaled = scaled - 0.02
  4991. if rainbowmode == true then
  4992. orbe.Color = Color3.new(r/255,g/255,b/255)
  4993. end
  4994. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4995. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4996. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4997. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4998. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4999. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5000. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5001. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5002. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5003. 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(0)),.3)
  5004. 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(10),math.rad(0)),.3)
  5005. RootPart.CFrame = FaceMouse()[1]
  5006. end]]--
  5007. for i = 0,5,0.1 do
  5008. swait()
  5009. if rainbowmode == true then
  5010. orbe.Color = Color3.new(r/255,g/255,b/255)
  5011. end
  5012. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5013. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5014. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5015. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5016. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5017. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5018. 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(0)),.3)
  5019. 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(10),math.rad(0)),.3)
  5020. RootPart.CFrame = FaceMouse()[1]
  5021. end
  5022. orbe.Transparency = 1
  5023. orb.Transparency = 1
  5024. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5025. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5026. local a = Instance.new("Part",Character)
  5027. a.Name = "Direction"
  5028. a.Anchored = true
  5029. a.BrickColor = bc("White")
  5030. a.Material = "Neon"
  5031. a.Transparency = 0
  5032. a.Shape = "Cylinder"
  5033. a.CanCollide = false
  5034. local a2 = Instance.new("Part",Character)
  5035. a2.Name = "Direction"
  5036. a2.Anchored = true
  5037. a2.BrickColor = bc("New Yeller")
  5038. a2.Color = Color3.new(r/255,g/255,b/255)
  5039. a2.Material = "Neon"
  5040. a2.Transparency = 0.5
  5041. a2.Shape = "Cylinder"
  5042. a2.CanCollide = false
  5043. local ba = Instance.new("Part",Character)
  5044. ba.Name = "HitDirect"
  5045. ba.Anchored = true
  5046. ba.BrickColor = bc("Cool yellow")
  5047. ba.Material = "Neon"
  5048. ba.Transparency = 1
  5049. ba.CanCollide = false
  5050. local ray = Ray.new(
  5051. orb.CFrame.p, -- origin
  5052. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5053. )
  5054. local ignore = Character
  5055. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5056. a.BottomSurface = 10
  5057. a.TopSurface = 10
  5058. a2.BottomSurface = 10
  5059. a2.TopSurface = 10
  5060. local distance = (orb.CFrame.p - position).magnitude
  5061. a.Size = Vector3.new(distance, 1, 1)
  5062. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5063. a2.Size = Vector3.new(distance, 1, 1)
  5064. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5065. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5066. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5067. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5068. game:GetService("Debris"):AddItem(a, 20)
  5069. game:GetService("Debris"):AddItem(a2, 20)
  5070. game:GetService("Debris"):AddItem(ba, 20)
  5071. local msh = Instance.new("SpecialMesh",a)
  5072. msh.MeshType = "Cylinder"
  5073. msh.Scale = vt(1,5*5,5*5)
  5074. local msh2 = Instance.new("SpecialMesh",a2)
  5075. msh2.MeshType = "Cylinder"
  5076. msh2.Scale = vt(1,6*5,6*5)
  5077.  
  5078. for i = 0,10,0.1 do
  5079. swait()
  5080. CameraEnshaking(1,5)
  5081. a2.Color = Color3.new(r/255,g/255,b/255)
  5082. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5083. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5084. ray = Ray.new(
  5085. orb.CFrame.p, -- origin
  5086. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5087. )
  5088. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5089. distance = (orb.CFrame.p - position).magnitude
  5090. if typrot == 1 then
  5091. rotation = rotation + 2.5
  5092. elseif typrot == 2 then
  5093. rotation = rotation - 2.5
  5094. end
  5095. RootPart.CFrame = FaceMouse()[1]
  5096. a.Size = Vector3.new(distance, 1, 1)
  5097. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5098. a2.Size = Vector3.new(distance, 1, 1)
  5099. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5100. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5101. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5102. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5103. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  5104. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  5105. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  5106. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  5107. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  5108. end
  5109. a:Destroy()
  5110. a2:Destroy()
  5111. ba:Destroy()
  5112. orb:Destroy()
  5113. orbe:Destroy()
  5114. attack = false
  5115. end
  5116. function HolyBarrier()
  5117. attack = true
  5118. shielding = true
  5119. for i = 0, 2, 0.1 do
  5120. swait()
  5121. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  5122. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  5123. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  5124. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  5125. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  5126. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  5127. end
  5128. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  5129. stash = Instance.new("Model",workspace)
  5130. local barrier = Instance.new("Part",stash)
  5131. barrier.Anchored = true
  5132. barrier.CanCollide = false
  5133. barrier.Size = Vector3.new(20,20,20)
  5134. barrier.CFrame = root.CFrame
  5135. barrier.Transparency = 0.6
  5136. barrier.BrickColor = MAINRUINCOLOR
  5137. barrier.Material = Enum.Material.Neon
  5138. barrier.Shape = Enum.PartType.Ball
  5139. barrier.CFrame = root.CFrame
  5140. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5141. Torso.Anchored = true
  5142. for i=1,50 do
  5143. local p = Instance.new("Part",stash)
  5144. p.Anchored = true
  5145. p.Transparency = 1
  5146. p.Size = Vector3.new(11,11,11)
  5147. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  5148. end
  5149. repeat
  5150. swait(5)
  5151. 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("White"),0)
  5152. until shielding == false
  5153. stash:Remove()
  5154. Torso.Anchored = false
  5155. shielding = false
  5156. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5157. attack = false
  5158. end
  5159. function Judgement()
  5160. attack = true
  5161. judgement = true
  5162. hum.WalkSpeed = 0
  5163. local p = Instance.new("Part",root)
  5164. p.Anchored = true
  5165. p.CanCollide = false
  5166. p.BrickColor = MAINRUINCOLOR
  5167. p.Material = Enum.Material.Neon
  5168. p.Size = Vector3.new(1,1,1)
  5169. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5170. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5171. local m = Instance.new("SpecialMesh",p)
  5172. m.MeshType = "Cylinder"
  5173. m.Scale = Vector3.new(2000,2,2)
  5174. local targ = Instance.new("Part",root)
  5175. targ.Anchored = true
  5176. targ.Transparency = 1
  5177. targ.CanCollide = false
  5178. targ.Size = Vector3.new(1,1,1)
  5179. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5180. local s = Instance.new("Sound",targ)
  5181. s.SoundId = "https://roblox.com/asset/?id=115327352"
  5182. s.Looped = true
  5183. s.Pitch = 1.2
  5184. s.Volume = 3
  5185. spawn(function()
  5186. swait(15)
  5187. s:Play()
  5188. end)
  5189. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  5190. for i = 1,15 do
  5191. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5192. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5193. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5194. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5195. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5196. 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(-20)),.2)
  5197. 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(10),math.rad(20)),.2)
  5198. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  5199. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  5200. m.Scale = m.Scale+Vector3.new(0,1,1)
  5201. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5202. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5203. swait()
  5204. end
  5205. sphereMK(3, 0.2, "Add", targ.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, MAINRUINCOLOR, 0)
  5206. repeat
  5207. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5208. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  5209. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  5210. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5211. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5212. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  5213. swait()
  5214. until judgement == false
  5215. for i =1,15 do
  5216. m.Scale = m.Scale-Vector3.new(1,1,1)
  5217. p.Transparency = i / 15
  5218. s.Pitch = s.Pitch - 0.4
  5219. swait()
  5220. end
  5221. p:Destroy()
  5222. hum.WalkSpeed = storehumanoidWS
  5223. attack = false
  5224. end
  5225.  
  5226. function UniversalSpark()
  5227. attack = true
  5228.  
  5229. local rngb = Instance.new("Part", char)
  5230. rngb.Anchored = true
  5231. rngb.BrickColor = origcolor
  5232. rngb.CanCollide = false
  5233. rngb.FormFactor = 3
  5234. rngb.Name = "Ring"
  5235. rngb.Material = "Neon"
  5236. rngb.Size = Vector3.new(1, 0.05, 1)
  5237. rngb.Transparency = 1
  5238. rngb.TopSurface = 0
  5239. rngb.BottomSurface = 0
  5240. local rngmb = Instance.new("SpecialMesh", rngb)
  5241. rngmb.MeshType = "Brick"
  5242. rngmb.Name = "SizeMesh"
  5243. rngmb.Scale = vt(0,1,0)
  5244.  
  5245. local orb = rngb:Clone()
  5246. orb.Parent = char
  5247. orb.Transparency = 0
  5248. orb.BrickColor = BrickColor.new("White")
  5249. orb.Size = vt(1,1,1)
  5250. local orbmish = orb.SizeMesh
  5251. orbmish.Scale = vt(0,0,0)
  5252. orbmish.MeshType = "Sphere"
  5253.  
  5254. local orbe = rngb:Clone()
  5255. orbe.Parent = char
  5256. orbe.Transparency = 0.5
  5257. orbe.BrickColor = BrickColor.new("New Yeller")
  5258. orbe.Size = vt(1,1,1)
  5259. local orbmish2 = orbe.SizeMesh
  5260. orbmish2.Scale = vt(0,0,0)
  5261. orbmish2.MeshType = "Sphere"
  5262. orbe.Color = Color3.new(r/255,g/255,b/255)
  5263.  
  5264. rngb:Destroy()
  5265. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  5266. local scaled = 1
  5267. for i = 0,5,0.1 do
  5268. swait()
  5269. scaled = scaled - 0.02
  5270. if rainbowmode == true then
  5271. orbe.Color = Color3.new(r/255,g/255,b/255)
  5272. end
  5273. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  5274. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  5275. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5276. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5277. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  5278. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5279. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5280. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5281. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5282. 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(0)),.3)
  5283. 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(10),math.rad(0)),.3)
  5284. RootPart.CFrame = FaceMouse()[1]
  5285. end]]--
  5286. for i = 0,5,0.1 do
  5287. swait()
  5288. if rainbowmode == true then
  5289. orbe.Color = Color3.new(r/255,g/255,b/255)
  5290. end
  5291. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5292. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5293. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5294. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5295. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5296. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5297. 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(0)),.3)
  5298. 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(10),math.rad(0)),.3)
  5299. RootPart.CFrame = FaceMouse()[1]
  5300. end
  5301. orbe.Transparency = 1
  5302. orb.Transparency = 1
  5303. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5304. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5305. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5306. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5307.  
  5308. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5309. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  5310. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5311. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  5312. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  5313. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5314. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  5315. local xd= Instance.new("Sound",char)
  5316. xd.SoundId = "rbxassetid://445796828"
  5317. xd.Pitch = 0.75
  5318. xd.Looped = true
  5319. xd.Volume = 1.25
  5320. xd:Play()
  5321. local a = Instance.new("Part",Character)
  5322. a.Name = "Direction"
  5323. a.Anchored = true
  5324. a.BrickColor = bc("Alder")
  5325. a.Color = MAINRUINCOLOR.Color
  5326. a.Material = "Neon"
  5327. a.Transparency = 0.5
  5328. a.Shape = "Cylinder"
  5329. a.CanCollide = false
  5330. local a2 = Instance.new("Part",Character)
  5331. a2.Name = "Direction"
  5332. a2.Anchored = true
  5333. a2.BrickColor = bc("New Yeller")
  5334. a2.Color = MAINRUINCOLOR.Color
  5335. a2.Material = "Neon"
  5336. a2.Transparency = 0.5
  5337. a2.Shape = "Cylinder"
  5338. a2.CanCollide = false
  5339. local ba = Instance.new("Part",Character)
  5340. ba.Name = "HitDirect"
  5341. ba.Anchored = true
  5342. ba.BrickColor = bc("Cool yellow")
  5343. ba.Material = "Neon"
  5344. ba.Transparency = 1
  5345. ba.CanCollide = false
  5346. local ray = Ray.new(
  5347. orb.CFrame.p, -- origin
  5348. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5349. )
  5350. local ignore = Character
  5351. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5352. a.BottomSurface = 10
  5353. a.TopSurface = 10
  5354. a2.BottomSurface = 10
  5355. a2.TopSurface = 10
  5356. local distance = (orb.CFrame.p - position).magnitude
  5357. a.Size = Vector3.new(distance, 1, 1)
  5358. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5359. a2.Size = Vector3.new(distance, 1, 1)
  5360. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5361. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5362. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5363. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5364. game:GetService("Debris"):AddItem(a, 60)
  5365. game:GetService("Debris"):AddItem(a2, 60)
  5366. game:GetService("Debris"):AddItem(ba, 60)
  5367. local outerscale = 0
  5368. local msh = Instance.new("SpecialMesh",a)
  5369. msh.MeshType = "Cylinder"
  5370. msh.Scale = vt(1,0,0)
  5371. local msh2 = Instance.new("SpecialMesh",a2)
  5372. msh2.MeshType = "Cylinder"
  5373. msh2.Scale = vt(1,0,0)
  5374. for i = 0,2,0.1 do
  5375. swait()
  5376. CameraEnshaking(1,1)
  5377. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  5378. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  5379. outerscale = outerscale - 0.015
  5380. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5381. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5382. ray = Ray.new(
  5383. orb.CFrame.p, -- origin
  5384. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5385. )
  5386. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5387. distance = (orb.CFrame.p - position).magnitude
  5388. if typrot == 1 then
  5389. rotation = rotation + 2.5
  5390. elseif typrot == 2 then
  5391. rotation = rotation - 2.5
  5392. end
  5393. RootPart.CFrame = FaceMouse()[1]
  5394. a.Size = Vector3.new(distance, 1, 1)
  5395. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5396. a2.Size = Vector3.new(distance, 1, 1)
  5397. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5398. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5399. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5400. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5401. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5402. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5403. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5404. end
  5405. for z = 0, 2 do
  5406. for i = 0,4,0.1 do
  5407. swait()
  5408. CameraEnshaking(1,1)
  5409. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5410. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5411. outerscale = outerscale + 0.015
  5412. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5413. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5414. ray = Ray.new(
  5415. orb.CFrame.p, -- origin
  5416. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5417. )
  5418. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5419. distance = (orb.CFrame.p - position).magnitude
  5420. if typrot == 1 then
  5421. rotation = rotation + 2.5
  5422. elseif typrot == 2 then
  5423. rotation = rotation - 2.5
  5424. end
  5425. RootPart.CFrame = FaceMouse()[1]
  5426. a.Size = Vector3.new(distance, 1, 1)
  5427. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5428. a2.Size = Vector3.new(distance, 1, 1)
  5429. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5430. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5431. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5432. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5433. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5434. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5435. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5436. end
  5437. for i = 0,4,0.1 do
  5438. swait()
  5439. CameraEnshaking(1,1)
  5440. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5441. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5442. outerscale = outerscale - 0.015
  5443. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5444. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5445. ray = Ray.new(
  5446. orb.CFrame.p, -- origin
  5447. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5448. )
  5449. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5450. distance = (orb.CFrame.p - position).magnitude
  5451. if typrot == 1 then
  5452. rotation = rotation + 2.5
  5453. elseif typrot == 2 then
  5454. rotation = rotation - 2.5
  5455. end
  5456. RootPart.CFrame = FaceMouse()[1]
  5457. a.Size = Vector3.new(distance, 1, 1)
  5458. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5459. a2.Size = Vector3.new(distance, 1, 1)
  5460. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5461. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5462. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5463. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5464. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5465. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5466. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5467. end
  5468. end
  5469. for i = 0,4,0.1 do
  5470. swait()
  5471. CameraEnshaking(1,1)
  5472. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5473. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5474. xd.Volume = xd.Volume - 0.025
  5475. a.Transparency = a.Transparency + 0.025
  5476. a2.Transparency = a2.Transparency + 0.025
  5477. outerscale = outerscale - 0.015
  5478. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5479. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5480. ray = Ray.new(
  5481. orb.CFrame.p, -- origin
  5482. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5483. )
  5484. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5485. distance = (orb.CFrame.p - position).magnitude
  5486. if typrot == 1 then
  5487. rotation = rotation + 2.5
  5488. elseif typrot == 2 then
  5489. rotation = rotation - 2.5
  5490. end
  5491. RootPart.CFrame = FaceMouse()[1]
  5492. a.Size = Vector3.new(distance, 1, 1)
  5493. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5494. a2.Size = Vector3.new(distance, 1, 1)
  5495. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5496. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5497. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5498. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5499. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5500. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  5501. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5502. end
  5503. xd:Destroy()
  5504. a:Destroy()
  5505. a2:Destroy()
  5506. ba:Destroy()
  5507. orb:Destroy()
  5508. orbe:Destroy()
  5509. attack = false
  5510. end
  5511.  
  5512.  
  5513. function resetmode()
  5514. rainbowmode = false
  5515. chaosmode = false
  5516. tl1.Enabled = false
  5517. tl2.Enabled = false
  5518. tl3.Enabled = false
  5519. ModeOfGlitch = 1
  5520. storehumanoidWS = 16
  5521. coroutine.resume(coroutine.create(function()
  5522. attack = true
  5523. hum.WalkSpeed = 0
  5524. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  5525. for i = 0,4,0.1 do
  5526. swait()
  5527. 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)
  5528. 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)
  5529. 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)
  5530. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  5531. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  5532. RW.C0=Clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  5533. LW.C0=Clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  5534. end
  5535. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  5536. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  5537. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  5538. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  5539. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  5540. CameraEnshaking(5,2.5)
  5541. MAINRUINCOLOR = BrickColor.new("Really red")
  5542. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5543. for i = 0, 49 do
  5544. 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)
  5545. end
  5546. for i = 0,3,0.1 do
  5547. 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)
  5548. end
  5549. for i, v in pairs(mw2:GetChildren()) do
  5550. if v:IsA("Part") then
  5551. v.BrickColor = BrickColor.new("Really red")
  5552. v.Material = "Neon"
  5553. end
  5554. end
  5555. for i, v in pairs(mw1:GetChildren()) do
  5556. if v:IsA("Part") then
  5557. v.Transparency = 1
  5558. v.BrickColor = BrickColor.new("Really red")
  5559. v.Material = "Neon"
  5560. end
  5561. end
  5562. for i, v in pairs(m:GetChildren()) do
  5563. if v:IsA("Part") then
  5564. v.BrickColor = BrickColor.new("Really black")
  5565. v.Material = "Glass"
  5566. end
  5567. end
  5568. for i, v in pairs(m2:GetChildren()) do
  5569. if v:IsA("Part") then
  5570. v.BrickColor = BrickColor.new("Crimson")
  5571. v.Material = "Granite"
  5572. end
  5573. end
  5574. for i, v in pairs(m3:GetChildren()) do
  5575. if v:IsA("Part") then
  5576. v.BrickColor = BrickColor.new("Really red")
  5577. v.Material = "Neon"
  5578. end
  5579. end
  5580. for i, v in pairs(extrawingmod1:GetChildren()) do
  5581. if v:IsA("Part") then
  5582. v.Transparency = 1
  5583. v.BrickColor = BrickColor.new("White")
  5584. v.Material = "Neon"
  5585. end
  5586. end
  5587. for i, v in pairs(extrawingmod2:GetChildren()) do
  5588. if v:IsA("Part") then
  5589. v.Transparency = 1
  5590. v.BrickColor = BrickColor.new("White")
  5591. v.Material = "Neon"
  5592. end
  5593. end
  5594. for i = 0,2,0.1 do
  5595. swait()
  5596. 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)
  5597. 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)
  5598. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5599. 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)
  5600. 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)
  5601. 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)
  5602. end
  5603. hum.WalkSpeed = storehumanoidWS
  5604. attack = false
  5605. end))
  5606. newTheme("rbxassetid://614032233",48.6,1,0.3)
  5607. end
  5608.  
  5609. function attackone()
  5610. attack = true
  5611. for i = 0,1,0.1 do
  5612. swait()
  5613. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  5614. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  5615. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5616. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5617. RH.C0=Clerp(RH.C0,cf(1,-1 - 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)),.2)
  5618. 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(10)),.2)
  5619. end
  5620. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  5621.  
  5622. local hitb = Instance.new("Part", char)
  5623. hitb.Anchored = true
  5624. hitb.CanCollide = false
  5625. hitb.FormFactor = 3
  5626. hitb.Name = "Ring"
  5627. hitb.Material = "Neon"
  5628. hitb.Size = Vector3.new(1, 1, 1)
  5629. hitb.Transparency = 1
  5630. hitb.TopSurface = 0
  5631. hitb.BottomSurface = 0
  5632. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5633. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5634. hitb:Destroy()
  5635. for i = 0,1,0.1 do
  5636. swait()
  5637. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5638. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5639. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5640. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5641. RH.C0=Clerp(RH.C0,cf(1,-1 - 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(-40)),.4)
  5642. 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(-10)),.4)
  5643. end
  5644.  
  5645. attack = false
  5646. end
  5647.  
  5648. function attacktwo()
  5649. attack = true
  5650. for i = 0,1,0.1 do
  5651. swait()
  5652. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5653. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5654. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5655. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5656. RH.C0=Clerp(RH.C0,cf(1,-1 - 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)),.2)
  5657. 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(10)),.2)
  5658. end
  5659. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5660. local hitb = Instance.new("Part", char)
  5661. hitb.Anchored = true
  5662. hitb.CanCollide = false
  5663. hitb.FormFactor = 3
  5664. hitb.Name = "Ring"
  5665. hitb.Material = "Neon"
  5666. hitb.Size = Vector3.new(1, 1, 1)
  5667. hitb.Transparency = 1
  5668. hitb.TopSurface = 0
  5669. hitb.BottomSurface = 0
  5670. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5671. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5672. hitb:Destroy()
  5673. for i = 0,1,0.1 do
  5674. swait()
  5675. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5676. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5677. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5678. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5679. 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(-5),math.rad(0),math.rad(-40)),.4)
  5680. 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(-10)),.4)
  5681. end
  5682. attack = false
  5683. end
  5684.  
  5685. function attackthree()
  5686. attack = true
  5687. for i = 0,1,0.1 do
  5688. swait()
  5689. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5690. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5691. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5692. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5693. 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(0)),.3)
  5694. 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(10),math.rad(0)),.3)
  5695. end
  5696. local distlook = 5
  5697. for i = 0, 4 do
  5698. swait(2)
  5699. CameraEnshaking(2,3)
  5700. local hite = Instance.new("Part", char)
  5701. hite.Anchored = true
  5702. hite.CanCollide = false
  5703. hite.FormFactor = 3
  5704. hite.Name = "Ring"
  5705. hite.Material = "Neon"
  5706. hite.Size = Vector3.new(1, 1, 1)
  5707. hite.Transparency = 1
  5708. hite.TopSurface = 0
  5709. hite.BottomSurface = 0
  5710. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5711. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5712. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5713. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5714. for i = 0, 2 do
  5715. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5716. sphereMK(3,0.2,"Add",hite.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,MAINRUINCOLOR,0)
  5717. sphereMK(6,0.35,"Add",hite.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,MAINRUINCOLOR,0)
  5718. end
  5719. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5720. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5721. game:GetService("Debris"):AddItem(hite, 5)
  5722. distlook = distlook + 10
  5723. end
  5724. attack = false
  5725. end
  5726.  
  5727. local ActiveGia = false
  5728. function THEHELLITSTHATBIG()
  5729. ActiveGia = true
  5730. attack = true
  5731. hum.WalkSpeed = 0
  5732. for i = 0,2,0.1 do
  5733. swait()
  5734. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5735. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5736. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5737. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5738. 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(-20)),.2)
  5739. 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(10),math.rad(20)),.2)
  5740. end
  5741. for i = 0,1,0.1 do
  5742. torsweld.C1=Clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5743. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5744. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5745. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5746. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5747. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5748. end
  5749. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5750. secrleg.Transparency = 0.5
  5751. seclleg.Transparency = 0.5
  5752. secrarm.Transparency = 0.5
  5753. seclarm.Transparency = 0.5
  5754. seched.Transparency = 0.5
  5755. sectors.Transparency = 0.5
  5756. for i = 0,25,0.1 do
  5757. swait()
  5758. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5759. torsweld.C1=Clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5760. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5761. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5762. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5763. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5764. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5765. end
  5766. --[[secrleg.Transparency = 1
  5767. seclleg.Transparency = 1
  5768. secrarm.Transparency = 1
  5769. seclarm.Transparency = 1
  5770. seched.Transparency = 1
  5771. sectors.Transparency = 1]]--
  5772. torsweld.Part0 = root
  5773. hum.WalkSpeed = storehumanoidWS
  5774. attack = false
  5775. end
  5776.  
  5777. function removelol()
  5778. ActiveGia = false
  5779. attack = true
  5780. hum.WalkSpeed = 0
  5781. for i = 0,2,0.1 do
  5782. swait()
  5783. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5784. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5785. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5786. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5787. 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(-20)),.2)
  5788. 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(10),math.rad(20)),.2)
  5789. end
  5790. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5791. for i = 0,25,0.1 do
  5792. swait()
  5793. secrleg.Transparency = secrleg.Transparency + 0.00225
  5794. seclleg.Transparency = secrleg.Transparency
  5795. secrarm.Transparency = secrleg.Transparency
  5796. seclarm.Transparency = secrleg.Transparency
  5797. seched.Transparency = secrleg.Transparency
  5798. sectors.Transparency = secrleg.Transparency
  5799. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5800. torsweld.C1=Clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5801. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5802. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5803. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5804. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5805. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5806. end
  5807. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5808. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5809. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5810. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5811. secrleg.Transparency = 1
  5812. seclleg.Transparency = 1
  5813. secrarm.Transparency = 1
  5814. seclarm.Transparency = 1
  5815. seched.Transparency = 1
  5816. sectors.Transparency = 1
  5817. torsweld.Part0 = root
  5818. hum.WalkSpeed = storehumanoidWS
  5819. attack = false
  5820. end
  5821.  
  5822. function FinalCalamity()
  5823. end
  5824.  
  5825. local attacktype = 1
  5826. mouse.Button1Down:connect(function()
  5827. if attack == false and attacktype == 1 then
  5828. attacktype = 2
  5829. attackone()
  5830. elseif attack == false and attacktype == 2 then
  5831. attacktype = 3
  5832. attacktwo()
  5833. elseif attack == false and attacktype == 3 then
  5834. attacktype = 1
  5835. attackthree()
  5836. elseif attack == false and attacktype == 4 then
  5837. attacktype = 1
  5838. --attackfour()
  5839. end
  5840. end)
  5841. mouse.KeyDown:connect(function(k)
  5842. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5843. ModeOfGlitch = 2
  5844. storehumanoidWS = 16
  5845. hum.WalkSpeed = 16
  5846. rainbowmode = false
  5847. chaosmode = false
  5848. tl1.Enabled = false
  5849. tl2.Enabled = false
  5850. tl3.Enabled = false
  5851. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5852. newTheme("rbxassetid://1539245059",0,1,0.3)
  5853. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5854. for i, v in pairs(mw2:GetChildren()) do
  5855. if v:IsA("Part") then
  5856. v.BrickColor = MAINRUINCOLOR
  5857. v.Material = "Neon"
  5858. end
  5859. end
  5860. for i, v in pairs(mw1:GetChildren()) do
  5861. if v:IsA("Part") then
  5862. v.Transparency = 1
  5863. v.BrickColor = MAINRUINCOLOR
  5864. v.Material = "Neon"
  5865. end
  5866. end
  5867. for i, v in pairs(m:GetChildren()) do
  5868. if v:IsA("Part") then
  5869. v.BrickColor = BrickColor.new("White")
  5870. v.Material = "Ice"
  5871. end
  5872. end
  5873. for i, v in pairs(m2:GetChildren()) do
  5874. if v:IsA("Part") then
  5875. v.BrickColor = BrickColor.new("Pastel light blue")
  5876. v.Material = "Glass"
  5877. end
  5878. end
  5879. for i, v in pairs(m3:GetChildren()) do
  5880. if v:IsA("Part") then
  5881. v.BrickColor = BrickColor.new("Toothpaste")
  5882. v.Material = "Neon"
  5883. end
  5884. end
  5885. for i, v in pairs(extrawingmod1:GetChildren()) do
  5886. if v:IsA("Part") then
  5887. v.Transparency = 1
  5888. v.BrickColor = BrickColor.new("White")
  5889. v.Material = "Neon"
  5890. end
  5891. end
  5892. for i, v in pairs(extrawingmod2:GetChildren()) do
  5893. if v:IsA("Part") then
  5894. v.Transparency = 1
  5895. v.BrickColor = BrickColor.new("White")
  5896. v.Material = "Neon"
  5897. end
  5898. end
  5899. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5900. resetmode()
  5901. end
  5902. if k == "b" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 777 then
  5903. newThemeCust("rbxassetid://544291208",0,1,1)
  5904. attack = true
  5905. hum.WalkSpeed = 0
  5906. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5907. for i = 0, 24, 0.1 do
  5908. swait()
  5909. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  5910. 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)
  5911. 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)
  5912. 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)
  5913. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5914. 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)
  5915. 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)
  5916. end
  5917. CameraEnshaking(1,1)
  5918. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5919. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5920. wait(0.55)
  5921. CameraEnshaking(1,2)
  5922. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5923. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5924. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5925. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5926. wait(0.55)
  5927. CameraEnshaking(1,3)
  5928. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5929. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5930. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5931. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5932. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5933. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5934. wait(0.55)
  5935. CameraEnshaking(10,5)
  5936. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5937. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5938. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5939. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5940. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5941. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5942. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5943. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5944. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5945. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5946. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5947. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5948. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5949. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5950. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5951. for i = 0, 49 do
  5952. 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)
  5953. 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)
  5954. 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)
  5955. 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)
  5956. end
  5957. ModeOfGlitch = 777
  5958. storehumanoidWS = 16
  5959. hum.WalkSpeed = 16
  5960. rainbowmode = false
  5961. chaosmode = false
  5962. tl1.Enabled = true
  5963. tl2.Enabled = true
  5964. tl3.Enabled = true
  5965. RecolorTextAndRename("Divine Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5966. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5967. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5968. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5969. for i, v in pairs(mw2:GetChildren()) do
  5970. if v:IsA("Part") then
  5971. v.BrickColor = MAINRUINCOLOR
  5972. v.Material = "Neon"
  5973. end
  5974. end
  5975. for i, v in pairs(mw1:GetChildren()) do
  5976. if v:IsA("Part") then
  5977. v.Transparency = 0
  5978. v.BrickColor = MAINRUINCOLOR
  5979. v.Material = "Neon"
  5980. end
  5981. end
  5982. for i, v in pairs(m:GetChildren()) do
  5983. if v:IsA("Part") then
  5984. v.BrickColor = MAINRUINCOLOR
  5985. v.Material = "Neon"
  5986. end
  5987. end
  5988. for i, v in pairs(m2:GetChildren()) do
  5989. if v:IsA("Part") then
  5990. v.BrickColor = MAINRUINCOLOR
  5991. v.Material = "Neon"
  5992. end
  5993. end
  5994. for i, v in pairs(m3:GetChildren()) do
  5995. if v:IsA("Part") then
  5996. v.BrickColor = MAINRUINCOLOR
  5997. v.Material = "Neon"
  5998. end
  5999. end
  6000. for i, v in pairs(extrawingmod1:GetChildren()) do
  6001. if v:IsA("Part") then
  6002. v.Transparency = 0
  6003. v.BrickColor = MAINRUINCOLOR
  6004. v.Material = "Neon"
  6005. end
  6006. end
  6007. for i, v in pairs(extrawingmod2:GetChildren()) do
  6008. if v:IsA("Part") then
  6009. v.Transparency = 0
  6010. v.BrickColor = MAINRUINCOLOR
  6011. v.Material = "Neon"
  6012. end
  6013. attack = false
  6014. end
  6015. elseif k == "b" and attack == false and ModeOfGlitch == 777 then
  6016. resetmode()
  6017. end
  6018. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  6019. ModeOfGlitch = 3
  6020. storehumanoidWS = 16
  6021. hum.WalkSpeed = 250
  6022. rainbowmode = false
  6023. chaosmode = false
  6024. tl1.Enabled = false
  6025. tl2.Enabled = false
  6026. tl3.Enabled = false
  6027. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  6028. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6029. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6030. for i, v in pairs(mw2:GetChildren()) do
  6031. if v:IsA("Part") then
  6032. v.BrickColor = MAINRUINCOLOR
  6033. v.Material = "Neon"
  6034. end
  6035. end
  6036. for i, v in pairs(mw1:GetChildren()) do
  6037. if v:IsA("Part") then
  6038. v.Transparency = 1
  6039. v.BrickColor = MAINRUINCOLOR
  6040. v.Material = "Neon"
  6041. end
  6042. end
  6043. for i, v in pairs(m:GetChildren()) do
  6044. if v:IsA("Part") then
  6045. v.BrickColor = BrickColor.new("Black")
  6046. v.Material = "Ice"
  6047. end
  6048. end
  6049. for i, v in pairs(m2:GetChildren()) do
  6050. if v:IsA("Part") then
  6051. v.BrickColor = BrickColor.new("Dark indigo")
  6052. v.Material = "Glass"
  6053. end
  6054. end
  6055. for i, v in pairs(m3:GetChildren()) do
  6056. if v:IsA("Part") then
  6057. v.BrickColor = BrickColor.new("Royal purple")
  6058. v.Material = "Neon"
  6059. end
  6060. end
  6061. for i, v in pairs(extrawingmod1:GetChildren()) do
  6062. if v:IsA("Part") then
  6063. v.Transparency = 1
  6064. v.BrickColor = BrickColor.new("White")
  6065. v.Material = "Neon"
  6066. end
  6067. end
  6068. for i, v in pairs(extrawingmod2:GetChildren()) do
  6069. if v:IsA("Part") then
  6070. v.Transparency = 1
  6071. v.BrickColor = BrickColor.new("White")
  6072. v.Material = "Neon"
  6073. end
  6074. end
  6075. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  6076. resetmode()
  6077. end
  6078. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  6079. ModeOfGlitch = 4
  6080. storehumanoidWS = 16
  6081. hum.WalkSpeed = 16
  6082. rainbowmode = false
  6083. chaosmode = true
  6084. tl1.Enabled = true
  6085. tl2.Enabled = true
  6086. tl3.Enabled = true
  6087. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  6088. newTheme("rbxassetid://1369263130",0,1,1)MAINRUINCOLOR = BrickColor.new("Black")
  6089. for i, v in pairs(mw2:GetChildren()) do
  6090. if v:IsA("Part") then
  6091. v.BrickColor = MAINRUINCOLOR
  6092. v.Material = "Neon"
  6093. end
  6094. end
  6095. for i, v in pairs(mw1:GetChildren()) do
  6096. if v:IsA("Part") then
  6097. v.Transparency = 0.75
  6098. v.BrickColor = BrickColor.random()
  6099. v.Material = "Neon"
  6100. end
  6101. end
  6102. for i, v in pairs(m:GetChildren()) do
  6103. if v:IsA("Part") then
  6104. v.BrickColor = BrickColor.new("Black")
  6105. v.Material = "Neon"
  6106. end
  6107. end
  6108. for i, v in pairs(m2:GetChildren()) do
  6109. if v:IsA("Part") then
  6110. v.BrickColor = BrickColor.random()
  6111. v.Material = "Neon"
  6112. end
  6113. end
  6114. for i, v in pairs(m3:GetChildren()) do
  6115. if v:IsA("Part") then
  6116. v.BrickColor = BrickColor.new("Black")
  6117. v.Material = "Neon"
  6118. end
  6119. end
  6120. for i, v in pairs(extrawingmod1:GetChildren()) do
  6121. if v:IsA("Part") then
  6122. v.Transparency = 0
  6123. v.BrickColor = BrickColor.new("Really black")
  6124. v.Material = "Neon"
  6125. end
  6126. end
  6127. for i, v in pairs(extrawingmod2:GetChildren()) do
  6128. if v:IsA("Part") then
  6129. v.Transparency = 1
  6130. v.BrickColor = BrickColor.new("White")
  6131. v.Material = "Neon"
  6132. end
  6133. end
  6134. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  6135. resetmode()
  6136. end
  6137. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  6138. ModeOfGlitch = 5
  6139. storehumanoidWS = 16
  6140. hum.WalkSpeed = 16
  6141. rainbowmode = false
  6142. chaosmode = false
  6143. tl1.Enabled = true
  6144. tl2.Enabled = true
  6145. tl3.Enabled = true
  6146. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  6147. newTheme("rbxassetid://661079869",0,1.02,1)
  6148. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6149. for i, v in pairs(mw2:GetChildren()) do
  6150. if v:IsA("Part") then
  6151. v.BrickColor = MAINRUINCOLOR
  6152. v.Material = "Neon"
  6153. end
  6154. end
  6155. for i, v in pairs(mw1:GetChildren()) do
  6156. if v:IsA("Part") then
  6157. v.Transparency = 0
  6158. v.BrickColor = MAINRUINCOLOR
  6159. v.Material = "Neon"
  6160. end
  6161. end
  6162. for i, v in pairs(m:GetChildren()) do
  6163. if v:IsA("Part") then
  6164. v.BrickColor = BrickColor.new("Cool yellow")
  6165. v.Material = "Ice"
  6166. end
  6167. end
  6168. for i, v in pairs(m2:GetChildren()) do
  6169. if v:IsA("Part") then
  6170. v.BrickColor = BrickColor.new("Bright yellow")
  6171. v.Material = "Ice"
  6172. end
  6173. end
  6174. for i, v in pairs(m3:GetChildren()) do
  6175. if v:IsA("Part") then
  6176. v.BrickColor = BrickColor.new("Bright yellow")
  6177. v.Material = "Neon"
  6178. end
  6179. end
  6180. for i, v in pairs(extrawingmod1:GetChildren()) do
  6181. if v:IsA("Part") then
  6182. v.Transparency = 1
  6183. v.BrickColor = BrickColor.new("White")
  6184. v.Material = "Neon"
  6185. end
  6186. end
  6187. for i, v in pairs(extrawingmod2:GetChildren()) do
  6188. if v:IsA("Part") then
  6189. v.Transparency = 1
  6190. v.BrickColor = BrickColor.new("White")
  6191. v.Material = "Neon"
  6192. end
  6193. end
  6194. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  6195. resetmode()
  6196. end
  6197. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  6198. ModeOfGlitch = 6
  6199. storehumanoidWS = 75
  6200. hum.WalkSpeed = 75
  6201. rainbowmode = false
  6202. chaosmode = false
  6203. tl1.Enabled = true
  6204. tl2.Enabled = true
  6205. tl3.Enabled = true
  6206. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  6207. newTheme("rbxassetid://395351949",0,1,1)
  6208. MAINRUINCOLOR = BrickColor.new("White")
  6209. for i, v in pairs(mw2:GetChildren()) do
  6210. if v:IsA("Part") then
  6211. v.BrickColor = MAINRUINCOLOR
  6212. v.Material = "Neon"
  6213. end
  6214. end
  6215. for i, v in pairs(mw1:GetChildren()) do
  6216. if v:IsA("Part") then
  6217. v.Transparency = 0
  6218. v.BrickColor = MAINRUINCOLOR
  6219. v.Material = "Neon"
  6220. end
  6221. end
  6222. for i, v in pairs(m:GetChildren()) do
  6223. if v:IsA("Part") then
  6224. v.BrickColor = BrickColor.new("White")
  6225. v.Material = "Ice"
  6226. end
  6227. end
  6228. for i, v in pairs(m2:GetChildren()) do
  6229. if v:IsA("Part") then
  6230. v.BrickColor = BrickColor.new("Really black")
  6231. v.Material = "Ice"
  6232. end
  6233. end
  6234. for i, v in pairs(m3:GetChildren()) do
  6235. if v:IsA("Part") then
  6236. v.BrickColor = BrickColor.new("White")
  6237. v.Material = "Neon"
  6238. end
  6239. end
  6240. for i, v in pairs(extrawingmod1:GetChildren()) do
  6241. if v:IsA("Part") then
  6242. v.Transparency = 1
  6243. v.BrickColor = BrickColor.new("White")
  6244. v.Material = "Neon"
  6245. end
  6246. end
  6247. for i, v in pairs(extrawingmod2:GetChildren()) do
  6248. if v:IsA("Part") then
  6249. v.Transparency = 1
  6250. v.BrickColor = BrickColor.new("White")
  6251. v.Material = "Neon"
  6252. end
  6253. end
  6254. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  6255. resetmode()
  6256. end
  6257. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  6258. ModeOfGlitch = 6127843
  6259. storehumanoidWS = 50
  6260. hum.WalkSpeed = 50
  6261. rainbowmode = true
  6262. chaosmode = false
  6263. tl1.Enabled = true
  6264. tl2.Enabled = true
  6265. tl3.Enabled = true
  6266. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/255,g/255,b/255))
  6267. newTheme("rbxassetid://147930134",0,1,1)
  6268. MAINRUINCOLOR = BrickColor.new("White")
  6269. for i, v in pairs(mw2:GetChildren()) do
  6270. if v:IsA("Part") then
  6271. v.BrickColor = MAINRUINCOLOR
  6272. v.Material = "Neon"
  6273. end
  6274. end
  6275. for i, v in pairs(mw1:GetChildren()) do
  6276. if v:IsA("Part") then
  6277. v.Transparency = 0
  6278. v.BrickColor = MAINRUINCOLOR
  6279. v.Material = "Neon"
  6280. end
  6281. end
  6282. for i, v in pairs(m:GetChildren()) do
  6283. if v:IsA("Part") then
  6284. v.BrickColor = BrickColor.new("White")
  6285. v.Material = "Neon"
  6286. end
  6287. end
  6288. for i, v in pairs(m2:GetChildren()) do
  6289. if v:IsA("Part") then
  6290. v.BrickColor = BrickColor.new("White")
  6291. v.Material = "Neon"
  6292. end
  6293. end
  6294. for i, v in pairs(m3:GetChildren()) do
  6295. if v:IsA("Part") then
  6296. v.BrickColor = BrickColor.new("White")
  6297. v.Material = "Neon"
  6298. end
  6299. end
  6300. for i, v in pairs(extrawingmod1:GetChildren()) do
  6301. if v:IsA("Part") then
  6302. v.Transparency = 1
  6303. v.BrickColor = BrickColor.new("White")
  6304. v.Material = "Neon"
  6305. end
  6306. end
  6307. for i, v in pairs(extrawingmod2:GetChildren()) do
  6308. if v:IsA("Part") then
  6309. v.Transparency = 0
  6310. v.BrickColor = BrickColor.new("White")
  6311. v.Material = "Neon"
  6312. end
  6313. end
  6314. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  6315. resetmode()
  6316. end
  6317. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  6318. ModeOfGlitch = 1000000
  6319. storehumanoidWS = 100
  6320. hum.WalkSpeed = 100
  6321. rainbowmode = false
  6322. chaosmode = false
  6323. tl1.Enabled = true
  6324. tl2.Enabled = true
  6325. tl3.Enabled = true
  6326. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  6327. newTheme("rbxassetid://1359036559",0,1,1)
  6328. MAINRUINCOLOR = BrickColor.new("Bright violet")
  6329. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6330. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6331. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6332. for i, v in pairs(mw2:GetChildren()) do
  6333. if v:IsA("Part") then
  6334. v.BrickColor = MAINRUINCOLOR
  6335. v.Material = "Neon"
  6336. end
  6337. end
  6338. for i, v in pairs(mw1:GetChildren()) do
  6339. if v:IsA("Part") then
  6340. v.Transparency = 0
  6341. v.BrickColor = MAINRUINCOLOR
  6342. v.Material = "Neon"
  6343. end
  6344. end
  6345. for i, v in pairs(m:GetChildren()) do
  6346. if v:IsA("Part") then
  6347. v.Color = Color3.new(0.5,0,1)
  6348. v.Material = "Neon"
  6349. end
  6350. end
  6351. for i, v in pairs(m2:GetChildren()) do
  6352. if v:IsA("Part") then
  6353. v.Color = Color3.new(0.25,0,1)
  6354. v.Material = "Neon"
  6355. end
  6356. end
  6357. for i, v in pairs(m3:GetChildren()) do
  6358. if v:IsA("Part") then
  6359. v.Color = Color3.new(0.45,0,1)
  6360. v.Material = "Neon"
  6361. end
  6362. end
  6363. for i, v in pairs(extrawingmod1:GetChildren()) do
  6364. if v:IsA("Part") then
  6365. v.Transparency = 0.75
  6366. v.Color = Color3.new(0.25,0,1)
  6367. v.Material = "Neon"
  6368. end
  6369. end
  6370. for i, v in pairs(extrawingmod2:GetChildren()) do
  6371. if v:IsA("Part") then
  6372. v.Transparency = 0.75
  6373. v.Color = Color3.new(0.5,0,1)
  6374. v.Material = "Neon"
  6375. end
  6376. end
  6377. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  6378. resetmode()
  6379. end
  6380. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  6381. newThemeCust("rbxassetid://1504604335",0,1,1)
  6382. attack = true
  6383. hum.WalkSpeed = 0
  6384. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6385. for i = 0, 24, 0.1 do
  6386. swait()
  6387. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  6388. 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)
  6389. 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)
  6390. 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)
  6391. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6392. 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)
  6393. 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)
  6394. end
  6395. CameraEnshaking(1,1)
  6396. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6397. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6398. wait(0.55)
  6399. CameraEnshaking(1,2)
  6400. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6401. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6402. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6403. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6404. wait(0.55)
  6405. CameraEnshaking(1,3)
  6406. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6407. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6408. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6409. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6410. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6411. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6412. wait(0.55)
  6413. CameraEnshaking(10,5)
  6414. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6415. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6416. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6417. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6418. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6419. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6420. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6421. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6422. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6423. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6424. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6425. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6426. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6427. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6428. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6429. for i = 0, 49 do
  6430. 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)
  6431. 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)
  6432. 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)
  6433. 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)
  6434. end
  6435. ModeOfGlitch = 12345678987654321
  6436. storehumanoidWS = 200
  6437. hum.WalkSpeed = 200
  6438. rainbowmode = false
  6439. chaosmode = false
  6440. tl1.Enabled = true
  6441. tl2.Enabled = true
  6442. tl3.Enabled = true
  6443. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  6444. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6445. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6446. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6447. for i, v in pairs(mw2:GetChildren()) do
  6448. if v:IsA("Part") then
  6449. v.BrickColor = MAINRUINCOLOR
  6450. v.Material = "Neon"
  6451. end
  6452. end
  6453. for i, v in pairs(mw1:GetChildren()) do
  6454. if v:IsA("Part") then
  6455. v.Transparency = 0
  6456. v.BrickColor = MAINRUINCOLOR
  6457. v.Material = "Neon"
  6458. end
  6459. end
  6460. for i, v in pairs(m:GetChildren()) do
  6461. if v:IsA("Part") then
  6462. v.Color = Color3.new(0.5,0,1)
  6463. v.Material = "Neon"
  6464. end
  6465. end
  6466. for i, v in pairs(m2:GetChildren()) do
  6467. if v:IsA("Part") then
  6468. v.Color = Color3.new(0.5,0,1)
  6469. v.Material = "Neon"
  6470. end
  6471. end
  6472. for i, v in pairs(m3:GetChildren()) do
  6473. if v:IsA("Part") then
  6474. v.Color = Color3.new(0.5,0,1)
  6475. v.Material = "Neon"
  6476. end
  6477. end
  6478. for i, v in pairs(extrawingmod1:GetChildren()) do
  6479. if v:IsA("Part") then
  6480. v.Transparency = 0
  6481. v.Color = Color3.new(0.5,0,1)
  6482. v.Material = "Neon"
  6483. end
  6484. end
  6485. for i, v in pairs(extrawingmod2:GetChildren()) do
  6486. if v:IsA("Part") then
  6487. v.Transparency = 0
  6488. v.Color = Color3.new(0.5,0,1)
  6489. v.Material = "Neon"
  6490. end
  6491. attack = false
  6492. end
  6493. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  6494. resetmode()
  6495. end
  6496. if k == "b" and attack == false and ModeOfGlitch == 12345678987654321 and ModeOfGlitch ~= 12345678987654322 then
  6497. newThemeCust("rbxassetid://247971190",0,1,1)
  6498. attack = true
  6499. hum.WalkSpeed = 0
  6500. MAINRUINCOLOR = BrickColor.new("Alder")
  6501. for i = 0, 24, 0.1 do
  6502. swait()
  6503. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  6504. 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)
  6505. 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)
  6506. 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)
  6507. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6508. 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)
  6509. 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)
  6510. end
  6511. CameraEnshaking(1,1)
  6512. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6513. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6514. wait(0.55)
  6515. CameraEnshaking(1,2)
  6516. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6517. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6518. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6519. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6520. wait(0.55)
  6521. CameraEnshaking(1,3)
  6522. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6523. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6524. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6525. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6526. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6527. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6528. wait(0.55)
  6529. CameraEnshaking(10,5)
  6530. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6531. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6532. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6533. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6534. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6535. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6536. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6537. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6538. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6539. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6540. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6541. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6542. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6543. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6544. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6545. for i = 0, 49 do
  6546. 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)
  6547. 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)
  6548. 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)
  6549. 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)
  6550. end
  6551. ModeOfGlitch = 12345678987654322
  6552. storehumanoidWS = 16
  6553. hum.WalkSpeed = 16
  6554. rainbowmode = false
  6555. chaosmode = false
  6556. tl1.Enabled = true
  6557. tl2.Enabled = true
  6558. tl3.Enabled = true
  6559. RecolorTextAndRename("Divine Universe",Color3.new(1,0,1),Color3.new(0.75,0,0.75))
  6560. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6561. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6562. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6563. for i, v in pairs(mw2:GetChildren()) do
  6564. if v:IsA("Part") then
  6565. v.BrickColor = MAINRUINCOLOR
  6566. v.Material = "Neon"
  6567. end
  6568. end
  6569. for i, v in pairs(mw1:GetChildren()) do
  6570. if v:IsA("Part") then
  6571. v.Transparency = 0
  6572. v.BrickColor = MAINRUINCOLOR
  6573. v.Material = "Neon"
  6574. end
  6575. end
  6576. for i, v in pairs(m:GetChildren()) do
  6577. if v:IsA("Part") then
  6578. v.BrickColor = MAINRUINCOLOR
  6579. v.Material = "Neon"
  6580. end
  6581. end
  6582. for i, v in pairs(m2:GetChildren()) do
  6583. if v:IsA("Part") then
  6584. v.BrickColor = MAINRUINCOLOR
  6585. v.Material = "Neon"
  6586. end
  6587. end
  6588. for i, v in pairs(m3:GetChildren()) do
  6589. if v:IsA("Part") then
  6590. v.BrickColor = MAINRUINCOLOR
  6591. v.Material = "Neon"
  6592. end
  6593. end
  6594. for i, v in pairs(extrawingmod1:GetChildren()) do
  6595. if v:IsA("Part") then
  6596. v.Transparency = 0
  6597. v.BrickColor = MAINRUINCOLOR
  6598. v.Material = "Neon"
  6599. end
  6600. end
  6601. for i, v in pairs(extrawingmod2:GetChildren()) do
  6602. if v:IsA("Part") then
  6603. v.Transparency = 0
  6604. v.BrickColor = MAINRUINCOLOR
  6605. v.Material = "Neon"
  6606. end
  6607. attack = false
  6608. end
  6609. elseif k == "b" and attack == false and ModeOfGlitch == 12345678987654322 then
  6610. resetmode()
  6611. end
  6612. if k == "f" and attack == false and ModeOfGlitch == 12345678987654322 and ModeOfGlitch ~= 535 then
  6613. newThemeCust("rbxassetid://561833161",0,1,1)
  6614. attack = true
  6615. hum.WalkSpeed = 0
  6616. MAINRUINCOLOR = BrickColor.new("White")
  6617. for i = 0, 24, 0.1 do
  6618. swait()
  6619. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  6620. 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)
  6621. 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)
  6622. 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)
  6623. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6624. 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)
  6625. 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)
  6626. end
  6627. CameraEnshaking(1,1)
  6628. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6629. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6630. wait(0.55)
  6631. CameraEnshaking(1,2)
  6632. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6633. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6634. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6635. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6636. wait(0.55)
  6637. CameraEnshaking(1,3)
  6638. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6639. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6640. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6641. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6642. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6643. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6644. wait(0.55)
  6645. CameraEnshaking(10,5)
  6646. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6647. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6648. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6649. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6650. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6651. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6652. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6653. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6654. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6655. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6656. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6657. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6658. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6659. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6660. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6661. for i = 0, 49 do
  6662. 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)
  6663. 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)
  6664. 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)
  6665. 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)
  6666. end
  6667. ModeOfGlitch = 535
  6668. storehumanoidWS = 16
  6669. hum.WalkSpeed = 16
  6670. rainbowmode = true
  6671. chaosmode = true
  6672. tl1.Enabled = true
  6673. tl2.Enabled = true
  6674. tl3.Enabled = true
  6675. RecolorTextAndRename("Rainbow Chaos",Color3.new(1,0,1),Color3.new(0.75,0,0.75))
  6676. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6677. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6678. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6679. for i, v in pairs(mw2:GetChildren()) do
  6680. if v:IsA("Part") then
  6681. v.BrickColor = MAINRUINCOLOR
  6682. v.Material = "Neon"
  6683. end
  6684. end
  6685. for i, v in pairs(mw1:GetChildren()) do
  6686. if v:IsA("Part") then
  6687. v.Transparency = 0
  6688. v.BrickColor = MAINRUINCOLOR
  6689. v.Material = "Neon"
  6690. end
  6691. end
  6692. for i, v in pairs(m:GetChildren()) do
  6693. if v:IsA("Part") then
  6694. v.BrickColor = MAINRUINCOLOR
  6695. v.Material = "Neon"
  6696. end
  6697. end
  6698. for i, v in pairs(m2:GetChildren()) do
  6699. if v:IsA("Part") then
  6700. v.BrickColor = MAINRUINCOLOR
  6701. v.Material = "Neon"
  6702. end
  6703. end
  6704. for i, v in pairs(m3:GetChildren()) do
  6705. if v:IsA("Part") then
  6706. v.BrickColor = BrickColor.random()
  6707. v.Material = "Neon"
  6708. end
  6709. end
  6710. for i, v in pairs(extrawingmod1:GetChildren()) do
  6711. if v:IsA("Part") then
  6712. v.Transparency = 0
  6713. v.BrickColor = MAINRUINCOLOR
  6714. v.Material = "Neon"
  6715. end
  6716. end
  6717. for i, v in pairs(extrawingmod2:GetChildren()) do
  6718. if v:IsA("Part") then
  6719. v.Transparency = 0
  6720. v.Color = BrickColor.random().Color
  6721. v.Material = "Neon"
  6722. end
  6723. attack = false
  6724. end
  6725. elseif k == "f" and attack == false and ModeOfGlitch == 535 then
  6726. resetmode()
  6727. end
  6728. if k == "f" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 727 then
  6729. newThemeCust("rbxassetid://557894001",0,1,1)
  6730. attack = true
  6731. hum.WalkSpeed = 0
  6732. MAINRUINCOLOR = BrickColor.new("Really black")
  6733. for i = 0, 24, 0.1 do
  6734. swait()
  6735. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  6736. 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)
  6737. 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)
  6738. 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)
  6739. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6740. 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)
  6741. 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)
  6742. end
  6743. CameraEnshaking(1,1)
  6744. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6745. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6746. wait(0.55)
  6747. CameraEnshaking(1,2)
  6748. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6749. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6750. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6751. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6752. wait(0.55)
  6753. CameraEnshaking(1,3)
  6754. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6755. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6756. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6757. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6758. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6759. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6760. wait(0.55)
  6761. CameraEnshaking(10,5)
  6762. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6763. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6764. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6765. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6766. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6767. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6768. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6769. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6770. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6771. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6772. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6773. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6774. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6775. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6776. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6777. for i = 0, 49 do
  6778. 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)
  6779. 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)
  6780. 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)
  6781. 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)
  6782. end
  6783. ModeOfGlitch = 727
  6784. storehumanoidWS = 200
  6785. hum.WalkSpeed = 200
  6786. rainbowmode = false
  6787. chaosmode = false
  6788. tl1.Enabled = true
  6789. tl2.Enabled = true
  6790. tl3.Enabled = true
  6791. RecolorTextAndRename("Distortion",Color3.new(0.5,0.5,0.5),Color3.new(0.75,0.75,0.75))
  6792. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6793. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6794. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6795. for i, v in pairs(mw2:GetChildren()) do
  6796. if v:IsA("Part") then
  6797. v.BrickColor = MAINRUINCOLOR
  6798. v.Material = "Neon"
  6799. end
  6800. end
  6801. for i, v in pairs(mw1:GetChildren()) do
  6802. if v:IsA("Part") then
  6803. v.Transparency = 0
  6804. v.BrickColor = MAINRUINCOLOR
  6805. v.Material = "Neon"
  6806. end
  6807. end
  6808. for i, v in pairs(m:GetChildren()) do
  6809. if v:IsA("Part") then
  6810. v.Color = Color3.new(0.5,0.5,0.5)
  6811. v.Material = "Neon"
  6812. end
  6813. end
  6814. for i, v in pairs(m2:GetChildren()) do
  6815. if v:IsA("Part") then
  6816. v.Color = Color3.new(0.5,0.5,0.5)
  6817. v.Material = "Neon"
  6818. end
  6819. end
  6820. for i, v in pairs(m3:GetChildren()) do
  6821. if v:IsA("Part") then
  6822. v.Color = Color3.new(0.5,0.5,0.5)
  6823. v.Material = "Neon"
  6824. end
  6825. end
  6826. for i, v in pairs(extrawingmod1:GetChildren()) do
  6827. if v:IsA("Part") then
  6828. v.Transparency = 0
  6829. v.Color = Color3.new(0.5,0.5,0.5)
  6830. v.Material = "Neon"
  6831. end
  6832. end
  6833. for i, v in pairs(extrawingmod2:GetChildren()) do
  6834. if v:IsA("Part") then
  6835. v.Transparency = 0
  6836. v.Color = Color3.new(0.5,0.5,0.5)
  6837. v.Material = "Neon"
  6838. end
  6839. attack = false
  6840. end
  6841. elseif k == "f" and attack == false and ModeOfGlitch == 727 then
  6842. resetmode()
  6843. end
  6844. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  6845. newThemeCust("rbxassetid://723652641",0,1,1)
  6846. attack = true
  6847. hum.WalkSpeed = 0
  6848. MAINRUINCOLOR = BrickColor.new("Crimson")
  6849. for i = 0, 24, 0.1 do
  6850. swait()
  6851. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  6852. 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)
  6853. 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)
  6854. 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)
  6855. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6856. 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)
  6857. 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)
  6858. end
  6859. CameraEnshaking(1,1)
  6860. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6861. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6862. wait(0.55)
  6863. CameraEnshaking(1,2)
  6864. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6865. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6866. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6867. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6868. wait(0.55)
  6869. CameraEnshaking(1,3)
  6870. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6871. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6872. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6873. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6874. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6875. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6876. wait(0.55)
  6877. CameraEnshaking(10,5)
  6878. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6879. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6880. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6881. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6882. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6883. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6884. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6885. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6886. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6887. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6888. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6889. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6890. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6891. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6892. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6893. for i = 0, 49 do
  6894. 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)
  6895. 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)
  6896. 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)
  6897. 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)
  6898. end
  6899. ModeOfGlitch = 666
  6900. storehumanoidWS = 16
  6901. hum.WalkSpeed = 16
  6902. rainbowmode = false
  6903. chaosmode = false
  6904. tl1.Enabled = true
  6905. tl2.Enabled = true
  6906. tl3.Enabled = true
  6907. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  6908. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6909. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6910. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6911. for i, v in pairs(mw2:GetChildren()) do
  6912. if v:IsA("Part") then
  6913. v.BrickColor = MAINRUINCOLOR
  6914. v.Material = "Neon"
  6915. end
  6916. end
  6917. for i, v in pairs(mw1:GetChildren()) do
  6918. if v:IsA("Part") then
  6919. v.Transparency = 0
  6920. v.BrickColor = MAINRUINCOLOR
  6921. v.Material = "Neon"
  6922. end
  6923. end
  6924. for i, v in pairs(m:GetChildren()) do
  6925. if v:IsA("Part") then
  6926. v.Color = Color3.new(1,0,0)
  6927. v.Material = "Neon"
  6928. end
  6929. end
  6930. for i, v in pairs(m2:GetChildren()) do
  6931. if v:IsA("Part") then
  6932. v.Color = Color3.new(1,0,0)
  6933. v.Material = "Neon"
  6934. end
  6935. end
  6936. for i, v in pairs(m3:GetChildren()) do
  6937. if v:IsA("Part") then
  6938. v.Color = Color3.new(1,0,0)
  6939. v.Material = "Neon"
  6940. end
  6941. end
  6942. for i, v in pairs(extrawingmod1:GetChildren()) do
  6943. if v:IsA("Part") then
  6944. v.Transparency = 0
  6945. v.Color = Color3.new(1,0,0)
  6946. v.Material = "Neon"
  6947. end
  6948. end
  6949. for i, v in pairs(extrawingmod2:GetChildren()) do
  6950. if v:IsA("Part") then
  6951. v.Transparency = 0
  6952. v.Color = Color3.new(1,0,0)
  6953. v.Material = "Neon"
  6954. end
  6955. attack = false
  6956. end
  6957. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  6958. resetmode()
  6959. end
  6960. if k == "l" and toggleTag == false then
  6961. toggleTag = true
  6962. text.TextTransparency = 0
  6963. text.TextStrokeTransparency = 0
  6964. elseif k == "l" and toggleTag == true then
  6965. toggleTag = false
  6966. text.TextTransparency = 1
  6967. text.TextStrokeTransparency = 1
  6968. end
  6969. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6970. ExtinctiveHeartbreak()
  6971. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6972. PureBomb()
  6973. elseif k == "z" and attack == false and ModeOfGlitch == 777 then
  6974. PureBomb()
  6975. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6976. scattercorrupt()
  6977. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  6978. Wip2()
  6979. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6980. ChaosGroundStrike()
  6981. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6982. Judgement()
  6983. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  6984. HolyBarrier()
  6985. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654322 then
  6986. Judgement()
  6987. elseif k == "v" and attack == false and ModeOfGlitch == 12345678987654322 then
  6988. ChaosGroundStrike2()
  6989. elseif k == "f" and attack == false and ModeOfGlitch == 535 then
  6990. ChaosGroundStrike2()
  6991. elseif k == "z" and attack == false and ModeOfGlitch == 535 then
  6992. PureBomb()
  6993. elseif k == "x" and attack == false and ModeOfGlitch == 535 then
  6994. ChaosGroundStrike()
  6995. ChaosGroundStrike()
  6996. ChaosGroundStrike()
  6997. elseif k == "c" and attack == false and ModeOfGlitch == 535 then
  6998. Starfall()
  6999. Starfall()
  7000. scattercorrupt()
  7001. elseif k == "v" and attack == false and ModeOfGlitch == 535 then
  7002. MeteorStrike()
  7003. ChaosGroundStrike2()
  7004. elseif k == "b" and attack == false and ModeOfGlitch == 535 then
  7005. FinalCalam()
  7006. elseif k == "m" and attack == false and ModeOfGlitch == 535 then
  7007. StarfallEX()
  7008. StarfallEX()
  7009. Wip()
  7010. Wip()
  7011. elseif k == "x" and attack == false and ModeOfGlitch == 777 then
  7012. Starfall()
  7013. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  7014. Starfall()
  7015. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7016. yinyangi()
  7017. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  7018. MeteorStrike()
  7019. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  7020. Wip()
  7021. elseif k == "x" and attack == false and ModeOfGlitch == 6127843 then
  7022. Starfall()
  7023. yinyangi2()
  7024. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654322 then
  7025. StarfallEX()
  7026. ChaosGroundStrike2()
  7027. yinyangi2()
  7028. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  7029. StarfallEX()
  7030. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  7031. FinalCalam()
  7032. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654322 then
  7033. THEHELLITSTHATBIG()
  7034. FinalCalam()
  7035. removelol()
  7036. end
  7037. if k == "n" and attack == false then
  7038. Blink()
  7039. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  7040. StarDivision()
  7041. end
  7042. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  7043. UniversalCollapse()
  7044. end
  7045. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  7046. hum.WalkSpeed = 16 + 184
  7047. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  7048. hum.WalkSpeed = 200 - 184
  7049. end
  7050. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  7051. UniversalSpark()
  7052. end
  7053. if k == "z" and attack == false and ModeOfGlitch == 666 then
  7054. StarDivision()
  7055. end
  7056. if k == "x" and attack == false and ModeOfGlitch == 666 then
  7057. Starfall()
  7058. end
  7059. if k == "x" and attack == false and ModeOfGlitch == 727 then
  7060. StarDivision()
  7061. end
  7062. if k == "x" and attack == false and ModeOfGlitch == 12345678987654322 then
  7063. StarDivision()
  7064. end
  7065. if k == "x" and attack == false and ModeOfGlitch == 12345678987654322 then
  7066. UniversalSpark()
  7067. end
  7068. if k == "c" and attack == false and ModeOfGlitch == 727 then
  7069. Starfall()
  7070. end
  7071. if k == "z" and attack == false and ModeOfGlitch == 727 then
  7072. MeteorStrike()
  7073. end
  7074. if k == "v" and attack == false and ModeOfGlitch == 727 then
  7075. scattercorrupt2()
  7076. end
  7077. if k == "m" and attack == false and ModeOfGlitch == 4 then
  7078. ChaosBegone()
  7079. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  7080. THEHELLITSTHATBIG()
  7081. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  7082. removelol()
  7083. end
  7084. end)
  7085. mouse.KeyUp:connect(function(k)
  7086. if k == "f" and ModeOfGlitch == 5 then
  7087. shielding = false
  7088. end
  7089. if k == "z" and ModeOfGlitch == 5 then
  7090. judgement = false
  7091. end
  7092. if k == "c" and ModeOfGlitch == 12345678987654322 then
  7093. judgement = false
  7094. end
  7095. if k == "c" and ModeOfGlitch == 777 then
  7096. judgement = false
  7097. end
  7098. end)
  7099. coroutine.resume(coroutine.create(function()
  7100. while true do
  7101. swait(2)
  7102. if rainbowmode == true or ModeOfGlitch == 6 then
  7103. if eff == true then
  7104. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  7105. end
  7106. end
  7107. end
  7108. end))
  7109. coroutine.resume(coroutine.create(function()
  7110. while true do
  7111. swait(2)
  7112. if shielding == true then
  7113. end
  7114. end
  7115. end))
  7116.  
  7117.  
  7118. coroutine.resume(coroutine.create(function()
  7119. while true do
  7120. if ModeOfGlitch == 1000000 then
  7121. swait(0.5)
  7122. end
  7123. swait()
  7124. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  7125. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  7126. end
  7127. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  7128. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  7129. end
  7130. end
  7131. end))
  7132.  
  7133.  
  7134. coroutine.resume(coroutine.create(function()
  7135. while true do
  7136. swait(2)
  7137. if chaosmode == true then
  7138. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7139. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7140. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7141. for i, v in pairs(mw1:GetChildren()) do
  7142. if v:IsA("Part") then
  7143. v.Transparency = 0.75
  7144. v.BrickColor = BrickColor.random()
  7145. v.Material = "Neon"
  7146. end
  7147. end
  7148. for i, v in pairs(m2:GetChildren()) do
  7149. if v:IsA("Part") then
  7150. v.BrickColor = BrickColor.random()
  7151. v.Material = "Neon"
  7152. end
  7153. end
  7154. for i, v in pairs(secondchar:GetChildren()) do
  7155. if v:IsA("Part") then
  7156. v.BrickColor = BrickColor.random()
  7157. v.Material = "Neon"
  7158. end
  7159. end
  7160. for i, v in pairs(extrawingmod1:GetChildren()) do
  7161. if v:IsA("Part") then
  7162. v.Transparency = 0.75
  7163. v.BrickColor = BrickColor.random()
  7164. v.Material = "Neon"
  7165. end
  7166. end
  7167. end
  7168. end
  7169. end))
  7170. Humanoid.Name = "STARGLITCHER"
  7171. Humanoid.MaxHealth = math.huge
  7172. Humanoid.Health = math.huge
  7173. Instance.new("ForceField",char).Visible = false
  7174. Humanoid.Animator.Parent = nil
  7175. idleanim=.4
  7176. while true do
  7177. if rainbowmode == false then
  7178. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7179. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7180. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7181. for i, v in pairs(secondchar:GetChildren()) do
  7182. if v:IsA("Part") then
  7183. v.BrickColor = MAINRUINCOLOR
  7184. v.Material = "Neon"
  7185. end
  7186. end
  7187. if chaosmode == false then
  7188. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7189. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7190. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7191. for i, v in pairs(secondchar:GetChildren()) do
  7192. if v:IsA("Part") then
  7193. v.BrickColor = MAINRUINCOLOR
  7194. v.Material = "Neon"
  7195. end
  7196. end
  7197. end
  7198. end
  7199. if rainbowmode == true then
  7200. MAINRUINCOLOR = BrickColor.new("White")
  7201. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7202. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7203. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7204. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7205. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7206. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7207. for i, v in pairs(m:GetChildren()) do
  7208. if v:IsA("Part") then
  7209. v.Color = Color3.new(r/255,g/255,b/255)
  7210. end
  7211. end
  7212. for i, v in pairs(m2:GetChildren()) do
  7213. if v:IsA("Part") then
  7214. v.Color = Color3.new(r/255,g/255,b/255)
  7215. end
  7216. end
  7217. for i, v in pairs(secondchar:GetChildren()) do
  7218. if v:IsA("Part") then
  7219. v.Color = Color3.new(r/255,g/255,b/255)
  7220. v.Material = "Neon"
  7221. end
  7222. end
  7223. for i, v in pairs(m3:GetChildren()) do
  7224. if v:IsA("Part") then
  7225. v.Color = Color3.new(r/255,g/255,b/255)
  7226. end
  7227. end
  7228. for i, v in pairs(mw2:GetChildren()) do
  7229. if v:IsA("Part") then
  7230. v.Color = Color3.new(r/255,g/255,b/255)
  7231. v.Material = "Neon"
  7232. end
  7233. end
  7234. for i, v in pairs(mw1:GetChildren()) do
  7235. if v:IsA("Part") then
  7236. v.Color = Color3.new(r/255,g/255,b/255)
  7237. v.Material = "Neon"
  7238. end
  7239. end
  7240. for i, v in pairs(extrawingmod2:GetChildren()) do
  7241. if v:IsA("Part") then
  7242. v.Color = Color3.new(r/255,g/255,b/255)
  7243. v.Material = "Neon"
  7244. end
  7245. end
  7246. end
  7247. CameraManager()
  7248. swait()
  7249. 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)
  7250. 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)
  7251. 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)
  7252. 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)
  7253. 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)
  7254. 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)
  7255.  
  7256. if attack == false and ActiveGia == false then
  7257. torsweld.C1=Clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7258. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  7259. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  7260. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7261. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7262. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  7263. elseif attack == false and ActiveGia == true then
  7264. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 727 and ModeOfGlitch ~= 666 then
  7265. torsweld.C1=Clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  7266. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  7267. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  7268. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  7269. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  7270. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  7271. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 727 or ModeOfGlitch == 666 then
  7272. torsweld.C1=Clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  7273. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  7274. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  7275. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  7276. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  7277. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  7278. end
  7279. end
  7280.  
  7281. 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)
  7282. 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)
  7283. 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)
  7284. 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)
  7285. 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)
  7286. 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)
  7287. sine = sine + change
  7288. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7289. local velderp=RootPart.Velocity.y
  7290. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7291. if equipped==true or equipped==false then
  7292. if attack==false then
  7293. idle=idle+1
  7294. else
  7295. idle=0
  7296. end
  7297. if idle>=500 then
  7298. if attack==false then
  7299. --Sheath()
  7300. end
  7301. end
  7302. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7303. Anim="Jump"
  7304. if attack==false then
  7305. 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(-5),math.rad(0),math.rad(-20)),.1)
  7306. 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)
  7307. 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)
  7308. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7309. 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)
  7310. 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)
  7311. end
  7312. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7313. Anim="Fall"
  7314. if attack==false then
  7315. 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(-5),math.rad(0),math.rad(-20)),.1)
  7316. 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)
  7317. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7318. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7319. RW.C0=Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  7320. LW.C0=Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  7321. end
  7322. elseif torvel<1 and hitfloor~=nil then
  7323. Anim="Idle"
  7324. if attack==false then
  7325. if ModeOfGlitch == 1 then
  7326. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7327. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7328. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7329. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  7330. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  7331. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7332.  
  7333. elseif ModeOfGlitch == 666 then
  7334. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7335. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7336. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7337. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7338. 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)
  7339. 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)
  7340.  
  7341. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 or ModeOfGlitch == 535 then
  7342. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  7343. 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)
  7344. 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)
  7345. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  7346. RW.C0=Clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  7347. LW.C0=Clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7348.  
  7349. elseif ModeOfGlitch == 3 then
  7350. 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)
  7351. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  7352. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  7353. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  7354. RW.C0=Clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  7355. LW.C0=Clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7356.  
  7357. elseif ModeOfGlitch == 4 then
  7358. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  7359. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  7360. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7361. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  7362. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  7363. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  7364.  
  7365. elseif ModeOfGlitch == 5 or ModeOfGlitch == 777 then
  7366. 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)
  7367. 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)
  7368. 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)
  7369. 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)
  7370. RW.C0=Clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  7371. 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)
  7372.  
  7373. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  7374. 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)
  7375. 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)
  7376. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7377. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7378. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  7379. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  7380.  
  7381. elseif ModeOfGlitch == 12345678987654321 then
  7382. 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)
  7383. 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)
  7384. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  7385. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7386. RW.C0=Clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  7387. LW.C0=Clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7388.  
  7389. elseif ModeOfGlitch == 727 or ModeOfGlitch == 12345678987654322 then
  7390. 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)
  7391. 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)
  7392. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  7393. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7394. RW.C0=Clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  7395. LW.C0=Clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7396. end
  7397. end
  7398. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  7399. Anim="Walk"
  7400. if attack==false then
  7401. if ModeOfGlitch == 1 then
  7402. RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  7403. LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  7404. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  7405. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  7406. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  7407. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7408.  
  7409. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  7410. RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  7411. LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  7412. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  7413. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  7414. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  7415. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  7416.  
  7417. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  7418. RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  7419. LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  7420. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  7421. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  7422. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  7423. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  7424. end
  7425. end
  7426. elseif torvel>=22 and hitfloor~=nil then
  7427. Anim="Run"
  7428. if attack==false then
  7429. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 727 and ModeOfGlitch ~= 666 then
  7430. RH.C0=Clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*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)
  7431. LH.C0=Clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*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)
  7432. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  7433. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  7434. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  7435. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  7436. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 727 or ModeOfGlitch == 666 then
  7437. 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)
  7438. 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)
  7439. 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)
  7440. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  7441. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  7442. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  7443. end
  7444. end
  7445. end
  7446. end
  7447. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement