Roblox Bug Catching Simulator Script Auto Farm Auto Swing and Auto Sell GUI

Roblox Bug Catching Simulator Script Auto Farm Auto Swing and Auto Sell GUI

Script by HamstaGang

local library = loadstring(game:HttpGet("https://pastebin.com/raw/CkyR8ePz", true))()
local w = library:CreateWindow('Bug Catching GUI')

w:Section('Made by HamstaGang (V3RM)')

local a = w:Toggle('Auto Swing', {flag = "Swing"})
local b = w:Toggle('Auto Sell', {flag = "Sell"})

-- Auto Swing (RenderStepped loop -- Very Quick)
spawn(function()
    game:GetService('RunService').RenderStepped:connect(function()
        if w.flags.Swing then
            game:GetService("ReplicatedStorage").Connections.Swing:InvokeServer()
        end
    end)
end)

-- Auto Sell (While Wait Loop - Slower but we don't need to check that often)
spawn(function()
    while wait() do
        if w.flags.Sell then
            pcall(function() -- Avoid erroring out
                        -- We include the locals in the while loop so they update.
                        local BackpackCountRaw = game.Players.LocalPlayer.PlayerGui.ScreenGui.BugInventory.Frame.Counter.Text -- Grab backpack count
                        local BackpackCount = BackpackCountRaw:split("/"); -- Split the numbers from count via slash (num/num)
            
                        if tonumber(BackpackCount[1]) >= tonumber(BackpackCount[2]) then -- If Full
                               game:GetService("ReplicatedStorage").Connections.SellAll:InvokeServer() -- Sell
                        end
                    end)
        end
    end
end)
%d bloggers like this: