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