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

Why isn't DialogChoiceSelected Working?

HI, I made a script that will do something when a certaiin DialogChoice is selected. However, it did not work, so I made a test. Here is the LocalScript:

local dialog = script.Parent

dialog.DialogChoiceSelected:Connect(function(player,choice)
	print("A")
end)

I've tested it many times and so far it still didn't work.

Please Help!

1 answer

✓ Accepted answer

The LocalScript should not be parented to dialog, it should be somewhere on the client (for example, StarterPlayer>StarterPlayerScripts, or StarterCharacterScripts, or even in the StarterPack; it doesn't matter) Once you parent it there, your script should look something like this:

local dialog = workspace.Part.Dialog --Change this to where your dialog is located

dialog.DialogChoiceSelected:Connect(function(player,choice)
	print("a")
	--do stuff
end)

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