ReserveServer() Codes

Does anyone know if there’s any instances where 2 ReserveServer codes could be the same? The Wiki states they remain valid indefinitely and for my use-case, I’m looking to create unique “places” for each player and I’d rather only have to set and save that code once but would run into conflict if 2 ever match.

Thanks in advance! :slight_smile:

Reserved server codes are designed to be unique. And you can join the same server with the code. If no reserved server with that code is running, it creates a fresh one with a fresh place. Otherwise, Roblox automatically closes them after all players leave.

If I remember correctly, the codes are more than 50 characters long, consisting of upper and lower case letters, and numbers. Which means 62 (26 letters* 2 + 10 numbers) possible characters on each of these 50+ places. I think the number is 55, so that makes 62^55, which equals to an ASTRONOMICAL NUMBER 6.8729654274 × 10^104. That’s more than 100 zeros!! More than Googol - Wikipedia.

Those should be the chances. For comparrison, the odds of winning Euro Jackpot are 1 in 139,838,160. So easy to win, right? :slight_smile:

1 Like

Thank you for this information! Based on that, I would imagine very highly unlikely to get 2 of the same even if stored indefinitely. I guess I could always add a preventative check externally as I store this to a database. Originally I planned on using CreatePlaceAsync, but the feature appears to be broken. :confused:

:rofl::rofl::rofl: Definitely!

Thanks again!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.