How to make it so something happens when a DialogChoice is clicked?

I want to know how to make something happen when DialogChoice is clicked, i remember that being possible and seeing something like that in a video.

2 Likes

You can use the DialogChoiceSelected event. Whenever the player chooses a certain dialog, you can fire this event and any code inside it will run.

I have to caution you though that this event is client-side only, so anything you do on this event will only be visible by the client, unless you fire a remote event to the server.

Check this resource. Even if you build your own, there is working code for this.

Dialogue Tree Editor Plugin & Dialogue System - Resources / Community Resources - DevForum | Roblox

Weird how this doesn’t show up in the main page, and doesn’t show up in the object browser as well.