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

Music After A Dev Product Buy?

Asked by 5 years ago

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)
0
Once it’s bought, when you send the purchase granted on a local script, add an audio in soundscape and play with purchase granted Lugical 425 — 5y

Answer this question