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

How to teleport a single player using TeleportService:TeleportToPrivateServer()?

Asked by
A_thruZ 29
3 years ago

Hello! I am making a FPS game where you start in a lobby and can join others lobbies, so your friends can join you. I have the lobby chunk finished, although I cannot seem to figure out how to teleport a single Player. The function takes the arguments placeId, reservedServerAccessCode, and Players. The Players argument is an Array intended to have multiple Player objects in it. If I try to teleport only one Player, I get this error:

Argument 3 missing or nil

So far I haven't found anyway to fix this. Help is always appreciated!

1 answer

Log in to vote
2
Answered by
Sparks 534 Moderation Voter
3 years ago

I am not very familiar with using TeleportToPrivateServer(), but have you tried just putting the single player into a table?

TeleportService:TeleportToPrivateServer(placeId, reservedServerAccessCode, {Player})
Ad

Answer this question