local MacLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/biggaboy212/Public-Resources/main/MacLib/maclib.lua"))();
local Window = MacLib:Window({Title="TR2 FARM",Subtitle="Tha Raq 2",Size=UDim2.fromOffset(550, 380),DragStyle=1});
local GlobalTabGroup = Window:TabGroup();
local InfoTab = GlobalTabGroup:Tab({Name="info",Image="rbxassetid://10734950339"});
local InfoSection = InfoTab:Section({Name="read me"});
InfoSection:Label({
Text = "make sure 2 start the garbage job manually first",
Title = "xd",
Description = "xd",
Default = true
})
local MainTab = GlobalTabGroup:Tab({Name="garbage autofarm",Image="rbxassetid://10723415535"});
local FarmSection = MainTab:Section({Name="auto trash farm"});
local ReplicatedStorage = game:GetService("ReplicatedStorage");
local SharedModules = ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Shared");
local NetworkEvents = require(SharedModules.Networking.Events);
local GarbageService = NetworkEvents.clientGarbageJob:client();
_G.AutoFarm = false;
local isLoopRunning = false;
local function runFarmLoop()
if isLoopRunning then
return;
end
isLoopRunning = true;
while _G.AutoFarm do
print("[Auto-Farm] Grabbing trash...")
pcall(function()
GarbageService:invoke("GetTrash");
end);
task.wait(1);
if not _G.AutoFarm then
break;
end
print("[Auto-Farm] Delivering trash...")
pcall(function()
GarbageService:invoke("DeliverTrash");
end);
task.wait(1);
end
isLoopRunning = false;
print("[Auto-Farm] Loop cleanly stopped.");
end
FarmSection:Toggle({Name="Enable Auto-Farm",Default=false,Callback=function(state)
_G.AutoFarm = state;
print("[Auto-Farm] UI state changed to:", _G.AutoFarm);
if _G.AutoFarm then
task.spawn(runFarmLoop);
end
end});
Window:BindToKey(Enum.KeyCode.K);
print("--> MacLib Interface loaded successfully! Press 'K' to minimize the panel.");
Comments
No comments yet
Be the first to share your thoughts!