So, i dont mess around with TeleportService or MessagingService much at all, and i was wondering how to make a Lobby system similar to Phasmophobias lobby system.
In case you havent played or seen Phasmophobia, the lobby system works like this:
Upon opening the game, you can either create a new public lobby or a private lobby, or play single player.
If you create a public lobby, other people can see and join that lobby through the main menu.
If you create a private lobby, you have to give people a lobby code to join the lobby.
Things i am not sure on how to do, and would appreciate explanations on are:
Checking private lobby codes
Joining private lobbies if the code is correct
When creating lobbies, only joining a server with no one in it, but allows people to join upon being teleported directly to it.
I am not asking for an entire system to be scripted, instead i just need some explanation on how to do the things listed above, and i could script it from there.
(im editing on here, i did look on the devforum before posting this, i didnt find anything, and i dont trust youtube for scripting tutorials)
2nd edit:
I worded this pretty badly, im going to reword it here:
I want to have 2 places for the lobby system, one where you can join the lobbies, and another that you get teleported to that is the actual lobby.
3rd edit:
Upon thinking for a little, i do have an idea on how to do a quarter of it.
(For private lobby)
When the server is reserved, a server code gets created, if i send that server code to the reserved server, that would allow for other people to join the reserved server, however, how i do
Basegame1 (with lobby code) > ReservedServer > Basegame1 (with reservedserver code from ReservedServer)
is unknown to me.