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.
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.
Try printing something after each step of the way so that you know which code is broken.
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.