
Key Required

while true do
local VirtualInputManager = game:GetService("VirtualInputManager")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
for _, wheat in ipairs(workspace:GetDescendants()) do
if wheat.Name == "Wheat" then
local base = wheat:FindFirstChild("Base")
if base and base:IsA("BasePart") then
-- Teleport to the wheat
hrp.CFrame = base.CFrame + Vector3.new(0, 3, 0)
task.wait(0.7)
-- Click once
local pos = game:GetService("UserInputService"):GetMouseLocation()
VirtualInputManager:SendMouseButtonEvent(
pos.X,
pos.Y,
0, -- Left mouse button
true, -- Mouse down
game,
0
)
VirtualInputManager:SendMouseButtonEvent(
pos.X,
pos.Y,
0,
false, -- Mouse up
game,
0
)
task.wait(0.7)
end
end
end
task.wait(0.5) -- Wait half a second before repeating
endNo comments yet for this script.


