-
What do I want to achieve? For players to get teleported into a server like a queueing system.
-
What is the issue? It teleports the players into separate servers
Here’s what I’m doing to teleport the players:
local plrs = {}
for i = 1, #queue do
if game.Players:FindFirstChild(queue[i]) then
table.insert(plrs, game.Players:FindFirstChild(queue[i]))
else
table.remove(queue, i)
end
end
teleporting = true
updateGui()
local server = tps:ReserveServer(placeId)
tps:TeleportToPrivateServer(placeId, server, plrs)
repeat wait() until #queue <= 0
teleporting = false
updateGui()
end```