In my script it is meant to teleport the player to a place (different game) but it wont work
local TARGET_PLACE_ID = placeIds[lobby.Map.Value]
if game.Players:FindFirstChild(lobby.Creator.Value) then
TeleportService:TeleportAsync(TARGET_PLACE_ID, {game.Players:FindFirstChild(lobby.Creator.Value)})
end
for _, plr in pairs(lobby.PLAYERS:GetChildren()) do
if game.Players:FindFirstChild(plr.Value) then
TeleportService:TeleportAsync(TARGET_PLACE_ID, {game.Players:FindFirstChild(plr.Value)})
end
task.wait()
end
lobby:Destroy()
end)```