Hi I need help on making a code that plays a sound when a dialog choice is selected. Can anyone let me know whats wrong with this?
script.Parent.DialogChoiceSelected:connect(function(plr, choice)
if choice.Name == “Play music” then
local song = script.Sound
song:Play()
end
end)
The script is inside the dialog.
Thanks

1 comment
Hold on, typing out the code.