Module script not updating

To keep it simple, I have a local module script which I use as a dictionary.
When running the game, a few variables inside the dictionary get updated.

What I would like to do now, is to copy the module script, stop the game, and then paste it back into the workspace.

When I do that and open my module script inside the script editor, the values are the same as they were before I launched the game. The values which were previously updated did not change.

Is there some way around this, or do I have to use physical variables?

Sorry if I didn’t read this correctly, but do you want the module script’s variables to save? Like with a datastore?

1 Like

When you copy a script, what you see in script editor is the source. The source will not change during runtime, which means you cannot get the values by copying.

You could print the dictionary and copy it.

1 Like