Well, I just posted what I thought when I saw the thread title

If you're using yours to give Link a key when he recieves a triforce piece though, and you're using a cutscene to do it, placing this script on one of the screens of the cutscene would acheive the same effect.
Not that it's better, just a different way of doing it.