When creating specialized tables dynamically getting data from modules by running code in the command bar, I get a expectable issue.
Once you require a module once it gets allocated in memory of the server, and if you require it when Studio is not on game mode (testing) it causes the same (but, the pc being the server, and no testing mode, the entire studio session keeps it allocated in memory), the next time you require it, it still has the “old” information from the time you first required it, and it doesn’t contain the new edits.
The only way to get the new data is by closing studio and opening it again, or creating a new module cloning the previous one.
Is there a way to delete it from memory in an easier way?
(It doesnt matter if its not, I have many other ways to accomplish my workflow, I just wanted to know if someone knows some info about this)
@batteryday and @SeargentAUS both ways works, thank you so much! I think I would go with the “Reload Script” button, sounds more “normal”, but the :Clone actually works too.
No, only during the current session, thats why I said that closing and opening studio again did flush the module. And its not on TestingMode, its by requiring it when studio is doing nothing, lets call it “build” mode when you are writing a script, not test mode