Autofarm
Key Required

Autofarm

[🎲] Unboxing RNGmcdaggittmcdaggitt 11.2K views 85 executesUpdated Oct 7, 2025
3.3/ 5(3 votes)
2167% Positive
Lua Script•72 lines (2011 chars)
_G.ScriptEnabled = true
_G.AutoClaim = true
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local OpenCase = ReplicatedStorage.Cases.Remotes.OpenCase
local ClickMoney = ReplicatedStorage.UI.Remotes.ClickMoney
local ClaimGift = ReplicatedStorage.GiftFolder.ClaimGift

local weightedCases = {
    {name = "2014 Summer Case", weight = 10},
    {name = "Free Case", weight = 50},
    {name = "Recoil Case", weight = 10},
    {name = "Revolution Case", weight = 10},
    {name = "Fracture Case", weight = 10},
    {name = "Kilowatt Case", weight = 5},
    {name = "Snakebite Case", weight = 5},
}

local function pickWeightedCase()
    local totalWeight = 0
    for _, c in ipairs(weightedCases) do
        totalWeight = totalWeight + c.weight
    end
    local rand = math.random() * totalWeight
    local cumulative = 0
    for _, c in ipairs(weightedCases) do
        cumulative = cumulative + c.weight
        if rand <= cumulative then
            return c.name
        end
    end
    return weightedCases[1].name
end
task.spawn(function()
    while _G.ScriptEnabled do
        local caseName = pickWeightedCase()
        local success, result = pcall(function()
            return OpenCase:InvokeServer(caseName, 1)
        end)
        if success then
            if result == nil then
            else
                print(caseName .. " opened:", result)
            end
        else
        end
        task.wait(0.5)
    end
end)
task.spawn(function()
    while _G.ScriptEnabled do
        pcall(function()
            ClickMoney:FireServer()
        end)
        task.wait()
    end
end)
task.spawn(function()
    while _G.ScriptEnabled and _G.AutoClaim do
        for i = 1, 9 do
            local success, result = pcall(function()
                return ClaimGift:InvokeServer(i)
            end)
            if success then
                if result == nil then
                else
                end
            else
            end
            task.wait()
        end
    end
end)

Features & Information

# Open Sourced () Basically Auto Opens cases and automatically claims the gifts so you can stay afk -- no anti afk included - I will not make/improve scripts for the game since I wasted too much time + bad game Features: Add case names to the list and you must include a weight - How often should what case open
#Autofarm

Community Comments (2)

vampicist00vampicist00Feb 2, 2026

doesnt load

2Bad4Uss2Bad4UssApr 30, 2026

please add a gui

More Scripts for [🎲] Unboxing RNG