Advertisement
GojiGaming1337

Untitled

May 25th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 287.51 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. Even more edited by 'GodzillaGamer2037'
  31.  
  32. ]])
  33. print([[Icons:
  34. ! = New
  35. ? = Spoilers
  36. * = Exclusivity
  37. ]])
  38. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  39. - Originall themes included
  40. *-Divine Purity
  41. *-Distortion mode
  42. !-Divine universe
  43.  
  44. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  45. ]])
  46. --- its obs smooth af do not touch
  47. ---- Sources and functions might be taken from others
  48. Player = game:GetService("Players").LocalPlayer
  49. PlayerGui = Player.PlayerGui
  50. Cam = workspace.CurrentCamera
  51. Backpack = Player.Backpack
  52. Character = Player.Character
  53. Humanoid = Character.Humanoid
  54. Mouse = Player:GetMouse()
  55. RootPart = Character["HumanoidRootPart"]
  56. Torso = Character["Torso"]
  57. Head = Character["Head"]
  58. RightArm = Character["Right Arm"]
  59. LeftArm = Character["Left Arm"]
  60. RightLeg = Character["Right Leg"]
  61. LeftLeg = Character["Left Leg"]
  62. RootJoint = RootPart["RootJoint"]
  63. Neck = Torso["Neck"]
  64. RightShoulder = Torso["Right Shoulder"]
  65. LeftShoulder = Torso["Left Shoulder"]
  66. RightHip = Torso["Right Hip"]
  67. LeftHip = Torso["Left Hip"]
  68.  
  69. IT = Instance.new
  70. CF = CFrame.new
  71. VT = Vector3.new
  72. RAD = math.rad
  73. C3 = Color3.new
  74. UD2 = UDim2.new
  75. BRICKC = BrickColor.new
  76. ANGLES = CFrame.Angles
  77. EULER = CFrame.fromEulerAnglesXYZ
  78. COS = math.cos
  79. ACOS = math.acos
  80. SIN = math.sin
  81. ASIN = math.asin
  82. ABS = math.abs
  83. MRANDOM = math.random
  84. FLOOR = math.floor
  85.  
  86. plr = game:GetService("Players").LocalPlayer
  87. char = plr.Character
  88. hum = char.Humanoid
  89. local cam = game.Workspace.CurrentCamera
  90. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  91. Camera = cam
  92. local CamInterrupt = false
  93. local TwoD = false
  94. local TargetInfo = {nil, nil}
  95. cam.CameraType = "Custom"
  96. t = char.Torso
  97. h = char.Head
  98. ra = char["Right Arm"]
  99. la = char["Left Arm"]
  100. rl = char["Right Leg"]
  101. ll = char["Left Leg"]
  102. tors = char.Torso
  103. lleg = char["Left Leg"]
  104. root = char.HumanoidRootPart
  105. hed = char.Head
  106. rleg = char["Right Leg"]
  107. rarm = char["Right Arm"]
  108. larm = char["Left Arm"]
  109. radian = math.rad
  110. random = math.random
  111. Vec3 = Vector3.new
  112. Inst = Instance.new
  113. cFrame = CFrame.new
  114. Euler = CFrame.fromEulerAnglesXYZ
  115. vt = Vector3.new
  116. bc = BrickColor.new
  117. br = BrickColor.random
  118. it = Instance.new
  119. cf = CFrame.new
  120. local eff = true
  121. local shielding = false
  122.  
  123. Animation_Speed = 3
  124. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  125. local Speed = 12
  126. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  127. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  128. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  129. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  130. local DAMAGEMULTIPLIER = 1
  131. local ANIM = "Idle"
  132. local ATTACK = false
  133. local EQUIPPED = false
  134. local HOLD = false
  135. local COMBO = 1
  136. local Rooted = false
  137. local SINE = 0
  138. local KEYHOLD = false
  139. local CHANGE = 2 / Animation_Speed
  140. local WALKINGANIM = false
  141. local VALUE1 = false
  142. local VALUE2 = false
  143. local ROBLOXIDLEANIMATION = IT("Animation")
  144. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  145. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  146. --ROBLOXIDLEANIMATION.Parent = Humanoid
  147. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  148. WEAPONGUI.Name = "Weapon GUI"
  149. local Effects = IT("Folder", Character)
  150. Effects.Name = "Effects"
  151. local ANIMATOR = Humanoid.Animator
  152. local ANIMATE = Character.Animate
  153. local UNANCHOR = true
  154. local WHITELIST = {}
  155. local TAUNT = false
  156. local OFFSET = 0
  157. local FULL = false
  158.  
  159. local Booleans = {
  160. CamFollow = true,
  161. GyroUse = true
  162. }
  163.  
  164. function Swait(NUMBER)
  165. if NUMBER == 0 or NUMBER == nil then
  166. ArtificialHB.Event:wait()
  167. else
  168. for i = 1, NUMBER do
  169. ArtificialHB.Event:wait()
  170. end
  171. end
  172. end
  173.  
  174. function lerp(object, newCFrame, alpha)
  175. return object:lerp(newCFrame, alpha)
  176. end
  177.  
  178. local Directer = Inst("BodyGyro", root)
  179. Directer.MaxTorque = Vec3(0, 0, 0)
  180. Directer.P = 600000
  181. local CPart = Inst("Part")
  182. CPart.Anchored = true
  183. CPart.CanCollide = false
  184. CPart.Locked = true
  185. CPart.Transparency = 1
  186.  
  187. local rainbowmode = false
  188. local chaosmode = false
  189.  
  190. kan = Instance.new("Sound",char)
  191. kan.Volume = 1.25
  192. kan.TimePosition = 0
  193. kan.PlaybackSpeed = 1
  194. kan.Pitch = 1
  195. kan.SoundId = "rbxassetid://614032233"
  196. kan.Name = "wrecked"
  197. kan.Looped = true
  198. kan:Play()
  199.  
  200. function newTheme(ID,timepos,pitch,vol)
  201. local kanz = kan
  202. --kanz:Stop()
  203. --kanz.Volume = vol
  204. --kanz.TimePosition = timepos
  205. kanz.PlaybackSpeed = pitch
  206. kanz.Pitch = pitch
  207. kanz.SoundId = ID
  208. kanz.Name = "wrecked"
  209. kanz.Looped = true
  210. kanz.Volume = 0.3
  211. --kanz:Play()
  212. --coroutine.resume(coroutine.create(function()
  213. --wait(0.05)
  214. --end))
  215. end
  216.  
  217. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  218. local NEWSOUND = nil
  219. coroutine.resume(coroutine.create(function()
  220. NEWSOUND = S:Clone()
  221. NEWSOUND.Parent = PARENT
  222. NEWSOUND.Volume = VOLUME
  223. NEWSOUND.Pitch = PITCH
  224. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  225. NEWSOUND:play()
  226. if DOESLOOP == true then
  227. NEWSOUND.Looped = true
  228. else
  229. repeat wait(1) until NEWSOUND.Playing == false
  230. NEWSOUND:remove()
  231. end
  232. end))
  233. return NEWSOUND
  234. end
  235.  
  236. function newThemeCust(ID,timepos,pitch,vol)
  237. local kanz = kan
  238. kanz:Stop()
  239. kanz.Volume = vol
  240. kanz.TimePosition = timepos
  241. kanz.PlaybackSpeed = pitch
  242. kanz.Pitch = pitch
  243. kanz.SoundId = ID
  244. kanz.Name = "wrecked"
  245. kanz.Looped = true
  246. kanz:Play()
  247. coroutine.resume(coroutine.create(function()
  248. wait(0.05)
  249. end))
  250. end
  251.  
  252.  
  253.  
  254. function CameraShake(Times, Power, PlayerTarget)
  255. coroutine.resume(coroutine.create(function()
  256. FV = Instance.new("BoolValue", PlayerTarget)
  257. FV.Name = "CameraShake"
  258. for ShakeNum=1,Times do
  259. swait()
  260. local ef=Power
  261. if ef>=1 then
  262. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  263. else
  264. ef=Power*10
  265. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  266. end
  267. end
  268. Humanoid.CameraOffset = Vector3.new(0,0,0)
  269. FV:Destroy()
  270. end))
  271. end
  272.  
  273. function CameraEnshaking(Length,Intensity)
  274. coroutine.resume(coroutine.create(function()
  275. local intensity = 1*Intensity
  276. local rotM = 0.01*Intensity
  277. for i = 0, Length, 0.1 do
  278. swait()
  279. intensity = intensity - 0.05*Intensity/Length
  280. rotM = rotM - 0.0005*Intensity/Length
  281. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  282. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  283. end
  284. Humanoid.CameraOffset = Vec3(0, 0, 0)
  285. end))
  286. end
  287. CamShake=function(Part,Distan,Power,Times)
  288. local de=Part.Position
  289. for i,v in pairs(workspace:children()) do
  290. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  291. for _,c in pairs(v:children()) do
  292. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  293. local Noob=v.Humanoid
  294. if Noob~=nil then
  295. coroutine.resume(coroutine.create(function()
  296. FV = Instance.new("BoolValue", Noob)
  297. FV.Name = "CameraShake"
  298. for ShakeNum=1,Times do
  299. swait()
  300. local ef=Power
  301. if ef>=1 then
  302. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  303. else
  304. ef=Power*10
  305. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  306. end
  307. end
  308. Humanoid.CameraOffset = Vector3.new(0,0,0)
  309. FV:Destroy()
  310. end))
  311. CameraShake(Times, Power, Noob)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. end
  318.  
  319. function chatfunc(text,color)
  320. local chat = coroutine.wrap(function()
  321. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  322. Character:FindFirstChild("TalkingBillBoard"):destroy()
  323. end
  324. local naeeym2 = Instance.new("BillboardGui",Character)
  325. naeeym2.Size = UDim2.new(0,100,0,40)
  326. naeeym2.StudsOffset = Vector3.new(0,3,0)
  327. naeeym2.Adornee = Character.Head
  328. naeeym2.Name = "TalkingBillBoard"
  329. local tecks2 = Instance.new("TextLabel",naeeym2)
  330. tecks2.BackgroundTransparency = 1
  331. tecks2.BorderSizePixel = 0
  332. tecks2.Text = ""
  333. tecks2.Font = "SciFi"
  334. tecks2.TextSize = 30
  335. tecks2.TextStrokeTransparency = 0
  336. tecks2.TextColor3 = color
  337. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  338. tecks2.Size = UDim2.new(1,0,0.5,0)
  339. local tecks3 = Instance.new("TextLabel",naeeym2)
  340. tecks3.BackgroundTransparency = 1
  341. tecks3.BorderSizePixel = 0
  342. tecks3.Text = ""
  343. tecks3.Font = "SciFi"
  344. tecks3.TextSize = 30
  345. tecks3.TextStrokeTransparency = 0
  346. tecks3.TextColor3 = Color3.new(0,0,0)
  347. tecks3.TextStrokeColor3 = color
  348. tecks3.Size = UDim2.new(1,0,0.5,0)
  349. coroutine.resume(coroutine.create(function()
  350. while true do
  351. swait(1)
  352. plr.Character.wrecked.Volume = 0.3
  353. if chaosmode == true then
  354. tecks2.TextColor3 = BrickColor.random().Color
  355. tecks3.TextStrokeColor3 = BrickColor.random().Color
  356. end
  357. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  358. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  359. tecks2.Rotation = math.random(-5,5)
  360. tecks3.Rotation = math.random(-5,5)
  361. end
  362. end))
  363. for i = 1,string.len(text),1 do
  364. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  365. tecks2.Text = string.sub(text,1,i)
  366. tecks3.Text = string.sub(text,1,i)
  367. swait(1)
  368. end
  369. wait(1)
  370. local randomrot = math.random(1,2)
  371. if randomrot == 1 then
  372. for i = 1, 50 do
  373. swait()
  374. tecks2.Rotation = tecks2.Rotation - .75
  375. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  376. tecks2.TextTransparency = tecks2.TextTransparency + .04
  377. tecks3.Rotation = tecks2.Rotation + .75
  378. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks3.TextTransparency = tecks2.TextTransparency + .04
  380. end
  381. elseif randomrot == 2 then
  382. for i = 1, 50 do
  383. swait()
  384. tecks2.Rotation = tecks2.Rotation + .75
  385. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  386. tecks2.TextTransparency = tecks2.TextTransparency + .04
  387. tecks3.Rotation = tecks2.Rotation - .75
  388. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  389. tecks3.TextTransparency = tecks2.TextTransparency + .04
  390. end
  391. end
  392. naeeym2:Destroy()
  393. end)
  394. chat()
  395. end
  396.  
  397. ArtificialHB = Instance.new("BindableEvent", script)
  398. ArtificialHB.Name = "ArtificialHB"
  399.  
  400. script:WaitForChild("ArtificialHB")
  401.  
  402. frame = Frame_Speed
  403. tf = 0
  404. allowframeloss = false
  405. tossremainder = false
  406. lastframe = tick()
  407. script.ArtificialHB:Fire()
  408.  
  409. game:GetService("RunService").Heartbeat:connect(function(s, p)
  410. tf = tf + s
  411. if tf >= frame then
  412. if allowframeloss then
  413. script.ArtificialHB:Fire()
  414. lastframe = tick()
  415. else
  416. for i = 1, math.floor(tf / frame) do
  417. script.ArtificialHB:Fire()
  418. end
  419. lastframe = tick()
  420. end
  421. if tossremainder then
  422. tf = 0
  423. else
  424. tf = tf - frame * math.floor(tf / frame)
  425. end
  426. end
  427. end)
  428.  
  429. local Create = LoadLibrary("RbxUtility").Create
  430.  
  431. CFuncs = {
  432. ["Part"] = {
  433. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  434. local Part = Create("Part"){
  435. Parent = Parent,
  436. Reflectance = Reflectance,
  437. Transparency = Transparency,
  438. CanCollide = false,
  439. Locked = true,
  440. BrickColor = BrickColor.new(tostring(BColor)),
  441. Name = Name,
  442. Size = Size,
  443. Material = Material,
  444. }
  445. RemoveOutlines(Part)
  446. return Part
  447. end;
  448. };
  449.  
  450. ["Mesh"] = {
  451. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  452. local Msh = Create(Mesh){
  453. Parent = Part,
  454. Offset = OffSet,
  455. Scale = Scale,
  456. }
  457. if Mesh == "SpecialMesh" then
  458. Msh.MeshType = MeshType
  459. Msh.MeshId = MeshId
  460. end
  461. return Msh
  462. end;
  463. };
  464.  
  465. ["Mesh"] = {
  466. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  467. local Msh = Create(Mesh){
  468. Parent = Part,
  469. Offset = OffSet,
  470. Scale = Scale,
  471. }
  472. if Mesh == "SpecialMesh" then
  473. Msh.MeshType = MeshType
  474. Msh.MeshId = MeshId
  475. end
  476. return Msh
  477. end;
  478. };
  479.  
  480. ["Weld"] = {
  481. Create = function(Parent, Part0, Part1, C0, C1)
  482. local Weld = Create("Weld"){
  483. Parent = Parent,
  484. Part0 = Part0,
  485. Part1 = Part1,
  486. C0 = C0,
  487. C1 = C1,
  488. }
  489. return Weld
  490. end;
  491. };
  492.  
  493. ["Sound"] = {
  494. Create = function(id, par, vol, pit)
  495. coroutine.resume(coroutine.create(function()
  496. local S = Create("Sound"){
  497. Volume = vol,
  498. Name = "EffectSoundo",
  499. Pitch = pit or 1,
  500. SoundId = id,
  501. Parent = par or workspace,
  502. }
  503. wait()
  504. S:play()
  505. game:GetService("Debris"):AddItem(S, 10)
  506. end))
  507. end;
  508. };
  509.  
  510. ["LongSound"] = {
  511. Create = function(id, par, vol, pit)
  512. coroutine.resume(coroutine.create(function()
  513. local S = Create("Sound"){
  514. Volume = vol,
  515. Pitch = pit or 1,
  516. SoundId = id,
  517. Parent = par or workspace,
  518. }
  519. wait()
  520. S:play()
  521. game:GetService("Debris"):AddItem(S, 30)
  522. end))
  523. end;
  524. };
  525.  
  526. ["ParticleEmitter"] = {
  527. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  528. local fp = Create("ParticleEmitter"){
  529. Parent = Parent,
  530. Color = ColorSequence.new(Color1, Color2),
  531. LightEmission = LightEmission,
  532. Size = Size,
  533. Texture = Texture,
  534. Transparency = Transparency,
  535. ZOffset = ZOffset,
  536. Acceleration = Accel,
  537. Drag = Drag,
  538. LockedToPart = LockedToPart,
  539. VelocityInheritance = VelocityInheritance,
  540. EmissionDirection = EmissionDirection,
  541. Enabled = Enabled,
  542. Lifetime = LifeTime,
  543. Rate = Rate,
  544. Rotation = Rotation,
  545. RotSpeed = RotSpeed,
  546. Speed = Speed,
  547. VelocitySpread = VelocitySpread,
  548. }
  549. return fp
  550. end;
  551. };
  552.  
  553. CreateTemplate = {
  554.  
  555. };
  556. }
  557.  
  558.  
  559.  
  560. New = function(Object, Parent, Name, Data)
  561. local Object = Instance.new(Object)
  562. for Index, Value in pairs(Data or {}) do
  563. Object[Index] = Value
  564. end
  565. Object.Parent = Parent
  566. Object.Name = Name
  567. return Object
  568. end
  569. local halocolor = BrickColor.new("Pastel light blue")
  570. local halocolor2 = BrickColor.new("Cool yellow")
  571. local starcolor = BrickColor.new("Bright yellow")
  572. local lunacolor = BrickColor.new("Navy blue")
  573. local lunacolor2 = BrickColor.new("Bright blue")
  574. local wepcolor = BrickColor.new("Really black")
  575. local maincolor = BrickColor.new("Really black")
  576. local m = Instance.new("Model",char)
  577. local m2 = Instance.new("Model",char)
  578. local m3 = Instance.new("Model",char)
  579. local mw1 = Instance.new("Model",char)
  580. local mw2 = Instance.new("Model",char)
  581.  
  582. local extrawingmod1 = Instance.new("Model",char)
  583. local extrawingmod2 = Instance.new("Model",char)
  584.  
  585. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  586. local p = Instance.new("Part")
  587. p.TopSurface = 0
  588. p.BottomSurface = 0
  589. p.Parent = parent
  590. p.Size = Vector3.new(0.1,0.1,0.1)
  591. p.Transparency = transparency
  592. p.Reflectance = reflectance
  593. p.CanCollide = false
  594. p.Locked = true
  595. p.BrickColor = brickcolor
  596. p.Material = material
  597. return p
  598. end
  599.  
  600. function CreateMesh(parent,meshtype,x1,y1,z1)
  601. local mesh = Instance.new("SpecialMesh",parent)
  602. mesh.MeshType = meshtype
  603. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  604. return mesh
  605. end
  606.  
  607. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  608. local mesh = Instance.new("SpecialMesh",parent)
  609. mesh.MeshType = "FileMesh"
  610. mesh.MeshId = meshid
  611. mesh.Scale = Vector3.new(x1,y1,z1)
  612. return mesh
  613. end
  614.  
  615.  
  616. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  617. local mesh = Instance.new("SpecialMesh",parent)
  618. mesh.MeshType = "FileMesh"
  619. mesh.MeshId = meshid
  620. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  621. mesh.Scale = Vector3.new(x1,y1,z1)
  622. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  623. return mesh
  624. end
  625.  
  626. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  627. local weld = Instance.new("Weld")
  628. weld.Parent = parent
  629. weld.Part0 = part0
  630. weld.Part1 = part1
  631. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  632. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  633. return weld
  634. end
  635.  
  636.  
  637. --------------
  638. local secondchar = Instance.new("Model",char)
  639. local GhostCol = BrickColor.new("Really red")
  640. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  641. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  642. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643.  
  644. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  645. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  646. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  647.  
  648. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  649. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  650. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  651.  
  652. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  653. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  654. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  655.  
  656. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  657. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  658. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  659.  
  660. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  661. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  662. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  663. --------------
  664. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  665. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  666. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  667. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  668.  
  669. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  670. CreateMesh(handle,"Brick",0,0,0)
  671. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  672. local valuaring = 10
  673. for i = 0, 49 do
  674. valuaring = valuaring + 10
  675. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  676. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  677. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  678. end
  679.  
  680. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  681. CreateMesh(handle,"Brick",0,0,0)
  682. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  683. local valuaring = 10
  684. for i = 0, 49 do
  685. valuaring = valuaring + 10
  686. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  687. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  688. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  689. end
  690.  
  691.  
  692. local handle = CreateParta(m,1,1,"Neon",maincolor)
  693. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  694. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  695.  
  696. --- Left wing.
  697.  
  698. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  699. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  700. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  701.  
  702. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  703. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  704. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  705. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  706. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  707. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  708. A0 = Instance.new('Attachment',wed)
  709. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.5,3)
  711. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  712. A1 = Instance.new('Attachment',wed)
  713. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  714. CreateMesh(wed,"Wedge",0.05,3,0.5)
  715. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  716.  
  717. tl1 = Instance.new('Trail',wed)
  718. tl1.Attachment0 = A0
  719. tl1.Attachment1 = A1
  720. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  721. tl1.LightEmission = 1
  722. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  723. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  724. tl1.Lifetime = 0.6
  725.  
  726.  
  727. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  728. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  729. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730.  
  731. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  733. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  734. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  735. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  736. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  737. A0 = Instance.new('Attachment',wed)
  738. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.5,3)
  740. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741. A1 = Instance.new('Attachment',wed)
  742. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  743. CreateMesh(wed,"Wedge",0.05,3,0.5)
  744. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  745.  
  746. tl2 = Instance.new('Trail',wed)
  747. tl2.Attachment0 = A0
  748. tl2.Attachment1 = A1
  749. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  750. tl2.LightEmission = 1
  751. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  752. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  753. tl2.Lifetime = 0.6
  754.  
  755. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  756. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  757. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  758.  
  759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  761. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  762. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  763. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  764. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  765. A0 = Instance.new('Attachment',wed)
  766. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  767. CreateMesh(wed,"Wedge",0.05,0.5,3)
  768. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  769. A1 = Instance.new('Attachment',wed)
  770. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  771. CreateMesh(wed,"Wedge",0.05,3,0.5)
  772. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  773.  
  774. tl3 = Instance.new('Trail',wed)
  775. tl3.Attachment0 = A0
  776. tl3.Attachment1 = A1
  777. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  778. tl3.LightEmission = 1
  779. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  780. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  781. tl3.Lifetime = 0.6
  782.  
  783. tl1.Enabled = false
  784. tl2.Enabled = false
  785. tl3.Enabled = false
  786. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  787. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  788. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  789.  
  790. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  791. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  792. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  793. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  794. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  795. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  796. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,3)
  798. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  799. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,3,0.5)
  801. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  802.  
  803. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  804. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  805. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  806.  
  807. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  808. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  809. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  810. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  811. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  812. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  813. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,0.5,3)
  815. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  816. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  817. CreateMesh(wed,"Wedge",0.05,3,0.5)
  818. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  819.  
  820. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  822. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  823.  
  824. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  825. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  826. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  827. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  828. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  829. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  830. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,3)
  832. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  833. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,3,0.5)
  835. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  836.  
  837. -- Right wing.
  838.  
  839. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  841. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842.  
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  845. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  846. A0 = Instance.new('Attachment',wed)
  847. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  848. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  849. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  850. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,3)
  852. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  853. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,3,0.5)
  855. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. A1 = Instance.new('Attachment',wed)
  857.  
  858. tr1 = Instance.new('Trail',wed)
  859. tr1.Attachment0 = A0
  860. tr1.Attachment1 = A1
  861. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  862. tr1.LightEmission = 1
  863. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  864. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  865. tr1.Lifetime = 0.6
  866.  
  867. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  868. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  869. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870.  
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  873. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  874. A0 = Instance.new('Attachment',wed)
  875. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  876. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  877. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  878. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  879. CreateMesh(wed,"Wedge",0.05,0.5,3)
  880. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  881. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  882. CreateMesh(wed,"Wedge",0.05,3,0.5)
  883. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  884. A1 = Instance.new('Attachment',wed)
  885.  
  886. tr2 = Instance.new('Trail',wed)
  887. tr2.Attachment0 = A0
  888. tr2.Attachment1 = A1
  889. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  890. tr2.LightEmission = 1
  891. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  892. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  893. tr2.Lifetime = 0.6
  894.  
  895. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  896. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  897. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  898.  
  899. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  901. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  902. A0 = Instance.new('Attachment',wed)
  903. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,3)
  908. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,3,0.5)
  911. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  912. A1 = Instance.new('Attachment',wed)
  913.  
  914. tr3 = Instance.new('Trail',wed)
  915. tr3.Attachment0 = A0
  916. tr3.Attachment1 = A1
  917. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  918. tr3.LightEmission = 1
  919. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  920. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  921. tr3.Lifetime = 0.6
  922.  
  923.  
  924. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  925. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  926. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  927.  
  928. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  930. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  931. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  933. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  934. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  935. CreateMesh(wed,"Wedge",0.05,0.5,3)
  936. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  937. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  938. CreateMesh(wed,"Wedge",0.05,3,0.5)
  939. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  940.  
  941. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  942. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  943. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  944.  
  945. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  947. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  948. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  950. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  951. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  952. CreateMesh(wed,"Wedge",0.05,0.5,3)
  953. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  954. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  955. CreateMesh(wed,"Wedge",0.05,3,0.5)
  956. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  957.  
  958. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  959. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  960. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  961.  
  962. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  964. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  965. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  967. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.5,3)
  970. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,3,0.5)
  973. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  974.  
  975. ---- HERES THE RING
  976.  
  977.  
  978. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  979. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  980. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  981. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  983. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  985. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  986. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  987.  
  988.  
  989. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  990. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  991. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  992.  
  993. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  994. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  995. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  996.  
  997.  
  998.  
  999. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1000. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1001. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1002.  
  1003. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1004. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1005. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1006.  
  1007. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1008. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1009. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1010.  
  1011. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1012. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1013. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1014. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1015. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1016. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1017.  
  1018. --- second ring
  1019.  
  1020. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1021. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1022. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1023. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1024. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1025. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1026. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1027. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1028. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1029.  
  1030. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1031. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1032. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1033.  
  1034. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1035. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1036. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1037.  
  1038.  
  1039.  
  1040. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1041. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1042. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1043.  
  1044. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1045. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1046. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1047.  
  1048. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1049. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1050. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1051.  
  1052. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1053. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1054. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1055. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1056. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1057. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1058.  
  1059.  
  1060.  
  1061. for i, v in pairs(m:GetChildren()) do
  1062. if v:IsA("Part") then
  1063. v.BrickColor = BrickColor.new("Really black")
  1064. v.Material = "Glass"
  1065. end
  1066. end
  1067. for i, v in pairs(m2:GetChildren()) do
  1068. if v:IsA("Part") then
  1069. v.BrickColor = BrickColor.new("Crimson")
  1070. v.Material = "Granite"
  1071. end
  1072. end
  1073. for i, v in pairs(m3:GetChildren()) do
  1074. if v:IsA("Part") then
  1075. v.BrickColor = BrickColor.new("Really red")
  1076. v.Material = "Neon"
  1077. end
  1078. end
  1079. for i, v in pairs(mw2:GetChildren()) do
  1080. if v:IsA("Part") then
  1081. v.BrickColor = BrickColor.new("Really red")
  1082. v.Material = "Neon"
  1083. end
  1084. end
  1085. for i, v in pairs(mw1:GetChildren()) do
  1086. if v:IsA("Part") then
  1087. v.Transparency = 1
  1088. v.BrickColor = BrickColor.new("Really red")
  1089. v.Material = "Neon"
  1090. end
  1091. end
  1092. for i, v in pairs(extrawingmod1:GetChildren()) do
  1093. if v:IsA("Part") then
  1094. v.Transparency = 1
  1095. v.BrickColor = BrickColor.new("White")
  1096. v.Material = "Neon"
  1097. end
  1098. end
  1099. for i, v in pairs(extrawingmod2:GetChildren()) do
  1100. if v:IsA("Part") then
  1101. v.Transparency = 1
  1102. v.BrickColor = BrickColor.new("White")
  1103. v.Material = "Neon"
  1104. end
  1105. end
  1106. local MAINRUINCOLOR = BrickColor.new("Really red")
  1107. ------
  1108.  
  1109.  
  1110. function RemoveOutlines(part)
  1111. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1112. end
  1113. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1114. local Part = Create("Part")({
  1115. Parent = Parent,
  1116. Reflectance = Reflectance,
  1117. Transparency = Transparency,
  1118. CanCollide = false,
  1119. Locked = true,
  1120. BrickColor = BrickColor.new(tostring(BColor)),
  1121. Name = Name,
  1122. Size = Size,
  1123. Material = Material
  1124. })
  1125. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1126. RemoveOutlines(Part)
  1127. return Part
  1128. end
  1129. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1130. local Msh = Create(Mesh)({
  1131. Parent = Part,
  1132. Offset = OffSet,
  1133. Scale = Scale
  1134. })
  1135. if Mesh == "SpecialMesh" then
  1136. Msh.MeshType = MeshType
  1137. Msh.MeshId = MeshId
  1138. end
  1139. return Msh
  1140. end
  1141. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1142. local Weld = Create("Weld")({
  1143. Parent = Parent,
  1144. Part0 = Part0,
  1145. Part1 = Part1,
  1146. C0 = C0,
  1147. C1 = C1
  1148. })
  1149. return Weld
  1150. end
  1151.  
  1152. Player=game:GetService("Players").LocalPlayer
  1153. Character=Player.Character
  1154. PlayerGui=Player.PlayerGui
  1155. Backpack=Player.Backpack
  1156. Torso=Character.Torso
  1157. Head=Character.Head
  1158. Humanoid=Character.Humanoid
  1159. m=Instance.new('Model',Character)
  1160. LeftArm=Character["Left Arm"]
  1161. LeftLeg=Character["Left Leg"]
  1162. RightArm=Character["Right Arm"]
  1163. RightLeg=Character["Right Leg"]
  1164. LS=Torso["Left Shoulder"]
  1165. LH=Torso["Left Hip"]
  1166. RS=Torso["Right Shoulder"]
  1167. RH=Torso["Right Hip"]
  1168. Face = Head.face
  1169. Neck=Torso.Neck
  1170. it=Instance.new
  1171. attacktype=1
  1172. vt=Vector3.new
  1173. cf=CFrame.new
  1174. euler=CFrame.fromEulerAnglesXYZ
  1175. angles=CFrame.Angles
  1176. cloaked=false
  1177. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1178. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1179. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1180. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1181. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1182. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1183. RootPart=Character.HumanoidRootPart
  1184. RootJoint=RootPart.RootJoint
  1185. RootCF=euler(-1.57,0,3.14)
  1186. attack = false
  1187. attackdebounce = false
  1188. deb=false
  1189. equipped=true
  1190. hand=false
  1191. MMouse=nil
  1192. combo=0
  1193. mana=0
  1194. trispeed=.2
  1195. attackmode='none'
  1196. local idle=0
  1197. local Anim="Idle"
  1198. local Effects={}
  1199. local gun=false
  1200. local shoot=false
  1201. local sine = 0
  1202. local change = 1
  1203. player=nil
  1204.  
  1205.  
  1206. local toggleTag = true
  1207. local txt = Instance.new("BillboardGui", Head)
  1208. txt.Adornee = nil
  1209. txt.Name = "NameDetect"
  1210. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1211. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1212. local text = Instance.new("TextLabel", txt)
  1213. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1214. text.FontSize = "Size8"
  1215. text.TextScaled = true
  1216. text.TextTransparency = 0
  1217. text.BackgroundTransparency = 1
  1218. text.TextTransparency = 0
  1219. text.TextStrokeTransparency = 0
  1220. text.Font = "Fantasy"
  1221. text.TextStrokeColor3 = Color3.new(1,0,0)
  1222. text.TextColor3 = Color3.new(0,0,0)
  1223. text.Text = "Mayhem"
  1224.  
  1225. function RecolorTextAndRename(name,col1,col2)
  1226. text.TextStrokeColor3 = col2
  1227. text.TextColor3 = col1
  1228. text.Text = name
  1229. end
  1230. mouse=Player:GetMouse()
  1231. --save shoulders
  1232. RSH, LSH=nil, nil
  1233. --welds
  1234. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1235. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1236. LH=Torso["Left Hip"]
  1237. RH=Torso["Right Hip"]
  1238. TorsoColor=Torso.BrickColor
  1239. function NoOutline(Part)
  1240. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1241. end
  1242. player=Player
  1243. ch=Character
  1244. RSH=ch.Torso["Right Shoulder"]
  1245. LSH=ch.Torso["Left Shoulder"]
  1246. --
  1247. RSH.Parent=nil
  1248. LSH.Parent=nil
  1249. --
  1250. RW.Name="Right Shoulder"
  1251. RW.Part0=ch.Torso
  1252. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1253. RW.C1=cf(0, 0.5, 0)
  1254. RW.Part1=ch["Right Arm"]
  1255. RW.Parent=ch.Torso
  1256. --
  1257. LW.Name="Left Shoulder"
  1258. LW.Part0=ch.Torso
  1259. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1260. LW.C1=cf(0, 0.5, 0)
  1261. LW.Part1=ch["Left Arm"]
  1262. LW.Parent=ch.Torso
  1263.  
  1264. local Stats=Instance.new("BoolValue")
  1265. Stats.Name="Stats"
  1266. Stats.Parent=Character
  1267. local Atk=Instance.new("NumberValue")
  1268. Atk.Name="Damage"
  1269. Atk.Parent=Stats
  1270. Atk.Value=1
  1271. local Def=Instance.new("NumberValue")
  1272. Def.Name="Defense"
  1273. Def.Parent=Stats
  1274. Def.Value=1
  1275. local Speed=Instance.new("NumberValue")
  1276. Speed.Name="Speed"
  1277. Speed.Parent=Stats
  1278. Speed.Value=1
  1279. local Mvmt=Instance.new("NumberValue")
  1280. Mvmt.Name="Movement"
  1281. Mvmt.Parent=Stats
  1282. Mvmt.Value=1
  1283.  
  1284. local donum=0
  1285.  
  1286.  
  1287. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1288. local fp=it("Part")
  1289. fp.formFactor=formfactor
  1290. fp.Parent=parent
  1291. fp.Reflectance=reflectance
  1292. fp.Transparency=transparency
  1293. fp.CanCollide=false
  1294. fp.Locked=true
  1295. fp.BrickColor=brickcolor
  1296. fp.Name=name
  1297. fp.Size=size
  1298. fp.Position=Torso.Position
  1299. NoOutline(fp)
  1300. fp.Material="SmoothPlastic"
  1301. fp:BreakJoints()
  1302. return fp
  1303. end
  1304.  
  1305. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1306. local mesh=it(Mesh)
  1307. mesh.Parent=part
  1308. if Mesh=="SpecialMesh" then
  1309. mesh.MeshType=meshtype
  1310. if meshid~="nil" then
  1311. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1312. end
  1313. end
  1314. mesh.Offset=offset
  1315. mesh.Scale=scale
  1316. return mesh
  1317. end
  1318.  
  1319. function weld(parent,part0,part1,c0)
  1320. local weld=it("Weld")
  1321. weld.Parent=parent
  1322. weld.Part0=part0
  1323. weld.Part1=part1
  1324. weld.C0=c0
  1325. return weld
  1326. end
  1327.  
  1328. local Color1=Torso.BrickColor
  1329.  
  1330. local bodvel=Instance.new("BodyVelocity")
  1331. local bg=Instance.new("BodyGyro")
  1332.  
  1333. function swait(num)
  1334. if num==0 or num==nil then
  1335. game:service'RunService'.Stepped:wait(0)
  1336. else
  1337. for i=0,num do
  1338. game:service'RunService'.Stepped:wait(0)
  1339. end
  1340. end
  1341. end
  1342.  
  1343. -------- RAINBOW LEAVE IT TO ME
  1344. local r = 255
  1345. local g = 0
  1346. local b = 0
  1347. coroutine.resume(coroutine.create(function()
  1348. while wait() do
  1349. for i = 0, 254/5 do
  1350. swait()
  1351. g = g + 5
  1352. end
  1353. for i = 0, 254/5 do
  1354. swait()
  1355. r = r - 5
  1356. end
  1357. for i = 0, 254/5 do
  1358. swait()
  1359. b = b + 5
  1360. end
  1361. for i = 0, 254/5 do
  1362. swait()
  1363. g = g - 5
  1364. end
  1365. for i = 0, 254/5 do
  1366. swait()
  1367. r = r + 5
  1368. end
  1369. for i = 0, 254/5 do
  1370. swait()
  1371. b = b - 5
  1372. end
  1373. end
  1374. end))
  1375.  
  1376.  
  1377. so = function(id,par,vol,pit)
  1378. coroutine.resume(coroutine.create(function()
  1379. local sou = Instance.new("Sound",par or workspace)
  1380. sou.Volume=vol
  1381. sou.Pitch=pit or 1
  1382. sou.SoundId=id
  1383. swait()
  1384. sou:play()
  1385. game:GetService("Debris"):AddItem(sou,6)
  1386. end))
  1387. end
  1388.  
  1389. function QuaternionSlerp(a, b, t)
  1390. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1391. local startInterp, finishInterp;
  1392. if cosTheta >= 0.0001 then
  1393. if (1 - cosTheta) > 0.0001 then
  1394. local theta = ACOS(cosTheta)
  1395. local invSinTheta = 1 / SIN(theta)
  1396. startInterp = SIN((1 - t) * theta) * invSinTheta
  1397. finishInterp = SIN(t * theta) * invSinTheta
  1398. else
  1399. startInterp = 1 - t
  1400. finishInterp = t
  1401. end
  1402. else
  1403. if (1 + cosTheta) > 0.0001 then
  1404. local theta = ACOS(-cosTheta)
  1405. local invSinTheta = 1 / SIN(theta)
  1406. startInterp = SIN((t - 1) * theta) * invSinTheta
  1407. finishInterp = SIN(t * theta) * invSinTheta
  1408. else
  1409. startInterp = t - 1
  1410. finishInterp = t
  1411. end
  1412. end
  1413. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1414. end
  1415.  
  1416. function Clerp(a,b,t)
  1417. local qa = {QuaternionFromCFrame(a)}
  1418. local qb = {QuaternionFromCFrame(b)}
  1419. local ax, ay, az = a.x, a.y, a.z
  1420. local bx, by, bz = b.x, b.y, b.z
  1421. local _t = 1-t
  1422. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1423. end
  1424.  
  1425. function QuaternionFromCFrame(cf)
  1426. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1427. local trace = m00 + m11 + m22
  1428. if trace > 0 then
  1429. local s = math.sqrt(1 + trace)
  1430. local recip = 0.5/s
  1431. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1432. else
  1433. local i = 0
  1434. if m11 > m00 then
  1435. i = 1
  1436. end
  1437. if m22 > (i == 0 and m00 or m11) then
  1438. i = 2
  1439. end
  1440. if i == 0 then
  1441. local s = math.sqrt(m00-m11-m22+1)
  1442. local recip = 0.5/s
  1443. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1444. elseif i == 1 then
  1445. local s = math.sqrt(m11-m22-m00+1)
  1446. local recip = 0.5/s
  1447. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1448. elseif i == 2 then
  1449. local s = math.sqrt(m22-m00-m11+1)
  1450. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1451. end
  1452. end
  1453. end
  1454.  
  1455. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1456. local xs, ys, zs = x + x, y + y, z + z
  1457. local wx, wy, wz = w*xs, w*ys, w*zs
  1458. local xx = x*xs
  1459. local xy = x*ys
  1460. local xz = x*zs
  1461. local yy = y*ys
  1462. local yz = y*zs
  1463. local zz = z*zs
  1464. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1465. end
  1466.  
  1467. function QuaternionSlerp(a, b, t)
  1468. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1469. local startInterp, finishInterp;
  1470. if cosTheta >= 0.0001 then
  1471. if (1 - cosTheta) > 0.0001 then
  1472. local theta = math.acos(cosTheta)
  1473. local invSinTheta = 1/math.sin(theta)
  1474. startInterp = math.sin((1-t)*theta)*invSinTheta
  1475. finishInterp = math.sin(t*theta)*invSinTheta
  1476. else
  1477. startInterp = 1-t
  1478. finishInterp = t
  1479. end
  1480. else
  1481. if (1+cosTheta) > 0.0001 then
  1482. local theta = math.acos(-cosTheta)
  1483. local invSinTheta = 1/math.sin(theta)
  1484. startInterp = math.sin((t-1)*theta)*invSinTheta
  1485. finishInterp = math.sin(t*theta)*invSinTheta
  1486. else
  1487. startInterp = t-1
  1488. finishInterp = t
  1489. end
  1490. end
  1491. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1492. end
  1493.  
  1494. local function CFrameFromTopBack(at, top, back)
  1495. local right = top:Cross(back)
  1496. return CFrame.new(at.x, at.y, at.z,
  1497. right.x, top.x, back.x,
  1498. right.y, top.y, back.y,
  1499. right.z, top.z, back.z)
  1500. end
  1501.  
  1502. function Triangle(a, b, c)
  1503. local edg1 = (c-a):Dot((b-a).unit)
  1504. local edg2 = (a-b):Dot((c-b).unit)
  1505. local edg3 = (b-c):Dot((a-c).unit)
  1506. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1507. a, b, c = a, b, c
  1508. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1509. a, b, c = b, c, a
  1510. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1511. a, b, c = c, a, b
  1512. else
  1513. assert(false, "unreachable")
  1514. end
  1515.  
  1516. local len1 = (c-a):Dot((b-a).unit)
  1517. local len2 = (b-a).magnitude - len1
  1518. local width = (a + (b-a).unit*len1 - c).magnitude
  1519.  
  1520. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1521.  
  1522. local list = {}
  1523.  
  1524. if len1 > 0.01 then
  1525. local w1 = Instance.new('WedgePart', m)
  1526. game:GetService("Debris"):AddItem(w1,5)
  1527. w1.Material = "SmoothPlastic"
  1528. w1.FormFactor = 'Custom'
  1529. w1.BrickColor = BrickColor.new("Really red")
  1530. w1.Transparency = 0
  1531. w1.Reflectance = 0
  1532. w1.Material = "SmoothPlastic"
  1533. w1.CanCollide = false
  1534. local l1 = Instance.new("PointLight",w1)
  1535. l1.Color = Color3.new(170,0,0)
  1536. NoOutline(w1)
  1537. local sz = Vector3.new(0.2, width, len1)
  1538. w1.Size = sz
  1539. local sp = Instance.new("SpecialMesh",w1)
  1540. sp.MeshType = "Wedge"
  1541. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1542. w1:BreakJoints()
  1543. w1.Anchored = true
  1544. w1.Parent = workspace
  1545. w1.Transparency = 0.7
  1546. table.insert(Effects,{w1,"Disappear",.01})
  1547. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1548. table.insert(list,w1)
  1549. end
  1550.  
  1551. if len2 > 0.01 then
  1552. local w2 = Instance.new('WedgePart', m)
  1553. game:GetService("Debris"):AddItem(w2,5)
  1554. w2.Material = "SmoothPlastic"
  1555. w2.FormFactor = 'Custom'
  1556. w2.BrickColor = BrickColor.new("Really red")
  1557. w2.Transparency = 0
  1558. w2.Reflectance = 0
  1559. w2.Material = "SmoothPlastic"
  1560. w2.CanCollide = false
  1561. local l2 = Instance.new("PointLight",w2)
  1562. l2.Color = Color3.new(170,0,0)
  1563. NoOutline(w2)
  1564. local sz = Vector3.new(0.2, width, len2)
  1565. w2.Size = sz
  1566. local sp = Instance.new("SpecialMesh",w2)
  1567. sp.MeshType = "Wedge"
  1568. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1569. w2:BreakJoints()
  1570. w2.Anchored = true
  1571. w2.Parent = workspace
  1572. w2.Transparency = 0.7
  1573. table.insert(Effects,{w2,"Disappear",.01})
  1574. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1575. table.insert(list,w2)
  1576. end
  1577. return unpack(list)
  1578. end
  1579.  
  1580.  
  1581. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1582. if hit.Parent == nil then
  1583. return
  1584. end
  1585. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1586. for _, v in pairs(hit.Parent:children()) do
  1587. if v:IsA("Humanoid") then
  1588. h = v
  1589. end
  1590. end
  1591. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1592. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1593. return
  1594. end
  1595. local c = Create("ObjectValue")({
  1596. Name = "creator",
  1597. Value = game:service("Players").LocalPlayer,
  1598. Parent = h
  1599. })
  1600. game:GetService("Debris"):AddItem(c, 0.5)
  1601. if HitSound ~= nil and HitPitch ~= nil then
  1602. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1603. end
  1604. local Damage = math.random(minim, maxim)
  1605. local blocked = false
  1606. local block = hit.Parent:findFirstChild("Block")
  1607. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1608. blocked = true
  1609. block.Value = block.Value - 1
  1610. print(block.Value)
  1611. end
  1612. if blocked == false then
  1613. HitHealth = h.Health
  1614. h.Health = h.Health - Damage
  1615. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1616. print("gained kill")
  1617. end
  1618. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1619. else
  1620. h.Health = h.Health - Damage / 2
  1621. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1622. end
  1623. if Type == "Knockdown" then
  1624. local hum = hit.Parent.Humanoid
  1625. hum.PlatformStand = true
  1626. coroutine.resume(coroutine.create(function(HHumanoid)
  1627. swait(1)
  1628. HHumanoid.PlatformStand = false
  1629. end), hum)
  1630. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1631. local bodvol = Create("BodyVelocity")({
  1632. velocity = angle * knockback,
  1633. P = 5000,
  1634. maxForce = Vector3.new(8000, 8000, 8000),
  1635. Parent = hit
  1636. })
  1637. local rl = Create("BodyAngularVelocity")({
  1638. P = 3000,
  1639. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1640. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1641. Parent = hit
  1642. })
  1643. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1644. game:GetService("Debris"):AddItem(rl, 0.5)
  1645. elseif Type == "Normal" then
  1646. local vp = Create("BodyVelocity")({
  1647. P = 500,
  1648. maxForce = Vector3.new(math.huge, 0, math.huge),
  1649. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1650. })
  1651. if knockback > 0 then
  1652. vp.Parent = hit.Parent.Head
  1653. end
  1654. game:GetService("Debris"):AddItem(vp, 0.5)
  1655. elseif Type == "Up" then
  1656. local bodyVelocity = Create("BodyVelocity")({
  1657. velocity = Vector3.new(0, 20, 0),
  1658. P = 5000,
  1659. maxForce = Vector3.new(8000, 8000, 8000),
  1660. Parent = hit
  1661. })
  1662. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1663. local bodyVelocity = Create("BodyVelocity")({
  1664. velocity = Vector3.new(0, 20, 0),
  1665. P = 5000,
  1666. maxForce = Vector3.new(8000, 8000, 8000),
  1667. Parent = hit
  1668. })
  1669. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1670. elseif Type == "Leech" then
  1671. local hum = hit.Parent.Humanoid
  1672. if hum ~= nil then
  1673. for i = 0, 2 do
  1674. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1675. end
  1676. Humanoid.Health = Humanoid.Health + 10
  1677. end
  1678. elseif Type == "UpKnock" then
  1679. local hum = hit.Parent.Humanoid
  1680. hum.PlatformStand = true
  1681. if hum ~= nil then
  1682. hitr = true
  1683. end
  1684. coroutine.resume(coroutine.create(function(HHumanoid)
  1685. swait(5)
  1686. HHumanoid.PlatformStand = false
  1687. hitr = false
  1688. end), hum)
  1689. local bodyVelocity = Create("BodyVelocity")({
  1690. velocity = Vector3.new(0, 20, 0),
  1691. P = 5000,
  1692. maxForce = Vector3.new(8000, 8000, 8000),
  1693. Parent = hit
  1694. })
  1695. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1696. local bodyVelocity = Create("BodyVelocity")({
  1697. velocity = Vector3.new(0, 20, 0),
  1698. P = 5000,
  1699. maxForce = Vector3.new(8000, 8000, 8000),
  1700. Parent = hit
  1701. })
  1702. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1703. elseif Type == "Snare" then
  1704. local bp = Create("BodyPosition")({
  1705. P = 2000,
  1706. D = 100,
  1707. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1708. position = hit.Parent.Torso.Position,
  1709. Parent = hit.Parent.Torso
  1710. })
  1711. game:GetService("Debris"):AddItem(bp, 1)
  1712. elseif Type == "Slashnare" then
  1713. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1714. for i = 1, math.random(4, 5) do
  1715. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1716. end
  1717. local bp = Create("BodyPosition")({
  1718. P = 2000,
  1719. D = 100,
  1720. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1721. position = hit.Parent.Torso.Position,
  1722. Parent = hit.Parent.Torso
  1723. })
  1724. game:GetService("Debris"):AddItem(bp, 1)
  1725. elseif Type == "Spike" then
  1726. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1727. local bp = Create("BodyPosition")({
  1728. P = 2000,
  1729. D = 100,
  1730. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1731. position = hit.Parent.Torso.Position,
  1732. Parent = hit.Parent.Torso
  1733. })
  1734. game:GetService("Debris"):AddItem(bp, 1)
  1735. elseif Type == "Freeze" then
  1736. local BodPos = Create("BodyPosition")({
  1737. P = 50000,
  1738. D = 1000,
  1739. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1740. position = hit.Parent.Torso.Position,
  1741. Parent = hit.Parent.Torso
  1742. })
  1743. local BodGy = Create("BodyGyro")({
  1744. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1745. P = 20000,
  1746. Parent = hit.Parent.Torso,
  1747. cframe = hit.Parent.Torso.CFrame
  1748. })
  1749. hit.Parent.Torso.Anchored = true
  1750. coroutine.resume(coroutine.create(function(Part)
  1751. swait(1.5)
  1752. Part.Anchored = false
  1753. end), hit.Parent.Torso)
  1754. game:GetService("Debris"):AddItem(BodPos, 3)
  1755. game:GetService("Debris"):AddItem(BodGy, 3)
  1756. end
  1757. local debounce = Create("BoolValue")({
  1758. Name = "DebounceHit",
  1759. Parent = hit.Parent,
  1760. Value = true
  1761. })
  1762. game:GetService("Debris"):AddItem(debounce, Delay)
  1763. c = Instance.new("ObjectValue")
  1764. c.Name = "creator"
  1765. c.Value = Player
  1766. c.Parent = h
  1767. game:GetService("Debris"):AddItem(c, 0.5)
  1768. end
  1769. end
  1770. function ShowDamage(Pos, Text, Time, Color)
  1771. local Rate = 0.03333333333333333
  1772. local Pos = Pos or Vector3.new(0, 0, 0)
  1773. local Text = Text or ""
  1774. local Time = Time or 2
  1775. local Color = Color or Color3.new(1, 0, 1)
  1776. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1777. EffectPart.Anchored = true
  1778. local BillboardGui = Create("BillboardGui")({
  1779. Size = UDim2.new(3, 0, 3, 0),
  1780. Adornee = EffectPart,
  1781. Parent = EffectPart
  1782. })
  1783. local TextLabel = Create("TextLabel")({
  1784. BackgroundTransparency = 1,
  1785. Size = UDim2.new(1, 0, 1, 0),
  1786. Text = Text,
  1787. TextColor3 = Color,
  1788. TextScaled = true,
  1789. Font = Enum.Font.ArialBold,
  1790. Parent = BillboardGui
  1791. })
  1792. game.Debris:AddItem(EffectPart, Time + 0.1)
  1793. EffectPart.Parent = game:GetService("Workspace")
  1794. delay(0, function()
  1795. local Frames = Time / Rate
  1796. for Frame = 1, Frames do
  1797. wait(Rate)
  1798. local Percent = Frame / Frames
  1799. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1800. TextLabel.TextTransparency = Percent
  1801. end
  1802. if EffectPart and EffectPart.Parent then
  1803. EffectPart:Destroy()
  1804. end
  1805. end)
  1806. end
  1807. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1808. for _, c in pairs(workspace:children()) do
  1809. local hum = c:findFirstChildOfClass("Humanoid")
  1810. if hum ~= nil then
  1811. local head = c:findFirstChild("Head")
  1812. if head ~= nil then
  1813. local targ = head.Position - Part.Position
  1814. local mag = targ.magnitude
  1815. if magni >= mag and c.Name ~= Player.Name then
  1816. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1817. end
  1818. end
  1819. end
  1820. end
  1821. end
  1822.  
  1823. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1824. for _, c in pairs(workspace:children()) do
  1825. local hum = c:findFirstChild("Humanoid")
  1826. if hum ~= nil then
  1827. local head = c:findFirstChild("Torso")
  1828. if head ~= nil then
  1829. local targ = head.Position - Part.Position
  1830. local mag = targ.magnitude
  1831. if magni >= mag and c.Name ~= Player.Name then
  1832. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1833. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1834. end
  1835. end
  1836. end
  1837. end
  1838. end
  1839.  
  1840. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1841. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1842. end
  1843.  
  1844. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1845. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1846. prt.Anchored=true
  1847. prt.CFrame=cframe
  1848. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1849. --http://www.roblox.com/asset/?id=4770560
  1850. game:GetService("Debris"):AddItem(prt,2)
  1851. CF=prt.CFrame
  1852. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1853. for i=0,1,0.2 do
  1854. wait()
  1855. Part.CFrame=CF*cf(0,0,-0.4)
  1856. end
  1857. for i=0,1,delay do
  1858. wait()
  1859. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1860. Mesh.Scale=Mesh.Scale
  1861. end
  1862. for i=0,1,0.1 do
  1863. wait()
  1864. Part.Transparency=i
  1865. end
  1866. Part.Parent=nil
  1867. end),prt,msh,CF)
  1868. end
  1869.  
  1870. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1871. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1872. prt.Anchored=true
  1873. prt.Material = "Neon"
  1874. prt.CFrame=cframe
  1875. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1876. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1877. game:GetService("Debris"):AddItem(prt,5)
  1878. coroutine.resume(coroutine.create(function(Part,Mesh)
  1879. for i=0,1,delay do
  1880. swait()
  1881. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1882. Part.Transparency=i
  1883. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1884. end
  1885. Part.Parent=nil
  1886. end),prt,msh)
  1887. end
  1888.  
  1889. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1890. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1891. prt.Anchored=true
  1892. prt.Material = "Neon"
  1893. prt.CFrame=cframe
  1894. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1895. game:GetService("Debris"):AddItem(prt,5)
  1896. coroutine.resume(coroutine.create(function(Part,Mesh)
  1897. local rtype = rottype
  1898. for i=0,1,delay do
  1899. swait()
  1900. if rtype == 1 then
  1901. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1902. elseif rtype == 2 then
  1903. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1904. end
  1905. Part.Transparency=i
  1906. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1907. end
  1908. Part.Parent=nil
  1909. end),prt,msh)
  1910. end
  1911.  
  1912. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1913. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1914. prt.Anchored=true
  1915. prt.CFrame=cframe
  1916. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1917. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1918. game:GetService("Debris"):AddItem(prt,5)
  1919. coroutine.resume(coroutine.create(function(Part,Mesh)
  1920. for i=0,1,delay do
  1921. wait()
  1922. Part.Transparency=i
  1923. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1924. end
  1925. Part.Parent=nil
  1926. end),prt,msh)
  1927. end
  1928.  
  1929. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1930. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1931. prt.Anchored=true
  1932. prt.Material = "Neon"
  1933. prt.CFrame=cframe
  1934. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1935. game:GetService("Debris"):AddItem(prt,5)
  1936. coroutine.resume(coroutine.create(function(Part,Mesh)
  1937. local rtype = rottype
  1938. for i=0,1,delay do
  1939. swait()
  1940. if rtype == 1 then
  1941. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1942. elseif rtype == 2 then
  1943. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1944. end
  1945. Part.Transparency=i
  1946. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1947. end
  1948. Part.Parent=nil
  1949. end),prt,msh)
  1950. end
  1951.  
  1952. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1953. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1954. prt.Anchored=true
  1955. prt.Material = "Neon"
  1956. prt.CFrame=cframe
  1957. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1958. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1959. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1960. game:GetService("Debris"):AddItem(prt,5)
  1961. coroutine.resume(coroutine.create(function(Part,Mesh)
  1962. local rtype = rottype
  1963. for i=0,1,delay do
  1964. swait()
  1965. if rtype == 1 then
  1966. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1967. elseif rtype == 2 then
  1968. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1969. end
  1970. dec.Transparency=i
  1971. dec2.Transparency=i
  1972. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1973. end
  1974. Part.Parent=nil
  1975. end),prt,msh)
  1976. end
  1977.  
  1978. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1979. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1980. prt.Anchored=true
  1981. prt.Material = "Neon"
  1982. prt.CFrame=cframe
  1983. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1984. game:GetService("Debris"):AddItem(prt,5)
  1985. coroutine.resume(coroutine.create(function(Part,Mesh)
  1986. local rtype = rottype
  1987. for i=0,1,delay do
  1988. swait()
  1989. if rtype == 1 then
  1990. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1991. elseif rtype == 2 then
  1992. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1993. end
  1994. prt.Transparency=i
  1995. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1996. end
  1997. Part.Parent=nil
  1998. end),prt,msh)
  1999. end
  2000.  
  2001. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2002. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2003. prt.Anchored=true
  2004. prt.Material = "Neon"
  2005. prt.CFrame=cframe
  2006. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2007. game:GetService("Debris"):AddItem(prt,5)
  2008. coroutine.resume(coroutine.create(function(Part,Mesh)
  2009. local rtype = rottype
  2010. for i=0,1,delay do
  2011. swait()
  2012. if rtype == 1 then
  2013. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2014. elseif rtype == 2 then
  2015. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2016. end
  2017. prt.Transparency=i
  2018. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2019. end
  2020. Part.Parent=nil
  2021. end),prt,msh)
  2022. end
  2023.  
  2024. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2025. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2026. prt.Anchored=true
  2027. prt.Material = "Neon"
  2028. prt.CFrame=cframe
  2029. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. local rtype = rottype
  2033. for i=0,1,delay do
  2034. swait()
  2035. if rtype == 1 then
  2036. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2037. elseif rtype == 2 then
  2038. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2039. end
  2040. prt.Transparency=i
  2041. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2042. end
  2043. Part.Parent=nil
  2044. end),prt,msh)
  2045. end
  2046.  
  2047. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2048. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2049. prt.Anchored=true
  2050. prt.Material = "Neon"
  2051. prt.CFrame=cframe
  2052. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2053. game:GetService("Debris"):AddItem(prt,5)
  2054. coroutine.resume(coroutine.create(function(Part,Mesh)
  2055. local rtype = rottype
  2056. for i=0,1,delay do
  2057. swait()
  2058. if rtype == 1 then
  2059. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2060. elseif rtype == 2 then
  2061. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2062. end
  2063. prt.Transparency=i
  2064. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2065. end
  2066. Part.Parent=nil
  2067. end),prt,msh)
  2068. end
  2069.  
  2070. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2071. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2072. prt.Anchored=false
  2073. prt.CFrame=cframe
  2074. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2075. local wld=weld(prt,prt,Parent,cframe)
  2076. game:GetService("Debris"):AddItem(prt,5)
  2077. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2078. for i=0,1,delay do
  2079. wait()
  2080. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2081. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2082. Part.Transparency=i
  2083. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2084. end
  2085. Part.Parent=nil
  2086. end),prt,msh,wld)
  2087. end
  2088.  
  2089. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2090. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2091. prt.Anchored=false
  2092. prt.CFrame=cframe
  2093. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2094. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2095. game:GetService("Debris"):AddItem(prt,5)
  2096. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2097. for i=0,1,delay do
  2098. wait()
  2099. Weld.C0=euler(i*20,0,0)
  2100. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2101. Part.Transparency=i
  2102. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2103. end
  2104. Part.Parent=nil
  2105. end),prt,msh,wld)
  2106. end
  2107.  
  2108. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2109. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2110. prt.Anchored=true
  2111. prt.CFrame=cframe
  2112. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2113. game:GetService("Debris"):AddItem(prt,2)
  2114. coroutine.resume(coroutine.create(function(Part,Mesh)
  2115. for i=0,1,delay do
  2116. wait()
  2117. Part.CFrame=Part.CFrame
  2118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2119. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt2.Anchored=true
  2121. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2122. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2123. game:GetService("Debris"):AddItem(prt2,2)
  2124. coroutine.resume(coroutine.create(function(Part,Mesh)
  2125. for i=0,1,0.1 do
  2126. wait()
  2127. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2128. end
  2129. Part.Parent=nil
  2130. end),prt2,msh2)
  2131. end
  2132. for i=0,1,delay*2 do
  2133. wait()
  2134. Part.CFrame=Part.CFrame
  2135. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2136. end
  2137. Part.Parent=nil
  2138. end),prt,msh)
  2139. end
  2140.  
  2141. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2142. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2143. prt.Anchored=true
  2144. prt.CFrame=cframe
  2145. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2146. game:GetService("Debris"):AddItem(prt,2)
  2147. coroutine.resume(coroutine.create(function(Part,Mesh)
  2148. for i=0,1,delay do
  2149. wait()
  2150. Part.CFrame=Part.CFrame
  2151. Part.Transparency=i
  2152. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2153. end
  2154. Part.Parent=nil
  2155. end),prt,msh)
  2156. end
  2157.  
  2158. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2159. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2160. prt.Anchored=true
  2161. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2162. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2163. game:GetService("Debris"):AddItem(prt,2)
  2164. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2165. CF=Part.CFrame
  2166. Numbb=0
  2167. randnumb=math.random()/10
  2168. rand1=math.random()/10
  2169. for i=0,1,rand1 do
  2170. wait()
  2171. CF=CF*cf(0,math.random()/2,0)
  2172. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2173. Part.CFrame=CF*euler(Numbb,0,0)
  2174. Part.Transparency=i
  2175. Numbb=Numbb+randnumb
  2176. end
  2177. Part.Parent=nil
  2178. end),prt,CF,Numbb,randnumb)
  2179. end
  2180.  
  2181. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2182. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2183. prt.Anchored=true
  2184. prt.CFrame=cframe
  2185. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2186. game:GetService("Debris"):AddItem(prt,5)
  2187. coroutine.resume(coroutine.create(function(Part,Mesh)
  2188. for i=0,1,delay do
  2189. wait()
  2190. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2191. Part.Transparency=i
  2192. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2193. end
  2194. Part.Parent=nil
  2195. end),prt,msh)
  2196. end
  2197.  
  2198. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2199. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2200. prt.Anchored=true
  2201. prt.CFrame=cframe
  2202. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,2)
  2204. coroutine.resume(coroutine.create(function(Part,Mesh)
  2205. for i=0,1,delay do
  2206. wait()
  2207. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2208. Part.Transparency=i
  2209. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2210. end
  2211. Part.Parent=nil
  2212. end),prt,msh)
  2213. end
  2214.  
  2215. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2216. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2217. prt.Anchored=true
  2218. prt.CFrame=cframe*cf(x,y,z)
  2219. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2220. game:GetService("Debris"):AddItem(prt,5)
  2221. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2222. local num=math.random()
  2223. local num2=math.random(-3,2)+math.random()
  2224. local numm=0
  2225. for i=0,1,delay*2 do
  2226. swait()
  2227. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2228. Part.Transparency=i
  2229. numm=numm+0.01
  2230. end
  2231. Part.Parent=nil
  2232. Mesh.Parent=nil
  2233. end),prt,msh,x,y,z)
  2234. end
  2235.  
  2236. function dmgstart(dmg,what)
  2237. hitcon = what.Touched:connect(function(hit)
  2238. local hum = hit.Parent:FindFirstChild("Humanoid")
  2239. if hum and not hum:IsDescendantOf(Character) then
  2240. hum:TakeDamage(dmg)
  2241. end
  2242. end)
  2243. end
  2244.  
  2245. function dmgstop()
  2246. hitcon:disconnect()
  2247. end
  2248.  
  2249. function Cloak()
  2250. Face.Parent=nil
  2251. cloaked=true
  2252. for _,v in pairs(Torso.Parent:children()) do
  2253. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2254. coroutine.resume(coroutine.create(function()
  2255. for i=0,1,0.2 do
  2256. wait()
  2257. v.Transparency=i
  2258. end
  2259. v.Transparency=1
  2260. end))
  2261. end
  2262. if v.className=="Hat" then
  2263. hatp=v.Handle
  2264. coroutine.resume(coroutine.create(function(derp)
  2265. for i=0,1,0.2 do
  2266. wait()
  2267. derp.Transparency=i
  2268. end
  2269. derp.Transparency=1
  2270. end),hatp)
  2271. end
  2272. end
  2273. for _,v in pairs(m:children()) do
  2274. if v.className=="Part" then
  2275. coroutine.resume(coroutine.create(function()
  2276. for i=0,1,0.2 do
  2277. wait()
  2278. v.Transparency=i
  2279. end
  2280. v.Transparency=1
  2281. end))
  2282. end
  2283. end
  2284. end
  2285.  
  2286. function UnCloak()
  2287. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2288. Face.Parent=Head
  2289. cloaked=false
  2290. for _,v in pairs(Torso.Parent:children()) do
  2291. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2292. coroutine.resume(coroutine.create(function()
  2293. for i=0,1,0.1 do
  2294. wait()
  2295. v.Transparency=v.Transparency-0.1
  2296. end
  2297. v.Transparency=0
  2298. end))
  2299. end
  2300. if v.className=="Hat" then
  2301. hatp=v.Handle
  2302. coroutine.resume(coroutine.create(function(derp)
  2303. for i=0,1,0.1 do
  2304. wait()
  2305. derp.Transparency=derp.Transparency-0.1
  2306. end
  2307. derp.Transparency=0
  2308. end),hatp)
  2309. end
  2310. end
  2311. for _,v in pairs(m:children()) do
  2312. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2313. coroutine.resume(coroutine.create(function()
  2314. for i=0,1,0.1 do
  2315. wait()
  2316. v.Transparency=v.Transparency-0.1
  2317. end
  2318. v.Transparency=0
  2319. end))
  2320. v.Transparency=0
  2321. end
  2322. end
  2323. end
  2324.  
  2325. local origcolor = BrickColor.new("Pastel light blue")
  2326. ---- This section of explosions.
  2327. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2328. local expart = Instance.new("Part",char)
  2329. local expart2 = Instance.new("Part",char)
  2330. local rin = Instance.new("Part",char)
  2331. local rin2 = Instance.new("Part",char)
  2332. local partMesh = Instance.new("SpecialMesh",expart)
  2333. partMesh.MeshType = "Sphere"
  2334. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2335. partMesh2.MeshType = "Sphere"
  2336. local partMesh3 = Instance.new("SpecialMesh",rin)
  2337. partMesh3.MeshType = "Brick"
  2338. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2339. partMesh4.MeshType = "Brick"
  2340. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2341. partMesh.Scale = vt(rad,rad,rad)
  2342. expart.Size = vt(1,1,1)
  2343. expart.Transparency = 0
  2344. expart.Anchored = true
  2345. expart.Material = "Neon"
  2346. expart.BrickColor = bc("White")
  2347. expart.CFrame = par.CFrame
  2348. partMesh2.Scale = vt(rad,rad,rad)
  2349. expart2.Size = vt(1.15,1.15,1.15)
  2350. expart2.Transparency = 0.5
  2351. expart2.Anchored = true
  2352. expart2.Material = "Neon"
  2353. expart2.BrickColor = par.BrickColor
  2354. expart2.CFrame = par.CFrame
  2355. rin.Size = vt(1.15,1.15,1.15)
  2356. rin.Transparency = 1
  2357. rin.Anchored = true
  2358. rin.Material = "Neon"
  2359. rin.BrickColor = par.BrickColor
  2360. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2361. rin2.Size = vt(1.15,1.15,1.15)
  2362. rin2.Transparency = 1
  2363. rin2.Anchored = true
  2364. rin2.Material = "Neon"
  2365. rin2.BrickColor = par.BrickColor
  2366. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2367. partMesh3.Scale = vt(0,1,0)
  2368. partMesh4.Scale = vt(0,1,0)
  2369. local dec2 = Instance.new("Decal", rin)
  2370. dec2.Face = "Top"
  2371. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2372. dec2.Parent = rin
  2373. local dec2b = dec2:Clone()
  2374. dec2b.Face = "Bottom"
  2375. dec2b.Parent = rin
  2376.  
  2377. local dec2a = Instance.new("Decal", rin2)
  2378. dec2a.Face = "Top"
  2379. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2380. dec2a.Parent = rin2
  2381. local dec2ab = dec2a:Clone()
  2382. dec2ab.Face = "Bottom"
  2383. dec2ab.Parent = rin2
  2384. expart.CanCollide = false
  2385. expart2.CanCollide = false
  2386. rin.CanCollide = false
  2387. rin2.CanCollide = false
  2388. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2389. local value = 1*rad/6.5
  2390. for i = 0, 199 do
  2391. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2392. expart.CFrame = expart.CFrame
  2393. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2394. expart2.CFrame = expart.CFrame
  2395. value = value - 0.035*rad/30
  2396. if value < 7.5 then
  2397. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2398. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2399. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2400. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2401. end
  2402. if value < 0 then
  2403. dec2.Transparency = dec2.Transparency + 0.025
  2404. dec2a.Transparency = dec2a.Transparency + 0.025
  2405. dec2b.Transparency = dec2b.Transparency + 0.025
  2406. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2407. expart.Transparency = expart.Transparency + 0.025
  2408. expart2.Transparency = expart2.Transparency + 0.025
  2409. rin.Transparency = rin.Transparency + 0.025
  2410. rin2.Transparency = rin2.Transparency + 0.025
  2411. end
  2412. swait()
  2413. end
  2414. game:GetService("Debris"):AddItem(expart, 1)
  2415. game:GetService("Debris"):AddItem(expart2, 1)
  2416. game:GetService("Debris"):AddItem(rin, 1)
  2417. game:GetService("Debris"):AddItem(rin2, 1)
  2418. end
  2419.  
  2420. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2421. local expart = Instance.new("Part",char)
  2422. local expart2 = Instance.new("Part",char)
  2423. local partMesh = Instance.new("SpecialMesh",expart)
  2424. partMesh.MeshType = "Sphere"
  2425. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2426. partMesh2.MeshType = "Sphere"
  2427. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2428. partMesh.Scale = vt(rad,rad,rad)
  2429. expart.Size = vt(1,1,1)
  2430. expart.Transparency = 0
  2431. expart.Anchored = true
  2432. expart.Material = "Neon"
  2433. expart.BrickColor = bc("White")
  2434. expart.CFrame = par.CFrame
  2435. partMesh2.Scale = vt(rad,rad,rad)
  2436. expart2.Size = vt(1.15,1.15,1.15)
  2437. expart2.Transparency = 0.5
  2438. expart2.Anchored = true
  2439. expart2.Material = "Neon"
  2440. expart2.BrickColor = par.BrickColor
  2441. expart2.CFrame = par.CFrame
  2442. expart.CanCollide = false
  2443. expart2.CanCollide = false
  2444. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2445. local value = 1*rad/6.5
  2446. for i = 0, 75 do
  2447. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2448. expart.CFrame = expart.CFrame
  2449. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2450. expart2.CFrame = expart.CFrame
  2451. value = value - 0.035*rad/5
  2452. if value < 0 then
  2453. value = 0
  2454. expart.Transparency = expart.Transparency + 0.05
  2455. expart2.Transparency = expart2.Transparency + 0.05
  2456. end
  2457. swait()
  2458. end
  2459. game:GetService("Debris"):AddItem(expart, 1)
  2460. game:GetService("Debris"):AddItem(expart2, 1)
  2461. end
  2462.  
  2463. function AreaDanger(rad,par,mindam,maxdam)
  2464. local expart = Instance.new("Part",char)
  2465. local partMesh = Instance.new("SpecialMesh",expart)
  2466. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2467. partMesh.MeshType = "Sphere"
  2468. partMesh.Scale = vt(rad,rad,rad)
  2469. expart.Size = vt(1,1,1)
  2470. expart.Transparency = 0.5
  2471. expart.Anchored = true
  2472. expart.Material = "Neon"
  2473. expart.CanCollide = false
  2474. expart.BrickColor = par.BrickColor
  2475. expart.CFrame = par.CFrame
  2476. local value = 1*rad/5
  2477. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2478. for i = 0, 14 do
  2479. wait()
  2480. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2481. expart.CFrame = expart.CFrame
  2482. value = value - 0.035*rad
  2483. if value < 0 then
  2484. value = 0
  2485. end
  2486. end
  2487. wait(0.25)
  2488. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2489. wait(0.5)
  2490. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2491. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2492. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2493. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2494. for i = 0, 14 do
  2495. wait()
  2496. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2497. expart.CFrame = expart.CFrame
  2498. value = value - 0.035*rad/2
  2499. end
  2500. expart.Transparency = 1
  2501. game:GetService("Debris"):AddItem(expart, 5)
  2502. end
  2503.  
  2504. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2505. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2506. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2507. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2508. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2509. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2510. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2511. for i = 0, 24 do
  2512. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2513. end
  2514. for i = 0, 24 do
  2515. local expart = Instance.new("Part",char)
  2516. expart.Transparency = 1
  2517. expart.Anchored = true
  2518. expart.CanCollide = false
  2519. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2520. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2521. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2522. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2523. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2524. for i = 0, 9 do
  2525. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2526. end
  2527. game:GetService("Debris"):AddItem(expart, 2)
  2528. wait(0.1)
  2529. end
  2530. end
  2531.  
  2532. function EXterPlosion(par)
  2533. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2534. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2535. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2536. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2537. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2538. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2539. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2540. for i = 0, 24 do
  2541. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2542. end
  2543. for i = 0, 24 do
  2544. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2545. end
  2546. end
  2547. ----
  2548.  
  2549.  
  2550. function ring(type,pos,scale,value)
  2551. local type = type
  2552. local rng = Instance.new("Part", char)
  2553. rng.Anchored = true
  2554. rng.BrickColor = origcolor
  2555. rng.CanCollide = false
  2556. rng.FormFactor = 3
  2557. rng.Name = "Ring"
  2558. rng.Size = Vector3.new(1, 1, 1)
  2559. rng.Transparency = 0
  2560. rng.TopSurface = 0
  2561. rng.BottomSurface = 0
  2562. rng.CFrame = pos
  2563. local rngm = Instance.new("SpecialMesh", rng)
  2564. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2565. rngm.Scale = scale
  2566. local scaler2 = 1
  2567. if type == "Add" then
  2568. scaler2 = 1*value
  2569. elseif type == "Divide" then
  2570. scaler2 = 1/value
  2571. end
  2572. coroutine.resume(coroutine.create(function()
  2573. for i = 0,10,0.1 do
  2574. swait()
  2575. if type == "Add" then
  2576. scaler2 = scaler2 - 0.01*value
  2577. elseif type == "Divide" then
  2578. scaler2 = scaler2 - 0.01/value
  2579. end
  2580. rng.Transparency = rng.Transparency + 0.01
  2581. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2582. end
  2583. rng:Destroy()
  2584. end))
  2585. end
  2586.  
  2587.  
  2588. function wave(type,pos,scale,value)
  2589. local type = type
  2590. local rng = Instance.new("Part", char)
  2591. rng.Anchored = true
  2592. rng.BrickColor = origcolor
  2593. rng.CanCollide = false
  2594. rng.FormFactor = 3
  2595. rng.Name = "Ring"
  2596. rng.Size = Vector3.new(1, 1, 1)
  2597. rng.Transparency = 0
  2598. rng.TopSurface = 0
  2599. rng.BottomSurface = 0
  2600. rng.CFrame = pos
  2601. local rngm = Instance.new("SpecialMesh", rng)
  2602. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2603. rngm.Scale = scale
  2604. local scaler2 = 1
  2605. if type == "Add" then
  2606. scaler2 = 1*value
  2607. elseif type == "Divide" then
  2608. scaler2 = 1/value
  2609. end
  2610. coroutine.resume(coroutine.create(function()
  2611. for i = 0,10,0.1 do
  2612. swait()
  2613. if type == "Add" then
  2614. scaler2 = scaler2 - 0.01*value
  2615. elseif type == "Divide" then
  2616. scaler2 = scaler2 - 0.01/value
  2617. end
  2618. rng.Transparency = rng.Transparency + 0.01
  2619. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2620. end
  2621. rng:Destroy()
  2622. end))
  2623. end
  2624.  
  2625. function wind(type,pos,scale,value,speed)
  2626. local type = type
  2627. local rng = Instance.new("Part", char)
  2628. rng.Anchored = true
  2629. rng.BrickColor = origcolor
  2630. rng.CanCollide = false
  2631. rng.FormFactor = 3
  2632. rng.Name = "Ring"
  2633. rng.Size = Vector3.new(1, 1, 1)
  2634. rng.Transparency = 0
  2635. rng.TopSurface = 0
  2636. rng.BottomSurface = 0
  2637. rng.CFrame = pos
  2638. local rngm = Instance.new("SpecialMesh", rng)
  2639. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2640. rngm.Scale = scale
  2641. local scaler2 = 1
  2642. if type == "Add" then
  2643. scaler2 = 1*value
  2644. elseif type == "Divide" then
  2645. scaler2 = 1/value
  2646. end
  2647. coroutine.resume(coroutine.create(function()
  2648. for i = 0,10,0.1 do
  2649. swait()
  2650. if type == "Add" then
  2651. scaler2 = scaler2 - 0.01*value
  2652. elseif type == "Divide" then
  2653. scaler2 = scaler2 - 0.01/value
  2654. end
  2655. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2656. rng.Transparency = rng.Transparency + 0.01
  2657. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2658. end
  2659. rng:Destroy()
  2660. end))
  2661. end
  2662.  
  2663. function groundwind(type,pos,scale,value,speed)
  2664. local type = type
  2665. local rng = Instance.new("Part", char)
  2666. rng.Anchored = true
  2667. rng.BrickColor = origcolor
  2668. rng.CanCollide = false
  2669. rng.FormFactor = 3
  2670. rng.Name = "Ring"
  2671. rng.Size = Vector3.new(1, 1, 1)
  2672. rng.Transparency = 0
  2673. rng.TopSurface = 0
  2674. rng.BottomSurface = 0
  2675. rng.CFrame = pos
  2676. local rngm = Instance.new("SpecialMesh", rng)
  2677. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2678. rngm.Scale = scale
  2679. local scaler2 = 1
  2680. if type == "Add" then
  2681. scaler2 = 1*value
  2682. elseif type == "Divide" then
  2683. scaler2 = 1/value
  2684. end
  2685. coroutine.resume(coroutine.create(function()
  2686. for i = 0,10,0.1 do
  2687. swait()
  2688. if type == "Add" then
  2689. scaler2 = scaler2 - 0.01*value
  2690. elseif type == "Divide" then
  2691. scaler2 = scaler2 - 0.01/value
  2692. end
  2693. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2694. rng.Transparency = rng.Transparency + 0.01
  2695. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2696. end
  2697. rng:Destroy()
  2698. end))
  2699. end
  2700.  
  2701. function CameraManager()
  2702. if TwoD and not CamInterrupt then
  2703. if Humanoid.Health > 0 then
  2704. Camera.CameraSubject = Humanoid
  2705. Camera.CameraType = "Scriptable"
  2706. Humanoid.AutoRotate = false
  2707. if Booleans.GyroUse then
  2708. Directer.MaxTorque = Vec3(0, huge, 0)
  2709. else
  2710. Directer.MaxTorque = Vec3(0, 0, 0)
  2711. end
  2712. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2713. if Booleans.CamFollow then
  2714. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2715. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2716. else
  2717. CPart.Position = RootPart.Position
  2718. end
  2719. else
  2720. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2721. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2722. end
  2723. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2724. else
  2725. Camera.CameraSubject = Humanoid
  2726. Camera.CameraType = "Custom"
  2727. Controller.Disabled = false
  2728. end
  2729. end
  2730. end
  2731.  
  2732. function sphere(bonuspeed,type,pos,scale,value,color)
  2733. local type = type
  2734. local rng = Instance.new("Part", char)
  2735. rng.Anchored = true
  2736. rng.BrickColor = color
  2737. rng.CanCollide = false
  2738. rng.FormFactor = 3
  2739. rng.Name = "Ring"
  2740. rng.Material = "Neon"
  2741. rng.Size = Vector3.new(1, 1, 1)
  2742. rng.Transparency = 0
  2743. rng.TopSurface = 0
  2744. rng.BottomSurface = 0
  2745. rng.CFrame = pos
  2746. local rngm = Instance.new("SpecialMesh", rng)
  2747. rngm.MeshType = "Sphere"
  2748. rngm.Scale = scale
  2749. if rainbowmode == true then
  2750. rng.Color = Color3.new(r/255,g/255,b/255)
  2751. end
  2752. local scaler2 = 1
  2753. if type == "Add" then
  2754. scaler2 = 1*value
  2755. elseif type == "Divide" then
  2756. scaler2 = 1/value
  2757. end
  2758. coroutine.resume(coroutine.create(function()
  2759. for i = 0,10/bonuspeed,0.1 do
  2760. swait()
  2761. if rainbowmode == true then
  2762. rng.Color = Color3.new(r/255,g/255,b/255)
  2763. end
  2764. if type == "Add" then
  2765. scaler2 = scaler2 - 0.01*value/bonuspeed
  2766. elseif type == "Divide" then
  2767. scaler2 = scaler2 - 0.01/value*bonuspeed
  2768. end
  2769. if chaosmode == true then
  2770. rng.BrickColor = BrickColor.random()
  2771. end
  2772. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2773. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2774. end
  2775. rng:Destroy()
  2776. end))
  2777. end
  2778.  
  2779. function spherew(bonuspeed,type,pos,scale,value,color)
  2780. local type = type
  2781. local rng = Instance.new("Part", workspace)
  2782. rng.Anchored = true
  2783. rng.BrickColor = color
  2784. rng.CanCollide = false
  2785. rng.FormFactor = 3
  2786. rng.Name = "Ring"
  2787. rng.Material = "Neon"
  2788. rng.Size = Vector3.new(1, 1, 1)
  2789. rng.Transparency = 0
  2790. rng.TopSurface = 0
  2791. rng.BottomSurface = 0
  2792. rng.CFrame = pos
  2793. local rngm = Instance.new("SpecialMesh", rng)
  2794. rngm.MeshType = "Sphere"
  2795. rngm.Scale = scale
  2796. if rainbowmode == true then
  2797. rng.Color = Color3.new(r/255,g/255,b/255)
  2798. end
  2799. local scaler2 = 1
  2800. if type == "Add" then
  2801. scaler2 = 1*value
  2802. elseif type == "Divide" then
  2803. scaler2 = 1/value
  2804. end
  2805. coroutine.resume(coroutine.create(function()
  2806. for i = 0,10/bonuspeed,0.1 do
  2807. swait()
  2808. if rainbowmode == true then
  2809. rng.Color = Color3.new(r/255,g/255,b/255)
  2810. end
  2811. if type == "Add" then
  2812. scaler2 = scaler2 - 0.01*value/bonuspeed
  2813. elseif type == "Divide" then
  2814. scaler2 = scaler2 - 0.01/value*bonuspeed
  2815. end
  2816. if chaosmode == true then
  2817. rng.BrickColor = BrickColor.random()
  2818. end
  2819. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2820. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2821. end
  2822. rng:Destroy()
  2823. end))
  2824. end
  2825.  
  2826. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2827. local type = type
  2828. local rng = Instance.new("Part", char)
  2829. rng.Anchored = true
  2830. rng.BrickColor = color
  2831. rng.CanCollide = false
  2832. rng.FormFactor = 3
  2833. rng.Name = "Ring"
  2834. rng.Material = "Neon"
  2835. rng.Size = Vector3.new(1, 1, 1)
  2836. rng.Transparency = 0
  2837. rng.TopSurface = 0
  2838. rng.BottomSurface = 0
  2839. rng.CFrame = pos
  2840. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2841. local rngm = Instance.new("SpecialMesh", rng)
  2842. rngm.MeshType = "Brick"
  2843. rngm.Scale = vt(x1,y1,z1)
  2844. if rainbowmode == true then
  2845. rng.Color = Color3.new(r/255,g/255,b/255)
  2846. end
  2847. local scaler2 = 1
  2848. local speeder = FastSpeed/10
  2849. if type == "Add" then
  2850. scaler2 = 1*value
  2851. elseif type == "Divide" then
  2852. scaler2 = 1/value
  2853. end
  2854. coroutine.resume(coroutine.create(function()
  2855. for i = 0,10/bonuspeed,0.1 do
  2856. swait()
  2857. if rainbowmode == true then
  2858. rng.Color = Color3.new(r/255,g/255,b/255)
  2859. end
  2860. if type == "Add" then
  2861. scaler2 = scaler2 - 0.01*value/bonuspeed
  2862. elseif type == "Divide" then
  2863. scaler2 = scaler2 - 0.01/value*bonuspeed
  2864. end
  2865. if chaosmode == true then
  2866. rng.BrickColor = BrickColor.random()
  2867. end
  2868. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2869. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2870. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2871. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2872. end
  2873. rng:Destroy()
  2874. end))
  2875. end
  2876.  
  2877. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2878. local type = type
  2879. local rng = Instance.new("Part", char)
  2880. rng.Anchored = true
  2881. rng.BrickColor = color
  2882. rng.CanCollide = false
  2883. rng.FormFactor = 3
  2884. rng.Name = "Ring"
  2885. rng.Material = "Neon"
  2886. rng.Size = Vector3.new(1, 1, 1)
  2887. rng.Transparency = 0
  2888. rng.TopSurface = 0
  2889. rng.BottomSurface = 0
  2890. rng.CFrame = pos
  2891. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2892. local rngm = Instance.new("SpecialMesh", rng)
  2893. rngm.MeshType = "Brick"
  2894. rngm.Scale = vt(x1,y1,z1)
  2895. if rainbowmode == true then
  2896. rng.Color = Color3.new(r/255,g/255,b/255)
  2897. end
  2898. local scaler2 = 0
  2899. local speeder = FastSpeed/10
  2900. if type == "Add" then
  2901. scaler2 = 1*value
  2902. elseif type == "Divide" then
  2903. scaler2 = 1/value
  2904. end
  2905. coroutine.resume(coroutine.create(function()
  2906. for i = 0,10/bonuspeed,0.1 do
  2907. swait()
  2908. if rainbowmode == true then
  2909. rng.Color = Color3.new(r/255,g/255,b/255)
  2910. end
  2911. if type == "Add" then
  2912. scaler2 = scaler2 - 0.01*value/bonuspeed
  2913. elseif type == "Divide" then
  2914. scaler2 = scaler2 - 0.01/value*bonuspeed
  2915. end
  2916. if chaosmode == true then
  2917. rng.BrickColor = BrickColor.random()
  2918. end
  2919. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2920. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2921. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2922. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2923. end
  2924. rng:Destroy()
  2925. end))
  2926. end
  2927.  
  2928. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2929. local type = type
  2930. local rng = Instance.new("Part", workspace)
  2931. rng.Anchored = true
  2932. rng.BrickColor = color
  2933. rng.CanCollide = false
  2934. rng.FormFactor = 3
  2935. rng.Name = "Ring"
  2936. rng.Material = "Neon"
  2937. rng.Size = Vector3.new(1, 1, 1)
  2938. rng.Transparency = 0
  2939. rng.TopSurface = 0
  2940. rng.BottomSurface = 0
  2941. rng.CFrame = pos
  2942. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2943. local rngm = Instance.new("SpecialMesh", rng)
  2944. rngm.MeshType = "Sphere"
  2945. rngm.Scale = vt(x1,y1,z1)
  2946. if rainbowmode == true then
  2947. rng.Color = Color3.new(r/255,g/255,b/255)
  2948. end
  2949. local scaler2 = 1
  2950. local speeder = FastSpeed
  2951. if type == "Add" then
  2952. scaler2 = 1*value
  2953. elseif type == "Divide" then
  2954. scaler2 = 1/value
  2955. end
  2956. coroutine.resume(coroutine.create(function()
  2957. for i = 0,10/bonuspeed,0.1 do
  2958. swait()
  2959. if rainbowmode == true then
  2960. rng.Color = Color3.new(r/255,g/255,b/255)
  2961. end
  2962. if type == "Add" then
  2963. scaler2 = scaler2 - 0.01*value/bonuspeed
  2964. elseif type == "Divide" then
  2965. scaler2 = scaler2 - 0.01/value*bonuspeed
  2966. end
  2967. if chaosmode == true then
  2968. rng.BrickColor = BrickColor.random()
  2969. end
  2970. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2971. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2972. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2973. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2974. end
  2975. rng:Destroy()
  2976. end))
  2977. end
  2978. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2979. local type = type
  2980. local rng = Instance.new("Part", char)
  2981. rng.Anchored = true
  2982. rng.BrickColor = color
  2983. rng.CanCollide = false
  2984. rng.FormFactor = 3
  2985. rng.Name = "Ring"
  2986. rng.Material = "Neon"
  2987. rng.Size = Vector3.new(1, 1, 1)
  2988. rng.Transparency = 0
  2989. rng.TopSurface = 0
  2990. rng.BottomSurface = 0
  2991. rng.CFrame = pos
  2992. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2993. local rngm = Instance.new("SpecialMesh", rng)
  2994. rngm.MeshType = "Sphere"
  2995. rngm.Scale = vt(x1,y1,z1)
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. local scaler2 = 1
  3000. local speeder = FastSpeed
  3001. if type == "Add" then
  3002. scaler2 = 1*value
  3003. elseif type == "Divide" then
  3004. scaler2 = 1/value
  3005. end
  3006. coroutine.resume(coroutine.create(function()
  3007. for i = 0,10/bonuspeed,0.1 do
  3008. swait()
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. if type == "Add" then
  3013. scaler2 = scaler2 - 0.01*value/bonuspeed
  3014. elseif type == "Divide" then
  3015. scaler2 = scaler2 - 0.01/value*bonuspeed
  3016. end
  3017. if chaosmode == true then
  3018. rng.BrickColor = BrickColor.random()
  3019. end
  3020. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3021. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3022. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3023. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3024. end
  3025. rng:Destroy()
  3026. end))
  3027. end
  3028.  
  3029.  
  3030. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3031. local type = type
  3032. local rng = Instance.new("Part", char)
  3033. rng.Anchored = true
  3034. rng.BrickColor = color
  3035. rng.CanCollide = false
  3036. rng.FormFactor = 3
  3037. rng.Name = "Ring"
  3038. rng.Material = "Neon"
  3039. rng.Size = Vector3.new(1, 1, 1)
  3040. rng.Transparency = 1
  3041. rng.TopSurface = 0
  3042. rng.BottomSurface = 0
  3043. rng.CFrame = pos
  3044. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3045. local rngm = Instance.new("SpecialMesh", rng)
  3046. rngm.MeshType = "Sphere"
  3047. rngm.Scale = vt(x1,y1,z1)
  3048. if rainbowmode == true then
  3049. rng.Color = Color3.new(r/255,g/255,b/255)
  3050. end
  3051. local scaler2 = 1
  3052. local speeder = FastSpeed
  3053. if type == "Add" then
  3054. scaler2 = 1*value
  3055. elseif type == "Divide" then
  3056. scaler2 = 1/value
  3057. end
  3058. coroutine.resume(coroutine.create(function()
  3059. for i = 0,10/bonuspeed,0.1 do
  3060. swait()
  3061. if rainbowmode == true then
  3062. rng.Color = Color3.new(r/255,g/255,b/255)
  3063. end
  3064. if type == "Add" then
  3065. scaler2 = scaler2 - 0.01*value/bonuspeed
  3066. elseif type == "Divide" then
  3067. scaler2 = scaler2 - 0.01/value*bonuspeed
  3068. end
  3069. if chaosmode == true then
  3070. rng.BrickColor = BrickColor.random()
  3071. end
  3072. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3073. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3074. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3075. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3076. end
  3077. rng:Destroy()
  3078. end))
  3079. end
  3080.  
  3081. function dmg(dude)
  3082. if dude.Name ~= Character then
  3083. local bgf = Instance.new("BodyGyro",dude.Head)
  3084. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3085. local val = Instance.new("BoolValue",dude)
  3086. val.Name = "IsHit"
  3087. local ds = coroutine.wrap(function()
  3088. dude:WaitForChild("Head"):BreakJoints()
  3089. wait(0.5)
  3090. targetted = nil
  3091. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3092. coroutine.resume(coroutine.create(function()
  3093. for i, v in pairs(dude:GetChildren()) do
  3094. if v:IsA("Accessory") then
  3095. v:Destroy()
  3096. end
  3097. if v:IsA("Humanoid") then
  3098. v:Destroy()
  3099. end
  3100. if v:IsA("CharacterMesh") then
  3101. v:Destroy()
  3102. end
  3103. if v:IsA("Model") then
  3104. v:Destroy()
  3105. end
  3106. if v:IsA("Part") or v:IsA("MeshPart") then
  3107. for x, o in pairs(v:GetChildren()) do
  3108. if o:IsA("Decal") then
  3109. o:Destroy()
  3110. end
  3111. end
  3112. coroutine.resume(coroutine.create(function()
  3113. v.Material = "Neon"
  3114. v.CanCollide = false
  3115. local bld = Instance.new("ParticleEmitter",v)
  3116. bld.LightEmission = 1
  3117. bld.Texture = "rbxassetid://284205403"
  3118. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3119. bld.Rate = 50
  3120. bld.Lifetime = NumberRange.new(1)
  3121. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3122. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3123. bld.Speed = NumberRange.new(0,0)
  3124. bld.VelocitySpread = 50000
  3125. bld.Rotation = NumberRange.new(-500,500)
  3126. bld.RotSpeed = NumberRange.new(-500,500)
  3127. local sbs = Instance.new("BodyPosition", v)
  3128. sbs.P = 3000
  3129. sbs.D = 1000
  3130. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3131. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3132. v.Color = Color3.new(1,1,1)
  3133. coroutine.resume(coroutine.create(function()
  3134. for i = 0, 49 do
  3135. swait(1)
  3136. v.Transparency = v.Transparency + 0.02
  3137. end
  3138. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3139. bld.Speed = NumberRange.new(1,5)
  3140. bld.Acceleration = vt(0,10,0)
  3141. wait(0.5)
  3142. bld.Enabled = false
  3143. wait(3)
  3144. v:Destroy()
  3145. dude:Destroy()
  3146. end))
  3147. end))
  3148. end
  3149. end
  3150. end))
  3151. end)
  3152. ds()
  3153. end
  3154. end
  3155.  
  3156.  
  3157. function FindNearestHead(Position, Distance, SinglePlayer)
  3158. if SinglePlayer then
  3159. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3160. end
  3161. local List = {}
  3162. for i, v in pairs(workspace:GetChildren()) do
  3163. if v:IsA("Model") then
  3164. if v:findFirstChild("Head") then
  3165. if v ~= Character then
  3166. if (v.Head.Position - Position).magnitude <= Distance then
  3167. table.insert(List, v)
  3168. end
  3169. end
  3170. end
  3171. end
  3172. end
  3173. return List
  3174. end
  3175.  
  3176. function FaceMouse()
  3177. Cam = workspace.CurrentCamera
  3178. return {
  3179. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3180. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3181. }
  3182. end
  3183.  
  3184. function FaceMouse2()
  3185. Cam = workspace.CurrentCamera
  3186. return {
  3187. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3188. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3189. }
  3190. end
  3191.  
  3192. local ModeOfGlitch = 1
  3193. -- Functions are ready.
  3194. local storehumanoidWS = 16
  3195.  
  3196. function Blink()
  3197. for i = 0, 14 do
  3198. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3199. end
  3200. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3201. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3202. CameraEnshaking(2,10)
  3203. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3204. if v:FindFirstChild('Head') then
  3205. end
  3206. end
  3207. for i = 0, 14 do
  3208. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3209. end
  3210. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3211. end
  3212. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3213. function WACKYEFFECT(Table)
  3214. local TYPE = (Table.EffectType or "Sphere")
  3215. local SIZE = (Table.Size or VT(1,1,1))
  3216. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  3217. local TRANSPARENCY = (Table.Transparency or 0)
  3218. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  3219. local CFRAME = (Table.CFrame or Torso.CFrame)
  3220. local MOVEDIRECTION = (Table.MoveToPos or nil)
  3221. local ROTATION1 = (Table.RotationX or 0)
  3222. local ROTATION2 = (Table.RotationY or 0)
  3223. local ROTATION3 = (Table.RotationZ or 0)
  3224. local MATERIAL = (Table.Material or "Neon")
  3225. local COLOR = (Table.Color or C3(1,1,1))
  3226. local TIME = (Table.Time or 45)
  3227. local SOUNDID = (Table.SoundID or nil)
  3228. local SOUNDPITCH = (Table.SoundPitch or nil)
  3229. local SOUNDVOLUME = (Table.SoundVolume or nil)
  3230. coroutine.resume(coroutine.create(function()
  3231. local PLAYSSOUND = false
  3232. local SOUND = nil
  3233. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  3234. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  3235. PLAYSSOUND = true
  3236. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  3237. end
  3238. EFFECT.Color = COLOR
  3239. local MSH = nil
  3240. if TYPE == "Sphere" then
  3241. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  3242. elseif TYPE == "Block" then
  3243. MSH = IT("BlockMesh",EFFECT)
  3244. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  3245. elseif TYPE == "Wave" then
  3246. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  3247. elseif TYPE == "Ring" then
  3248. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  3249. elseif TYPE == "Slash" then
  3250. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3251. elseif TYPE == "Round Slash" then
  3252. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3253. elseif TYPE == "Swirl" then
  3254. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  3255. elseif TYPE == "Skull" then
  3256. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  3257. elseif TYPE == "Crystal" then
  3258. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  3259. end
  3260. if MSH ~= nil then
  3261. local MOVESPEED = nil
  3262. if MOVEDIRECTION ~= nil then
  3263. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  3264. end
  3265. local GROWTH = SIZE - ENDSIZE
  3266. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  3267. if TYPE == "Block" then
  3268. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3269. else
  3270. EFFECT.CFrame = CFRAME
  3271. end
  3272. for LOOP = 1, TIME+1 do
  3273. Swait()
  3274. MSH.Scale = MSH.Scale - GROWTH/TIME
  3275. if TYPE == "Wave" then
  3276. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  3277. end
  3278. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  3279. if TYPE == "Block" then
  3280. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3281. else
  3282. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  3283. end
  3284. if MOVEDIRECTION ~= nil then
  3285. local ORI = EFFECT.Orientation
  3286. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  3287. EFFECT.Orientation = ORI
  3288. end
  3289. end
  3290. if PLAYSSOUND == false then
  3291. EFFECT:remove()
  3292. else
  3293. SOUND.Stopped:Connect(function()
  3294. EFFECT:remove()
  3295. end)
  3296. end
  3297. else
  3298. if PLAYSSOUND == false then
  3299. EFFECT:remove()
  3300. else
  3301. repeat Swait() until SOUND.Playing == false
  3302. EFFECT:remove()
  3303. end
  3304. end
  3305. end))
  3306. end
  3307. function ExtinctiveHeartbreak()
  3308. local targetted = nil
  3309. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3310. targetted = mouse.Target.Parent
  3311. end
  3312. if targetted ~= nil then
  3313. attack = true
  3314. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3315. for i = 0, 9 do
  3316. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3317. end
  3318. for i = 0, 24 do
  3319. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3320. end
  3321. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3322. local originalpos = root.CFrame
  3323. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3324. for i = 0, 9 do
  3325. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3326. end
  3327. for i = 0, 24 do
  3328. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3329. end
  3330. hum.WalkSpeed = 0
  3331. targetted.Head.Anchored = true
  3332. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3333. for i = 0,2,0.1 do
  3334. swait()
  3335. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3336. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3337. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3338. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3339. RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3340. LW.C0=Clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3341. end
  3342. coroutine.resume(coroutine.create(function()
  3343. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3344. bld.LightEmission = 0.1
  3345. bld.Texture = "rbxassetid://284205403"
  3346. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3347. bld.Rate = 500
  3348. bld.Lifetime = NumberRange.new(1)
  3349. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3350. bld.Acceleration = vt(0,-25,0)
  3351. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3352. bld.Speed = NumberRange.new(10,50)
  3353. bld.EmissionDirection = "Front"
  3354. bld.VelocitySpread = 25
  3355. bld.Rotation = NumberRange.new(-500,500)
  3356. bld.RotSpeed = NumberRange.new(-500,500)
  3357. end))
  3358. coroutine.resume(coroutine.create(function()
  3359. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3360. bld.LightEmission = 0.1
  3361. bld.Texture = "rbxassetid://284205403"
  3362. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3363. bld.Rate = 500
  3364. bld.Lifetime = NumberRange.new(1)
  3365. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3366. bld.Acceleration = vt(0,-25,0)
  3367. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3368. bld.Speed = NumberRange.new(10,50)
  3369. bld.EmissionDirection = "Front"
  3370. bld.VelocitySpread = 25
  3371. bld.Rotation = NumberRange.new(-500,500)
  3372. bld.RotSpeed = NumberRange.new(-500,500)
  3373. end))
  3374. CameraEnshaking(5,5)
  3375. game:GetService("Debris"):AddItem(bld,3)
  3376. dmg(targetted)
  3377. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3378. for i = 0,1,0.1 do
  3379. swait()
  3380. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3381. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3382. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3383. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3384. RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3385. LW.C0=Clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3386. end
  3387. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3388. for i = 0, 9 do
  3389. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3390. end
  3391. for i = 0, 24 do
  3392. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3393. end
  3394. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3395. root.CFrame = originalpos
  3396. for i = 0, 9 do
  3397. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3398. end
  3399. for i = 0, 24 do
  3400. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3401. end
  3402. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3403. bld.Enabled = false
  3404. attack = false
  3405. hum.WalkSpeed = storehumanoidWS
  3406. end
  3407. end
  3408. function MeteorStrike()
  3409. attack = true
  3410. for i = 0, 2, 0.1 do
  3411. swait()
  3412. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3413. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3414. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3415. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3416. RW.C0=Clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3417. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3418. end
  3419. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3420. for i=1,20 do
  3421. sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3422. swait()
  3423. end
  3424. swait(30)
  3425. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3426. for i =1,20 do
  3427. sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3428. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3429. end
  3430. for i = 0,2,0.1 do
  3431. swait()
  3432. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3433. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3434. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3435. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3436. RW.C0=Clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3437. LW.C0=Clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3438. end
  3439. for i =1,20 do
  3440. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3441. end
  3442. text.TextTransparency = 1
  3443. text.TextStrokeTransparency = 1
  3444. tr2.Enabled = false
  3445. tr1.Enabled = false
  3446. tr3.Enabled = false
  3447. tl1.Enabled = false
  3448. tl2.Enabled = false
  3449. tl3.Enabled = false
  3450. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3451. eff = false
  3452. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3453. local invtab = {}
  3454. local function search(targ)
  3455. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3456. table.insert(invtab,targ)
  3457. end
  3458. for i,v in pairs(targ:GetChildren()) do
  3459. search(v)
  3460. end
  3461. end
  3462. search(plr.Character)
  3463. local frm = 0
  3464. local frmcon
  3465. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3466. if frm < 10 then
  3467. for i,v in pairs(invtab) do
  3468. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3469. v.Transparency = v.Transparency + 0.1
  3470. end
  3471. end
  3472. frm = frm + 1
  3473. else
  3474. frmcon:disconnect()
  3475. end
  3476. end)
  3477. swait(200)
  3478. text.TextTransparency = 0
  3479. text.TextStrokeTransparency = 0
  3480. tr2.Enabled = false
  3481. tr1.Enabled = false
  3482. tr3.Enabled = false
  3483. tl1.Enabled = false
  3484. tl2.Enabled = false
  3485. tl3.Enabled = false
  3486. eff = true
  3487. for i =1,20 do
  3488. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3489. end
  3490. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3491. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3492. local invtab = {}
  3493. local function search(targ)
  3494. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3495. table.insert(invtab,targ)
  3496. end
  3497. for i,v in pairs(targ:GetChildren()) do
  3498. search(v)
  3499. end
  3500. end
  3501. search(plr.Character)
  3502. local frm = 0
  3503. local frmcon
  3504. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3505. if frm < 10 then
  3506. for i,v in pairs(invtab) do
  3507. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3508. v.Transparency = v.Transparency - 0.1
  3509. end
  3510. end
  3511. frm = frm + 1
  3512. else
  3513. frmcon:disconnect()
  3514. end
  3515. end)
  3516. swait(5)
  3517. for i = 0, 2, 0.1 do
  3518. swait()
  3519. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3520. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3521. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3522. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3523. RW.C0=Clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3524. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3525. end
  3526. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3527. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3528. MagniDamage(root, 30, 65,90, 0, "Normal")
  3529. for i =1,20 do
  3530. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3531. end
  3532. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3533. for i =1,20 do
  3534. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3535. end
  3536. swait(20)
  3537. attack = false
  3538. tr2.Enabled = true
  3539. tr1.Enabled = true
  3540. tr3.Enabled = true
  3541. tl1.Enabled = true
  3542. tl2.Enabled = true
  3543. tl3.Enabled = true
  3544. end
  3545. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  3546. coroutine.resume(coroutine.create(function()
  3547. local METEOR = IT("Model",Effects)
  3548. METEOR.Name = "Meteorite"
  3549. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  3550. METEOR.PrimaryPart = CENTER
  3551. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  3552. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3553. for i = 1, 15 do
  3554. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
  3555. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3556. end
  3557. if ISDEBREE ~= true then
  3558. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3559. else
  3560. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3561. end
  3562. local IMPACT = false
  3563. CreateSound(463593339, CENTER, 10, 0.6)
  3564. if SIZE >= 3.5 then
  3565. for i = 1, MRANDOM(3,7) do
  3566. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  3567. end
  3568. end
  3569. for i = 1, 200 do
  3570. Swait()
  3571. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  3572. if HITFLOOR == nil then
  3573. local ORI = CENTER.Orientation
  3574. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  3575. else
  3576. if HITFLOOR.Anchored == true then
  3577. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  3578. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  3579. end
  3580. IMPACT = true
  3581. break
  3582. end
  3583. end
  3584. if IMPACT == true then
  3585. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  3586. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  3587. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  3588. ApplyAoE(CENTER.Position,30*SIZE)
  3589. end
  3590. METEOR:remove()
  3591. end))
  3592. end
  3593. function FinalCalam()
  3594. attack = true
  3595. hum.WalkSpeed = 0
  3596. local orb = Instance.new("Part", char)
  3597. orb.Anchored = true
  3598. orb.BrickColor = MAINRUINCOLOR
  3599. orb.CanCollide = false
  3600. orb.FormFactor = 3
  3601. orb.Name = "Ring"
  3602. orb.Material = "Neon"
  3603. orb.Size = Vector3.new(1, 1, 1)
  3604. orb.Transparency = 0
  3605. orb.TopSurface = 0
  3606. orb.BottomSurface = 0
  3607. local orbm = Instance.new("SpecialMesh", orb)
  3608. orbm.MeshType = "Sphere"
  3609. orbm.Name = "SizeMesh"
  3610. orbm.Scale = vt(0,0,0)
  3611. local scaled = 0.1
  3612. local posid = 0
  3613. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3614. for i = 0, 5, 0.1 do
  3615. swait()
  3616. scaled = scaled - 0.001
  3617. posid = posid - scaled
  3618. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3619. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3620. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3621. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3622. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3623. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3624. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3625. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3626. end
  3627. swait(60)
  3628. for i =1,3 do
  3629. swait(30)
  3630. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3631. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3632. end
  3633. swait(30)
  3634. for i = 0, 2, 0.1 do
  3635. swait()
  3636. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3637. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3638. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3639. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3640. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3641. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3642. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3643. end
  3644. swait(60)
  3645. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3646. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3647. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3648. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3649. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3650. if v:FindFirstChild('Head') then
  3651. dmg(v)
  3652. end
  3653. end
  3654. for i = 1,20 do
  3655. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3656. for i = 0, 10 do
  3657. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3658. end
  3659. end
  3660. orb:Remove()
  3661. attack = false
  3662. hum.WalkSpeed = storehumanoidWS
  3663. end
  3664. function PureBomb()
  3665. attack = true
  3666.  
  3667. local orb = Instance.new("Part", char)
  3668. orb.Anchored = true
  3669. orb.BrickColor = BrickColor.new("Toothpaste")
  3670. orb.CanCollide = false
  3671. orb.FormFactor = 3
  3672. orb.Name = "Ring"
  3673. orb.Material = "Neon"
  3674. orb.Size = Vector3.new(1, 1, 1)
  3675. orb.Transparency = 0
  3676. orb.TopSurface = 0
  3677. orb.BottomSurface = 0
  3678. local orbm = Instance.new("SpecialMesh", orb)
  3679. orbm.MeshType = "Sphere"
  3680. orbm.Name = "SizeMesh"
  3681. orbm.Scale = vt(0,0,0)
  3682. local scaled = 0.1
  3683. local posid = 0
  3684. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3685. for i = 0, 5, 0.1 do
  3686. swait()
  3687. scaled = scaled - 0.001
  3688. posid = posid - scaled
  3689. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3690. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3691. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3692. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3693. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3694. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3695. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3696. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3697. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3698. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3699. end
  3700. for i = 0, 2, 0.1 do
  3701. swait()
  3702. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3703. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3704. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3705. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3706. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3707. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3708. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3709. end
  3710. coroutine.resume(coroutine.create(function()
  3711. orb.Anchored = false
  3712. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3713. local a = Instance.new("Part",workspace)
  3714. a.Name = "Direction"
  3715. a.Anchored = true
  3716. a.BrickColor = bc("Bright red")
  3717. a.Material = "Neon"
  3718. a.Transparency = 1
  3719. a.CanCollide = false
  3720. local ray = Ray.new(
  3721. orb.CFrame.p, -- origin
  3722. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3723. )
  3724. local ignore = orb
  3725. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3726. a.BottomSurface = 10
  3727. a.TopSurface = 10
  3728. local distance = (orb.CFrame.p - position).magnitude
  3729. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3730. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3731. orb.CFrame = a.CFrame
  3732. a:Destroy()
  3733. local bv = Instance.new("BodyVelocity")
  3734. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3735. bv.velocity = orb.CFrame.lookVector*125
  3736. bv.Parent = orb
  3737. local hitted = false
  3738. game:GetService("Debris"):AddItem(orb, 15)
  3739. wait()
  3740. local hit =orb.Touched:connect(function(hit)
  3741. if hitted == false then
  3742. hitted = true
  3743. CameraEnshaking(10,2.5)
  3744. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3745. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3746. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3747. for i = 0, 49 do
  3748. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3749. end
  3750. for i = 0, 9 do
  3751. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3752. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3753. end
  3754. orb.Anchored = true
  3755. orb.Transparency = 1
  3756. wait(8)
  3757. orb:Destroy()
  3758. end
  3759. end)
  3760. end))
  3761. for i = 0, 1, 0.1 do
  3762. swait()
  3763. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3764. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3765. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3766. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3767. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3768. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3769. end
  3770. attack = false
  3771. end
  3772.  
  3773. function ChaosGroundStrike()
  3774. attack = true
  3775. for i = 0, 2, 0.1 do
  3776. swait()
  3777. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3778. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3779. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3780. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3781. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3782. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3783. end
  3784. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3785. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3786. CameraEnshaking(4,12)
  3787. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3788. if v:FindFirstChild('Head') then
  3789. dmg(v)
  3790. end
  3791. end
  3792. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3793. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3794. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3795. for i = 0, 2, 0.1 do
  3796. swait()
  3797. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3798. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3799. RH.C0=Clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3800. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3801. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3802. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3803. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3804. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3805. end
  3806. attack = false
  3807. end
  3808.  
  3809. function ChaosGroundStrike2()
  3810. attack = true
  3811. for i = 0, 2, 0.1 do
  3812. swait()
  3813. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3814. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3815. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3816. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3817. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3818. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3819. end
  3820. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3821. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3822. CameraEnshaking(4,12)
  3823. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3824. if v:FindFirstChild('Head') then
  3825. dmg(v)
  3826. end
  3827. end
  3828. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.new("Alder"))
  3829. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.new("Alder"))
  3830. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(250,0.1,250),0.01,BrickColor.new("Alder"))
  3831. for i = 0, 2, 0.1 do
  3832. swait()
  3833. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.new("Alder"),0)
  3834. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.new("Alder"),0)
  3835. RH.C0=Clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3836. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3837. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3838. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3839. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3840. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3841. end
  3842. attack = false
  3843. end
  3844.  
  3845.  
  3846. function Starfall()
  3847. attack = true
  3848. hum.WalkSpeed = 0
  3849. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3850. for i = 0, 5, 0.1 do
  3851. swait()
  3852. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3853. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3854. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3855. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3856. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3857. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3858. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3859. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3860. end
  3861. local Overed = false
  3862. CameraEnshaking(2,20)
  3863. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3864. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3865. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3866. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3867. local orb = Instance.new("Part", char)
  3868. orb.Anchored = true
  3869. orb.BrickColor = BrickColor.new("Toothpaste")
  3870. orb.CanCollide = false
  3871. orb.FormFactor = 3
  3872. orb.Name = "Remenant"
  3873. orb.Material = "Neon"
  3874. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3875. orb.Size = Vector3.new(1, 1, 1)
  3876. orb.Transparency = 1
  3877. orb.TopSurface = 0
  3878. orb.BottomSurface = 0
  3879. hum.WalkSpeed = storehumanoidWS
  3880. coroutine.resume(coroutine.create(function()
  3881. for i = 0, 9 do
  3882. swait(10)
  3883. local lb = Instance.new("Part")
  3884. lb.Color = MAINRUINCOLOR.Color
  3885. lb.CanCollide = false
  3886. lb.Material = "Neon"
  3887. lb.Anchored = true
  3888. lb.TopSurface = 0
  3889. lb.BottomSurface = 0
  3890. lb.Transparency = 0
  3891. lb.Size = vt(1,1,1)
  3892. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3893. lb.Anchored = false
  3894. lb.Parent = char
  3895. local thingery = Instance.new("SpecialMesh",lb)
  3896. thingery.MeshType = "Sphere"
  3897. thingery.Scale = vt(20,20,20)
  3898. game:GetService("Debris"):AddItem(lb, 10)
  3899. local bv = Instance.new("BodyVelocity")
  3900. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3901. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3902. bv.Parent = lb
  3903. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3904. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3905. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3906. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3907. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3908. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3909. local hitted = false
  3910. coroutine.resume(coroutine.create(function()
  3911. while true do
  3912. swait(1)
  3913. if lb.Parent ~= nil and hitted == false then
  3914. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3915. elseif lb.Parent == nil then
  3916. break
  3917. end
  3918. end
  3919. end))
  3920.  
  3921. game:GetService("Debris"):AddItem(a, 0.1)
  3922.  
  3923. coroutine.resume(coroutine.create(function()
  3924. swait(1)
  3925. lb.Touched:connect(function(hit)
  3926. if hitted == false then
  3927. hitted = true
  3928. lb.Transparency = 1
  3929. lb.Anchored = true
  3930. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3931. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3932. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3933. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3934. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3935. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3936. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3937. CameraEnshaking(1,5)
  3938. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3939. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3940. for i = 0, 9 do
  3941. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3942. end
  3943. for i = 0, 49 do
  3944. swait()
  3945. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3946. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3947. end
  3948. end
  3949. end)
  3950. end))
  3951. end
  3952. Overed = true
  3953. orb:Destroy()
  3954. end))
  3955.  
  3956. attack = false
  3957. end
  3958.  
  3959. function StarfallEX()
  3960. attack = true
  3961. hum.WalkSpeed = 0
  3962. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3963. for i = 0, 5, 0.1 do
  3964. swait()
  3965. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3966. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3967. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3968. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3969. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3970. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3971. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3972. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3973. end
  3974. local Overed = false
  3975. CameraEnshaking(2,20)
  3976. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3977. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3978. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3979. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3980. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3981. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3982. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3983. local orb = Instance.new("Part", char)
  3984. orb.Anchored = true
  3985. orb.BrickColor = BrickColor.new("Toothpaste")
  3986. orb.CanCollide = false
  3987. orb.FormFactor = 3
  3988. orb.Name = "Remenant"
  3989. orb.Material = "Neon"
  3990. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3991. orb.Size = Vector3.new(1, 1, 1)
  3992. orb.Transparency = 1
  3993. orb.TopSurface = 0
  3994. orb.BottomSurface = 0
  3995. hum.WalkSpeed = storehumanoidWS
  3996. coroutine.resume(coroutine.create(function()
  3997. for i = 0, 9 do
  3998. swait(10)
  3999. local lb = Instance.new("Part")
  4000. lb.Color = MAINRUINCOLOR.Color
  4001. lb.CanCollide = false
  4002. lb.Material = "Neon"
  4003. lb.Anchored = true
  4004. lb.TopSurface = 0
  4005. lb.BottomSurface = 0
  4006. lb.Transparency = 0
  4007. lb.Size = vt(1,1,1)
  4008. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  4009. lb.Anchored = false
  4010. lb.Parent = char
  4011. local thingery = Instance.new("SpecialMesh",lb)
  4012. thingery.MeshType = "Sphere"
  4013. thingery.Scale = vt(20,20,20)
  4014. game:GetService("Debris"):AddItem(lb, 10)
  4015. local bv = Instance.new("BodyVelocity")
  4016. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4017. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4018. bv.Parent = lb
  4019. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4020. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4021. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4022. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4023. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4024. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4025. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4026. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4027. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4028. local hitted = false
  4029. coroutine.resume(coroutine.create(function()
  4030. while true do
  4031. swait(1)
  4032. if lb.Parent ~= nil and hitted == false then
  4033. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  4034. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  4035. elseif lb.Parent == nil then
  4036. break
  4037. end
  4038. end
  4039. end))
  4040.  
  4041. game:GetService("Debris"):AddItem(a, 0.1)
  4042.  
  4043. coroutine.resume(coroutine.create(function()
  4044. swait(1)
  4045. lb.Touched:connect(function(hit)
  4046. if hitted == false then
  4047. hitted = true
  4048. lb.Transparency = 1
  4049. lb.Anchored = true
  4050. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4051. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4052. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4053. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4054. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4055. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4056. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4057. CameraEnshaking(10,5)
  4058. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4059. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4060. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4061. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4062. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4063. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4064. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4065. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4066. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4067. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4068. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4069. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4070. for i = 0, 9 do
  4071. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4072. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4073. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4074. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4075. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4076. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4077. end
  4078. for i = 0, 49 do
  4079. swait()
  4080. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  4081. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4082. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4083. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  4084. end
  4085. end
  4086. end)
  4087. end))
  4088. end
  4089. Overed = true
  4090. orb:Destroy()
  4091. end))
  4092.  
  4093. attack = false
  4094. end
  4095.  
  4096. function StarDivision()
  4097. attack = true
  4098. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4099. for i = 0, 2, 0.1 do
  4100. swait()
  4101. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4102. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  4103. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  4104. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  4105. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  4106. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4107. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  4108. end
  4109. local orb = Instance.new("Part", char)
  4110. orb.BrickColor = MAINRUINCOLOR
  4111. orb.CanCollide = false
  4112. orb.FormFactor = 3
  4113. orb.Name = "Ring"
  4114. orb.Material = "Neon"
  4115. orb.Size = Vector3.new(1, 1, 1)
  4116. orb.Transparency = 0
  4117. orb.TopSurface = 0
  4118. orb.BottomSurface = 0
  4119. local orbm = Instance.new("SpecialMesh", orb)
  4120. orbm.MeshType = "Sphere"
  4121. orbm.Name = "SizeMesh"
  4122. orbm.Scale = vt(2,2,2)
  4123. local a = Instance.new("Part",workspace)
  4124. a.Name = "Direction"
  4125. a.Anchored = true
  4126. a.BrickColor = bc("Bright red")
  4127. a.Material = "Neon"
  4128. a.Transparency = 1
  4129. a.CanCollide = false
  4130. local ray = Ray.new(
  4131. sorb.CFrame.p, -- origin
  4132. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4133. )
  4134. local ignore = sorb
  4135. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4136. a.BottomSurface = 10
  4137. a.TopSurface = 10
  4138. local distance = (sorb.CFrame.p - position).magnitude
  4139. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4140. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4141. orb.CFrame = a.CFrame
  4142. a:Destroy()
  4143. local bv = Instance.new("BodyVelocity")
  4144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4145. bv.velocity = orb.CFrame.lookVector*100
  4146. bv.Parent = orb
  4147. local hitted = false
  4148. game:GetService("Debris"):AddItem(orb, 10)
  4149. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4150. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4151. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4152. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4153. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4154. coroutine.resume(coroutine.create(function()
  4155. while true do
  4156. swait(1)
  4157. if orb.Parent ~= nil and hitted == false then
  4158. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4159. elseif orb.Parent == nil then
  4160. break
  4161. end
  4162. end
  4163. end))
  4164. coroutine.resume(coroutine.create(function()
  4165. swait(1)
  4166. orb.Touched:connect(function(hit)
  4167. if hitted == false then
  4168. hitted = true
  4169. game:GetService("Debris"):AddItem(orb, 5)
  4170. orb.Transparency = 1
  4171. orb.Anchored = true
  4172. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4173. elocacenter.Anchored = true
  4174. elocacenter.CFrame = orb.CFrame
  4175. elocacenter.Orientation = vt(0,0,0)
  4176. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4177. eloca1.Anchored = true
  4178. eloca1.CFrame = elocacenter.CFrame
  4179. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4180. eloca2.Anchored = true
  4181. eloca2.CFrame = elocacenter.CFrame
  4182. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4183. eloca3.Anchored = true
  4184. eloca3.CFrame = elocacenter.CFrame
  4185. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4186. eloca4.Anchored = true
  4187. eloca4.CFrame = elocacenter.CFrame
  4188. local lookavec = 0
  4189. local speeds = 0
  4190. CameraEnshaking(1,1)
  4191. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4192. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4193. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4194. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4195. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4196. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4197. for i = 0, 99 do
  4198. swait()
  4199. lookavec = lookavec + 1
  4200. speeds = speeds + 0.1
  4201. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4202. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4203. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4204.  
  4205. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4206. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4207.  
  4208. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4209. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4210.  
  4211. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4212. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4213. end
  4214.  
  4215. for i = 0, 149 do
  4216. swait()
  4217. speeds = speeds + 0.1
  4218. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4219. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4220. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4221.  
  4222. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4223. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4224.  
  4225. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4226. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4227.  
  4228. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4229. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4230. end
  4231. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4232. if v:FindFirstChild('Head') then
  4233. dmg(v)
  4234. end
  4235. end
  4236. CameraEnshaking(7,30)
  4237. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4238. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4239. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4240. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4241. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4242. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4243. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4244. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4245. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4246. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4247. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4248. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4249. for i = 0, 24 do
  4250. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4251. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4252. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4253. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4254. end
  4255. coroutine.resume(coroutine.create(function()
  4256. for i = 0, 499 do
  4257. swait(1)
  4258. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4259. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4260. end
  4261. elocacenter:Destroy()
  4262. eloca1:Destroy()
  4263. eloca2:Destroy()
  4264. eloca3:Destroy()
  4265. eloca4:Destroy()
  4266. end))
  4267. end
  4268. end)
  4269. end))
  4270. attack = false
  4271. end
  4272.  
  4273.  
  4274. function UniversalCollapse()
  4275. attack = true
  4276. local speedearn = 0
  4277. hum.WalkSpeed = 0
  4278. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4279. for i = 0, 10, 0.1 do
  4280. swait()
  4281. speedearn = speedearn + 0.1
  4282. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4283. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4284. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4285. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4286. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4287. RH.C0=Clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4288. LH.C0=Clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4289. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4290. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4291. RW.C0=Clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4292. LW.C0=Clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4293. end
  4294. CameraEnshaking(5,45)
  4295. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4296. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4297. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4298. if v:FindFirstChild('Head') then
  4299. dmg(v)
  4300. end
  4301. end
  4302. hum.WalkSpeed = storehumanoidWS
  4303. attack = false
  4304. end
  4305. function ChaosBegone()
  4306. attack = true
  4307. local speedearn = 0
  4308. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4309. for i = 0, 10, 0.1 do
  4310. swait()
  4311. speedearn = speedearn + 0.1
  4312. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4313. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4314. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4315. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4316. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4317. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4318. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4319. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4320. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4321. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4322. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4323. end
  4324. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4325. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4326. CameraEnshaking(5,25)
  4327. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4328. if v:FindFirstChild('Head') then
  4329. dmg(v)
  4330. end
  4331. end
  4332. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4333. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4334. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4335. for i = 0, 3, 0.1 do
  4336. swait()
  4337. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4338. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4339. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4340. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4341. RH.C0=Clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4342. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4343. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4344. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4345. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4346. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4347. end
  4348. attack = false
  4349. end
  4350.  
  4351. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4352. local orb = Instance.new("Part", char)
  4353. orb.Anchored = true
  4354. orb.BrickColor = color
  4355. orb.CanCollide = false
  4356. orb.FormFactor = 3
  4357. orb.Name = "Ring"
  4358. orb.Material = "Neon"
  4359. orb.Size = Vector3.new(1, 1, 1)
  4360. orb.Transparency = 0
  4361. orb.TopSurface = 0
  4362. orb.BottomSurface = 0
  4363. local orbm = Instance.new("SpecialMesh", orb)
  4364. orbm.MeshType = "Sphere"
  4365. orb.CFrame = positted
  4366. orbm.Name = "SizeMesh"
  4367. orbm.Scale = vt(1,1,1)
  4368. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4369. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4370. --[[for i = 0, 2 do
  4371. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4372. end]]--
  4373. coroutine.resume(coroutine.create(function()
  4374. wait(timer)
  4375. CameraEnshaking(3,ShakePower)
  4376. orb.Transparency = 1
  4377. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4378. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4379. --[[for i = 0, 4 do
  4380. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4381. end]]--
  4382. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4383. wait(3)
  4384. orb:Destroy()
  4385. end))
  4386. end
  4387.  
  4388. function orb_spawn(positted,timer)
  4389. local randomcol = math.random(1,2)
  4390. local orb = Instance.new("Part", char)
  4391. orb.Anchored = true
  4392. if randomcol == 1 then
  4393. orb.BrickColor = BrickColor.new("White")
  4394. elseif randomcol == 2 then
  4395. orb.BrickColor = BrickColor.new("Really black")
  4396. end
  4397. orb.CanCollide = false
  4398. orb.FormFactor = 3
  4399. orb.Name = "Ring"
  4400. orb.Material = "Neon"
  4401. orb.Size = Vector3.new(1, 1, 1)
  4402. orb.Transparency = 0
  4403. orb.TopSurface = 0
  4404. orb.BottomSurface = 0
  4405. local orbm = Instance.new("SpecialMesh", orb)
  4406. orbm.MeshType = "Sphere"
  4407. orb.CFrame = positted
  4408. orbm.Name = "SizeMesh"
  4409. orbm.Scale = vt(1,1,1)
  4410. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4411. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4412. for i = 0, 2 do
  4413. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4414. end
  4415. coroutine.resume(coroutine.create(function()
  4416. wait(timer)
  4417. CameraEnshaking(3,2)
  4418. orb.Transparency = 1
  4419. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4420. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4421. for i = 0, 4 do
  4422. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4423. end
  4424. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4425. wait(3)
  4426. orb:Destroy()
  4427. end))
  4428. end
  4429.  
  4430. function orb_spawn2(positted,timer)
  4431. local randomcol = math.random(1,7)
  4432. local orb = Instance.new("Part", char)
  4433. orb.Anchored = true
  4434. if randomcol == 1 then
  4435. orb.BrickColor = BrickColor.new("White")
  4436. elseif randomcol == 2 then
  4437. orb.BrickColor = BrickColor.new("Really black")
  4438. elseif randomcol == 3 then
  4439. orb.BrickColor = BrickColor.new("Really red")
  4440. elseif randomcol == 4 then
  4441. orb.BrickColor = BrickColor.new("Really blue")
  4442. elseif randomcol == 5 then
  4443. orb.BrickColor = BrickColor.new("Deep orange")
  4444. elseif randomcol == 6 then
  4445. orb.BrickColor = BrickColor.new("Bright yellow")
  4446. elseif randomcol == 7 then
  4447. orb.BrickColor = BrickColor.new("Lime green")
  4448. elseif randomcol == 8 then
  4449. orb.BrickColor = BrickColor.new("Hot pink")
  4450. end
  4451. orb.CanCollide = false
  4452. orb.FormFactor = 3
  4453. orb.Name = "Ring"
  4454. orb.Material = "Neon"
  4455. orb.Size = Vector3.new(1, 1, 1)
  4456. orb.Transparency = 0
  4457. orb.TopSurface = 0
  4458. orb.BottomSurface = 0
  4459. local orbm = Instance.new("SpecialMesh", orb)
  4460. orbm.MeshType = "Sphere"
  4461. orb.CFrame = positted
  4462. orbm.Name = "SizeMesh"
  4463. orbm.Scale = vt(1,1,1)
  4464. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4465. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4466. for i = 0, 2 do
  4467. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4468. end
  4469. coroutine.resume(coroutine.create(function()
  4470. wait(timer)
  4471. CameraEnshaking(3,2)
  4472. orb.Transparency = 1
  4473. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4474. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4475. for i = 0, 4 do
  4476. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4477. end
  4478. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4479. wait(3)
  4480. orb:Destroy()
  4481. end))
  4482. end
  4483.  
  4484.  
  4485. function scattercorrupt()
  4486. attack = true
  4487. local rot = 0
  4488. local randomrotations = math.random(1,2)
  4489. local lookv = 2.5
  4490. local power = 5
  4491. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4492. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4493. for i = 0, 9 do
  4494. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4495. end
  4496. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4497. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4498. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4499. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4500. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4501. local hite = Instance.new("Part", char)
  4502. hite.Anchored = true
  4503. hite.CanCollide = false
  4504. hite.FormFactor = 3
  4505. hite.Name = "Ring"
  4506. hite.Material = "Neon"
  4507. hite.Size = Vector3.new(1, 1, 1)
  4508. hite.Transparency = 1
  4509. hite.TopSurface = 0
  4510. hite.BottomSurface = 0
  4511. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4512. local rem = Instance.new("Part", char)
  4513. rem.Anchored = true
  4514. rem.CanCollide = false
  4515. rem.FormFactor = 3
  4516. rem.Name = "Ring"
  4517. rem.Material = "Neon"
  4518. rem.Size = Vector3.new(1, 1, 1)
  4519. rem.Transparency = 1
  4520. rem.TopSurface = 0
  4521. rem.BottomSurface = 0
  4522. rem.CFrame = hite.CFrame
  4523. local rem2 = rem:Clone()
  4524. rem2.Parent = char
  4525. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4526. local rem3 = rem:Clone()
  4527. rem3.Parent = char
  4528. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4529. local rem4 = rem:Clone()
  4530. rem4.Parent = char
  4531. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4532. hite:Destroy()
  4533. coroutine.resume(coroutine.create(function()
  4534. for i = 0, 24 do
  4535. swait(1)
  4536. if randomrotations == 1 then
  4537. rot = rot + 1
  4538. elseif randomrotations == 2 then
  4539. rot = rot - 1
  4540. end
  4541. power = power + 0.5
  4542. lookv = lookv + 7.5
  4543. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4544. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4545. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4546. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4547. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4548. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4549. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4550. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4551. end
  4552. end))
  4553. attack = false
  4554. end
  4555. function scattercorrupt2()
  4556. attack = true
  4557. local rot = 0
  4558. local randomrotations = math.random(1,2)
  4559. local lookv = 2.5
  4560. local power = 5
  4561. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Smoky grey"))
  4562. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Smoky grey"))
  4563. for i = 0, 9 do
  4564. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Smoky grey"),0)
  4565. end
  4566. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4567. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4568. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4569. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4570. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4571. local hite = Instance.new("Part", char)
  4572. hite.Anchored = true
  4573. hite.CanCollide = false
  4574. hite.FormFactor = 3
  4575. hite.Name = "Ring"
  4576. hite.Material = "Neon"
  4577. hite.Size = Vector3.new(1, 1, 1)
  4578. hite.Transparency = 1
  4579. hite.TopSurface = 0
  4580. hite.BottomSurface = 0
  4581. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4582. local rem = Instance.new("Part", char)
  4583. rem.Anchored = true
  4584. rem.CanCollide = false
  4585. rem.FormFactor = 3
  4586. rem.Name = "Ring"
  4587. rem.Material = "Neon"
  4588. rem.Size = Vector3.new(1, 1, 1)
  4589. rem.Transparency = 1
  4590. rem.TopSurface = 0
  4591. rem.BottomSurface = 0
  4592. rem.CFrame = hite.CFrame
  4593. local rem2 = rem:Clone()
  4594. rem2.Parent = char
  4595. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4596. local rem3 = rem:Clone()
  4597. rem3.Parent = char
  4598. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4599. local rem4 = rem:Clone()
  4600. rem4.Parent = char
  4601. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4602. hite:Destroy()
  4603. coroutine.resume(coroutine.create(function()
  4604. for i = 0, 24 do
  4605. swait(1)
  4606. if randomrotations == 1 then
  4607. rot = rot + 1
  4608. elseif randomrotations == 2 then
  4609. rot = rot - 1
  4610. end
  4611. power = power + 0.5
  4612. lookv = lookv + 7.5
  4613. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4614. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4615. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4616. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4617. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4618. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4619. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4620. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Smoky grey"),power,25,75,10,power/5,7.5)
  4621. end
  4622. end))
  4623. attack = false
  4624. end
  4625. function Meteor_Shower()
  4626. ATTACK = true
  4627. Rooted = false
  4628. CreateSound(1368573150, RightArm, 3, 0.8)
  4629. CreateSound(649634100, Torso, 10, 0.8)
  4630. for i=0, 1.2, 0.1 / Animation_Speed do
  4631. Swait()
  4632. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/2, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  4633. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4634. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  4635. end
  4636. local POS = Mouse.Hit.p
  4637. CreateSound(463593339, Effects, 3, 1)
  4638. coroutine.resume(coroutine.create(function()
  4639. for i = 1, 35 do
  4640. wait(MRANDOM(5,150)/100)
  4641. scattercorrupt2(CF(POS) * ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(0,1500)/10).p,MRANDOM(10,25)/10)
  4642. end
  4643. end))
  4644. ATTACK = false
  4645. Rooted = false
  4646. end
  4647. function yinyangi()
  4648. attack = true
  4649. for i = 0, 2, 0.1 do
  4650. swait()
  4651. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4652. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4653. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4654. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4655. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4656. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4657. end
  4658. local bv = Instance.new("BodyVelocity")
  4659. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4660. bv.velocity = root.CFrame.lookVector*175
  4661. bv.Parent = root
  4662. for Rotations = 0, 9 do
  4663. for i = 0, 1, 0.5 do
  4664. swait()
  4665. bv.velocity = root.CFrame.lookVector*175
  4666. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4667. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4668. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4669. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4670. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4671. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4672. end
  4673. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4674. for i = 0, 1, 0.5 do
  4675. swait()
  4676. bv.velocity = root.CFrame.lookVector*175
  4677. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4678. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4679. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4680. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4681. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4682. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4683. end
  4684. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4685. for i = 0, 1, 0.5 do
  4686. swait()
  4687. bv.velocity = root.CFrame.lookVector*175
  4688. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4689. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4690. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4691. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4692. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4693. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4694. end
  4695. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4696. for i = 0, 1, 0.5 do
  4697. swait()
  4698. bv.velocity = root.CFrame.lookVector*175
  4699. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4700. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4701. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4702. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4703. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4704. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4705. end
  4706. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4707. end
  4708. bv:Destroy()
  4709. attack = false
  4710. end
  4711.  
  4712. function yinyangi2()
  4713. attack = true
  4714. for i = 0, 2, 0.1 do
  4715. swait()
  4716. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4717. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4718. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4719. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4720. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4721. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4722. end
  4723. local bv = Instance.new("BodyVelocity")
  4724. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4725. bv.velocity = root.CFrame.lookVector*175
  4726. bv.Parent = root
  4727. for Rotations = 0, 9 do
  4728. for i = 0, 1, 0.5 do
  4729. swait()
  4730. bv.velocity = root.CFrame.lookVector*175
  4731. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4732. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4733. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4734. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4735. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4736. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4737. end
  4738. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4739. for i = 0, 1, 0.5 do
  4740. swait()
  4741. bv.velocity = root.CFrame.lookVector*175
  4742. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4743. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4744. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4745. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4746. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4747. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4748. end
  4749. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4750. for i = 0, 1, 0.5 do
  4751. swait()
  4752. bv.velocity = root.CFrame.lookVector*175
  4753. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4754. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4755. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4756. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4757. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4758. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4759. end
  4760. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4761. for i = 0, 1, 0.5 do
  4762. swait()
  4763. bv.velocity = root.CFrame.lookVector*175
  4764. RH.C0=Clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4765. LH.C0=Clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4766. RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4767. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4768. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4769. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4770. end
  4771. orb_spawn2(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4772. end
  4773. bv:Destroy()
  4774. attack = false
  4775. end
  4776.  
  4777. function Wip()
  4778. attack = true
  4779.  
  4780. local rngb = Instance.new("Part", char)
  4781. rngb.Anchored = true
  4782. rngb.BrickColor = origcolor
  4783. rngb.CanCollide = false
  4784. rngb.FormFactor = 3
  4785. rngb.Name = "Ring"
  4786. rngb.Material = "Neon"
  4787. rngb.Size = Vector3.new(1, 0.05, 1)
  4788. rngb.Transparency = 1
  4789. rngb.TopSurface = 0
  4790. rngb.BottomSurface = 0
  4791. local rngmb = Instance.new("SpecialMesh", rngb)
  4792. rngmb.MeshType = "Brick"
  4793. rngmb.Name = "SizeMesh"
  4794. rngmb.Scale = vt(0,1,0)
  4795.  
  4796. local orb = rngb:Clone()
  4797. orb.Parent = char
  4798. orb.Transparency = 0
  4799. orb.BrickColor = BrickColor.new("White")
  4800. orb.Size = vt(1,1,1)
  4801. local orbmish = orb.SizeMesh
  4802. orbmish.Scale = vt(0,0,0)
  4803. orbmish.MeshType = "Sphere"
  4804.  
  4805. local orbe = rngb:Clone()
  4806. orbe.Parent = char
  4807. orbe.Transparency = 0.5
  4808. orbe.BrickColor = BrickColor.new("New Yeller")
  4809. orbe.Size = vt(1,1,1)
  4810. local orbmish2 = orbe.SizeMesh
  4811. orbmish2.Scale = vt(0,0,0)
  4812. orbmish2.MeshType = "Sphere"
  4813. orbe.Color = Color3.new(r/255,g/255,b/255)
  4814.  
  4815. rngb:Destroy()
  4816. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4817. local scaled = 1
  4818. for i = 0,5,0.1 do
  4819. swait()
  4820. scaled = scaled - 0.02
  4821. if rainbowmode == true then
  4822. orbe.Color = Color3.new(r/255,g/255,b/255)
  4823. end
  4824. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4825. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4826. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4827. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4828. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4829. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4830. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4831. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4832. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4833. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4834. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4835. RootPart.CFrame = FaceMouse()[1]
  4836. end]]--
  4837. for i = 0,5,0.1 do
  4838. swait()
  4839. if rainbowmode == true then
  4840. orbe.Color = Color3.new(r/255,g/255,b/255)
  4841. end
  4842. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4843. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4844. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4845. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4846. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4847. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4848. RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4849. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4850. RootPart.CFrame = FaceMouse()[1]
  4851. end
  4852. orbe.Transparency = 1
  4853. orb.Transparency = 1
  4854. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4855. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4856. local a = Instance.new("Part",Character)
  4857. a.Name = "Direction"
  4858. a.Anchored = true
  4859. a.BrickColor = bc("White")
  4860. a.Material = "Neon"
  4861. a.Transparency = 0
  4862. a.Shape = "Cylinder"
  4863. a.CanCollide = false
  4864. local a2 = Instance.new("Part",Character)
  4865. a2.Name = "Direction"
  4866. a2.Anchored = true
  4867. a2.BrickColor = bc("New Yeller")
  4868. a2.Color = Color3.new(r/255,g/255,b/255)
  4869. a2.Material = "Neon"
  4870. a2.Transparency = 0.5
  4871. a2.Shape = "Cylinder"
  4872. a2.CanCollide = false
  4873. local ba = Instance.new("Part",Character)
  4874. ba.Name = "HitDirect"
  4875. ba.Anchored = true
  4876. ba.BrickColor = bc("Cool yellow")
  4877. ba.Material = "Neon"
  4878. ba.Transparency = 1
  4879. ba.CanCollide = false
  4880. local ray = Ray.new(
  4881. orb.CFrame.p, -- origin
  4882. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4883. )
  4884. local ignore = Character
  4885. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4886. a.BottomSurface = 10
  4887. a.TopSurface = 10
  4888. a2.BottomSurface = 10
  4889. a2.TopSurface = 10
  4890. local distance = (orb.CFrame.p - position).magnitude
  4891. a.Size = Vector3.new(distance, 1, 1)
  4892. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4893. a2.Size = Vector3.new(distance, 1, 1)
  4894. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4895. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4896. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4897. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4898. game:GetService("Debris"):AddItem(a, 20)
  4899. game:GetService("Debris"):AddItem(a2, 20)
  4900. game:GetService("Debris"):AddItem(ba, 20)
  4901. local msh = Instance.new("SpecialMesh",a)
  4902. msh.MeshType = "Cylinder"
  4903. msh.Scale = vt(1,5*5,5*5)
  4904. local msh2 = Instance.new("SpecialMesh",a2)
  4905. msh2.MeshType = "Cylinder"
  4906. msh2.Scale = vt(1,6*5,6*5)
  4907.  
  4908. for i = 0,10,0.1 do
  4909. swait()
  4910. CameraEnshaking(1,5)
  4911. a2.Color = Color3.new(r/255,g/255,b/255)
  4912. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4913. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4914. ray = Ray.new(
  4915. orb.CFrame.p, -- origin
  4916. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4917. )
  4918. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4919. distance = (orb.CFrame.p - position).magnitude
  4920. if typrot == 1 then
  4921. rotation = rotation + 2.5
  4922. elseif typrot == 2 then
  4923. rotation = rotation - 2.5
  4924. end
  4925. RootPart.CFrame = FaceMouse()[1]
  4926. a.Size = Vector3.new(distance, 1, 1)
  4927. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4928. a2.Size = Vector3.new(distance, 1, 1)
  4929. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4930. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4931. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4932. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4933. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4934. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4935. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4936. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4937. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4938. end
  4939. a:Destroy()
  4940. a2:Destroy()
  4941. ba:Destroy()
  4942. orb:Destroy()
  4943. orbe:Destroy()
  4944. attack = false
  4945. end
  4946. function HolyBarrier()
  4947. attack = true
  4948. shielding = true
  4949. for i = 0, 2, 0.1 do
  4950. swait()
  4951. 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)
  4952. 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)
  4953. 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)
  4954. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4955. RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4956. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4957. end
  4958. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4959. stash = Instance.new("Model",workspace)
  4960. local barrier = Instance.new("Part",stash)
  4961. barrier.Anchored = true
  4962. barrier.CanCollide = false
  4963. barrier.Size = Vector3.new(20,20,20)
  4964. barrier.CFrame = root.CFrame
  4965. barrier.Transparency = 0.6
  4966. barrier.BrickColor = MAINRUINCOLOR
  4967. barrier.Material = Enum.Material.Neon
  4968. barrier.Shape = Enum.PartType.Ball
  4969. barrier.CFrame = root.CFrame
  4970. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4971. Torso.Anchored = true
  4972. for i=1,50 do
  4973. local p = Instance.new("Part",stash)
  4974. p.Anchored = true
  4975. p.Transparency = 1
  4976. p.Size = Vector3.new(11,11,11)
  4977. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4978. end
  4979. repeat
  4980. swait(5)
  4981. 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)
  4982. until shielding == false
  4983. stash:Remove()
  4984. Torso.Anchored = false
  4985. shielding = false
  4986. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4987. attack = false
  4988. end
  4989. function Judgement()
  4990. attack = true
  4991. judgement = true
  4992. hum.WalkSpeed = 0
  4993. local p = Instance.new("Part",root)
  4994. p.Anchored = true
  4995. p.CanCollide = false
  4996. p.BrickColor = MAINRUINCOLOR
  4997. p.Material = Enum.Material.Neon
  4998. p.Size = Vector3.new(1,1,1)
  4999. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5000. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5001. local m = Instance.new("SpecialMesh",p)
  5002. m.MeshType = "Cylinder"
  5003. m.Scale = Vector3.new(2000,2,2)
  5004. local targ = Instance.new("Part",root)
  5005. targ.Anchored = true
  5006. targ.Transparency = 1
  5007. targ.CanCollide = false
  5008. targ.Size = Vector3.new(1,1,1)
  5009. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5010. local s = Instance.new("Sound",targ)
  5011. s.SoundId = "https://roblox.com/asset/?id=115327352"
  5012. s.Looped = true
  5013. s.Pitch = 1.2
  5014. s.Volume = 3
  5015. spawn(function()
  5016. swait(15)
  5017. s:Play()
  5018. end)
  5019. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  5020. for i = 1,15 do
  5021. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5022. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5023. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5024. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5025. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5026. 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)
  5027. 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)
  5028. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  5029. 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)
  5030. m.Scale = m.Scale+Vector3.new(0,1,1)
  5031. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5032. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5033. swait()
  5034. end
  5035. 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)
  5036. repeat
  5037. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5038. 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)
  5039. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  5040. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5041. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5042. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  5043. swait()
  5044. until judgement == false
  5045. for i =1,15 do
  5046. m.Scale = m.Scale-Vector3.new(1,1,1)
  5047. p.Transparency = i / 15
  5048. s.Pitch = s.Pitch - 0.4
  5049. swait()
  5050. end
  5051. p:Destroy()
  5052. hum.WalkSpeed = storehumanoidWS
  5053. attack = false
  5054. end
  5055.  
  5056. function UniversalSpark()
  5057. attack = true
  5058.  
  5059. local rngb = Instance.new("Part", char)
  5060. rngb.Anchored = true
  5061. rngb.BrickColor = origcolor
  5062. rngb.CanCollide = false
  5063. rngb.FormFactor = 3
  5064. rngb.Name = "Ring"
  5065. rngb.Material = "Neon"
  5066. rngb.Size = Vector3.new(1, 0.05, 1)
  5067. rngb.Transparency = 1
  5068. rngb.TopSurface = 0
  5069. rngb.BottomSurface = 0
  5070. local rngmb = Instance.new("SpecialMesh", rngb)
  5071. rngmb.MeshType = "Brick"
  5072. rngmb.Name = "SizeMesh"
  5073. rngmb.Scale = vt(0,1,0)
  5074.  
  5075. local orb = rngb:Clone()
  5076. orb.Parent = char
  5077. orb.Transparency = 0
  5078. orb.BrickColor = BrickColor.new("White")
  5079. orb.Size = vt(1,1,1)
  5080. local orbmish = orb.SizeMesh
  5081. orbmish.Scale = vt(0,0,0)
  5082. orbmish.MeshType = "Sphere"
  5083.  
  5084. local orbe = rngb:Clone()
  5085. orbe.Parent = char
  5086. orbe.Transparency = 0.5
  5087. orbe.BrickColor = BrickColor.new("New Yeller")
  5088. orbe.Size = vt(1,1,1)
  5089. local orbmish2 = orbe.SizeMesh
  5090. orbmish2.Scale = vt(0,0,0)
  5091. orbmish2.MeshType = "Sphere"
  5092. orbe.Color = Color3.new(r/255,g/255,b/255)
  5093.  
  5094. rngb:Destroy()
  5095. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  5096. local scaled = 1
  5097. for i = 0,5,0.1 do
  5098. swait()
  5099. scaled = scaled - 0.02
  5100. if rainbowmode == true then
  5101. orbe.Color = Color3.new(r/255,g/255,b/255)
  5102. end
  5103. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  5104. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  5105. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5106. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5107. 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)
  5108. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5109. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5110. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5111. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5112. 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)
  5113. 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)
  5114. RootPart.CFrame = FaceMouse()[1]
  5115. end]]--
  5116. for i = 0,5,0.1 do
  5117. swait()
  5118. if rainbowmode == true then
  5119. orbe.Color = Color3.new(r/255,g/255,b/255)
  5120. end
  5121. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5122. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5123. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5124. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5125. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5126. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5127. 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)
  5128. 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)
  5129. RootPart.CFrame = FaceMouse()[1]
  5130. end
  5131. orbe.Transparency = 1
  5132. orb.Transparency = 1
  5133. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5134. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5135. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5136. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5137.  
  5138. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5139. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  5140. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5141. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  5142. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  5143. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5144. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  5145. local xd= Instance.new("Sound",char)
  5146. xd.SoundId = "rbxassetid://445796828"
  5147. xd.Pitch = 0.75
  5148. xd.Looped = true
  5149. xd.Volume = 1.25
  5150. xd:Play()
  5151. local a = Instance.new("Part",Character)
  5152. a.Name = "Direction"
  5153. a.Anchored = true
  5154. a.BrickColor = bc("Alder")
  5155. a.Color = MAINRUINCOLOR.Color
  5156. a.Material = "Neon"
  5157. a.Transparency = 0.5
  5158. a.Shape = "Cylinder"
  5159. a.CanCollide = false
  5160. local a2 = Instance.new("Part",Character)
  5161. a2.Name = "Direction"
  5162. a2.Anchored = true
  5163. a2.BrickColor = bc("New Yeller")
  5164. a2.Color = MAINRUINCOLOR.Color
  5165. a2.Material = "Neon"
  5166. a2.Transparency = 0.5
  5167. a2.Shape = "Cylinder"
  5168. a2.CanCollide = false
  5169. local ba = Instance.new("Part",Character)
  5170. ba.Name = "HitDirect"
  5171. ba.Anchored = true
  5172. ba.BrickColor = bc("Cool yellow")
  5173. ba.Material = "Neon"
  5174. ba.Transparency = 1
  5175. ba.CanCollide = false
  5176. local ray = Ray.new(
  5177. orb.CFrame.p, -- origin
  5178. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5179. )
  5180. local ignore = Character
  5181. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5182. a.BottomSurface = 10
  5183. a.TopSurface = 10
  5184. a2.BottomSurface = 10
  5185. a2.TopSurface = 10
  5186. local distance = (orb.CFrame.p - position).magnitude
  5187. a.Size = Vector3.new(distance, 1, 1)
  5188. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5189. a2.Size = Vector3.new(distance, 1, 1)
  5190. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5191. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5192. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5193. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5194. game:GetService("Debris"):AddItem(a, 60)
  5195. game:GetService("Debris"):AddItem(a2, 60)
  5196. game:GetService("Debris"):AddItem(ba, 60)
  5197. local outerscale = 0
  5198. local msh = Instance.new("SpecialMesh",a)
  5199. msh.MeshType = "Cylinder"
  5200. msh.Scale = vt(1,0,0)
  5201. local msh2 = Instance.new("SpecialMesh",a2)
  5202. msh2.MeshType = "Cylinder"
  5203. msh2.Scale = vt(1,0,0)
  5204. for i = 0,2,0.1 do
  5205. swait()
  5206. CameraEnshaking(1,1)
  5207. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  5208. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  5209. outerscale = outerscale - 0.015
  5210. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5211. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5212. ray = Ray.new(
  5213. orb.CFrame.p, -- origin
  5214. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5215. )
  5216. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5217. distance = (orb.CFrame.p - position).magnitude
  5218. if typrot == 1 then
  5219. rotation = rotation + 2.5
  5220. elseif typrot == 2 then
  5221. rotation = rotation - 2.5
  5222. end
  5223. RootPart.CFrame = FaceMouse()[1]
  5224. a.Size = Vector3.new(distance, 1, 1)
  5225. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5226. a2.Size = Vector3.new(distance, 1, 1)
  5227. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5228. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5229. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5230. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5231. 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)
  5232. 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)
  5233. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5234. end
  5235. for z = 0, 2 do
  5236. for i = 0,4,0.1 do
  5237. swait()
  5238. CameraEnshaking(1,1)
  5239. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5240. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5241. outerscale = outerscale + 0.015
  5242. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5243. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5244. ray = Ray.new(
  5245. orb.CFrame.p, -- origin
  5246. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5247. )
  5248. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5249. distance = (orb.CFrame.p - position).magnitude
  5250. if typrot == 1 then
  5251. rotation = rotation + 2.5
  5252. elseif typrot == 2 then
  5253. rotation = rotation - 2.5
  5254. end
  5255. RootPart.CFrame = FaceMouse()[1]
  5256. a.Size = Vector3.new(distance, 1, 1)
  5257. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5258. a2.Size = Vector3.new(distance, 1, 1)
  5259. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5260. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5261. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5262. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5263. 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)
  5264. 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)
  5265. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5266. end
  5267. for i = 0,4,0.1 do
  5268. swait()
  5269. CameraEnshaking(1,1)
  5270. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5271. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5272. outerscale = outerscale - 0.015
  5273. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5274. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5275. ray = Ray.new(
  5276. orb.CFrame.p, -- origin
  5277. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5278. )
  5279. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5280. distance = (orb.CFrame.p - position).magnitude
  5281. if typrot == 1 then
  5282. rotation = rotation + 2.5
  5283. elseif typrot == 2 then
  5284. rotation = rotation - 2.5
  5285. end
  5286. RootPart.CFrame = FaceMouse()[1]
  5287. a.Size = Vector3.new(distance, 1, 1)
  5288. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5289. a2.Size = Vector3.new(distance, 1, 1)
  5290. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5291. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5292. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5293. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5294. 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)
  5295. 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)
  5296. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5297. end
  5298. end
  5299. for i = 0,4,0.1 do
  5300. swait()
  5301. CameraEnshaking(1,1)
  5302. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5303. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5304. xd.Volume = xd.Volume - 0.025
  5305. a.Transparency = a.Transparency + 0.025
  5306. a2.Transparency = a2.Transparency + 0.025
  5307. outerscale = outerscale - 0.015
  5308. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5309. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5310. ray = Ray.new(
  5311. orb.CFrame.p, -- origin
  5312. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5313. )
  5314. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5315. distance = (orb.CFrame.p - position).magnitude
  5316. if typrot == 1 then
  5317. rotation = rotation + 2.5
  5318. elseif typrot == 2 then
  5319. rotation = rotation - 2.5
  5320. end
  5321. RootPart.CFrame = FaceMouse()[1]
  5322. a.Size = Vector3.new(distance, 1, 1)
  5323. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5324. a2.Size = Vector3.new(distance, 1, 1)
  5325. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5326. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5327. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5328. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5329. 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)
  5330. 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)
  5331. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5332. end
  5333. xd:Destroy()
  5334. a:Destroy()
  5335. a2:Destroy()
  5336. ba:Destroy()
  5337. orb:Destroy()
  5338. orbe:Destroy()
  5339. attack = false
  5340. end
  5341.  
  5342.  
  5343. function resetmode()
  5344. rainbowmode = false
  5345. chaosmode = false
  5346. tl1.Enabled = false
  5347. tl2.Enabled = false
  5348. tl3.Enabled = false
  5349. ModeOfGlitch = 1
  5350. storehumanoidWS = 16
  5351. coroutine.resume(coroutine.create(function()
  5352. attack = true
  5353. hum.WalkSpeed = 0
  5354. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  5355. for i = 0,4,0.1 do
  5356. swait()
  5357. 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)
  5358. 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)
  5359. 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)
  5360. 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)
  5361. 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)
  5362. RW.C0=Clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  5363. LW.C0=Clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  5364. end
  5365. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  5366. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  5367. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  5368. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  5369. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  5370. CameraEnshaking(5,2.5)
  5371. MAINRUINCOLOR = BrickColor.new("Really red")
  5372. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5373. for i = 0, 49 do
  5374. 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)
  5375. end
  5376. for i = 0,3,0.1 do
  5377. 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)
  5378. end
  5379. for i, v in pairs(mw2:GetChildren()) do
  5380. if v:IsA("Part") then
  5381. v.BrickColor = BrickColor.new("Really red")
  5382. v.Material = "Neon"
  5383. end
  5384. end
  5385. for i, v in pairs(mw1:GetChildren()) do
  5386. if v:IsA("Part") then
  5387. v.Transparency = 1
  5388. v.BrickColor = BrickColor.new("Really red")
  5389. v.Material = "Neon"
  5390. end
  5391. end
  5392. for i, v in pairs(m:GetChildren()) do
  5393. if v:IsA("Part") then
  5394. v.BrickColor = BrickColor.new("Really black")
  5395. v.Material = "Glass"
  5396. end
  5397. end
  5398. for i, v in pairs(m2:GetChildren()) do
  5399. if v:IsA("Part") then
  5400. v.BrickColor = BrickColor.new("Crimson")
  5401. v.Material = "Granite"
  5402. end
  5403. end
  5404. for i, v in pairs(m3:GetChildren()) do
  5405. if v:IsA("Part") then
  5406. v.BrickColor = BrickColor.new("Really red")
  5407. v.Material = "Neon"
  5408. end
  5409. end
  5410. for i, v in pairs(extrawingmod1:GetChildren()) do
  5411. if v:IsA("Part") then
  5412. v.Transparency = 1
  5413. v.BrickColor = BrickColor.new("White")
  5414. v.Material = "Neon"
  5415. end
  5416. end
  5417. for i, v in pairs(extrawingmod2:GetChildren()) do
  5418. if v:IsA("Part") then
  5419. v.Transparency = 1
  5420. v.BrickColor = BrickColor.new("White")
  5421. v.Material = "Neon"
  5422. end
  5423. end
  5424. for i = 0,2,0.1 do
  5425. swait()
  5426. 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)
  5427. 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)
  5428. 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)
  5429. 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)
  5430. 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)
  5431. 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)
  5432. end
  5433. hum.WalkSpeed = storehumanoidWS
  5434. attack = false
  5435. end))
  5436. newTheme("rbxassetid://614032233",48.6,1,0.3)
  5437. end
  5438.  
  5439. function attackone()
  5440. attack = true
  5441. for i = 0,1,0.1 do
  5442. swait()
  5443. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  5444. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  5445. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5446. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5447. 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)
  5448. 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)
  5449. end
  5450. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  5451.  
  5452. local hitb = Instance.new("Part", char)
  5453. hitb.Anchored = true
  5454. hitb.CanCollide = false
  5455. hitb.FormFactor = 3
  5456. hitb.Name = "Ring"
  5457. hitb.Material = "Neon"
  5458. hitb.Size = Vector3.new(1, 1, 1)
  5459. hitb.Transparency = 1
  5460. hitb.TopSurface = 0
  5461. hitb.BottomSurface = 0
  5462. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5463. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5464. hitb:Destroy()
  5465. for i = 0,1,0.1 do
  5466. swait()
  5467. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5468. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5469. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5470. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5471. 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)
  5472. 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)
  5473. end
  5474.  
  5475. attack = false
  5476. end
  5477.  
  5478. function attacktwo()
  5479. attack = true
  5480. for i = 0,1,0.1 do
  5481. swait()
  5482. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5483. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5484. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5485. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5486. 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)
  5487. 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)
  5488. end
  5489. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5490. local hitb = Instance.new("Part", char)
  5491. hitb.Anchored = true
  5492. hitb.CanCollide = false
  5493. hitb.FormFactor = 3
  5494. hitb.Name = "Ring"
  5495. hitb.Material = "Neon"
  5496. hitb.Size = Vector3.new(1, 1, 1)
  5497. hitb.Transparency = 1
  5498. hitb.TopSurface = 0
  5499. hitb.BottomSurface = 0
  5500. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5501. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5502. hitb:Destroy()
  5503. for i = 0,1,0.1 do
  5504. swait()
  5505. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5506. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5507. RW.C0 = Clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5508. LW.C0 = Clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5509. 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)
  5510. 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)
  5511. end
  5512. attack = false
  5513. end
  5514.  
  5515. function attackthree()
  5516. attack = true
  5517. for i = 0,1,0.1 do
  5518. swait()
  5519. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5520. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5521. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5522. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5523. 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)
  5524. 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)
  5525. end
  5526. local distlook = 5
  5527. for i = 0, 4 do
  5528. swait(2)
  5529. CameraEnshaking(2,3)
  5530. local hite = Instance.new("Part", char)
  5531. hite.Anchored = true
  5532. hite.CanCollide = false
  5533. hite.FormFactor = 3
  5534. hite.Name = "Ring"
  5535. hite.Material = "Neon"
  5536. hite.Size = Vector3.new(1, 1, 1)
  5537. hite.Transparency = 1
  5538. hite.TopSurface = 0
  5539. hite.BottomSurface = 0
  5540. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5541. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5542. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5543. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5544. for i = 0, 2 do
  5545. 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)
  5546. 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)
  5547. 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)
  5548. end
  5549. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5550. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5551. game:GetService("Debris"):AddItem(hite, 5)
  5552. distlook = distlook + 10
  5553. end
  5554. attack = false
  5555. end
  5556.  
  5557. local ActiveGia = false
  5558. function THEHELLITSTHATBIG()
  5559. ActiveGia = true
  5560. attack = true
  5561. hum.WalkSpeed = 0
  5562. for i = 0,2,0.1 do
  5563. swait()
  5564. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5565. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5566. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5567. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5568. 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)
  5569. 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)
  5570. end
  5571. for i = 0,1,0.1 do
  5572. torsweld.C1=Clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5573. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5574. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5575. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5576. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5577. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5578. end
  5579. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5580. secrleg.Transparency = 0.5
  5581. seclleg.Transparency = 0.5
  5582. secrarm.Transparency = 0.5
  5583. seclarm.Transparency = 0.5
  5584. seched.Transparency = 0.5
  5585. sectors.Transparency = 0.5
  5586. for i = 0,25,0.1 do
  5587. swait()
  5588. 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)
  5589. 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)
  5590. 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)
  5591. 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)
  5592. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5593. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5594. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5595. end
  5596. --[[secrleg.Transparency = 1
  5597. seclleg.Transparency = 1
  5598. secrarm.Transparency = 1
  5599. seclarm.Transparency = 1
  5600. seched.Transparency = 1
  5601. sectors.Transparency = 1]]--
  5602. torsweld.Part0 = root
  5603. hum.WalkSpeed = storehumanoidWS
  5604. attack = false
  5605. end
  5606.  
  5607. function removelol()
  5608. ActiveGia = false
  5609. attack = true
  5610. hum.WalkSpeed = 0
  5611. for i = 0,2,0.1 do
  5612. swait()
  5613. RootJoint.C0 = Clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5614. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5615. RW.C0 = Clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5616. LW.C0 = Clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5617. 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)
  5618. LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5619. end
  5620. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5621. for i = 0,25,0.1 do
  5622. swait()
  5623. secrleg.Transparency = secrleg.Transparency + 0.00225
  5624. seclleg.Transparency = secrleg.Transparency
  5625. secrarm.Transparency = secrleg.Transparency
  5626. seclarm.Transparency = secrleg.Transparency
  5627. seched.Transparency = secrleg.Transparency
  5628. sectors.Transparency = secrleg.Transparency
  5629. 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)
  5630. 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)
  5631. 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)
  5632. 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)
  5633. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5634. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5635. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5636. end
  5637. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5638. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5639. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5640. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5641. secrleg.Transparency = 1
  5642. seclleg.Transparency = 1
  5643. secrarm.Transparency = 1
  5644. seclarm.Transparency = 1
  5645. seched.Transparency = 1
  5646. sectors.Transparency = 1
  5647. torsweld.Part0 = root
  5648. hum.WalkSpeed = storehumanoidWS
  5649. attack = false
  5650. end
  5651.  
  5652. function FinalCalamity()
  5653. end
  5654.  
  5655. local attacktype = 1
  5656. mouse.Button1Down:connect(function()
  5657. if attack == false and attacktype == 1 then
  5658. attacktype = 2
  5659. attackone()
  5660. elseif attack == false and attacktype == 2 then
  5661. attacktype = 3
  5662. attacktwo()
  5663. elseif attack == false and attacktype == 3 then
  5664. attacktype = 1
  5665. attackthree()
  5666. elseif attack == false and attacktype == 4 then
  5667. attacktype = 1
  5668. --attackfour()
  5669. end
  5670. end)
  5671. mouse.KeyDown:connect(function(k)
  5672. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5673. ModeOfGlitch = 2
  5674. storehumanoidWS = 16
  5675. hum.WalkSpeed = 16
  5676. rainbowmode = false
  5677. chaosmode = false
  5678. tl1.Enabled = false
  5679. tl2.Enabled = false
  5680. tl3.Enabled = false
  5681. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5682. newTheme("rbxassetid://1539245059",0,1,0.3)
  5683. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5684. for i, v in pairs(mw2:GetChildren()) do
  5685. if v:IsA("Part") then
  5686. v.BrickColor = MAINRUINCOLOR
  5687. v.Material = "Neon"
  5688. end
  5689. end
  5690. for i, v in pairs(mw1:GetChildren()) do
  5691. if v:IsA("Part") then
  5692. v.Transparency = 1
  5693. v.BrickColor = MAINRUINCOLOR
  5694. v.Material = "Neon"
  5695. end
  5696. end
  5697. for i, v in pairs(m:GetChildren()) do
  5698. if v:IsA("Part") then
  5699. v.BrickColor = BrickColor.new("White")
  5700. v.Material = "Ice"
  5701. end
  5702. end
  5703. for i, v in pairs(m2:GetChildren()) do
  5704. if v:IsA("Part") then
  5705. v.BrickColor = BrickColor.new("Pastel light blue")
  5706. v.Material = "Glass"
  5707. end
  5708. end
  5709. for i, v in pairs(m3:GetChildren()) do
  5710. if v:IsA("Part") then
  5711. v.BrickColor = BrickColor.new("Toothpaste")
  5712. v.Material = "Neon"
  5713. end
  5714. end
  5715. for i, v in pairs(extrawingmod1:GetChildren()) do
  5716. if v:IsA("Part") then
  5717. v.Transparency = 1
  5718. v.BrickColor = BrickColor.new("White")
  5719. v.Material = "Neon"
  5720. end
  5721. end
  5722. for i, v in pairs(extrawingmod2:GetChildren()) do
  5723. if v:IsA("Part") then
  5724. v.Transparency = 1
  5725. v.BrickColor = BrickColor.new("White")
  5726. v.Material = "Neon"
  5727. end
  5728. end
  5729. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5730. resetmode()
  5731. end
  5732. if k == "b" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 777 then
  5733. newThemeCust("rbxassetid://544291208",0,1,1)
  5734. attack = true
  5735. hum.WalkSpeed = 0
  5736. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5737. for i = 0, 24, 0.1 do
  5738. swait()
  5739. 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)
  5740. 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)
  5741. 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)
  5742. 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)
  5743. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5744. 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)
  5745. 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)
  5746. end
  5747. CameraEnshaking(1,1)
  5748. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5749. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5750. wait(0.55)
  5751. CameraEnshaking(1,2)
  5752. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5753. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5754. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5755. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5756. wait(0.55)
  5757. CameraEnshaking(1,3)
  5758. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5759. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5760. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5761. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5762. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5763. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5764. wait(0.55)
  5765. CameraEnshaking(10,5)
  5766. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5767. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5768. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5769. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5770. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5771. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5772. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5773. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5774. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5775. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5776. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5777. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5778. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5779. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5780. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5781. for i = 0, 49 do
  5782. 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)
  5783. 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)
  5784. 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)
  5785. 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)
  5786. end
  5787. ModeOfGlitch = 777
  5788. storehumanoidWS = 16
  5789. hum.WalkSpeed = 16
  5790. rainbowmode = false
  5791. chaosmode = false
  5792. tl1.Enabled = true
  5793. tl2.Enabled = true
  5794. tl3.Enabled = true
  5795. RecolorTextAndRename("Divine Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5796. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5797. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5798. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5799. for i, v in pairs(mw2:GetChildren()) do
  5800. if v:IsA("Part") then
  5801. v.BrickColor = MAINRUINCOLOR
  5802. v.Material = "Neon"
  5803. end
  5804. end
  5805. for i, v in pairs(mw1:GetChildren()) do
  5806. if v:IsA("Part") then
  5807. v.Transparency = 0
  5808. v.BrickColor = MAINRUINCOLOR
  5809. v.Material = "Neon"
  5810. end
  5811. end
  5812. for i, v in pairs(m:GetChildren()) do
  5813. if v:IsA("Part") then
  5814. v.BrickColor = MAINRUINCOLOR
  5815. v.Material = "Neon"
  5816. end
  5817. end
  5818. for i, v in pairs(m2:GetChildren()) do
  5819. if v:IsA("Part") then
  5820. v.BrickColor = MAINRUINCOLOR
  5821. v.Material = "Neon"
  5822. end
  5823. end
  5824. for i, v in pairs(m3:GetChildren()) do
  5825. if v:IsA("Part") then
  5826. v.BrickColor = MAINRUINCOLOR
  5827. v.Material = "Neon"
  5828. end
  5829. end
  5830. for i, v in pairs(extrawingmod1:GetChildren()) do
  5831. if v:IsA("Part") then
  5832. v.Transparency = 0
  5833. v.BrickColor = MAINRUINCOLOR
  5834. v.Material = "Neon"
  5835. end
  5836. end
  5837. for i, v in pairs(extrawingmod2:GetChildren()) do
  5838. if v:IsA("Part") then
  5839. v.Transparency = 0
  5840. v.BrickColor = MAINRUINCOLOR
  5841. v.Material = "Neon"
  5842. end
  5843. attack = false
  5844. end
  5845. elseif k == "b" and attack == false and ModeOfGlitch == 777 then
  5846. resetmode()
  5847. end
  5848. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5849. ModeOfGlitch = 3
  5850. storehumanoidWS = 16
  5851. hum.WalkSpeed = 16
  5852. rainbowmode = false
  5853. chaosmode = false
  5854. tl1.Enabled = false
  5855. tl2.Enabled = false
  5856. tl3.Enabled = false
  5857. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5858. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5859. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5860. for i, v in pairs(mw2:GetChildren()) do
  5861. if v:IsA("Part") then
  5862. v.BrickColor = MAINRUINCOLOR
  5863. v.Material = "Neon"
  5864. end
  5865. end
  5866. for i, v in pairs(mw1:GetChildren()) do
  5867. if v:IsA("Part") then
  5868. v.Transparency = 1
  5869. v.BrickColor = MAINRUINCOLOR
  5870. v.Material = "Neon"
  5871. end
  5872. end
  5873. for i, v in pairs(m:GetChildren()) do
  5874. if v:IsA("Part") then
  5875. v.BrickColor = BrickColor.new("Black")
  5876. v.Material = "Ice"
  5877. end
  5878. end
  5879. for i, v in pairs(m2:GetChildren()) do
  5880. if v:IsA("Part") then
  5881. v.BrickColor = BrickColor.new("Dark indigo")
  5882. v.Material = "Glass"
  5883. end
  5884. end
  5885. for i, v in pairs(m3:GetChildren()) do
  5886. if v:IsA("Part") then
  5887. v.BrickColor = BrickColor.new("Royal purple")
  5888. v.Material = "Neon"
  5889. end
  5890. end
  5891. for i, v in pairs(extrawingmod1:GetChildren()) do
  5892. if v:IsA("Part") then
  5893. v.Transparency = 1
  5894. v.BrickColor = BrickColor.new("White")
  5895. v.Material = "Neon"
  5896. end
  5897. end
  5898. for i, v in pairs(extrawingmod2:GetChildren()) do
  5899. if v:IsA("Part") then
  5900. v.Transparency = 1
  5901. v.BrickColor = BrickColor.new("White")
  5902. v.Material = "Neon"
  5903. end
  5904. end
  5905. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5906. resetmode()
  5907. end
  5908. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5909. ModeOfGlitch = 4
  5910. storehumanoidWS = 16
  5911. hum.WalkSpeed = 16
  5912. rainbowmode = false
  5913. chaosmode = true
  5914. tl1.Enabled = true
  5915. tl2.Enabled = true
  5916. tl3.Enabled = true
  5917. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5918. newTheme("rbxassetid://1369263130",0,1,1)MAINRUINCOLOR = BrickColor.new("Black")
  5919. for i, v in pairs(mw2:GetChildren()) do
  5920. if v:IsA("Part") then
  5921. v.BrickColor = MAINRUINCOLOR
  5922. v.Material = "Neon"
  5923. end
  5924. end
  5925. for i, v in pairs(mw1:GetChildren()) do
  5926. if v:IsA("Part") then
  5927. v.Transparency = 0.75
  5928. v.BrickColor = BrickColor.random()
  5929. v.Material = "Neon"
  5930. end
  5931. end
  5932. for i, v in pairs(m:GetChildren()) do
  5933. if v:IsA("Part") then
  5934. v.BrickColor = BrickColor.new("Black")
  5935. v.Material = "Neon"
  5936. end
  5937. end
  5938. for i, v in pairs(m2:GetChildren()) do
  5939. if v:IsA("Part") then
  5940. v.BrickColor = BrickColor.random()
  5941. v.Material = "Neon"
  5942. end
  5943. end
  5944. for i, v in pairs(m3:GetChildren()) do
  5945. if v:IsA("Part") then
  5946. v.BrickColor = BrickColor.new("Black")
  5947. v.Material = "Neon"
  5948. end
  5949. end
  5950. for i, v in pairs(extrawingmod1:GetChildren()) do
  5951. if v:IsA("Part") then
  5952. v.Transparency = 1
  5953. v.BrickColor = BrickColor.new("White")
  5954. v.Material = "Neon"
  5955. end
  5956. end
  5957. for i, v in pairs(extrawingmod2:GetChildren()) do
  5958. if v:IsA("Part") then
  5959. v.Transparency = 1
  5960. v.BrickColor = BrickColor.new("White")
  5961. v.Material = "Neon"
  5962. end
  5963. end
  5964. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5965. resetmode()
  5966. end
  5967. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5968. ModeOfGlitch = 5
  5969. storehumanoidWS = 16
  5970. hum.WalkSpeed = 16
  5971. rainbowmode = false
  5972. chaosmode = false
  5973. tl1.Enabled = true
  5974. tl2.Enabled = true
  5975. tl3.Enabled = true
  5976. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5977. newTheme("rbxassetid://661079869",0,1.02,1)
  5978. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5979. for i, v in pairs(mw2:GetChildren()) do
  5980. if v:IsA("Part") then
  5981. v.BrickColor = MAINRUINCOLOR
  5982. v.Material = "Neon"
  5983. end
  5984. end
  5985. for i, v in pairs(mw1:GetChildren()) do
  5986. if v:IsA("Part") then
  5987. v.Transparency = 0
  5988. v.BrickColor = MAINRUINCOLOR
  5989. v.Material = "Neon"
  5990. end
  5991. end
  5992. for i, v in pairs(m:GetChildren()) do
  5993. if v:IsA("Part") then
  5994. v.BrickColor = BrickColor.new("Cool yellow")
  5995. v.Material = "Ice"
  5996. end
  5997. end
  5998. for i, v in pairs(m2:GetChildren()) do
  5999. if v:IsA("Part") then
  6000. v.BrickColor = BrickColor.new("Bright yellow")
  6001. v.Material = "Ice"
  6002. end
  6003. end
  6004. for i, v in pairs(m3:GetChildren()) do
  6005. if v:IsA("Part") then
  6006. v.BrickColor = BrickColor.new("Bright yellow")
  6007. v.Material = "Neon"
  6008. end
  6009. end
  6010. for i, v in pairs(extrawingmod1:GetChildren()) do
  6011. if v:IsA("Part") then
  6012. v.Transparency = 1
  6013. v.BrickColor = BrickColor.new("White")
  6014. v.Material = "Neon"
  6015. end
  6016. end
  6017. for i, v in pairs(extrawingmod2:GetChildren()) do
  6018. if v:IsA("Part") then
  6019. v.Transparency = 1
  6020. v.BrickColor = BrickColor.new("White")
  6021. v.Material = "Neon"
  6022. end
  6023. end
  6024. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  6025. resetmode()
  6026. end
  6027. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  6028. ModeOfGlitch = 6
  6029. storehumanoidWS = 75
  6030. hum.WalkSpeed = 75
  6031. rainbowmode = false
  6032. chaosmode = false
  6033. tl1.Enabled = true
  6034. tl2.Enabled = true
  6035. tl3.Enabled = true
  6036. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  6037. newTheme("rbxassetid://395351949",0,1,1)
  6038. MAINRUINCOLOR = BrickColor.new("White")
  6039. for i, v in pairs(mw2:GetChildren()) do
  6040. if v:IsA("Part") then
  6041. v.BrickColor = MAINRUINCOLOR
  6042. v.Material = "Neon"
  6043. end
  6044. end
  6045. for i, v in pairs(mw1:GetChildren()) do
  6046. if v:IsA("Part") then
  6047. v.Transparency = 0
  6048. v.BrickColor = MAINRUINCOLOR
  6049. v.Material = "Neon"
  6050. end
  6051. end
  6052. for i, v in pairs(m:GetChildren()) do
  6053. if v:IsA("Part") then
  6054. v.BrickColor = BrickColor.new("White")
  6055. v.Material = "Ice"
  6056. end
  6057. end
  6058. for i, v in pairs(m2:GetChildren()) do
  6059. if v:IsA("Part") then
  6060. v.BrickColor = BrickColor.new("Really black")
  6061. v.Material = "Ice"
  6062. end
  6063. end
  6064. for i, v in pairs(m3:GetChildren()) do
  6065. if v:IsA("Part") then
  6066. v.BrickColor = BrickColor.new("White")
  6067. v.Material = "Neon"
  6068. end
  6069. end
  6070. for i, v in pairs(extrawingmod1:GetChildren()) do
  6071. if v:IsA("Part") then
  6072. v.Transparency = 1
  6073. v.BrickColor = BrickColor.new("White")
  6074. v.Material = "Neon"
  6075. end
  6076. end
  6077. for i, v in pairs(extrawingmod2:GetChildren()) do
  6078. if v:IsA("Part") then
  6079. v.Transparency = 1
  6080. v.BrickColor = BrickColor.new("White")
  6081. v.Material = "Neon"
  6082. end
  6083. end
  6084. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  6085. resetmode()
  6086. end
  6087. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  6088. ModeOfGlitch = 6127843
  6089. storehumanoidWS = 50
  6090. hum.WalkSpeed = 50
  6091. rainbowmode = true
  6092. chaosmode = false
  6093. tl1.Enabled = true
  6094. tl2.Enabled = true
  6095. tl3.Enabled = true
  6096. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  6097. newTheme("rbxassetid://147930134",0,1,1)
  6098. MAINRUINCOLOR = BrickColor.new("White")
  6099. for i, v in pairs(mw2:GetChildren()) do
  6100. if v:IsA("Part") then
  6101. v.BrickColor = MAINRUINCOLOR
  6102. v.Material = "Neon"
  6103. end
  6104. end
  6105. for i, v in pairs(mw1:GetChildren()) do
  6106. if v:IsA("Part") then
  6107. v.Transparency = 0
  6108. v.BrickColor = MAINRUINCOLOR
  6109. v.Material = "Neon"
  6110. end
  6111. end
  6112. for i, v in pairs(m:GetChildren()) do
  6113. if v:IsA("Part") then
  6114. v.BrickColor = BrickColor.new("White")
  6115. v.Material = "Neon"
  6116. end
  6117. end
  6118. for i, v in pairs(m2:GetChildren()) do
  6119. if v:IsA("Part") then
  6120. v.BrickColor = BrickColor.new("White")
  6121. v.Material = "Neon"
  6122. end
  6123. end
  6124. for i, v in pairs(m3:GetChildren()) do
  6125. if v:IsA("Part") then
  6126. v.BrickColor = BrickColor.new("White")
  6127. v.Material = "Neon"
  6128. end
  6129. end
  6130. for i, v in pairs(extrawingmod1:GetChildren()) do
  6131. if v:IsA("Part") then
  6132. v.Transparency = 1
  6133. v.BrickColor = BrickColor.new("White")
  6134. v.Material = "Neon"
  6135. end
  6136. end
  6137. for i, v in pairs(extrawingmod2:GetChildren()) do
  6138. if v:IsA("Part") then
  6139. v.Transparency = 1
  6140. v.BrickColor = BrickColor.new("White")
  6141. v.Material = "Neon"
  6142. end
  6143. end
  6144. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  6145. resetmode()
  6146. end
  6147. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  6148. ModeOfGlitch = 1000000
  6149. storehumanoidWS = 100
  6150. hum.WalkSpeed = 100
  6151. rainbowmode = false
  6152. chaosmode = false
  6153. tl1.Enabled = true
  6154. tl2.Enabled = true
  6155. tl3.Enabled = true
  6156. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  6157. newTheme("rbxassetid://1359036559",0,1,1)
  6158. MAINRUINCOLOR = BrickColor.new("Bright violet")
  6159. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6160. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6161. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6162. for i, v in pairs(mw2:GetChildren()) do
  6163. if v:IsA("Part") then
  6164. v.BrickColor = MAINRUINCOLOR
  6165. v.Material = "Neon"
  6166. end
  6167. end
  6168. for i, v in pairs(mw1:GetChildren()) do
  6169. if v:IsA("Part") then
  6170. v.Transparency = 0
  6171. v.BrickColor = MAINRUINCOLOR
  6172. v.Material = "Neon"
  6173. end
  6174. end
  6175. for i, v in pairs(m:GetChildren()) do
  6176. if v:IsA("Part") then
  6177. v.Color = Color3.new(0.5,0,1)
  6178. v.Material = "Neon"
  6179. end
  6180. end
  6181. for i, v in pairs(m2:GetChildren()) do
  6182. if v:IsA("Part") then
  6183. v.Color = Color3.new(0.25,0,1)
  6184. v.Material = "Neon"
  6185. end
  6186. end
  6187. for i, v in pairs(m3:GetChildren()) do
  6188. if v:IsA("Part") then
  6189. v.Color = Color3.new(0.45,0,1)
  6190. v.Material = "Neon"
  6191. end
  6192. end
  6193. for i, v in pairs(extrawingmod1:GetChildren()) do
  6194. if v:IsA("Part") then
  6195. v.Transparency = 0.75
  6196. v.Color = Color3.new(0.25,0,1)
  6197. v.Material = "Neon"
  6198. end
  6199. end
  6200. for i, v in pairs(extrawingmod2:GetChildren()) do
  6201. if v:IsA("Part") then
  6202. v.Transparency = 0.75
  6203. v.Color = Color3.new(0.5,0,1)
  6204. v.Material = "Neon"
  6205. end
  6206. end
  6207. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  6208. resetmode()
  6209. end
  6210. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  6211. newThemeCust("rbxassetid://1504604335",0,1,1)
  6212. attack = true
  6213. hum.WalkSpeed = 0
  6214. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6215. for i = 0, 24, 0.1 do
  6216. swait()
  6217. 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)
  6218. 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)
  6219. 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)
  6220. 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)
  6221. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6222. 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)
  6223. 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)
  6224. end
  6225. CameraEnshaking(1,1)
  6226. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6227. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6228. wait(0.55)
  6229. CameraEnshaking(1,2)
  6230. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6231. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6232. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6233. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6234. wait(0.55)
  6235. CameraEnshaking(1,3)
  6236. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6237. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6238. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6239. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6240. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6241. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6242. wait(0.55)
  6243. CameraEnshaking(10,5)
  6244. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6245. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6246. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6247. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6248. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6249. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6250. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6251. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6252. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6253. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6254. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6255. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6256. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6257. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6258. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6259. for i = 0, 49 do
  6260. 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)
  6261. 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)
  6262. 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)
  6263. 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)
  6264. end
  6265. ModeOfGlitch = 12345678987654321
  6266. storehumanoidWS = 200
  6267. hum.WalkSpeed = 200
  6268. rainbowmode = false
  6269. chaosmode = false
  6270. tl1.Enabled = true
  6271. tl2.Enabled = true
  6272. tl3.Enabled = true
  6273. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  6274. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6275. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6276. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6277. for i, v in pairs(mw2:GetChildren()) do
  6278. if v:IsA("Part") then
  6279. v.BrickColor = MAINRUINCOLOR
  6280. v.Material = "Neon"
  6281. end
  6282. end
  6283. for i, v in pairs(mw1:GetChildren()) do
  6284. if v:IsA("Part") then
  6285. v.Transparency = 0
  6286. v.BrickColor = MAINRUINCOLOR
  6287. v.Material = "Neon"
  6288. end
  6289. end
  6290. for i, v in pairs(m:GetChildren()) do
  6291. if v:IsA("Part") then
  6292. v.Color = Color3.new(0.5,0,1)
  6293. v.Material = "Neon"
  6294. end
  6295. end
  6296. for i, v in pairs(m2:GetChildren()) do
  6297. if v:IsA("Part") then
  6298. v.Color = Color3.new(0.5,0,1)
  6299. v.Material = "Neon"
  6300. end
  6301. end
  6302. for i, v in pairs(m3:GetChildren()) do
  6303. if v:IsA("Part") then
  6304. v.Color = Color3.new(0.5,0,1)
  6305. v.Material = "Neon"
  6306. end
  6307. end
  6308. for i, v in pairs(extrawingmod1:GetChildren()) do
  6309. if v:IsA("Part") then
  6310. v.Transparency = 0
  6311. v.Color = Color3.new(0.5,0,1)
  6312. v.Material = "Neon"
  6313. end
  6314. end
  6315. for i, v in pairs(extrawingmod2:GetChildren()) do
  6316. if v:IsA("Part") then
  6317. v.Transparency = 0
  6318. v.Color = Color3.new(0.5,0,1)
  6319. v.Material = "Neon"
  6320. end
  6321. attack = false
  6322. end
  6323. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  6324. resetmode()
  6325. end
  6326. if k == "b" and attack == false and ModeOfGlitch == 12345678987654321 and ModeOfGlitch ~= 12345678987654322 then
  6327. newThemeCust("rbxassetid://247971190",0,1,1)
  6328. attack = true
  6329. hum.WalkSpeed = 0
  6330. MAINRUINCOLOR = BrickColor.new("Alder")
  6331. for i = 0, 24, 0.1 do
  6332. swait()
  6333. 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)
  6334. 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)
  6335. 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)
  6336. 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)
  6337. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6338. 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)
  6339. 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)
  6340. end
  6341. CameraEnshaking(1,1)
  6342. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6343. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6344. wait(0.55)
  6345. CameraEnshaking(1,2)
  6346. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6347. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6348. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6349. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6350. wait(0.55)
  6351. CameraEnshaking(1,3)
  6352. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6353. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6354. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6355. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6356. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6357. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6358. wait(0.55)
  6359. CameraEnshaking(10,5)
  6360. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6361. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6362. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6363. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6364. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6365. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6366. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6367. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6368. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6369. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6370. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6371. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6372. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6373. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6374. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6375. for i = 0, 49 do
  6376. 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)
  6377. 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)
  6378. 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)
  6379. 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)
  6380. end
  6381. ModeOfGlitch = 12345678987654322
  6382. storehumanoidWS = 16
  6383. hum.WalkSpeed = 16
  6384. rainbowmode = false
  6385. chaosmode = false
  6386. tl1.Enabled = true
  6387. tl2.Enabled = true
  6388. tl3.Enabled = true
  6389. RecolorTextAndRename("Divine Universe",Color3.new(1,0,1),Color3.new(0.75,0,0.75))
  6390. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6391. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6392. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6393. for i, v in pairs(mw2:GetChildren()) do
  6394. if v:IsA("Part") then
  6395. v.BrickColor = MAINRUINCOLOR
  6396. v.Material = "Neon"
  6397. end
  6398. end
  6399. for i, v in pairs(mw1:GetChildren()) do
  6400. if v:IsA("Part") then
  6401. v.Transparency = 0
  6402. v.BrickColor = MAINRUINCOLOR
  6403. v.Material = "Neon"
  6404. end
  6405. end
  6406. for i, v in pairs(m:GetChildren()) do
  6407. if v:IsA("Part") then
  6408. v.BrickColor = MAINRUINCOLOR
  6409. v.Material = "Neon"
  6410. end
  6411. end
  6412. for i, v in pairs(m2:GetChildren()) do
  6413. if v:IsA("Part") then
  6414. v.BrickColor = MAINRUINCOLOR
  6415. v.Material = "Neon"
  6416. end
  6417. end
  6418. for i, v in pairs(m3:GetChildren()) do
  6419. if v:IsA("Part") then
  6420. v.BrickColor = MAINRUINCOLOR
  6421. v.Material = "Neon"
  6422. end
  6423. end
  6424. for i, v in pairs(extrawingmod1:GetChildren()) do
  6425. if v:IsA("Part") then
  6426. v.Transparency = 0
  6427. v.BrickColor = MAINRUINCOLOR
  6428. v.Material = "Neon"
  6429. end
  6430. end
  6431. for i, v in pairs(extrawingmod2:GetChildren()) do
  6432. if v:IsA("Part") then
  6433. v.Transparency = 0
  6434. v.BrickColor = MAINRUINCOLOR
  6435. v.Material = "Neon"
  6436. end
  6437. attack = false
  6438. end
  6439. elseif k == "b" and attack == false and ModeOfGlitch == 12345678987654322 then
  6440. resetmode()
  6441. end
  6442. if k == "f" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 727 then
  6443. newThemeCust("rbxassetid://143892575",0,1,1)
  6444. attack = true
  6445. hum.WalkSpeed = 0
  6446. MAINRUINCOLOR = BrickColor.new("Really black")
  6447. for i = 0, 24, 0.1 do
  6448. swait()
  6449. 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)
  6450. 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)
  6451. 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)
  6452. 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)
  6453. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6454. 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)
  6455. 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)
  6456. end
  6457. CameraEnshaking(1,1)
  6458. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6459. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6460. wait(0.55)
  6461. CameraEnshaking(1,2)
  6462. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6463. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6464. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6465. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6466. wait(0.55)
  6467. CameraEnshaking(1,3)
  6468. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6469. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6470. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6471. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6472. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6473. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6474. wait(0.55)
  6475. CameraEnshaking(10,5)
  6476. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6477. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6478. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6479. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6480. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6481. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6482. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6483. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6484. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6485. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6486. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6487. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6488. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6489. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6490. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6491. for i = 0, 49 do
  6492. 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)
  6493. 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)
  6494. 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)
  6495. 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)
  6496. end
  6497. ModeOfGlitch = 727
  6498. storehumanoidWS = 200
  6499. hum.WalkSpeed = 200
  6500. rainbowmode = false
  6501. chaosmode = false
  6502. tl1.Enabled = true
  6503. tl2.Enabled = true
  6504. tl3.Enabled = true
  6505. RecolorTextAndRename("Distortion",Color3.new(0.5,0.5,0.5),Color3.new(0.75,0.75,0.75))
  6506. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6507. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6508. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6509. for i, v in pairs(mw2:GetChildren()) do
  6510. if v:IsA("Part") then
  6511. v.BrickColor = MAINRUINCOLOR
  6512. v.Material = "Neon"
  6513. end
  6514. end
  6515. for i, v in pairs(mw1:GetChildren()) do
  6516. if v:IsA("Part") then
  6517. v.Transparency = 0
  6518. v.BrickColor = MAINRUINCOLOR
  6519. v.Material = "Neon"
  6520. end
  6521. end
  6522. for i, v in pairs(m:GetChildren()) do
  6523. if v:IsA("Part") then
  6524. v.Color = Color3.new(0.5,0.5,0.5)
  6525. v.Material = "Neon"
  6526. end
  6527. end
  6528. for i, v in pairs(m2:GetChildren()) do
  6529. if v:IsA("Part") then
  6530. v.Color = Color3.new(0.5,0.5,0.5)
  6531. v.Material = "Neon"
  6532. end
  6533. end
  6534. for i, v in pairs(m3:GetChildren()) do
  6535. if v:IsA("Part") then
  6536. v.Color = Color3.new(0.5,0.5,0.5)
  6537. v.Material = "Neon"
  6538. end
  6539. end
  6540. for i, v in pairs(extrawingmod1:GetChildren()) do
  6541. if v:IsA("Part") then
  6542. v.Transparency = 0
  6543. v.Color = Color3.new(0.5,0.5,0.5)
  6544. v.Material = "Neon"
  6545. end
  6546. end
  6547. for i, v in pairs(extrawingmod2:GetChildren()) do
  6548. if v:IsA("Part") then
  6549. v.Transparency = 0
  6550. v.Color = Color3.new(0.5,0.5,0.5)
  6551. v.Material = "Neon"
  6552. end
  6553. attack = false
  6554. end
  6555. elseif k == "f" and attack == false and ModeOfGlitch == 727 then
  6556. resetmode()
  6557. end
  6558. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  6559. newThemeCust("rbxassetid://723652641",0,1,1)
  6560. attack = true
  6561. hum.WalkSpeed = 0
  6562. MAINRUINCOLOR = BrickColor.new("Crimson")
  6563. for i = 0, 24, 0.1 do
  6564. swait()
  6565. 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)
  6566. 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)
  6567. 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)
  6568. 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)
  6569. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6570. 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)
  6571. 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)
  6572. end
  6573. CameraEnshaking(1,1)
  6574. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6575. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6576. wait(0.55)
  6577. CameraEnshaking(1,2)
  6578. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6579. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6580. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6581. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6582. wait(0.55)
  6583. CameraEnshaking(1,3)
  6584. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6585. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6586. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  6587. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  6588. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6589. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6590. wait(0.55)
  6591. CameraEnshaking(10,5)
  6592. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6593. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6594. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6595. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6596. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6597. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  6598. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  6599. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  6600. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  6601. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  6602. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  6603. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  6604. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  6605. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  6606. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  6607. for i = 0, 49 do
  6608. 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)
  6609. 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)
  6610. 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)
  6611. 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)
  6612. end
  6613. ModeOfGlitch = 666
  6614. storehumanoidWS = 16
  6615. hum.WalkSpeed = 16
  6616. rainbowmode = false
  6617. chaosmode = false
  6618. tl1.Enabled = true
  6619. tl2.Enabled = true
  6620. tl3.Enabled = true
  6621. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  6622. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6623. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6624. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6625. for i, v in pairs(mw2:GetChildren()) do
  6626. if v:IsA("Part") then
  6627. v.BrickColor = MAINRUINCOLOR
  6628. v.Material = "Neon"
  6629. end
  6630. end
  6631. for i, v in pairs(mw1:GetChildren()) do
  6632. if v:IsA("Part") then
  6633. v.Transparency = 0
  6634. v.BrickColor = MAINRUINCOLOR
  6635. v.Material = "Neon"
  6636. end
  6637. end
  6638. for i, v in pairs(m:GetChildren()) do
  6639. if v:IsA("Part") then
  6640. v.Color = Color3.new(1,0,0)
  6641. v.Material = "Neon"
  6642. end
  6643. end
  6644. for i, v in pairs(m2:GetChildren()) do
  6645. if v:IsA("Part") then
  6646. v.Color = Color3.new(1,0,0)
  6647. v.Material = "Neon"
  6648. end
  6649. end
  6650. for i, v in pairs(m3:GetChildren()) do
  6651. if v:IsA("Part") then
  6652. v.Color = Color3.new(1,0,0)
  6653. v.Material = "Neon"
  6654. end
  6655. end
  6656. for i, v in pairs(extrawingmod1:GetChildren()) do
  6657. if v:IsA("Part") then
  6658. v.Transparency = 0
  6659. v.Color = Color3.new(1,0,0)
  6660. v.Material = "Neon"
  6661. end
  6662. end
  6663. for i, v in pairs(extrawingmod2:GetChildren()) do
  6664. if v:IsA("Part") then
  6665. v.Transparency = 0
  6666. v.Color = Color3.new(1,0,0)
  6667. v.Material = "Neon"
  6668. end
  6669. attack = false
  6670. end
  6671. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  6672. resetmode()
  6673. end
  6674. if k == "l" and toggleTag == false then
  6675. toggleTag = true
  6676. text.TextTransparency = 0
  6677. text.TextStrokeTransparency = 0
  6678. elseif k == "l" and toggleTag == true then
  6679. toggleTag = false
  6680. text.TextTransparency = 1
  6681. text.TextStrokeTransparency = 1
  6682. end
  6683. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6684. ExtinctiveHeartbreak()
  6685. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6686. PureBomb()
  6687. elseif k == "z" and attack == false and ModeOfGlitch == 777 then
  6688. PureBomb()
  6689. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6690. scattercorrupt()
  6691. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6692. ChaosGroundStrike()
  6693. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6694. Judgement()
  6695. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  6696. HolyBarrier()
  6697. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654322 then
  6698. Judgement()
  6699. elseif k == "v" and attack == false and ModeOfGlitch == 12345678987654322 then
  6700. ChaosGroundStrike2()
  6701. elseif k == "x" and attack == false and ModeOfGlitch == 777 then
  6702. Starfall()
  6703. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  6704. Starfall()
  6705. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6706. yinyangi()
  6707. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  6708. MeteorStrike()
  6709. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  6710. Wip()
  6711. elseif k == "x" and attack == false and ModeOfGlitch == 6127843 then
  6712. Starfall()
  6713. yinyangi2()
  6714. elseif k == "c" and attack == false and ModeOfGlitch == 6127843 then
  6715. ChaosGroundStrike()
  6716. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654322 then
  6717. StarfallEX()
  6718. ChaosGroundStrike2()
  6719. yinyangi2()
  6720. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  6721. StarfallEX()
  6722. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  6723. FinalCalam()
  6724. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654322 then
  6725. THEHELLITSTHATBIG()
  6726. FinalCalam()
  6727. removelol()
  6728. end
  6729. if k == "n" and attack == false then
  6730. Blink()
  6731. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  6732. StarDivision()
  6733. end
  6734. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  6735. UniversalCollapse()
  6736. end
  6737. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  6738. hum.WalkSpeed = 16 + 184
  6739. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  6740. hum.WalkSpeed = 200 - 184
  6741. end
  6742. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  6743. UniversalSpark()
  6744. end
  6745. if k == "z" and attack == false and ModeOfGlitch == 666 then
  6746. StarDivision()
  6747. end
  6748. if k == "x" and attack == false and ModeOfGlitch == 666 then
  6749. Starfall()
  6750. end
  6751. if k == "x" and attack == false and ModeOfGlitch == 727 then
  6752. StarDivision()
  6753. end
  6754. if k == "x" and attack == false and ModeOfGlitch == 12345678987654322 then
  6755. StarDivision()
  6756. end
  6757. if k == "x" and attack == false and ModeOfGlitch == 12345678987654322 then
  6758. UniversalSpark()
  6759. end
  6760. if k == "c" and attack == false and ModeOfGlitch == 727 then
  6761. Starfall()
  6762. end
  6763. if k == "z" and attack == false and ModeOfGlitch == 727 then
  6764. MeteorStrike()
  6765. end
  6766. if k == "v" and attack == false and ModeOfGlitch == 727 then
  6767. scattercorrupt2()
  6768. end
  6769. if k == "m" and attack == false and ModeOfGlitch == 4 then
  6770. ChaosBegone()
  6771. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  6772. THEHELLITSTHATBIG()
  6773. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  6774. removelol()
  6775. end
  6776. end)
  6777. mouse.KeyUp:connect(function(k)
  6778. if k == "f" and ModeOfGlitch == 5 then
  6779. shielding = false
  6780. end
  6781. if k == "z" and ModeOfGlitch == 5 then
  6782. judgement = false
  6783. end
  6784. if k == "c" and ModeOfGlitch == 12345678987654322 then
  6785. judgement = false
  6786. end
  6787. if k == "c" and ModeOfGlitch == 777 then
  6788. judgement = false
  6789. end
  6790. end)
  6791. coroutine.resume(coroutine.create(function()
  6792. while true do
  6793. swait(2)
  6794. if rainbowmode == true or ModeOfGlitch == 6 then
  6795. if eff == true then
  6796. 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)
  6797. end
  6798. end
  6799. end
  6800. end))
  6801. coroutine.resume(coroutine.create(function()
  6802. while true do
  6803. swait(2)
  6804. if shielding == true then
  6805. end
  6806. end
  6807. end))
  6808.  
  6809.  
  6810. coroutine.resume(coroutine.create(function()
  6811. while true do
  6812. if ModeOfGlitch == 1000000 then
  6813. swait(0.5)
  6814. end
  6815. swait()
  6816. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6817. 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)
  6818. end
  6819. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6820. 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)
  6821. end
  6822. end
  6823. end))
  6824.  
  6825.  
  6826. coroutine.resume(coroutine.create(function()
  6827. while true do
  6828. swait(2)
  6829. if chaosmode == true then
  6830. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6831. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6832. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6833. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  6834. for i, v in pairs(mw1:GetChildren()) do
  6835. if v:IsA("Part") then
  6836. v.Transparency = 0.75
  6837. v.BrickColor = BrickColor.random()
  6838. v.Material = "Neon"
  6839. end
  6840. end
  6841. for i, v in pairs(m2:GetChildren()) do
  6842. if v:IsA("Part") then
  6843. v.BrickColor = BrickColor.random()
  6844. v.Material = "Neon"
  6845. end
  6846. end
  6847. for i, v in pairs(secondchar:GetChildren()) do
  6848. if v:IsA("Part") then
  6849. v.BrickColor = BrickColor.random()
  6850. v.Material = "Neon"
  6851. end
  6852. end
  6853. end
  6854. end
  6855. end))
  6856. Humanoid.Name = "STARGLITCHER"
  6857. Humanoid.MaxHealth = math.huge
  6858. Humanoid.Health = math.huge
  6859. Instance.new("ForceField",char).Visible = false
  6860. Humanoid.Animator.Parent = nil
  6861. idleanim=.4
  6862. while true do
  6863. if rainbowmode == false then
  6864. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6865. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6866. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6867. for i, v in pairs(secondchar:GetChildren()) do
  6868. if v:IsA("Part") then
  6869. v.BrickColor = MAINRUINCOLOR
  6870. v.Material = "Neon"
  6871. end
  6872. end
  6873. if chaosmode == false then
  6874. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6875. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6876. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6877. for i, v in pairs(secondchar:GetChildren()) do
  6878. if v:IsA("Part") then
  6879. v.BrickColor = MAINRUINCOLOR
  6880. v.Material = "Neon"
  6881. end
  6882. end
  6883. end
  6884. end
  6885. if rainbowmode == true then
  6886. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6887. MAINRUINCOLOR = BrickColor.new("White")
  6888. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6889. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6890. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6891. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6892. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6893. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6894. for i, v in pairs(m:GetChildren()) do
  6895. if v:IsA("Part") then
  6896. v.Color = Color3.new(r/255,g/255,b/255)
  6897. end
  6898. end
  6899. for i, v in pairs(m2:GetChildren()) do
  6900. if v:IsA("Part") then
  6901. v.Color = Color3.new(r/255,g/255,b/255)
  6902. end
  6903. end
  6904. for i, v in pairs(secondchar:GetChildren()) do
  6905. if v:IsA("Part") then
  6906. v.Color = Color3.new(r/255,g/255,b/255)
  6907. v.Material = "Neon"
  6908. end
  6909. end
  6910. for i, v in pairs(m3:GetChildren()) do
  6911. if v:IsA("Part") then
  6912. v.Color = Color3.new(r/255,g/255,b/255)
  6913. end
  6914. end
  6915. for i, v in pairs(mw1:GetChildren()) do
  6916. if v:IsA("Part") then
  6917. v.Color = Color3.new(r/255,g/255,b/255)
  6918. v.Material = "Neon"
  6919. end
  6920. end
  6921. for i, v in pairs(mw2:GetChildren()) do
  6922. if v:IsA("Part") then
  6923. v.Color = Color3.new(r/255,g/255,b/255)
  6924. v.Material = "Neon"
  6925. end
  6926. end
  6927. end
  6928. CameraManager()
  6929. swait()
  6930. 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)
  6931. 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)
  6932. 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)
  6933. 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)
  6934. 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)
  6935. 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)
  6936.  
  6937. if attack == false and ActiveGia == false then
  6938. torsweld.C1=Clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6939. larmsweld.C1=Clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6940. rarmsweld.C1=Clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6941. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6942. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6943. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6944. elseif attack == false and ActiveGia == true then
  6945. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 727 and ModeOfGlitch ~= 666 then
  6946. 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)
  6947. 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)
  6948. 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)
  6949. llegsweld.C1=Clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6950. rlegsweld.C1=Clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6951. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6952. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 727 or ModeOfGlitch == 666 then
  6953. 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)
  6954. 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)
  6955. 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)
  6956. 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)
  6957. 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)
  6958. hedsweld.C1=Clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6959. end
  6960. end
  6961.  
  6962. 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)
  6963. 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)
  6964. 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)
  6965. 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)
  6966. 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)
  6967. 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)
  6968. sine = sine + change
  6969. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6970. local velderp=RootPart.Velocity.y
  6971. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6972. if equipped==true or equipped==false then
  6973. if attack==false then
  6974. idle=idle+1
  6975. else
  6976. idle=0
  6977. end
  6978. if idle>=500 then
  6979. if attack==false then
  6980. --Sheath()
  6981. end
  6982. end
  6983. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6984. Anim="Jump"
  6985. if attack==false then
  6986. 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)
  6987. 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)
  6988. 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)
  6989. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6990. 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)
  6991. 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)
  6992. end
  6993. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6994. Anim="Fall"
  6995. if attack==false then
  6996. 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)
  6997. 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)
  6998. 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)
  6999. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7000. 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)
  7001. 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)
  7002. end
  7003. elseif torvel<1 and hitfloor~=nil then
  7004. Anim="Idle"
  7005. if attack==false then
  7006. if ModeOfGlitch == 1 then
  7007. 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)
  7008. 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)
  7009. 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)
  7010. 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)
  7011. 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)
  7012. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7013.  
  7014. elseif ModeOfGlitch == 666 then
  7015. 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)
  7016. 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)
  7017. 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)
  7018. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7019. 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)
  7020. 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)
  7021.  
  7022. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  7023. 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)
  7024. 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)
  7025. 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)
  7026. 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)
  7027. 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)
  7028. 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)
  7029.  
  7030. elseif ModeOfGlitch == 3 then
  7031. 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)
  7032. 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)
  7033. 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)
  7034. 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)
  7035. 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)
  7036. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  7037.  
  7038. elseif ModeOfGlitch == 4 then
  7039. 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)
  7040. 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)
  7041. 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)
  7042. 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)
  7043. 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)
  7044. 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)
  7045.  
  7046. elseif ModeOfGlitch == 5 or ModeOfGlitch == 777 then
  7047. 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)
  7048. 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)
  7049. 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)
  7050. 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)
  7051. 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)
  7052. 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)
  7053.  
  7054. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  7055. 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)
  7056. 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)
  7057. 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)
  7058. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7059. 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)
  7060. 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)
  7061.  
  7062. elseif ModeOfGlitch == 12345678987654321 then
  7063. 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)
  7064. 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)
  7065. 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)
  7066. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7067. 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)
  7068. 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)
  7069.  
  7070. elseif ModeOfGlitch == 727 or ModeOfGlitch == 12345678987654322 then
  7071. 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)
  7072. 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)
  7073. 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)
  7074. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7075. 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)
  7076. 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)
  7077. end
  7078. end
  7079. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  7080. Anim="Walk"
  7081. if attack==false then
  7082. if ModeOfGlitch == 1 then
  7083. 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)
  7084. 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)
  7085. 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)
  7086. 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)
  7087. 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)
  7088. LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7089.  
  7090. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  7091. 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)
  7092. 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)
  7093. 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)
  7094. 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)
  7095. 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)
  7096. 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)
  7097.  
  7098. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  7099. 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)
  7100. 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)
  7101. 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)
  7102. 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)
  7103. 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)
  7104. 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)
  7105. end
  7106. end
  7107. elseif torvel>=22 and hitfloor~=nil then
  7108. Anim="Run"
  7109. if attack==false then
  7110. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 727 and ModeOfGlitch ~= 666 then
  7111. 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)
  7112. 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)
  7113. 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)
  7114. 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)
  7115. 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)
  7116. 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)
  7117. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 727 or ModeOfGlitch == 666 then
  7118. 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)
  7119. 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)
  7120. 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)
  7121. Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  7122. 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)
  7123. 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)
  7124. end
  7125. end
  7126. end
  7127. end
  7128. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement