Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How would I make a list of gamepass owners?

Asked by 4 years ago
Edited 4 years ago

I'm trying to make a list of supporters that will put your username on it when you buy the gamepass, but I couldn't find anything on the wiki except for UserOwnsGamePassAsync, which would work for a server leaderboard, but I'm trying to make a global leaderboard. Could I use an OrderedDataStore for this, or would I need something more advanced?

1 answer

Log in to vote
1
Answered by
sleazel 1287 Moderation Voter
4 years ago

UserOwnsGamePassAsync and OrderedDataStore aproach should work. You might also use PromptGamePassPurchaseFinished if you are selling gamepasses in the game, and want to update the list without the need for player to rejoin. Other than that, connect your function to PlayerAdded and you should be ready to go.

Also remember that OrderedDataStores have rather small querry limits, so do not update your list too often.

Ad

Answer this question