In my text 101 game all script was working perfectly up until this last line on my code was inserted. I cant understand why I am now getting an error on my if statement on line 145. I’m not sure how to share a scrollable attachment of my script but hopefully this is enough.
EDIT: Here is a link to my script https://gist.github.com/anonymous/48e2ee024ab95afab2243cc66889d92e
Script
1 Like
Hello Auden, how are you?
This is happening because you have closed the state_corridor method just above the last if. The way it is, the last if statement isn’t inside any method, so it is returning an error.
You could move the curly brace that is between the last two ifs to the end of the script
2 Likes
Thank you so much for your help, I was suspecting something simple like that but had been racking my brain for almost an hour. Very appreciated 
2 Likes
No problem 
It is interesting how many times we get stuck for a few hours because of simple problems, happens a lot to me 
It seems that we get used looking at a piece of code the same way and it gets hard to see it differently.
Just let us know if you need something else.
2 Likes