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

i made this gamepass buy thingy but it wont work?

so i made this gamepass script

local cleanSweepId = --Basically, you put the ID of the gamepass as the value.

script.Parent.ClickDetector.MouseClick:connect(function(player) Game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId) end)

but when i type in an id its not a gamepass id anything i need to do with the id or the script?

2 comments

1
0

OH TYSM

1 answer

✓ Accepted answer

Use :PromptGamePassPurchase instead of :PromptPurchase.

1 comment

0

oh ok

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