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

Why isn't my dialogue game pass shop working?

Asked by 5 years ago

Hello. I am trying to make a game pass shop on my roblox game, using rig dialogue. But it isn't working. Can you help me? Here is the code example:

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
    if choice.Name == "Flashlight $20" then
        game:GetService("MarketplaceService"):PromptPurchase(player, 7434238)
    end
end)

I put this in a regular script, and not as a child of the dialogue choice. This link is what it looks like in the explorer, to give you a better picture, and the highlighted script is the script I'm using. You'll need to zoom in on it a little bit.

https://lh3.googleusercontent.com/lB31qEsc5WKtSxVAJVV1vUJStORbNI8y3dCA2MJrZAuSoNThkAD4oISxsKS2M0q-WIyA=s85/

So what should I do?

Answer this question