local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Orb Collector by voltex GUI implementation by d4kkota on Scriptblox", LoadingTitle = "Loading...", LoadingSubtitle = "Core code by voltex", ConfigurationSaving = { Enabled = false } }) local Tab = Window:CreateTab("Main") local autoCollect = false local function gunclaimed() local orbs = {} for _, orb in pairs(workspace.Orbs:GetChildren()) do if orb:FindFirstChild("Claimed") and orb.Claimed.Value == false then table.insert(orbs, orb) end end return orbs end local function collect() local aOrbs = gunclaimed() local amount = 15 for i = 1, #aOrbs, amount do local batch = {} for j = i, math.min(i + amount - 1, #aOrbs) do table.insert(batch, aOrbs[j]) end if #batch > 0 then game:GetService("ReplicatedStorage").Actions.CollectOrb:FireServer(batch) task.wait() end end end task.spawn(function() while task.wait() do if autoCollect then collect() end end end) local Toggle = Tab:CreateToggle({ Name = "Auto Collect", CurrentValue = false, Flag = "Toggle1", Callback = function(Value) autoCollect = Value end, })