Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
-- 🔧 OPTIONS -----------------------------------------------------
local LOOP_ENABLED = false -- true = keep printing; false = prints once
local LOOP_INTERVAL = 60 -- seconds between prints if looping
-------------------------------------------------------------------
local function buildFriendshipList()
local friendshipList = {}
local playerList = Players:GetPlayers()
for i = 1, #playerList do
local p1 = playerList[i]
friendshipList[p1.Name] = {}
for j = 1, #playerList do
if i ~= j then
local p2 = playerList[j]
local success, isFriend = (()
p1:(p2.UserId)
)
success isFriend
.(friendshipList[p1.Name], p2.Name)
friendshipList
()
list = ()
()
player, friends (list)
#friends >
(player .. .. .(friends, ))
(player .. )
LOOP_ENABLED
.(LOOP_INTERVAL)
()
()
The script will print a "Friendship List" This will generate a list of users in the server who are friends with each other, provided in the Dev Console. Press F9 to open the Dev Console and view the Friendship List.

Universal