My 2nd post here in one day! Wow.
Anyway, I’m working on a system that allows a lobby to find a server with a certain team available so people can join the team they want garunteed. Every server is a reserved server so that a game can find a specific server matching certain team criteria, if it is unable to find one, it’ll reserve a new one and save the AccessKey with the DataStore key being it’s PrivateServerId.
What I want this to do is to save the ServerAccessKey to the Datastore and use the PrivateServerId as it’s DataStore key. The lobby would get the PrivateServerId from a server via the MessagingService and look it up on the DataStore to get the associated AccessKey and join the server.
My only issue is, how on earth do I get the PrivateServerId from :ReserveServer()? It says it returns as a tuple on the wiki, but I can print what it returns and get what I assume is the AccessKey, but not the PrivateServerId? How would I get the PrivateServerId with ReserveServer()?
Hope this was easy enough to read, if code is needed then do inform me, I didn’t think it was neccesary in this scenario.
Cheers
-reddust1