Private Server Teleporter [HELP]

Hello

I am making and UI with different places (maps) that the player can choose to teleport. I want that if the player is in a private server in the main place, if he choose a map they don’t get teleported to a public server of that place instade they get teleported to a private server of that place.

Public Server on Main Place = Public Server on every place
Private Server on Main Place = Private Server on every place

Any help welcome