How would I make music play after they bought the Dev Product? Like if they click on a brick and then buy it how would I make it play music?
script.Parent.ClickDetector.MouseClick:connect(function(plr)
local productId = 00000
game:GetService('MarketplaceService'):PromptProductPurchase(plr, productId)
end)

1 comment
Once it’s bought, when you send the purchase granted on a local script, add an audio in soundscape and play with purchase granted