Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make gamepass script update live?

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?

2 comments

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

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

1 answer

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 

This discussion is preserved as it was. New answers, comments, and votes are closed.