How do I do it? Individual places for each player

image
I have this error for this script

Players.PlayerAdded:Connect(function(player)

local code = ServerAccessCodes:GetAsync(player.UserId)
print(code)

 TeleportService:TeleportToPrivateServer(game.PlaceId, code, {player})

end)

I think because the private server Id is the Id of another place ?

Now it works! I just replaced game.PlaceId with the ID of the access code

1 Like