I have a lobby, which when you hit the play button, teleports you to another place. The other place waits until there are three or more players in the server before it starts counting down. After the countdown, the game will have started. How can I efficiently prevent people from joining after the game has started without the use of kicking, or teleporting again (as the process will be very slow for some devices)
I am not asking for code (unless if I need help scripting this later on) I would just like to have an idea of where to start.
I could not find solutions that matches my case.
Please tell me if I forgot to put some information
Thanks - Blox
Yeah, I thought about that, but then how would I get more players before the game starts? Would I have to use messaging service (which I am familiar of)?
you could make the game wait for all players to load in which is the best thing to do instead of a countdown but if it takes too long it stops waiting to load all players. Or you could make it so the game starts when a certain amount of players loaded (70%) I don’t really know sorry.
Using messagingservice, I communicate with all the servers, the first one to respond with a reserved server code will be the server the player teleports to, if no servers than create one, and dont respond when the game has started.
Edit:
Not quite sure how to (securely) get the reserved id from the server itself after loads of research