Get ReservedServer code?

https://wiki.roblox.com/index.php?title=API:Class/TeleportService/ReserveServer

With the ReserveServer function you get a “code” that you use to teleport players with TeleportToPrivateServer to. My question is how can a new server script check if the current server is a PrivateServer and retrieve the “code” given from ReserveServer()?

1 Like

Afaik there’s no way or use for fetching the access code to a private server from the sever itself. Don’t quote me on this, but I’m pretty sure if game.VIPServerId is not nil but game.VIPServerOwnerId is nil then it’s a reserved server.

3 Likes