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

How do I use PromptGamePassPurchaseFinished?

Asked by
Oficcer_F 207 Moderation Voter
6 years ago

I am making a GUI when you buy it you get the tool. But how do I use it?

1
you first prompt the player to buy the game pass, then on the server, when that prompt is finished, clone the tool into their backpack theking48989987 2147 — 6y

1 answer

Log in to vote
1
Answered by
nick540 20
6 years ago
Edited 6 years ago

PromptGamePassPurchaseFinished is event, so use it like you would use any other event. Just read the documentation for the parameters provided when the event fires. https://www.robloxdev.com/api-reference/event/MarketplaceService/PromptGamePassPurchaseFinished

Edit: Fixed link.

0
Do I write like: player.PromptGamePassPurchaseFinished:Connect(function() ? Or how. BTW the link didnt work... Oficcer_F 207 — 6y
0
Its an event of MarketplaceService, not the player. So you would use Game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(player,gamePassId,wasPurchased)[insert code here]) nick540 20 — 6y
Ad

Answer this question