Problems deactivating a script.

Hello. While the scene is running, if I deactivate (un check the box next to it) a script, it's effect is still going on, but if I uncheck it and then run the scene, the script is not running. How can I deactivate a script while the scene is running?

this.enabled = false;