Dialog Donation

I’m trying so hard to make a dialog donation but it won’t work. Can anyone help me with this?

(If this is the german catalog then I am very new on this devforum.)

1 Like

Dialog Donation?
I never see that features before

3 Likes

Can you tell me a bit more of what you mean by dialog donation?

2 Likes

can you explain what exactly you mean by that because I personally have never heard of that, it would help us help you, if you were about to give us some more info

He wants something where if you click one of the responses on an NPC with the dialogue function in it, you end up donating robux.

1 Like

@JUST1N2007, do you mean a donation GUI? Else you can make something similar:

local Dialog = YourDialog
local productID = 0000000  -- Change this to your developer product ID
local MarketplaceService = game:GetService("MarketplaceService")
Dialog.DialogChoiceSelected:Connect(function(player, choice)
    if choice.Name == "The_Name_Of_Your_Choice" then
        MarketplaceService:PromptProductPurchase(player, productID)
    end
end)
3 Likes

Doesn’t work… I have a question

What does mean YourDialog and “The_Name_of_your_Choice”

Change YourDialog to it’s object name. Second is The_name_of_your_Choice to correct Dialog Choice name

1 Like

Alright thanks. I hope it will work now… if no then I’m giving up. xD

@banktoner about the object you said, do you mean the part or the name?

1 Like

The Instance self (in others words: The Object). If you have troubles with this then learn at first Lua basics

The Object I said is not a part
it’s class of it’s Object ^^