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

i made this gamepass buy thingy but it wont work?

Asked by 5 years ago

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?

1
Gamepasses need a separate method named PromptGamePassPurchase https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/PromptGamePassPurchase pidgey 548 — 5y
0
OH TYSM Deinonychusaurus 21 — 5y

1 answer

Log in to vote
0
Answered by
Vxpper 101
5 years ago

Use :PromptGamePassPurchase instead of :PromptPurchase.

0
oh ok Deinonychusaurus 21 — 5y
Ad

Answer this question