Hi there, I have been trying to make a gamepass so that where players buy the gamepass to get their name on the wall of fame or something. I’m pretty new to scripting and I tried finding many tutorials but couldn’t achive anything. How could I make it so it shows the list of players who bought the gamepass or the developer product?
We can’t help you if you don’t have any code written.
your best bet would be to use a surface gui on a wall part. look into the documentation for marketplaceservice, the PromptGamePassPurchaseFinished
function can be used to detect when a player purchases the gamepass. on the wall, you should have a UIListLayout which can automatically position UI components.
Thank you I will search about that and let you know
This isn’t necessary. You can easily fetch the data and loop through all of it to check whether a player has already been added if you keep all the hall of fame data under one key. If the OrderedDataStore isn’t updated, update it. Keep in mind that it would be best to keep a cache or local copy of the data that you update so you don’t hit Roblox datastore API limits.
Check if the player owns the gamepass.
If they do then make a new SurfaceGUI and put it on the wall, containing their name.