Hai! I basically am making it so that when someone clicks a certain dialoguechoice, they get the item. My issue is the event. I realized that the event must connect with the dialogue and not the dialoguechoice. This has me confused because there are multiple dialoguechoices they must select from. Help please. Thanks!
✓ ANSWER ACCEPTED
Roblox DialougeChoiceSelected Event Help?
1 answer
✓ Accepted answer
Basically, the choice they selected is passed through a parameter so you could use this to check what they have chosen and run your script.
script.Parent.Dialog.DialogChoiceSelected:Connect(function(plr,choice)
if choice == script.Parent.Dialog.Shop2 then -- change Shop2 to the name of your dialoge
print('They have chosen shop2') -- change this to your code
end
if choice == script.Parent.Dialog.Shop1 then
print('they have chosen shop1')
end
end)
Consider accepting this answer if it helped you as it will give us both reputation.
1 comment
0
ohh i get it thanks! dont worry i always give +rep xD
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
basically need an explanation im not asking for a free script thx