local Players = game:GetService("Players") local ContextActionService = game:GetService("ContextActionService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer -- ========================= -- Barrel Auto-Farm Script -- ========================= local HIGH_ALTITUDE = 500 local HORIZ_STEP = 50 local HORIZ_DELAY = 0.02 local VERT_STEP = 2 local VERT_DELAY = 0.01 local CLICK_OFFSET = 2 local CLICK_RETRIES = 3 local COOLDOWN = 15 local TARGET_TIMEOUT = 5 local barrelCooldowns = {} local autoFarmEnabled = true local noclipEnabled = true local overrideEnabled = false -- bowl script takes priority -- Character references local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") local humanoid = character:WaitForChild("Humanoid") local backpack = player:WaitForChild("Backpack") player.CharacterAdded:Connect(function(char) character = char hrp = character:WaitForChild("HumanoidRootPart") humanoid = character:WaitForChild("Humanoid") end) -- Noclip RunService.Stepped:Connect(function() if noclipEnabled and character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) -- Instant tool usage local function instantUse(tool) if tool:IsA("Tool") and humanoid then humanoid:EquipTool(tool) tool:Activate() tool:Deactivate() end end for _, tool in ipairs(backpack:GetChildren()) do instantUse(tool) end backpack.ChildAdded:Connect(function(tool) if autoFarmEnabled then instantUse(tool) end end) coroutine.wrap(function() while true do if autoFarmEnabled then for _, tool in ipairs(backpack:GetChildren()) do instantUse(tool) end end task.wait(20) end end)() -- Movement helpers local function moveHighTo(targetPos) local startPos = hrp.Position local startHigh = Vector3.new(startPos.X, HIGH_ALTITUDE, startPos.Z) local targetHigh = Vector3.new(targetPos.X, HIGH_ALTITUDE, targetPos.Z) local direction = (targetHigh - startHigh).Unit local distance = (targetHigh - startHigh).Magnitude local steps = math.floor(distance / HORIZ_STEP) for i = 1, steps do if not autoFarmEnabled or overrideEnabled then return false end local stepPos = startHigh + direction * (i * HORIZ_STEP) hrp.CFrame = CFrame.new(stepPos) task.wait(HORIZ_DELAY) end if autoFarmEnabled and not overrideEnabled then hrp.CFrame = CFrame.new(targetHigh) return true else return false end end local function descendToTarget(targetPos) local targetY = targetPos.Y + CLICK_OFFSET local startTime = tick() while hrp.Position.Y > targetY do if not autoFarmEnabled or overrideEnabled then return false end if tick() - startTime > TARGET_TIMEOUT then return false end hrp.CFrame = CFrame.new(hrp.Position.X, math.max(hrp.Position.Y - VERT_STEP, targetY), hrp.Position.Z) task.wait(VERT_DELAY) end return true end local function clickTarget(target) if not target or not target:IsA("BasePart") then return end local lastClick = barrelCooldowns[target] or 0 if tick() - lastClick < COOLDOWN then return end local targetPos = target.Position if not moveHighTo(targetPos) then return end if not descendToTarget(targetPos) then return end local clickDetector = target:FindFirstChildOfClass("ClickDetector") if clickDetector then for i = 1, CLICK_RETRIES do if not autoFarmEnabled or overrideEnabled then return end fireclickdetector(clickDetector, 0) task.wait(0.05) end barrelCooldowns[target] = tick() end end -- Barrel auto-farm loop coroutine.wrap(function() while true do if autoFarmEnabled and hrp and not overrideEnabled then local barrelsFolder = workspace:FindFirstChild("Barrels") if barrelsFolder and barrelsFolder:FindFirstChild("Barrels") then barrelsFolder = barrelsFolder.Barrels end if barrelsFolder then for _, barrel in ipairs(barrelsFolder:GetChildren()) do if not autoFarmEnabled or overrideEnabled then break end clickTarget(barrel) end end end task.wait(0.1) end end)() -- ========================= -- New Juicing Bowl Script (Tween-based) -- ========================= local function getHRP() local character = player.Character or player.CharacterAdded:Wait() return character:WaitForChild("HumanoidRootPart") end -- Find JuicingBowl safely local targetBowl local clickDetector for _, obj in ipairs(workspace:GetChildren()) do if obj:FindFirstChild("Model") and obj.Model:FindFirstChild("JuicingBowl") then targetBowl = obj.Model.JuicingBowl:FindFirstChild("Bowl") if targetBowl then clickDetector = targetBowl:FindFirstChildOfClass("ClickDetector") end break end end -- Tween movement to Bowl local function moveToBowl() local hrp = getHRP() if hrp and targetBowl then overrideEnabled = true -- pause barrel farm local goal = { CFrame = targetBowl.CFrame + Vector3.new(0, 3, 0) } local tweenInfo = TweenInfo.new(0.7, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local tween = TweenService:Create(hrp, tweenInfo, goal) tween:Play() tween.Completed:Wait() if clickDetector then fireclickdetector(clickDetector) end task.wait(2) -- short pause before resuming barrels overrideEnabled = false end end -- Loop with random wait 45–55s coroutine.wrap(function() while true do task.wait(math.random(45, 55)) moveToBowl() end end)() -- ========================= -- Toggle GUI -- ========================= local screenGui = Instance.new("ScreenGui") screenGui.Name = "AutoFarmToggleGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0, 150, 0, 50) button.Position = UDim2.new(0, 20, 0, 20) button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Text = autoFarmEnabled and "Automation: ON" or "Automation: OFF" button.Parent = screenGui button.MouseButton1Click:Connect(function() autoFarmEnabled = not autoFarmEnabled button.Text = autoFarmEnabled and "Automation: ON" or "Automation: OFF" end) ContextActionService:BindAction("ToggleAutoFarm", function(_, inputState) if inputState == Enum.UserInputState.Begin then autoFarmEnabled = not autoFarmEnabled button.Text = autoFarmEnabled and "Automation: ON" or "Automation: OFF" end return Enum.ContextActionResult.Sink end, false, Enum.KeyCode.F)