Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can I get a list of a users friends?

How can I get a list of somebody's friends? I know I will probably need to use HttpService but I do not know of an api that I can get friends from.

3 comments

0

Try using Player:IsFriendsWith()

0

Maybe write your own API (if you know how to) or just wait until one becomes available (I'm sure it will eventually).

1 answer

Technically, you can't get a list of users' friends at the moment, but someone might make a new HttpService API so you can. You can use the :IsFriendsWith(userId) method to see if someone is friends with a user. Example:

game.Players.PlayerAdded:connect(function(player)
if player:IsFriendsWith(16099777) then --replace 16099777 with your user ID
print(player.Name.." is friends with bobafett3544!")
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.