1. -- Load Wally UI
  2. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wall%20v3"))()
  3. local w = library:CreateWindow("Auto Farm")
  4. local b = w:CreateFolder("Main")
  5. -- Services
  6. local Players = game:GetService("Players")
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8. local player = Players.LocalPlayer
  9. local backpack = player:WaitForChild("Backpack")
  10. local remote = ReplicatedStorage:WaitForChild("Plant_RE")
  11. -- Toggles
  12. local autoCollect, autoSell, autoBuySeeds, autoPlant, autoWalkToPlant = false, false, false, false, false
  13. -- Get owned plot
  14. local function getOwnedPlot()
  15. for _, plot in pairs(workspace.Farm:GetChildren()) do
  16. local important = plot:FindFirstChild("Important") or plot:FindFirstChild("Importanert")
  17. if important then
  18. local data = important:FindFirstChild("Data")
  19. if data and data:FindFirstChild("Owner") and data.Owner.Value == player.Name then
  20. return plot
  21. end
  22. end
  23. end
  24. return nil
  25. end
  26. -- Auto Collect
  27. task.spawn(function()
  28. while task.wait(1) do
  29. if autoCollect then
  30. local plot = getOwnedPlot()
  31. local farm = plot and plot:FindFirstChild("Important"):FindFirstChild("Plants_Physical")
  32. if farm then
  33. for _, prompt in ipairs(farm:GetDescendants()) do
  34. if prompt:IsA("ProximityPrompt") then
  35. local playerRoot = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  36. if playerRoot then
  37. local dist = (playerRoot.Position - prompt.Parent.Position).Magnitude
  38. if dist <= 20 then
  39. prompt.Exclusivity = Enum.ProximityPromptExclusivity.AlwaysShow
  40. prompt.MaxActivationDistance = 100
  41. prompt.RequiresLineOfSight = false
  42. prompt.Enabled = true
  43. fireproximityprompt(prompt, 1, true)
  44. elseif autoWalkToPlant then
  45. -- Make the player walk to the plant if it's farther than 20 studs
  46. local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  47. if humanoid then
  48. humanoid:MoveTo(prompt.Parent.Position + Vector3.new(0, 5, 0)) -- slight offset to stand near
  49. end
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
  57. end)
  58. -- Auto Sell
  59. task.spawn(function()
  60. while task.wait(1) do
  61. if autoSell then
  62. ReplicatedStorage:WaitForChild("Sell_Inventory"):FireServer()
  63. end
  64. end
  65. end)
  66. -- Auto Buy Seeds
  67. local function autoBuySeedsFunction()
  68. local shopUI = player:WaitForChild("PlayerGui"):WaitForChild("Seed_Shop")
  69. local scroll = shopUI.Frame.ScrollingFrame
  70. for _, item in pairs(scroll:GetChildren()) do
  71. local stock = item:FindFirstChild("Stock")
  72. if stock and stock:IsA("NumberValue") and stock.Value > 0 then
  73. ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("BuySeedStock"):FireServer(item.Name)
  74. end
  75. end
  76. end
  77. task.spawn(function()
  78. while task.wait(.1) do
  79. if autoBuySeeds then
  80. autoBuySeedsFunction()
  81. end
  82. end
  83. end)
  84. -- Seed Tool Finder
  85. local function findSeedTool()
  86. for _, item in ipairs(player.Character:GetChildren()) do
  87. if item:IsA("Tool") and item.Name:find("Seed") then
  88. local crop = item.Name:match("^(.-) Seed")
  89. return item, crop
  90. end
  91. end
  92. for _, item in ipairs(backpack:GetChildren()) do
  93. if item:IsA("Tool") and item.Name:find("Seed") then
  94. local crop = item.Name:match("^(.-) Seed")
  95. return item, crop
  96. end
  97. end
  98. return nil, nil
  99. end
  100. -- Auto Plant
  101. task.spawn(function()
  102. while task.wait() do
  103. if autoPlant then
  104. local character = player.Character or player.CharacterAdded:Wait()
  105. local root = character:WaitForChild("HumanoidRootPart")
  106. local pos = Vector3.new(math.floor(root.Position.X), 0.1, math.floor(root.Position.Z))
  107. local tool, seedType = findSeedTool()
  108. if tool and seedType then
  109. if tool.Parent == backpack then
  110. character:WaitForChild("Humanoid"):EquipTool(tool)
  111. repeat task.wait() until tool.Parent == character
  112. end
  113. remote:FireServer(pos, seedType)
  114. end
  115. end
  116. end
  117. end)
  118. -- UI Setup
  119. b:Toggle("Auto Collect", function(v) autoCollect = v end)
  120. b:Toggle("Enable Walk To", function(v) autoWalkToPlant = v end)
  121. b:Toggle("Auto Sell", function(v) autoSell = v end)
  122. b:Toggle("Auto Buy Seeds", function(v) autoBuySeeds = v end)
  123. b:Toggle("Auto Plant", function(v) autoPlant = v end)
  124. b:Label("Get Noclip", {
  125. TextSize = 20;
  126. TextColor = Color3.fromRGB(255, 255, 255);
  127. BgColor = Color3.fromRGB(30, 30, 30);
  128. })