When you replace a script, did you make sure that the header repoints to the new script? Also, does any interaction freeze the game, or is it specific?
To make things easier, you could copy out the entire script, hex edit it in notepad, paste it back and repoint the header to the correct script.