Hello, I don’t know if this is in the category or really suitable for the DevForum (I’ll delete it if it isn’t), but I was wondering about how to gather player data.
What I mean by gathering player data is to know, for example, which car is bought the most in my game (How many people bought each car), or, when players have values stored in them, such as cash, be able to know how much they have.
The best way to track data like this is to use a 3rd party app like analytics.google.com. This is what I use to keep track of data, but there are other options out there. Here is a wiki article showing you how to use the analytics service by Google Documentation - Roblox Creator Hub
Also, I forgot to mention, but this service also tracks serversided errors which can be really useful for debugging without having to rely on bug reports from users.
Saving an individual player’s data like the amount of cash they have/number they chose should be saved through a data store. The analytics service mentioned above should be used for tracking the best selling car in the game.
I understand that that type of data should be saved through data store. But how can I know that data which the player has? Say he has three IntValues each having a random number, how can i know what those values are (ex: User MrDaBigBoss: 3, 9, 5)
You’ll have to retrieve the values from the datastore by using the :GetAsync() method. I recommend using datastore2, it uses the datastore in roblox to create a new and improved version of the datastore. The api for datastore2 can be found here.