Begin Gamemodeif ( yourtrigger ) set backtomenu to 1 TapKey 1endifEndBegin Menumodeif menumode 1013 && backtomenu ClickMenuButton "pause_background\pause_quit_button" 1013endifif menumode 1001 && backtomenu set backtomenu to 0 ClickMenuButton "background\button_2" 1001endifEnd