First post

I am creating a guessing the animal game and have four choices. Once the correct/incorrect animal is chosen I would like to create a green/red square around the choice and lock the screen for 5 seconds.
I just used:
set the visible of graphic correctRectangle to true
lock screen
wait 5 seconds
unlock screen
But when this happens and if you click 5 times on another button during the waiting period it will proceed to process those clicks later.
Anyone know any fixes for this?