local VirtualInputManager = game:GetService("VirtualInputManager") local safePosition = CFrame.new(0, 50, 0) -- Adjust to your safe location local moveKeys = {Enum.KeyCode.One, Enum.KeyCode.Two, Enum.KeyCode.Three, Enum.KeyCode.Four} -- Moves you want to farm local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local root = char:FindFirstChild("HumanoidRootPart") local function autoFarm() while true do for _, key in ipairs(moveKeys) do task.wait(1) -- Adjust farming speed -- Simulate key press for ability activation VirtualInputManager:SendKeyEvent(true, key, false, game) task.wait(0.1) VirtualInputManager:SendKeyEvent(false, key, false, game) -- Simulate mouse click VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 1) task.wait(0.1) VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 1) -- **Teleport Back to Safe Position After Move** if root then root.CFrame = safePosition end end end end task.spawn(autoFarm)