Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you use DialogChoiceSelected in filtering enabled?

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question