Roblox Scripts Clicker Simulator Autofarm

getgenv().settings={
    ["click"]=false,
   ["rebirth"]=false,
    ["quests"]=false,
    ["equipBest"]=false,
    ["gift"]=false,
   ["combine"]=false,
   ["upgradeJump"]=false
}
function tap()
    spawn(function()
        while wait() do
            if not getgenv().settings["click"] then break end
            mouse1click()
        end
    end)
end
--Next 12 lines are useless at the moment

local args = {
    [1] = "Earth Elemental Dog"
}
game:GetService("ReplicatedStorage").Events.Client.purchaseRebirthShopItem:FireServer(unpack(args))

local args = {
    [1] = "Rebirths"
}

game:GetService("ReplicatedStorage").Events.Client.claimChestReward:InvokeServer(unpack(args))

game:GetService("ReplicatedStorage").Events.Client.getMaxDoubleJumps:InvokeServer()

function upgradeJump()
    spawn(function()
        while wait() do
            if not getgenv().settings["upgradeJump"] then break end

        local args = {
        [1] = "Lobby"
        }

    game:GetService("ReplicatedStorage").Events.Client.upgrades.upgradeDoubleJump:FireServer(unpack(args))

    end)
end
function gifts()
    spawn(function()
        while wait() do
            if not getgenv().settings["gift"] then break end
            game:GetService("ReplicatedStorage").Events.Client.collectGifts:FireServer()
        end
    end)
end

function equipPets()
    spawn(function()
        while wait() do
            if not getgenv().settings["equipBest"] then break end
        game:GetService("ReplicatedStorage").Events.Client.petsTools.equipBest:FireServer()
        end
    end)
end
function autoCraft()
    spawn(function()
        while wait() do
            if not getgenv().settings["combine"] then break end
            game:GetService("ReplicatedStorage").Events.Client.petsTools.massCombine:FireServer()
        end
    end)
end

function rebirth()
local args = {
    [1] = 10,
    [2] = false,
    [3] = false
}

game:GetService("ReplicatedStorage").Events.Client.requestRebirth:FireServer(unpack(args))

end
function questsA()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "A"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end

function questsB()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "B"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsC()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "C"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsD()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "D"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsE()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "E"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsF()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "F"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsG()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "G"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsH()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "H"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsI()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "I"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsJ()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "J"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsK()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "K"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsL()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "L"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsM()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "M"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
function questsN()
    spawn(function()
        while wait() do
            if not getgenv().settings["quests"] then break end

            local args = {
                [1] = "N"
            }

            game:GetService("ReplicatedStorage").Events.Client.claimQuest:FireServer(unpack(args))
        end
    end)
end
local library = loadstring(game:GetObjects("rbxassetid://7657867786")[1].Source)()
local Wait = library.subs.Wait -- Only returns if the GUI has not been terminated. For 'while Wait() do' loops

local PepsisWorld = library:CreateWindow({
Name = "Pepsi's World",
Themeable = {
Info = "Discord Server: VzYTJ7Y"
}
})

local GeneralTab = PepsisWorld:CreateTab({
Name = "General"
})
local FarmingSection = GeneralTab:CreateSection({
Name = "Autofarm"
})
local PetSection = GeneralTab:CreateSection({
Name = "Pets"
})
local Other = GeneralTab:CreateSection({
    Name = "Misc"
})
FarmingSection:AddToggle({
Name = "Auto Click (Broken)",
Callback=function(bool) getgenv().settings["click"]=bool
    if bool then
        tap()
    end
end,
Keybind =  {
Mode=   "Dynamic"
}

})
FarmingSection:AddToggle({
Name = "Auto claim achievements",
Callback = function(bool)
    getgenv().settings["quests"]=bool
    if bool then
        questsA()
        questsB()
        questsC()
        questsD()
        questsE()
        questsF()
        questsG()
        questsH()
        questsI()
        questsJ()
        questsK()
        questsL()
        questsM()
        questsN()
    end
end
})
PetSection:AddToggle({
Name = "Auto craft pets",
Callback = function(bool)
    getgenv().settings["combine"]=bool
    if bool then
        autoCraft()
    end
end
})
PetSection:AddToggle({
    Name = "Auto equip best pets",
    Callback = function(bool)
        getgenv().settings["equipBest"]=bool
        if bool then
        equipPets()
        end
        end
})
Other:AddToggle({
    Name = "Auto collect gifts",
    Callback = function(bool)
        getgenv().settings["gift"]=bool
        if bool then
            gifts()
        end
        end
})