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

Gamepass buy on clicked not working as intended?

Asked by 5 years ago
local productId = 5126053
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() 
    game:GetService("MarketplaceService"):PromptPurchase(player, productId)
end)

For some reason it shows as "item not for sale" and shows a random picture... Any help?

1 answer

Log in to vote
0
Answered by
Syclya 224 Moderation Voter
5 years ago
Edited 5 years ago

PromptProductPurchase, not PromptPurchase. ALSO, please use :Connect() instead of :connect() as :connect() is depreacted.

0
PromptProductPurchase, not PromptPurchase. Syclya 224 — 5y
0
Tried it but didn't work. Fries_George -5 — 5y
Ad

Answer this question