Input Action only works once

So I’m making a script that when you press a button, you enter the pause menu with settings to choose from. For the most part, it works how I want it to, it pauses the game and brings up the menu widget and pressing it again un-pauses the game and removes the menu widget. However, this only works once. Pressing the button again after coming from the menu doesn’t do anything. I know my inputs are still working as I regain control of my character. Any help on this will be much appreciated.

You should check if your Pause Menu variable is valid after the first time. Try setting it to nothing after removing it from the parent

Oh wow I feel like an idiot haha, I knew it would be something simple, thanks