# Simple password script help

**URL:** <https://forum.kirupa.com/t/simple-password-script-help/320503>\
**Category:** flash\
**Created:** [March 25, 2011, 6:21am UTC](https://forum.kirupa.com/t/simple-password-script-help/320503 "2011-03-25T06:21:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FuglyBastard](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@FuglyBastard](https://forum.kirupa.com/u/FuglyBastard)\
**Post date:** [March 25, 2011, 6:21am UTC](https://forum.kirupa.com/t/simple-password-script-help/320503/1 "2011-03-25T06:21:58Z")

</div>

Hey! I have this script in a button, it only plays the “wrong” animation. Its probably something simple but I just cant figure it out!  
~Thanks~

As 2.0

on(press){  
if(pw == “bacon”){  
\_root.good.gotoAndPlay(2);  
} else {  
\_root.wrong.gotoAndPlay(2);  
}  
}

\*pw is the name of the input text feild
