How to get a list of a players friends and then insert a model of players friends

I was wondering how i could possible get a players friends list and set a dummy as their friends avatar for my game. My game is about collecting friends, but i cant seem to find a way to get a players friend in my game?

1 Like
  1. Do game.Players:GetFriendsAsync(userId). Since it gives you a page, do PageInstance:GetCurrentPage(). It will return a table, read this: GetFriendsAsync()
  2. Make a bunch of dummies (the same amount of friends the user has)
  3. For each character, get their HumanoidDescription and apply it to a dummy

If you don’t understand me, I’ll make a script for you.

3 Likes

I dont understand what is PageInstance suppose to be?

1 Like

GetFriendsAsync(userId) is the PageInstance.

local PageInstance = game.Players:GetFriendsAsync(userId)
3 Likes