Unreal Engine 4.13 freezes when trying to create a pause menu

I followed those steps in the tutorial and that isn’t the problem. the problem is that when I press the button that is supposed to pause the game, it pauses it and then the entire engine freezes.