I am trying to get all the players from one server to go to a second part of the game in a different experience kind of like a story game to a game like the mimic. My script works fine other then the fact that it teleports each person to the game but in different servers.
for i, v in pairs(Players:GetChildren()) do
TeleportService:Teleport(000, v) – 000 is game ID
end
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local code = TeleportService:ReserveServer(game.PlaceId)
local players = Players:GetPlayers()
TeleportService:TeleportToPrivateServer(game.PlaceId, code, players)
-- You could add extra arguments to this function: spawnName, teleportData and customLoadingScreen