Base on Roblox's developer guide site.
local player = game.Players.LocalPlayer
local dict = player:GetFriendsOnline(10)
for i,friend in pairs(dict) do
print(friend.UserName)
end
Read for:
[https://developer.roblox.com/api-reference/function/Player/GetFriendsOnline](https://developer.roblox.com/api-reference/function/Player/GetFriendsOnline)NickAtNick163— 5y
0
If you're only gonna post links then post them in comments.User#2440369— 5y