THE SHORT ANSWER
Roblox released two new methods, GetFriendsInServerAsync and GetFriendsInUniverseAsync, allowing developers to retrieve friends lists directly without complex filtering. These tools simplify building social features like friend lists, markers, and teleportation systems, while respecting user privacy settings and regional regulations.
- Player:GetFriendsInServerAsync returns Player objects for friends in the current server.
- Player:GetFriendsInUniverseAsync returns tables with PlaceId and GameId for friends in any place of the game.
- The APIs respect user privacy settings for online status and game visibility.
- Developers should use pcall to handle potential failures and allow gameplay to continue if the API is unavailable.
- These methods replace the need to combine Players:GetPlayers with Player:IsFriendsWithAsync for server-specific queries.
Roblox developers now have two new methods to access friend data directly. The methods Player:GetFriendsInServerAsync and Player:GetFriendsInUniverseAsync were released on November 23, 2026. These tools simplify the creation of social features like friend lists and teleportation systems. The update affects all developers building experiences that require social integration or friend tracking.
New Player Methods: Direct Access to Friends
The new API suite introduces two distinct functions located under the Player object in the Engine API Reference.
Player:GetFriendsInServerAsync returns an array of Player objects representing the friends of the caller who are currently in the same server. This method excludes the player making the call. Because the return value is a Player object, developers can access properties like DisplayName, UserId, and Character directly. This allows for immediate implementation of friend markers or highlighting names in chat.
Player:GetFriendsInUniverseAsync returns a table for each friend who is online in the current game universe. This includes friends in other places within the same game. Each entry in the returned array contains a User object, a PlaceId, and a GameId. The GameId is the server JobId of the friend's current location. This method is critical for games where players move between places, as it allows developers to locate friends across different server instances.
Use Cases for Social Features
The primary use case for these APIs is replacing older, more complex logic. Previously, developers had to combine Players:GetPlayers with Player:IsFriendsWithAsync to determine if a player in the server was a friend. This required looping through all players and making multiple API calls.
With GetFriendsInServerAsync, developers can retrieve this data in a single call. This improves performance and reduces server load. The API is also useful for teleportation systems. GetFriendsInUniverseAsync provides the PlaceId and GameId needed to teleport a player to a friend who is in a different place. This streamlines the development of teleport-to-friend features.
Privacy and Regional Restrictions
The new APIs are designed to respect user privacy settings. If a friend sets their "Online status" or "Show current game" to "No One," they will not appear in the results of either API. The announcement also notes a restriction regarding Australian users. Creators will not have access to the friends lists of Australian users under 16 who have set their developer friends list access to "No." In these cases, the APIs will return an empty array.
Comparison with Existing APIs
Roblox provided a clarification on how these new methods relate to existing Friend APIs. GetFriendsInUniverseAsync is specific to the current game universe and does not return friends in other games. GetFriendsOnlineAsync returns friends who are online anywhere on Roblox. GetFriendsAsync retrieves the full list of friends, including offline users. GetFriendsInServerAsync effectively replaces the combination of GetFriendsOnlineAsync and filtering by JobId to find friends in the current server.
Implementation and Error Handling
The official documentation advises developers to wrap these calls in pcall to handle potential failures. If the API call fails, the application should keep the last successful result or hide the social UI for that session. Gameplay should continue uninterrupted if the friends lookup is unavailable. An empty array is a normal result and indicates that no friends are currently in the requested scope.