I'm pretty new to pages and I found some functions and stuff related to pages and set up this script below, In print upack item it prints nothing but for print item 1 it prints nil. Pretty confused and lost any answers would help :D
function iterPageItems(pages) return coroutine.wrap(function() local pagenum = 1 while true do for _, item in ipairs(pages:GetCurrentPage()) do coroutine.yield(item, pagenum) end if pages.IsFinished then break end pages:AdvanceToNextPageAsync() pagenum = pagenum + 1 end end) end game.Players.PlayerAdded:connect(function(plr) wait(3) local friends = game.Players:GetFriendsAsync(plr.UserId) for item,pageno in iterPageItems(friends) do print(unpack(item)) print(item[1]) end end)