--[[ .____ ________ ___. _____ __ | | __ _______ \_____ \\_ |___/ ____\_ __ ______ ____ _____ _/ |_ ___________ | | | | \__ \ / | \| __ \ __\ | \/ ___// ___\\__ \\ __\/ _ \_ __ \ | |___| | // __ \_/ | \ \_\ \ | | | /\___ \\ \___ / __ \| | ( <_> ) | \/ |_______ \____/(____ /\_______ /___ /__| |____//____ >\___ >____ /__| \____/|__| \/ \/ \/ \/ \/ \/ \/ \_Welcome to LuaObfuscator.com (Alpha 0.10.9) ~ Much Love, Ferib ]]-- local v0 = {COLLECT_INTERVAL=60,COLLECT_DELAY=0.15,SELL_AFTER_COLLECT=true,ANTI_AFK=true,DEBUG=true}; local v1 = game:GetService("ReplicatedStorage"); local v2 = game:GetService("Players"); local v3 = game:GetService("VirtualUser"); local v4 = require(v1.util.GetBridge); local v5 = require(v1.util.GetPlotModel); local v6 = v2.LocalPlayer; local function v7(v11) if v0.DEBUG then warn("[AutoFarm] " .. v11); end end if v0.ANTI_AFK then v6.Idled:Connect(function() v3:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame); task.wait(1); v3:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame); v7("Anti-AFK triggered"); end); end local function v8() local v12 = v5(v6); if not v12 then v7("Plot not found"); return; end local v13 = v12:FindFirstChild("Plot") and v12.Plot:FindFirstChild("Buildings"); if not v13 then v7("Buildings not found"); return; end local v14 = 0; for v15, v16 in ipairs(v13:GetChildren()) do local v17 = v16:GetAttribute("type"); local v18 = v16:GetAttribute("ResourcesToCollect"); if ((v17 == "Farm") and v18 and (v18 > 0)) then v4("CollectResources"):Fire(v16); v14 = v14 + 1; task.wait(v0.COLLECT_DELAY); elseif ((v17 == "Storage") or (v16.Name == "Vault")) then v4("CollectResources"):Fire(v16); v14 = v14 + 1; task.wait(v0.COLLECT_DELAY); end end v7("Collected: " .. v14 .. " buildings"); end local function v9() if not v0.SELL_AFTER_COLLECT then return; end v4("SellAll"):Fire(); v7("SellAll fired"); end getgenv()._autoLoop = true; task.spawn(function() v7("Started — stop: getgenv()._autoLoop = false"); while getgenv()._autoLoop do v8(); task.wait(1); v9(); task.wait(v0.COLLECT_INTERVAL); end v7("Loop stopped"); end);