Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Roblox DialougeChoiceSelected Event Help?

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!

1 comment

0

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

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.