I have reserved a private server and have tried using TeleportToPrivateServer and TeleportPartyAsync, neither of which is teleporting all of the group to the same server.
local TeleportService = game:GetService("TeleportService")
local TouchBrick = script.Parent
local placeId = 4815122455
local PlayersToTeleport = {}
TouchBrick.Touched:Connect(function(touch)
if touch.Parent:FindFirstChildOfClass("Humanoid") then
local Character = touch.Parent
local Player = game.Players:GetPlayerFromCharacter(Character)
for _, OtherPlayer in next,PlayersToTeleport do
if OtherPlayer == Player or not Player:IsA("Player") then
return
end
end
table.insert(PlayersToTeleport,Player)
print("Inserted ",Player," to PlayersToTeleport ")
end
end)
local code = TeleportService:ReserveServer(game.PlaceId)
while true do
if #PlayersToTeleport>0 then
TeleportService:TeleportToPrivateServer(placeId,code,PlayersToTeleport)
end
end
