A Variable Question

i want to make it so on the first frame of my game when u click the button to go to the map itll take u to the first frame of the map… and when u click another button in another frame it’ll take you back to the map but with the map in frame 2 of itself…