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

How do I see if they chose a certain dialog choice?

I am trying to make a script where when somebody chooses a dialog choice it would do something I put it in Dialog.

local dialog = script.Parent
dialog.DialogChoiceSelected:connect(function(player, choice)
    if choice == script.Parent.DialogChoice.yea then
print("what?")
        end
end)

When I do it it doesn't do anything. please help!

2 answers

✓ Accepted answer

The code:

local dialog = script.Parent
dialog.DialogChoiceSelected:connect(function(player, choice)
    if choice == script.Parent.DialogChoice.yea then
print("what?")
        end
end)

The problem:

this should work as long as it's a local script otherwise you may just not be checking output for the word what?

6 comments

0

ok I will check tomorrow

0

k

0

where do i put it

0

In the dialog.

0

I put a dialog choice under dialog and yea under that would it work

0

k accept if it helped

If the script isn't local, make it local.

1 comment

0

I tried that and it and its not working

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