you have to create a global boolean.
then create a conditional statement: if boolean is true, player can't use menu, if boolean is false player can use menu.
make that boolean to be true after player use menu.
this is a scripting help section, people are helping you to learn not making plugins for you. good luck