Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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})

This discussion is preserved as it was. New answers, comments, and votes are closed.