-- join ma discord if u wan https://discord.gg/v235R3HrCQ local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") local autofarm = false local Boxes = workspace:WaitForChild("Boxes") local BoxGoal = workspace:WaitForChild("BoxGoal") local function TweenTo(position) if not hrp or not position then return end local distance = (hrp.Position - position).Magnitude local duration = math.clamp(distance / 50, 0.5, .5) local tween = TweenService:Create(hrp, TweenInfo.new(duration, Enum.EasingStyle.Linear), { CFrame = CFrame.new(position) }) tween:Play() tween.Completed:Wait() local args = { buffer.fromstring("t\000"), {} } game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(unpack(args)) local args = { buffer.fromstring("u\000"), {} } game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(unpack(args)) end UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.X then autofarm = not autofarm print("Autofarm:", autofarm) end end) task.spawn(function() while true do if autofarm then if Boxes and BoxGoal and Boxes:IsDescendantOf(workspace) and BoxGoal:IsDescendantOf(workspace) then local boxPos = Boxes:GetPivot().Position local goalPos = BoxGoal:GetPivot().Position TweenTo(boxPos + Vector3.new(0, 5, 0)) task.wait(0.5) TweenTo(goalPos + Vector3.new(0, 5, 0)) task.wait(0.5) else task.wait(1) end else task.wait(0.5) end end end) task.spawn(function() while wait() do local args = { buffer.fromstring("u\000"), {} } game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(unpack(args)) local args = { buffer.fromstring("t\000"), {} } game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(unpack(args)) wait(.1) end end) while wait(2) do local args = { buffer.fromstring("\169\000\t\000MoveBoxes"), {} } game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(unpack(args)) end