Title says it. Is there a way to trigger a function when a certain DialogChoice is selected with a LocalScript?
✓ ANSWER ACCEPTED
Is it Possible to Trigger a Function when DialogChoice is selected via LocalScript?
1 answer
✓ Accepted answer
I think yes, put a local script into startercharacterscripts. This is an example:
workspace.Dialog.Head.Dialog.DialogChoiceSelected:Connect(function(player, dialog)
print(dialog.Name .." ".. player.Name) -- dialog.Name prints Choice1 for me, because that's the name of the choice, and player prints the player's name who clicked
--I was just show the arguments, of course you can write your code there, or FireServer from there.
end)
Possible with Remote Events too..
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
thank you, worked