So I know one game can have multiple places so I was wondering how to teleport multiple people who were in a game queue into their own server that will stop other people from joining once they are all loaded in
You can use a reserve server.
local TS = game:GetService("TeleportService") local code = TS:ReserveServer(placeid here) TS:TeleportToPrivateServer(placeid here, code , player / player table)
It can only be accessed by the 'code'.
EDIT: So this is what I did:
game.Players.PlayerAdded:Connect(function(player) local TS = game:GetService("TeleportService") local code = TS:ReserveServer(8357468682) TS:TeleportToPrivateServer(8357468682,code,player) end)
But it doesn't work. I don't know what I'm doing wrong, does it need to be a local script? Right now it's a normal script in the workspace folder so I don't know if it needs to be in ServerScriptService or what