📜  roblox studio call get friendsonline - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:11.299000             🧑  作者: Mango

代码示例1
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