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 4 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 — 4y
0
OH TYSM Deinonychusaurus 21 — 4y

1 answer

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

Use :PromptGamePassPurchase instead of :PromptPurchase.

0
oh ok Deinonychusaurus 21 — 4y
Ad

Answer this question