I can't figure out why the code isn't running, it is inside a local script.
1 | local dialog = workspace [ "Test SellNPC" ] .Head.Dialog |
2 |
3 |
4 | local function sellgold(player, choice) |
5 | print ( "gold sold" ) |
6 | end |
7 |
8 |
9 | dialog.DialogChoiceSelected:Connect(sellgold) |