local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") screenGui.ResetOnSpawn = false local line = Instance.new("TextButton") line.Size = UDim2.new(0, 220, 0, 25) line.Position = UDim2.new(0.5, -110, 0.2, 0) line.BackgroundColor3 = Color3.fromRGB(30, 30, 30) line.Text = "American Offroad" line.TextColor3 = Color3.fromRGB(255, 0, 0) line.Font = Enum.Font.SourceSansBold line.TextSize = 16 line.Active = true line.Draggable = true line.Parent = screenGui local panel = Instance.new("Frame") panel.Size = UDim2.new(0, 220, 0, 0) panel.Position = UDim2.new(0, 0, 0, 25) panel.BackgroundColor3 = Color3.fromRGB(50, 50, 50) panel.Visible = true panel.Parent = line local stroke = Instance.new("UIStroke") stroke.Thickness = 2 stroke.Color = Color3.fromRGB(80, 80, 80) stroke.Parent = panel local autoFarmButton = Instance.new("TextButton") autoFarmButton.Size = UDim2.new(0, 200, 0, 45) autoFarmButton.Position = UDim2.new(0, 10, 0, 10) autoFarmButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) autoFarmButton.Text = "Auto Farm (OFF)" autoFarmButton.TextColor3 = Color3.fromRGB(255, 0, 0) autoFarmButton.Font = Enum.Font.SourceSansBold autoFarmButton.TextSize = 28 autoFarmButton.Visible = false autoFarmButton.Parent = panel local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 8) btnCorner.Parent = autoFarmButton local expanded = false line.MouseButton1Click:Connect(function() if not expanded then panel:TweenSize(UDim2.new(0, 220, 0, 65), "Out", "Quad", 0.3, true) task.delay(0.3, function() autoFarmButton.Visible = true end) else panel:TweenSize(UDim2.new(0, 220, 0, 0), "Out", "Quad", 0.3, true) autoFarmButton.Visible = false end expanded = not expanded end) local autoFarm = false autoFarmButton.MouseButton1Click:Connect(function() autoFarm = not autoFarm if autoFarm then autoFarmButton.Text = "Auto Farm (ON)" task.spawn(function() while autoFarm do local player = game.Players.LocalPlayer local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame + Vector3.new(0, 100, 0) end task.wait(0.5) end end) else autoFarmButton.Text = "Auto Farm (OFF)" end end)