How to teleport players to another game using local script

no Line 8 is

tps:TeleportAsync(placeid,player, tpoption)
tps:TeleportAsync(placeid, {player}, tpoptions)

You have to pass an array of players, not just a singular one.


CC @round_63:

Exploiters can learn, and RemoteFunctions are in no way dissimilar to RemoteEvents - therefore they’re just as easy to manipulate & send false information.

Either way, they’re not appropriate for this use-case.

1 Like

that worked, what does {} have to do with player, it doesn’t make sense to me that it worked with {} and not when without{}

TeleportAsync requires two parameters:

  • A place ID
  • An array of players to teleport

Luau doesn’t have an array data type, so what the creator docs mean is a table.

TeleportAsync is designed with teleporting multiple players in mind.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.