SHARE
TWEET

Untitled

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