Type /remote on in your status window and make sure you paste that script into a new remote script file.

I think another on text event above this one in your script file is blocking it.