-- Auto Pull Items Script
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local pulling = false
local connection
-- Rarity list
local rarities = {
"Common",
"Uncommon",
"Rare",
"Epic",
"Legendary"
}
-- Enabled rarities
local enabled = {
Common = true,
Uncommon = true,
Rare = true,
Epic = true,
Legendary = true
}
-- Function to pull items
local function pullItems()
if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
return
end
local hrp = player.Character.HumanoidRootPart
local targetPos = hrp.Position + Vector3.new(0, 5, 0)
for _, rarity in ipairs(rarities) do
if enabled[rarity] then
local folder = Workspace.Map.Functional.SpawnedItems:FindFirstChild(rarity)
if folder then
for _, item in ipairs(folder:GetChildren()) do
local root = item:FindFirstChild("Root")
if root and root:IsA("BasePart") then
root.CFrame = CFrame.new(targetPos)
root.Velocity = Vector3.new(0, 0, 0)
end
end
end
end
end
end
-- Create GUI
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TopBar = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local MinimizeBtn = Instance.new("TextButton")
local CloseBtn = Instance.new("TextButton")
local ToggleBtn = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local UICorner2 = Instance.new("UICorner")
local UICorner3 = Instance.new("UICorner")
local UICorner4 = Instance.new("UICorner")
-- Minimized Icon
local MinimizedIcon = Instance.new("ImageButton")
local IconCorner = Instance.new("UICorner")
ScreenGui.Name = "AutoPullGUI"
ScreenGui.Parent = player:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
Frame.Name = "MainFrame"
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
Frame.Position = UDim2.new(0.85, 0, 0.3, 0)
Frame.Size = UDim2.new(0, 200, 0, 280)
Frame.Active = true
UICorner.Parent = Frame
UICorner.CornerRadius = UDim.new(0, 10)
-- Top Bar (draggable area)
TopBar.Name = "TopBar"
TopBar.Parent = Frame
TopBar.BackgroundColor3 = Color3.fromRGB(45, 45, 55)
TopBar.Size = UDim2.new(1, 0, 0, 35)
TopBar.Active = true
UICorner3.Parent = TopBar
UICorner3.CornerRadius = UDim.new(0, 10)
-- Make frame draggable
local dragging = false
local dragInput, mousePos, framePos
TopBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
mousePos = input.Position
framePos = Frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
TopBar.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
local delta = input.Position - mousePos
Frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end
end)
Title.Parent = TopBar
Title.BackgroundTransparency = 1
Title.Position = UDim2.new(0, 10, 0, 0)
Title.Size = UDim2.new(1, -80, 1, 0)
Title.Font = Enum.Font.GothamBold
Title.Text = "Auto Pull Items"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 14
Title.TextXAlignment = Enum.TextXAlignment.Left
-- Minimize Button
MinimizeBtn.Parent = TopBar
MinimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 200, 50)
MinimizeBtn.Position = UDim2.new(1, -65, 0.5, -10)
MinimizeBtn.Size = UDim2.new(0, 25, 0, 20)
MinimizeBtn.Font = Enum.Font.GothamBold
MinimizeBtn.Text = "_"
MinimizeBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
MinimizeBtn.TextSize = 16
UICorner2.Parent = MinimizeBtn
UICorner2.CornerRadius = UDim.new(0, 5)
-- Close Button
CloseBtn.Parent = TopBar
CloseBtn.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
CloseBtn.Position = UDim2.new(1, -35, 0.5, -10)
CloseBtn.Size = UDim2.new(0, 25, 0, 20)
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.Text = "X"
CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseBtn.TextSize = 14
UICorner4.Parent = CloseBtn
UICorner4.CornerRadius = UDim.new(0, 5)
ToggleBtn.Parent = Frame
ToggleBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 255)
ToggleBtn.Position = UDim2.new(0.1, 0, 0, 45)
ToggleBtn.Size = UDim2.new(0.8, 0, 0, 40)
ToggleBtn.Font = Enum.Font.GothamBold
ToggleBtn.Text = "PULL"
ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleBtn.TextSize = 18
local toggleCorner = Instance.new("UICorner")
toggleCorner.Parent = ToggleBtn
toggleCorner.CornerRadius = UDim.new(0, 8)
-- Minimized Icon (BloxHub style)
MinimizedIcon.Name = "MinimizedIcon"
MinimizedIcon.Parent = ScreenGui
MinimizedIcon.BackgroundColor3 = Color3.fromRGB(45, 45, 55)
MinimizedIcon.Position = UDim2.new(0, 10, 0.5, -30)
MinimizedIcon.Size = UDim2.new(0, 60, 0, 60)
MinimizedIcon.Image = "rbxassetid://3926305904" -- BloxHub icon
MinimizedIcon.ImageColor3 = Color3.fromRGB(100, 180, 255)
MinimizedIcon.Visible = false
IconCorner.Parent = MinimizedIcon
IconCorner.CornerRadius = UDim.new(0, 10)
-- Rarity checkboxes
local yOffset = 95
for _, rarity in ipairs(rarities) do
local CheckFrame = Instance.new("Frame")
local CheckBox = Instance.new("TextButton")
local Label = Instance.new("TextLabel")
CheckFrame.Parent = Frame
CheckFrame.BackgroundTransparency = 1
CheckFrame.Position = UDim2.new(0.1, 0, 0, yOffset)
CheckFrame.Size = UDim2.new(0.8, 0, 0, 25)
CheckBox.Parent = CheckFrame
CheckBox.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
CheckBox.Size = UDim2.new(0, 20, 0, 20)
CheckBox.Text = "✓"
CheckBox.TextColor3 = Color3.fromRGB(255, 255, 255)
CheckBox.TextSize = 14
CheckBox.Font = Enum.Font.GothamBold
local corner = Instance.new("UICorner")
corner.Parent = CheckBox
corner.CornerRadius = UDim.new(0, 4)
Label.Parent = CheckFrame
Label.BackgroundTransparency = 1
Label.Position = UDim2.new(0, 30, 0, 0)
Label.Size = UDim2.new(1, -30, 1, 0)
Label.Font = Enum.Font.Gotham
Label.Text = rarity
Label.TextColor3 = Color3.fromRGB(255, 255, 255)
Label.TextSize = 14
Label.TextXAlignment = Enum.TextXAlignment.Left
CheckBox.MouseButton1Click:Connect(function()
enabled[rarity] = not enabled[rarity]
if enabled[rarity] then
CheckBox.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
CheckBox.Text = "✓"
else
CheckBox.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
CheckBox.Text = "✕"
end
end)
yOffset = yOffset + 30
end
-- Function to minimize/maximize
local function toggleMinimize()
Frame.Visible = not Frame.Visible
MinimizedIcon.Visible = not MinimizedIcon.Visible
end
-- Minimize button click
MinimizeBtn.MouseButton1Click:Connect(toggleMinimize)
-- Icon click to restore
MinimizedIcon.MouseButton1Click:Connect(toggleMinimize)
-- Close button
CloseBtn.MouseButton1Click:Connect(function()
ScreenGui:Destroy()
end)
-- Hotkey: Alt to minimize/maximize
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and input.KeyCode == Enum.KeyCode.LeftAlt then
toggleMinimize()
end
end)
-- Pull button functionality (one-time pull)
ToggleBtn.MouseButton1Click:Connect(function()
ToggleBtn.Text = "PULLING..."
ToggleBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
pullItems()
wait(0.3)
ToggleBtn.Text = "PULL"
ToggleBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 255)
end)
Comments
No comments yet
Be the first to share your thoughts!