Ah I see, you have to put the code in a function, not just at the top of the script. Go onto interactions, choose the appropriate interaction (like 'Player enters screen') and choose Run Script. Put the code in there. You can create variables outside functions in the rooms script so they can be accessed by all the functions, but you need to put the rest of your scripting into the interaction functions.