I was trying the more than 4 scripts that loads player’s friends but all of them loading only 50 of them and FriendPages are not working with :AdvanceToNextPageAsync not working at all
You can use something like this:
local success2, pages = pcall(function()
return players:GetFriendsAsync(player.UserId)
end)
if success2 then
while true do
for _, data in pairs(pages:GetCurrentPage()) do
print(data)
end
if pages.IsFinished then
break
else
pages:AdvanceToNextPageAsync()
end
end
end
You might be using pages:AdvanceToNextPageAsync() wrong, it shouldn’t have a limit. Use ipairs if you like to get them in order.
oh… It works perfectly thanks! I used the code inside roblox document and it loaded only first page somehow
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.