Teleporting Players From Different Places To A Single One

So for context, each place has a portal, that when stepped on teleports the player into a new lobby, the issue is the player being teleported is always alone… How would I go about making a portal that instead of creating many servers tries to teleport players into 1 common server?

Here’s the current script:

local TeleportService = game:GetService("TeleportService")

local WarningRemote = game:GetService("ReplicatedStorage").Remotes.WarningHandler

local PLACE_ID = 72806724848157

local Deb = {}

script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
	local leaderstats = plr.leaderstats
	if plr and leaderstats and not table.find(Deb, plr) then
		table.insert(Deb, plr)
		if leaderstats["Most Days"].Value >= 10 then
			local teleportOptions = Instance.new("TeleportOptions")
			teleportOptions.ShouldReserveServer = true
			TeleportService:TeleportAsync(PLACE_ID, {plr}, teleportOptions)
		else
			WarningRemote:FireClient(plr, "You're not ready yet!")
		end
		task.spawn(function()
			wait(1)
			table.remove(Deb, table.find(Deb, plr))
		end)
	end
end)

I think its because you are teleporting the {plr} not the players inside the tables. So therefore instead of TeleportService:TeleportAsync(PLACE_ID, {plr}, teleportOptions). Try: TeleportService:TeleportAsync(PLACE_ID, Deb, teleportOptions).

That’s not the issue, the problem is the player or group of player’s would still get teleported into a private server that other’s won’t be able to teleport to.

Like when they are in the queue the players will get teleported but from my understanding you want other players who arent in the queue still join the same server?

I want the players teleporting, to teleport to servers with other people instead of empty ones

You mentioned a “new lobby”, but down here in the post above this one you said “with other people”. I just want to clarify whether you mean a new lobby of the players or just a lobby.

This is assuming you mean a new lobby of just the players. This uses a private server, so other players won’t be able to join after.

You can use TeleportService:ReserveServer() to get a Private Server Access Code and teleport all the players to the same private server.

local code = teleportService:ReserveServer(placeId)

--on each server, with the code:
teleportService:TeleportToPrivateSever(placeId, code, {player})

You can send the code via MessagingService.