Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you send someone to a specific server?

Asked by 6 years ago

Im truing to make a game where when you type in a certain password it sends you to the server that the password is assigned to. not a game itself but individual servers.

1 answer

Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
6 years ago

There are two types of servers: Private Servers and Normal ones.

In order to teleport to a normal server, you need its id. Then you need to use TeleportService:TeleportToPlaceInstance(placeId, serverId, player)

But what would seem better for you to use is private servers. In order to teleport to a private server, you need to generate a code of one with TeleportService:ReserveServer() and then use TeleportService:TeleportToPrivateServer().

Unlike normal servers, private servers can be accessed with the same access code even after all players had left them. They also don't appear in the servers list.

Ad

Answer this question