Help with Dialogue [HELP]

Hello! I want my game to have a dialogue system. I have this very complicated system set up right now, where a server script fires a remote event to a local script, and its this huge mess. One limitation I have with this is that I can’t add more pages.

To combat this restraint, I want to make it into a module script, where I can keep adding onto the dialogue and to make it more organized.

I have no idea how to do this, however, and I have little to no experience with module scripts.

If you could just provide me with a template then that would be great. Thank you for all the help!