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)