I want to make it so Users that make Private Servers can teleport to different places (As a Private Server with the owners server) [Using the normal Private server system].
For example lets say I made a Private Server and joined it, But its the main menu, How would I detect if what the user is currently in is a Private server and how would I make it so the users that join that Private server also teleport to the Private Server version?
If you’re talking about VIP servers, game.VIPServerId and game.VIPServerOwnerId are properties you can read. If game.VIPServerId is nil, then the game isn’t a VIP Server.
However if you’re talking about reserved servers, game.PrivateServerId and game.PrivateServerOwnerId are properties you can also read. Same rules apply to these properties.
local Server = TeleportService:ReserveServer(placeId) will return a reserved server that you can teleport players to.
You can use game.JobId, it’s basically a randomized code for servers. Both Public and Private Servers have this.
And the best part is YOU CAN USE IT FOR TELEPORTING!
An alternative and recommended method is to use game.PrivateServerId, it’s basically a randomized code only for private servers. The difference between the two is that JobId changes when the private server has no players, while PrivateServerId never changes even when the private server is empty and got expired.