Map spawning/despawning

Looking to create a game where we have maps, and our lobby and wanting to know how to script something that’ll allow us to despawn the lobby when our map spawns and players are teleported to it?

Do you have any script in the works which can be modified?