Depends on the intentions of OP script.
It seems that OPs script stops people taking your mission and running it, if that is true then yes it works as intended
It doesn't say that it will stop people obtaining a copy of it, just means they wont be able to run it without editing it - if they even spot the script anyway