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

How to make gamepass script update live?

Asked by
iSEANxo -1
7 years ago

Is there a way I can make gamepass scripts give out tools to people that purchase them without them having to wait for a new server?

Sometimes when someone purchases one of my gamepasses, they often complain about it not working when it does and they just need to join a new server.

How can I make a script recognise a gamepass holder more quickly, almost updating live?

0
Since checking if a user owns a gamepass is run on the ROBLOX end,there really isn't anything you can do about it. I would recommend checking out developer products. http://wiki.roblox.com/index.php?title=Developer_product Reshiram110 147 — 7y
0
It is recommended that you use PlayerOwnsAsset over PlayerHasPass as its results are cached. http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset User#5423 17 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
service = game:GetService("MarketplaceService"):GetProductInfo() -- put your product id inside example: Parent.Value
script.Parent.Parent.Text = ""..service.Sales.." buy" -- you can change the script.Parent.Parent.Text to where you want to show it 
Ad

Answer this question