As a Roblox developer, it is currently impossible to make scripts be verified before they run. I’ll expand upon this below:
Exploiters like to inject scripts, and this is a very big problem. So my solution would be to have a master script that creates a key that scripts must have in order to run (like a property.) All scripts would share this key, and if the script doesn’t have the key in their properties then the script can’t run. This would keep developers from needing to rescript their games for Filtering Enabled.
example: AcceptedKeys = {“39BcDefg29f0”, “3hfeuyr3yri394rhruihf”}
If a script doesn’t have a proper activation key, then the game would block it from running.
the key could be randomly generated per server, or preset by the creator. I think this would be a better alternative to Filtering Enabled.
The script could change every so often, so p = game.Workspace.Script.VerificationKey
p = “3234b23h4h”
wait(10)
p = “3h4iu2hkj3b4”
This would make it practically impossible for an exploiter to inject a script.