I guess you used the same name for the script,
What happens, scripts get cached. If you change something in the script, entity , sound etc. The scipt get loaded from cache. And it’s not loading the new script. You can try to press the refresh/reload button behind the script in the running script dialog.
Otherwise you need to add something at the end of your script url. so you get something like
myscripts.somewhere/script.js?1
With ever change you need to change the ?1 in some number you not used before. Yes i complained about it myself many times and still falling into this mistake that i forgot to add it and i see the wrong mesh entity get loaded.