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.
COMMUNITY QUESTION
Can I get a list of a users friends?
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.

3 comments
Try using Player:IsFriendsWith()
Maybe write your own API (if you know how to) or just wait until one becomes available (I'm sure it will eventually).
NotsoLate: https://www.roblox.com/friends/json?userId=1