For anyone else who is wondering about this, I’ve discovered that the Protect Scripts option is
available in the Library Creator Editor:
It’s not clear to me what the documentation that I linked to above was referring to, but it is good
to know that Script protection is available.
I would still be interested to know if protecting the scripts on a specific layer (rather than
globally) in a manner similar to the documentation linked above were actually possible,
since I think that might suit me better.
Right click the top there where it says “name” in your picture to see the layer protection and toggle where you would like it. Remember to have the password in the beginning of the code or you will lock yourself out of your script. I would suggest creating a duplicate preset as a back up just in case you make an error.
You should be able to use the protect script option in the library to remove access to the script. Using the tree locks any layer which should include the script if it’s in it. Adding the password to the script will allow access to the script if the script calls for anything outside of the layer (global).
I should mention that protecting the script will stop the user from editing the user script but using the actual lock will prevent the user from even being able to see what is within the layer.