Customizable Dialogue System Improved

There are way better dialogue systems on roblox, I am publishing this so that it may possibly help someone in the future, I did not encounter any bugs in my testing however that does not mean none exist

Functionality

this is an imporved version of this version

Allows for a easy way to make dialogue with some features that would make it applicable for simple use cases in some of your games. Allows you to create and edit dialogue only by modifying a table in a module and without needing to modify any scripts. The script controlling the dialogue is in starter player scripts, it can me modified however you want.

Features

Allows for regular dialogue, controlled by clicking a singular button that progress it onto the next dialogue, allows for prompting the player with 2 choices, which will then go into their own dialogue path, allows for pausing dialogue until condition is met, allows for executing differentiating dialogues based on the return value of a function, allows for function execution after dialogue completion.

I am not the best at explaining so here is a video

Uncopylocked place:

DialogueSystem - Roblox

Disclaimer 1: You are limited to 3 dialogue options, however in the video only 2 are present and as such you only see 2 buttons, creating more is simple and I did not see the need to create more then 3 for proof of concept

Disclaimer 2: Currently all conditions must be a value underneath the player property

The formatting of the dialogue in the module can be confusing, I recommend feeding my examples already present into an AI and getting it to built your dialogue using that format