How can i make stop point?

How can i make stop point in runner, which will stop player if i will push on the button

There’s not really enough info to go on here. How your you moving your player?