Any one know how to use this. I know it needs to be called locally and it returns something along the lines of "table: 1D163E88". Can someone give a example of how I would print out each value?
1 | local Friends = Game.Players.LocalPlayer:GetFriendsOnline() |
2 | print ( unpack (Friends)) |
Upvote please
:GetFriendsOnline()
returns a table. so well... yeah. It returns a table of all friends that are online. so, if we want to know each player in the table then we will define it first, and use a pairs loop on that table to print each value on it.
1 | local friends = game.Players.LocalPlayer:GetFriendsOnline() |
2 |
3 | for _,v in pairs (friends) do |
4 | print (v) |
5 | end |