Advertisement
com_ww

ignore ignore ignore

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