Hello!
For a specific project I am working on I need to be able to insert modules into the following folder:
I know I am able to just put modules there and save the game and they will automatically load, but my specific use case requires me to be able to insert modules into that folder in a live server and have it function the same way.
I have tried just throwing it into the folder and I wasn’t surprised when that didn’t work.
I then attempted to Disabled and Re-Enable the ChatScript in hopes it would re-run all of its modules and find the new module I threw in; this also didn’t work.
I have even gone as far as requiring the CommandProcessor module in a LocalScript and calling the :SetupCommandProcessors() function but I didn’t expect that to work, and it didn’t.
1 Like
What are you trying to do exactly?
Basically a fork of the “Team” Command Module, but I need it to be inserted in a live server.
Why do you need to insert it live?
It will be part of an Admin system; which loads after the server has already started. For ease of use I don’t want users to have to open studio and fork the ChatModules to drop in my version.
https://gyazo.com/47ab3eb0b9920ed06d9489781d472440
Update: As long as there are no delays and I get the module inside the folder before the player loads chat then there are no issues.
It is possible that you will need to use ChildAdded
on folder to get the added module. Then when the module is added, allow this module to be extracted into something to be able to be used.
1 Like
Yeah that’s the problem I am having. The current chat modules do not have a way to add a module once it has already been loaded. And re-calling the modules will simply create a new chat.
Right now I just reload the chat of anyone in game (which is almost unnoticeable it happens to fast) and future players will automatically get the new module.