daily pastebin goal
12%
SHARE
TWEET

Untitled

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