Hi guys, I dont get it whats the issue with this code? When it gets called the player doesnt teleport
-- Server script
game.Players.PlayerAdded:Connect(function(player)
local data = TeleportService:ReserveServer(game.PlaceId)
print(data)
local access_code = data.reservedServerAccessCode
print(access_code)
TeleportService:TeleportToPrivateServer(game.PlaceId,access_code,{player})
end)
It just prints the accesscode meanwhile the teleporttoprivateserver doesnt do anything… it yields.