Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
- while wait(5) do
- --get your friends online
- local friendsOnline = player:GetFriendsOnline(10)
- --populate friends string
- local friendsString = "You have" .. #friendsOnline .. " friends online!: \n "
- for i, friend in ipairs(friendsOnline) do
- friendsString = friendsString .. i .. ") " .. friend.Username .. " ( " .. friend.LastLocation.. ")\n"
- end
- --update gui
- script.Parent.Text = friendsString
- end
Advertisement
Add Comment
Please, Sign In to add comment