Box Autofarm
Key Required

Box Autofarm

[APRIL FOOLS] Sakura Stand*KeySystems*KeySystems 7.3K views 469 executesUpdated Jan 19, 2025
1.7/ 5(3 votes)
1233% Positive
Lua Script•44 lines (1695 chars)
local folderName, delayTime, tweenTime = "Item", 1.6, 0.4
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local tweenService = game:GetService("TweenService")
local VIM = game:GetService("VirtualInputManager")
local function KeyboardHold(key)
    VIM:SendKeyEvent(true, key, false, game)
end
local function KeyboardUnhold(key)
    VIM:SendKeyEvent(false, key, false, game)
end
local function getPrimaryPartCFrame(model)
    return model.PrimaryPart and model.PrimaryPart.CFrame or (model:FindFirstChildWhichIsA("BasePart") and model:FindFirstChildWhichIsA("BasePart").CFrame or nil)
end
local function tweenToPosition(targetCFrame)
    humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
    rootPart.Anchored = true
    local tween = tweenService:Create(rootPart, TweenInfo.new(tweenTime, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = targetCFrame})
    tween:Play()
    tween.Completed:Wait()
    rootPart.Anchored = false
end
local function teleportToBaseParts(folder)
    for _, child in ipairs(folder:GetChildren()) do
        if child.Name == "Box" and child:IsA("BasePart") then
            tweenToPosition(child.CFrame + Vector3.new(0, 3, 0))
             KeyboardHold("E")
            wait(1.5)
            KeyboardUnhold("E")
            wait(delayTime)
        end
    end
end
local function teleportToChildren()
    local folder = game.Workspace:FindFirstChild(folderName)
    if folder then
        teleportToBaseParts(folder)
    end
end
while wait() do
    teleportToChildren()
end

Features & Information

- Open-source

Community Comments (2)

TimeLineTimeLineJan 19, 2025(edited)

works

kylemillion01kylemillion01May 6, 2026

too blatant

More Scripts for [APRIL FOOLS] Sakura Stand