How can I make people view other players achievements (badges owned)

I want to make people able to view another players Achievements (badges owned)
Just like Murder mystery 2’s Inventory viewing system.

Skærmbillede 2024-07-20 205038

But instead of clicking the specific person on the player list tab, I wanted to make it so when you are close to a player you have the option to view their “Achievements”.

Skærmbillede 2024-07-20 204537

The issue is, I don’t know how I should be able to code this by myself, since I am very new at scripting.

I have tried to code it already but, I didn’t get very far and don’t seem to understand how the person should be able to view an individuals Achievements.

Skærmbillede 2024-07-20 204637

I have tried looking for solutions on the Developer Hub, but is seems like there is not a solution to my issue.

First you need to learn how datastores work and how to use them (otherwise you won’t even be able to show data) and then just hook it up to the GUI using a remote event to send their data over when it’s requested

Can you lead me to where I can learn about datastores?

There’s the docs, and then anything else you need to know should be on YouTube or the DevForum

I will look into this and reply to you later once I have figured out what to do or if I have an issue.

Doesn’t he only need badges to show? Those don’t require anything about datastores.

3 Likes

Now when I have looked into it, I think you are right. Datstores don’t seem to solve my issue.

I think there is something that is called the BadgeService which can be used to check if a player has a badge, if the badge is enabled, badge rewarding, and all of the info (badge name, description, if it’s obtainable, and image) of the given badge. Roblox has their forum and examples you can check here.

1 Like

Yeah but that’s if he’s only showing badges. The image he sent only includes data with numbers. It’s still an important thing to learn anyways, so I wouldn’t move away from it

That might just be what im looking for!
I will reasearch and experiment a little bit.

I wanted to make players able to view other people’s achievements, (badges they own) inside of a gui

Then you wouldn’t need datastores. I’d grab all the players badge data when they join and then send it out when needed so you don’t make a bunch of API requests

1 Like

Thats sounds about right!
I will go try it out now.