
Key Required
Auto Collect
Lua Script•81 lines (2402 chars)
setclipboard("https://discord.gg/TR3quUFgT6")
local rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
local window = rayfield:CreateWindow({
Name = "auto collect gui",
LoadingTitle = "loading",
LoadingSubtitle = "rayfield",
ConfigurationSaving = { Enabled = false }
})
local tab = window:CreateTab("main", 4483362458)
local autoCollect = false
local lastPos
local stuckTicks = 0
local rs = game:GetService("RunService")
local function getNearestCollectPart(hrp)
local closest
local dist = math.huge
for _, v in ipairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name:lower() == "collectpart" then
local d = (hrp.Position - v.Position).Magnitude
if d < dist then
dist = d
closest = v
end
end
end
return closest
end
local function clearNearby(hrp)
for _, v in ipairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name:lower() == "collectpart" then
if (hrp.Position - v.Position).Magnitude < 5 then
v:Destroy()
end
end
end
end
tab:CreateToggle({
Name = "Auto Collect",
CurrentValue = false,
Flag = "autocollect",
Callback = function(value)
autoCollect = value
if value then
task.spawn(function()
while autoCollect do
rs.RenderStepped:Wait()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local part = getNearestCollectPart(hrp)
if part then
hrp.CFrame = part.CFrame + Vector3.new(0, 2, 0)
end
if lastPos and (hrp.Position - lastPos).Magnitude < 0.3 then
stuckTicks += 1
else
stuckTicks = 0
end
if stuckTicks >= 5 then
clearNearby(hrp)
hrp.CFrame = hrp.CFrame + Vector3.new(0, 10, 0)
stuckTicks = 0
end
lastPos = hrp.Position
end
end)
end
end
})Features & Information
not even gonna type here atp

Long time no see, your script still works well