What is the difference between TeleportPartyAsync and TeleportAsync

This is kinda confusing because both functions can teleport a list of players to a server. Can someone explain whta difference they have?

TeleportPartyAsync has been deprecated, but remains for backwards compatibility. The docs for TeleportPartyAsync state:

The numerous teleport functions have been combined into a single method, TeleportAsync, which should be used instead and may be used to:

    Teleport any number of players to a Public Server
    Follow a Friend to a Different Place
    Teleport any number of Players to a Reserved Server

You can find the docs here: TeleportService | Documentation - Roblox Creator Hub

to teleportasync will be sure to teleport al players to the same server? btw how does it account for server size

1 Like

It will teleport them to the same server, yes.

To see errors and how it handles bad data, refer to the docs. TeleportAsync Documentation

1 Like

ok but what if the server limit is 15 and I try to send 30 people through, will this error?

1 Like

I’ve seen games with 1 server limit but in the game they run servers with like 50 people

1 Like

Those games teleport you to another place which has a different server limit.
If you try to teleport people to a server without enough room, it will error

1 Like

ok, if i were to make a game where players can join custom servers would i just save the servesr jobID through memory service?

1 Like

also should i use :teleport or :TeleportAsycn

1 Like

A bit late but :TeleportAsync is prefered by roblox and yes you just use it with JobId for a specific server, not just custom/private ones

I used MemoryStoreService for a lobby system i made