TeleportToPrivateServer says "Attempted to teleport to a place that exists"

Odd question but, do you know if TeleportService:ReserveCode(placeid) and game.PrivateServerId are the same? Can you use game.PrivateServerId for teleporting with TeleportToPrivateServer?

Not sure, but the code for the private server should be retrieved when reserving the server.

local code = TS:ReserveServer(game.PlaceId)

Thanks alot, I’ve been tweaking the code alot since we’ve been talking. I’ve been using game.PrivateServerId, which for some reason, TeleportService doesn’t allow you to use that to teleport. I have rewrote some things and made it so the code teleports using the TS:ReserveCode() instead of game.PrivateServerId. The acutal game checks if its the right server using the creator of the server. Thanks alot!

Glad I could help! Good luck with the game!

1 Like

privateServerId isn’t the same as a jobId, so you won’t be able to teleport to it. it’s something we’re looking to improve!