local ReplicatedStorage = game:GetService("ReplicatedStorage") local UIS = game:GetService("UserInputService") local Player = game.Players.LocalPlayer local OpenPack = ReplicatedStorage.Remotes:WaitForChild("OpenPack") local CollectSlot = ReplicatedStorage.Remotes:WaitForChild("CollectSlot") -- GUI local Gui = Instance.new("ScreenGui") Gui.Name = "TuffHub" Gui.ResetOnSpawn = false Gui.Parent = Player:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0,220,0,130) Frame.Position = UDim2.new(0.5,-110,0.5,-65) Frame.BackgroundColor3 = Color3.fromRGB(30,30,35) Frame.BorderSizePixel = 0 Frame.Parent = Gui Instance.new("UICorner",Frame).CornerRadius = UDim.new(0,14) local Stroke = Instance.new("UIStroke") Stroke.Color = Color3.fromRGB(70,70,80) Stroke.Thickness = 1.5 Stroke.Parent = Frame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1,0,0,30) Title.BackgroundTransparency = 1 Title.Text = "TuffHub" Title.TextColor3 = Color3.new(1,1,1) Title.Font = Enum.Font.GothamBold Title.TextScaled = true Title.Parent = Frame -- Auto Pack Button local PackButton = Instance.new("TextButton") PackButton.Size = UDim2.new(0.9,0,0,40) PackButton.Position = UDim2.new(0.05,0,0,40) PackButton.BackgroundColor3 = Color3.fromRGB(45,45,55) PackButton.Text = "Auto Pack: OFF" PackButton.TextColor3 = Color3.new(1,1,1) PackButton.Font = Enum.Font.GothamBold PackButton.TextScaled = true PackButton.Parent = Frame Instance.new("UICorner",PackButton).CornerRadius = UDim.new(0,12) -- Auto Collect Button local CollectButton = Instance.new("TextButton") CollectButton.Size = UDim2.new(0.9,0,0,40) CollectButton.Position = UDim2.new(0.05,0,0,85) CollectButton.BackgroundColor3 = Color3.fromRGB(45,45,55) CollectButton.Text = "Auto Collect: OFF" CollectButton.TextColor3 = Color3.new(1,1,1) CollectButton.Font = Enum.Font.GothamBold CollectButton.TextScaled = true CollectButton.Parent = Frame Instance.new("UICorner",CollectButton).CornerRadius = UDim.new(0,12) -- Dragging local dragging = false local dragStart, startPos Frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = Frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UIS.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart Frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- Toggles local AutoPack = false local AutoCollect = false PackButton.MouseButton1Click:Connect(function() AutoPack = not AutoPack if AutoPack then PackButton.Text = "Auto Pack: ON" PackButton.BackgroundColor3 = Color3.fromRGB(0,170,100) else PackButton.Text = "Auto Pack: OFF" PackButton.BackgroundColor3 = Color3.fromRGB(45,45,55) end end) CollectButton.MouseButton1Click:Connect(function() AutoCollect = not AutoCollect if AutoCollect then CollectButton.Text = "Auto Collect: ON" CollectButton.BackgroundColor3 = Color3.fromRGB(0,170,100) else CollectButton.Text = "Auto Collect: OFF" CollectButton.BackgroundColor3 = Color3.fromRGB(45,45,55) end end) -- Auto Pack Loop task.spawn(function() while true do if AutoPack then OpenPack:FireServer("Bronze") end task.wait(1) end end) -- Auto Collect Loop task.spawn(function() while true do if AutoCollect then for i = 1,12 do CollectSlot:FireServer(i) end end task.wait(1) end end)