local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local env = getgenv() if env.HRRAutoKOStop then pcall(env.HRRAutoKOStop) end local session = {} env.HRRAutoKOSession = session env.HRRAutoKOStop = function() if env.HRRAutoKOSession == session then env.HRRAutoKOSession = nil end end local fastAmount, fastDelay = {20, 30}, {1.6, 2.4} local slowAmount, slowDelay = {3, 8}, {4, 7} local failMult = 3 local plr = Players.LocalPlayer local Shared = ReplicatedStorage:WaitForChild("Shared") local Net = require(Shared:WaitForChild("Net"):WaitForChild("Net")) local Tools = require(Shared:WaitForChild("Config"):WaitForChild("Tools")) local rand = Random.new() local maxUnlock = 0 for _, tool in pairs(Tools) do if type(tool) == "table" and type(tool.unlock) == "number" and tool.unlock > maxUnlock then maxUnlock = tool.unlock end end local function getKOs() local stats = plr:FindFirstChild("leaderstats") local kos = stats and stats:FindFirstChild("KOs") if kos and kos:IsA("ValueBase") and type(kos.Value) == "number" then return kos.Value end end task.spawn(function() while env.HRRAutoKOSession == session do local kos = getKOs() local fast = kos ~= nil and kos < maxUnlock local amount = fast and fastAmount or slowAmount local delayRange = fast and fastDelay or slowDelay local ok, res = pcall(Net.request, "ReportKOs", rand:NextInteger(amount[1], amount[2])) local waitTime = rand:NextNumber(delayRange[1], delayRange[2]) if not ok or type(res) ~= "table" or not res.ok then waitTime *= failMult end task.wait(waitTime) end end)