Help me with a script!

I need help with my shooting game script. If the score is 5000 its goes to next frame (mission completed frame) and if hp is zero it goes to game over frame…
I tried something like this for the score script but as a flash noob it surely didnt work i think it is not anything is supposed to be. :smiley:

if (score = 5000) {
play();
}

help me please!