📅  最后修改于: 2022-03-11 14:59:11.299000             🧑  作者: Mango
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local onlineFriends = player:GetFriendsOnline(10)
for i, friend in pairs(onlineFriends) do
print(friend.UserName)
end