Checking if the user is in script with plugin

I have a plugin and I want to check if the player is in a certain script / he is editing a certain script, is this possible?

Sure is.

Thank you very much, I marked it as the solution.