Advertisement
McRoblox132

Untitled

Jul 13th, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 332.79 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. A insanely chaotic being.
  13. Who haven't ever known that one could hold this power.
  14. It's the one that has been created by an unknown being.
  15. You'll know this name already.
  16. Till now.
  17. The power is inside your body.
  18. You will decide things with this.
  19. And the future changes within the power.
  20. For now, you'll decide your own.
  21. You're one of them who holds this power.
  22. And so on, you would get chaotic to everyone else.
  23. You seem to dont trust everyone else, but one.
  24. That one... you can't know.
  25. It's only your decision.
  26. At yourself.
  27. No mercy, or spare.
  28.  
  29.  
  30. Created by 'NoobyGames12'
  31. Edited by 'danny199990'
  32. Also Edited by 'SHYIME'
  33. ]])
  34. print([[Icons:
  35. ! = New
  36. ? = Spoilers
  37. * = Exclusivity
  38. ]])
  39. warn([[V 3.3.4 (ON PROGRESS) Update Log:
  40. - Originall themes included
  41. ! - Calamity's "Z" has changed.
  42. ! - Starfall EX added.
  43. ! - Mayhem now has Destruction mode.
  44. ! - Chaos theme has been changed.
  45. ! - Purity's theme has been extended.
  46. ? - Corruption's "Z" will have animation sooner.
  47. ! - Calamity's "X" is added, named Starfall.
  48. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  49. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  50. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  51. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  52. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  53. ! - Added new forms and super forms(Added by SHYIME).
  54. ? - Attacks are still broken we are still working on them.
  55.  
  56. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  57. ]])
  58. --- its obs smooth af do not touch
  59. ---- Sources and functions might be taken from others
  60. plr = game:GetService("Players").LocalPlayer
  61. char = plr.Character
  62. hum = char.Humanoid
  63. local cam = game.Workspace.CurrentCamera
  64. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  65. Camera = cam
  66. local CamInterrupt = false
  67. local TwoD = false
  68. local TargetInfo = {nil, nil}
  69. cam.CameraType = "Custom"
  70. t = char.Torso
  71. h = char.Head
  72. ra = char["Right Arm"]
  73. la = char["Left Arm"]
  74. rl = char["Right Leg"]
  75. ll = char["Left Leg"]
  76. tors = char.Torso
  77. lleg = char["Left Leg"]
  78. root = char.HumanoidRootPart
  79. hed = char.Head
  80. rleg = char["Right Leg"]
  81. rarm = char["Right Arm"]
  82. larm = char["Left Arm"]
  83. radian = math.rad
  84. random = math.random
  85. Vec3 = Vector3.new
  86. Inst = Instance.new
  87. cFrame = CFrame.new
  88. Euler = CFrame.fromEulerAnglesXYZ
  89. vt = Vector3.new
  90. bc = BrickColor.new
  91. br = BrickColor.random
  92. it = Instance.new
  93. cf = CFrame.new
  94. local eff = true
  95. local shielding = false
  96.  
  97. local Booleans = {
  98. CamFollow = true,
  99. GyroUse = true
  100. }
  101.  
  102. function lerp(object, newCFrame, alpha)
  103. return object:lerp(newCFrame, alpha)
  104. end
  105.  
  106. local Directer = Inst("BodyGyro", root)
  107. Directer.MaxTorque = Vec3(0, 0, 0)
  108. Directer.P = 600000
  109. local CPart = Inst("Part")
  110. CPart.Anchored = true
  111. CPart.CanCollide = false
  112. CPart.Locked = true
  113. CPart.Transparency = 1
  114.  
  115. local rainbowmode = false
  116. local chaosmode = false
  117.  
  118. kan = Instance.new("Sound",char)
  119. kan.Volume = 1.25
  120. kan.TimePosition = 0
  121. kan.PlaybackSpeed = 1
  122. kan.Pitch = 1
  123. kan.SoundId = "rbxassetid://614032233"
  124. kan.Name = "wrecked"
  125. kan.Looped = true
  126. kan:Play()
  127.  
  128. local dom = Instance.new("SpecialMesh", game.Players.LocalPlayer.Character.Head)
  129. dom.MeshId = "rbxassetid://21057410"
  130. dom.MeshType = "FileMesh"
  131. dom.Name = "Dominus"
  132. dom.Parent = Head
  133. dom.TextureId = "rbxassetid://48545806"
  134.  
  135. function newTheme(ID,timepos,pitch,vol)
  136. local kanz = kan
  137. --kanz:Stop()
  138. --kanz.Volume = vol
  139. --kanz.TimePosition = timepos
  140. kanz.PlaybackSpeed = pitch
  141. kanz.Pitch = pitch
  142. kanz.SoundId = ID
  143. kanz.Name = "wrecked"
  144. kanz.Looped = true
  145. kanz.Volume = 0.3
  146. --kanz:Play()
  147. --coroutine.resume(coroutine.create(function()
  148. --wait(0.05)
  149. --end))
  150. end
  151.  
  152. function newThemeCust(ID,timepos,pitch,vol)
  153. local kanz = kan
  154. kanz:Stop()
  155. kanz.Volume = vol
  156. kanz.TimePosition = timepos
  157. kanz.PlaybackSpeed = pitch
  158. kanz.Pitch = pitch
  159. kanz.SoundId = ID
  160. kanz.Name = "wrecked"
  161. kanz.Looped = true
  162. kanz:Play()
  163. coroutine.resume(coroutine.create(function()
  164. wait(0.05)
  165. end))
  166. end
  167.  
  168.  
  169.  
  170. function CameraShake(Times, Power, PlayerTarget)
  171. coroutine.resume(coroutine.create(function()
  172. FV = Instance.new("BoolValue", PlayerTarget)
  173. FV.Name = "CameraShake"
  174. for ShakeNum=1,Times do
  175. swait()
  176. local ef=Power
  177. if ef>=1 then
  178. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  179. else
  180. ef=Power*10
  181. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  182. end
  183. end
  184. Humanoid.CameraOffset = Vector3.new(0,0,0)
  185. FV:Destroy()
  186. end))
  187. end
  188.  
  189. function CameraEnshaking(Length,Intensity)
  190. coroutine.resume(coroutine.create(function()
  191. local intensity = 1*Intensity
  192. local rotM = 0.01*Intensity
  193. for i = 0, Length, 0.1 do
  194. swait()
  195. intensity = intensity - 0.05*Intensity/Length
  196. rotM = rotM - 0.0005*Intensity/Length
  197. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  198. 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)
  199. end
  200. Humanoid.CameraOffset = Vec3(0, 0, 0)
  201. end))
  202. end
  203. CamShake=function(Part,Distan,Power,Times)
  204. local de=Part.Position
  205. for i,v in pairs(workspace:children()) do
  206. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  207. for _,c in pairs(v:children()) do
  208. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  209. local Noob=v.Humanoid
  210. if Noob~=nil then
  211. coroutine.resume(coroutine.create(function()
  212. FV = Instance.new("BoolValue", Noob)
  213. FV.Name = "CameraShake"
  214. for ShakeNum=1,Times do
  215. swait()
  216. local ef=Power
  217. if ef>=1 then
  218. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  219. else
  220. ef=Power*10
  221. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  222. end
  223. end
  224. Humanoid.CameraOffset = Vector3.new(0,0,0)
  225. FV:Destroy()
  226. end))
  227. CameraShake(Times, Power, Noob)
  228. end
  229. end
  230. end
  231. end
  232. end
  233. end
  234.  
  235. function chatfunc(text,color)
  236. local chat = coroutine.wrap(function()
  237. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  238. Character:FindFirstChild("TalkingBillBoard"):destroy()
  239. end
  240. local naeeym2 = Instance.new("BillboardGui",Character)
  241. naeeym2.Size = UDim2.new(0,100,0,40)
  242. naeeym2.StudsOffset = Vector3.new(0,3,0)
  243. naeeym2.Adornee = Character.Head
  244. naeeym2.Name = "TalkingBillBoard"
  245. local tecks2 = Instance.new("TextLabel",naeeym2)
  246. tecks2.BackgroundTransparency = 1
  247. tecks2.BorderSizePixel = 0
  248. tecks2.Text = ""
  249. tecks2.Font = "SciFi"
  250. tecks2.TextSize = 30
  251. tecks2.TextStrokeTransparency = 0
  252. tecks2.TextColor3 = color
  253. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  254. tecks2.Size = UDim2.new(1,0,0.5,0)
  255. local tecks3 = Instance.new("TextLabel",naeeym2)
  256. tecks3.BackgroundTransparency = 1
  257. tecks3.BorderSizePixel = 0
  258. tecks3.Text = ""
  259. tecks3.Font = "SciFi"
  260. tecks3.TextSize = 30
  261. tecks3.TextStrokeTransparency = 0
  262. tecks3.TextColor3 = Color3.new(0,0,0)
  263. tecks3.TextStrokeColor3 = color
  264. tecks3.Size = UDim2.new(1,0,0.5,0)
  265. coroutine.resume(coroutine.create(function()
  266. while true do
  267. swait(1)
  268. plr.Character.wrecked.Volume = 0.3
  269. if chaosmode == true then
  270. tecks2.TextColor3 = BrickColor.random().Color
  271. tecks3.TextStrokeColor3 = BrickColor.random().Color
  272. end
  273. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  274. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  275. tecks2.Rotation = math.random(-5,5)
  276. tecks3.Rotation = math.random(-5,5)
  277. end
  278. end))
  279. for i = 1,string.len(text),1 do
  280. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  281. tecks2.Text = string.sub(text,1,i)
  282. tecks3.Text = string.sub(text,1,i)
  283. swait(1)
  284. end
  285. wait(1)
  286. local randomrot = math.random(1,2)
  287. if randomrot == 1 then
  288. for i = 1, 50 do
  289. swait()
  290. tecks2.Rotation = tecks2.Rotation - .75
  291. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  292. tecks2.TextTransparency = tecks2.TextTransparency + .04
  293. tecks3.Rotation = tecks2.Rotation + .75
  294. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  295. tecks3.TextTransparency = tecks2.TextTransparency + .04
  296. end
  297. elseif randomrot == 2 then
  298. for i = 1, 50 do
  299. swait()
  300. tecks2.Rotation = tecks2.Rotation + .75
  301. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  302. tecks2.TextTransparency = tecks2.TextTransparency + .04
  303. tecks3.Rotation = tecks2.Rotation - .75
  304. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  305. tecks3.TextTransparency = tecks2.TextTransparency + .04
  306. end
  307. end
  308. naeeym2:Destroy()
  309. end)
  310. chat()
  311. end
  312.  
  313.  
  314. local Create = LoadLibrary("RbxUtility").Create
  315.  
  316. CFuncs = {
  317. ["Part"] = {
  318. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  319. local Part = Create("Part"){
  320. Parent = Parent,
  321. Reflectance = Reflectance,
  322. Transparency = Transparency,
  323. CanCollide = false,
  324. Locked = true,
  325. BrickColor = BrickColor.new(tostring(BColor)),
  326. Name = Name,
  327. Size = Size,
  328. Material = Material,
  329. }
  330. RemoveOutlines(Part)
  331. return Part
  332. end;
  333. };
  334.  
  335. ["Mesh"] = {
  336. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  337. local Msh = Create(Mesh){
  338. Parent = Part,
  339. Offset = OffSet,
  340. Scale = Scale,
  341. }
  342. if Mesh == "SpecialMesh" then
  343. Msh.MeshType = MeshType
  344. Msh.MeshId = MeshId
  345. end
  346. return Msh
  347. end;
  348. };
  349.  
  350. ["Mesh"] = {
  351. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  352. local Msh = Create(Mesh){
  353. Parent = Part,
  354. Offset = OffSet,
  355. Scale = Scale,
  356. }
  357. if Mesh == "SpecialMesh" then
  358. Msh.MeshType = MeshType
  359. Msh.MeshId = MeshId
  360. end
  361. return Msh
  362. end;
  363. };
  364.  
  365. ["Weld"] = {
  366. Create = function(Parent, Part0, Part1, C0, C1)
  367. local Weld = Create("Weld"){
  368. Parent = Parent,
  369. Part0 = Part0,
  370. Part1 = Part1,
  371. C0 = C0,
  372. C1 = C1,
  373. }
  374. return Weld
  375. end;
  376. };
  377.  
  378. ["Sound"] = {
  379. Create = function(id, par, vol, pit)
  380. coroutine.resume(coroutine.create(function()
  381. local S = Create("Sound"){
  382. Volume = vol,
  383. Name = "EffectSoundo",
  384. Pitch = pit or 1,
  385. SoundId = id,
  386. Parent = par or workspace,
  387. }
  388. wait()
  389. S:play()
  390. game:GetService("Debris"):AddItem(S, 10)
  391. end))
  392. end;
  393. };
  394.  
  395. ["LongSound"] = {
  396. Create = function(id, par, vol, pit)
  397. coroutine.resume(coroutine.create(function()
  398. local S = Create("Sound"){
  399. Volume = vol,
  400. Pitch = pit or 1,
  401. SoundId = id,
  402. Parent = par or workspace,
  403. }
  404. wait()
  405. S:play()
  406. game:GetService("Debris"):AddItem(S, 30)
  407. end))
  408. end;
  409. };
  410.  
  411. ["ParticleEmitter"] = {
  412. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  413. local fp = Create("ParticleEmitter"){
  414. Parent = Parent,
  415. Color = ColorSequence.new(Color1, Color2),
  416. LightEmission = LightEmission,
  417. Size = Size,
  418. Texture = Texture,
  419. Transparency = Transparency,
  420. ZOffset = ZOffset,
  421. Acceleration = Accel,
  422. Drag = Drag,
  423. LockedToPart = LockedToPart,
  424. VelocityInheritance = VelocityInheritance,
  425. EmissionDirection = EmissionDirection,
  426. Enabled = Enabled,
  427. Lifetime = LifeTime,
  428. Rate = Rate,
  429. Rotation = Rotation,
  430. RotSpeed = RotSpeed,
  431. Speed = Speed,
  432. VelocitySpread = VelocitySpread,
  433. }
  434. return fp
  435. end;
  436. };
  437.  
  438. CreateTemplate = {
  439.  
  440. };
  441. }
  442.  
  443.  
  444.  
  445. New = function(Object, Parent, Name, Data)
  446. local Object = Instance.new(Object)
  447. for Index, Value in pairs(Data or {}) do
  448. Object[Index] = Value
  449. end
  450. Object.Parent = Parent
  451. Object.Name = Name
  452. return Object
  453. end
  454. local halocolor = BrickColor.new("Pastel light blue")
  455. local halocolor2 = BrickColor.new("Cool yellow")
  456. local starcolor = BrickColor.new("Bright yellow")
  457. local lunacolor = BrickColor.new("Navy blue")
  458. local lunacolor2 = BrickColor.new("Bright blue")
  459. local wepcolor = BrickColor.new("Really black")
  460. local maincolor = BrickColor.new("Really black")
  461. local m = Instance.new("Model",char)
  462. local m2 = Instance.new("Model",char)
  463. local m3 = Instance.new("Model",char)
  464. local mw1 = Instance.new("Model",char)
  465. local mw2 = Instance.new("Model",char)
  466.  
  467. local extrawingmod1 = Instance.new("Model",char)
  468. local extrawingmod2 = Instance.new("Model",char)
  469.  
  470. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  471. local p = Instance.new("Part")
  472. p.TopSurface = 0
  473. p.BottomSurface = 0
  474. p.Parent = parent
  475. p.Size = Vector3.new(0.1,0.1,0.1)
  476. p.Transparency = transparency
  477. p.Reflectance = reflectance
  478. p.CanCollide = false
  479. p.Locked = true
  480. p.BrickColor = brickcolor
  481. p.Material = material
  482. return p
  483. end
  484.  
  485. function CreateMesh(parent,meshtype,x1,y1,z1)
  486. local mesh = Instance.new("SpecialMesh",parent)
  487. mesh.MeshType = meshtype
  488. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  489. return mesh
  490. end
  491.  
  492. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  493. local mesh = Instance.new("SpecialMesh",parent)
  494. mesh.MeshType = "FileMesh"
  495. mesh.MeshId = meshid
  496. mesh.Scale = Vector3.new(x1,y1,z1)
  497. return mesh
  498. end
  499.  
  500.  
  501. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  502. local mesh = Instance.new("SpecialMesh",parent)
  503. mesh.MeshType = "FileMesh"
  504. mesh.MeshId = meshid
  505. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  506. mesh.Scale = Vector3.new(x1,y1,z1)
  507. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  508. return mesh
  509. end
  510.  
  511. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  512. local weld = Instance.new("Weld")
  513. weld.Parent = parent
  514. weld.Part0 = part0
  515. weld.Part1 = part1
  516. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  517. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  518. return weld
  519. end
  520.  
  521.  
  522. --------------
  523. local secondchar = Instance.new("Model",char)
  524. local GhostCol = BrickColor.new("Navy blue")
  525. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  526. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  527. 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))
  528.  
  529. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  530. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  531. 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))
  532.  
  533. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  534. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  535. 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))
  536.  
  537. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  538. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  539. 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))
  540.  
  541. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  542. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  543. 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))
  544.  
  545. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  546. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  547. 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))
  548. --------------
  549. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  550. 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))
  551. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  552. 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))
  553.  
  554. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  555. CreateMesh(handle,"Brick",0,0,0)
  556. 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))
  557. local valuaring = 10
  558. for i = 0, 49 do
  559. valuaring = valuaring + 10
  560. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  561. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  562. 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))
  563. end
  564.  
  565. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  566. CreateMesh(handle,"Brick",0,0,0)
  567. 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))
  568. local valuaring = 10
  569. for i = 0, 49 do
  570. valuaring = valuaring + 10
  571. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  572. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  573. 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))
  574. end
  575.  
  576.  
  577. local handle = CreateParta(m,1,1,"Neon",maincolor)
  578. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  579. 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))
  580.  
  581. --- Left wing.
  582.  
  583. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  584. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  585. 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))
  586.  
  587. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  588. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  589. 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))
  590. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  591. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  592. 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))
  593. A0 = Instance.new('Attachment',wed)
  594. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  595. CreateMesh(wed,"Wedge",0.05,0.5,3)
  596. 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))
  597. A1 = Instance.new('Attachment',wed)
  598. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  599. CreateMesh(wed,"Wedge",0.05,3,0.5)
  600. 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))
  601.  
  602. tl1 = Instance.new('Trail',wed)
  603. tl1.Attachment0 = A0
  604. tl1.Attachment1 = A1
  605. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  606. tl1.LightEmission = 1
  607. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  608. tl1.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  609. tl1.Lifetime = 0.6
  610.  
  611.  
  612. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  613. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  614. 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))
  615.  
  616. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  617. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  618. 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))
  619. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  620. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  621. 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))
  622. A0 = Instance.new('Attachment',wed)
  623. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  624. CreateMesh(wed,"Wedge",0.05,0.5,3)
  625. 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))
  626. A1 = Instance.new('Attachment',wed)
  627. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  628. CreateMesh(wed,"Wedge",0.05,3,0.5)
  629. 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))
  630.  
  631. tl2 = Instance.new('Trail',wed)
  632. tl2.Attachment0 = A0
  633. tl2.Attachment1 = A1
  634. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  635. tl2.LightEmission = 1
  636. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  637. tl2.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  638. tl2.Lifetime = 0.6
  639.  
  640. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  641. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  642. 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))
  643.  
  644. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  645. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  646. 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))
  647. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  648. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  649. 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))
  650. A0 = Instance.new('Attachment',wed)
  651. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  652. CreateMesh(wed,"Wedge",0.05,0.5,3)
  653. 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))
  654. A1 = Instance.new('Attachment',wed)
  655. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  656. CreateMesh(wed,"Wedge",0.05,3,0.5)
  657. 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))
  658.  
  659. tl3 = Instance.new('Trail',wed)
  660. tl3.Attachment0 = A0
  661. tl3.Attachment1 = A1
  662. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  663. tl3.LightEmission = 1
  664. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  665. tl3.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  666. tl3.Lifetime = 0.6
  667.  
  668. tl1.Enabled = false
  669. tl2.Enabled = false
  670. tl3.Enabled = false
  671. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  672. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  673. 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))
  674.  
  675. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  676. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  677. 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))
  678. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  679. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  680. 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))
  681. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  682. CreateMesh(wed,"Wedge",0.05,0.5,3)
  683. 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))
  684. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  685. CreateMesh(wed,"Wedge",0.05,3,0.5)
  686. 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))
  687.  
  688. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  689. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  690. 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))
  691.  
  692. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  693. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  694. 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))
  695. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  696. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  697. 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))
  698. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  699. CreateMesh(wed,"Wedge",0.05,0.5,3)
  700. 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))
  701. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  702. CreateMesh(wed,"Wedge",0.05,3,0.5)
  703. 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))
  704.  
  705. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  706. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  707. 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))
  708.  
  709. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  711. 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))
  712. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  713. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  714. 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))
  715. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  716. CreateMesh(wed,"Wedge",0.05,0.5,3)
  717. 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))
  718. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  719. CreateMesh(wed,"Wedge",0.05,3,0.5)
  720. 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))
  721.  
  722. -- Right wing.
  723.  
  724. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  725. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  726. 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))
  727.  
  728. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  729. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  730. 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))
  731. A0 = Instance.new('Attachment',wed)
  732. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  734. 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))
  735. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,0.5,3)
  737. 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))
  738. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,3,0.5)
  740. 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))
  741. A1 = Instance.new('Attachment',wed)
  742.  
  743. tr1 = Instance.new('Trail',wed)
  744. tr1.Attachment0 = A0
  745. tr1.Attachment1 = A1
  746. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  747. tr1.LightEmission = 1
  748. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  749. tr1.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  750. tr1.Lifetime = 0.6
  751.  
  752. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  753. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  754. 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))
  755.  
  756. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  757. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  758. 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))
  759. A0 = Instance.new('Attachment',wed)
  760. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  761. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  762. 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))
  763. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  764. CreateMesh(wed,"Wedge",0.05,0.5,3)
  765. 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))
  766. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  767. CreateMesh(wed,"Wedge",0.05,3,0.5)
  768. 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))
  769. A1 = Instance.new('Attachment',wed)
  770.  
  771. tr2 = Instance.new('Trail',wed)
  772. tr2.Attachment0 = A0
  773. tr2.Attachment1 = A1
  774. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  775. tr2.LightEmission = 1
  776. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  777. tr2.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  778. tr2.Lifetime = 0.6
  779.  
  780. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  781. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  782. 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))
  783.  
  784. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  785. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  786. 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))
  787. A0 = Instance.new('Attachment',wed)
  788. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  790. 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))
  791. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,0.5,3)
  793. 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))
  794. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05,3,0.5)
  796. 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))
  797. A1 = Instance.new('Attachment',wed)
  798.  
  799. tr3 = Instance.new('Trail',wed)
  800. tr3.Attachment0 = A0
  801. tr3.Attachment1 = A1
  802. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  803. tr3.LightEmission = 1
  804. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  805. tr3.Color = ColorSequence.new(BrickColor.new('Navy blue').Color)
  806. tr3.Lifetime = 0.6
  807.  
  808.  
  809. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  810. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  811. 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))
  812.  
  813. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  814. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  815. 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))
  816. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  817. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  818. 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))
  819. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  820. CreateMesh(wed,"Wedge",0.05,0.5,3)
  821. 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))
  822. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  823. CreateMesh(wed,"Wedge",0.05,3,0.5)
  824. 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))
  825.  
  826. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  827. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  828. 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))
  829.  
  830. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  832. 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))
  833. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  835. 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))
  836. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,0.5,3)
  838. 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))
  839. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,3,0.5)
  841. 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))
  842.  
  843. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  845. 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))
  846.  
  847. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  848. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  849. 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))
  850. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  852. 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))
  853. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,3)
  855. 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))
  856. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,3,0.5)
  858. 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))
  859.  
  860. ---- HERES THE RING
  861.  
  862.  
  863. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  864. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  865. 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))
  866. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  867. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  868. 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))
  869. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  870. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  871. 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))
  872.  
  873.  
  874. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  875. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  876. 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))
  877.  
  878. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  879. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  880. 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))
  881.  
  882.  
  883.  
  884. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  885. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  886. 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))
  887.  
  888. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  889. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  890. 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))
  891.  
  892. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  893. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  894. 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))
  895.  
  896. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  897. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  898. 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))
  899. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  900. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  901. 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))
  902.  
  903. --- second ring
  904.  
  905. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  906. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  907. 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))
  908. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  909. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  910. 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))
  911. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  912. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  913. 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))
  914.  
  915. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  916. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  917. 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))
  918.  
  919. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  920. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  921. 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))
  922.  
  923.  
  924.  
  925. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  926. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  927. 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))
  928.  
  929. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  930. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  931. 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))
  932.  
  933. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  934. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  935. 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))
  936.  
  937. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  938. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  939. 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))
  940. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  941. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  942. 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))
  943.  
  944.  
  945.  
  946. for i, v in pairs(m:GetChildren()) do
  947. if v:IsA("Part") then
  948. v.BrickColor = BrickColor.new("Really black")
  949. v.Material = "Glass"
  950. end
  951. end
  952. for i, v in pairs(m2:GetChildren()) do
  953. if v:IsA("Part") then
  954. v.BrickColor = BrickColor.new("Crimson")
  955. v.Material = "Granite"
  956. end
  957. end
  958. for i, v in pairs(m3:GetChildren()) do
  959. if v:IsA("Part") then
  960. v.BrickColor = BrickColor.new("Navy blue")
  961. v.Material = "Neon"
  962. end
  963. end
  964. for i, v in pairs(mw2:GetChildren()) do
  965. if v:IsA("Part") then
  966. v.BrickColor = BrickColor.new("Navy blue")
  967. v.Material = "Neon"
  968. end
  969. end
  970. for i, v in pairs(mw1:GetChildren()) do
  971. if v:IsA("Part") then
  972. v.Transparency = 1
  973. v.BrickColor = BrickColor.new("Navy blue")
  974. v.Material = "Neon"
  975. end
  976. end
  977. for i, v in pairs(extrawingmod1:GetChildren()) do
  978. if v:IsA("Part") then
  979. v.Transparency = 1
  980. v.BrickColor = BrickColor.new("White")
  981. v.Material = "Neon"
  982. end
  983. end
  984. for i, v in pairs(extrawingmod2:GetChildren()) do
  985. if v:IsA("Part") then
  986. v.Transparency = 1
  987. v.BrickColor = BrickColor.new("White")
  988. v.Material = "Neon"
  989. end
  990. end
  991. local MAINRUINCOLOR = BrickColor.new("Navy blue")
  992. ------
  993.  
  994.  
  995. function RemoveOutlines(part)
  996. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  997. end
  998. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  999. local Part = Create("Part")({
  1000. Parent = Parent,
  1001. Reflectance = Reflectance,
  1002. Transparency = Transparency,
  1003. CanCollide = false,
  1004. Locked = true,
  1005. BrickColor = BrickColor.new(tostring(BColor)),
  1006. Name = Name,
  1007. Size = Size,
  1008. Material = Material
  1009. })
  1010. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1011. RemoveOutlines(Part)
  1012. return Part
  1013. end
  1014. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1015. local Msh = Create(Mesh)({
  1016. Parent = Part,
  1017. Offset = OffSet,
  1018. Scale = Scale
  1019. })
  1020. if Mesh == "SpecialMesh" then
  1021. Msh.MeshType = MeshType
  1022. Msh.MeshId = MeshId
  1023. end
  1024. return Msh
  1025. end
  1026. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1027. local Weld = Create("Weld")({
  1028. Parent = Parent,
  1029. Part0 = Part0,
  1030. Part1 = Part1,
  1031. C0 = C0,
  1032. C1 = C1
  1033. })
  1034. return Weld
  1035. end
  1036.  
  1037. Player=game:GetService("Players").LocalPlayer
  1038. Character=Player.Character
  1039. PlayerGui=Player.PlayerGui
  1040. Backpack=Player.Backpack
  1041. Torso=Character.Torso
  1042. Head=Character.Head
  1043. Humanoid=Character.Humanoid
  1044. m=Instance.new('Model',Character)
  1045. LeftArm=Character["Left Arm"]
  1046. LeftLeg=Character["Left Leg"]
  1047. RightArm=Character["Right Arm"]
  1048. RightLeg=Character["Right Leg"]
  1049. LS=Torso["Left Shoulder"]
  1050. LH=Torso["Left Hip"]
  1051. RS=Torso["Right Shoulder"]
  1052. RH=Torso["Right Hip"]
  1053. Face = Head.face
  1054. Neck=Torso.Neck
  1055. it=Instance.new
  1056. attacktype=1
  1057. vt=Vector3.new
  1058. cf=CFrame.new
  1059. euler=CFrame.fromEulerAnglesXYZ
  1060. angles=CFrame.Angles
  1061. cloaked=false
  1062. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1063. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1064. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1065. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1066. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1067. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1068. RootPart=Character.HumanoidRootPart
  1069. RootJoint=RootPart.RootJoint
  1070. RootCF=euler(-1.57,0,3.14)
  1071. attack = false
  1072. attackdebounce = false
  1073. deb=false
  1074. equipped=true
  1075. hand=false
  1076. MMouse=nil
  1077. combo=0
  1078. mana=0
  1079. trispeed=.2
  1080. attackmode='none'
  1081. local idle=0
  1082. local Anim="Idle"
  1083. local Effects={}
  1084. local gun=false
  1085. local shoot=false
  1086. local sine = 0
  1087. local change = 1
  1088. player=nil
  1089.  
  1090.  
  1091. local toggleTag = true
  1092. local txt = Instance.new("BillboardGui", Head)
  1093. txt.Adornee = nil
  1094. txt.Name = "NameDetect"
  1095. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1096. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1097. local text = Instance.new("TextLabel", txt)
  1098. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1099. text.FontSize = "Size8"
  1100. text.TextScaled = true
  1101. text.TextTransparency = 0
  1102. text.BackgroundTransparency = 1
  1103. text.TextTransparency = 0
  1104. text.TextStrokeTransparency = 0
  1105. text.Font = "Fantasy"
  1106. text.TextStrokeColor3 = Color3.new(0,16,176)
  1107. text.TextColor3 = Color3.new(0,0,0)
  1108. text.Text = "Baby blue Chaos God"
  1109.  
  1110. function RecolorTextAndRename(name,col1,col2)
  1111. text.TextStrokeColor3 = col2
  1112. text.TextColor3 = col1
  1113. text.Text = name
  1114. end
  1115. mouse=Player:GetMouse()
  1116. --save shoulders
  1117. RSH, LSH=nil, nil
  1118. --welds
  1119. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1120. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1121. LH=Torso["Left Hip"]
  1122. RH=Torso["Right Hip"]
  1123. TorsoColor=Torso.BrickColor
  1124. function NoOutline(Part)
  1125. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1126. end
  1127. player=Player
  1128. ch=Character
  1129. RSH=ch.Torso["Right Shoulder"]
  1130. LSH=ch.Torso["Left Shoulder"]
  1131. --
  1132. RSH.Parent=nil
  1133. LSH.Parent=nil
  1134. --
  1135. RW.Name="Right Shoulder"
  1136. RW.Part0=ch.Torso
  1137. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1138. RW.C1=cf(0, 0.5, 0)
  1139. RW.Part1=ch["Right Arm"]
  1140. RW.Parent=ch.Torso
  1141. --
  1142. LW.Name="Left Shoulder"
  1143. LW.Part0=ch.Torso
  1144. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1145. LW.C1=cf(0, 0.5, 0)
  1146. LW.Part1=ch["Left Arm"]
  1147. LW.Parent=ch.Torso
  1148.  
  1149. local Stats=Instance.new("BoolValue")
  1150. Stats.Name="Stats"
  1151. Stats.Parent=Character
  1152. local Atk=Instance.new("NumberValue")
  1153. Atk.Name="Damage"
  1154. Atk.Parent=Stats
  1155. Atk.Value=1
  1156. local Def=Instance.new("NumberValue")
  1157. Def.Name="Defense"
  1158. Def.Parent=Stats
  1159. Def.Value=1
  1160. local Speed=Instance.new("NumberValue")
  1161. Speed.Name="Speed"
  1162. Speed.Parent=Stats
  1163. Speed.Value=1
  1164. local Mvmt=Instance.new("NumberValue")
  1165. Mvmt.Name="Movement"
  1166. Mvmt.Parent=Stats
  1167. Mvmt.Value=1
  1168.  
  1169. local donum=0
  1170.  
  1171.  
  1172. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1173. local fp=it("Part")
  1174. fp.formFactor=formfactor
  1175. fp.Parent=parent
  1176. fp.Reflectance=reflectance
  1177. fp.Transparency=transparency
  1178. fp.CanCollide=false
  1179. fp.Locked=true
  1180. fp.BrickColor=brickcolor
  1181. fp.Name=name
  1182. fp.Size=size
  1183. fp.Position=Torso.Position
  1184. NoOutline(fp)
  1185. fp.Material="SmoothPlastic"
  1186. fp:BreakJoints()
  1187. return fp
  1188. end
  1189.  
  1190. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1191. local mesh=it(Mesh)
  1192. mesh.Parent=part
  1193. if Mesh=="SpecialMesh" then
  1194. mesh.MeshType=meshtype
  1195. if meshid~="nil" then
  1196. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1197. end
  1198. end
  1199. mesh.Offset=offset
  1200. mesh.Scale=scale
  1201. return mesh
  1202. end
  1203.  
  1204. function weld(parent,part0,part1,c0)
  1205. local weld=it("Weld")
  1206. weld.Parent=parent
  1207. weld.Part0=part0
  1208. weld.Part1=part1
  1209. weld.C0=c0
  1210. return weld
  1211. end
  1212.  
  1213. local Color1=Torso.BrickColor
  1214.  
  1215. local bodvel=Instance.new("BodyVelocity")
  1216. local bg=Instance.new("BodyGyro")
  1217.  
  1218. function swait(num)
  1219. if num==0 or num==nil then
  1220. game:service'RunService'.Stepped:wait(0)
  1221. else
  1222. for i=0,num do
  1223. game:service'RunService'.Stepped:wait(0)
  1224. end
  1225. end
  1226. end
  1227.  
  1228. -------- RAINBOW LEAVE IT TO ME
  1229. local r = 255
  1230. local g = 0
  1231. local b = 0
  1232. coroutine.resume(coroutine.create(function()
  1233. while wait() do
  1234. for i = 0, 254/5 do
  1235. swait()
  1236. g = g + 5
  1237. end
  1238. for i = 0, 254/5 do
  1239. swait()
  1240. r = r - 5
  1241. end
  1242. for i = 0, 254/5 do
  1243. swait()
  1244. b = b + 5
  1245. end
  1246. for i = 0, 254/5 do
  1247. swait()
  1248. g = g - 5
  1249. end
  1250. for i = 0, 254/5 do
  1251. swait()
  1252. r = r + 5
  1253. end
  1254. for i = 0, 254/5 do
  1255. swait()
  1256. b = b - 5
  1257. end
  1258. end
  1259. end))
  1260.  
  1261.  
  1262. so = function(id,par,vol,pit)
  1263. coroutine.resume(coroutine.create(function()
  1264. local sou = Instance.new("Sound",par or workspace)
  1265. sou.Volume=vol
  1266. sou.Pitch=pit or 1
  1267. sou.SoundId=id
  1268. swait()
  1269. sou:play()
  1270. game:GetService("Debris"):AddItem(sou,6)
  1271. end))
  1272. end
  1273.  
  1274. function clerp(a,b,t)
  1275. local qa = {QuaternionFromCFrame(a)}
  1276. local qb = {QuaternionFromCFrame(b)}
  1277. local ax, ay, az = a.x, a.y, a.z
  1278. local bx, by, bz = b.x, b.y, b.z
  1279. local _t = 1-t
  1280. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1281. end
  1282.  
  1283. function QuaternionFromCFrame(cf)
  1284. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1285. local trace = m00 + m11 + m22
  1286. if trace > 0 then
  1287. local s = math.sqrt(1 + trace)
  1288. local recip = 0.5/s
  1289. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1290. else
  1291. local i = 0
  1292. if m11 > m00 then
  1293. i = 1
  1294. end
  1295. if m22 > (i == 0 and m00 or m11) then
  1296. i = 2
  1297. end
  1298. if i == 0 then
  1299. local s = math.sqrt(m00-m11-m22+1)
  1300. local recip = 0.5/s
  1301. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1302. elseif i == 1 then
  1303. local s = math.sqrt(m11-m22-m00+1)
  1304. local recip = 0.5/s
  1305. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1306. elseif i == 2 then
  1307. local s = math.sqrt(m22-m00-m11+1)
  1308. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1309. end
  1310. end
  1311. end
  1312.  
  1313. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1314. local xs, ys, zs = x + x, y + y, z + z
  1315. local wx, wy, wz = w*xs, w*ys, w*zs
  1316. local xx = x*xs
  1317. local xy = x*ys
  1318. local xz = x*zs
  1319. local yy = y*ys
  1320. local yz = y*zs
  1321. local zz = z*zs
  1322. 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))
  1323. end
  1324.  
  1325. function QuaternionSlerp(a, b, t)
  1326. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1327. local startInterp, finishInterp;
  1328. if cosTheta >= 0.0001 then
  1329. if (1 - cosTheta) > 0.0001 then
  1330. local theta = math.acos(cosTheta)
  1331. local invSinTheta = 1/math.sin(theta)
  1332. startInterp = math.sin((1-t)*theta)*invSinTheta
  1333. finishInterp = math.sin(t*theta)*invSinTheta
  1334. else
  1335. startInterp = 1-t
  1336. finishInterp = t
  1337. end
  1338. else
  1339. if (1+cosTheta) > 0.0001 then
  1340. local theta = math.acos(-cosTheta)
  1341. local invSinTheta = 1/math.sin(theta)
  1342. startInterp = math.sin((t-1)*theta)*invSinTheta
  1343. finishInterp = math.sin(t*theta)*invSinTheta
  1344. else
  1345. startInterp = t-1
  1346. finishInterp = t
  1347. end
  1348. end
  1349. 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
  1350. end
  1351.  
  1352. local function CFrameFromTopBack(at, top, back)
  1353. local right = top:Cross(back)
  1354. return CFrame.new(at.x, at.y, at.z,
  1355. right.x, top.x, back.x,
  1356. right.y, top.y, back.y,
  1357. right.z, top.z, back.z)
  1358. end
  1359.  
  1360. function Triangle(a, b, c)
  1361. local edg1 = (c-a):Dot((b-a).unit)
  1362. local edg2 = (a-b):Dot((c-b).unit)
  1363. local edg3 = (b-c):Dot((a-c).unit)
  1364. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1365. a, b, c = a, b, c
  1366. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1367. a, b, c = b, c, a
  1368. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1369. a, b, c = c, a, b
  1370. else
  1371. assert(false, "unreachable")
  1372. end
  1373.  
  1374. local len1 = (c-a):Dot((b-a).unit)
  1375. local len2 = (b-a).magnitude - len1
  1376. local width = (a + (b-a).unit*len1 - c).magnitude
  1377.  
  1378. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1379.  
  1380. local list = {}
  1381.  
  1382. if len1 > 0.01 then
  1383. local w1 = Instance.new('WedgePart', m)
  1384. game:GetService("Debris"):AddItem(w1,5)
  1385. w1.Material = "SmoothPlastic"
  1386. w1.FormFactor = 'Custom'
  1387. w1.BrickColor = BrickColor.new("Navy blue")
  1388. w1.Transparency = 0
  1389. w1.Reflectance = 0
  1390. w1.Material = "SmoothPlastic"
  1391. w1.CanCollide = false
  1392. local l1 = Instance.new("PointLight",w1)
  1393. l1.Color = Color3.new(170,0,0)
  1394. NoOutline(w1)
  1395. local sz = Vector3.new(0.2, width, len1)
  1396. w1.Size = sz
  1397. local sp = Instance.new("SpecialMesh",w1)
  1398. sp.MeshType = "Wedge"
  1399. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1400. w1:BreakJoints()
  1401. w1.Anchored = true
  1402. w1.Parent = workspace
  1403. w1.Transparency = 0.7
  1404. table.insert(Effects,{w1,"Disappear",.01})
  1405. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1406. table.insert(list,w1)
  1407. end
  1408.  
  1409. if len2 > 0.01 then
  1410. local w2 = Instance.new('WedgePart', m)
  1411. game:GetService("Debris"):AddItem(w2,5)
  1412. w2.Material = "SmoothPlastic"
  1413. w2.FormFactor = 'Custom'
  1414. w2.BrickColor = BrickColor.new("Navy blue")
  1415. w2.Transparency = 0
  1416. w2.Reflectance = 0
  1417. w2.Material = "SmoothPlastic"
  1418. w2.CanCollide = false
  1419. local l2 = Instance.new("PointLight",w2)
  1420. l2.Color = Color3.new(170,0,0)
  1421. NoOutline(w2)
  1422. local sz = Vector3.new(0.2, width, len2)
  1423. w2.Size = sz
  1424. local sp = Instance.new("SpecialMesh",w2)
  1425. sp.MeshType = "Wedge"
  1426. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1427. w2:BreakJoints()
  1428. w2.Anchored = true
  1429. w2.Parent = workspace
  1430. w2.Transparency = 0.7
  1431. table.insert(Effects,{w2,"Disappear",.01})
  1432. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1433. table.insert(list,w2)
  1434. end
  1435. return unpack(list)
  1436. end
  1437.  
  1438.  
  1439. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1440. if hit.Parent == nil then
  1441. return
  1442. end
  1443. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1444. for _, v in pairs(hit.Parent:children()) do
  1445. if v:IsA("Humanoid") then
  1446. h = v
  1447. end
  1448. end
  1449. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1450. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1451. return
  1452. end
  1453. local c = Create("ObjectValue")({
  1454. Name = "creator",
  1455. Value = game:service("Players").LocalPlayer,
  1456. Parent = h
  1457. })
  1458. game:GetService("Debris"):AddItem(c, 0.5)
  1459. if HitSound ~= nil and HitPitch ~= nil then
  1460. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1461. end
  1462. local Damage = math.random(minim, maxim)
  1463. local blocked = false
  1464. local block = hit.Parent:findFirstChild("Block")
  1465. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1466. blocked = true
  1467. block.Value = block.Value - 1
  1468. print(block.Value)
  1469. end
  1470. if blocked == false then
  1471. HitHealth = h.Health
  1472. h.Health = h.Health - Damage
  1473. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1474. print("gained kill")
  1475. end
  1476. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1477. else
  1478. h.Health = h.Health - Damage / 2
  1479. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1480. end
  1481. if Type == "Knockdown" then
  1482. local hum = hit.Parent.Humanoid
  1483. hum.PlatformStand = true
  1484. coroutine.resume(coroutine.create(function(HHumanoid)
  1485. swait(1)
  1486. HHumanoid.PlatformStand = false
  1487. end), hum)
  1488. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1489. local bodvol = Create("BodyVelocity")({
  1490. velocity = angle * knockback,
  1491. P = 5000,
  1492. maxForce = Vector3.new(8000, 8000, 8000),
  1493. Parent = hit
  1494. })
  1495. local rl = Create("BodyAngularVelocity")({
  1496. P = 3000,
  1497. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1498. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1499. Parent = hit
  1500. })
  1501. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1502. game:GetService("Debris"):AddItem(rl, 0.5)
  1503. elseif Type == "Normal" then
  1504. local vp = Create("BodyVelocity")({
  1505. P = 500,
  1506. maxForce = Vector3.new(math.huge, 0, math.huge),
  1507. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1508. })
  1509. if knockback > 0 then
  1510. vp.Parent = hit.Parent.Head
  1511. end
  1512. game:GetService("Debris"):AddItem(vp, 0.5)
  1513. elseif Type == "Up" then
  1514. local bodyVelocity = Create("BodyVelocity")({
  1515. velocity = Vector3.new(0, 20, 0),
  1516. P = 5000,
  1517. maxForce = Vector3.new(8000, 8000, 8000),
  1518. Parent = hit
  1519. })
  1520. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1521. local bodyVelocity = Create("BodyVelocity")({
  1522. velocity = Vector3.new(0, 20, 0),
  1523. P = 5000,
  1524. maxForce = Vector3.new(8000, 8000, 8000),
  1525. Parent = hit
  1526. })
  1527. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1528. elseif Type == "Leech" then
  1529. local hum = hit.Parent.Humanoid
  1530. if hum ~= nil then
  1531. for i = 0, 2 do
  1532. 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)
  1533. end
  1534. Humanoid.Health = Humanoid.Health + 10
  1535. end
  1536. elseif Type == "UpKnock" then
  1537. local hum = hit.Parent.Humanoid
  1538. hum.PlatformStand = true
  1539. if hum ~= nil then
  1540. hitr = true
  1541. end
  1542. coroutine.resume(coroutine.create(function(HHumanoid)
  1543. swait(5)
  1544. HHumanoid.PlatformStand = false
  1545. hitr = false
  1546. end), hum)
  1547. local bodyVelocity = Create("BodyVelocity")({
  1548. velocity = Vector3.new(0, 20, 0),
  1549. P = 5000,
  1550. maxForce = Vector3.new(8000, 8000, 8000),
  1551. Parent = hit
  1552. })
  1553. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1554. local bodyVelocity = Create("BodyVelocity")({
  1555. velocity = Vector3.new(0, 20, 0),
  1556. P = 5000,
  1557. maxForce = Vector3.new(8000, 8000, 8000),
  1558. Parent = hit
  1559. })
  1560. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1561. elseif Type == "Snare" then
  1562. local bp = Create("BodyPosition")({
  1563. P = 2000,
  1564. D = 100,
  1565. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1566. position = hit.Parent.Torso.Position,
  1567. Parent = hit.Parent.Torso
  1568. })
  1569. game:GetService("Debris"):AddItem(bp, 1)
  1570. elseif Type == "Slashnare" then
  1571. 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)
  1572. for i = 1, math.random(4, 5) do
  1573. 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)
  1574. end
  1575. local bp = Create("BodyPosition")({
  1576. P = 2000,
  1577. D = 100,
  1578. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1579. position = hit.Parent.Torso.Position,
  1580. Parent = hit.Parent.Torso
  1581. })
  1582. game:GetService("Debris"):AddItem(bp, 1)
  1583. elseif Type == "Spike" then
  1584. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1585. local bp = Create("BodyPosition")({
  1586. P = 2000,
  1587. D = 100,
  1588. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1589. position = hit.Parent.Torso.Position,
  1590. Parent = hit.Parent.Torso
  1591. })
  1592. game:GetService("Debris"):AddItem(bp, 1)
  1593. elseif Type == "Freeze" then
  1594. local BodPos = Create("BodyPosition")({
  1595. P = 50000,
  1596. D = 1000,
  1597. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1598. position = hit.Parent.Torso.Position,
  1599. Parent = hit.Parent.Torso
  1600. })
  1601. local BodGy = Create("BodyGyro")({
  1602. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1603. P = 20000,
  1604. Parent = hit.Parent.Torso,
  1605. cframe = hit.Parent.Torso.CFrame
  1606. })
  1607. hit.Parent.Torso.Anchored = true
  1608. coroutine.resume(coroutine.create(function(Part)
  1609. swait(1.5)
  1610. Part.Anchored = false
  1611. end), hit.Parent.Torso)
  1612. game:GetService("Debris"):AddItem(BodPos, 3)
  1613. game:GetService("Debris"):AddItem(BodGy, 3)
  1614. end
  1615. local debounce = Create("BoolValue")({
  1616. Name = "DebounceHit",
  1617. Parent = hit.Parent,
  1618. Value = true
  1619. })
  1620. game:GetService("Debris"):AddItem(debounce, Delay)
  1621. c = Instance.new("ObjectValue")
  1622. c.Name = "creator"
  1623. c.Value = Player
  1624. c.Parent = h
  1625. game:GetService("Debris"):AddItem(c, 0.5)
  1626. end
  1627. end
  1628. function ShowDamage(Pos, Text, Time, Color)
  1629. local Rate = 0.03333333333333333
  1630. local Pos = Pos or Vector3.new(0, 0, 0)
  1631. local Text = Text or ""
  1632. local Time = Time or 2
  1633. local Color = Color or Color3.new(1, 0, 1)
  1634. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1635. EffectPart.Anchored = true
  1636. local BillboardGui = Create("BillboardGui")({
  1637. Size = UDim2.new(3, 0, 3, 0),
  1638. Adornee = EffectPart,
  1639. Parent = EffectPart
  1640. })
  1641. local TextLabel = Create("TextLabel")({
  1642. BackgroundTransparency = 1,
  1643. Size = UDim2.new(1, 0, 1, 0),
  1644. Text = Text,
  1645. TextColor3 = Color,
  1646. TextScaled = true,
  1647. Font = Enum.Font.ArialBold,
  1648. Parent = BillboardGui
  1649. })
  1650. game.Debris:AddItem(EffectPart, Time + 0.1)
  1651. EffectPart.Parent = game:GetService("Workspace")
  1652. delay(0, function()
  1653. local Frames = Time / Rate
  1654. for Frame = 1, Frames do
  1655. wait(Rate)
  1656. local Percent = Frame / Frames
  1657. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1658. TextLabel.TextTransparency = Percent
  1659. end
  1660. if EffectPart and EffectPart.Parent then
  1661. EffectPart:Destroy()
  1662. end
  1663. end)
  1664. end
  1665. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1666. for _, c in pairs(workspace:children()) do
  1667. local hum = c:findFirstChildOfClass("Humanoid")
  1668. if hum ~= nil then
  1669. local head = c:findFirstChild("Head")
  1670. if head ~= nil then
  1671. local targ = head.Position - Part.Position
  1672. local mag = targ.magnitude
  1673. if magni >= mag and c.Name ~= Player.Name then
  1674. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1675. end
  1676. end
  1677. end
  1678. end
  1679. end
  1680.  
  1681. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1682. for _, c in pairs(workspace:children()) do
  1683. local hum = c:findFirstChild("Humanoid")
  1684. if hum ~= nil then
  1685. local head = c:findFirstChild("Torso")
  1686. if head ~= nil then
  1687. local targ = head.Position - Part.Position
  1688. local mag = targ.magnitude
  1689. if magni >= mag and c.Name ~= Player.Name then
  1690. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1691. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end
  1697.  
  1698. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1699. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1700. end
  1701.  
  1702. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1703. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1704. prt.Anchored=true
  1705. prt.CFrame=cframe
  1706. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1707. --http://www.roblox.com/asset/?id=4770560
  1708. game:GetService("Debris"):AddItem(prt,2)
  1709. CF=prt.CFrame
  1710. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1711. for i=0,1,0.2 do
  1712. wait()
  1713. Part.CFrame=CF*cf(0,0,-0.4)
  1714. end
  1715. for i=0,1,delay do
  1716. wait()
  1717. --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)
  1718. Mesh.Scale=Mesh.Scale
  1719. end
  1720. for i=0,1,0.1 do
  1721. wait()
  1722. Part.Transparency=i
  1723. end
  1724. Part.Parent=nil
  1725. end),prt,msh,CF)
  1726. end
  1727.  
  1728. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1729. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1730. prt.Anchored=true
  1731. prt.Material = "Neon"
  1732. prt.CFrame=cframe
  1733. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1734. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1735. game:GetService("Debris"):AddItem(prt,5)
  1736. coroutine.resume(coroutine.create(function(Part,Mesh)
  1737. for i=0,1,delay do
  1738. swait()
  1739. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1740. Part.Transparency=i
  1741. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1742. end
  1743. Part.Parent=nil
  1744. end),prt,msh)
  1745. end
  1746.  
  1747. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1748. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1749. prt.Anchored=true
  1750. prt.Material = "Neon"
  1751. prt.CFrame=cframe
  1752. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1753. game:GetService("Debris"):AddItem(prt,5)
  1754. coroutine.resume(coroutine.create(function(Part,Mesh)
  1755. local rtype = rottype
  1756. for i=0,1,delay do
  1757. swait()
  1758. if rtype == 1 then
  1759. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1760. elseif rtype == 2 then
  1761. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1762. end
  1763. Part.Transparency=i
  1764. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1765. end
  1766. Part.Parent=nil
  1767. end),prt,msh)
  1768. end
  1769.  
  1770. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1771. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1772. prt.Anchored=true
  1773. prt.CFrame=cframe
  1774. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1775. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1776. game:GetService("Debris"):AddItem(prt,5)
  1777. coroutine.resume(coroutine.create(function(Part,Mesh)
  1778. for i=0,1,delay do
  1779. wait()
  1780. Part.Transparency=i
  1781. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1782. end
  1783. Part.Parent=nil
  1784. end),prt,msh)
  1785. end
  1786.  
  1787. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1788. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1789. prt.Anchored=true
  1790. prt.Material = "Neon"
  1791. prt.CFrame=cframe
  1792. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1793. game:GetService("Debris"):AddItem(prt,5)
  1794. coroutine.resume(coroutine.create(function(Part,Mesh)
  1795. local rtype = rottype
  1796. for i=0,1,delay do
  1797. swait()
  1798. if rtype == 1 then
  1799. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1800. elseif rtype == 2 then
  1801. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1802. end
  1803. Part.Transparency=i
  1804. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1805. end
  1806. Part.Parent=nil
  1807. end),prt,msh)
  1808. end
  1809.  
  1810. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1811. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1812. prt.Anchored=true
  1813. prt.Material = "Neon"
  1814. prt.CFrame=cframe
  1815. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1816. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1817. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1818. game:GetService("Debris"):AddItem(prt,5)
  1819. coroutine.resume(coroutine.create(function(Part,Mesh)
  1820. local rtype = rottype
  1821. for i=0,1,delay do
  1822. swait()
  1823. if rtype == 1 then
  1824. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1825. elseif rtype == 2 then
  1826. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1827. end
  1828. dec.Transparency=i
  1829. dec2.Transparency=i
  1830. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1831. end
  1832. Part.Parent=nil
  1833. end),prt,msh)
  1834. end
  1835.  
  1836. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1837. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1838. prt.Anchored=true
  1839. prt.Material = "Neon"
  1840. prt.CFrame=cframe
  1841. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1842. game:GetService("Debris"):AddItem(prt,5)
  1843. coroutine.resume(coroutine.create(function(Part,Mesh)
  1844. local rtype = rottype
  1845. for i=0,1,delay do
  1846. swait()
  1847. if rtype == 1 then
  1848. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1849. elseif rtype == 2 then
  1850. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1851. end
  1852. prt.Transparency=i
  1853. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1854. end
  1855. Part.Parent=nil
  1856. end),prt,msh)
  1857. end
  1858.  
  1859. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1860. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1861. prt.Anchored=true
  1862. prt.Material = "Neon"
  1863. prt.CFrame=cframe
  1864. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1865. game:GetService("Debris"):AddItem(prt,5)
  1866. coroutine.resume(coroutine.create(function(Part,Mesh)
  1867. local rtype = rottype
  1868. for i=0,1,delay do
  1869. swait()
  1870. if rtype == 1 then
  1871. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1872. elseif rtype == 2 then
  1873. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1874. end
  1875. prt.Transparency=i
  1876. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1877. end
  1878. Part.Parent=nil
  1879. end),prt,msh)
  1880. end
  1881.  
  1882. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1883. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1884. prt.Anchored=true
  1885. prt.Material = "Neon"
  1886. prt.CFrame=cframe
  1887. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1888. game:GetService("Debris"):AddItem(prt,5)
  1889. coroutine.resume(coroutine.create(function(Part,Mesh)
  1890. local rtype = rottype
  1891. for i=0,1,delay do
  1892. swait()
  1893. if rtype == 1 then
  1894. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1895. elseif rtype == 2 then
  1896. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1897. end
  1898. prt.Transparency=i
  1899. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1900. end
  1901. Part.Parent=nil
  1902. end),prt,msh)
  1903. end
  1904.  
  1905. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1906. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1907. prt.Anchored=true
  1908. prt.Material = "Neon"
  1909. prt.CFrame=cframe
  1910. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1911. game:GetService("Debris"):AddItem(prt,5)
  1912. coroutine.resume(coroutine.create(function(Part,Mesh)
  1913. local rtype = rottype
  1914. for i=0,1,delay do
  1915. swait()
  1916. if rtype == 1 then
  1917. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1918. elseif rtype == 2 then
  1919. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1920. end
  1921. prt.Transparency=i
  1922. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1923. end
  1924. Part.Parent=nil
  1925. end),prt,msh)
  1926. end
  1927.  
  1928. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1929. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1930. prt.Anchored=false
  1931. prt.CFrame=cframe
  1932. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1933. local wld=weld(prt,prt,Parent,cframe)
  1934. game:GetService("Debris"):AddItem(prt,5)
  1935. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1936. for i=0,1,delay do
  1937. wait()
  1938. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1939. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1940. Part.Transparency=i
  1941. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1942. end
  1943. Part.Parent=nil
  1944. end),prt,msh,wld)
  1945. end
  1946.  
  1947. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1948. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1949. prt.Anchored=false
  1950. prt.CFrame=cframe
  1951. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1952. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1953. game:GetService("Debris"):AddItem(prt,5)
  1954. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1955. for i=0,1,delay do
  1956. wait()
  1957. Weld.C0=euler(i*20,0,0)
  1958. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1959. Part.Transparency=i
  1960. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1961. end
  1962. Part.Parent=nil
  1963. end),prt,msh,wld)
  1964. end
  1965.  
  1966. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1967. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1968. prt.Anchored=true
  1969. prt.CFrame=cframe
  1970. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1971. game:GetService("Debris"):AddItem(prt,2)
  1972. coroutine.resume(coroutine.create(function(Part,Mesh)
  1973. for i=0,1,delay do
  1974. wait()
  1975. Part.CFrame=Part.CFrame
  1976. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1977. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1978. prt2.Anchored=true
  1979. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1980. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1981. game:GetService("Debris"):AddItem(prt2,2)
  1982. coroutine.resume(coroutine.create(function(Part,Mesh)
  1983. for i=0,1,0.1 do
  1984. wait()
  1985. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1986. end
  1987. Part.Parent=nil
  1988. end),prt2,msh2)
  1989. end
  1990. for i=0,1,delay*2 do
  1991. wait()
  1992. Part.CFrame=Part.CFrame
  1993. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1994. end
  1995. Part.Parent=nil
  1996. end),prt,msh)
  1997. end
  1998.  
  1999. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2000. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2001. prt.Anchored=true
  2002. prt.CFrame=cframe
  2003. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2004. game:GetService("Debris"):AddItem(prt,2)
  2005. coroutine.resume(coroutine.create(function(Part,Mesh)
  2006. for i=0,1,delay do
  2007. wait()
  2008. Part.CFrame=Part.CFrame
  2009. Part.Transparency=i
  2010. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2011. end
  2012. Part.Parent=nil
  2013. end),prt,msh)
  2014. end
  2015.  
  2016. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2017. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2018. prt.Anchored=true
  2019. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2020. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2021. game:GetService("Debris"):AddItem(prt,2)
  2022. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2023. CF=Part.CFrame
  2024. Numbb=0
  2025. randnumb=math.random()/10
  2026. rand1=math.random()/10
  2027. for i=0,1,rand1 do
  2028. wait()
  2029. CF=CF*cf(0,math.random()/2,0)
  2030. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2031. Part.CFrame=CF*euler(Numbb,0,0)
  2032. Part.Transparency=i
  2033. Numbb=Numbb+randnumb
  2034. end
  2035. Part.Parent=nil
  2036. end),prt,CF,Numbb,randnumb)
  2037. end
  2038.  
  2039. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2040. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2041. prt.Anchored=true
  2042. prt.CFrame=cframe
  2043. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2044. game:GetService("Debris"):AddItem(prt,5)
  2045. coroutine.resume(coroutine.create(function(Part,Mesh)
  2046. for i=0,1,delay do
  2047. wait()
  2048. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2049. Part.Transparency=i
  2050. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2051. end
  2052. Part.Parent=nil
  2053. end),prt,msh)
  2054. end
  2055.  
  2056. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2057. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2058. prt.Anchored=true
  2059. prt.CFrame=cframe
  2060. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2061. game:GetService("Debris"):AddItem(prt,2)
  2062. coroutine.resume(coroutine.create(function(Part,Mesh)
  2063. for i=0,1,delay do
  2064. wait()
  2065. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2066. Part.Transparency=i
  2067. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2068. end
  2069. Part.Parent=nil
  2070. end),prt,msh)
  2071. end
  2072.  
  2073. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2074. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2075. prt.Anchored=true
  2076. prt.CFrame=cframe*cf(x,y,z)
  2077. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2078. game:GetService("Debris"):AddItem(prt,5)
  2079. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2080. local num=math.random()
  2081. local num2=math.random(-3,2)+math.random()
  2082. local numm=0
  2083. for i=0,1,delay*2 do
  2084. swait()
  2085. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2086. Part.Transparency=i
  2087. numm=numm+0.01
  2088. end
  2089. Part.Parent=nil
  2090. Mesh.Parent=nil
  2091. end),prt,msh,x,y,z)
  2092. end
  2093.  
  2094. function dmgstart(dmg,what)
  2095. hitcon = what.Touched:connect(function(hit)
  2096. local hum = hit.Parent:FindFirstChild("Humanoid")
  2097. if hum and not hum:IsDescendantOf(Character) then
  2098. hum:TakeDamage(dmg)
  2099. end
  2100. end)
  2101. end
  2102.  
  2103. function dmgstop()
  2104. hitcon:disconnect()
  2105. end
  2106.  
  2107. function Cloak()
  2108. Face.Parent=nil
  2109. cloaked=true
  2110. for _,v in pairs(Torso.Parent:children()) do
  2111. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2112. coroutine.resume(coroutine.create(function()
  2113. for i=0,1,0.2 do
  2114. wait()
  2115. v.Transparency=i
  2116. end
  2117. v.Transparency=1
  2118. end))
  2119. end
  2120. if v.className=="Hat" then
  2121. hatp=v.Handle
  2122. coroutine.resume(coroutine.create(function(derp)
  2123. for i=0,1,0.2 do
  2124. wait()
  2125. derp.Transparency=i
  2126. end
  2127. derp.Transparency=1
  2128. end),hatp)
  2129. end
  2130. end
  2131. for _,v in pairs(m:children()) do
  2132. if v.className=="Part" then
  2133. coroutine.resume(coroutine.create(function()
  2134. for i=0,1,0.2 do
  2135. wait()
  2136. v.Transparency=i
  2137. end
  2138. v.Transparency=1
  2139. end))
  2140. end
  2141. end
  2142. end
  2143.  
  2144. function UnCloak()
  2145. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2146. Face.Parent=Head
  2147. cloaked=false
  2148. for _,v in pairs(Torso.Parent:children()) do
  2149. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2150. coroutine.resume(coroutine.create(function()
  2151. for i=0,1,0.1 do
  2152. wait()
  2153. v.Transparency=v.Transparency-0.1
  2154. end
  2155. v.Transparency=0
  2156. end))
  2157. end
  2158. if v.className=="Hat" then
  2159. hatp=v.Handle
  2160. coroutine.resume(coroutine.create(function(derp)
  2161. for i=0,1,0.1 do
  2162. wait()
  2163. derp.Transparency=derp.Transparency-0.1
  2164. end
  2165. derp.Transparency=0
  2166. end),hatp)
  2167. end
  2168. end
  2169. for _,v in pairs(m:children()) do
  2170. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2171. coroutine.resume(coroutine.create(function()
  2172. for i=0,1,0.1 do
  2173. wait()
  2174. v.Transparency=v.Transparency-0.1
  2175. end
  2176. v.Transparency=0
  2177. end))
  2178. v.Transparency=0
  2179. end
  2180. end
  2181. end
  2182.  
  2183. local origcolor = BrickColor.new("Pastel light blue")
  2184. ---- This section of explosions.
  2185. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2186. local expart = Instance.new("Part",char)
  2187. local expart2 = Instance.new("Part",char)
  2188. local rin = Instance.new("Part",char)
  2189. local rin2 = Instance.new("Part",char)
  2190. local partMesh = Instance.new("SpecialMesh",expart)
  2191. partMesh.MeshType = "Sphere"
  2192. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2193. partMesh2.MeshType = "Sphere"
  2194. local partMesh3 = Instance.new("SpecialMesh",rin)
  2195. partMesh3.MeshType = "Brick"
  2196. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2197. partMesh4.MeshType = "Brick"
  2198. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2199. partMesh.Scale = vt(rad,rad,rad)
  2200. expart.Size = vt(1,1,1)
  2201. expart.Transparency = 0
  2202. expart.Anchored = true
  2203. expart.Material = "Neon"
  2204. expart.BrickColor = bc("White")
  2205. expart.CFrame = par.CFrame
  2206. partMesh2.Scale = vt(rad,rad,rad)
  2207. expart2.Size = vt(1.15,1.15,1.15)
  2208. expart2.Transparency = 0.5
  2209. expart2.Anchored = true
  2210. expart2.Material = "Neon"
  2211. expart2.BrickColor = par.BrickColor
  2212. expart2.CFrame = par.CFrame
  2213. rin.Size = vt(1.15,1.15,1.15)
  2214. rin.Transparency = 1
  2215. rin.Anchored = true
  2216. rin.Material = "Neon"
  2217. rin.BrickColor = par.BrickColor
  2218. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2219. rin2.Size = vt(1.15,1.15,1.15)
  2220. rin2.Transparency = 1
  2221. rin2.Anchored = true
  2222. rin2.Material = "Neon"
  2223. rin2.BrickColor = par.BrickColor
  2224. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2225. partMesh3.Scale = vt(0,1,0)
  2226. partMesh4.Scale = vt(0,1,0)
  2227. local dec2 = Instance.new("Decal", rin)
  2228. dec2.Face = "Top"
  2229. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2230. dec2.Parent = rin
  2231. local dec2b = dec2:Clone()
  2232. dec2b.Face = "Bottom"
  2233. dec2b.Parent = rin
  2234.  
  2235. local dec2a = Instance.new("Decal", rin2)
  2236. dec2a.Face = "Top"
  2237. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2238. dec2a.Parent = rin2
  2239. local dec2ab = dec2a:Clone()
  2240. dec2ab.Face = "Bottom"
  2241. dec2ab.Parent = rin2
  2242. expart.CanCollide = false
  2243. expart2.CanCollide = false
  2244. rin.CanCollide = false
  2245. rin2.CanCollide = false
  2246. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2247. local value = 1*rad/6.5
  2248. for i = 0, 199 do
  2249. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2250. expart.CFrame = expart.CFrame
  2251. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2252. expart2.CFrame = expart.CFrame
  2253. value = value - 0.035*rad/30
  2254. if value < 7.5 then
  2255. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2256. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2257. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2258. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2259. end
  2260. if value < 0 then
  2261. dec2.Transparency = dec2.Transparency + 0.025
  2262. dec2a.Transparency = dec2a.Transparency + 0.025
  2263. dec2b.Transparency = dec2b.Transparency + 0.025
  2264. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2265. expart.Transparency = expart.Transparency + 0.025
  2266. expart2.Transparency = expart2.Transparency + 0.025
  2267. rin.Transparency = rin.Transparency + 0.025
  2268. rin2.Transparency = rin2.Transparency + 0.025
  2269. end
  2270. swait()
  2271. end
  2272. game:GetService("Debris"):AddItem(expart, 1)
  2273. game:GetService("Debris"):AddItem(expart2, 1)
  2274. game:GetService("Debris"):AddItem(rin, 1)
  2275. game:GetService("Debris"):AddItem(rin2, 1)
  2276. end
  2277.  
  2278. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2279. local expart = Instance.new("Part",char)
  2280. local expart2 = Instance.new("Part",char)
  2281. local partMesh = Instance.new("SpecialMesh",expart)
  2282. partMesh.MeshType = "Sphere"
  2283. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2284. partMesh2.MeshType = "Sphere"
  2285. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2286. partMesh.Scale = vt(rad,rad,rad)
  2287. expart.Size = vt(1,1,1)
  2288. expart.Transparency = 0
  2289. expart.Anchored = true
  2290. expart.Material = "Neon"
  2291. expart.BrickColor = bc("White")
  2292. expart.CFrame = par.CFrame
  2293. partMesh2.Scale = vt(rad,rad,rad)
  2294. expart2.Size = vt(1.15,1.15,1.15)
  2295. expart2.Transparency = 0.5
  2296. expart2.Anchored = true
  2297. expart2.Material = "Neon"
  2298. expart2.BrickColor = par.BrickColor
  2299. expart2.CFrame = par.CFrame
  2300. expart.CanCollide = false
  2301. expart2.CanCollide = false
  2302. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2303. local value = 1*rad/6.5
  2304. for i = 0, 75 do
  2305. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2306. expart.CFrame = expart.CFrame
  2307. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2308. expart2.CFrame = expart.CFrame
  2309. value = value - 0.035*rad/5
  2310. if value < 0 then
  2311. value = 0
  2312. expart.Transparency = expart.Transparency + 0.05
  2313. expart2.Transparency = expart2.Transparency + 0.05
  2314. end
  2315. swait()
  2316. end
  2317. game:GetService("Debris"):AddItem(expart, 1)
  2318. game:GetService("Debris"):AddItem(expart2, 1)
  2319. end
  2320.  
  2321.  
  2322. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2323. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2324. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2325. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2326. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2327. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2328. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2329. for i = 0, 24 do
  2330. 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))
  2331. end
  2332. for i = 0, 24 do
  2333. local expart = Instance.new("Part",char)
  2334. expart.Transparency = 1
  2335. expart.Anchored = true
  2336. expart.CanCollide = false
  2337. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2338. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2339. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2340. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2341. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2342. for i = 0, 9 do
  2343. 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))
  2344. end
  2345. game:GetService("Debris"):AddItem(expart, 2)
  2346. wait(0.1)
  2347. end
  2348. end
  2349.  
  2350. function EXterPlosion(par)
  2351. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2352. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2353. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2354. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2355. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2356. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2357. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2358. for i = 0, 24 do
  2359. 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))
  2360. end
  2361. for i = 0, 24 do
  2362. 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))
  2363. end
  2364. end
  2365. ----
  2366.  
  2367.  
  2368. function ring(type,pos,scale,value)
  2369. local type = type
  2370. local rng = Instance.new("Part", char)
  2371. rng.Anchored = true
  2372. rng.BrickColor = origcolor
  2373. rng.CanCollide = false
  2374. rng.FormFactor = 3
  2375. rng.Name = "Ring"
  2376. rng.Size = Vector3.new(1, 1, 1)
  2377. rng.Transparency = 0
  2378. rng.TopSurface = 0
  2379. rng.BottomSurface = 0
  2380. rng.CFrame = pos
  2381. local rngm = Instance.new("SpecialMesh", rng)
  2382. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2383. rngm.Scale = scale
  2384. local scaler2 = 1
  2385. if type == "Add" then
  2386. scaler2 = 1*value
  2387. elseif type == "Divide" then
  2388. scaler2 = 1/value
  2389. end
  2390. coroutine.resume(coroutine.create(function()
  2391. for i = 0,10,0.1 do
  2392. swait()
  2393. if type == "Add" then
  2394. scaler2 = scaler2 - 0.01*value
  2395. elseif type == "Divide" then
  2396. scaler2 = scaler2 - 0.01/value
  2397. end
  2398. rng.Transparency = rng.Transparency + 0.01
  2399. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2400. end
  2401. rng:Destroy()
  2402. end))
  2403. end
  2404.  
  2405.  
  2406. function wave(type,pos,scale,value)
  2407. local type = type
  2408. local rng = Instance.new("Part", char)
  2409. rng.Anchored = true
  2410. rng.BrickColor = origcolor
  2411. rng.CanCollide = false
  2412. rng.FormFactor = 3
  2413. rng.Name = "Ring"
  2414. rng.Size = Vector3.new(1, 1, 1)
  2415. rng.Transparency = 0
  2416. rng.TopSurface = 0
  2417. rng.BottomSurface = 0
  2418. rng.CFrame = pos
  2419. local rngm = Instance.new("SpecialMesh", rng)
  2420. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2421. rngm.Scale = scale
  2422. local scaler2 = 1
  2423. if type == "Add" then
  2424. scaler2 = 1*value
  2425. elseif type == "Divide" then
  2426. scaler2 = 1/value
  2427. end
  2428. coroutine.resume(coroutine.create(function()
  2429. for i = 0,10,0.1 do
  2430. swait()
  2431. if type == "Add" then
  2432. scaler2 = scaler2 - 0.01*value
  2433. elseif type == "Divide" then
  2434. scaler2 = scaler2 - 0.01/value
  2435. end
  2436. rng.Transparency = rng.Transparency + 0.01
  2437. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2438. end
  2439. rng:Destroy()
  2440. end))
  2441. end
  2442.  
  2443. function wind(type,pos,scale,value,speed)
  2444. local type = type
  2445. local rng = Instance.new("Part", char)
  2446. rng.Anchored = true
  2447. rng.BrickColor = origcolor
  2448. rng.CanCollide = false
  2449. rng.FormFactor = 3
  2450. rng.Name = "Ring"
  2451. rng.Size = Vector3.new(1, 1, 1)
  2452. rng.Transparency = 0
  2453. rng.TopSurface = 0
  2454. rng.BottomSurface = 0
  2455. rng.CFrame = pos
  2456. local rngm = Instance.new("SpecialMesh", rng)
  2457. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2458. rngm.Scale = scale
  2459. local scaler2 = 1
  2460. if type == "Add" then
  2461. scaler2 = 1*value
  2462. elseif type == "Divide" then
  2463. scaler2 = 1/value
  2464. end
  2465. coroutine.resume(coroutine.create(function()
  2466. for i = 0,10,0.1 do
  2467. swait()
  2468. if type == "Add" then
  2469. scaler2 = scaler2 - 0.01*value
  2470. elseif type == "Divide" then
  2471. scaler2 = scaler2 - 0.01/value
  2472. end
  2473. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2474. rng.Transparency = rng.Transparency + 0.01
  2475. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2476. end
  2477. rng:Destroy()
  2478. end))
  2479. end
  2480.  
  2481. function groundwind(type,pos,scale,value,speed)
  2482. local type = type
  2483. local rng = Instance.new("Part", char)
  2484. rng.Anchored = true
  2485. rng.BrickColor = origcolor
  2486. rng.CanCollide = false
  2487. rng.FormFactor = 3
  2488. rng.Name = "Ring"
  2489. rng.Size = Vector3.new(1, 1, 1)
  2490. rng.Transparency = 0
  2491. rng.TopSurface = 0
  2492. rng.BottomSurface = 0
  2493. rng.CFrame = pos
  2494. local rngm = Instance.new("SpecialMesh", rng)
  2495. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2496. rngm.Scale = scale
  2497. local scaler2 = 1
  2498. if type == "Add" then
  2499. scaler2 = 1*value
  2500. elseif type == "Divide" then
  2501. scaler2 = 1/value
  2502. end
  2503. coroutine.resume(coroutine.create(function()
  2504. for i = 0,10,0.1 do
  2505. swait()
  2506. if type == "Add" then
  2507. scaler2 = scaler2 - 0.01*value
  2508. elseif type == "Divide" then
  2509. scaler2 = scaler2 - 0.01/value
  2510. end
  2511. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2512. rng.Transparency = rng.Transparency + 0.01
  2513. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2514. end
  2515. rng:Destroy()
  2516. end))
  2517. end
  2518.  
  2519. function CameraManager()
  2520. if TwoD and not CamInterrupt then
  2521. if Humanoid.Health > 0 then
  2522. Camera.CameraSubject = Humanoid
  2523. Camera.CameraType = "Scriptable"
  2524. Humanoid.AutoRotate = false
  2525. if Booleans.GyroUse then
  2526. Directer.MaxTorque = Vec3(0, huge, 0)
  2527. else
  2528. Directer.MaxTorque = Vec3(0, 0, 0)
  2529. end
  2530. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2531. if Booleans.CamFollow then
  2532. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2533. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2534. else
  2535. CPart.Position = RootPart.Position
  2536. end
  2537. else
  2538. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2539. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2540. end
  2541. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2542. else
  2543. Camera.CameraSubject = Humanoid
  2544. Camera.CameraType = "Custom"
  2545. Controller.Disabled = false
  2546. end
  2547. end
  2548. end
  2549.  
  2550. function sphere(bonuspeed,type,pos,scale,value,color)
  2551. local type = type
  2552. local rng = Instance.new("Part", char)
  2553. rng.Anchored = true
  2554. rng.BrickColor = color
  2555. rng.CanCollide = false
  2556. rng.FormFactor = 3
  2557. rng.Name = "Ring"
  2558. rng.Material = "Neon"
  2559. rng.Size = Vector3.new(1, 1, 1)
  2560. rng.Transparency = 0
  2561. rng.TopSurface = 0
  2562. rng.BottomSurface = 0
  2563. rng.CFrame = pos
  2564. local rngm = Instance.new("SpecialMesh", rng)
  2565. rngm.MeshType = "Sphere"
  2566. rngm.Scale = scale
  2567. if rainbowmode == true then
  2568. rng.Color = Color3.new(r/255,g/255,b/255)
  2569. end
  2570. local scaler2 = 1
  2571. if type == "Add" then
  2572. scaler2 = 1*value
  2573. elseif type == "Divide" then
  2574. scaler2 = 1/value
  2575. end
  2576. coroutine.resume(coroutine.create(function()
  2577. for i = 0,10/bonuspeed,0.1 do
  2578. swait()
  2579. if rainbowmode == true then
  2580. rng.Color = Color3.new(r/255,g/255,b/255)
  2581. end
  2582. if type == "Add" then
  2583. scaler2 = scaler2 - 0.01*value/bonuspeed
  2584. elseif type == "Divide" then
  2585. scaler2 = scaler2 - 0.01/value*bonuspeed
  2586. end
  2587. if chaosmode == true then
  2588. rng.BrickColor = BrickColor.random()
  2589. end
  2590. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2591. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2592. end
  2593. rng:Destroy()
  2594. end))
  2595. end
  2596.  
  2597. function spherew(bonuspeed,type,pos,scale,value,color)
  2598. local type = type
  2599. local rng = Instance.new("Part", workspace)
  2600. rng.Anchored = true
  2601. rng.BrickColor = color
  2602. rng.CanCollide = false
  2603. rng.FormFactor = 3
  2604. rng.Name = "Ring"
  2605. rng.Material = "Neon"
  2606. rng.Size = Vector3.new(1, 1, 1)
  2607. rng.Transparency = 0
  2608. rng.TopSurface = 0
  2609. rng.BottomSurface = 0
  2610. rng.CFrame = pos
  2611. local rngm = Instance.new("SpecialMesh", rng)
  2612. rngm.MeshType = "Sphere"
  2613. rngm.Scale = scale
  2614. if rainbowmode == true then
  2615. rng.Color = Color3.new(r/255,g/255,b/255)
  2616. end
  2617. local scaler2 = 1
  2618. if type == "Add" then
  2619. scaler2 = 1*value
  2620. elseif type == "Divide" then
  2621. scaler2 = 1/value
  2622. end
  2623. coroutine.resume(coroutine.create(function()
  2624. for i = 0,10/bonuspeed,0.1 do
  2625. swait()
  2626. if rainbowmode == true then
  2627. rng.Color = Color3.new(r/255,g/255,b/255)
  2628. end
  2629. if type == "Add" then
  2630. scaler2 = scaler2 - 0.01*value/bonuspeed
  2631. elseif type == "Divide" then
  2632. scaler2 = scaler2 - 0.01/value*bonuspeed
  2633. end
  2634. if chaosmode == true then
  2635. rng.BrickColor = BrickColor.random()
  2636. end
  2637. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2638. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2639. end
  2640. rng:Destroy()
  2641. end))
  2642. end
  2643.  
  2644. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2645. local type = type
  2646. local rng = Instance.new("Part", char)
  2647. rng.Anchored = true
  2648. rng.BrickColor = color
  2649. rng.CanCollide = false
  2650. rng.FormFactor = 3
  2651. rng.Name = "Ring"
  2652. rng.Material = "Neon"
  2653. rng.Size = Vector3.new(1, 1, 1)
  2654. rng.Transparency = 0
  2655. rng.TopSurface = 0
  2656. rng.BottomSurface = 0
  2657. rng.CFrame = pos
  2658. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2659. local rngm = Instance.new("SpecialMesh", rng)
  2660. rngm.MeshType = "Brick"
  2661. rngm.Scale = vt(x1,y1,z1)
  2662. if rainbowmode == true then
  2663. rng.Color = Color3.new(r/255,g/255,b/255)
  2664. end
  2665. local scaler2 = 1
  2666. local speeder = FastSpeed/10
  2667. if type == "Add" then
  2668. scaler2 = 1*value
  2669. elseif type == "Divide" then
  2670. scaler2 = 1/value
  2671. end
  2672. coroutine.resume(coroutine.create(function()
  2673. for i = 0,10/bonuspeed,0.1 do
  2674. swait()
  2675. if rainbowmode == true then
  2676. rng.Color = Color3.new(r/255,g/255,b/255)
  2677. end
  2678. if type == "Add" then
  2679. scaler2 = scaler2 - 0.01*value/bonuspeed
  2680. elseif type == "Divide" then
  2681. scaler2 = scaler2 - 0.01/value*bonuspeed
  2682. end
  2683. if chaosmode == true then
  2684. rng.BrickColor = BrickColor.random()
  2685. end
  2686. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2687. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2688. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2689. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2690. end
  2691. rng:Destroy()
  2692. end))
  2693. end
  2694.  
  2695. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2696. local type = type
  2697. local rng = Instance.new("Part", char)
  2698. rng.Anchored = true
  2699. rng.BrickColor = color
  2700. rng.CanCollide = false
  2701. rng.FormFactor = 3
  2702. rng.Name = "Ring"
  2703. rng.Material = "Neon"
  2704. rng.Size = Vector3.new(1, 1, 1)
  2705. rng.Transparency = 0
  2706. rng.TopSurface = 0
  2707. rng.BottomSurface = 0
  2708. rng.CFrame = pos
  2709. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2710. local rngm = Instance.new("SpecialMesh", rng)
  2711. rngm.MeshType = "Brick"
  2712. rngm.Scale = vt(x1,y1,z1)
  2713. if rainbowmode == true then
  2714. rng.Color = Color3.new(r/255,g/255,b/255)
  2715. end
  2716. local scaler2 = 0
  2717. local speeder = FastSpeed/10
  2718. if type == "Add" then
  2719. scaler2 = 1*value
  2720. elseif type == "Divide" then
  2721. scaler2 = 1/value
  2722. end
  2723. coroutine.resume(coroutine.create(function()
  2724. for i = 0,10/bonuspeed,0.1 do
  2725. swait()
  2726. if rainbowmode == true then
  2727. rng.Color = Color3.new(r/255,g/255,b/255)
  2728. end
  2729. if type == "Add" then
  2730. scaler2 = scaler2 - 0.01*value/bonuspeed
  2731. elseif type == "Divide" then
  2732. scaler2 = scaler2 - 0.01/value*bonuspeed
  2733. end
  2734. if chaosmode == true then
  2735. rng.BrickColor = BrickColor.random()
  2736. end
  2737. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2738. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2739. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2740. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2741. end
  2742. rng:Destroy()
  2743. end))
  2744. end
  2745.  
  2746. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2747. local type = type
  2748. local rng = Instance.new("Part", workspace)
  2749. rng.Anchored = true
  2750. rng.BrickColor = color
  2751. rng.CanCollide = false
  2752. rng.FormFactor = 3
  2753. rng.Name = "Ring"
  2754. rng.Material = "Neon"
  2755. rng.Size = Vector3.new(1, 1, 1)
  2756. rng.Transparency = 0
  2757. rng.TopSurface = 0
  2758. rng.BottomSurface = 0
  2759. rng.CFrame = pos
  2760. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2761. local rngm = Instance.new("SpecialMesh", rng)
  2762. rngm.MeshType = "Sphere"
  2763. rngm.Scale = vt(x1,y1,z1)
  2764. if rainbowmode == true then
  2765. rng.Color = Color3.new(r/255,g/255,b/255)
  2766. end
  2767. local scaler2 = 1
  2768. local speeder = FastSpeed
  2769. if type == "Add" then
  2770. scaler2 = 1*value
  2771. elseif type == "Divide" then
  2772. scaler2 = 1/value
  2773. end
  2774. coroutine.resume(coroutine.create(function()
  2775. for i = 0,10/bonuspeed,0.1 do
  2776. swait()
  2777. if rainbowmode == true then
  2778. rng.Color = Color3.new(r/255,g/255,b/255)
  2779. end
  2780. if type == "Add" then
  2781. scaler2 = scaler2 - 0.01*value/bonuspeed
  2782. elseif type == "Divide" then
  2783. scaler2 = scaler2 - 0.01/value*bonuspeed
  2784. end
  2785. if chaosmode == true then
  2786. rng.BrickColor = BrickColor.random()
  2787. end
  2788. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2789. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2790. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2791. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2792. end
  2793. rng:Destroy()
  2794. end))
  2795. end
  2796. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2797. local type = type
  2798. local rng = Instance.new("Part", char)
  2799. rng.Anchored = true
  2800. rng.BrickColor = color
  2801. rng.CanCollide = false
  2802. rng.FormFactor = 3
  2803. rng.Name = "Ring"
  2804. rng.Material = "Neon"
  2805. rng.Size = Vector3.new(1, 1, 1)
  2806. rng.Transparency = 0
  2807. rng.TopSurface = 0
  2808. rng.BottomSurface = 0
  2809. rng.CFrame = pos
  2810. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2811. local rngm = Instance.new("SpecialMesh", rng)
  2812. rngm.MeshType = "Sphere"
  2813. rngm.Scale = vt(x1,y1,z1)
  2814. if rainbowmode == true then
  2815. rng.Color = Color3.new(r/255,g/255,b/255)
  2816. end
  2817. local scaler2 = 1
  2818. local speeder = FastSpeed
  2819. if type == "Add" then
  2820. scaler2 = 1*value
  2821. elseif type == "Divide" then
  2822. scaler2 = 1/value
  2823. end
  2824. coroutine.resume(coroutine.create(function()
  2825. for i = 0,10/bonuspeed,0.1 do
  2826. swait()
  2827. if rainbowmode == true then
  2828. rng.Color = Color3.new(r/255,g/255,b/255)
  2829. end
  2830. if type == "Add" then
  2831. scaler2 = scaler2 - 0.01*value/bonuspeed
  2832. elseif type == "Divide" then
  2833. scaler2 = scaler2 - 0.01/value*bonuspeed
  2834. end
  2835. if chaosmode == true then
  2836. rng.BrickColor = BrickColor.random()
  2837. end
  2838. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2839. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2840. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2841. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2842. end
  2843. rng:Destroy()
  2844. end))
  2845. end
  2846.  
  2847.  
  2848. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2849. local type = type
  2850. local rng = Instance.new("Part", char)
  2851. rng.Anchored = true
  2852. rng.BrickColor = color
  2853. rng.CanCollide = false
  2854. rng.FormFactor = 3
  2855. rng.Name = "Ring"
  2856. rng.Material = "Neon"
  2857. rng.Size = Vector3.new(1, 1, 1)
  2858. rng.Transparency = 1
  2859. rng.TopSurface = 0
  2860. rng.BottomSurface = 0
  2861. rng.CFrame = pos
  2862. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2863. local rngm = Instance.new("SpecialMesh", rng)
  2864. rngm.MeshType = "Sphere"
  2865. rngm.Scale = vt(x1,y1,z1)
  2866. if rainbowmode == true then
  2867. rng.Color = Color3.new(r/255,g/255,b/255)
  2868. end
  2869. local scaler2 = 1
  2870. local speeder = FastSpeed
  2871. if type == "Add" then
  2872. scaler2 = 1*value
  2873. elseif type == "Divide" then
  2874. scaler2 = 1/value
  2875. end
  2876. coroutine.resume(coroutine.create(function()
  2877. for i = 0,10/bonuspeed,0.1 do
  2878. swait()
  2879. if rainbowmode == true then
  2880. rng.Color = Color3.new(r/255,g/255,b/255)
  2881. end
  2882. if type == "Add" then
  2883. scaler2 = scaler2 - 0.01*value/bonuspeed
  2884. elseif type == "Divide" then
  2885. scaler2 = scaler2 - 0.01/value*bonuspeed
  2886. end
  2887. if chaosmode == true then
  2888. rng.BrickColor = BrickColor.random()
  2889. end
  2890. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2891. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2892. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2893. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2894. end
  2895. rng:Destroy()
  2896. end))
  2897. end
  2898.  
  2899. function dmg(dude)
  2900. if dude.Name ~= Character then
  2901. local bgf = Instance.new("BodyGyro",dude.Head)
  2902. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2903. local val = Instance.new("BoolValue",dude)
  2904. val.Name = "IsHit"
  2905. local ds = coroutine.wrap(function()
  2906. dude:WaitForChild("Head"):BreakJoints()
  2907. wait(0.5)
  2908. targetted = nil
  2909. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2910. coroutine.resume(coroutine.create(function()
  2911. for i, v in pairs(dude:GetChildren()) do
  2912. if v:IsA("Accessory") then
  2913. v:Destroy()
  2914. end
  2915. if v:IsA("Humanoid") then
  2916. v:Destroy()
  2917. end
  2918. if v:IsA("CharacterMesh") then
  2919. v:Destroy()
  2920. end
  2921. if v:IsA("Model") then
  2922. v:Destroy()
  2923. end
  2924. if v:IsA("Part") or v:IsA("MeshPart") then
  2925. for x, o in pairs(v:GetChildren()) do
  2926. if o:IsA("Decal") then
  2927. o:Destroy()
  2928. end
  2929. end
  2930. coroutine.resume(coroutine.create(function()
  2931. v.Material = "Neon"
  2932. v.CanCollide = false
  2933. local bld = Instance.new("ParticleEmitter",v)
  2934. bld.LightEmission = 1
  2935. bld.Texture = "rbxassetid://284205403"
  2936. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2937. bld.Rate = 50
  2938. bld.Lifetime = NumberRange.new(1)
  2939. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2940. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2941. bld.Speed = NumberRange.new(0,0)
  2942. bld.VelocitySpread = 50000
  2943. bld.Rotation = NumberRange.new(-500,500)
  2944. bld.RotSpeed = NumberRange.new(-500,500)
  2945. local sbs = Instance.new("BodyPosition", v)
  2946. sbs.P = 3000
  2947. sbs.D = 1000
  2948. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2949. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2950. v.Color = Color3.new(1,1,1)
  2951. coroutine.resume(coroutine.create(function()
  2952. for i = 0, 49 do
  2953. swait(1)
  2954. v.Transparency = v.Transparency + 0.02
  2955. end
  2956. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2957. bld.Speed = NumberRange.new(1,5)
  2958. bld.Acceleration = vt(0,10,0)
  2959. wait(0.5)
  2960. bld.Enabled = false
  2961. wait(3)
  2962. v:Destroy()
  2963. dude:Destroy()
  2964. end))
  2965. end))
  2966. end
  2967. end
  2968. end))
  2969. end)
  2970. ds()
  2971. end
  2972. end
  2973.  
  2974.  
  2975. function FindNearestHead(Position, Distance, SinglePlayer)
  2976. if SinglePlayer then
  2977. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2978. end
  2979. local List = {}
  2980. for i, v in pairs(workspace:GetChildren()) do
  2981. if v:IsA("Model") then
  2982. if v:findFirstChild("Head") then
  2983. if v ~= Character then
  2984. if (v.Head.Position - Position).magnitude <= Distance then
  2985. table.insert(List, v)
  2986. end
  2987. end
  2988. end
  2989. end
  2990. end
  2991. return List
  2992. end
  2993.  
  2994. function FaceMouse()
  2995. Cam = workspace.CurrentCamera
  2996. return {
  2997. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2998. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2999. }
  3000. end
  3001.  
  3002. function FaceMouse2()
  3003. Cam = workspace.CurrentCamera
  3004. return {
  3005. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3006. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3007. }
  3008. end
  3009.  
  3010. local ModeOfGlitch = 1
  3011. -- Functions are ready.
  3012. local storehumanoidWS = 16
  3013.  
  3014. function Blink()
  3015. for i = 0, 14 do
  3016. 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)
  3017. end
  3018. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3019. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3020. CameraEnshaking(2,10)
  3021. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3022. if v:FindFirstChild('Head') then
  3023. end
  3024. end
  3025. for i = 0, 14 do
  3026. 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)
  3027. end
  3028. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3029. end
  3030.  
  3031. function ExtinctiveHeartbreak()
  3032. local targetted = nil
  3033. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3034. targetted = mouse.Target.Parent
  3035. end
  3036. if targetted ~= nil then
  3037. attack = true
  3038. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3039. for i = 0, 9 do
  3040. 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)
  3041. end
  3042. for i = 0, 24 do
  3043. 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)
  3044. end
  3045. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3046. local originalpos = root.CFrame
  3047. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3048. for i = 0, 9 do
  3049. 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)
  3050. end
  3051. for i = 0, 24 do
  3052. 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)
  3053. end
  3054. hum.WalkSpeed = 0
  3055. targetted.Head.Anchored = true
  3056. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3057. for i = 0,2,0.1 do
  3058. swait()
  3059. 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)
  3060. 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)
  3061. 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)
  3062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3063. 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)
  3064. 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)
  3065. end
  3066. coroutine.resume(coroutine.create(function()
  3067. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3068. bld.LightEmission = 0.1
  3069. bld.Texture = "rbxassetid://284205403"
  3070. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3071. bld.Rate = 500
  3072. bld.Lifetime = NumberRange.new(1)
  3073. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3074. bld.Acceleration = vt(0,-25,0)
  3075. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3076. bld.Speed = NumberRange.new(10,50)
  3077. bld.EmissionDirection = "Front"
  3078. bld.VelocitySpread = 25
  3079. bld.Rotation = NumberRange.new(-500,500)
  3080. bld.RotSpeed = NumberRange.new(-500,500)
  3081. end))
  3082. coroutine.resume(coroutine.create(function()
  3083. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3084. bld.LightEmission = 0.1
  3085. bld.Texture = "rbxassetid://284205403"
  3086. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3087. bld.Rate = 500
  3088. bld.Lifetime = NumberRange.new(1)
  3089. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3090. bld.Acceleration = vt(0,-25,0)
  3091. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3092. bld.Speed = NumberRange.new(10,50)
  3093. bld.EmissionDirection = "Front"
  3094. bld.VelocitySpread = 25
  3095. bld.Rotation = NumberRange.new(-500,500)
  3096. bld.RotSpeed = NumberRange.new(-500,500)
  3097. end))
  3098. CameraEnshaking(5,5)
  3099. game:GetService("Debris"):AddItem(bld,3)
  3100. dmg(targetted)
  3101. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3102. for i = 0,1,0.1 do
  3103. swait()
  3104. 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)
  3105. 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)
  3106. 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)
  3107. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3108. 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)
  3109. 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)
  3110. end
  3111. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3112. for i = 0, 9 do
  3113. 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)
  3114. end
  3115. for i = 0, 24 do
  3116. 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)
  3117. end
  3118. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3119. root.CFrame = originalpos
  3120. for i = 0, 9 do
  3121. 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)
  3122. end
  3123. for i = 0, 24 do
  3124. 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)
  3125. end
  3126. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3127. bld.Enabled = false
  3128. attack = false
  3129. hum.WalkSpeed = storehumanoidWS
  3130. end
  3131. end
  3132. function HalfGodShow()
  3133. attack = true
  3134. for i = 0, 2, 0.1 do
  3135. swait()
  3136. 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)
  3137. 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)
  3138. 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)
  3139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3140. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3141. 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)
  3142. end
  3143. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3144. for i=1,20 do
  3145. 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)
  3146. swait()
  3147. end
  3148. swait(30)
  3149. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3150. for i =1,20 do
  3151. 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)
  3152. 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)
  3153. end
  3154. for i = 0,2,0.1 do
  3155. swait()
  3156. 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)
  3157. 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)
  3158. 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)
  3159. 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)
  3160. 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)
  3161. 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)
  3162. end
  3163. for i =1,20 do
  3164. 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)
  3165. end
  3166. text.TextTransparency = 1
  3167. text.TextStrokeTransparency = 1
  3168. tr2.Enabled = false
  3169. tr1.Enabled = false
  3170. tr3.Enabled = false
  3171. tl1.Enabled = false
  3172. tl2.Enabled = false
  3173. tl3.Enabled = false
  3174. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3175. eff = false
  3176. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3177. local invtab = {}
  3178. local function search(targ)
  3179. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3180. table.insert(invtab,targ)
  3181. end
  3182. for i,v in pairs(targ:GetChildren()) do
  3183. search(v)
  3184. end
  3185. end
  3186. search(plr.Character)
  3187. local frm = 0
  3188. local frmcon
  3189. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3190. if frm < 10 then
  3191. for i,v in pairs(invtab) do
  3192. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3193. v.Transparency = v.Transparency + 0.1
  3194. end
  3195. end
  3196. frm = frm + 1
  3197. else
  3198. frmcon:disconnect()
  3199. end
  3200. end)
  3201. swait(200)
  3202. text.TextTransparency = 0
  3203. text.TextStrokeTransparency = 0
  3204. tr2.Enabled = false
  3205. tr1.Enabled = false
  3206. tr3.Enabled = false
  3207. tl1.Enabled = false
  3208. tl2.Enabled = false
  3209. tl3.Enabled = false
  3210. eff = true
  3211. for i =1,20 do
  3212. 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)
  3213. end
  3214. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3215. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3216. local invtab = {}
  3217. local function search(targ)
  3218. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3219. table.insert(invtab,targ)
  3220. end
  3221. for i,v in pairs(targ:GetChildren()) do
  3222. search(v)
  3223. end
  3224. end
  3225. search(plr.Character)
  3226. local frm = 0
  3227. local frmcon
  3228. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3229. if frm < 10 then
  3230. for i,v in pairs(invtab) do
  3231. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3232. v.Transparency = v.Transparency - 0.1
  3233. end
  3234. end
  3235. frm = frm + 1
  3236. else
  3237. frmcon:disconnect()
  3238. end
  3239. end)
  3240. swait(5)
  3241. for i = 0, 2, 0.1 do
  3242. swait()
  3243. 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)
  3244. 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)
  3245. 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)
  3246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3247. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3248. 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)
  3249. end
  3250. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3251. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3252. MagniDamage(root, 30, 65,90, 0, "Normal")
  3253. for i =1,20 do
  3254. 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)
  3255. end
  3256. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3257. for i =1,20 do
  3258. 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)
  3259. end
  3260. swait(20)
  3261. attack = false
  3262. tr2.Enabled = true
  3263. tr1.Enabled = true
  3264. tr3.Enabled = true
  3265. tl1.Enabled = false
  3266. tl2.Enabled = false
  3267. tl3.Enabled = false
  3268. end
  3269. function MeteorStrike()
  3270. attack = true
  3271. for i = 0, 2, 0.1 do
  3272. swait()
  3273. 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)
  3274. 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)
  3275. 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)
  3276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3277. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3278. 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)
  3279. end
  3280. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3281. for i=1,20 do
  3282. 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)
  3283. swait()
  3284. end
  3285. swait(30)
  3286. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3287. for i =1,20 do
  3288. 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)
  3289. 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)
  3290. end
  3291. for i = 0,2,0.1 do
  3292. swait()
  3293. 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)
  3294. 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)
  3295. 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)
  3296. 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)
  3297. 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)
  3298. 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)
  3299. end
  3300. for i =1,20 do
  3301. 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)
  3302. end
  3303. text.TextTransparency = 1
  3304. text.TextStrokeTransparency = 1
  3305. tr2.Enabled = false
  3306. tr1.Enabled = false
  3307. tr3.Enabled = false
  3308. tl1.Enabled = false
  3309. tl2.Enabled = false
  3310. tl3.Enabled = false
  3311. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3312. eff = false
  3313. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3314. local invtab = {}
  3315. local function search(targ)
  3316. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3317. table.insert(invtab,targ)
  3318. end
  3319. for i,v in pairs(targ:GetChildren()) do
  3320. search(v)
  3321. end
  3322. end
  3323. search(plr.Character)
  3324. local frm = 0
  3325. local frmcon
  3326. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3327. if frm < 10 then
  3328. for i,v in pairs(invtab) do
  3329. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3330. v.Transparency = v.Transparency + 0.1
  3331. end
  3332. end
  3333. frm = frm + 1
  3334. else
  3335. frmcon:disconnect()
  3336. end
  3337. end)
  3338. swait(200)
  3339. text.TextTransparency = 0
  3340. text.TextStrokeTransparency = 0
  3341. tr2.Enabled = false
  3342. tr1.Enabled = false
  3343. tr3.Enabled = false
  3344. tl1.Enabled = false
  3345. tl2.Enabled = false
  3346. tl3.Enabled = false
  3347. eff = true
  3348. for i =1,20 do
  3349. 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)
  3350. end
  3351. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3352. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3353. local invtab = {}
  3354. local function search(targ)
  3355. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3356. table.insert(invtab,targ)
  3357. end
  3358. for i,v in pairs(targ:GetChildren()) do
  3359. search(v)
  3360. end
  3361. end
  3362. search(plr.Character)
  3363. local frm = 0
  3364. local frmcon
  3365. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3366. if frm < 10 then
  3367. for i,v in pairs(invtab) do
  3368. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3369. v.Transparency = v.Transparency - 0.1
  3370. end
  3371. end
  3372. frm = frm + 1
  3373. else
  3374. frmcon:disconnect()
  3375. end
  3376. end)
  3377. swait(5)
  3378. for i = 0, 2, 0.1 do
  3379. swait()
  3380. 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)
  3381. 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)
  3382. 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)
  3383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3384. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3385. 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)
  3386. end
  3387. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3388. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3389. MagniDamage(root, 30, 65,90, 0, "Normal")
  3390. for i =1,20 do
  3391. 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)
  3392. end
  3393. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3394. for i =1,20 do
  3395. 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)
  3396. end
  3397. swait(20)
  3398. attack = false
  3399. tr2.Enabled = true
  3400. tr1.Enabled = true
  3401. tr3.Enabled = true
  3402. tl1.Enabled = true
  3403. tl2.Enabled = true
  3404. tl3.Enabled = true
  3405. end
  3406. function FinalCalam()
  3407. attack = true
  3408.  
  3409. local orb = Instance.new("Part", char)
  3410. orb.Anchored = true
  3411. orb.BrickColor = MAINRUINCOLOR
  3412. orb.CanCollide = false
  3413. orb.FormFactor = 3
  3414. orb.Name = "Ring"
  3415. orb.Material = "Neon"
  3416. orb.Size = Vector3.new(1, 1, 1)
  3417. orb.Transparency = 0
  3418. orb.TopSurface = 0
  3419. orb.BottomSurface = 0
  3420. local orbm = Instance.new("SpecialMesh", orb)
  3421. orbm.MeshType = "Sphere"
  3422. orbm.Name = "SizeMesh"
  3423. orbm.Scale = vt(0,0,0)
  3424. local scaled = 0.1
  3425. local posid = 0
  3426. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3427. for i = 0, 5, 0.1 do
  3428. swait()
  3429. scaled = scaled - 0.001
  3430. posid = posid - scaled
  3431. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3432. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3433. 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)
  3434. 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)
  3435. 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)
  3436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3438. 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)
  3439. end
  3440. swait(60)
  3441. for i =1,3 do
  3442. swait(30)
  3443. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3444. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3445. end
  3446. swait(30)
  3447. for i = 0, 2, 0.1 do
  3448. swait()
  3449. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3450. 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)
  3451. 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)
  3452. 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)
  3453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3454. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3455. 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)
  3456. end
  3457. swait(60)
  3458. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3459. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3460. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3461. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3462. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3463. if v:FindFirstChild('Head') then
  3464. dmg(v)
  3465. end
  3466. end
  3467. for i = 1,20 do
  3468. 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)
  3469. for i = 0, 10 do
  3470. 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)
  3471. end
  3472. end
  3473. orb:Remove()
  3474. attack = false
  3475. end
  3476. function NatureBomb()
  3477. attack = true
  3478.  
  3479. local orb = Instance.new("Part", char)
  3480. orb.Anchored = true
  3481. orb.BrickColor = BrickColor.new("Lime green")
  3482. orb.CanCollide = false
  3483. orb.FormFactor = 3
  3484. orb.Name = "Ring"
  3485. orb.Material = "Neon"
  3486. orb.Size = Vector3.new(1, 1, 1)
  3487. orb.Transparency = 0
  3488. orb.TopSurface = 0
  3489. orb.BottomSurface = 0
  3490. local orbm = Instance.new("SpecialMesh", orb)
  3491. orbm.MeshType = "Sphere"
  3492. orbm.Name = "SizeMesh"
  3493. orbm.Scale = vt(0,0,0)
  3494. local scaled = 0.1
  3495. local posid = 0
  3496. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3497. for i = 0, 5, 0.1 do
  3498. swait()
  3499. scaled = scaled - 0.001
  3500. posid = posid - scaled
  3501. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3502. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3503. 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("Lime green"),10)
  3504. 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("Lime green"),0)
  3505. 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)
  3506. 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)
  3507. 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)
  3508. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3510. 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)
  3511. end
  3512. for i = 0, 2, 0.1 do
  3513. swait()
  3514. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3515. 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)
  3516. 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)
  3517. 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)
  3518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3519. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3520. 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)
  3521. end
  3522. coroutine.resume(coroutine.create(function()
  3523. orb.Anchored = false
  3524. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3525. local a = Instance.new("Part",workspace)
  3526. a.Name = "Direction"
  3527. a.Anchored = true
  3528. a.BrickColor = bc("Bright red")
  3529. a.Material = "Neon"
  3530. a.Transparency = 1
  3531. a.CanCollide = false
  3532. local ray = Ray.new(
  3533. orb.CFrame.p, -- origin
  3534. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3535. )
  3536. local ignore = orb
  3537. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3538. a.BottomSurface = 10
  3539. a.TopSurface = 10
  3540. local distance = (orb.CFrame.p - position).magnitude
  3541. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3542. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3543. orb.CFrame = a.CFrame
  3544. a:Destroy()
  3545. local bv = Instance.new("BodyVelocity")
  3546. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3547. bv.velocity = orb.CFrame.lookVector*125
  3548. bv.Parent = orb
  3549. local hitted = false
  3550. game:GetService("Debris"):AddItem(orb, 15)
  3551. wait()
  3552. local hit =orb.Touched:connect(function(hit)
  3553. if hitted == false then
  3554. hitted = true
  3555. CameraEnshaking(10,2.5)
  3556. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3557. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Lime green"))
  3558. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Lime green"))
  3559. for i = 0, 49 do
  3560. 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("Lime green"),0)
  3561. end
  3562. for i = 0, 9 do
  3563. 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("Lime green"),0)
  3564. 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("Lime green"),0)
  3565. end
  3566. orb.Anchored = true
  3567. orb.Transparency = 1
  3568. wait(8)
  3569. orb:Destroy()
  3570. end
  3571. end)
  3572. end))
  3573. for i = 0, 1, 0.1 do
  3574. swait()
  3575. 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)
  3576. 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)
  3577. 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)
  3578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3579. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3580. 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)
  3581. end
  3582. attack = false
  3583. end
  3584.  
  3585. function PureBomb()
  3586. attack = true
  3587.  
  3588. local orb = Instance.new("Part", char)
  3589. orb.Anchored = true
  3590. orb.BrickColor = BrickColor.new("Toothpaste")
  3591. orb.CanCollide = false
  3592. orb.FormFactor = 3
  3593. orb.Name = "Ring"
  3594. orb.Material = "Neon"
  3595. orb.Size = Vector3.new(1, 1, 1)
  3596. orb.Transparency = 0
  3597. orb.TopSurface = 0
  3598. orb.BottomSurface = 0
  3599. local orbm = Instance.new("SpecialMesh", orb)
  3600. orbm.MeshType = "Sphere"
  3601. orbm.Name = "SizeMesh"
  3602. orbm.Scale = vt(0,0,0)
  3603. local scaled = 0.1
  3604. local posid = 0
  3605. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3606. for i = 0, 5, 0.1 do
  3607. swait()
  3608. scaled = scaled - 0.001
  3609. posid = posid - scaled
  3610. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3611. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3612. 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)
  3613. 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)
  3614. 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)
  3615. 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)
  3616. 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)
  3617. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3618. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3619. 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)
  3620. end
  3621. for i = 0, 2, 0.1 do
  3622. swait()
  3623. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3624. 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)
  3625. 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)
  3626. 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)
  3627. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3628. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3629. 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)
  3630. end
  3631. coroutine.resume(coroutine.create(function()
  3632. orb.Anchored = false
  3633. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3634. local a = Instance.new("Part",workspace)
  3635. a.Name = "Direction"
  3636. a.Anchored = true
  3637. a.BrickColor = bc("Bright red")
  3638. a.Material = "Neon"
  3639. a.Transparency = 1
  3640. a.CanCollide = false
  3641. local ray = Ray.new(
  3642. orb.CFrame.p, -- origin
  3643. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3644. )
  3645. local ignore = orb
  3646. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3647. a.BottomSurface = 10
  3648. a.TopSurface = 10
  3649. local distance = (orb.CFrame.p - position).magnitude
  3650. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3651. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3652. orb.CFrame = a.CFrame
  3653. a:Destroy()
  3654. local bv = Instance.new("BodyVelocity")
  3655. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3656. bv.velocity = orb.CFrame.lookVector*125
  3657. bv.Parent = orb
  3658. local hitted = false
  3659. game:GetService("Debris"):AddItem(orb, 15)
  3660. wait()
  3661. local hit =orb.Touched:connect(function(hit)
  3662. if hitted == false then
  3663. hitted = true
  3664. CameraEnshaking(10,2.5)
  3665. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3666. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3667. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3668. for i = 0, 49 do
  3669. 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)
  3670. end
  3671. for i = 0, 9 do
  3672. 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)
  3673. 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)
  3674. end
  3675. orb.Anchored = true
  3676. orb.Transparency = 1
  3677. wait(8)
  3678. orb:Destroy()
  3679. end
  3680. end)
  3681. end))
  3682. for i = 0, 1, 0.1 do
  3683. swait()
  3684. 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)
  3685. 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)
  3686. 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)
  3687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3688. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3689. 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)
  3690. end
  3691. attack = false
  3692. end
  3693.  
  3694. function SandBomb()
  3695. attack = true
  3696.  
  3697. local orb = Instance.new("Part", char)
  3698. orb.Anchored = true
  3699. orb.BrickColor = BrickColor.new("Daisy orange")
  3700. orb.CanCollide = false
  3701. orb.FormFactor = 3
  3702. orb.Name = "Ring"
  3703. orb.Material = "Sand"
  3704. orb.Size = Vector3.new(1, 1, 1)
  3705. orb.Transparency = 0
  3706. orb.TopSurface = 0
  3707. orb.BottomSurface = 0
  3708. local orbm = Instance.new("SpecialMesh", orb)
  3709. orbm.MeshType = "Sphere"
  3710. orbm.Name = "SizeMesh"
  3711. orbm.Scale = vt(0,0,0)
  3712. local scaled = 0.1
  3713. local posid = 0
  3714. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3715. for i = 0, 5, 0.1 do
  3716. swait()
  3717. scaled = scaled - 0.001
  3718. posid = posid - scaled
  3719. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3720. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3721. 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("Daisy orange"),10)
  3722. 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("Daisy orange"),0)
  3723. 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)
  3724. 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)
  3725. 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)
  3726. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3727. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3728. 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)
  3729. end
  3730. for i = 0, 2, 0.1 do
  3731. swait()
  3732. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3733. 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)
  3734. 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)
  3735. 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)
  3736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3737. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3738. 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)
  3739. end
  3740. coroutine.resume(coroutine.create(function()
  3741. orb.Anchored = false
  3742. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3743. local a = Instance.new("Part",workspace)
  3744. a.Name = "Direction"
  3745. a.Anchored = true
  3746. a.BrickColor = bc("Bright red")
  3747. a.Material = "Sand"
  3748. a.Transparency = 1
  3749. a.CanCollide = false
  3750. local ray = Ray.new(
  3751. orb.CFrame.p, -- origin
  3752. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3753. )
  3754. local ignore = orb
  3755. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3756. a.BottomSurface = 10
  3757. a.TopSurface = 10
  3758. local distance = (orb.CFrame.p - position).magnitude
  3759. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3760. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3761. orb.CFrame = a.CFrame
  3762. a:Destroy()
  3763. local bv = Instance.new("BodyVelocity")
  3764. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3765. bv.velocity = orb.CFrame.lookVector*125
  3766. bv.Parent = orb
  3767. local hitted = false
  3768. game:GetService("Debris"):AddItem(orb, 15)
  3769. wait()
  3770. local hit =orb.Touched:connect(function(hit)
  3771. if hitted == false then
  3772. hitted = true
  3773. CameraEnshaking(10,2.5)
  3774. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3775. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Daisy orange"))
  3776. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Daisy orange"))
  3777. for i = 0, 49 do
  3778. 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("Daisy orange"),0)
  3779. end
  3780. for i = 0, 9 do
  3781. 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("Daisy orange"),0)
  3782. 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("Daisy orange"),0)
  3783. end
  3784. orb.Anchored = true
  3785. orb.Transparency = 1
  3786. wait(8)
  3787. orb:Destroy()
  3788. end
  3789. end)
  3790. end))
  3791. for i = 0, 1, 0.1 do
  3792. swait()
  3793. 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)
  3794. 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)
  3795. 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)
  3796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3798. 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)
  3799. end
  3800. attack = false
  3801. end
  3802.  
  3803. function GlitchedStike()
  3804. attack = true
  3805. for i = 0, 2, 0.1 do
  3806. swait()
  3807. 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)
  3808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3810. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3811. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3812. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3813. end
  3814. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3815. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3816. CameraEnshaking(4,12)
  3817. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3818. if v:FindFirstChild('Head') then
  3819. dmg(v)
  3820. end
  3821. end
  3822. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Black())
  3823. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.White())
  3824. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Black())
  3825. for i = 0, 2, 0.1 do
  3826. swait()
  3827. 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.Black(),0)
  3828. 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.White(),0)
  3829. 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)
  3830. 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)
  3831. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3832. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3833. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3834. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3835. end
  3836. attack = false
  3837. end
  3838.  
  3839. function RobotGroundStrike()
  3840. attack = true
  3841. for i = 0, 2, 0.1 do
  3842. swait()
  3843. 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)
  3844. 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)
  3845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3847. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3848. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3849. end
  3850. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3851. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3852. CameraEnshaking(4,12)
  3853. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3854. if v:FindFirstChild('Head') then
  3855. dmg(v)
  3856. end
  3857. end
  3858. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Red())
  3859. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.Red())
  3860. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Red())
  3861. for i = 0, 2, 0.1 do
  3862. swait()
  3863. 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.Red(),0)
  3864. 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.Red(),0)
  3865. 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)
  3866. 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)
  3867. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3869. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3870. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3871. end
  3872. attack = false
  3873. end
  3874.  
  3875. function ChaosGroundStrike()
  3876. attack = true
  3877. for i = 0, 2, 0.1 do
  3878. swait()
  3879. 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)
  3880. 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)
  3881. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3882. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3883. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3884. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3885. end
  3886. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3887. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3888. CameraEnshaking(4,12)
  3889. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3890. if v:FindFirstChild('Head') then
  3891. dmg(v)
  3892. end
  3893. end
  3894. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3895. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3896. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3897. for i = 0, 2, 0.1 do
  3898. swait()
  3899. 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)
  3900. 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)
  3901. 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)
  3902. 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)
  3903. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3904. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3905. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3906. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3907. end
  3908. attack = false
  3909. end
  3910.  
  3911. function RobotGroundStrike()
  3912. attack = true
  3913. for i = 0, 2, 0.1 do
  3914. swait()
  3915. 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)
  3916. 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)
  3917. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3918. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3919. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3920. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3921. end
  3922. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3923. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3924. CameraEnshaking(4,12)
  3925. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3926. if v:FindFirstChild('Head') then
  3927. dmg(v)
  3928. end
  3929. end
  3930. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Red())
  3931. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.Red())
  3932. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Red())
  3933. for i = 0, 2, 0.1 do
  3934. swait()
  3935. 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.Red(),0)
  3936. 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.Red(),0)
  3937. 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)
  3938. 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)
  3939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3942. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3943. end
  3944. attack = false
  3945. end
  3946.  
  3947. function Starfall()
  3948. attack = true
  3949. hum.WalkSpeed = 0
  3950. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3951. for i = 0, 5, 0.1 do
  3952. swait()
  3953. 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)
  3954. 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)
  3955. 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)
  3956. 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)
  3957. 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)
  3958. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3959. 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)
  3960. 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)
  3961. end
  3962. local Overed = false
  3963. CameraEnshaking(2,20)
  3964. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3965. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3966. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3967. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3968. local orb = Instance.new("Part", char)
  3969. orb.Anchored = true
  3970. orb.BrickColor = BrickColor.new("Toothpaste")
  3971. orb.CanCollide = false
  3972. orb.FormFactor = 3
  3973. orb.Name = "Remenant"
  3974. orb.Material = "Neon"
  3975. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3976. orb.Size = Vector3.new(1, 1, 1)
  3977. orb.Transparency = 1
  3978. orb.TopSurface = 0
  3979. orb.BottomSurface = 0
  3980. hum.WalkSpeed = storehumanoidWS
  3981. coroutine.resume(coroutine.create(function()
  3982. for i = 0, 9 do
  3983. swait(10)
  3984. local lb = Instance.new("Part")
  3985. lb.Color = MAINRUINCOLOR.Color
  3986. lb.CanCollide = false
  3987. lb.Material = "Neon"
  3988. lb.Anchored = true
  3989. lb.TopSurface = 0
  3990. lb.BottomSurface = 0
  3991. lb.Transparency = 0
  3992. lb.Size = vt(1,1,1)
  3993. 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)))
  3994. lb.Anchored = false
  3995. lb.Parent = char
  3996. local thingery = Instance.new("SpecialMesh",lb)
  3997. thingery.MeshType = "Sphere"
  3998. thingery.Scale = vt(20,20,20)
  3999. game:GetService("Debris"):AddItem(lb, 10)
  4000. local bv = Instance.new("BodyVelocity")
  4001. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4002. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4003. bv.Parent = lb
  4004. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4005. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4006. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4007. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4008. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4009. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4010. local hitted = false
  4011. coroutine.resume(coroutine.create(function()
  4012. while true do
  4013. swait(1)
  4014. if lb.Parent ~= nil and hitted == false then
  4015. 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)
  4016. elseif lb.Parent == nil then
  4017. break
  4018. end
  4019. end
  4020. end))
  4021.  
  4022. game:GetService("Debris"):AddItem(a, 0.1)
  4023.  
  4024. coroutine.resume(coroutine.create(function()
  4025. swait(1)
  4026. lb.Touched:connect(function(hit)
  4027. if hitted == false then
  4028. hitted = true
  4029. lb.Transparency = 1
  4030. lb.Anchored = true
  4031. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4032. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4033. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4034. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4035. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4036. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4037. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4038. CameraEnshaking(1,5)
  4039. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4040. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4041. for i = 0, 9 do
  4042. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  4043. end
  4044. for i = 0, 49 do
  4045. swait()
  4046. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4047. 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)
  4048. end
  4049. end
  4050. end)
  4051. end))
  4052. end
  4053. Overed = true
  4054. orb:Destroy()
  4055. end))
  4056.  
  4057. attack = false
  4058. end
  4059.  
  4060. function StarfallEX()
  4061. attack = true
  4062. hum.WalkSpeed = 0
  4063. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4064. for i = 0, 5, 0.1 do
  4065. swait()
  4066. 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)
  4067. 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)
  4068. 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)
  4069. 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)
  4070. 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)
  4071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4072. 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)
  4073. 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)
  4074. end
  4075. local Overed = false
  4076. CameraEnshaking(2,20)
  4077. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4078. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4079. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4080. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4081. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4082. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4083. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4084. local orb = Instance.new("Part", char)
  4085. orb.Anchored = true
  4086. orb.BrickColor = BrickColor.new("Toothpaste")
  4087. orb.CanCollide = false
  4088. orb.FormFactor = 3
  4089. orb.Name = "Remenant"
  4090. orb.Material = "Neon"
  4091. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4092. orb.Size = Vector3.new(1, 1, 1)
  4093. orb.Transparency = 1
  4094. orb.TopSurface = 0
  4095. orb.BottomSurface = 0
  4096. hum.WalkSpeed = storehumanoidWS
  4097. coroutine.resume(coroutine.create(function()
  4098. for i = 0, 9 do
  4099. swait(10)
  4100. local lb = Instance.new("Part")
  4101. lb.Color = MAINRUINCOLOR.Color
  4102. lb.CanCollide = false
  4103. lb.Material = "Neon"
  4104. lb.Anchored = true
  4105. lb.TopSurface = 0
  4106. lb.BottomSurface = 0
  4107. lb.Transparency = 0
  4108. lb.Size = vt(1,1,1)
  4109. 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)))
  4110. lb.Anchored = false
  4111. lb.Parent = char
  4112. local thingery = Instance.new("SpecialMesh",lb)
  4113. thingery.MeshType = "Sphere"
  4114. thingery.Scale = vt(20,20,20)
  4115. game:GetService("Debris"):AddItem(lb, 10)
  4116. local bv = Instance.new("BodyVelocity")
  4117. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4118. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4119. bv.Parent = lb
  4120. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4121. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4122. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4123. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4124. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4125. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4126. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4127. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4128. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4129. local hitted = false
  4130. coroutine.resume(coroutine.create(function()
  4131. while true do
  4132. swait(1)
  4133. if lb.Parent ~= nil and hitted == false then
  4134. 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)
  4135. 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)
  4136. elseif lb.Parent == nil then
  4137. break
  4138. end
  4139. end
  4140. end))
  4141.  
  4142. game:GetService("Debris"):AddItem(a, 0.1)
  4143.  
  4144. coroutine.resume(coroutine.create(function()
  4145. swait(1)
  4146. lb.Touched:connect(function(hit)
  4147. if hitted == false then
  4148. hitted = true
  4149. lb.Transparency = 1
  4150. lb.Anchored = true
  4151. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4152. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4153. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4154. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4155. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4156. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4157. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4158. CameraEnshaking(10,5)
  4159. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4160. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4161. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4162. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4163. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4164. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4165. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4166. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4167. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4168. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4169. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4170. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4171. for i = 0, 9 do
  4172. 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)
  4173. 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)
  4174. 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)
  4175. 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)
  4176. 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)
  4177. 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)
  4178. end
  4179. for i = 0, 49 do
  4180. swait()
  4181. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  4182. 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)
  4183. 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)
  4184. 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)
  4185. end
  4186. end
  4187. end)
  4188. end))
  4189. end
  4190. Overed = true
  4191. orb:Destroy()
  4192. end))
  4193.  
  4194. attack = false
  4195. end
  4196.  
  4197. function StarDivision()
  4198. attack = true
  4199. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4200. for i = 0, 2, 0.1 do
  4201. swait()
  4202. 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)
  4203. 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)
  4204. 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)
  4205. 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)
  4206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  4207. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4208. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  4209. end
  4210. local orb = Instance.new("Part", char)
  4211. orb.BrickColor = MAINRUINCOLOR
  4212. orb.CanCollide = false
  4213. orb.FormFactor = 3
  4214. orb.Name = "Ring"
  4215. orb.Material = "Neon"
  4216. orb.Size = Vector3.new(1, 1, 1)
  4217. orb.Transparency = 0
  4218. orb.TopSurface = 0
  4219. orb.BottomSurface = 0
  4220. local orbm = Instance.new("SpecialMesh", orb)
  4221. orbm.MeshType = "Sphere"
  4222. orbm.Name = "SizeMesh"
  4223. orbm.Scale = vt(2,2,2)
  4224. local a = Instance.new("Part",workspace)
  4225. a.Name = "Direction"
  4226. a.Anchored = true
  4227. a.BrickColor = bc("Bright red")
  4228. a.Material = "Neon"
  4229. a.Transparency = 1
  4230. a.CanCollide = false
  4231. local ray = Ray.new(
  4232. sorb.CFrame.p, -- origin
  4233. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4234. )
  4235. local ignore = sorb
  4236. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4237. a.BottomSurface = 10
  4238. a.TopSurface = 10
  4239. local distance = (sorb.CFrame.p - position).magnitude
  4240. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4241. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4242. orb.CFrame = a.CFrame
  4243. a:Destroy()
  4244. local bv = Instance.new("BodyVelocity")
  4245. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4246. bv.velocity = orb.CFrame.lookVector*100
  4247. bv.Parent = orb
  4248. local hitted = false
  4249. game:GetService("Debris"):AddItem(orb, 10)
  4250. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4251. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4252. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4253. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4254. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4255. coroutine.resume(coroutine.create(function()
  4256. while true do
  4257. swait(1)
  4258. if orb.Parent ~= nil and hitted == false then
  4259. 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)
  4260. elseif orb.Parent == nil then
  4261. break
  4262. end
  4263. end
  4264. end))
  4265. coroutine.resume(coroutine.create(function()
  4266. swait(1)
  4267. orb.Touched:connect(function(hit)
  4268. if hitted == false then
  4269. hitted = true
  4270. game:GetService("Debris"):AddItem(orb, 5)
  4271. orb.Transparency = 1
  4272. orb.Anchored = true
  4273. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4274. elocacenter.Anchored = true
  4275. elocacenter.CFrame = orb.CFrame
  4276. elocacenter.Orientation = vt(0,0,0)
  4277. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4278. eloca1.Anchored = true
  4279. eloca1.CFrame = elocacenter.CFrame
  4280. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4281. eloca2.Anchored = true
  4282. eloca2.CFrame = elocacenter.CFrame
  4283. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4284. eloca3.Anchored = true
  4285. eloca3.CFrame = elocacenter.CFrame
  4286. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4287. eloca4.Anchored = true
  4288. eloca4.CFrame = elocacenter.CFrame
  4289. local lookavec = 0
  4290. local speeds = 0
  4291. CameraEnshaking(1,1)
  4292. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4293. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4294. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4295. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4296. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4297. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4298. for i = 0, 99 do
  4299. swait()
  4300. lookavec = lookavec + 1
  4301. speeds = speeds + 0.1
  4302. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4303. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4304. 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)
  4305.  
  4306. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4307. 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)
  4308.  
  4309. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4310. 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)
  4311.  
  4312. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4313. 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)
  4314. end
  4315.  
  4316. for i = 0, 149 do
  4317. swait()
  4318. speeds = speeds + 0.1
  4319. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4320. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4321. 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)
  4322.  
  4323. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4324. 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)
  4325.  
  4326. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4327. 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)
  4328.  
  4329. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4330. 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)
  4331. end
  4332. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4333. if v:FindFirstChild('Head') then
  4334. dmg(v)
  4335. end
  4336. end
  4337. CameraEnshaking(7,30)
  4338. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4339. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4340. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4341. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4342. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4343. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4344. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4345. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4346. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4347. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4348. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4349. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4350. for i = 0, 24 do
  4351. 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)
  4352. 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)
  4353. 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)
  4354. 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)
  4355. end
  4356. coroutine.resume(coroutine.create(function()
  4357. for i = 0, 499 do
  4358. swait(1)
  4359. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4360. 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)
  4361. end
  4362. elocacenter:Destroy()
  4363. eloca1:Destroy()
  4364. eloca2:Destroy()
  4365. eloca3:Destroy()
  4366. eloca4:Destroy()
  4367. end))
  4368. end
  4369. end)
  4370. end))
  4371. attack = false
  4372. end
  4373.  
  4374.  
  4375. function UniversalCollapse()
  4376. attack = true
  4377. local speedearn = 0
  4378. hum.WalkSpeed = 0
  4379. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4380. for i = 0, 10, 0.1 do
  4381. swait()
  4382. speedearn = speedearn + 0.1
  4383. 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)
  4384. 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)
  4385. 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)
  4386. 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)
  4387. 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)
  4388. 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)
  4389. 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)
  4390. 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)
  4391. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4392. 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)
  4393. 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)
  4394. end
  4395. CameraEnshaking(5,45)
  4396. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4397. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4398. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4399. if v:FindFirstChild('Head') then
  4400. dmg(v)
  4401. end
  4402. end
  4403. hum.WalkSpeed = storehumanoidWS
  4404. attack = false
  4405. end
  4406. function ChaosBegone()
  4407. attack = true
  4408. local speedearn = 0
  4409. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4410. for i = 0, 10, 0.1 do
  4411. swait()
  4412. speedearn = speedearn + 0.1
  4413. 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)
  4414. 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)
  4415. 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)
  4416. 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)
  4417. 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)
  4418. 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)
  4419. 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)
  4420. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4422. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4423. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4424. end
  4425. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4426. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4427. CameraEnshaking(5,25)
  4428. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4429. if v:FindFirstChild('Head') then
  4430. dmg(v)
  4431. end
  4432. end
  4433. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4434. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4435. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4436. for i = 0, 3, 0.1 do
  4437. swait()
  4438. 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)
  4439. 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)
  4440. 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)
  4441. 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)
  4442. 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)
  4443. 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)
  4444. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4447. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4448. end
  4449. attack = false
  4450. end
  4451.  
  4452. function CyborgBegone()
  4453. attack = true
  4454. local speedearn = 0
  4455. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4456. for i = 0, 10, 0.1 do
  4457. swait()
  4458. speedearn = speedearn + 0.1
  4459. 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)
  4460. 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)
  4461. 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)
  4462. 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)
  4463. 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)
  4464. 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)
  4465. 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)
  4466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4470. end
  4471. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4472. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4473. CameraEnshaking(5,25)
  4474. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4475. if v:FindFirstChild('Head') then
  4476. dmg(v)
  4477. end
  4478. end
  4479. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.Red())
  4480. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.Red())
  4481. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.Red())
  4482. for i = 0, 3, 0.1 do
  4483. swait()
  4484. 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.Red(),0)
  4485. 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.Red(),0)
  4486. 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.Red(),0)
  4487. 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.Red(),0)
  4488. 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)
  4489. 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)
  4490. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4492. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4493. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4494. end
  4495. attack = false
  4496. end
  4497.  
  4498. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4499. local orb = Instance.new("Part", char)
  4500. orb.Anchored = true
  4501. orb.BrickColor = color
  4502. orb.CanCollide = false
  4503. orb.FormFactor = 3
  4504. orb.Name = "Ring"
  4505. orb.Material = "Neon"
  4506. orb.Size = Vector3.new(1, 1, 1)
  4507. orb.Transparency = 0
  4508. orb.TopSurface = 0
  4509. orb.BottomSurface = 0
  4510. local orbm = Instance.new("SpecialMesh", orb)
  4511. orbm.MeshType = "Sphere"
  4512. orb.CFrame = positted
  4513. orbm.Name = "SizeMesh"
  4514. orbm.Scale = vt(1,1,1)
  4515. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4516. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4517. --[[for i = 0, 2 do
  4518. 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)
  4519. end]]--
  4520. coroutine.resume(coroutine.create(function()
  4521. wait(timer)
  4522. CameraEnshaking(3,ShakePower)
  4523. orb.Transparency = 1
  4524. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4525. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4526. --[[for i = 0, 4 do
  4527. 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)
  4528. end]]--
  4529. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4530. wait(3)
  4531. orb:Destroy()
  4532. end))
  4533. end
  4534.  
  4535. function orb_spawn(positted,timer)
  4536. local randomcol = math.random(1,2)
  4537. local orb = Instance.new("Part", char)
  4538. orb.Anchored = true
  4539. if randomcol == 1 then
  4540. orb.BrickColor = BrickColor.new("White")
  4541. elseif randomcol == 2 then
  4542. orb.BrickColor = BrickColor.new("Really black")
  4543. end
  4544. orb.CanCollide = false
  4545. orb.FormFactor = 3
  4546. orb.Name = "Ring"
  4547. orb.Material = "Neon"
  4548. orb.Size = Vector3.new(1, 1, 1)
  4549. orb.Transparency = 0
  4550. orb.TopSurface = 0
  4551. orb.BottomSurface = 0
  4552. local orbm = Instance.new("SpecialMesh", orb)
  4553. orbm.MeshType = "Sphere"
  4554. orb.CFrame = positted
  4555. orbm.Name = "SizeMesh"
  4556. orbm.Scale = vt(1,1,1)
  4557. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4558. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4559. for i = 0, 2 do
  4560. 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)
  4561. end
  4562. coroutine.resume(coroutine.create(function()
  4563. wait(timer)
  4564. CameraEnshaking(3,2)
  4565. orb.Transparency = 1
  4566. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4567. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4568. for i = 0, 4 do
  4569. 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)
  4570. end
  4571. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4572. wait(3)
  4573. orb:Destroy()
  4574. end))
  4575. end
  4576.  
  4577. function SandBombs()
  4578. attack = true
  4579. local rot = 0
  4580. local randomrotations = math.random(1,2)
  4581. local lookv = 2.5
  4582. local power = 5
  4583. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Daisy orange"))
  4584. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Daisy orange"))
  4585. for i = 0, 9 do
  4586. 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("Daisy orange"),0)
  4587. end
  4588. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4589. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4590. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4591. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4592. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4593. local hite = Instance.new("Part", char)
  4594. hite.Anchored = true
  4595. hite.CanCollide = false
  4596. hite.FormFactor = 3
  4597. hite.Name = "Ring"
  4598. hite.Material = "Sand"
  4599. hite.Size = Vector3.new(1, 1, 1)
  4600. hite.Transparency = 1
  4601. hite.TopSurface = 0
  4602. hite.BottomSurface = 0
  4603. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4604. local rem = Instance.new("Part", char)
  4605. rem.Anchored = true
  4606. rem.CanCollide = false
  4607. rem.FormFactor = 3
  4608. rem.Name = "Ring"
  4609. rem.Material = "Sand"
  4610. rem.Size = Vector3.new(1, 1, 1)
  4611. rem.Transparency = 1
  4612. rem.TopSurface = 0
  4613. rem.BottomSurface = 0
  4614. rem.CFrame = hite.CFrame
  4615. local rem2 = rem:Clone()
  4616. rem2.Parent = char
  4617. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4618. local rem3 = rem:Clone()
  4619. rem3.Parent = char
  4620. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4621. local rem4 = rem:Clone()
  4622. rem4.Parent = char
  4623. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4624. hite:Destroy()
  4625. coroutine.resume(coroutine.create(function()
  4626. for i = 0, 24 do
  4627. swait(1)
  4628. if randomrotations == 1 then
  4629. rot = rot + 1
  4630. elseif randomrotations == 2 then
  4631. rot = rot - 1
  4632. end
  4633. power = power + 0.5
  4634. lookv = lookv + 7.5
  4635. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4636. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4637. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4638. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4639. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5)
  4640. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5)
  4641. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5)
  4642. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5)
  4643. end
  4644. end))
  4645. attack = false
  4646. end
  4647.  
  4648. function scattercorrupt()
  4649. attack = true
  4650. local rot = 0
  4651. local randomrotations = math.random(1,2)
  4652. local lookv = 2.5
  4653. local power = 5
  4654. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4655. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4656. for i = 0, 9 do
  4657. 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)
  4658. end
  4659. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4660. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4661. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4662. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4663. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4664. local hite = Instance.new("Part", char)
  4665. hite.Anchored = true
  4666. hite.CanCollide = false
  4667. hite.FormFactor = 3
  4668. hite.Name = "Ring"
  4669. hite.Material = "Neon"
  4670. hite.Size = Vector3.new(1, 1, 1)
  4671. hite.Transparency = 1
  4672. hite.TopSurface = 0
  4673. hite.BottomSurface = 0
  4674. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4675. local rem = Instance.new("Part", char)
  4676. rem.Anchored = true
  4677. rem.CanCollide = false
  4678. rem.FormFactor = 3
  4679. rem.Name = "Ring"
  4680. rem.Material = "Neon"
  4681. rem.Size = Vector3.new(1, 1, 1)
  4682. rem.Transparency = 1
  4683. rem.TopSurface = 0
  4684. rem.BottomSurface = 0
  4685. rem.CFrame = hite.CFrame
  4686. local rem2 = rem:Clone()
  4687. rem2.Parent = char
  4688. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4689. local rem3 = rem:Clone()
  4690. rem3.Parent = char
  4691. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4692. local rem4 = rem:Clone()
  4693. rem4.Parent = char
  4694. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4695. hite:Destroy()
  4696. coroutine.resume(coroutine.create(function()
  4697. for i = 0, 24 do
  4698. swait(1)
  4699. if randomrotations == 1 then
  4700. rot = rot + 1
  4701. elseif randomrotations == 2 then
  4702. rot = rot - 1
  4703. end
  4704. power = power + 0.5
  4705. lookv = lookv + 7.5
  4706. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4707. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4708. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4709. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4710. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4711. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4712. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4713. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4714. end
  4715. end))
  4716. attack = false
  4717. end
  4718. function yinyangi()
  4719. attack = true
  4720. for i = 0, 2, 0.1 do
  4721. swait()
  4722. 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)
  4723. 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)
  4724. 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)
  4725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4726. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4727. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4728. end
  4729. local bv = Instance.new("BodyVelocity")
  4730. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4731. bv.velocity = root.CFrame.lookVector*175
  4732. bv.Parent = root
  4733. for Rotations = 0, 9 do
  4734. for i = 0, 1, 0.5 do
  4735. swait()
  4736. bv.velocity = root.CFrame.lookVector*175
  4737. 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)
  4738. 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)
  4739. 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)
  4740. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4741. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4742. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4743. end
  4744. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4745. for i = 0, 1, 0.5 do
  4746. swait()
  4747. bv.velocity = root.CFrame.lookVector*175
  4748. 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)
  4749. 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)
  4750. 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)
  4751. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4752. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4753. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4754. end
  4755. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4756. for i = 0, 1, 0.5 do
  4757. swait()
  4758. bv.velocity = root.CFrame.lookVector*175
  4759. 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)
  4760. 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)
  4761. 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)
  4762. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4763. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4764. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4765. end
  4766. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4767. for i = 0, 1, 0.5 do
  4768. swait()
  4769. bv.velocity = root.CFrame.lookVector*175
  4770. 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)
  4771. 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)
  4772. 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)
  4773. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4774. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4775. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4776. end
  4777. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4778. end
  4779. bv:Destroy()
  4780. attack = false
  4781. end
  4782. function RobotLazer()
  4783. attack = true
  4784.  
  4785. local rngb = Instance.new("Part", char)
  4786. rngb.Anchored = true
  4787. rngb.BrickColor = origcolor
  4788. rngb.CanCollide = false
  4789. rngb.FormFactor = 3
  4790. rngb.Name = "Ring"
  4791. rngb.Material = "Neon"
  4792. rngb.Size = Vector3.new(1, 0.05, 1)
  4793. rngb.Transparency = 1
  4794. rngb.TopSurface = 0
  4795. rngb.BottomSurface = 0
  4796. local rngmb = Instance.new("SpecialMesh", rngb)
  4797. rngmb.MeshType = "Brick"
  4798. rngmb.Name = "SizeMesh"
  4799. rngmb.Scale = vt(0,1,0)
  4800.  
  4801. local orb = rngb:Clone()
  4802. orb.Parent = char
  4803. orb.Transparency = 0
  4804. orb.BrickColor = BrickColor.new("Maroon")
  4805. orb.Size = vt(1,1,1)
  4806. local orbmish = orb.SizeMesh
  4807. orbmish.Scale = vt(0,0,0)
  4808. orbmish.MeshType = "Sphere"
  4809.  
  4810. local orbe = rngb:Clone()
  4811. orbe.Parent = char
  4812. orbe.Transparency = 0.5
  4813. orbe.BrickColor = BrickColor.new("Maroon")
  4814. orbe.Size = vt(1,1,1)
  4815. local orbmish2 = orbe.SizeMesh
  4816. orbmish2.Scale = vt(0,0,0)
  4817. orbmish2.MeshType = "Sphere"
  4818. orbe.Color = Color3.new(r/255,g/255,b/255)
  4819.  
  4820. rngb:Destroy()
  4821. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4822. local scaled = 1
  4823. for i = 0,5,0.1 do
  4824. swait()
  4825. scaled = scaled - 0.02
  4826. if rainbowmode == true then
  4827. orbe.Color = Color3.new(r/255,g/255,b/255)
  4828. end
  4829. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4830. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4831. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4832. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4833. 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)
  4834. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4835. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4836. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4837. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4838. 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)
  4839. 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)
  4840. RootPart.CFrame = FaceMouse()[1]
  4841. end]]--
  4842. for i = 0,5,0.1 do
  4843. swait()
  4844. if rainbowmode == true then
  4845. orbe.Color = Color3.new(r/255,g/255,b/255)
  4846. end
  4847. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4848. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4849. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4850. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4851. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4852. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4853. 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)
  4854. 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)
  4855. RootPart.CFrame = FaceMouse()[1]
  4856. end
  4857. orbe.Transparency = 1
  4858. orb.Transparency = 1
  4859. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4860. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4861. local a = Instance.new("Part",Character)
  4862. a.Name = "Direction"
  4863. a.Anchored = true
  4864. a.BrickColor = bc("Maroon")
  4865. a.Material = "Neon"
  4866. a.Transparency = 0
  4867. a.Shape = "Cylinder"
  4868. a.CanCollide = false
  4869. local a2 = Instance.new("Part",Character)
  4870. a2.Name = "Direction"
  4871. a2.Anchored = true
  4872. a2.BrickColor = bc("Maroon")
  4873. a2.Color = Color3.new(r/255,g/255,b/255)
  4874. a2.Material = "Neon"
  4875. a2.Transparency = 0.5
  4876. a2.Shape = "Cylinder"
  4877. a2.CanCollide = false
  4878. local ba = Instance.new("Part",Character)
  4879. ba.Name = "HitDirect"
  4880. ba.Anchored = true
  4881. ba.BrickColor = bc("Maroon")
  4882. ba.Material = "Neon"
  4883. ba.Transparency = 1
  4884. ba.CanCollide = false
  4885. local ray = Ray.new(
  4886. orb.CFrame.p, -- origin
  4887. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4888. )
  4889. local ignore = Character
  4890. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4891. a.BottomSurface = 10
  4892. a.TopSurface = 10
  4893. a2.BottomSurface = 10
  4894. a2.TopSurface = 10
  4895. local distance = (orb.CFrame.p - position).magnitude
  4896. a.Size = Vector3.new(distance, 1, 1)
  4897. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4898. a2.Size = Vector3.new(distance, 1, 1)
  4899. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4900. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4901. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4902. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4903. game:GetService("Debris"):AddItem(a, 20)
  4904. game:GetService("Debris"):AddItem(a2, 20)
  4905. game:GetService("Debris"):AddItem(ba, 20)
  4906. local msh = Instance.new("SpecialMesh",a)
  4907. msh.MeshType = "Cylinder"
  4908. msh.Scale = vt(1,5*5,5*5)
  4909. local msh2 = Instance.new("SpecialMesh",a2)
  4910. msh2.MeshType = "Cylinder"
  4911. msh2.Scale = vt(1,6*5,6*5)
  4912.  
  4913. for i = 0,10,0.1 do
  4914. swait()
  4915. CameraEnshaking(1,5)
  4916. a2.Color = Color3.new(r/255,g/255,b/255)
  4917. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4918. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4919. ray = Ray.new(
  4920. orb.CFrame.p, -- origin
  4921. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4922. )
  4923. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4924. distance = (orb.CFrame.p - position).magnitude
  4925. if typrot == 1 then
  4926. rotation = rotation + 2.5
  4927. elseif typrot == 2 then
  4928. rotation = rotation - 2.5
  4929. end
  4930. RootPart.CFrame = FaceMouse()[1]
  4931. a.Size = Vector3.new(distance, 1, 1)
  4932. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4933. a2.Size = Vector3.new(distance, 1, 1)
  4934. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4935. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4936. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4937. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4938. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4939. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4940. 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)
  4941. 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)
  4942. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4943. end
  4944. a:Destroy()
  4945. a2:Destroy()
  4946. ba:Destroy()
  4947. orb:Destroy()
  4948. orbe:Destroy()
  4949. attack = false
  4950. end
  4951. function Wip()
  4952. attack = true
  4953.  
  4954. local rngb = Instance.new("Part", char)
  4955. rngb.Anchored = true
  4956. rngb.BrickColor = origcolor
  4957. rngb.CanCollide = false
  4958. rngb.FormFactor = 3
  4959. rngb.Name = "Ring"
  4960. rngb.Material = "Neon"
  4961. rngb.Size = Vector3.new(1, 0.05, 1)
  4962. rngb.Transparency = 1
  4963. rngb.TopSurface = 0
  4964. rngb.BottomSurface = 0
  4965. local rngmb = Instance.new("SpecialMesh", rngb)
  4966. rngmb.MeshType = "Brick"
  4967. rngmb.Name = "SizeMesh"
  4968. rngmb.Scale = vt(0,1,0)
  4969.  
  4970. local orb = rngb:Clone()
  4971. orb.Parent = char
  4972. orb.Transparency = 0
  4973. orb.BrickColor = BrickColor.new("White")
  4974. orb.Size = vt(1,1,1)
  4975. local orbmish = orb.SizeMesh
  4976. orbmish.Scale = vt(0,0,0)
  4977. orbmish.MeshType = "Sphere"
  4978.  
  4979. local orbe = rngb:Clone()
  4980. orbe.Parent = char
  4981. orbe.Transparency = 0.5
  4982. orbe.BrickColor = BrickColor.new("New Yeller")
  4983. orbe.Size = vt(1,1,1)
  4984. local orbmish2 = orbe.SizeMesh
  4985. orbmish2.Scale = vt(0,0,0)
  4986. orbmish2.MeshType = "Sphere"
  4987. orbe.Color = Color3.new(r/255,g/255,b/255)
  4988.  
  4989. rngb:Destroy()
  4990. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4991. local scaled = 1
  4992. for i = 0,5,0.1 do
  4993. swait()
  4994. scaled = scaled - 0.02
  4995. if rainbowmode == true then
  4996. orbe.Color = Color3.new(r/255,g/255,b/255)
  4997. end
  4998. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4999. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  5000. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5001. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5002. 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)
  5003. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5004. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5005. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5006. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5007. 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)
  5008. 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)
  5009. RootPart.CFrame = FaceMouse()[1]
  5010. end]]--
  5011. for i = 0,5,0.1 do
  5012. swait()
  5013. if rainbowmode == true then
  5014. orbe.Color = Color3.new(r/255,g/255,b/255)
  5015. end
  5016. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5017. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5018. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5019. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5022. 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)
  5023. 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)
  5024. RootPart.CFrame = FaceMouse()[1]
  5025. end
  5026. orbe.Transparency = 1
  5027. orb.Transparency = 1
  5028. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5029. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5030. local a = Instance.new("Part",Character)
  5031. a.Name = "Direction"
  5032. a.Anchored = true
  5033. a.BrickColor = bc("White")
  5034. a.Material = "Neon"
  5035. a.Transparency = 0
  5036. a.Shape = "Cylinder"
  5037. a.CanCollide = false
  5038. local a2 = Instance.new("Part",Character)
  5039. a2.Name = "Direction"
  5040. a2.Anchored = true
  5041. a2.BrickColor = bc("New Yeller")
  5042. a2.Color = Color3.new(r/255,g/255,b/255)
  5043. a2.Material = "Neon"
  5044. a2.Transparency = 0.5
  5045. a2.Shape = "Cylinder"
  5046. a2.CanCollide = false
  5047. local ba = Instance.new("Part",Character)
  5048. ba.Name = "HitDirect"
  5049. ba.Anchored = true
  5050. ba.BrickColor = bc("Cool yellow")
  5051. ba.Material = "Neon"
  5052. ba.Transparency = 1
  5053. ba.CanCollide = false
  5054. local ray = Ray.new(
  5055. orb.CFrame.p, -- origin
  5056. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5057. )
  5058. local ignore = Character
  5059. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5060. a.BottomSurface = 10
  5061. a.TopSurface = 10
  5062. a2.BottomSurface = 10
  5063. a2.TopSurface = 10
  5064. local distance = (orb.CFrame.p - position).magnitude
  5065. a.Size = Vector3.new(distance, 1, 1)
  5066. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5067. a2.Size = Vector3.new(distance, 1, 1)
  5068. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5069. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5070. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5071. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5072. game:GetService("Debris"):AddItem(a, 20)
  5073. game:GetService("Debris"):AddItem(a2, 20)
  5074. game:GetService("Debris"):AddItem(ba, 20)
  5075. local msh = Instance.new("SpecialMesh",a)
  5076. msh.MeshType = "Cylinder"
  5077. msh.Scale = vt(1,5*5,5*5)
  5078. local msh2 = Instance.new("SpecialMesh",a2)
  5079. msh2.MeshType = "Cylinder"
  5080. msh2.Scale = vt(1,6*5,6*5)
  5081.  
  5082. for i = 0,10,0.1 do
  5083. swait()
  5084. CameraEnshaking(1,5)
  5085. a2.Color = Color3.new(r/255,g/255,b/255)
  5086. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5087. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5088. ray = Ray.new(
  5089. orb.CFrame.p, -- origin
  5090. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5091. )
  5092. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5093. distance = (orb.CFrame.p - position).magnitude
  5094. if typrot == 1 then
  5095. rotation = rotation + 2.5
  5096. elseif typrot == 2 then
  5097. rotation = rotation - 2.5
  5098. end
  5099. RootPart.CFrame = FaceMouse()[1]
  5100. a.Size = Vector3.new(distance, 1, 1)
  5101. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5102. a2.Size = Vector3.new(distance, 1, 1)
  5103. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5104. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5105. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5106. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5107. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  5108. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  5109. 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)
  5110. 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)
  5111. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  5112. end
  5113. a:Destroy()
  5114. a2:Destroy()
  5115. ba:Destroy()
  5116. orb:Destroy()
  5117. orbe:Destroy()
  5118. attack = false
  5119. end
  5120. function CyborgShield()
  5121. attack = true
  5122. shielding = true
  5123. for i = 0, 2, 0.1 do
  5124. swait()
  5125. 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)
  5126. 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)
  5127. 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)
  5128. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5129. 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)
  5130. 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)
  5131. end
  5132. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  5133. stash = Instance.new("Model",workspace)
  5134. local barrier = Instance.new("Part",stash)
  5135. barrier.Anchored = true
  5136. barrier.CanCollide = false
  5137. barrier.Size = Vector3.new(20,20,20)
  5138. barrier.CFrame = root.CFrame
  5139. barrier.Transparency = 0.6
  5140. barrier.BrickColor = MAINRUINCOLOR
  5141. barrier.Material = Enum.Material.Neon
  5142. barrier.Shape = Enum.PartType.Ball
  5143. barrier.CFrame = root.CFrame
  5144. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5145. Torso.Anchored = true
  5146. for i=1,50 do
  5147. local p = Instance.new("Part",stash)
  5148. p.Anchored = true
  5149. p.Transparency = 1
  5150. p.Size = Vector3.new(11,11,11)
  5151. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  5152. end
  5153. repeat
  5154. swait(5)
  5155. 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)
  5156. until shielding == false
  5157. stash:Remove()
  5158. Torso.Anchored = false
  5159. shielding = false
  5160. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5161. attack = false
  5162. end
  5163. function HolyBarrier()
  5164. attack = true
  5165. shielding = true
  5166. for i = 0, 2, 0.1 do
  5167. swait()
  5168. 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)
  5169. 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)
  5170. 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)
  5171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  5172. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  5173. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  5174. end
  5175. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  5176. stash = Instance.new("Model",workspace)
  5177. local barrier = Instance.new("Part",stash)
  5178. barrier.Anchored = true
  5179. barrier.CanCollide = false
  5180. barrier.Size = Vector3.new(20,20,20)
  5181. barrier.CFrame = root.CFrame
  5182. barrier.Transparency = 0.6
  5183. barrier.BrickColor = MAINRUINCOLOR
  5184. barrier.Material = Enum.Material.Neon
  5185. barrier.Shape = Enum.PartType.Ball
  5186. barrier.CFrame = root.CFrame
  5187. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5188. Torso.Anchored = true
  5189. for i=1,50 do
  5190. local p = Instance.new("Part",stash)
  5191. p.Anchored = true
  5192. p.Transparency = 1
  5193. p.Size = Vector3.new(11,11,11)
  5194. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  5195. end
  5196. repeat
  5197. swait(5)
  5198. 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)
  5199. until shielding == false
  5200. stash:Remove()
  5201. Torso.Anchored = false
  5202. shielding = false
  5203. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  5204. attack = false
  5205. end
  5206.  
  5207. function HolyBeam()
  5208. attack = true
  5209. judgement = true
  5210. hum.WalkSpeed = 0
  5211. local p = Instance.new("Part",root)
  5212. p.Anchored = true
  5213. p.CanCollide = false
  5214. p.BrickColor = MAINRUINCOLOR
  5215. p.Material = Enum.Material.Neon
  5216. p.Size = Vector3.new(4,4,4)
  5217. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5218. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5219. local m = Instance.new("SpecialMesh",p)
  5220. m.MeshType = "Cylinder"
  5221. m.Scale = Vector3.new(2000,2,2)
  5222. local targ = Instance.new("Part",root)
  5223. targ.Anchored = true
  5224. targ.Transparency = 1
  5225. targ.CanCollide = false
  5226. targ.Size = Vector3.new(1,1,1)
  5227. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5228. local s = Instance.new("Sound",targ)
  5229. s.SoundId = "https://roblox.com/asset/?id=115327352"
  5230. s.Looped = true
  5231. s.Pitch = 1.2
  5232. s.Volume = 3
  5233. spawn(function()
  5234. swait(15)
  5235. s:Play()
  5236. end)
  5237. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  5238. for i = 1,15 do
  5239. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5240. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5241. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5242. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5243. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5244. 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)
  5245. 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)
  5246. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  5247. 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)
  5248. m.Scale = m.Scale+Vector3.new(0,1,1)
  5249. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5250. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5251. swait()
  5252. end
  5253. 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)
  5254. repeat
  5255. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5256. 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)
  5257. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  5258. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5259. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5260. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  5261. swait()
  5262. until judgement == false
  5263. for i =1,15 do
  5264. m.Scale = m.Scale-Vector3.new(5,5,5)
  5265. p.Transparency = i / 15
  5266. s.Pitch = s.Pitch - 0.4
  5267. swait()
  5268. end
  5269. p:Destroy()
  5270. hum.WalkSpeed = storehumanoidWS
  5271. attack = false
  5272. end
  5273.  
  5274. function Judgement()
  5275. attack = true
  5276. judgement = true
  5277. hum.WalkSpeed = 0
  5278. local p = Instance.new("Part",root)
  5279. p.Anchored = true
  5280. p.CanCollide = false
  5281. p.BrickColor = MAINRUINCOLOR
  5282. p.Material = Enum.Material.Neon
  5283. p.Size = Vector3.new(1,1,1)
  5284. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5285. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5286. local m = Instance.new("SpecialMesh",p)
  5287. m.MeshType = "Cylinder"
  5288. m.Scale = Vector3.new(2000,2,2)
  5289. local targ = Instance.new("Part",root)
  5290. targ.Anchored = true
  5291. targ.Transparency = 1
  5292. targ.CanCollide = false
  5293. targ.Size = Vector3.new(1,1,1)
  5294. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5295. local s = Instance.new("Sound",targ)
  5296. s.SoundId = "https://roblox.com/asset/?id=115327352"
  5297. s.Looped = true
  5298. s.Pitch = 1.2
  5299. s.Volume = 3
  5300. spawn(function()
  5301. swait(15)
  5302. s:Play()
  5303. end)
  5304. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  5305. for i = 1,15 do
  5306. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5307. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5308. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5309. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5310. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5311. 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)
  5312. 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)
  5313. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  5314. 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)
  5315. m.Scale = m.Scale+Vector3.new(0,1,1)
  5316. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5317. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5318. swait()
  5319. end
  5320. 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)
  5321. repeat
  5322. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  5323. 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)
  5324. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  5325. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  5326. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  5327. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  5328. swait()
  5329. until judgement == false
  5330. for i =1,15 do
  5331. m.Scale = m.Scale-Vector3.new(1,1,1)
  5332. p.Transparency = i / 15
  5333. s.Pitch = s.Pitch - 0.4
  5334. swait()
  5335. end
  5336. p:Destroy()
  5337. hum.WalkSpeed = storehumanoidWS
  5338. attack = false
  5339. end
  5340.  
  5341. function HalfGodStirke()
  5342. attack = true
  5343.  
  5344. local rngb = Instance.new("Part", char)
  5345. rngb.Anchored = true
  5346. rngb.BrickColor = origcolor
  5347. rngb.CanCollide = false
  5348. rngb.FormFactor = 3
  5349. rngb.Name = "Ring"
  5350. rngb.Material = "Neon"
  5351. rngb.Size = Vector3.new(0.5, 0.05, 0.5)
  5352. rngb.Transparency = 1
  5353. rngb.TopSurface = 0
  5354. rngb.BottomSurface = 0
  5355. local rngmb = Instance.new("SpecialMesh", rngb)
  5356. rngmb.MeshType = "Brick"
  5357. rngmb.Name = "SizeMesh"
  5358. rngmb.Scale = vt(0,1,0)
  5359.  
  5360. local orb = rngb:Clone()
  5361. orb.Parent = char
  5362. orb.Transparency = 0
  5363. orb.BrickColor = BrickColor.new("White")
  5364. orb.Size = vt(1,1,1)
  5365. local orbmish = orb.SizeMesh
  5366. orbmish.Scale = vt(0,0,0)
  5367. orbmish.MeshType = "Sphere"
  5368.  
  5369. local orbe = rngb:Clone()
  5370. orbe.Parent = char
  5371. orbe.Transparency = 0.5
  5372. orbe.BrickColor = BrickColor.new("New Yeller")
  5373. orbe.Size = vt(1,1,1)
  5374. local orbmish2 = orbe.SizeMesh
  5375. orbmish2.Scale = vt(0,0,0)
  5376. orbmish2.MeshType = "Sphere"
  5377. orbe.Color = Color3.new(r/255,g/255,b/255)
  5378.  
  5379. rngb:Destroy()
  5380. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  5381. local scaled = 1
  5382. for i = 0,5,0.1 do
  5383. swait()
  5384. scaled = scaled - 0.02
  5385. if rainbowmode == true then
  5386. orbe.Color = Color3.new(r/255,g/255,b/255)
  5387. end
  5388. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  5389. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  5390. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5391. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5392. 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)
  5393. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5394. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5395. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5396. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5397. 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)
  5398. 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)
  5399. RootPart.CFrame = FaceMouse()[1]
  5400. end]]--
  5401. for i = 0,5,0.1 do
  5402. swait()
  5403. if rainbowmode == true then
  5404. orbe.Color = Color3.new(r/255,g/255,b/255)
  5405. end
  5406. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5407. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5408. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5409. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5410. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5411. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5412. 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)
  5413. 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)
  5414. RootPart.CFrame = FaceMouse()[1]
  5415. end
  5416. orbe.Transparency = 1
  5417. orb.Transparency = 1
  5418. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5419. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5420. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5421. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5422.  
  5423. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5424. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  5425. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5426. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  5427. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  5428. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5429. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  5430. local xd= Instance.new("Sound",char)
  5431. xd.SoundId = "rbxassetid://445796828"
  5432. xd.Pitch = 0.75
  5433. xd.Looped = true
  5434. xd.Volume = 1.25
  5435. xd:Play()
  5436. local a = Instance.new("Part",Character)
  5437. a.Name = "Direction"
  5438. a.Anchored = true
  5439. a.BrickColor = bc("Alder")
  5440. a.Color = MAINRUINCOLOR.Color
  5441. a.Material = "Neon"
  5442. a.Transparency = 0.5
  5443. a.Shape = "Cylinder"
  5444. a.CanCollide = false
  5445. local a2 = Instance.new("Part",Character)
  5446. a2.Name = "Direction"
  5447. a2.Anchored = true
  5448. a2.BrickColor = bc("New Yeller")
  5449. a2.Color = MAINRUINCOLOR.Color
  5450. a2.Material = "Neon"
  5451. a2.Transparency = 0.5
  5452. a2.Shape = "Cylinder"
  5453. a2.CanCollide = false
  5454. local ba = Instance.new("Part",Character)
  5455. ba.Name = "HitDirect"
  5456. ba.Anchored = true
  5457. ba.BrickColor = bc("Cool yellow")
  5458. ba.Material = "Neon"
  5459. ba.Transparency = 1
  5460. ba.CanCollide = false
  5461. local ray = Ray.new(
  5462. orb.CFrame.p, -- origin
  5463. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5464. )
  5465. local ignore = Character
  5466. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5467. a.BottomSurface = 10
  5468. a.TopSurface = 10
  5469. a2.BottomSurface = 10
  5470. a2.TopSurface = 10
  5471. local distance = (orb.CFrame.p - position).magnitude
  5472. a.Size = Vector3.new(distance, 0.5, 0.5)
  5473. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5474. a2.Size = Vector3.new(distance, 0.5, 0.5)
  5475. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5476. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5477. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5478. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5479. game:GetService("Debris"):AddItem(a, 60)
  5480. game:GetService("Debris"):AddItem(a2, 60)
  5481. game:GetService("Debris"):AddItem(ba, 60)
  5482. local outerscale = 0
  5483. local msh = Instance.new("SpecialMesh",a)
  5484. msh.MeshType = "Cylinder"
  5485. msh.Scale = vt(1,0,0)
  5486. local msh2 = Instance.new("SpecialMesh",a2)
  5487. msh2.MeshType = "Cylinder"
  5488. msh2.Scale = vt(1,0,0)
  5489. for i = 0,2,0.1 do
  5490. swait()
  5491. CameraEnshaking(1,1)
  5492. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  5493. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  5494. outerscale = outerscale - 0.015
  5495. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5496. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5497. ray = Ray.new(
  5498. orb.CFrame.p, -- origin
  5499. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5500. )
  5501. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5502. distance = (orb.CFrame.p - position).magnitude
  5503. if typrot == 1 then
  5504. rotation = rotation + 2.5
  5505. elseif typrot == 2 then
  5506. rotation = rotation - 2.5
  5507. end
  5508. RootPart.CFrame = FaceMouse()[1]
  5509. a.Size = Vector3.new(distance, 0.5, 0.5)
  5510. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5511. a2.Size = Vector3.new(distance, 0.5, 0.5)
  5512. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5513. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5514. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5515. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5516. 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)
  5517. 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)
  5518. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5519. end
  5520. for z = 0, 2 do
  5521. for i = 0,4,0.1 do
  5522. swait()
  5523. CameraEnshaking(1,1)
  5524. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5525. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5526. outerscale = outerscale + 0.015
  5527. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5528. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5529. ray = Ray.new(
  5530. orb.CFrame.p, -- origin
  5531. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5532. )
  5533. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5534. distance = (orb.CFrame.p - position).magnitude
  5535. if typrot == 1 then
  5536. rotation = rotation + 2.5
  5537. elseif typrot == 2 then
  5538. rotation = rotation - 2.5
  5539. end
  5540. RootPart.CFrame = FaceMouse()[1]
  5541. a.Size = Vector3.new(distance, 0.5, 0.5)
  5542. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5543. a2.Size = Vector3.new(distance, 0.5, 0.5)
  5544. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5545. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5546. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5547. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5548. 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)
  5549. 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)
  5550. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5551. end
  5552. for i = 0,4,0.1 do
  5553. swait()
  5554. CameraEnshaking(1,1)
  5555. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5556. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5557. outerscale = outerscale - 0.015
  5558. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5559. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5560. ray = Ray.new(
  5561. orb.CFrame.p, -- origin
  5562. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5563. )
  5564. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5565. distance = (orb.CFrame.p - position).magnitude
  5566. if typrot == 1 then
  5567. rotation = rotation + 2.5
  5568. elseif typrot == 2 then
  5569. rotation = rotation - 2.5
  5570. end
  5571. RootPart.CFrame = FaceMouse()[1]
  5572. a.Size = Vector3.new(distance, 0.5, 0.5)
  5573. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5574. a2.Size = Vector3.new(distance, 0.5, 0.5)
  5575. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5576. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5577. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5578. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5579. 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)
  5580. 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)
  5581. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5582. end
  5583. end
  5584. for i = 0,4,0.1 do
  5585. swait()
  5586. CameraEnshaking(1,1)
  5587. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5588. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5589. xd.Volume = xd.Volume - 0.025
  5590. a.Transparency = a.Transparency + 0.025
  5591. a2.Transparency = a2.Transparency + 0.025
  5592. outerscale = outerscale - 0.015
  5593. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5594. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5595. ray = Ray.new(
  5596. orb.CFrame.p, -- origin
  5597. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5598. )
  5599. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5600. distance = (orb.CFrame.p - position).magnitude
  5601. if typrot == 1 then
  5602. rotation = rotation + 2.5
  5603. elseif typrot == 2 then
  5604. rotation = rotation - 2.5
  5605. end
  5606. RootPart.CFrame = FaceMouse()[1]
  5607. a.Size = Vector3.new(distance, 0.5, 0.5)
  5608. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5609. a2.Size = Vector3.new(distance, 0.5, 0.5)
  5610. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5611. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5612. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5613. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5614. 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)
  5615. 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)
  5616. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5617. end
  5618. xd:Destroy()
  5619. a:Destroy()
  5620. a2:Destroy()
  5621. ba:Destroy()
  5622. orb:Destroy()
  5623. orbe:Destroy()
  5624. attack = false
  5625. end
  5626.  
  5627. function UniversalSpark()
  5628. attack = true
  5629.  
  5630. local rngb = Instance.new("Part", char)
  5631. rngb.Anchored = true
  5632. rngb.BrickColor = origcolor
  5633. rngb.CanCollide = false
  5634. rngb.FormFactor = 3
  5635. rngb.Name = "Ring"
  5636. rngb.Material = "Neon"
  5637. rngb.Size = Vector3.new(1, 0.05, 1)
  5638. rngb.Transparency = 1
  5639. rngb.TopSurface = 0
  5640. rngb.BottomSurface = 0
  5641. local rngmb = Instance.new("SpecialMesh", rngb)
  5642. rngmb.MeshType = "Brick"
  5643. rngmb.Name = "SizeMesh"
  5644. rngmb.Scale = vt(0,1,0)
  5645.  
  5646. local orb = rngb:Clone()
  5647. orb.Parent = char
  5648. orb.Transparency = 0
  5649. orb.BrickColor = BrickColor.new("White")
  5650. orb.Size = vt(1,1,1)
  5651. local orbmish = orb.SizeMesh
  5652. orbmish.Scale = vt(0,0,0)
  5653. orbmish.MeshType = "Sphere"
  5654.  
  5655. local orbe = rngb:Clone()
  5656. orbe.Parent = char
  5657. orbe.Transparency = 0.5
  5658. orbe.BrickColor = BrickColor.new("New Yeller")
  5659. orbe.Size = vt(1,1,1)
  5660. local orbmish2 = orbe.SizeMesh
  5661. orbmish2.Scale = vt(0,0,0)
  5662. orbmish2.MeshType = "Sphere"
  5663. orbe.Color = Color3.new(r/255,g/255,b/255)
  5664.  
  5665. rngb:Destroy()
  5666. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  5667. local scaled = 1
  5668. for i = 0,5,0.1 do
  5669. swait()
  5670. scaled = scaled - 0.02
  5671. if rainbowmode == true then
  5672. orbe.Color = Color3.new(r/255,g/255,b/255)
  5673. end
  5674. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  5675. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  5676. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5677. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5678. 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)
  5679. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5680. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5681. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5682. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5683. 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)
  5684. 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)
  5685. RootPart.CFrame = FaceMouse()[1]
  5686. end]]--
  5687. for i = 0,5,0.1 do
  5688. swait()
  5689. if rainbowmode == true then
  5690. orbe.Color = Color3.new(r/255,g/255,b/255)
  5691. end
  5692. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5693. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  5694. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  5695. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  5696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5698. 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)
  5699. 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)
  5700. RootPart.CFrame = FaceMouse()[1]
  5701. end
  5702. orbe.Transparency = 1
  5703. orb.Transparency = 1
  5704. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  5705. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5706. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5707. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5708.  
  5709. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  5710. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  5711. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5712. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  5713. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  5714. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5715. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  5716. local xd= Instance.new("Sound",char)
  5717. xd.SoundId = "rbxassetid://445796828"
  5718. xd.Pitch = 0.75
  5719. xd.Looped = true
  5720. xd.Volume = 1.25
  5721. xd:Play()
  5722. local a = Instance.new("Part",Character)
  5723. a.Name = "Direction"
  5724. a.Anchored = true
  5725. a.BrickColor = bc("Alder")
  5726. a.Color = MAINRUINCOLOR.Color
  5727. a.Material = "Neon"
  5728. a.Transparency = 0.5
  5729. a.Shape = "Cylinder"
  5730. a.CanCollide = false
  5731. local a2 = Instance.new("Part",Character)
  5732. a2.Name = "Direction"
  5733. a2.Anchored = true
  5734. a2.BrickColor = bc("New Yeller")
  5735. a2.Color = MAINRUINCOLOR.Color
  5736. a2.Material = "Neon"
  5737. a2.Transparency = 0.5
  5738. a2.Shape = "Cylinder"
  5739. a2.CanCollide = false
  5740. local ba = Instance.new("Part",Character)
  5741. ba.Name = "HitDirect"
  5742. ba.Anchored = true
  5743. ba.BrickColor = bc("Cool yellow")
  5744. ba.Material = "Neon"
  5745. ba.Transparency = 1
  5746. ba.CanCollide = false
  5747. local ray = Ray.new(
  5748. orb.CFrame.p, -- origin
  5749. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5750. )
  5751. local ignore = Character
  5752. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5753. a.BottomSurface = 10
  5754. a.TopSurface = 10
  5755. a2.BottomSurface = 10
  5756. a2.TopSurface = 10
  5757. local distance = (orb.CFrame.p - position).magnitude
  5758. a.Size = Vector3.new(distance, 1, 1)
  5759. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5760. a2.Size = Vector3.new(distance, 1, 1)
  5761. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5762. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5763. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5764. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5765. game:GetService("Debris"):AddItem(a, 60)
  5766. game:GetService("Debris"):AddItem(a2, 60)
  5767. game:GetService("Debris"):AddItem(ba, 60)
  5768. local outerscale = 0
  5769. local msh = Instance.new("SpecialMesh",a)
  5770. msh.MeshType = "Cylinder"
  5771. msh.Scale = vt(1,0,0)
  5772. local msh2 = Instance.new("SpecialMesh",a2)
  5773. msh2.MeshType = "Cylinder"
  5774. msh2.Scale = vt(1,0,0)
  5775. for i = 0,2,0.1 do
  5776. swait()
  5777. CameraEnshaking(1,1)
  5778. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  5779. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  5780. outerscale = outerscale - 0.015
  5781. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5782. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5783. ray = Ray.new(
  5784. orb.CFrame.p, -- origin
  5785. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5786. )
  5787. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5788. distance = (orb.CFrame.p - position).magnitude
  5789. if typrot == 1 then
  5790. rotation = rotation + 2.5
  5791. elseif typrot == 2 then
  5792. rotation = rotation - 2.5
  5793. end
  5794. RootPart.CFrame = FaceMouse()[1]
  5795. a.Size = Vector3.new(distance, 1, 1)
  5796. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5797. a2.Size = Vector3.new(distance, 1, 1)
  5798. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5799. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5800. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5801. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5802. 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)
  5803. 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)
  5804. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5805. end
  5806. for z = 0, 2 do
  5807. for i = 0,4,0.1 do
  5808. swait()
  5809. CameraEnshaking(1,1)
  5810. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5811. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5812. outerscale = outerscale + 0.015
  5813. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5814. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5815. ray = Ray.new(
  5816. orb.CFrame.p, -- origin
  5817. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5818. )
  5819. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5820. distance = (orb.CFrame.p - position).magnitude
  5821. if typrot == 1 then
  5822. rotation = rotation + 2.5
  5823. elseif typrot == 2 then
  5824. rotation = rotation - 2.5
  5825. end
  5826. RootPart.CFrame = FaceMouse()[1]
  5827. a.Size = Vector3.new(distance, 1, 1)
  5828. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5829. a2.Size = Vector3.new(distance, 1, 1)
  5830. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5831. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5832. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5833. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5834. 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)
  5835. 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)
  5836. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5837. end
  5838. for i = 0,4,0.1 do
  5839. swait()
  5840. CameraEnshaking(1,1)
  5841. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5842. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5843. outerscale = outerscale - 0.015
  5844. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5845. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5846. ray = Ray.new(
  5847. orb.CFrame.p, -- origin
  5848. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5849. )
  5850. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5851. distance = (orb.CFrame.p - position).magnitude
  5852. if typrot == 1 then
  5853. rotation = rotation + 2.5
  5854. elseif typrot == 2 then
  5855. rotation = rotation - 2.5
  5856. end
  5857. RootPart.CFrame = FaceMouse()[1]
  5858. a.Size = Vector3.new(distance, 1, 1)
  5859. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5860. a2.Size = Vector3.new(distance, 1, 1)
  5861. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5862. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5863. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5864. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5865. 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)
  5866. 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)
  5867. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5868. end
  5869. end
  5870. for i = 0,4,0.1 do
  5871. swait()
  5872. CameraEnshaking(1,1)
  5873. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  5874. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  5875. xd.Volume = xd.Volume - 0.025
  5876. a.Transparency = a.Transparency + 0.025
  5877. a2.Transparency = a2.Transparency + 0.025
  5878. outerscale = outerscale - 0.015
  5879. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5880. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  5881. ray = Ray.new(
  5882. orb.CFrame.p, -- origin
  5883. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  5884. )
  5885. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5886. distance = (orb.CFrame.p - position).magnitude
  5887. if typrot == 1 then
  5888. rotation = rotation + 2.5
  5889. elseif typrot == 2 then
  5890. rotation = rotation - 2.5
  5891. end
  5892. RootPart.CFrame = FaceMouse()[1]
  5893. a.Size = Vector3.new(distance, 1, 1)
  5894. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5895. a2.Size = Vector3.new(distance, 1, 1)
  5896. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5897. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5898. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  5899. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  5900. 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)
  5901. 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)
  5902. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  5903. end
  5904. xd:Destroy()
  5905. a:Destroy()
  5906. a2:Destroy()
  5907. ba:Destroy()
  5908. orb:Destroy()
  5909. orbe:Destroy()
  5910. attack = false
  5911. end
  5912.  
  5913.  
  5914. function resetmode()
  5915. rainbowmode = false
  5916. chaosmode = false
  5917. tl1.Enabled = false
  5918. tl2.Enabled = false
  5919. tl3.Enabled = false
  5920. ModeOfGlitch = 1
  5921. storehumanoidWS = 16
  5922. coroutine.resume(coroutine.create(function()
  5923. attack = true
  5924. hum.WalkSpeed = 0
  5925. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  5926. for i = 0,4,0.1 do
  5927. swait()
  5928. 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)
  5929. 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)
  5930. 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)
  5931. 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)
  5932. 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)
  5933. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  5934. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  5935. end
  5936. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  5937. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  5938. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  5939. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  5940. RecolorTextAndRename("Baby Blue Chaos God",Color3.new(0,0,0),Color3.new(0,32,96))
  5941. CameraEnshaking(5,2.5)
  5942. MAINRUINCOLOR = BrickColor.new("Navy blue")
  5943. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5944. for i = 0, 49 do
  5945. 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)
  5946. end
  5947. for i = 0,3,0.1 do
  5948. 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)
  5949. end
  5950. for i, v in pairs(mw2:GetChildren()) do
  5951. if v:IsA("Part") then
  5952. v.BrickColor = BrickColor.new("Navy blue")
  5953. v.Material = "Neon"
  5954. end
  5955. end
  5956. for i, v in pairs(mw1:GetChildren()) do
  5957. if v:IsA("Part") then
  5958. v.Transparency = 1
  5959. v.BrickColor = BrickColor.new("Navy blue")
  5960. v.Material = "Neon"
  5961. end
  5962. end
  5963. for i, v in pairs(m:GetChildren()) do
  5964. if v:IsA("Part") then
  5965. v.BrickColor = BrickColor.new("Really black")
  5966. v.Material = "Glass"
  5967. end
  5968. end
  5969. for i, v in pairs(m2:GetChildren()) do
  5970. if v:IsA("Part") then
  5971. v.BrickColor = BrickColor.new("Crimson")
  5972. v.Material = "Granite"
  5973. end
  5974. end
  5975. for i, v in pairs(m3:GetChildren()) do
  5976. if v:IsA("Part") then
  5977. v.BrickColor = BrickColor.new("Navy blue")
  5978. v.Material = "Neon"
  5979. end
  5980. end
  5981. for i, v in pairs(extrawingmod1:GetChildren()) do
  5982. if v:IsA("Part") then
  5983. v.Transparency = 1
  5984. v.BrickColor = BrickColor.new("White")
  5985. v.Material = "Neon"
  5986. end
  5987. end
  5988. for i, v in pairs(extrawingmod2:GetChildren()) do
  5989. if v:IsA("Part") then
  5990. v.Transparency = 1
  5991. v.BrickColor = BrickColor.new("White")
  5992. v.Material = "Neon"
  5993. end
  5994. end
  5995. for i = 0,2,0.1 do
  5996. swait()
  5997. 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)
  5998. 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)
  5999. 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)
  6000. 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)
  6001. 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)
  6002. 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)
  6003. end
  6004. hum.WalkSpeed = storehumanoidWS
  6005. attack = false
  6006. end))
  6007. newTheme("rbxassetid://614032233",48.6,1,0.3)
  6008. end
  6009.  
  6010. function attackone()
  6011. attack = true
  6012. for i = 0,1,0.1 do
  6013. swait()
  6014. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  6015. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  6016. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  6017. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  6018. 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)
  6019. 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)
  6020. end
  6021. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  6022.  
  6023. local hitb = Instance.new("Part", char)
  6024. hitb.Anchored = true
  6025. hitb.CanCollide = false
  6026. hitb.FormFactor = 3
  6027. hitb.Name = "Ring"
  6028. hitb.Material = "Neon"
  6029. hitb.Size = Vector3.new(1, 1, 1)
  6030. hitb.Transparency = 1
  6031. hitb.TopSurface = 0
  6032. hitb.BottomSurface = 0
  6033. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  6034. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  6035. hitb:Destroy()
  6036. for i = 0,1,0.1 do
  6037. swait()
  6038. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  6039. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  6040. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  6041. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  6042. 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)
  6043. 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)
  6044. end
  6045.  
  6046. attack = false
  6047. end
  6048.  
  6049. function attacktwo()
  6050. attack = true
  6051. for i = 0,1,0.1 do
  6052. swait()
  6053. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  6054. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  6055. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  6056. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  6057. 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)
  6058. 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)
  6059. end
  6060. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  6061. local hitb = Instance.new("Part", char)
  6062. hitb.Anchored = true
  6063. hitb.CanCollide = false
  6064. hitb.FormFactor = 3
  6065. hitb.Name = "Ring"
  6066. hitb.Material = "Neon"
  6067. hitb.Size = Vector3.new(1, 1, 1)
  6068. hitb.Transparency = 1
  6069. hitb.TopSurface = 0
  6070. hitb.BottomSurface = 0
  6071. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  6072. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  6073. hitb:Destroy()
  6074. for i = 0,1,0.1 do
  6075. swait()
  6076. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  6077. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  6078. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  6079. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  6080. 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)
  6081. 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)
  6082. end
  6083. attack = false
  6084. end
  6085.  
  6086. function attackthree()
  6087. attack = true
  6088. for i = 0,1,0.1 do
  6089. swait()
  6090. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  6091. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  6092. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  6093. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  6094. 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)
  6095. 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)
  6096. end
  6097. local distlook = 5
  6098. for i = 0, 4 do
  6099. swait(2)
  6100. CameraEnshaking(2,3)
  6101. local hite = Instance.new("Part", char)
  6102. hite.Anchored = true
  6103. hite.CanCollide = false
  6104. hite.FormFactor = 3
  6105. hite.Name = "Ring"
  6106. hite.Material = "Neon"
  6107. hite.Size = Vector3.new(1, 1, 1)
  6108. hite.Transparency = 1
  6109. hite.TopSurface = 0
  6110. hite.BottomSurface = 0
  6111. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  6112. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  6113. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  6114. MagniDamage(hite, 10, 15,35, 0, "Normal")
  6115. for i = 0, 2 do
  6116. 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)
  6117. 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)
  6118. 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)
  6119. end
  6120. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  6121. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  6122. game:GetService("Debris"):AddItem(hite, 5)
  6123. distlook = distlook + 10
  6124. end
  6125. attack = false
  6126. end
  6127.  
  6128. local ActiveGia = false
  6129. function THEHELLITSTHATBIG()
  6130. ActiveGia = true
  6131. attack = true
  6132. hum.WalkSpeed = 0
  6133. for i = 0,2,0.1 do
  6134. swait()
  6135. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  6136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  6137. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  6138. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  6139. 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)
  6140. 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)
  6141. end
  6142. for i = 0,1,0.1 do
  6143. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6144. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6145. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6146. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6147. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6148. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6149. end
  6150. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  6151. secrleg.Transparency = 0.5
  6152. seclleg.Transparency = 0.5
  6153. secrarm.Transparency = 0.5
  6154. seclarm.Transparency = 0.5
  6155. seched.Transparency = 0.5
  6156. sectors.Transparency = 0.5
  6157. for i = 0,25,0.1 do
  6158. swait()
  6159. 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)
  6160. 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)
  6161. 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)
  6162. 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)
  6163. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6164. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6165. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  6166. end
  6167. --[[secrleg.Transparency = 1
  6168. seclleg.Transparency = 1
  6169. secrarm.Transparency = 1
  6170. seclarm.Transparency = 1
  6171. seched.Transparency = 1
  6172. sectors.Transparency = 1]]--
  6173. torsweld.Part0 = root
  6174. hum.WalkSpeed = storehumanoidWS
  6175. attack = false
  6176. end
  6177.  
  6178. function removelol()
  6179. ActiveGia = false
  6180. attack = true
  6181. hum.WalkSpeed = 0
  6182. for i = 0,2,0.1 do
  6183. swait()
  6184. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  6185. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  6186. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  6187. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  6188. 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)
  6189. 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)
  6190. end
  6191. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  6192. for i = 0,25,0.1 do
  6193. swait()
  6194. secrleg.Transparency = secrleg.Transparency + 0.00225
  6195. seclleg.Transparency = secrleg.Transparency
  6196. secrarm.Transparency = secrleg.Transparency
  6197. seclarm.Transparency = secrleg.Transparency
  6198. seched.Transparency = secrleg.Transparency
  6199. sectors.Transparency = secrleg.Transparency
  6200. 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)
  6201. 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)
  6202. 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)
  6203. 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)
  6204. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6205. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6206. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  6207. end
  6208. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  6209. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6210. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6211. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6212. secrleg.Transparency = 1
  6213. seclleg.Transparency = 1
  6214. secrarm.Transparency = 1
  6215. seclarm.Transparency = 1
  6216. seched.Transparency = 1
  6217. sectors.Transparency = 1
  6218. torsweld.Part0 = root
  6219. hum.WalkSpeed = storehumanoidWS
  6220. attack = false
  6221. end
  6222.  
  6223. function FinalCalamity()
  6224. end
  6225.  
  6226. local attacktype = 1
  6227. mouse.Button1Down:connect(function()
  6228. if attack == false and attacktype == 1 then
  6229. attacktype = 2
  6230. attackone()
  6231. elseif attack == false and attacktype == 2 then
  6232. attacktype = 3
  6233. attacktwo()
  6234. elseif attack == false and attacktype == 3 then
  6235. attacktype = 1
  6236. attackthree()
  6237. elseif attack == false and attacktype == 4 then
  6238. attacktype = 1
  6239. --attackfour()
  6240. end
  6241. end)
  6242. function GLITCHED()
  6243. storehumanoidWS = 32
  6244. hum.WalkSpeed = 0
  6245. rainbowmode = false
  6246. chaosmode = false
  6247. tl1.Enabled = true
  6248. tl2.Enabled = true
  6249. tl3.Enabled = true
  6250. local lust = ModeOfGlitch == 3
  6251. newTheme("rbxassetid://474074203",0,1,1)
  6252. coroutine.resume(coroutine.create(function()
  6253. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6254. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6255. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6256. attack = true
  6257. hum.WalkSpeed = 0
  6258. RecolorTextAndRename("GLITCHED",Color3.new(0,0,0),Color3.new(1,1,1))
  6259. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  6260. for i = 0,4,0.1 do
  6261. swait()
  6262. 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)
  6263. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  6264. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  6265. 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)),.2)
  6266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  6267. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  6268. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  6269. end
  6270. for i = 0,8,0.1 do
  6271. swait()
  6272. 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)
  6273. 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,.035,MAINRUINCOLOR,0)
  6274. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  6275. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  6276. 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)),.2)
  6277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  6278. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  6279. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  6280. end
  6281.  
  6282. for i = 0,3,0.1 do
  6283. swait()
  6284. 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)
  6285. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  6286. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  6287. 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)),.2)
  6288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  6289. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  6290. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  6291. end
  6292. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  6293. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  6294. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  6295. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  6296. CameraEnshaking(5,2.5)
  6297. MAINRUINCOLOR = BrickColor.new("White")
  6298. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6299. for i = 0, 49 do
  6300. 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)
  6301. end
  6302. for i = 0,3,0.1 do
  6303. 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)
  6304. end
  6305. ModeOfGlitch = 14725836963258741
  6306. for i, v in pairs(mw2:GetChildren()) do
  6307. if v:IsA("Part") then
  6308. v.BrickColor = MAINRUINCOLOR
  6309. v.Material = "Neon"
  6310. end
  6311. end
  6312. for i, v in pairs(mw1:GetChildren()) do
  6313. if v:IsA("Part") then
  6314. v.Transparency = 0
  6315. v.BrickColor = BrickColor.Black()
  6316. v.Material = "Neon"
  6317. end
  6318. end
  6319. for i, v in pairs(m:GetChildren()) do
  6320. if v:IsA("Part") then
  6321. v.BrickColor = BrickColor.new("White")
  6322. v.Material = "Neon"
  6323. end
  6324. end
  6325. for i, v in pairs(m2:GetChildren()) do
  6326. if v:IsA("Part") then
  6327. v.BrickColor = BrickColor.Black()
  6328. v.Material = "Neon"
  6329. end
  6330. end
  6331. for i, v in pairs(m3:GetChildren()) do
  6332. if v:IsA("Part") then
  6333. v.BrickColor = BrickColor.new("White")
  6334. v.Material = "Neon"
  6335. end
  6336. end
  6337. for i, v in pairs(extrawingmod1:GetChildren()) do
  6338. if v:IsA("Part") then
  6339. v.Transparency = 0
  6340. v.BrickColor = BrickColor.Black()
  6341. v.Material = "Neon"
  6342. end
  6343. end
  6344. for i, v in pairs(extrawingmod2:GetChildren()) do
  6345. if v:IsA("Part") then
  6346. v.Transparency = 0
  6347. v.BrickColor = BrickColor.new("White")
  6348. v.Material = "Neon"
  6349. end
  6350. end
  6351. for i = 0,2,0.1 do
  6352. swait()
  6353. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  6354. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  6355. 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)),.2)
  6356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 10 * math.cos(sine / 0.2))),.2)
  6357. 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2)
  6358. 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2)
  6359. end
  6360. hum.WalkSpeed = storehumanoidWS
  6361. attack = false
  6362. end))
  6363. end
  6364.  
  6365. function PurityAlive()
  6366. attack = true
  6367. hum.WalkSpeed = 0
  6368. storehumanoidWS = 75
  6369. hum.JumpPower = 0
  6370. newThemeCust("rbxassetid://138166791",0,1,1)
  6371. kan.TimePosition = 0
  6372. ModeOfGlitch = 9512357895123578
  6373. repeat swait() until kan.IsLoaded
  6374. for i = 0, 14, .1 do
  6375. swait()
  6376. 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)
  6377. 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)
  6378. 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)
  6379. 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)
  6380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6381. 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)
  6382. 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)
  6383. end
  6384. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  6385. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  6386. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  6387. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  6388. pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end)
  6389. pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end)
  6390. RecolorTextAndRename("The Greatest Pure",Color3.new(1,1,1),Color3.new(0,1,1))
  6391. CameraEnshaking(5,2.5)
  6392. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6393. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6394. tl1.Enabled = true
  6395. tl2.Enabled = true
  6396. tl3.Enabled = true
  6397. for i = 0, 49 do
  6398. 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)
  6399. end
  6400. for i = 0,3,0.1 do
  6401. 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)
  6402. end
  6403. for i, v in pairs(mw2:GetChildren()) do
  6404. if v:IsA("Part") then
  6405. v.BrickColor = BrickColor.new("Toothpaste")
  6406. v.Material = "Glass"
  6407. end
  6408. end
  6409. for i, v in pairs(mw1:GetChildren()) do
  6410. if v:IsA("Part") then
  6411. v.Transparency = 0
  6412. v.BrickColor = BrickColor.new("Pastel light blue")
  6413. v.Material = "Glass"
  6414. end
  6415. end
  6416. for i, v in pairs(m:GetChildren()) do
  6417. if v:IsA("Part") then
  6418. v.BrickColor = BrickColor.new("White")
  6419. v.Material = "Glass"
  6420. end
  6421. end
  6422. for i, v in pairs(m2:GetChildren()) do
  6423. if v:IsA("Part") then
  6424. v.BrickColor = BrickColor.new("Toothpaste")
  6425. v.Material = "Granite"
  6426. end
  6427. end
  6428. for i, v in pairs(m3:GetChildren()) do
  6429. if v:IsA("Part") then
  6430. v.BrickColor = BrickColor.new("White")
  6431. v.Material = "Glass"
  6432. end
  6433. end
  6434. for i, v in pairs(extrawingmod1:GetChildren()) do
  6435. if v:IsA("Part") then
  6436. v.Transparency = 0
  6437. v.BrickColor = BrickColor.new("White")
  6438. v.Material = "Glass"
  6439. end
  6440. end
  6441. for i, v in pairs(extrawingmod2:GetChildren()) do
  6442. if v:IsA("Part") then
  6443. v.Transparency = 0
  6444. v.BrickColor = BrickColor.new("Pastel light blue")
  6445. v.Material = "Glass"
  6446. end
  6447. end
  6448. for i = 0,2,0.1 do
  6449. swait()
  6450. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  6451. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  6452. 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)),.2)
  6453. 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))),.2)
  6454. 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))),.2)
  6455. 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))),.2)
  6456. end
  6457. hum.JumpPower = 50
  6458. hum.WalkSpeed = storehumanoidWS
  6459. attack = false
  6460. end
  6461.  
  6462. mouse.KeyDown:connect(function(k)
  6463. if k == "5" and attack == false and ModeOfGlitch ~= 11 then
  6464. ModeOfGlitch = 11
  6465. storehumanoidWS = 100
  6466. hum.WalkSpeed = 100
  6467. rainbowmode = false
  6468. chaosmode = false
  6469. tl1.Enabled = false
  6470. tl2.Enabled = false
  6471. tl3.Enabled = false
  6472. RecolorTextAndRename("Half God",Color3.new(0,0,0),Color3.new(61,21,133))
  6473. newTheme("rbxassetid://213219807",0,1,1)
  6474. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  6475. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6476. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6477. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6478. for i, v in pairs(mw2:GetChildren()) do
  6479. if v:IsA("Part") then
  6480. v.BrickColor = MAINRUINCOLOR
  6481. v.Material = "Neon"
  6482. end
  6483. end
  6484. for i, v in pairs(m:GetChildren()) do
  6485. if v:IsA("Part") then
  6486. v.Color = Color3.new(61,21,133)
  6487. v.Material = "Neon"
  6488. end
  6489. end
  6490. for i, v in pairs(m3:GetChildren()) do
  6491. if v:IsA("Part") then
  6492. v.Color = Color3.new(61,21,133)
  6493. v.Material = "Neon"
  6494. end
  6495. end
  6496. for i, v in pairs(extrawingmod2:GetChildren()) do
  6497. if v:IsA("Part") then
  6498. v.Transparency = 0.75
  6499. v.Color = Color3.new(61,21,133)
  6500. v.Material = "Neon"
  6501. end
  6502. end
  6503. elseif k == "5" and attack == false and ModeOfGlitch == 11 then
  6504. resetmode()
  6505. end
  6506. end)
  6507.  
  6508. mouse.KeyDown:connect(function(k)
  6509. if k == "g" and attack == false and ModeOfGlitch ~= 8 then
  6510. ModeOfGlitch = 8
  6511. storehumanoidWS = 16
  6512. hum.WalkSpeed = 16
  6513. rainbowmode = false
  6514. chaosmode = false
  6515. tl1.Enabled = false
  6516. tl2.Enabled = false
  6517. tl3.Enabled = false
  6518. RecolorTextAndRename("Roboter",Color3.new(0,0,0),Color3.new(170,0,0))
  6519. newTheme("rbxassetid://142603362",0,1,0.3)
  6520. MAINRUINCOLOR = BrickColor.new("Maroon")
  6521. for i, v in pairs(mw2:GetChildren()) do
  6522. if v:IsA("Part") then
  6523. v.BrickColor = MAINRUINCOLOR
  6524. v.Material = "DiamondPlate"
  6525. end
  6526. end
  6527. for i, v in pairs(mw1:GetChildren()) do
  6528. if v:IsA("Part") then
  6529. v.Transparency = 1
  6530. v.BrickColor = MAINRUINCOLOR
  6531. v.Material = "DiamondPlate"
  6532. end
  6533. end
  6534. for i, v in pairs(m:GetChildren()) do
  6535. if v:IsA("Part") then
  6536. v.BrickColor = BrickColor.new("Maroon")
  6537. v.Material = "DiamondPlate"
  6538. end
  6539. end
  6540. for i, v in pairs(m2:GetChildren()) do
  6541. if v:IsA("Part") then
  6542. v.BrickColor = BrickColor.new("Maroon")
  6543. v.Material = "DiamondPlate"
  6544. end
  6545. end
  6546. for i, v in pairs(m3:GetChildren()) do
  6547. if v:IsA("Part") then
  6548. v.BrickColor = BrickColor.new("Maroon")
  6549. v.Material = "DiamondPlate"
  6550. end
  6551. end
  6552. for i, v in pairs(extrawingmod1:GetChildren()) do
  6553. if v:IsA("Part") then
  6554. v.Transparency = 1
  6555. v.BrickColor = BrickColor.new("Maroon")
  6556. v.Material = "DiamondPlate"
  6557. end
  6558. end
  6559. for i, v in pairs(extrawingmod2:GetChildren()) do
  6560. if v:IsA("Part") then
  6561. v.Transparency = 1
  6562. v.BrickColor = BrickColor.new("Maroon")
  6563. v.Material = "DiamondPlate"
  6564. end
  6565. end
  6566. elseif k == "g" and attack == false and ModeOfGlitch == 8 then
  6567. resetmode()
  6568. end
  6569. end)
  6570.  
  6571. mouse.KeyDown:connect(function(k)
  6572. if k == "f" and attack == false and ModeOfGlitch ~= 7 then
  6573. ModeOfGlitch = 7
  6574. storehumanoidWS = 16
  6575. hum.WalkSpeed = 16
  6576. rainbowmode = false
  6577. chaosmode = false
  6578. tl1.Enabled = false
  6579. tl2.Enabled = false
  6580. tl3.Enabled = false
  6581. RecolorTextAndRename("Naturality",Color3.new(1,1,1),Color3.new(0,1,0))
  6582. newTheme("rbxassetid://502602668",0,1,0.3)
  6583. MAINRUINCOLOR = BrickColor.new("Lime green")
  6584. for i, v in pairs(mw2:GetChildren()) do
  6585. if v:IsA("Part") then
  6586. v.BrickColor = MAINRUINCOLOR
  6587. v.Material = "Neon"
  6588. end
  6589. end
  6590. for i, v in pairs(mw1:GetChildren()) do
  6591. if v:IsA("Part") then
  6592. v.Transparency = 1
  6593. v.BrickColor = MAINRUINCOLOR
  6594. v.Material = "Neon"
  6595. end
  6596. end
  6597. for i, v in pairs(m:GetChildren()) do
  6598. if v:IsA("Part") then
  6599. v.BrickColor = BrickColor.new("Grime")
  6600. v.Material = "Ice"
  6601. end
  6602. end
  6603. for i, v in pairs(m2:GetChildren()) do
  6604. if v:IsA("Part") then
  6605. v.BrickColor = BrickColor.new("Shamrock")
  6606. v.Material = "Glass"
  6607. end
  6608. end
  6609. for i, v in pairs(m3:GetChildren()) do
  6610. if v:IsA("Part") then
  6611. v.BrickColor = BrickColor.new("Lime green")
  6612. v.Material = "Neon"
  6613. end
  6614. end
  6615. for i, v in pairs(extrawingmod1:GetChildren()) do
  6616. if v:IsA("Part") then
  6617. v.Transparency = 1
  6618. v.BrickColor = BrickColor.new("Grime")
  6619. v.Material = "Neon"
  6620. end
  6621. end
  6622. for i, v in pairs(extrawingmod2:GetChildren()) do
  6623. if v:IsA("Part") then
  6624. v.Transparency = 1
  6625. v.BrickColor = BrickColor.new("Grime")
  6626. v.Material = "Neon"
  6627. end
  6628. end
  6629. elseif k == "f" and attack == false and ModeOfGlitch == 7 then
  6630. resetmode()
  6631. end
  6632. end)
  6633.  
  6634. mouse.KeyDown:connect(function(k)
  6635. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  6636. ModeOfGlitch = 10
  6637. storehumanoidWS = 16
  6638. hum.WalkSpeed = 16
  6639. rainbowmode = false
  6640. chaosmode = false
  6641. tl1.Enabled = false
  6642. tl2.Enabled = false
  6643. tl3.Enabled = false
  6644. RecolorTextAndRename("Sand baby",Color3.new(1,1,1),Color3.new(248,217,109))
  6645. newTheme("rbxassetid://502602668",0,1,0.3)
  6646. MAINRUINCOLOR = BrickColor.new("Daisy orange")
  6647. for i, v in pairs(mw2:GetChildren()) do
  6648. if v:IsA("Part") then
  6649. v.BrickColor = MAINRUINCOLOR
  6650. v.Material = "Sand"
  6651. end
  6652. end
  6653. for i, v in pairs(mw1:GetChildren()) do
  6654. if v:IsA("Part") then
  6655. v.Transparency = 1
  6656. v.BrickColor = MAINRUINCOLOR
  6657. v.Material = "Sand"
  6658. end
  6659. end
  6660. for i, v in pairs(m:GetChildren()) do
  6661. if v:IsA("Part") then
  6662. v.BrickColor = BrickColor.new("Daisy orange")
  6663. v.Material = "Sand"
  6664. end
  6665. end
  6666. for i, v in pairs(m2:GetChildren()) do
  6667. if v:IsA("Part") then
  6668. v.BrickColor = BrickColor.new("Daisy orange")
  6669. v.Material = "Sand"
  6670. end
  6671. end
  6672. for i, v in pairs(m3:GetChildren()) do
  6673. if v:IsA("Part") then
  6674. v.BrickColor = BrickColor.new("Daisy orange")
  6675. v.Material = "Sand"
  6676. end
  6677. end
  6678. for i, v in pairs(extrawingmod1:GetChildren()) do
  6679. if v:IsA("Part") then
  6680. v.Transparency = 1
  6681. v.BrickColor = BrickColor.new("Daisy orange")
  6682. v.Material = "Sand"
  6683. end
  6684. end
  6685. for i, v in pairs(extrawingmod2:GetChildren()) do
  6686. if v:IsA("Part") then
  6687. v.Transparency = 1
  6688. v.BrickColor = BrickColor.new("Daisy orange")
  6689. v.Material = "Sand"
  6690. end
  6691. end
  6692. elseif k == "h" and attack == false and ModeOfGlitch == 10 then
  6693. resetmode()
  6694. end
  6695. end)
  6696.  
  6697. mouse.KeyDown:connect(function(k)
  6698. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  6699. ModeOfGlitch = 2
  6700. storehumanoidWS = 16
  6701. hum.WalkSpeed = 16
  6702. rainbowmode = false
  6703. chaosmode = false
  6704. tl1.Enabled = false
  6705. tl2.Enabled = false
  6706. tl3.Enabled = false
  6707. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  6708. newTheme("rbxassetid://1539245059",0,1,0.3)
  6709. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6710. for i, v in pairs(mw2:GetChildren()) do
  6711. if v:IsA("Part") then
  6712. v.BrickColor = MAINRUINCOLOR
  6713. v.Material = "Neon"
  6714. end
  6715. end
  6716. for i, v in pairs(mw1:GetChildren()) do
  6717. if v:IsA("Part") then
  6718. v.Transparency = 1
  6719. v.BrickColor = MAINRUINCOLOR
  6720. v.Material = "Neon"
  6721. end
  6722. end
  6723. for i, v in pairs(m:GetChildren()) do
  6724. if v:IsA("Part") then
  6725. v.BrickColor = BrickColor.new("White")
  6726. v.Material = "Ice"
  6727. end
  6728. end
  6729. for i, v in pairs(m2:GetChildren()) do
  6730. if v:IsA("Part") then
  6731. v.BrickColor = BrickColor.new("Pastel light blue")
  6732. v.Material = "Glass"
  6733. end
  6734. end
  6735. for i, v in pairs(m3:GetChildren()) do
  6736. if v:IsA("Part") then
  6737. v.BrickColor = BrickColor.new("Toothpaste")
  6738. v.Material = "Neon"
  6739. end
  6740. end
  6741. for i, v in pairs(extrawingmod1:GetChildren()) do
  6742. if v:IsA("Part") then
  6743. v.Transparency = 1
  6744. v.BrickColor = BrickColor.new("White")
  6745. v.Material = "Neon"
  6746. end
  6747. end
  6748. for i, v in pairs(extrawingmod2:GetChildren()) do
  6749. if v:IsA("Part") then
  6750. v.Transparency = 1
  6751. v.BrickColor = BrickColor.new("White")
  6752. v.Material = "Neon"
  6753. end
  6754. end
  6755. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  6756. resetmode()
  6757. end
  6758. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  6759. ModeOfGlitch = 3
  6760. storehumanoidWS = 16
  6761. hum.WalkSpeed = 16
  6762. rainbowmode = false
  6763. chaosmode = false
  6764. tl1.Enabled = false
  6765. tl2.Enabled = false
  6766. tl3.Enabled = false
  6767. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  6768. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6769. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6770. for i, v in pairs(mw2:GetChildren()) do
  6771. if v:IsA("Part") then
  6772. v.BrickColor = MAINRUINCOLOR
  6773. v.Material = "Neon"
  6774. end
  6775. end
  6776. for i, v in pairs(mw1:GetChildren()) do
  6777. if v:IsA("Part") then
  6778. v.Transparency = 1
  6779. v.BrickColor = MAINRUINCOLOR
  6780. v.Material = "Neon"
  6781. end
  6782. end
  6783. for i, v in pairs(m:GetChildren()) do
  6784. if v:IsA("Part") then
  6785. v.BrickColor = BrickColor.new("Black")
  6786. v.Material = "Ice"
  6787. end
  6788. end
  6789. for i, v in pairs(m2:GetChildren()) do
  6790. if v:IsA("Part") then
  6791. v.BrickColor = BrickColor.new("Dark indigo")
  6792. v.Material = "Glass"
  6793. end
  6794. end
  6795. for i, v in pairs(m3:GetChildren()) do
  6796. if v:IsA("Part") then
  6797. v.BrickColor = BrickColor.new("Royal purple")
  6798. v.Material = "Neon"
  6799. end
  6800. end
  6801. for i, v in pairs(extrawingmod1:GetChildren()) do
  6802. if v:IsA("Part") then
  6803. v.Transparency = 1
  6804. v.BrickColor = BrickColor.new("White")
  6805. v.Material = "Neon"
  6806. end
  6807. end
  6808. for i, v in pairs(extrawingmod2:GetChildren()) do
  6809. if v:IsA("Part") then
  6810. v.Transparency = 1
  6811. v.BrickColor = BrickColor.new("White")
  6812. v.Material = "Neon"
  6813. end
  6814. end
  6815. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  6816. resetmode()
  6817. end
  6818. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  6819. ModeOfGlitch = 4
  6820. storehumanoidWS = 16
  6821. hum.WalkSpeed = 16
  6822. rainbowmode = false
  6823. chaosmode = true
  6824. tl1.Enabled = true
  6825. tl2.Enabled = true
  6826. tl3.Enabled = true
  6827. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  6828. newTheme("rbxassetid://1369263130",0,1,1)
  6829. MAINRUINCOLOR = BrickColor.new("Black")
  6830. for i, v in pairs(mw2:GetChildren()) do
  6831. if v:IsA("Part") then
  6832. v.BrickColor = MAINRUINCOLOR
  6833. v.Material = "Neon"
  6834. end
  6835. end
  6836. for i, v in pairs(mw1:GetChildren()) do
  6837. if v:IsA("Part") then
  6838. v.Transparency = 0.75
  6839. v.BrickColor = BrickColor.random()
  6840. v.Material = "Neon"
  6841. end
  6842. end
  6843. for i, v in pairs(m:GetChildren()) do
  6844. if v:IsA("Part") then
  6845. v.BrickColor = BrickColor.new("Black")
  6846. v.Material = "Neon"
  6847. end
  6848. end
  6849. for i, v in pairs(m2:GetChildren()) do
  6850. if v:IsA("Part") then
  6851. v.BrickColor = BrickColor.random()
  6852. v.Material = "Neon"
  6853. end
  6854. end
  6855. for i, v in pairs(m3:GetChildren()) do
  6856. if v:IsA("Part") then
  6857. v.BrickColor = BrickColor.new("Black")
  6858. v.Material = "Neon"
  6859. end
  6860. end
  6861. for i, v in pairs(extrawingmod1:GetChildren()) do
  6862. if v:IsA("Part") then
  6863. v.Transparency = 1
  6864. v.BrickColor = BrickColor.new("White")
  6865. v.Material = "Neon"
  6866. end
  6867. end
  6868. for i, v in pairs(extrawingmod2:GetChildren()) do
  6869. if v:IsA("Part") then
  6870. v.Transparency = 1
  6871. v.BrickColor = BrickColor.new("White")
  6872. v.Material = "Neon"
  6873. end
  6874. end
  6875. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  6876. resetmode()
  6877. end
  6878. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  6879. ModeOfGlitch = 5
  6880. storehumanoidWS = 16
  6881. hum.WalkSpeed = 16
  6882. rainbowmode = false
  6883. chaosmode = false
  6884. tl1.Enabled = true
  6885. tl2.Enabled = true
  6886. tl3.Enabled = true
  6887. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  6888. newTheme("rbxassetid://661079869",0,1.02,1)
  6889. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6890. for i, v in pairs(mw2:GetChildren()) do
  6891. if v:IsA("Part") then
  6892. v.BrickColor = MAINRUINCOLOR
  6893. v.Material = "Neon"
  6894. end
  6895. end
  6896. for i, v in pairs(mw1:GetChildren()) do
  6897. if v:IsA("Part") then
  6898. v.Transparency = 0
  6899. v.BrickColor = MAINRUINCOLOR
  6900. v.Material = "Neon"
  6901. end
  6902. end
  6903. for i, v in pairs(m:GetChildren()) do
  6904. if v:IsA("Part") then
  6905. v.BrickColor = BrickColor.new("Cool yellow")
  6906. v.Material = "Ice"
  6907. end
  6908. end
  6909. for i, v in pairs(m2:GetChildren()) do
  6910. if v:IsA("Part") then
  6911. v.BrickColor = BrickColor.new("Bright yellow")
  6912. v.Material = "Ice"
  6913. end
  6914. end
  6915. for i, v in pairs(m3:GetChildren()) do
  6916. if v:IsA("Part") then
  6917. v.BrickColor = BrickColor.new("Bright yellow")
  6918. v.Material = "Neon"
  6919. end
  6920. end
  6921. for i, v in pairs(extrawingmod1:GetChildren()) do
  6922. if v:IsA("Part") then
  6923. v.Transparency = 1
  6924. v.BrickColor = BrickColor.new("White")
  6925. v.Material = "Neon"
  6926. end
  6927. end
  6928. for i, v in pairs(extrawingmod2:GetChildren()) do
  6929. if v:IsA("Part") then
  6930. v.Transparency = 1
  6931. v.BrickColor = BrickColor.new("White")
  6932. v.Material = "Neon"
  6933. end
  6934. end
  6935. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  6936. resetmode()
  6937. end
  6938. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  6939. ModeOfGlitch = 6
  6940. storehumanoidWS = 75
  6941. hum.WalkSpeed = 75
  6942. rainbowmode = false
  6943. chaosmode = false
  6944. tl1.Enabled = true
  6945. tl2.Enabled = true
  6946. tl3.Enabled = true
  6947. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  6948. newTheme("rbxassetid://395351949",0,1,1)
  6949. MAINRUINCOLOR = BrickColor.new("White")
  6950. for i, v in pairs(mw2:GetChildren()) do
  6951. if v:IsA("Part") then
  6952. v.BrickColor = MAINRUINCOLOR
  6953. v.Material = "Neon"
  6954. end
  6955. end
  6956. for i, v in pairs(mw1:GetChildren()) do
  6957. if v:IsA("Part") then
  6958. v.Transparency = 0
  6959. v.BrickColor = MAINRUINCOLOR
  6960. v.Material = "Neon"
  6961. end
  6962. end
  6963. for i, v in pairs(m:GetChildren()) do
  6964. if v:IsA("Part") then
  6965. v.BrickColor = BrickColor.new("White")
  6966. v.Material = "Ice"
  6967. end
  6968. end
  6969. for i, v in pairs(m2:GetChildren()) do
  6970. if v:IsA("Part") then
  6971. v.BrickColor = BrickColor.new("Really black")
  6972. v.Material = "Ice"
  6973. end
  6974. end
  6975. for i, v in pairs(m3:GetChildren()) do
  6976. if v:IsA("Part") then
  6977. v.BrickColor = BrickColor.new("White")
  6978. v.Material = "Neon"
  6979. end
  6980. end
  6981. for i, v in pairs(extrawingmod1:GetChildren()) do
  6982. if v:IsA("Part") then
  6983. v.Transparency = 1
  6984. v.BrickColor = BrickColor.new("White")
  6985. v.Material = "Neon"
  6986. end
  6987. end
  6988. for i, v in pairs(extrawingmod2:GetChildren()) do
  6989. if v:IsA("Part") then
  6990. v.Transparency = 1
  6991. v.BrickColor = BrickColor.new("White")
  6992. v.Material = "Neon"
  6993. end
  6994. end
  6995. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  6996. resetmode()
  6997. end
  6998. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  6999. ModeOfGlitch = 6127843
  7000. storehumanoidWS = 50
  7001. hum.WalkSpeed = 50
  7002. rainbowmode = true
  7003. chaosmode = false
  7004. tl1.Enabled = true
  7005. tl2.Enabled = true
  7006. tl3.Enabled = true
  7007. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  7008. newTheme("rbxassetid://147930134",0,1,1)
  7009. MAINRUINCOLOR = BrickColor.new("White")
  7010. for i, v in pairs(mw2:GetChildren()) do
  7011. if v:IsA("Part") then
  7012. v.BrickColor = MAINRUINCOLOR
  7013. v.Material = "Neon"
  7014. end
  7015. end
  7016. for i, v in pairs(mw1:GetChildren()) do
  7017. if v:IsA("Part") then
  7018. v.Transparency = 0
  7019. v.BrickColor = MAINRUINCOLOR
  7020. v.Material = "Neon"
  7021. end
  7022. end
  7023. for i, v in pairs(m:GetChildren()) do
  7024. if v:IsA("Part") then
  7025. v.BrickColor = BrickColor.new("White")
  7026. v.Material = "Neon"
  7027. end
  7028. end
  7029. for i, v in pairs(m2:GetChildren()) do
  7030. if v:IsA("Part") then
  7031. v.BrickColor = BrickColor.new("White")
  7032. v.Material = "Neon"
  7033. end
  7034. end
  7035. for i, v in pairs(m3:GetChildren()) do
  7036. if v:IsA("Part") then
  7037. v.BrickColor = BrickColor.new("White")
  7038. v.Material = "Neon"
  7039. end
  7040. end
  7041. for i, v in pairs(extrawingmod1:GetChildren()) do
  7042. if v:IsA("Part") then
  7043. v.Transparency = 1
  7044. v.BrickColor = BrickColor.new("White")
  7045. v.Material = "Neon"
  7046. end
  7047. end
  7048. for i, v in pairs(extrawingmod2:GetChildren()) do
  7049. if v:IsA("Part") then
  7050. v.Transparency = 1
  7051. v.BrickColor = BrickColor.new("White")
  7052. v.Material = "Neon"
  7053. end
  7054. end
  7055. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  7056. resetmode()
  7057. end
  7058. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  7059. ModeOfGlitch = 1000000
  7060. storehumanoidWS = 100
  7061. hum.WalkSpeed = 100
  7062. rainbowmode = false
  7063. chaosmode = false
  7064. tl1.Enabled = true
  7065. tl2.Enabled = true
  7066. tl3.Enabled = true
  7067. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  7068. newTheme("rbxassetid://1359036559",0,1,1)
  7069. MAINRUINCOLOR = BrickColor.new("Bright violet")
  7070. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7071. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7072. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7073. for i, v in pairs(mw2:GetChildren()) do
  7074. if v:IsA("Part") then
  7075. v.BrickColor = MAINRUINCOLOR
  7076. v.Material = "Neon"
  7077. end
  7078. end
  7079. for i, v in pairs(mw1:GetChildren()) do
  7080. if v:IsA("Part") then
  7081. v.Transparency = 0
  7082. v.BrickColor = MAINRUINCOLOR
  7083. v.Material = "Neon"
  7084. end
  7085. end
  7086. for i, v in pairs(m:GetChildren()) do
  7087. if v:IsA("Part") then
  7088. v.Color = Color3.new(0.5,0,1)
  7089. v.Material = "Neon"
  7090. end
  7091. end
  7092. for i, v in pairs(m2:GetChildren()) do
  7093. if v:IsA("Part") then
  7094. v.Color = Color3.new(0.25,0,1)
  7095. v.Material = "Neon"
  7096. end
  7097. end
  7098. for i, v in pairs(m3:GetChildren()) do
  7099. if v:IsA("Part") then
  7100. v.Color = Color3.new(0.45,0,1)
  7101. v.Material = "Neon"
  7102. end
  7103. end
  7104. for i, v in pairs(extrawingmod1:GetChildren()) do
  7105. if v:IsA("Part") then
  7106. v.Transparency = 0.75
  7107. v.Color = Color3.new(0.25,0,1)
  7108. v.Material = "Neon"
  7109. end
  7110. end
  7111. for i, v in pairs(extrawingmod2:GetChildren()) do
  7112. if v:IsA("Part") then
  7113. v.Transparency = 0.75
  7114. v.Color = Color3.new(0.5,0,1)
  7115. v.Material = "Neon"
  7116. end
  7117. end
  7118. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  7119. resetmode()
  7120. end
  7121. if k == "m" and attack == false and ModeOfGlitch == 11 and ModeOfGlitch ~= 156156 then
  7122. newThemeCust("rbxassetid://633369492",0,1,1)
  7123. attack = true
  7124. hum.WalkSpeed = 0
  7125. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  7126. for i = 0, 24, 0.1 do
  7127. swait()
  7128. 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)
  7129. 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)
  7130. 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)
  7131. 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)
  7132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7133. 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)
  7134. 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)
  7135. end
  7136. CameraEnshaking(1,1)
  7137. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7138. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  7139. wait(0.55)
  7140. CameraEnshaking(1,2)
  7141. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7142. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7143. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7144. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  7145. wait(0.55)
  7146. CameraEnshaking(1,3)
  7147. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  7148. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7149. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7150. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7151. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7152. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  7153. wait(0.55)
  7154. CameraEnshaking(10,5)
  7155. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  7156. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  7157. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  7158. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  7159. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  7160. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7161. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  7162. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  7163. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  7164. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7165. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  7166. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  7167. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  7168. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  7169. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  7170. for i = 0, 49 do
  7171. 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)
  7172. 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)
  7173. 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)
  7174. 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)
  7175. end
  7176. ModeOfGlitch = 156156
  7177. storehumanoidWS = 200
  7178. hum.WalkSpeed = 200
  7179. rainbowmode = false
  7180. chaosmode = false
  7181. tl1.Enabled = true
  7182. tl2.Enabled = true
  7183. tl3.Enabled = true
  7184. RecolorTextAndRename("Full God",Color3.new(0,0,0),Color3.new(61,21,133))
  7185. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7186. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7187. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7188. for i, v in pairs(mw2:GetChildren()) do
  7189. if v:IsA("Part") then
  7190. v.BrickColor = MAINRUINCOLOR
  7191. v.Material = "Neon"
  7192. end
  7193. end
  7194. for i, v in pairs(mw1:GetChildren()) do
  7195. if v:IsA("Part") then
  7196. v.Transparency = 0
  7197. v.BrickColor = MAINRUINCOLOR
  7198. v.Material = "Neon"
  7199. end
  7200. end
  7201. for i, v in pairs(m:GetChildren()) do
  7202. if v:IsA("Part") then
  7203. v.Color = Color3.new(61,21,133)
  7204. v.Material = "Neon"
  7205. end
  7206. end
  7207. for i, v in pairs(m2:GetChildren()) do
  7208. if v:IsA("Part") then
  7209. v.Color = Color3.new(61,21,133)
  7210. v.Material = "Neon"
  7211. end
  7212. end
  7213. for i, v in pairs(m3:GetChildren()) do
  7214. if v:IsA("Part") then
  7215. v.Color = Color3.new(61,21,133)
  7216. v.Material = "Neon"
  7217. end
  7218. end
  7219. for i, v in pairs(extrawingmod1:GetChildren()) do
  7220. if v:IsA("Part") then
  7221. v.Transparency = 0
  7222. v.Color = Color3.new(61,21,133)
  7223. v.Material = "Neon"
  7224. end
  7225. end
  7226. for i, v in pairs(extrawingmod2:GetChildren()) do
  7227. if v:IsA("Part") then
  7228. v.Transparency = 0
  7229. v.Color = Color3.new(61,21,133)
  7230. v.Material = "Neon"
  7231. end
  7232. attack = false
  7233. end
  7234. elseif k == "m" and attack == false and ModeOfGlitch == 156156 then
  7235. resetmode()
  7236. end
  7237. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  7238. newThemeCust("rbxassetid://1504604335",0,1,1)
  7239. attack = true
  7240. hum.WalkSpeed = 0
  7241. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7242. for i = 0, 24, 0.1 do
  7243. swait()
  7244. 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)
  7245. 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)
  7246. 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)
  7247. 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)
  7248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7249. 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)
  7250. 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)
  7251. end
  7252. CameraEnshaking(1,1)
  7253. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7254. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  7255. wait(0.55)
  7256. CameraEnshaking(1,2)
  7257. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7258. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7259. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7260. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  7261. wait(0.55)
  7262. CameraEnshaking(1,3)
  7263. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  7264. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7265. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7266. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7267. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7268. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  7269. wait(0.55)
  7270. CameraEnshaking(10,5)
  7271. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  7272. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  7273. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  7274. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  7275. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  7276. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7277. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  7278. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  7279. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  7280. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7281. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  7282. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  7283. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  7284. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  7285. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  7286. for i = 0, 49 do
  7287. 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)
  7288. 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)
  7289. 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)
  7290. 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)
  7291. end
  7292. ModeOfGlitch = 12345678987654321
  7293. storehumanoidWS = 200
  7294. hum.WalkSpeed = 200
  7295. rainbowmode = false
  7296. chaosmode = false
  7297. tl1.Enabled = true
  7298. tl2.Enabled = true
  7299. tl3.Enabled = true
  7300. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  7301. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7302. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7303. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7304. for i, v in pairs(mw2:GetChildren()) do
  7305. if v:IsA("Part") then
  7306. v.BrickColor = MAINRUINCOLOR
  7307. v.Material = "Neon"
  7308. end
  7309. end
  7310. for i, v in pairs(mw1:GetChildren()) do
  7311. if v:IsA("Part") then
  7312. v.Transparency = 0
  7313. v.BrickColor = MAINRUINCOLOR
  7314. v.Material = "Neon"
  7315. end
  7316. end
  7317. for i, v in pairs(m:GetChildren()) do
  7318. if v:IsA("Part") then
  7319. v.Color = Color3.new(0.5,0,1)
  7320. v.Material = "Neon"
  7321. end
  7322. end
  7323. for i, v in pairs(m2:GetChildren()) do
  7324. if v:IsA("Part") then
  7325. v.Color = Color3.new(0.5,0,1)
  7326. v.Material = "Neon"
  7327. end
  7328. end
  7329. for i, v in pairs(m3:GetChildren()) do
  7330. if v:IsA("Part") then
  7331. v.Color = Color3.new(0.5,0,1)
  7332. v.Material = "Neon"
  7333. end
  7334. end
  7335. for i, v in pairs(extrawingmod1:GetChildren()) do
  7336. if v:IsA("Part") then
  7337. v.Transparency = 0
  7338. v.Color = Color3.new(0.5,0,1)
  7339. v.Material = "Neon"
  7340. end
  7341. end
  7342. for i, v in pairs(extrawingmod2:GetChildren()) do
  7343. if v:IsA("Part") then
  7344. v.Transparency = 0
  7345. v.Color = Color3.new(0.5,0,1)
  7346. v.Material = "Neon"
  7347. end
  7348. attack = false
  7349. end
  7350. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  7351. resetmode()
  7352. end
  7353. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 888 then
  7354. newThemeCust("rbxassetid://484046397",0,1,1)
  7355. attack = true
  7356. hum.WalkSpeed = 0
  7357. MAINRUINCOLOR = BrickColor.new("Maroon")
  7358. for i = 0, 24, 0.1 do
  7359. swait()
  7360. 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)
  7361. 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)
  7362. 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)
  7363. 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)
  7364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7365. 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)
  7366. 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)
  7367. end
  7368. CameraEnshaking(1,1)
  7369. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7370. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  7371. wait(0.55)
  7372. CameraEnshaking(1,2)
  7373. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7374. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7375. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7376. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  7377. wait(0.55)
  7378. CameraEnshaking(1,3)
  7379. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  7380. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7381. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7382. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7383. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7384. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  7385. wait(0.55)
  7386. CameraEnshaking(10,5)
  7387. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  7388. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  7389. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  7390. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  7391. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  7392. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7393. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  7394. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  7395. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  7396. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7397. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  7398. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  7399. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  7400. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  7401. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  7402. for i = 0, 49 do
  7403. 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)
  7404. 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)
  7405. 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)
  7406. 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)
  7407. end
  7408. ModeOfGlitch = 888
  7409. storehumanoidWS = 16
  7410. hum.WalkSpeed = 16
  7411. rainbowmode = false
  7412. chaosmode = false
  7413. tl1.Enabled = true
  7414. tl2.Enabled = true
  7415. tl3.Enabled = true
  7416. RecolorTextAndRename("Technical Cyborg",Color3.new(0,0,0),Color3.new(170,0,0))
  7417. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7418. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7419. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7420. for i, v in pairs(mw2:GetChildren()) do
  7421. if v:IsA("Part") then
  7422. v.BrickColor = MAINRUINCOLOR
  7423. v.Material = "DiamondPlate"
  7424. end
  7425. end
  7426. for i, v in pairs(mw1:GetChildren()) do
  7427. if v:IsA("Part") then
  7428. v.Transparency = 0
  7429. v.BrickColor = MAINRUINCOLOR
  7430. v.Material = "DiamondPlate"
  7431. end
  7432. end
  7433. for i, v in pairs(m:GetChildren()) do
  7434. if v:IsA("Part") then
  7435. v.Color = Color3.new(170,0,0)
  7436. v.Material = "DiamondPlate"
  7437. end
  7438. end
  7439. for i, v in pairs(m2:GetChildren()) do
  7440. if v:IsA("Part") then
  7441. v.Color = Color3.new(170,0,0)
  7442. v.Material = "DiamondPlate"
  7443. end
  7444. end
  7445. for i, v in pairs(m3:GetChildren()) do
  7446. if v:IsA("Part") then
  7447. v.Color = Color3.new(170,0,0)
  7448. v.Material = "DiamondPlate"
  7449. end
  7450. end
  7451. for i, v in pairs(extrawingmod1:GetChildren()) do
  7452. if v:IsA("Part") then
  7453. v.Transparency = 0
  7454. v.Color = Color3.new(170,0,0)
  7455. v.Material = "DiamondPlate"
  7456. end
  7457. end
  7458. for i, v in pairs(extrawingmod2:GetChildren()) do
  7459. if v:IsA("Part") then
  7460. v.Transparency = 0
  7461. v.Color = Color3.new(170,0,0)
  7462. v.Material = "DiamondPlate"
  7463. end
  7464. attack = false
  7465. end
  7466. elseif k == "m" and attack == false and ModeOfGlitch == 888 then
  7467. resetmode()
  7468. end
  7469. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  7470. newThemeCust("rbxassetid://723652641",0,1,1)
  7471. attack = true
  7472. hum.WalkSpeed = 0
  7473. MAINRUINCOLOR = BrickColor.new("Dark blue")
  7474. for i = 0, 24, 0.1 do
  7475. swait()
  7476. 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)
  7477. 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)
  7478. 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)
  7479. 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)
  7480. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7481. 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)
  7482. 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)
  7483. end
  7484. CameraEnshaking(1,1)
  7485. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7486. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  7487. wait(0.55)
  7488. CameraEnshaking(1,2)
  7489. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7490. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7491. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7492. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  7493. wait(0.55)
  7494. CameraEnshaking(1,3)
  7495. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  7496. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7497. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  7498. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7499. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  7500. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  7501. wait(0.55)
  7502. CameraEnshaking(10,5)
  7503. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  7504. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  7505. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  7506. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  7507. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  7508. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  7509. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  7510. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  7511. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  7512. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7513. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  7514. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  7515. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  7516. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  7517. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  7518. for i = 0, 49 do
  7519. 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)
  7520. 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)
  7521. 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)
  7522. 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)
  7523. end
  7524. ModeOfGlitch = 666
  7525. storehumanoidWS = 16
  7526. hum.WalkSpeed = 16
  7527. rainbowmode = false
  7528. chaosmode = false
  7529. tl1.Enabled = true
  7530. tl2.Enabled = true
  7531. tl3.Enabled = true
  7532. RecolorTextAndRename("TRuE bLue CHaoS gOD",Color3.new(0,0,0),Color3.new(0,16,176))
  7533. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7534. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7535. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7536. for i, v in pairs(mw2:GetChildren()) do
  7537. if v:IsA("Part") then
  7538. v.BrickColor = MAINRUINCOLOR
  7539. v.Material = "Neon"
  7540. end
  7541. end
  7542. for i, v in pairs(mw1:GetChildren()) do
  7543. if v:IsA("Part") then
  7544. v.Transparency = 0
  7545. v.BrickColor = MAINRUINCOLOR
  7546. v.Material = "Neon"
  7547. end
  7548. end
  7549. for i, v in pairs(m:GetChildren()) do
  7550. if v:IsA("Part") then
  7551. v.Color = Color3.new(0,16,176)
  7552. v.Material = "Neon"
  7553. end
  7554. end
  7555. for i, v in pairs(m2:GetChildren()) do
  7556. if v:IsA("Part") then
  7557. v.Color = Color3.new(0,16,176)
  7558. v.Material = "Neon"
  7559. end
  7560. end
  7561. for i, v in pairs(m3:GetChildren()) do
  7562. if v:IsA("Part") then
  7563. v.Color = Color3.new(0,16,176)
  7564. v.Material = "Neon"
  7565. end
  7566. end
  7567. for i, v in pairs(extrawingmod1:GetChildren()) do
  7568. if v:IsA("Part") then
  7569. v.Transparency = 0
  7570. v.Color = Color3.new(0,16,176)
  7571. v.Material = "Neon"
  7572. end
  7573. end
  7574. for i, v in pairs(extrawingmod2:GetChildren()) do
  7575. if v:IsA("Part") then
  7576. v.Transparency = 0
  7577. v.Color = Color3.new(0,16,176)
  7578. v.Material = "Neon"
  7579. end
  7580. attack = false
  7581. end
  7582. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  7583. resetmode()
  7584. end
  7585. if k == "l" and toggleTag == false then
  7586. toggleTag = true
  7587. text.TextTransparency = 0
  7588. text.TextStrokeTransparency = 0
  7589. elseif k == "l" and toggleTag == true then
  7590. toggleTag = false
  7591. text.TextTransparency = 1
  7592. text.TextStrokeTransparency = 1
  7593. end
  7594. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7595. ExtinctiveHeartbreak()
  7596. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7597. PureBomb()
  7598. elseif k == "m" and attack == false and ModeOfGlitch == 2 then
  7599. PurityAlive()
  7600. elseif k == "m" and attack == false and ModeOfGlitch == 9512357895123578 then
  7601. resetmode()
  7602. elseif k == "z" and attack == false and ModeOfGlitch == 9512357895123578 then
  7603. FinalCalam()
  7604. elseif k == "x" and attack == false and ModeOfGlitch == 9512357895123578 then
  7605. PureBomb()
  7606. elseif k == "m" and attack == false and ModeOfGlitch == 3 then
  7607. GLITCHED()
  7608. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7609. SandBomb()
  7610. elseif k == "z" and attack == false and ModeOfGlitch == 888 then
  7611. CyborgBegone()
  7612. elseif k == "x" and attack == false and ModeOfGlitch == 888 then
  7613. StarfallEX()
  7614. elseif k == "z" and attack == false and ModeOfGlitch == 11 then
  7615. HalfGodStirke()
  7616. elseif k == "m" and attack == false and ModeOfGlitch == 14725836963258741 then
  7617. resetmode()
  7618. elseif k == "z" and attack == false and ModeOfGlitch == 14725836963258741 then
  7619. GlitchedStike()
  7620. elseif k == "x" and attack == false and ModeOfGlitch == 14785236963258741 then
  7621. Starfall()
  7622. elseif k == "z" and attack == false and ModeOfGlitch == 7 then
  7623. NatureBomb()
  7624. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7625. scattercorrupt()
  7626. elseif k == "x" and attack == false and ModeOfGlitch == 10 then
  7627. SandBombs()
  7628. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7629. ChaosGroundStrike()
  7630. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7631. Judgement()
  7632. elseif k == "x" and attack == false and ModeOfGlitch == 11 then
  7633. HalfGodShow()
  7634. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  7635. HolyBarrier()
  7636. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  7637. Starfall()
  7638. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7639. yinyangi()
  7640. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  7641. MeteorStrike()
  7642. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  7643. Wip()
  7644. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  7645. RobotLazer()
  7646. elseif k == "x" and attack == false and ModeOfGlitch == 8 then
  7647. RobotGroundStrike()
  7648. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  7649. StarfallEX()
  7650. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  7651. FinalCalam()
  7652. end
  7653. if k == "n" and attack == false then
  7654. Blink()
  7655. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  7656. StarDivision()
  7657. end
  7658. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  7659. UniversalCollapse()
  7660. end
  7661. if k == "k" and attack == false and ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 and hum.WalkSpeed < 200 then
  7662. hum.WalkSpeed = 16 + 184
  7663. elseif k == "k" and attack == false and ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 and hum.WalkSpeed == 200 then
  7664. hum.WalkSpeed = 200 - 184
  7665. end
  7666. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  7667. UniversalSpark()
  7668. end
  7669. if k == "z" and attack == false and ModeOfGlitch == 666 then
  7670. StarDivision()
  7671. end
  7672. if k == "x" and attack == false and ModeOfGlitch == 666 then
  7673. Starfall()
  7674. end
  7675. if k == "m" and attack == false and ModeOfGlitch == 4 then
  7676. ChaosBegone()
  7677. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  7678. THEHELLITSTHATBIG()
  7679. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  7680. removelol()
  7681. end
  7682. end)
  7683. mouse.KeyUp:connect(function(k)
  7684. if k == "f" and ModeOfGlitch == 5 then
  7685. shielding = false
  7686. end
  7687. if k == "z" and ModeOfGlitch == 5 then
  7688. judgement = false
  7689. end
  7690. end)
  7691. coroutine.resume(coroutine.create(function()
  7692. while true do
  7693. swait(2)
  7694. if rainbowmode == true or ModeOfGlitch == 6 or ModeOfGlitch == 11 then
  7695. if eff == true then
  7696. 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)
  7697. end
  7698. end
  7699. end
  7700. end))
  7701. coroutine.resume(coroutine.create(function()
  7702. while true do
  7703. swait(2)
  7704. if shielding == true then
  7705. end
  7706. end
  7707. end))
  7708.  
  7709.  
  7710. coroutine.resume(coroutine.create(function()
  7711. while true do
  7712. if ModeOfGlitch == 1000000 then
  7713. swait(0.5)
  7714. end
  7715. swait()
  7716. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then
  7717. 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)
  7718. end
  7719. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then
  7720. 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)
  7721. end
  7722. end
  7723. end))
  7724.  
  7725.  
  7726.  
  7727. coroutine.resume(coroutine.create(function()
  7728. while true do
  7729. swait(2)
  7730. if chaosmode == true then
  7731. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7732. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7733. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7734. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  7735. for i, v in pairs(mw1:GetChildren()) do
  7736. if v:IsA("Part") then
  7737. v.Transparency = 0.75
  7738. v.BrickColor = BrickColor.random()
  7739. v.Material = "Neon"
  7740. end
  7741. end
  7742. for i, v in pairs(m2:GetChildren()) do
  7743. if v:IsA("Part") then
  7744. v.BrickColor = BrickColor.random()
  7745. v.Material = "Neon"
  7746. end
  7747. end
  7748. for i, v in pairs(secondchar:GetChildren()) do
  7749. if v:IsA("Part") then
  7750. v.BrickColor = BrickColor.random()
  7751. v.Material = "Neon"
  7752. end
  7753. end
  7754. end
  7755. end
  7756. end))
  7757. Humanoid.Name = "STARGLITCHER"
  7758. Humanoid.MaxHealth = math.huge
  7759. Humanoid.Health = math.huge
  7760. Instance.new("ForceField",char).Visible = false
  7761. Humanoid.Animator.Parent = nil
  7762. idleanim=.4
  7763. while true do
  7764. if rainbowmode == false then
  7765. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7766. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7767. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7768. for i, v in pairs(secondchar:GetChildren()) do
  7769. if v:IsA("Part") then
  7770. v.BrickColor = MAINRUINCOLOR
  7771. v.Material = "Neon"
  7772. end
  7773. end
  7774. if chaosmode == false then
  7775. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7776. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7777. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7778. for i, v in pairs(secondchar:GetChildren()) do
  7779. if v:IsA("Part") then
  7780. v.BrickColor = MAINRUINCOLOR
  7781. v.Material = "Neon"
  7782. end
  7783. end
  7784. end
  7785. end
  7786. if rainbowmode == true then
  7787. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  7788. MAINRUINCOLOR = BrickColor.new("White")
  7789. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7790. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7791. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7792. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7793. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7794. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  7795. for i, v in pairs(m:GetChildren()) do
  7796. if v:IsA("Part") then
  7797. v.Color = Color3.new(r/255,g/255,b/255)
  7798. end
  7799. end
  7800. for i, v in pairs(m2:GetChildren()) do
  7801. if v:IsA("Part") then
  7802. v.Color = Color3.new(r/255,g/255,b/255)
  7803. end
  7804. end
  7805. for i, v in pairs(secondchar:GetChildren()) do
  7806. if v:IsA("Part") then
  7807. v.Color = Color3.new(r/255,g/255,b/255)
  7808. v.Material = "Neon"
  7809. end
  7810. end
  7811. for i, v in pairs(m3:GetChildren()) do
  7812. if v:IsA("Part") then
  7813. v.Color = Color3.new(r/255,g/255,b/255)
  7814. end
  7815. end
  7816. for i, v in pairs(mw1:GetChildren()) do
  7817. if v:IsA("Part") then
  7818. v.Color = Color3.new(r/255,g/255,b/255)
  7819. v.Material = "Neon"
  7820. end
  7821. end
  7822. for i, v in pairs(mw2:GetChildren()) do
  7823. if v:IsA("Part") then
  7824. v.Color = Color3.new(r/255,g/255,b/255)
  7825. v.Material = "Neon"
  7826. end
  7827. end
  7828. end
  7829. CameraManager()
  7830. swait()
  7831. 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)
  7832. 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)
  7833. 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)
  7834. 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)
  7835. 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)
  7836. 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)
  7837.  
  7838. if attack == false and ActiveGia == false then
  7839. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7840. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  7841. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  7842. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7843. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  7844. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  7845. elseif attack == false and ActiveGia == true then
  7846. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 888 ~= 14725836963258741 and ModeOfGlitch ~= 9512357895123578 and ModeOfGlitch ~= 9512357895123578 ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  7847. 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)
  7848. 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)
  7849. 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)
  7850. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  7851. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  7852. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  7853. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 888 or ModeOfGlitch == 666 or ModeOfGlitch == 14725836963258741 or ModeOfGlitch == 9512357895123578 then
  7854. 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)
  7855. 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)
  7856. 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)
  7857. 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)
  7858. 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)
  7859. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  7860. end
  7861. end
  7862.  
  7863. 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)
  7864. 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)
  7865. 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)
  7866. 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)
  7867. 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)
  7868. 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)
  7869. sine = sine + change
  7870. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7871. local velderp=RootPart.Velocity.y
  7872. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7873. if equipped==true or equipped==false then
  7874. if attack==false then
  7875. idle=idle+1
  7876. else
  7877. idle=0
  7878. end
  7879. if idle>=500 then
  7880. if attack==false then
  7881. --Sheath()
  7882. end
  7883. end
  7884. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7885. Anim="Jump"
  7886. if attack==false then
  7887. 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)
  7888. 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)
  7889. 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)
  7890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7891. 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)
  7892. 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)
  7893. end
  7894. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7895. Anim="Fall"
  7896. if attack==false then
  7897. 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)
  7898. 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)
  7899. 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)
  7900. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  7901. 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)
  7902. 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)
  7903. end
  7904. elseif torvel<1 and hitfloor~=nil then
  7905. Anim="Idle"
  7906. if attack==false then
  7907. if ModeOfGlitch == 1 or ModeOfGlitch == 8 then
  7908. 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)
  7909. 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)
  7910. 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)
  7911. 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)
  7912. 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)
  7913. 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)
  7914.  
  7915. elseif ModeOfGlitch == 11 or ModeOfGlitch == 156156 then
  7916. 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)
  7917. 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)
  7918. 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)
  7919. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7920. 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)
  7921. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7922.  
  7923. elseif ModeOfGlitch == 666 or ModeOfGlitch == 888 then
  7924. 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)
  7925. 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)
  7926. 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)
  7927. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7928. 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)
  7929. 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)
  7930.  
  7931. elseif ModeOfGlitch == 2 or ModeOfGlitch == 10 or ModeOfGlitch == 6127843 or ModeOfGlitch == 7 then
  7932. 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)
  7933. 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)
  7934. 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)
  7935. 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)
  7936. 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)
  7937. 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)
  7938.  
  7939. elseif ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then
  7940. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7941. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  7944. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7945. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7946.  
  7947. elseif ModeOfGlitch == 3 then
  7948. 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)
  7949. 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)
  7950. 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)
  7951. 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)
  7952. 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)
  7953. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  7954.  
  7955. elseif ModeOfGlitch == 4 then
  7956. 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)
  7957. 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)
  7958. 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)
  7959. 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)
  7960. 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)
  7961. 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)
  7962.  
  7963. elseif ModeOfGlitch == 5 then
  7964. 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)
  7965. 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)
  7966. 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)
  7967. 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)
  7968. 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)
  7969. 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)
  7970.  
  7971. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  7972. 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)
  7973. 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)
  7974. 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)
  7975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  7976. 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)
  7977. 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)
  7978.  
  7979. elseif ModeOfGlitch == 12345678987654321 then
  7980. 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)
  7981. 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)
  7982. 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)
  7983. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7984. 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)
  7985. 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)
  7986. end
  7987. end
  7988. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  7989. Anim="Walk"
  7990. if attack==false then
  7991. if ModeOfGlitch == 1 or ModeOfGlitch == 11 then
  7992. 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)
  7993. 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)
  7994. 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)
  7995. 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)
  7996. 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)
  7997. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7998.  
  7999. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 or ModeOfGlitch == 888 then
  8000. 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)
  8001. 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)
  8002. 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)
  8003. 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)
  8004. 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)
  8005. 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)
  8006.  
  8007. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 or ModeOfGlitch ~= 888 then
  8008. 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)
  8009. 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)
  8010. 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)
  8011. 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)
  8012. 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)
  8013. 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)
  8014. end
  8015. end
  8016. elseif torvel>=22 and hitfloor~=nil then
  8017. Anim="Run"
  8018. if attack==false then
  8019. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 and ModeOfGlitch ~= 888 and ModeOfGlitch ~= 11 and ModeOfGlitch ~= 156156 then
  8020. 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)
  8021. 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)
  8022. 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)
  8023. 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)
  8024. 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)
  8025. 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)
  8026. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 11 or ModeOfGlitch == 888 or ModeOfGlitch == 156156 then
  8027. 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)
  8028. 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)
  8029. 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)
  8030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  8031. 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)
  8032. 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)
  8033. end
  8034. end
  8035. end
  8036. end
  8037. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement