auto boxes collecter
Key Required

auto boxes collecter

[🐣] Miner's Haven ⛏️ Sandbox Tycoon100OTD100OTD 7.7K views 23 executesUpdated Oct 31, 2024
5.0/ 5(3 votes)
30100% Positive
Lua Scriptβ€’164 lines (6190 chars)
getgenv().OpenBox = false
getgenv().TeleportBoxes = false
getgenv().SelectedBox = "Pumpkin"
local boxes = {"Regular", "Unreal", "Inferno", "Luxury", "Red-Banded", "Spectral", "Heavenly", "Magnificent", "Festive", "Easter", "Birthday", "Twitch", "Pumpkin"}

local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local boxesFolder = game.Workspace:WaitForChild("Boxes")
local teleportInterval = 0.1

local function createGui()
    local existingGui = playerGui:FindFirstChild("AutoOpenGui")
    if existingGui then
        existingGui:Destroy()
    end

    local screenGui = Instance.new("ScreenGui")
    screenGui.Name = "AutoOpenGui"
    screenGui.Parent = playerGui

    local mainFrame = Instance.new("Frame", screenGui)
    mainFrame.Size = UDim2.new(0, 300, 0, 350)
    mainFrame.Position = UDim2.new(0.5, -150, 0.5, -175)
    mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
    mainFrame.BorderSizePixel = 0
    mainFrame.Active = true
    mainFrame.Draggable = true
    mainFrame.BackgroundTransparency = 0.2

    local corner = Instance.new("UICorner", mainFrame)
    corner.CornerRadius = UDim.new(0, 12)

    local gradient = Instance.new("UIGradient", mainFrame)
    gradient.Color = ColorSequence.new{
        ColorSequenceKeypoint.new(0, Color3.fromRGB(70, 70, 70)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(50, 50, 50))
    }

    local titleLabel = Instance.new("TextLabel", mainFrame)
    titleLabel.Size = UDim2.new(1, 0, 0, 40)
    titleLabel.Text = "Auto Open & Teleport"
    titleLabel.TextColor3 = Color3.new(1, 1, 1)
    titleLabel.BackgroundTransparency = 1
    titleLabel.TextScaled = true
    titleLabel.TextStrokeTransparency = 0.5

    local dropdownLabel = Instance.new("TextLabel", mainFrame)
    dropdownLabel.Size = UDim2.new(1, 0, 0, 30)
    dropdownLabel.Position = UDim2.new(0, 0, 0, 50)
    dropdownLabel.Text = "Select a Box:"
    dropdownLabel.TextColor3 = Color3.new(1, 1, 1)
    dropdownLabel.BackgroundTransparency = 1
    dropdownLabel.TextScaled = true

    local dropdownButton = Instance.new("TextButton", mainFrame)
    dropdownButton.Size = UDim2.new(1, 0, 0, 40)
    dropdownButton.Position = UDim2.new(0, 0, 0, 90)
    dropdownButton.Text = getgenv().SelectedBox
    dropdownButton.TextColor3 = Color3.new(1, 1, 1)
    dropdownButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
    dropdownButton.BorderSizePixel = 0

    local toggleOpenButton = Instance.new("TextButton", mainFrame)
    toggleOpenButton.Size = UDim2.new(1, 0, 0, 40)
    toggleOpenButton.Position = UDim2.new(0, 0, 0, 140)
    toggleOpenButton.Text = "Enable Auto Open"
    toggleOpenButton.TextColor3 = Color3.new(1, 1, 1)
    toggleOpenButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
    toggleOpenButton.BorderSizePixel = 0

    local toggleTeleportButton = Instance.new("TextButton", mainFrame)
    toggleTeleportButton.Size = UDim2.new(1, 0, 0, 40)
    toggleTeleportButton.Position = UDim2.new(0, 0, 0, 190)
    toggleTeleportButton.Text = "Enable TP to Boxes"
    toggleTeleportButton.TextColor3 = Color3.new(1, 1, 1)
    toggleTeleportButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
    toggleTeleportButton.BorderSizePixel = 0

    local statusLabel = Instance.new("TextLabel", mainFrame)
    statusLabel.Size = UDim2.new(1, 0, 0, 30)
    statusLabel.Position = UDim2.new(0, 0, 0, 240)
    statusLabel.Text = "Status: Off"
    statusLabel.TextColor3 = Color3.new(1, 0, 0)
    statusLabel.BackgroundTransparency = 1
    statusLabel.TextScaled = true

    local function animateButton(button)
        button.MouseEnter:Connect(function()
            button.BackgroundColor3 = Color3.fromRGB(120, 120, 120)
        end)
        button.MouseLeave:Connect(function()
            button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
        end)
        button.MouseButton1Down:Connect(function()
            button.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
        end)
        button.MouseButton1Up:Connect(function()
            button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
        end)
    end

    local function toggleAutoOpen()
        getgenv().OpenBox = not getgenv().OpenBox
        toggleOpenButton.Text = getgenv().OpenBox and "Disable Auto Open" or "Enable Auto Open"
        statusLabel.Text = "Status: " .. (getgenv().OpenBox and "On" or "Off")
        statusLabel.TextColor3 = getgenv().OpenBox and Color3.new(0, 1, 0) or Color3.new(1, 0, 0)

        if getgenv().OpenBox then
            spawn(function()
                while getgenv().OpenBox do
                    game.ReplicatedStorage.MysteryBox:InvokeServer(getgenv().SelectedBox)
                    task.wait(1)
                end
            end)
        end
    end

    local function toggleTeleport()
        getgenv().TeleportBoxes = not getgenv().TeleportBoxes
        toggleTeleportButton.Text = getgenv().TeleportBoxes and "Disable TP to Boxes" or "Enable TP to Boxes"
    end

    local function selectBox()
        local boxIndex = table.find(boxes, getgenv().SelectedBox)
        boxIndex = boxIndex == #boxes and 1 or boxIndex + 1
        getgenv().SelectedBox = boxes[boxIndex]
        dropdownButton.Text = getgenv().SelectedBox
    end

    toggleOpenButton.MouseButton1Click:Connect(toggleAutoOpen)
    toggleTeleportButton.MouseButton1Click:Connect(toggleTeleport)
    dropdownButton.MouseButton1Click:Connect(selectBox)

    animateButton(dropdownButton)
    animateButton(toggleOpenButton)
    animateButton(toggleTeleportButton)
