UserOwnsGamePassAsync

What is better to check if player owned gamepass UserOwnsGamePassAsync? Or read gamepass status at player join then save them into module script and then when player will try to use item it everytime will read value from module script instead of UserOwnsGamePassAsync?

2 Likes

To me, read on PlayerAdded if the Player has your gamepasses and store that into a table for handy use.
When player buys the gamepass add it to the table.
Remember to flush entries on the table.
The table should be a server module of course, to be accessible for any script that would need it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.