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

How to join a friend's server?

Asked by
RoyMer 301 Moderation Voter
7 years ago

How can I use the teleport service but make it so it joins the friend's server?

Or is this just an illusion which makes the person rejoin the game as Roblox automatically matches people with their friends?

1 answer

Log in to vote
6
Answered by 7 years ago

TeleportService

A quick search on the Wiki brings me to the TeleportService, where two particular methods stand out: GetPlayerPlaceInstanceAsync (Try saying that three times fast), and TeleportToPlaceInstance. Used together, these can supply you with the ability to teleport to the friend's game, by getting the game instance id and using it to teleport to the specific server instance.

0
Thanks! RoyMer 301 — 7y
Ad

Answer this question