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

Gamepass buy on clicked not working as intended?

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

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

2 comments

0

PromptProductPurchase, not PromptPurchase.

0

Tried it but didn't work.

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