Sorry for misjudging the situation.
Can it be that you are working with two different versions? Maybe the script was created in a newer version and you are trying to edit in an older one?
It is very hard to troubleshoot it without actually seeing it. Sorry