In-Game UI buttons not being registered by cursor


Basically this, I was following a tutorial and must have watched it over about 5 times but I can’t find out why this is happening.

Expected: The user opens up the menu and then clicks the buttons to perform the chosen action.

Actual: The user opens up the menu to try to click on the menu but the clicks go through the buttons and the menu and instead perform a move command for the player since it’s a top-down game.