Script doesn't destroy it's self once i have built and run the game ? .. :(

Hi i have a script on my game attached to a box, which is not rendered this just maximises the area the player can click onto a button.

Once the first animation is played the script is destroyed along with the un-rendered box, leaving the second box behind now click-able.

However this works fine when i play the game on unity but when i build and run the game it stops working the first unrendered box stays in place... ?

any help .. thanks

Did you call this, to destroy your GameObject:

Destroy(gameObject);