Help with Match System

I am trying to figure out how I should go about making a matching system, for example. 2 players are in a lobby, the players then get tp’ed to a place, how do I create a new place server for tho’s people? currently it just tp’s you to the place game with other people

I believe you have to do something with custom private servers, if you search something along the lines of “How to make a matchmaking system” on a search engine they should have the code for it.