end

player.CharacterAdded:Connect(function()
    createGui()
end)

createGui()

local function teleportToObject(object)
    if player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        player.Character.HumanoidRootPart.CFrame = object.CFrame
    end
end

local function monitorFolder()
    while true do
        if getgenv().TeleportBoxes then
            local children = boxesFolder:GetChildren()
            if #children > 0 then
                local target = children[1]
                teleportToObject(target)
            end
        end
        wait(teleportInterval)
    end
end

spawn(monitorFolder)

Features & Information

it tps to boxes and you can auto open any box
#script#op

Community Comments (8)

100OTD100OTDOct 31, 2024(edited)

btw you wont get banned im using it rn

givenher2givenher2Nov 9, 2024(edited)

Very good script, works as of 11/8/2024.

givenher2givenher2Nov 9, 2024(edited)

Also forgot, there is no GUI lol. It's straight up TPs you immediately after execution and you CANT turn it off unless you leave.

givenher2givenher2Nov 9, 2024(edited)

You get stuck in those crates with the diamond symbol btw, not sure why..

100OTD100OTDNov 12, 2024(edited)

@givenher2 its the owners problem ngl same thing happens to me also ill make a gui and update the script

givenher2givenher2Nov 16, 2024(edited)

@51cle Yea it's not too big of a problem imo, I'd say if you're really trying to get into the game on an alt account, use this to farm a couple hundred crates, then open them all to get OP exotics and contraband items. Did that and I'm like life 350 something, not crazy but way better and faster compared to playing legit.

100OTD100OTDNov 19, 2024(edited)

@givenher2 after 7 days i added a gui and added an auto open boxes feature

givenher2givenher2Nov 19, 2024(edited)

Awesome, I'll definitely try it out.

More Scripts for [🐣] Miner's Haven ⛏️ Sandbox Tycoon