Hello all, I’m trying to find out how to check for the existence of a reserved server. Whether that is making use of the MessagingService or HTTPS, I do not know.
I’m trying to achieve having private servers in-game. Essentially VIP servers inside a game.
I don’t think you can. Maybe see TeleportInitFailed event, and you can try testing with an alt whether this faills or not when teleporting to a non existent server.
However, there’s no way to find reserved servers from other servers, unless you save the reserved server’s ID into a DataStore or broadcast it via MessagingService when you create it.
I think you can save the unix/epoch time (os.time()) in a variable and then send a message through messaging service and then if you don’t get the message back from the server in for example 30 seconds, that means the server doesn’t exist anymore or it has no players in it.
Baically you send message “A” and you get back message “B” (with the same topic) and if the reserved server doesn’t respond that means it doesn’t exist.