-- INSTANTLY KILL OLD RUNNING LOOPS BEFORE STARTING
if _G.StopOldAutoFarm then
_G.StopOldAutoFarm()
end
local loopRunning = true
_G.StopOldAutoFarm = function()
loopRunning = false
end
task.spawn(function()
-- ==========================================
-- CONFIGURATION & COORDINATES
-- ==========================================
local startCoords = Vector3.new(-13.430000, 17.040000, -71.810000)
local endCoords = Vector3.new(2.550000, 17.050000, -50.720000)
local actionDelay = 0.4
local loopDelay = 0.4
local player = game.Players.LocalPlayer
-- EXECUTOR UI PROTECTION BYPASS
local uiContainer = nil
pcall(function() uiContainer = game:GetService("CoreGui") end)
if not uiContainer then uiContainer = player:WaitForChild("PlayerGui", 10) end
local autoCycleActive = false
-- ==========================================
-- PERFORMANCE & STATE CHECKS
-- ==========================================
local function getCharacter()
return player.Character
end
local function getRootPart()
local character = getCharacter()
return character and character:FindFirstChild("HumanoidRootPart")
end
local function hasBox()
local character = getCharacter()
if not character then return false end
for _, child in pairs(character:GetChildren()) do
if string.find(string.lower(child.Name), "box") then
return true
end
end
return false
end
local function teleport(targetVector)
local root = getRootPart()
if root then
root.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
root.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
root.CFrame = CFrame.new(targetVector)
end
end
-- INTERNAL PROXIMITY PROMPT HOOK (BACKGROUND COMPATIBLE)
local function triggerInteraction()
pcall(function()
-- Scan nearby workspace objects for interactive prompts
for _, descendant in pairs(workspace:GetDescendants()) do
if descendant:IsA("ProximityPrompt") then
-- Verify player is close enough to interact
local root = getRootPart()
if root and descendant.Parent:IsA("BasePart") then
local distance = (root.Position - descendant.Parent.Position).Magnitude
if distance < 15 then
-- Instantly execute the prompt code internally
descendant:InputHoldBegin()
task.wait(0.02)
descendant:InputHoldEnd()
end
end
end
end
end)
end
-- ==========================================
-- USER INTERFACE DESIGN
-- ==========================================
if uiContainer:FindFirstChild("OptimizedAutomationUI") then
uiContainer["OptimizedAutomationUI"]:Destroy()
end
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "OptimizedAutomationUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = uiContainer
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 220, 0, 240)
frame.Position = UDim2.new(0.05, 0, 0.35, 0)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
local btnGo = Instance.new("TextButton")
btnGo.Size = UDim2.new(0, 200, 0, 40)
btnGo.Position = UDim2.new(0, 10, 0, 10)
btnGo.Text = "Teleport To Dropoff"
btnGo.BackgroundColor3 = Color3.fromRGB(34, 139, 34)
btnGo.TextColor3 = Color3.fromRGB(255, 255, 255)
btnGo.Font = Enum.Font.SourceSansBold
btnGo.TextSize = 14
btnGo.Parent = frame
Instance.new("UICorner", btnGo).CornerRadius = UDim.new(0, 6)
local btnBack = Instance.new("TextButton")
btnBack.Size = UDim2.new(0, 200, 0, 40)
btnBack.Position = UDim2.new(0, 10, 0, 60)
btnBack.Text = "Teleport To Pickup"
btnBack.BackgroundColor3 = Color3.fromRGB(178, 34, 34)
btnBack.TextColor3 = Color3.fromRGB(255, 255, 255)
btnBack.Font = Enum.Font.SourceSansBold
btnBack.TextSize = 14
btnBack.Parent = frame
Instance.new("UICorner", btnBack).CornerRadius = UDim.new(0, 6)
local btnAuto = Instance.new("TextButton")
btnAuto.Size = UDim2.new(0, 200, 0, 100)
btnAuto.Position = UDim2.new(0, 10, 0, 120)
btnAuto.Text = "SYSTEM STATUS\n[ INACTIVE ]\n(Google Chrome Proof)"
btnAuto.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btnAuto.TextColor3 = Color3.fromRGB(255, 255, 255)
btnAuto.Font = Enum.Font.SourceSansBold
btnAuto.TextSize = 14
btnAuto.Parent = frame
Instance.new("UICorner", btnAuto).CornerRadius = UDim.new(0, 6)
-- ==========================================
-- ACTION ROUTINES
-- ==========================================
btnGo.MouseButton1Click:Connect(function()
teleport(endCoords)
end)
btnBack.MouseButton1Click:Connect(function()
teleport(startCoords)
end)
btnAuto.MouseButton1Click:Connect(function()
autoCycleActive = not autoCycleActive
if autoCycleActive then
btnAuto.Text = "SYSTEM STATUS\n[ RUNNING ]\n(Safe to Minimize)"
btnAuto.BackgroundColor3 = Color3.fromRGB(210, 105, 30)
task.spawn(function()
while autoCycleActive and loopRunning do
-- ROUTINE A: Pickup Cycle
if not hasBox() then
teleport(startCoords)
task.wait(actionDelay)
if not autoCycleActive or not loopRunning then break end
triggerInteraction()
task.wait(loopDelay)
end
if not autoCycleActive or not loopRunning then break end
-- ROUTINE B: Dropoff Cycle
if hasBox() then
teleport(endCoords)
task.wait(actionDelay)
if not autoCycleActive or not loopRunning then break end
triggerInteraction()
task.wait(loopDelay)
end
end
end)
else
btnAuto.Text = "SYSTEM STATUS\n[ INACTIVE ]\n(Google Chrome Proof)"
btnAuto.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
end
end)
end)
まだコメントはありません!最初に反応しましょう