SHARE
TWEET

Star Glitcher W/ Giant

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