How would I make a Reserved server that can be accessed by multiple people at once

I’m making a system where you will be teleported to a separate server but on a map that is the same place. Because I want stuff like the datastores to be consistent obviously I can’t have designated place they can go to. And I know its possible, but I don’t know where to start, I’ve tried this but it when I tested with someone they teleported me and him to separate empty servers.

local access = game:GetService("TeleportService"):ReserveServer(id)

game:GetService("TeleportService"):TeleportToPrivateServer(id,access,{player})

How would I make it so they teleport to a consistent server. I was thinking maybe adding it to a database when the first person joins the battle but don’t think that’ll work. I’m pretty sure I need an int64 code and I don’t have a clue how to look into that.

Is there any links you guys can send me about how I would go ahead?

I believe private servers are not actually private, they just simply require an access key to join. Saving these in a database using MessagingService to tell other servers should work.

do you think you could go in a bit more detail, how would i get the access key to save? also isn’t messagingservice deprecated?

nvm ignore the deprecated part i got mixed up

ok i had a crack ive solved it perfectly fine thank you

1 Like