I saw this happen on Miners Haven and haven't seen anything about it really so I was wondering how you could make somebody get a gamepass they bought if they are currently in a server when they buy it.
✓ ANSWER ACCEPTED
how do you make a gamepass script give you it if you just buy it without going to a new server?
1 answer
✓ Accepted answer
M39a9am3R Answered:
Use MarketplaceService's PlayerOwnsAsset. Do not use GamepassService or any other service as they cache the result. With PlayerOwnsAsset, it will return true or false everytime they have the gamepass or not. http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Use MarketplaceService's PlayerOwnsAsset. Do not use GamepassService or any other service as they cache the result. With PlayerOwnsAsset, it will return true or false everytime they have the gamepass or not. http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
Thank you
c'mon if u have the answer y not just answer. commenting answers makes it so anyone who actually answers looks like a copier/is ignored :c