TextLabel to show player stats when not ingame

Is there a way I can make a TextLabel or something show the number of a player’s leaderstat? When they’re not in-game? I am trying to make a profile system where player’s can view each other’s profile… and I want to make it so you can see a player’s stats. Is this possible?

1 Like

You would need to use a data store which gets its data when viewing the gui

Would I need the player’s key and the data store folder thing? I am so confused… could I have a bit more of an explanation?

A data store is basically like a table which stores values. The method you describe is fairly simple, a dictionary of the players userid with the data being incapsulated with it. So like this is what a data store looks like

datastore {
  43120420134: {
    //data
  }
}

So I would use:

script.Parent.Text = game:GetService(“DataStoreService”):GetDataStore(“MyData”)[userid].leaderstats.Points.Value ?

totally depends on how you setup your database

1 Like