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

how do you make a gamepass script give you it if you just buy it without going to a new server?

Asked by 7 years ago

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.

0
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 M39a9am3R 3210 — 7y
0
Thank you ickeyben123 22 — 7y
0
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 Goulstem 8144 — 7y

1 answer

Log in to vote
0
Answered by
Validark 1580 Snack Break Moderation Voter
7 years ago
Edited 7 years ago

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

Ad

Answer this question