SHARE
TWEET

sgfe

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