How to make a player not be able to move on mainmenu?

Hi,When i pressed play then mainmenu will appear but my character still can move around on the mainmenu.I want to know how do i make a player not be able to move while mainmenu is appearing ?

I’m following this link https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/4/index.html

140265-1.jpg

but my character still can move(I’mt not using FirstPerson Project i’m working on my own project)

Thete is functions like: set input UI only and set input game only.

Try to use them for disabling/enabling input during menu/game

That helps me a lots i’ll try more about it thanks.