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

Can someone help me with this broken Developer Product Script?

Asked by
aindev 4
6 years ago
script.Parent.DialogChoiceSelected:Connect(function(player, dialog)
        if dialog.Name == 'choice1' then
        local devpid = 340244079
        game:GetService('MarketplaceService'):PromptProductPurchase(player, devpid)
    end
end)

It only works on studio, not In-game.

0
I would advise against using default dialogs if your game is FE. For some odd reason, they break. bluestreakejjp 41 — 6y
0
Yeah, I would advise not using ROBLOX Dialog options. Just use GUIs. Also, make sure the devpid is valid. EDmaster24 0 — 6y

3 answers

Log in to vote
0
Answered by 6 years ago

This is not possible, as Filtering Enabled is not compatible with DCS, and FE is now forced, making it impossible to use. Use a TextButton or an ImageButton instead.

Ad
Log in to vote
0
Answered by 6 years ago

Try printing something after each step of the way so that you know which code is broken.

Log in to vote
0
Answered by 6 years ago

Since FE is now forced on any game and DialogChoiceSelected is not FE compatible, the method is pretty much unusable. I'd recommend you to use GUIs instead of dialogs. Make sure to NOT be like half of this entire site and don't use server scripts in GUIs.

Answer this question