For the game I’m working on, I created a party systen which teleports all players in a party to another place using ReserveServer() and TeleportToPrivateServer().
However, when testing in the live game, the place I get teleported to is always empty, while opening the place in studio shows that the map is really there. I double checked the place id so I’m sure that it’s the right one and it’s definitely part of the same game. The number of visits in the place to which we are teleported increases as well. I do not believe that my code contributes to this issue but here it is anyway (placeId is set to the id):
local countdown = 10
spawn(function()
repeat
print("Teleporting in " .. countdown)
wait(1)
if not party or not AreAllPlayersReady(party) then
break
end
countdown = countdown - 1
until countdown <= 0
if countdown <= 0 then
print("Teleporting...")
local players = {}
for _, member in pairs(party.Members) do
table.insert(players, member.Player)
end
print(placeId)
local code = TeleportService:ReserveServer(placeId)
TeleportService:TeleportToPrivateServer(placeId, code, players)
else
print("Teleport Canceled")
end
end)
There are no errors at all which makes me completely clueless about what’s wrong. Everything worked at expected except the fact that the destination is empty.