So I've seen games getting avatars/names from my friends list and I want to do something like that. does it have to do with game.Players.LocalPlayer.Name or something? Please help.
I think they used this:
1 | local player = game.Players.LocalPlayer |
2 |
3 | local dict = player:GetFriendsOnline( 10 ) -- This gets there first 10 friends that are online |
4 |
5 | for i,friend in pairs (dict) do |
6 | print (friend.UserName) |
7 | end |
This is the roblox dev page for it https://developer.roblox.com/api-reference/function/Player/GetFriendsOnline