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!

6 comments
ok I will check tomorrow
k
where do i put it
In the dialog.
I put a dialog choice under dialog and yea under that would it work
k accept if it helped