How to Patch Scripts/Exploits? I need help

First off, I want to make sure I can properly patch exploits because I have never in my life of human existing tried to patch exploits and since my game is getting bigger, I need to prepare myself before things happen.

For example, I see this but how do I actually patch it? Wouldn’t I need someone to test it for me?