---
title: "See Who Are Friends in a Server | Universal Roblox Script - ScriptBlox"
description: "See Who Are Friends in a Server for any Roblox game: The script will print a \"Friendship List\" This will generate a list of users in the server who are..."
canonical_url: "https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454"
meta:
  "og:description": "See Who Are Friends in a Server for any Roblox game: The script will print a \"Friendship List\" This will generate a list of users in the server who are..."
  "og:image": "https://scriptblox.com/images/script/0-1759060495401.png"
  "og:title": "See Who Are Friends in a Server | Universal Roblox Script - ScriptBlox"
  "twitter:description": "See Who Are Friends in a Server for any Roblox game: The script will print a \"Friendship List\" This will generate a list of users in the server who are..."
  "twitter:image": "https://scriptblox.com/images/script/0-1759060495401.png"
  "twitter:title": "See Who Are Friends in a Server | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1759060495401.png)

# **See Who Are Friends in a Server**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![etherheaded](https://scriptblox.com/images/photo/68ce4dac5100bcf3f3ef8ca6-1758350881791.png) [etherheaded](https://scriptblox.com/u/etherheaded)Lv 6First script**

1 year ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

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.

[View Raw](https://scriptblox.com/raw/Universal-Script-See-Who-Are-Friends-in-a-Server-55454)

```
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 = pcall(function()
                    return p1:IsFriendsWith(p2.UserId)
                end)
                if success and isFriend then
                    table.insert(friendshipList[p1.Name], p2.Name)
                end
            end
        end
    end

    return friendshipList
end

local function printFriendships()
    local list = buildFriendshipList()
    print("Friendship list:")
    for player, friends in pairs(list) do
        if #friends > 0 then
            print(player .. " is friends with: " .. table.concat(friends, ", "))
        else
            print(player .. " has no friends in the server.")
        end


```

## **Comments **

**3**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454)

![romaegriscin's profile picture](https://scriptblox.com/images/user-default.webp)

[**romaegriscin**](https://scriptblox.com/u/romaegriscin)1 year ago

Who need it? Spy?

1

![supergoonman's profile picture](https://scriptblox.com/images/user-default.webp)

[**supergoonman**](https://scriptblox.com/u/supergoonman)1 year ago

[@romaegriscin](https://scriptblox.com/u/romaegriscin) yes

1

![etherheaded's profile picture](https://scriptblox.com/images/photo/68ce4dac5100bcf3f3ef8ca6-1758350881791.png)

[**etherheaded**](https://scriptblox.com/u/etherheaded)Lv 6**Uploader**1 year ago

[@romaegriscin](https://scriptblox.com/u/romaegriscin) to explain, i play a game where people team up a lot, which makes the game unfair for people who aren't teaming. a key strategy is to get rid of teamers, and the most efficient way to spot teamers is to check everyone's friends list so you can see who's friends with who. the purpose of the script is to automatically spot potential teamers so i can strategize around that.

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454#script","url":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454","name":"See Who Are Friends in a Server","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"etherheaded","url":"https://scriptblox.com/u/etherheaded"},"datePublished":"2025-09-28T11:54:55.420Z","image":"https://scriptblox.com/images/script/0-1759060495401.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454#webpage","@type":"WebPage","description":"See Who Are Friends in a Server for any Roblox game: The script will print a \"Friendship List\" This will generate a list of users in the server who are...","name":"See Who Are Friends in a Server | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-See-Who-Are-Friends-in-a-Server-55454#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"See Who Are Friends in a Server","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
