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