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

Can you guys help out?

Asked by 8 years ago

This is what i got so far, and i wanted it so it can make a sound whenever they purchased the game pass and i dont know how to...

Help plz

BuyButton.MouseButton1Click:connect(function()
local PassId = 248125881
game:GetService("MarketplaceService"):PromptPurchase(Player, PassId )
end)

1 answer

Log in to vote
0
Answered by
Smunkey 95
8 years ago

If your button contains a sound, you can just add a line with the sound name followed by :play

Sound:Play() --like this

I recommend looking at the roblox wiki before asking questions in the future

Ad

Answer this question