In Roblox Studio, right-click on ServerScriptService and select Insert Object > Script .
You can script objects (like parts) that increase a player's currency when touched.
In a legitimate game development context, "auto farming" usually refers to passive income or clicking systems.