Title says it. Is there a way to trigger a function when a certain DialogChoice is selected with a LocalScript?
I think yes, put a local script into startercharacterscripts. This is an example:
1 | workspace.Dialog.Head.Dialog.DialogChoiceSelected:Connect( function (player, dialog) |
2 | 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 |
3 | --I was just show the arguments, of course you can write your code there, or FireServer from there. |
4 | end ) |
Possible with Remote Events too..