How can I allow players to join their friend's servers?

I’m currently working on a game which spans multiple places. What API’s can I use to make my menu place bring up a list of the player’s online friends who are in game and they can join? Thanks!

1 Like

You should be able to find a lot of information just by searching “friends” in the roblox API Reference. https://developer.roblox.com/en-us/search#stq=friends

I looked around but I couldn’t find anything that applied well for what I was trying to do. I thought it might be faster and more productive to get advice from someone who might have already done it before, though I will have another look just for good measure :slight_smile:

https://developer.roblox.com/en-us/api-reference/function/Players/GetFriendsAsync

Will allow you to get what game, place, and server code each active friend is in. Without more details, this is the best we can do to help you.

Thats the wrong one. GetFriendsAsync only returns a friends list as well as their online status. GetFriendsOnline returns full presence information.

GetFriendsAsync is good if you want to display a list of your friends and their online status, then top off with GetPlayerPlaceInstanceAsync.

5 Likes