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

How do you use DialogChoiceSelected in filtering enabled?

I made a script using dialogchoiceselected and put it in server script storage, the part with the dialogue is in the workspace. But when I go to test it, whenever I pick a dialogue choice the function never fires. Here is the script


wait(1)
game.Workspace.Dpart.Dialog.DialogChoiceSelected:connect(function()
	print("Good")
end)

1 answer

You gotta specify which dialogue you are talking about I think.

Here is what I would try:

wait(1)
game.Workspace.Dpart.Dialog.DialogChoiceSelected:connect(function(plr, choice)
	if choice.Name == "DialogChoice" then --put the name of the dialog choice
    		print("Good")
	end
end)


Check out this wiki article about dialogs:

http://wiki.roblox.com/index.php?title=Usage_of_dialogs

Accept this answer if it helped in some way

This discussion is preserved as it was. New answers, comments, and votes are closed.