
Keyless

local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local folder = workspace:WaitForChild("PartFolder")
local running = false
local collecting = false
local gui = Instance.new("ScreenGui")
gui.Name = "AutoCollectPart"
gui.ResetOnSpawn = false
gui.Parent = game:GetService("CoreGui")
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 250, 0, 80)
mainFrame.Position = UDim2.new(0.05, 0, 0.2, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = gui
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0.3, 0)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Auto Collect Part - Made by HAZAI"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.TextScaled = true
title.Font = Enum.Font.GothamBold
title.Parent = mainFrame
local toggle = Instance.new("TextButton")
toggle.Size = UDim2.new(0.8, 0, 0.35, 0)
toggle.Position = UDim2.new(0.1, 0, 0.55, 0)
toggle.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
toggle.Font = Enum.Font.GothamBold
toggle.TextSize = 20
toggle.Text = "Auto Collect: OFF"
toggle.AutoButtonColor = false
toggle.Parent = mainFrame
local corner1 = Instance.new("UICorner", mainFrame)
corner1.CornerRadius = UDim.new(0, 12)
local corner2 = Instance.new("UICorner", toggle)
corner2.CornerRadius = UDim.new(0, 8)
local function fireTouch(part)
if part:IsA("BasePart") then
firetouchinterest(hrp, part, 0)
firetouchinterest(hrp, part, 1)
end
end
task.spawn(function()
while task.wait() do
if running and not collecting then
collecting = true
for _, obj in ipairs(folder:GetDescendants()) do
if not running then
break
end
if obj:IsA("BasePart") and obj:FindFirstChildOfClass("TouchTransmitter") then
fireTouch(obj)
end
end
collecting = false
end
end
end)
toggle.MouseButton1Click:Connect(function()
running = not running
if running then
toggle.Text = "Auto Collect: ON"
toggle.BackgroundColor3 = Color3.fromRGB(0, 170, 85)
else
toggle.Text = "Auto Collect: OFF"
toggle.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
end
end)
print("Auto Collect Part GUI loaded - Made by HAZAI")No comments yet for this script.
