And how you're supposed to press that button without pausing?
Perhaps I was a bit unclear. I mean that I would like to pause the game from the FSM and display a button. Right now the level-up happens intantly without pausing.
FSM can't call scripts directly. Only by switching variables, with the help of loop script.