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

Developer Product Buyer?

I need help making a brick so when you click it you can purchase a developer product.

1 answer

Hello! This should work for you.

local GamePass = 168606514

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

1 comment

0

Thanks

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