How could I display the players inside of a Reserved Server's Image and Name inside of a lobby game

I am currently working on a Lobby for my game and am wondering how to show all of the players inside of a certain reserved server. Here is a gui i’ve made with some drawing on what I would like it to look like

I have seen this in other games so I do know that it is possible, i am just unsure on how to do it myself.

Thanks!

Hello :slight_smile: You can use datastores to store every server and what players are in it. For example the datastore would hold

{
    servers = {
                server1 =  {
                   {927569916, 23109470973, 12947291874} # User ids
                } 
    }

}

You can then use Players:GetNameFromUserIdAsync(userId) to get their name
Documentation
and use Players:GetUserThumbnailAsync(userId, thumbType, thumbSize) to get their profile picture.
Explanation - OverEngineeredCode
If you have any problems implementing the system don’t fret to ask. :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.