How do i do this?

Okay so i want to add a “visits leaderboard” in my game. Here is an example
Screenshot_2021-05-16 4hzcb42wjtx41 png (PNG Image, 1920 × 1017 pixels)
If anyone could help. It would be appreciated. :slightly_smiling_face:

I recommend moving this post to #help-and-feedback:scripting-support

i cant give you the whole script but use something with number values

You can use this endpoint: https://games.roblox.com/v2/users/{userId}/games

The response data has a “placeVisits” field for each place made by the user, you would just need to add them up

https://games.roblox.com/docs#!/Games/get_v2_users_userId_games