Advertisement
Vortexture

Critical Strike: Fat Clout Script (kill, buffs, godmode, heal, no cooldowns)

Sep 11th, 2020 (edited)
118,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.93 KB | None | 0 0
  1. if game.PlaceId ~= 111311599 then
  2.     return
  3. end
  4. repeat wait() until game:FindFirstChild("Players") ~= nil
  5. repeat wait() until game.Players.LocalPlayer ~= nil
  6. repeat wait() until game:GetService("ReplicatedStorage"):FindFirstChild("Classes")
  7. repeat wait() until game:GetService("ReplicatedStorage").Classes:FindFirstChild("CONTROLLER")
  8. repeat wait() until game:GetService("ReplicatedStorage").Classes.CONTROLLER:FindFirstChild("Effects")
  9. repeat wait() until game:GetService("ReplicatedStorage").Classes.CONTROLLER.Effects:FindFirstChild("Disable")
  10.  
  11. local mouse = game.Players.LocalPlayer:GetMouse() -- for get nearest to player
  12. local mainscriptenv = nil
  13. local toset = {}
  14.  
  15. local LoopTables = {
  16.     loopkill = {};
  17.     loopheal = {};
  18.     loopapply = {};
  19.     godmode = {};
  20. }
  21. local debounces = {
  22.     loopkill = false;
  23.     loopheal = false;
  24.     loopapply = false;
  25.     nocooldown = false;
  26.     godmode = false;
  27. }
  28. local toggles = {
  29.     nocooldown = false;
  30.     draw = false;
  31.     fasternocooldown = false;
  32. }
  33. local effects = {}
  34. local hotkeys = {}
  35.  
  36. local function getlowest(funct)
  37.     print(tostring(funct))
  38.     local UpValues = debug.getupvalues(funct)
  39.     local LowestIndex = math.huge
  40.     local LowestNumber = math.huge
  41.     for i,v in pairs(UpValues) do
  42.         if tonumber(v) ~= nil then
  43.             if tonumber(v) < LowestNumber then
  44.                 LowestIndex = i
  45.                 LowestNumber = tonumber(v)
  46.             end
  47.         end
  48.     end
  49.     return(LowestIndex)
  50. end
  51.  
  52. for i,desc in pairs(game.Players.LocalPlayer.PlayerGui:GetDescendants()) do
  53.     if desc.Name == "Main" and desc.Parent.Name == "ClassGui" then
  54.         repeat wait() until desc.Disabled == false
  55.         wait(1)
  56.         mainscriptenv = getsenv(desc)
  57.         toset.Attack = getlowest(mainscriptenv.usingattack)
  58.         toset.First = getlowest(mainscriptenv.usingability1)
  59.         toset.Second = getlowest(mainscriptenv.usingability2)
  60.         toset.Critical = getlowest(mainscriptenv.usingcritical)
  61.     end
  62. end
  63. game.Players.LocalPlayer.PlayerGui.DescendantAdded:Connect(function(desc)
  64.     wait(3)
  65.     if desc ~= nil then
  66.         if desc.Parent ~= nil then
  67.             if desc.Name == "Main" and desc.Parent.Name == "ClassGui" then
  68.                 repeat wait() until desc.Disabled == false
  69.                 wait(1)
  70.                 pcall(function()
  71.                     mainscriptenv = getsenv(desc)
  72.                     toset.Attack = getlowest(mainscriptenv.usingattack)
  73.                     toset.First = getlowest(mainscriptenv.usingability1)
  74.                     toset.Second = getlowest(mainscriptenv.usingability2)
  75.                     toset.Critical = getlowest(mainscriptenv.usingcritical)
  76.                 end)
  77.             end
  78.         end
  79.     end
  80. end)
  81.  
  82.  
  83. for i,v in pairs(game.ReplicatedStorage.Classes:GetDescendants()) do
  84.     if v:FindFirstChild("Effects") then
  85.         for x,y in pairs(v.Effects:GetChildren()) do
  86.             local AlreadyAdded = false
  87.             for n,t in pairs(effects) do
  88.                 if string.lower(tostring(n)) == string.lower(y.Name) then
  89.                     AlreadyAdded = true
  90.                 end
  91.             end
  92.             if not AlreadyAdded and not string.find(string.lower(y.Name), "reset") and not string.find(string.lower(y.Name), "remove") and y.Name ~= "AttackBuff" then
  93.                 effects[string.lower(y.Name)] = y
  94. --print("added not attack shit ("..y.Name..")")
  95.             elseif not AlreadyAdded and not string.find(string.lower(y.Name), "reset") and not string.find(string.lower(y.Name), "remove") then
  96.                 repeat wait() until y:FindFirstChild("TextButton")
  97. print("attack shit "..y.TextButton.Text)
  98.                 if string.find(y.TextButton.Text, "3") then
  99.                     effects[string.lower(y.Name)] = y
  100.                 end
  101.             end
  102.         end
  103.     end
  104. end
  105.  
  106. local function GetClosestPlayer()
  107.     local LowestDistance = math.huge
  108.     local ClosestCharacter = nil
  109.     local Characters = {}
  110.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  111.         if v.Character ~= nil and v ~= game.Players.LocalPlayer then
  112.             table.insert(Characters, v.Character)
  113.         end
  114.     end
  115.     for i,v in pairs(Characters) do
  116.         if v ~= nil then
  117.             if v:FindFirstChild("HumanoidRootPart") then
  118.                 local InitialDis = (v.HumanoidRootPart.Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  119.                 local Ray = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * InitialDis)
  120.                 local Part,Position = game.Workspace:FindPartOnRay(Ray, game.Workspace)
  121.                 local FinalDifference = math.floor((Position - v.HumanoidRootPart.Position).magnitude)
  122.                 if FinalDifference < LowestDistance then
  123.                     ClosestCharacter = v
  124.                     LowestDistance = FinalDifference
  125.                 end
  126.             end
  127.         end
  128.     end
  129.     local ClosestPlayer = game.Players:GetPlayerFromCharacter(ClosestCharacter)
  130.     if ClosestPlayer ~= nil then
  131.         return ClosestPlayer
  132.     end
  133. end
  134.  
  135. local function setbools()
  136.     for i,v in pairs(debug.getupvalues(mainscriptenv.usingattack)) do
  137.         if type(v) == "boolean" then
  138.             debug.setupvalue(mainscriptenv.usingattack, i, false)
  139.         end
  140.     end
  141.     for i,v in pairs(debug.getupvalues(mainscriptenv.usingability1)) do
  142.         if type(v) == "boolean" then
  143.             debug.setupvalue(mainscriptenv.usingability1, i, false)
  144.         end
  145.     end
  146.     for i,v in pairs(debug.getupvalues(mainscriptenv.usingability2)) do
  147.         if type(v) == "boolean" then
  148.             debug.setupvalue(mainscriptenv.usingability2, i, false)
  149.         end
  150.     end
  151.     for i,v in pairs(debug.getupvalues(mainscriptenv.usingcritical)) do
  152.         if type(v) == "boolean" then
  153.             debug.setupvalue(mainscriptenv.usingcritical, i, false)
  154.         end
  155.     end
  156. end
  157.  
  158. local function getargs(inputstring, lower)
  159.     if lower ~= nil then
  160.         if lower then
  161.             inputstring = string.lower(inputstring)
  162.         end
  163.     end
  164.     local Args = {}
  165.     local spaces = {}
  166.     local lastspace = 0
  167.     inputstring = string.gsub(inputstring, "/e ", "")
  168.     inputstring = string.gsub(inputstring, "/w ", "")
  169.     if string.find(string.sub(inputstring,1,1), "%p") then
  170.         inputstring = string.sub(inputstring, 2, -1)
  171.     end
  172.     repeat
  173.         local currentspace = string.find(inputstring, " ", lastspace + 1)
  174.         if currentspace ~= nil then
  175.             table.insert(spaces, currentspace)
  176.             lastspace = currentspace
  177.         else
  178.             lastspace = currentspace
  179.         end
  180.     wait()
  181.     until lastspace == nil
  182.     if #spaces >= 2 then
  183.         Args.Command = string.sub(inputstring, 1, spaces[1] - 1)
  184.     elseif #spaces == 1 then
  185.         Args.Command = string.sub(inputstring, 1, spaces[1] - 1)
  186.         Args[1] = string.sub(inputstring, spaces[1] + 1, -1)
  187.     elseif #spaces == 0 then
  188.         Args.Command = string.sub(inputstring, 1, - 1)
  189.     end
  190.     if #spaces >= 2 then
  191.         for i = 1,#spaces do
  192.             if i ~= 1 and i ~= #spaces then
  193.                 Args[i - 1] = string.sub(inputstring, spaces[i - 1] + 1, spaces[i] - 1)
  194.             elseif i == #spaces then
  195.                 Args[i - 1] = string.sub(inputstring, spaces[i - 1] + 1, spaces[i] - 1)
  196.                 Args[i] = string.sub(inputstring, spaces[i] + 1, -1)
  197.             end
  198.         end
  199.     end
  200.     return Args
  201. end
  202.  
  203.  
  204. local function getplayer(name)
  205.     if type(name) ~= "string" or name == nil then
  206.         return nil
  207.     end
  208.     name = string.lower(name)
  209.     local player = nil
  210.                    
  211.     local names = game.Players:GetChildren()                      
  212.     for i,v in pairs(names) do
  213.         local strlower = string.lower(v.Name)
  214.         local sub = string.sub(strlower,1,#name)                                    
  215.         if name == sub and v ~= game.Players.LocalPlayer then
  216.             player = v
  217.         end
  218.     end
  219.     if player then
  220.         return player
  221.     else
  222.         return nil
  223.     end
  224. end
  225.  
  226. local function IsInTable(table, tofind)
  227.     local found = false
  228.     for i,v in pairs(table) do
  229.         if v == tofind or i == tofind then
  230.             found = true
  231.             break
  232.         end
  233.     end
  234.     return found
  235. end
  236.  
  237. local function GetPartsOnRay(ray)
  238.     local Parts = {}
  239.     local LastPart = nil
  240.    
  241.     repeat
  242.         LastPart = game.Workspace:FindPartOnRayWithIgnoreList(ray, Parts)
  243.         table.insert(Parts, LastPart)
  244.     until LastPart == nil
  245.     for i,v in pairs(Parts) do
  246.         Parts[i] = v.Name
  247.     end
  248.     return Parts
  249. end -- thanks to EmeraldSlash on the devforums for saving me some work
  250.  
  251. local function GetAlivePlayers()
  252.     local Players = {}
  253.     for i,v in pairs(game.Players:GetPlayers()) do
  254.         if v.Character ~= nil and v ~= game.Players.LocalPlayer then
  255.             if v.Character:FindFirstChildOfClass("Model") and v.Character:FindFirstChild("HumanoidRootPart") then -- only players that are aren't in the character selection (players and in the game)
  256.                 local ray = Ray.new(v.Character.HumanoidRootPart.Position, Vector3.new(0, 1000, 0))
  257.                 local Table = GetPartsOnRay(ray)
  258.                 if IsInTable(Table, "AntiMapGlitch1") then
  259.                     table.insert(Players, v)
  260.                 end
  261.             end
  262.         end
  263.     end
  264.     return Players
  265. end
  266.  
  267. local function getpass()
  268.     local pass = nil
  269.     if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ClassGui") then
  270.         if game.Players.LocalPlayer.PlayerGui.ClassGui:FindFirstChild("Main") then
  271.             pass = getsenv(game.Players.LocalPlayer.PlayerGui.ClassGui.Main).pass -- thank you egg salad
  272.         end
  273.     end
  274.     return pass
  275. end
  276.  
  277. local function heal(chara, amount)
  278.     local pass = getpass()
  279.     if pass == nil then
  280.         return
  281.     end
  282.     game.ReplicatedStorage.Remotes.Heal:InvokeServer(pass(), chara, amount) -- thank you egg salad
  283. end
  284.  
  285. local function damage(chara, amount)
  286.     local pass = getpass()
  287.     if pass == nil then
  288.         return
  289.     end
  290.     game.ReplicatedStorage.Remotes.Damage:InvokeServer(pass(), game.Workspace.RealTime.Value, chara, amount)
  291. end
  292.  
  293. local function applyeffect(chara, effect)
  294.     if chara == nil then
  295.         return
  296.     end
  297.     local pass = getpass()
  298.     local effectobj = nil
  299.     if pass == nil then
  300.         return
  301.     end
  302.     for i,v in pairs(effects) do
  303.         if string.lower(string.sub(tostring(i), 1, #effect)) == string.lower(effect) then
  304.             effectobj = v
  305.         end
  306.     end
  307.     if effectobj ~= nil and chara:FindFirstChild("Head") then
  308.         game.ReplicatedStorage.Remotes.EffectApply:InvokeServer(pass(), chara, effectobj, chara.Head)
  309.     end
  310. end
  311.  
  312. local function forcefield(chara)
  313.     local pass = getpass()
  314.     if pass == nil or chara == nil then
  315.         return
  316.     end
  317.     if game.ReplicatedStorage:FindFirstChild("Effects") then
  318.         if game.ReplicatedStorage.Effects:FindFirstChild("ForceField") and chara:FindFirstChild("Head") then
  319.             game.ReplicatedStorage.Remotes.EffectApply:InvokeServer(pass(), chara, game.ReplicatedStorage.Effects.ForceField, chara.Head)
  320.         end
  321.     end
  322. end
  323.  
  324. local function invis()
  325.     local InvisAbility = game.ReplicatedStorage.Classes.RECON.Projectile.ability2a;
  326.     local Location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0);
  327.     local AbilityClone = InvisAbility:Clone();
  328.     AbilityClone.Owner.Value = game.Players.LocalPlayer
  329.     AbilityClone.Origin.Value = Location.p;
  330.     AbilityClone.CFrame = Location;
  331.     AbilityClone.Color = game.Players.LocalPlayer.CharacterColors.WeaponColor.Value;
  332.     AbilityClone.Speed.Value = AbilityClone.Speed.Value;
  333.     local ProjectileHandler = AbilityClone.ProjectileHandler;
  334.     ProjectileHandler.Projectile.Value = AbilityClone;
  335.     ProjectileHandler.Parent = game.Players.LocalPlayer.Character;
  336.     AbilityClone.Parent = workspace;
  337.     game.ReplicatedStorage.Remotes.Projectile:FireServer(InvisAbility, Location, game.Players.LocalPlayer.CharacterColors.WeaponColor.Value);
  338. end
  339.  
  340. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  341.  
  342.     if string.lower(msg) == "za warudo" or string.lower(msg) == "/e za warudo" then
  343.         print("yuh")
  344.         for i,v in pairs(game.Players:GetPlayers()) do
  345.             if v.Character ~= nil then
  346.                 applyeffect(v.Character, "rewind")
  347.             end
  348.         end
  349.     end
  350.  
  351.     if not string.find(msg, ":") and not string.find(msg, "/e ") then
  352.         return
  353.     end
  354.  
  355.     local Args = getargs(msg, true) -- Has all the arguments on the player's message
  356.  
  357.     if IsInTable({"kill","eliminate","murder","assassinate","terminate","destroy","end","extinguish","ruin","wreck","smash","crush","abolish","eradicate","annihilate","obliterate","lol","getmad"}, Args.Command) and Args[1] ~= nil then
  358.         if Args[1] == "others" then
  359.             for i,v in pairs(game.Players:GetPlayers()) do
  360.                 if v ~= game.Players.LocalPlayer then
  361.                     damage(v.Character, 1000)
  362.                 end
  363.             end
  364.             return
  365.         end
  366.         if Args[1] == "random" then
  367.             local Victims = 1
  368.             if tonumber(Args[2]) ~= nil then
  369.                 if tonumber(Args[2]) <= #game.Players:GetPlayers() then
  370.                     Victims = tonumber(Args[2])
  371.                 end
  372.             end
  373.             local Players = GetAlivePlayers()
  374.             if Victims == 1 and Players[1] ~= nil then
  375.                 damage(Players[math.random(1,#Players)].Character, 1000)
  376.             elseif Victims > 1 and Players[1] ~= nil then
  377.                 for i = 1,Victims do
  378.                     local RandomIndex = math.random(1,#Players)
  379.                     damage(Players[RandomIndex].Character, 1000) -- thank you egg salad
  380.                     table.remove(Players, RandomIndex) -- prevention for selecting the same player twice
  381.                 end
  382.             end
  383.         end
  384.         local Target = getplayer(Args[1])
  385.         if Target == nil then
  386.             return
  387.         end
  388.         if Target.Character ~= nil then
  389.             damage(Target.Character, 1000) -- thank you egg salad
  390.         end
  391.     end
  392.  
  393.     if IsInTable({"1vs1","1v1","duel"}, Args.Command) and Args[1] ~= nil then
  394.         if Args[1] == "random" then
  395.             local Players = GetAlivePlayers()
  396.             local Player = Players[math.random(1,#Players)]
  397.             for i,v in pairs(game.Players:GetPlayers()) do
  398.                 if v ~= Player and v ~= game.Players.LocalPlayer then
  399.                     damage(v.Character, 1000) -- thank you egg salad
  400.                 end
  401.             end
  402.             return
  403.         end
  404.         local Target = getplayer(Args[1])
  405.         local Target2 = nil
  406.         if Target == nil then
  407.             return
  408.         end
  409.         if Args[2] ~= nil then
  410.             Target2 = getplayer(Args[2])
  411.         end
  412.         if Target2 == nil then
  413.             for i,v in pairs(game.Players:GetPlayers()) do
  414.                 if v ~= Target and v ~= game.Players.LocalPlayer then
  415.                     damage(v.Character, 1000) -- thank you egg salad
  416.                 end
  417.             end
  418.         else
  419.             for i,v in pairs(game.Players:GetPlayers()) do
  420.                 if v ~= Target and v ~= Target2 then
  421.                     damage(v.Character, 1000) -- thank you egg salad
  422.                 end
  423.             end
  424.         end
  425.     end
  426.  
  427.     if IsInTable({"win","dub","#1battleroyale"}, Args.Command) then
  428.         for i,v in pairs(game.Players:GetPlayers()) do
  429.             if v ~= game.Players.LocalPlayer then
  430.                 damage(v.Character, 1000) -- thank you egg salad
  431.             end
  432.         end
  433.     end
  434.  
  435.     if IsInTable({"loop","loopkill","autokill","lk"}, Args.Command) and Args[1] ~= nil then
  436.         if Args[1] == "others" then
  437.             for i,v in pairs(game.Players:GetPlayers()) do
  438.                 if not IsInTable(LoopTables.loopkill, v.Name) and v ~= game.Players.LocalPlayer then
  439.                     table.insert(LoopTables.loopkill, v.Name)
  440.                 end
  441.             end
  442.             return
  443.         end
  444.         local Target = getplayer(Args[1])
  445.         if Target == nil then
  446.             return
  447.         end
  448.         if not IsInTable(LoopTables.loopkill, Target.Name) then
  449.             table.insert(LoopTables.loopkill, Target.Name)
  450.         end
  451.     end
  452.  
  453.     if IsInTable({"unloop","unloopkill","unautokill"}, Args.Command) and Args[1] ~= nil then
  454.         if Args[1] == "others" or Args[1] == "all" then
  455.             for i = 1,#LoopTables.loopkill do
  456.                 table.remove(LoopTables.loopkill, 1)
  457.             end
  458.             return
  459.         end
  460.         for i,v in pairs(LoopTables.loopkill) do
  461.             if string.lower(string.sub(v, 0,#Args[1])) == string.lower(Args[1]) then
  462.                 table.remove(LoopTables.loopkill, i)
  463.             end
  464.         end
  465.     end
  466.  
  467.     if IsInTable({"lks","loopkills","loopkilled","loopkilllist"}, Args.Command) then
  468.         print("--- Printing Loopkill List ---")
  469.         for i,v in pairs(LoopTables.loopkill) do
  470.             print(i..": "..v)
  471.         end
  472.         print("------------ Done ------------")
  473.     end
  474.  
  475.     if IsInTable({"damage","hurt","subtract"}, Args.Command) and Args[1] ~= nil then
  476.         if Args[1] == "all" or Args[1] == "others" then
  477.             local Players = game.Players:GetPlayers()
  478.             if Args[1] == "others" then
  479.                 for i = 1,#Players do
  480.                     if Players[i] == game.Players.LocalPlayer then
  481.                         table.remove(Players, i)
  482.                     end
  483.                 end
  484.             end
  485.             for i,v in pairs(Players) do
  486.                 if v.Character:FindFirstChild("Stats") then
  487.                     if v.Character.Stats:FindFirstChild("CurrentHP") and v.Character.Stats:FindFirstChild("MaxHP") then
  488.                         if Args[2] == "random" then
  489.                             damage(v.Character, math.random(1,tonumber(v.Character.Stats:FindFirstChild("CurrentHP").Value))) -- thank you egg salad
  490.                         elseif string.find(Args[2], "1/") then
  491.                             if tonumber(string.sub(Args[2], -1, -1)) ~= nil then
  492.                                 damage(v.Character, tonumber(v.Character.Stats:FindFirstChild("CurrentHP").Value)/tonumber(string.sub(Args[2], -1, -1))) -- thank you egg salad
  493.                             end
  494.                         else
  495.                             damage(v.Character, tonumber(Args[2])) -- thank you egg salad
  496.                         end
  497.                     end
  498.                 end
  499.             end
  500.             return
  501.         end
  502.         local Target = getplayer(Args[1])
  503.         if Target == nil then
  504.             return
  505.         end
  506.         if Target.Character ~= nil then
  507.             if Target.Character:FindFirstChild("Stats") then
  508.                 if not Target.Character.Stats:FindFirstChild("CurrentHP") or not Target.Character.Stats:FindFirstChild("MaxHP") then
  509.                     return
  510.                 end
  511.                 if Args[2] == "random" then
  512.                     damage(Target.Character, math.random(1,tonumber(Target.Character.Stats:FindFirstChild("CurrentHP").Value))) -- thank you egg salad
  513.                     return
  514.                 end
  515.                 if string.find(Args[2], "1/") then
  516.                     if tonumber(string.sub(Args[2], -1, -1)) ~= nil then
  517.                         damage(Target.Character, tonumber(Target.Character.Stats:FindFirstChild("CurrentHP").Value)/tonumber(string.sub(Args[2], -1, -1))) -- thank you egg salad
  518.                         return
  519.                     end
  520.                 end
  521.                 damage(v.Character, tonumber(Args[2])) -- thank you egg salad
  522.             end
  523.         end
  524.     end
  525.  
  526.     if IsInTable({"heal","repair","restore","healme","repairme","restoreme"}, Args.Command) then
  527.         if Args[1] == "others" or Args[1] == "all" then
  528.             if IsInTable({"healme","repairme","restoreme"}, Args.Command) then
  529.                 return
  530.             end
  531.             local Players = game.Players:GetPlayers()
  532.             if Args[1] == "others" then
  533.                 for i = 1,#Players do
  534.                     if Players[i] == game.Players.LocalPlayer then
  535.                         table.remove(Players, i)
  536.                     end
  537.                 end
  538.             end
  539.             for i,v in pairs(Players) do
  540.                 if v.Character ~= nil then
  541.                     if v.Character:FindFirstChild("Stats") then
  542.                         local Stats = v.Character.Stats
  543.                         if not Stats:FindFirstChild("CurrentHP") or not Stats:FindFirstChild("MaxHP") or not Stats:FindFirstChild("RedDamage") then
  544.                             return
  545.                         end
  546.                         if Args[2] == "random" then
  547.                             local TotalLostHealth = (Stats.MaxHP.Value - Stats.RedDamage.Value) - Stats.CurrentHP.Value
  548.                             heal(v.Character, math.random(1,TotalLostHealth))
  549.                         elseif tonumber(Args[2]) ~= nil then
  550.                             local TotalLostHealth = (Stats.MaxHP.Value - Stats.RedDamage.Value) - Stats.CurrentHP.Value
  551.                             heal(v.Character, Args[2])
  552.                         else
  553.                             heal(v.Character, Stats.MaxHP.Value)
  554.                         end
  555.                     end
  556.                 end
  557.             end
  558.             return
  559.         end
  560.         local Target = nil
  561.         if Args[1] == "me" or Args[1] == "myself" or IsInTable({"healme","repairme","restoreme"}, Args.Command) then
  562.             Target = game.Players.LocalPlayer
  563.         elseif Args[1] == "random" then
  564.             local Players = GetAlivePlayers()
  565.             if Players[1] ~= nil then
  566.                 Target = Players[math.random(1,#Players)]
  567.             end
  568.         else
  569.             Target = getplayer(Args[1])
  570.         end
  571.         if Target ~= nil then
  572.             if Target.Character ~= nil then
  573.                 if Target.Character:FindFirstChild("Stats") then
  574.                     local Stats = Target.Character.Stats
  575.                     if not Stats:FindFirstChild("CurrentHP") or not Stats:FindFirstChild("MaxHP") or not Stats:FindFirstChild("RedDamage") then
  576.                         return
  577.                     end
  578.                     if Args[2] == "random" then
  579.                         local TotalLostHealth = (Stats.MaxHP.Value - Stats.RedDamage.Value) - Stats.CurrentHP.Value
  580.                         heal(Target.Character, math.random(1,TotalLostHealth))
  581.                     elseif tonumber(Args[2]) ~= nil then
  582.                         local TotalLostHealth = (Stats.MaxHP.Value - Stats.RedDamage.Value) - Stats.CurrentHP.Value
  583.                         heal(Target.Character, Args[2])
  584.                     else
  585.                         heal(Target.Character, Stats.MaxHP.Value)
  586.                     end
  587.                 end
  588.             end
  589.         end
  590.     end
  591.  
  592.     if IsInTable({"loopheal","looprepair","looprestore","rapidheal","lh"}, Args.Command) and Args[1] ~= nil then
  593.         if Args[1] == "others" then
  594.             for i,v in pairs(game.Players:GetPlayers()) do
  595.                 if not IsInTable(LoopTables.loopheal, v.Name) and v ~= game.Players.LocalPlayer then
  596.                     table.insert(LoopTables.loopheal, v.Name)
  597.                 end
  598.             end
  599.             return
  600.         end
  601.         if Args[1] == "all" then
  602.             for i,v in pairs(game.Players:GetPlayers()) do
  603.                 if not IsInTable(LoopTables.loopheal, v.Name) then
  604.                     table.insert(LoopTables.loopheal, v.Name)
  605.                 end
  606.             end
  607.             return
  608.         end
  609.         local Target = nil
  610.         if Args[1] == "me" or Args[1] == "myself" or IsInTable({"healme","repairme","restoreme"}, Args.Command) then
  611.             Target = game.Players.LocalPlayer
  612.         elseif Args[1] == "random" then
  613.             local Players = GetAlivePlayers()
  614.             if Players[1] ~= nil then
  615.                 Target = Players[math.random(1,#Players)]
  616.             end
  617.         else
  618.             Target = getplayer(Args[1])
  619.         end
  620.         if Target == nil then
  621.             return
  622.         end
  623.         if not IsInTable(LoopTables.loopheal, Target.Name) then
  624.             table.insert(LoopTables.loopheal, Target.Name)
  625.         end
  626.     end
  627.  
  628.     if IsInTable({"unloopheal","unlooprepair","unlooprestore","unrapidheal","ulh"}, Args.Command) and Args[1] ~= nil then
  629.         if Args[1] == "others" or Args[1] == "all" then
  630.             for i = 1,#LoopTables.loopheal do
  631.                 table.remove(LoopTables.loopheal, 1)
  632.             end
  633.             return
  634.         end
  635.         for i,v in pairs(LoopTables.loopheal) do
  636.             if string.lower(string.sub(v, 0,#Args[1])) == string.lower(Args[1]) then
  637.                 table.remove(LoopTables.loopheal, i)
  638.             end
  639.         end
  640.     end
  641.  
  642.     if IsInTable({"lhs","loopheals","loophealed","loopheallist","autoheals","autoheallist"}, Args.Command) then
  643.         print("--- Printing LoopHeal List ---")
  644.         for i,v in pairs(LoopTables.loopheal) do
  645.             print(i..": "..v)
  646.         end
  647.         print("------------ Done ------------")
  648.     end
  649.  
  650.     if IsInTable({"loops","looplist","looplists"}, Args.Command) then
  651.         print("")
  652.         print("--- Printing Loopkill List ---")
  653.         for i,v in pairs(LoopTables.loopkill) do
  654.             print(i..": "..v)
  655.         end
  656.         print("------------ Done ------------")
  657.         print("")
  658.         print("--- Printing LoopHeal List ---")
  659.         for i,v in pairs(LoopTables.loopheal) do
  660.             print(i..": "..v)
  661.         end
  662.         print("------------ Done ------------")
  663.         print("")
  664.         print("--- Printing LoopBuff List ---")
  665.         for i,v in pairs(LoopTables.loopapply) do
  666.             local message = ""
  667.             if typeof(LoopTables.loopapply[i]) == "table" then
  668.                 for x,y in pairs(LoopTables.loopapply[i]) do
  669.                     message = message..tostring(x)..", "
  670.                 end
  671.                 message = string.sub(message, 1, #message - 2)
  672.             end
  673.             print(i..": "..message)
  674.         end
  675.         print("------------ Done ------------")
  676.         print("")
  677.     end
  678.  
  679.     if IsInTable({"effect","applyeffect","debuff","apply","buff","effectme","applyme","debuffme","buffme"}, Args.Command) then
  680.         if Args[1] == "all" or Args[1] == "others" then
  681.             if IsInTable({"effectme","applyme","debuffme","buffme"}, Args.Command) then
  682.                 return
  683.             end
  684.             local Players = game.Players:GetPlayers()
  685.             if Args[1] == "others" then
  686.                 for i = 1,#Players do
  687.                     if Players[i] == game.Players.LocalPlayer then
  688.                         table.remove(Players, i)
  689.                     end
  690.                 end
  691.             end
  692.             for i,v in pairs(Players) do
  693.                 if v.Character ~= nil then
  694.                     if Args[2] == "random" then
  695.                         local EffectNames = {}
  696.                         for i,v in pairs(effects) do
  697.                             table.insert(EffectNames, tostring(i))
  698.                         end
  699.                         if tonumber(Args[3]) ~= nil then
  700.                             for i = 1,tonumber(Args[3]) do
  701.                                 applyeffect(v.Character, EffectNames[math.random(1,#EffectNames)])
  702.                             end
  703.                         else
  704.                             applyeffect(v.Character, EffectNames[math.random(1,#EffectNames)])
  705.                         end
  706.                     else
  707.                         if tonumber(Args[3]) ~= nil then
  708.                             for i = 1,tonumber(Args[3]) do
  709.                                 applyeffect(v.Character, Args[2])
  710.                             end
  711.                         else
  712.                             applyeffect(v.Character, Args[2])
  713.                         end
  714.                     end
  715.                 end
  716.             end
  717.             return
  718.         end
  719.         local Target = nil
  720.         if Args[1] == "me" or Args[1] == "myself" or IsInTable({"effectme","applyme","debuffme","buffme"}, Args.Command) then
  721.             Target = game.Players.LocalPlayer
  722.         elseif Args[1] == "random" then
  723.             local Players = GetAlivePlayers()
  724.             if Players[1] ~= nil then
  725.                 Target = Players[math.random(1,#Players)]
  726.             end
  727.         else
  728.             Target = getplayer(Args[1])
  729.         end
  730.         if Target ~= nil then
  731.             if Target.Character ~= nil then
  732.                 if Args[2] == "random" then
  733.                     local EffectNames = {}
  734.                     for i,v in pairs(effects) do
  735.                         table.insert(EffectNames, tostring(i))
  736.                     end
  737.                     if tonumber(Args[3]) ~= nil then
  738.                         for i = 1,tonumber(Args[3]) do
  739.                             applyeffect(Target.Character, EffectNames[math.random(1,#EffectNames)])
  740.                         end
  741.                     else
  742.                         applyeffect(Target.Character, EffectNames[math.random(1,#EffectNames)])
  743.                     end
  744.                 else
  745.                     if tonumber(Args[3]) ~= nil then
  746.                         for i = 1,tonumber(Args[3]) do
  747.                             applyeffect(Target.Character, Args[2])
  748.                         end
  749.                     else
  750.                         applyeffect(Target.Character, Args[2])
  751.                     end
  752.                 end
  753.             end
  754.         end
  755.     end
  756.  
  757.     if IsInTable({"effects","effectslist","debuffs","buffs","debufflist","bufflist","searcheffects"}, Args.Command) then
  758.         print("---- Printing Effect List ----")
  759.         for i,v in pairs(effects) do
  760.             local ClassName = v:FindFirstAncestorOfClass("Folder"):FindFirstAncestorOfClass("Folder").Name
  761.             if Args[1] ~= nil then
  762.                 if string.lower(string.sub(ClassName,1,#Args[1])) == string.lower(Args[1]) or string.find(string.lower(v.Name), string.lower(Args[1])) then
  763.                     print(v.Name.." ("..ClassName..")")
  764.                 end
  765.             else
  766.                 print(v.Name.." ("..ClassName..")")
  767.             end
  768.         end
  769.         print("------------ Done ------------")
  770.     end
  771.  
  772.     if IsInTable({"loopapply","loopbuff","loopdebuff","rapidapply","la","loopapplyme","loopbuffme"}, Args.Command) and Args[1] ~= nil and Args[2] ~= nil then
  773.         local LoopEffect = nil
  774.         for i,v in pairs(effects) do
  775.             if string.lower(string.sub(tostring(i), 1, #Args[2])) == string.lower(Args[2]) then
  776.                 LoopEffect = string.lower(i)
  777.             end
  778.         end
  779.         if LoopEffect == nil then
  780.             return
  781.         end
  782.         if Args[1] == "others" or Args[1] == "all" then
  783.             local Players = game.Players:GetPlayers()
  784.             if Args[1] == "others" then
  785.                 for i = 1,#Players do
  786.                     if Players[i] == game.Players.LocalPlayer then
  787.                         table.remove(Players, i)
  788.                     end
  789.                 end
  790.             end
  791.             for i,v in pairs(Players) do
  792.                 if LoopTables.loopapply[v.Name] ~= nil then
  793.                     if LoopTables.loopapply[v.Name][LoopEffect] == nil then
  794.                         LoopTables.loopapply[v.Name][LoopEffect] = true
  795.                     end
  796.                 else
  797.                     LoopTables.loopapply[v.Name] = {}
  798.                     LoopTables.loopapply[v.Name][LoopEffect] = true
  799.                 end
  800.             end
  801.             return
  802.         end
  803.         local Target = nil
  804.         if Args[1] == "me" or Args[1] == "myself" or IsInTable({"loopapplyme","loopbuffme"}, Args.Command) then
  805.             Target = game.Players.LocalPlayer
  806.         elseif Args[1] == "random" then
  807.             local Players = GetAlivePlayers()
  808.             if Players[1] ~= nil then
  809.                 Target = Players[math.random(1,#Players)]
  810.             end
  811.         else
  812.             Target = getplayer(Args[1])
  813.         end
  814.         if Target == nil then
  815.             return
  816.         end
  817.         if LoopTables.loopapply[Target.Name] ~= nil then
  818.             if LoopTables.loopapply[Target.Name][LoopEffect] == nil then
  819.                 LoopTables.loopapply[Target.Name][LoopEffect] = true
  820.             end
  821.         else
  822.             LoopTables.loopapply[Target.Name] = {}
  823.             LoopTables.loopapply[Target.Name][LoopEffect] = true
  824.         end
  825.     end
  826.  
  827.     if IsInTable({"unloopapply","unloopbuff","unloopdebuff","unrapidapply","unla"}, Args.Command) and Args[1] ~= nil then
  828.         if Args[1] == "others" or Args[1] == "all" then
  829.             local Players = {}
  830.             for i,v in pairs(LoopTables.loopapply) do
  831.                 Players[i] = v
  832.             end
  833.             if Args[1] == "others" then
  834.                 for i,v in pairs(Players) do
  835.                     if i == game.Players.LocalPlayer.Name then
  836.                         Players[i] = nil
  837.                     end
  838.                 end
  839.             end
  840.             for i,v in pairs(Players) do
  841.                 if LoopTables.loopapply[i] ~= nil then
  842.                     if Args[2] == nil then
  843.                         LoopTables.loopapply[i] = nil
  844.                     else
  845.                         for x,y in pairs(LoopTables.loopapply[i]) do
  846.                             if string.lower(string.sub(tostring(x), 1, #Args[2])) == string.lower(Args[2]) then
  847.                                 LoopTables.loopapply[i][x] = nil
  848.                                 local Number = 0
  849.                                 for i,v in pairs(LoopTables.loopapply[i]) do
  850.                                     Number = Number + 1
  851.                                 end
  852.                                 if Number == 0 then
  853.                                     LoopTables.loopapply[i] = nil
  854.                                 end
  855.                             end
  856.                         end
  857.                     end
  858.                 end
  859.             end
  860.             return
  861.         end
  862.         if Args[1] == "me" or Args[1] == "myself" then
  863.             Args[1] = game.Players.LocalPlayer.Name
  864.         end
  865.         for i,v in pairs(LoopTables.loopapply) do
  866.             if string.lower(string.sub(i, 0,#Args[1])) == string.lower(Args[1]) then
  867.                 if Args[2] ~= nil then
  868.                     for x,y in pairs(LoopTables.loopapply[i]) do
  869.                         if string.lower(string.sub(x, 0,#Args[2])) == string.lower(Args[2]) then
  870.                             LoopTables.loopapply[i][x] = nil
  871.                         end
  872.                     end
  873.                 else
  874.                     LoopTables.loopapply[i] = nil
  875.                 end
  876.                 -- LoopTables.loopapply[i] = nil
  877.             end
  878.         end
  879.     end
  880.  
  881.     if IsInTable({"applylist","loopapplys","loopapplies","loopeffects","loopbuffs","loopdebuffs"}, Args.Command) then
  882.         print("--- Printing LoopBuff List ---")
  883.         for i,v in pairs(LoopTables.loopapply) do
  884.             local message = ""
  885.             if typeof(LoopTables.loopapply[i]) == "table" then
  886.                 for x,y in pairs(LoopTables.loopapply[i]) do
  887.                     message = message..tostring(x)..", "
  888.                 end
  889.                 message = string.sub(message, 1, #message - 2)
  890.             end
  891.             print(i..": "..message)
  892.         end
  893.         print("------------ Done ------------")
  894.     end
  895.  
  896.     if IsInTable({"setkey","hotkey","applykey","keyset","sethotkey","hotkeyset"}, Args.Command) and Args[1] ~= nil and Args[2] ~= nil then
  897.         if string.lower(Args[1]) == "r" or string.lower(Args[1]) == "t" then
  898.             game.StarterGui:SetCore("SendNotification", {
  899.                 Title = "Can't set that key";
  900.                 Text = "The R and T keys cannot be changed";
  901.                 Icon = "rbxassetid://2541869220";
  902.                 Duration = 7;
  903.             })
  904.             return
  905.         end
  906.         if #Args[1] ~= 1 or string.find(Args[1], "%d") or string.find(Args[1], "%p") or string.find(Args[1], "%s") then
  907.             game.StarterGui:SetCore("SendNotification", {
  908.                 Title = "Not quite...";
  909.                 Text = "Set keys must be a single letter character";
  910.                 Icon = "rbxassetid://2541869220";
  911.                 Duration = 7;
  912.             })
  913.             return
  914.         end
  915.         local Effect = nil
  916.         for i,v in pairs(effects) do
  917.             if string.lower(string.sub(tostring(i), 1, #Args[2])) == string.lower(Args[2]) then
  918.                 Effect = string.lower(i)
  919.             end
  920.         end
  921.         if Effect == nil then
  922.             return
  923.         end
  924.         if Args[3] == "me" or Args[3] == "myself" then
  925.             hotkeys[Args[1]] = function()
  926.                 if game.Players.LocalPlayer.Character ~= nil then
  927.                     applyeffect(game.Players.LocalPlayer.Character, Effect)
  928.                 end
  929.             end
  930.         else
  931.             hotkeys[Args[1]] = function()
  932.                 local Target = GetClosestPlayer()
  933.                 if Target == nil then
  934.                     return
  935.                 end
  936.                 if Target.Character ~= nil then
  937.                     applyeffect(Target.Character, Effect)
  938.                 end
  939.             end
  940.         end
  941.         game.StarterGui:SetCore("SendNotification", {
  942.             Title = "Done!";
  943.             Text = "Set the "..string.upper(Args[1]).." key to the "..string.upper(Effect).." effect!";
  944.             Icon = "rbxassetid://2541869220";
  945.             Duration = 3;
  946.         })
  947.     end
  948.  
  949.     if IsInTable({"bleed","cut"}, Args.Command) and Args[1] ~= nil then
  950.         local Target = getplayer(Args[1])
  951.         if Target ~= nil then
  952.             if Target.Character ~= nil then
  953.                 applyeffect(Target.Character, "bleed")
  954.             end
  955.         end
  956.     end
  957.  
  958.     if IsInTable({"blind","blindfold"}, Args.Command) and Args[1] ~= nil then
  959.         local Target = getplayer(Args[1])
  960.         if Target ~= nil then
  961.             if Target.Character ~= nil then
  962.                 applyeffect(Target.Character, "blind")
  963.             end
  964.         end
  965.     end
  966.  
  967.     if IsInTable({"regen","superregen"}, Args.Command) and Args[1] ~= nil then
  968.         local Target = nil
  969.         if Args[1] == "me" or Args[1] == "myself" then
  970.             Target = game.Players.LocalPlayer
  971.         else
  972.             Target = getplayer(Args[1])
  973.         end
  974.         if Target ~= nil then
  975.             if Target.Character ~= nil then
  976.                 applyeffect(Target.Character, "superregen")
  977.             end
  978.         end
  979.     end
  980.  
  981.     if IsInTable({"unsetkey","unhotkey","unapplykey","unkeyset","unsethotkey","unhotkeyset","removekey","removehotkey"}, Args.Command) and Args[1] ~= nil then
  982.         if hotkeys[Args[1]] ~= nil then
  983.             hotkeys[Args[1]] = nil
  984.             game.StarterGui:SetCore("SendNotification", {
  985.                 Title = "Done!";
  986.                 Text = "Removed the effect binded to "..string.upper(Args[1]);
  987.                 Icon = "rbxassetid://2541869220";
  988.                 Duration = 3;
  989.             })
  990.         end
  991.     end
  992.  
  993.     if IsInTable({"nocooldown","ncd","nocool","rapid","rapidattack","instantcool","instantcooldown"}, Args.Command) then
  994.         toggles.nocooldown = true
  995.         game.StarterGui:SetCore("SendNotification", {
  996.             Title = "No CoolDown";
  997.             Text = "No CoolDown is now ON!";
  998.             Icon = "rbxassetid://2541869220";
  999.             Duration = 3;
  1000.         })
  1001.     end
  1002.  
  1003.     if IsInTable({"unnocooldown","uncd","unnocool","unrapid","unrapidattack","uninstantcool","uninstantcooldown","cooldown","regularcooldown","regcool","normalattacks","normalattack"}, Args.Command) then
  1004.         toggles.nocooldown = false
  1005.         toggles.fasternocooldown = false
  1006.         game.StarterGui:SetCore("SendNotification", {
  1007.             Title = "No CoolDown";
  1008.             Text = "No CoolDown is now OFF!";
  1009.             Icon = "rbxassetid://2541869220";
  1010.             Duration = 3;
  1011.         })
  1012.     end
  1013.  
  1014.     if IsInTable({"fasternocooldown","fncd","fasternocool","fasterrapid","fasterrapidattack","fasterinstantcool","fasterinstantcooldown"}, Args.Command) then
  1015.         toggles.nocooldown = true
  1016.         toggles.fasternocooldown = true
  1017.         game.StarterGui:SetCore("SendNotification", {
  1018.             Title = "Faster No CoolDown";
  1019.             Text = "FASTER No CoolDown is now ON!";
  1020.             Icon = "rbxassetid://2541869220";
  1021.             Duration = 3;
  1022.         })
  1023.     end
  1024.  
  1025.     if IsInTable({"god","inffairy","godmode","semigod"}, Args.Command) then
  1026.         if Args[1] == "others" then
  1027.             for i,v in pairs(game.Players:GetPlayers()) do
  1028.                 if not IsInTable(LoopTables.godmode, v.Name) and v ~= game.Players.LocalPlayer then
  1029.                     table.insert(LoopTables.godmode, v.Name)
  1030.                 end
  1031.             end
  1032.             return
  1033.         end
  1034.         if Args[1] == "all" then
  1035.             for i,v in pairs(game.Players:GetPlayers()) do
  1036.                 if not IsInTable(LoopTables.godmode, v.Name) then
  1037.                     table.insert(LoopTables.godmode, v.Name)
  1038.                 end
  1039.             end
  1040.             return
  1041.         end
  1042.         local Target = nil
  1043.         if Args[1] == "me" or Args[1] == "myself" or Args[1] == nil or IsInTable({"healme","repairme","restoreme"}, Args.Command) then
  1044.             Target = game.Players.LocalPlayer
  1045.         elseif Args[1] == "random" then
  1046.             local Players = GetAlivePlayers()
  1047.             if Players[1] ~= nil then
  1048.                 Target = Players[math.random(1,#Players)]
  1049.             end
  1050.         else
  1051.             Target = getplayer(Args[1])
  1052.         end
  1053.         if Target == nil then
  1054.             return
  1055.         end
  1056.         if not IsInTable(LoopTables.godmode, Target.Name) then
  1057.             table.insert(LoopTables.godmode, Target.Name)
  1058.         end
  1059.     end
  1060.  
  1061.     if IsInTable({"ungod","uninffairy","ungodmode","unsemigod"}, Args.Command) then
  1062.         if Args[1] == "others" or Args[1] == "all" then
  1063.             for i = 1,#LoopTables.godmode do
  1064.                 if Args[1] == "others" and LoopTables.godmode[i] ~= string.lower(game.Players.LocalPlayer.Name) then
  1065.                     table.remove(LoopTables.godmode, 1)
  1066.                 else
  1067.                     table.remove(LoopTables.godmode, 1)
  1068.                 end
  1069.             end
  1070.             return
  1071.         end
  1072.         if Args[1] == "me" or Args[1] == "myself" or Args[1] == nil then
  1073.             Args[1] = game.Players.LocalPlayer.Name
  1074.         end
  1075.         for i,v in pairs(LoopTables.godmode) do
  1076.             if string.lower(string.sub(v, 0,#Args[1])) == string.lower(Args[1]) then
  1077.                 table.remove(LoopTables.godmode, i)
  1078.             end
  1079.         end
  1080.     end
  1081.  
  1082.     if IsInTable({"semiinvis","invis","inv"}, Args.Command) then
  1083.         invis()
  1084.     end
  1085.  
  1086.     if IsInTable({"unsemiinvis","uninvis","uninv"}, Args.Command) then
  1087.        
  1088.     end
  1089.  
  1090. end)
  1091.  
  1092. mouse.KeyDown:Connect(function(key)
  1093.     if key == "r" then
  1094.         local Target = GetClosestPlayer()
  1095.         if Target ~= nil then
  1096.             damage(Target.Character, 1000) -- thank you egg salad
  1097.         end
  1098.     end
  1099.     if key == "t" then
  1100.         if game.Players.LocalPlayer.Character ~= nil then
  1101.             heal(game.Players.LocalPlayer.Character, 1000)
  1102.         end
  1103.     end
  1104.     if key == "h" then
  1105.         toggles.draw = true
  1106.     end
  1107.     for i,v in pairs(hotkeys) do
  1108.         if i == key then
  1109.             v()
  1110.         end
  1111.     end
  1112. end)
  1113.  
  1114. mouse.KeyUp:Connect(function(key)
  1115.     if key == "h" then
  1116.         toggles.draw = false
  1117.     end
  1118. end)
  1119.  
  1120. game:GetService('RunService').Stepped:Connect(function()
  1121.     if debounces.loopkill == false then
  1122.         debounces.loopkill = true
  1123.         for i,v in pairs(LoopTables.loopkill) do
  1124.             if game.Players:FindFirstChild(v) then
  1125.                 local Target = game.Players:FindFirstChild(v)
  1126.                 if Target.Character ~= nil then
  1127.                     damage(Target.Character, 1000) -- thank you egg salad
  1128.                 end
  1129.             end
  1130.         end
  1131.         debounces.loopkill = false
  1132.     end
  1133. end)
  1134. game:GetService('RunService').Stepped:Connect(function()
  1135.     if debounces.loopheal == false then
  1136.         debounces.loopheal = true
  1137.         for i,v in pairs(LoopTables.loopheal) do
  1138.             if game.Players:FindFirstChild(v) then
  1139.                 local Target = game.Players:FindFirstChild(v)
  1140.                 if Target.Character ~= nil then
  1141.                     heal(Target.Character, 1000)
  1142.                 end
  1143.             end
  1144.         end
  1145.         debounces.loopheal = false
  1146.     end
  1147. end)
  1148. game:GetService('RunService').Stepped:Connect(function()
  1149.     if debounces.loopapply == false then
  1150.         debounces.loopapply = true
  1151.         for i,v in pairs(LoopTables.loopapply) do
  1152.             if game.Players:FindFirstChild(i) then
  1153.                 local Player = game.Players[i]
  1154.                 for x,y in pairs(LoopTables.loopapply[i]) do
  1155.                     if Player ~= nil then
  1156.                         if Player.Character ~= nil then
  1157.                             applyeffect(Player.Character, x)
  1158.                         end
  1159.                     end
  1160.                 end
  1161.             end
  1162.         end
  1163.         debounces.loopapply = false
  1164.     end
  1165. end)
  1166. game:GetService('RunService').Stepped:Connect(function()
  1167.     if debounces.nocooldown == false and toggles.nocooldown == true and mainscriptenv ~= nil and toset.Critical ~= nil then
  1168.         debounces.nocooldown = true
  1169.         pcall(function()
  1170.             debug.setupvalue(mainscriptenv.usingattack, toset.Attack, 0)
  1171.             debug.setupvalue(mainscriptenv.usingability1, toset.First, 0)
  1172.             debug.setupvalue(mainscriptenv.usingability2, toset.Second, 0)
  1173.             debug.setupvalue(mainscriptenv.usingcritical, toset.Critical, 0)
  1174.             if toggles.fasternocooldown == true then
  1175.                 setbools()
  1176.             end
  1177.         end)
  1178.         debounces.nocooldown = false
  1179.     end
  1180.     if toggles.draw == true then
  1181.         local l__Remotes__13 = game.ReplicatedStorage.Remotes
  1182.         local l__LocalPlayer__2 = game.Players.LocalPlayer
  1183.         local l__Character__4 = game.Players.LocalPlayer.Character
  1184.         local l__ability2b__41 = game.ReplicatedStorage.Classes.JUGGERNAUT.Projectile.ability2b;
  1185.         local v42 = mouse.Hit
  1186.         local v43 = l__ability2b__41:Clone();
  1187.         v43.Owner.Value = l__LocalPlayer__2;
  1188.         v43.Origin.Value = v42.p;
  1189.         v43.CFrame = v42;
  1190.         v43.Color = l__LocalPlayer__2.CharacterColors.WeaponColor.Value;
  1191.         v43.Speed.Value = v43.Speed.Value;
  1192.         local l__ProjectileHandler__44 = v43.ProjectileHandler;
  1193.         l__ProjectileHandler__44.Projectile.Value = v43;
  1194.         l__ProjectileHandler__44.Parent = l__Character__4;
  1195.         v43.Parent = workspace;
  1196.         l__Remotes__13.Projectile:FireServer(l__ability2b__41, v42, l__LocalPlayer__2.CharacterColors.WeaponColor.Value);
  1197.     end -- ripped this straight out of the decompiled juggernaut main localscript.
  1198. end) -- was too lazy to change the variable names
  1199.  
  1200. --[[
  1201. game:GetService('RunService').Stepped:Connect(function()
  1202.     if debounces.nocooldown == false and toggles.nocooldown == true and mainscriptenv ~= nil and toset.Critical ~= nil then
  1203.         debounces.nocooldown = true
  1204.         pcall(function()
  1205.             debug.setupvalue(mainscriptenv.usingattack, toset.Attack, 0)
  1206.             debug.setupvalue(mainscriptenv.usingability1, toset.First, 0)
  1207.             debug.setupvalue(mainscriptenv.usingability2, toset.Second, 0)
  1208.             debug.setupvalue(mainscriptenv.usingcritical, toset.Critical, 0)
  1209.             for i,v in pairs(CooldownBools) do
  1210.                 CooldownBools[i] = false
  1211.             end
  1212.         end)
  1213.         debounces.nocooldown = false
  1214.     end
  1215. end)
  1216. --]]
  1217.  
  1218. game:GetService('RunService').Stepped:Connect(function()
  1219.     --if debounces.godmode == false then
  1220.         debounces.godmode = true
  1221.         for i,v in pairs(LoopTables.godmode) do
  1222.             if game.Players:FindFirstChild(v) then
  1223.                 local Target = game.Players:FindFirstChild(v)
  1224.                 if Target.Character ~= nil then
  1225.                     forcefield(Target.Character)
  1226.                     heal(Target.Character, 1000)
  1227.                 end
  1228.             end
  1229.         end
  1230.         --wait()
  1231.         debounces.godmode = false
  1232.     --end
  1233. end) -- I used multiple connections on the run event. Piss and cry
  1234.  
  1235. game.StarterGui:SetCore("SendNotification", {
  1236.     Title = "Done injecting!";
  1237.     Text = "Critical Strike Mega-Script by Aidez";
  1238.     Icon = "rbxassetid://847562022";
  1239.     Duration = 3;
  1240. })
  1241. game.StarterGui:SetCore("SendNotification", {
  1242.     Title = "F9 to see commands";
  1243.     Text = "Press F9 to see a list of all the script's features!";
  1244.     Icon = "rbxassetid://2541869220";
  1245.     Duration = 7;
  1246. })
  1247.  
  1248.  
  1249. print("----------------FEATURES-------------------")
  1250. print("Chat commands can also be done as /e :COMMANDNAME or /e COMMANDNAME")
  1251. print("-------------------------------------------")
  1252. print("---------KEYS---------")
  1253. print("")
  1254. print("R Key - kills the player closest to your mouse")
  1255. print("T Key - heals yourself")
  1256. print("H Key - Draw")
  1257. print("")
  1258. print("---------CHAT COMMANDS---------")
  1259. print("Shortened names work")
  1260. print("-------------------------------")
  1261. print("")
  1262. print(":kill PLAYERNAME - Kills the target player")
  1263. print(":kill others - Kills everyone else")
  1264. print(":kill random - Kills a random player")
  1265. print(":kill random NUMBER - Kills a certain amount of random players")
  1266. print("")
  1267. print(":loopkill PLAYERNAME - Kills the player at the start of each round")
  1268. print(":loopkill others - Loopkills everyone")
  1269. print(":unloopkill PLAYERNAME - Unloopkills the player")
  1270. print(":unloopkill all - Removes everyone from the loopkill list")
  1271. print(":lks - Prints a list of people being loopkilled")
  1272. print("")
  1273. print(":1v1 PLAYERNAME - Kills everyone BUT you and the target player")
  1274. print(":1v1 random - Kills everyone except you and a random player")
  1275. print(":1v1 PLAYERNAME PLAYERNAME - Kills everyone but the two players")
  1276. print("")
  1277. print(":damage PLAYERNAME NUMBER - Takes away a certain amount of health from the player")
  1278. print(":damage PLAYERNAME random - Takes away a random amount of health from the player")
  1279. print(":damage PLAYERNAME 1/NUMBER - Takes away a fraction of a player's health")
  1280. print(":damage others (ABOVE OPTIONS) - Same things as above, just to other players")
  1281. print(":damage all (ABOVE OPTIONS) - Same things as above, just to ALL players")
  1282. print("")
  1283. print(":heal PLAYER - Fully heals PLAYER (put me for PLAYER to do yourself)")
  1284. print(":heal PLAYER NUMBER - Heals PLAYER by NUMBER (put me for PLAYER to do yourself)")
  1285. print(":heal PLAYER random - Heals PLAYER by a random amount")
  1286. print("")
  1287. print(":heal random - Fully heals a random player")
  1288. print(":heal random NUMBER - Heals a random player by NUMBER")
  1289. print(":heal random random - Heals a random player by a random amount")
  1290. print("")
  1291. print(":healme - Fully heals you")
  1292. print(":healme NUMBER - Heals yourself by NUMBER")
  1293. print(":healme random - Heals yourself by a random amount")
  1294. print("")
  1295. print(":apply PLAYER EFFECT - Applies the effect to player")
  1296. print(":apply others EFFECT - Applies the effect to others")
  1297. print(":apply all EFFECT - Applies the effect to everyone")
  1298. print("- You can do :apply PLAYER EFFECT NUMBER to add NUMBER effects -")
  1299. print('- PLAYER and EFFECT can be replaced with "random" -')
  1300. print("")
  1301. print(":effects - Prints the names of all the effects that can be used with :apply")
  1302. print(":effects CLASSNAME - Prints the classname's list of effects")
  1303. print(":effects SearchTerm - Prints effect names with your term inside them")
  1304. print("- USE THIS TO FIND EFFECTS TO APPLY TO PLAYERS -")
  1305. print("")
  1306. print(":loopapply PLAYER EFFECT - rapidly adds EFFECT to PLAYER")
  1307. print(":loopapply others EFFECT - rapidly adds EFFECT to other players")
  1308. print(":loopapply all EFFECT - rapidly adds EFFECT to everyone")
  1309. print("")
  1310. print(":unloopapply PLAYER - removes ALL looped effects on the player")
  1311. print(":unloopapply PLAYER EFFECT - stops looping EFFECT on PLAYER")
  1312. print(":unloopapply all - Stops looping all looped effects")
  1313. print("")
  1314. print(":bleed PLAYER - gives the PLAYER bleed")
  1315. print(":blind PLAYER - gives the PLAYER blindness")
  1316. print(":regen PLAYER - gives the PLAYER super regen")
  1317. print(":regen me - gives you super regen")
  1318. print("- These are simplified versions of the :apply command, for easy access -")
  1319. print("")
  1320. print("ZA WARUDO - saying this will give everyone the rewind effect")
  1321. print("")
  1322. print(":sethotkey KEY EFFECT - does EFFECT to the player nearest to your mouse when you press KEY")
  1323. print(":sethotkey KEY EFFECT me - First command but the effect applies to you")
  1324. print(":removehotkey KEY - removes the effect on KEY")
  1325. print("")
  1326. print(":nocooldown - Removes cooldowns on all your moves")
  1327. print(":fasternocooldown - Faster no cooldown, breaks some moves")
  1328. print(":cooldown - Adds the cooldowns back")
  1329. print("")
  1330. print(":god PLAYER - Gods the player")
  1331. print(":god - Gods YOU")
  1332. print("")
  1333. print(":ungod PLAYER - Ungods the player")
  1334. print(":ungod - Ungods YOU")
  1335. print("")
  1336. print(":invis - makes you semi-invisible")
  1337. print("")
  1338. print("-------------------------------------------")
  1339. print("Vortexturize | aidez moi#4192 | Aidez")
  1340. print("-------------------------------------------")
  1341.  
  1342.  
  1343. --[[
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.                                                         ..                                          
  1350.                                      /yys.            `hMM/                                        
  1351.                     :ys:            `NMMMo            oMMM:                                        
  1352.                   `sMMMm             -oo:            `NMMy                                          
  1353.                  .hMMMMM+                            +MMN`        `.-::.              `            
  1354.                 -mMMyoMMN.         /hho       .:syhhomMMs       -smNMMMNy  `shysssssyhdho          
  1355.                :mMMs``dMMd`        NMMm     .smMNdhdMMMM.     `sNMNs:/MMM. `ydmmmmddMMMN+          
  1356.               +NMMs   -MMMs       :MMM/    +NMNs-  .MMMy     .dMMd- -yMMy    `````/hMMy-            
  1357.             `yMMMmosyhdMMMM+      yMMm    yMMN:   `yMMM/     dMMN+odNMd/        :hMNy:              
  1358.            -dMMMMMMmmdhyhMMM+     NMMo   /MMM-   :dMMMM-    :MMMMNmho-``:/    :hNMh-                
  1359.           +NMMm//-..``  `hMMMo`  -MMM/   yMMm``:hNMyMMM+.-- :MMMy.` `-omMd` /dMMmo/+oooo/`          
  1360.          oMMMh.          `yMMMm/ :MMMs   +MMMmmMNh: hMMNNNy  yMMMmhdmNMm+`:dMMMMNNNNmNMMMo          
  1361.          :yh+`            `/dNNs `ydh:    :shys/.   `+yso-`   :shddhy+-` oNMNho:-..```.-/`  
  1362.  
  1363. Join my discord here!:
  1364. https://discord.gg/Ez2dGeQ
  1365.  
  1366.  
  1367. A bit of credit to Egg Salad
  1368. I wouldn't have checked out critical strike again if I didn't see the script they made.
  1369. I also essentially **stole** their code for the kill script. Even if I changed it a lot.
  1370. - Check out their v3rm: https://v3rmillion.net/member.php?action=profile&uid=459543
  1371. - Check out their kill all script: https://v3rmillion.net/showthread.php?tid=1038402
  1372.  
  1373. - Also check out MY v3rmillion: https://v3rmillion.net/member.php?action=profile&uid=482542
  1374. - and the script's thread: https://v3rmillion.net/showthread.php?tid=1050099
  1375.  
  1376. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement