Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Am I using DialogChoiceSelected wrong? My script doesn't work and it's not giving me erorrs back.

Asked by
4Gramz 0
4 years ago

Script:

```lua function Buy(player, dialogChoice) if dialogChoice.Name == "Choice1" then print("hi") end end

script.Parent.DialogChoiceSelected:Connect(Buy)```

Is there a problem with my script or something?

also the setup: https://gyazo.com/389593a9a8de868a1420255fbaf40213

Answer this question