TeleportService teleports to an empty baseplate

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.

As simple as it sounds are you sure everything is anchored and all the spawn points are active etc?

Yes I’m sure about it since I can walk around in studio without any problem. Also, there is a dark skybox in the actual place, but not in the empty baseplate to which I’m teleported to.

I’m not sure, but it could be because the place is not published (or rather, the update isn’t published)
image
Instead of saving to roblox or file you would publish to roblox. This will update the place to be the latest version.

If this isn’t the reason then I have no idea.

2 Likes

We tried publishing in another place and it worked, which got us confused as to why. After reading your reply, it totally makes sense now haha. The map wasn’t made by me so I assumed that the place was already at its latest version. Thanks for helping!

1 Like