Advertisement
GojiGaming1337

Untitled

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