I have 2 places in my game universe, the lobby and the place. I'm a trying to teleport the players to this place from the lobby. I know it doesn't work in Roblox Studio, so I tested it in the game itself. There wasn't the normal error that pops up in the studio so that was good, but something popped up on my screen that says "Place does not exist" or something like that.
here is my code, please help
local TS = game:GetService("TeleportService") local Players = game:GetService("Players") while wait(.1) do local SecoundsLeft = 30 game.ReplicatedStorage.HowMenySecounds.Value = SecoundsLeft local playerTable = {} if game.ReplicatedStorage.HowMenyPlayers.Value > 2 then for i = 1,30 do wait(1) SecoundsLeft = SecoundsLeft - 1 game.ReplicatedStorage.HowMenySecounds.Value = SecoundsLeft if game.ReplicatedStorage.HowMenyPlayers.Value > 2 then if i == 30 then for i,playerName in pairs(game.Workspace.PlayersInQue:GetChildren()) do table.insert(playerTable,game.Players:FindFirstChild(playerName.Name)) playerName:Destroy() end local code = TS:ReserveServer(4517552075) TS:TeleportToPrivateServer(game.PlaceId,code,playerTable) end else break end end end end