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

Is it Possible to Trigger a Function when DialogChoice is selected via LocalScript?

Title says it. Is there a way to trigger a function when a certain DialogChoice is selected with a 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..

1 comment

1

thank you, worked

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