I'm making a game and I've enabled filtering enabled. What I noticed though is that the script is replicating globally not client-sided. I'm wondering how I could stop the changes replicating to all the clients
Use a LocalScript.
With filtering enabled, changes done by any LocalScript are ignored by the server, and not passed off to the other clients.
With FilteringEnabled, Script objects act as before, since they are executed by the server.