Advertisement
ArtiusFox

[Roblox Script] Star Glitcher 3.3.1 (ViniciusSpacerBr)

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