Game developers use "Anti-Cheat" systems. If a script is "detected," your account can be permanently banned from that game or the entire platform.
Reputable (though illicit) scripts come with a clean, toggle-able GUI. This allows you to turn Auto-Collect on/off, set collection delay (e.g., 0.1 seconds to avoid detection), and view your current collection rate per second (CPS).