How would i be able to create a dialogue tree?

im trying to make a dialogue tree where you can answer questions. However, doing this is pretty difficult and I have yet to find a proper tutorial/explanation on it. How would I be able to achieve this?

Do you mean if a player types a question on the chat that an NPC or something else answers their questions?

no, not really. Im talking about kind of the one that roblox provides where you choose an option.

Well i think you can insert a Dialogue into the head of a rig, and then put some DialogueOptions inside that Dialogue. It doesn’t require scripting, unless you want to make a custom dialogue system.

I just mainly want to know HOW that system works. (Like how does Roblox creates the dialogue tree, and provides the answers to different options)

Do you mean that you want an explanation on how to implement it, or you literally want to know how roblox does it?

I want to know how Roblox does it basically