Can DataStore.data interact with multiple files?

Let’s say we have two separate JS files. in File A, we set dataStore.data.myData = true; and in the file B, we want to check if dataStore.data.myData = true;. Will it return a result, will the game know the specific data already or do I have to merge the two files because that ‘variable’ is local?

You want to ‘move’ one variable from one file to another?
If yes, then you gotta get it to the memory or into the game…
somehow…

Oh and welcome back from the dead.

No. I want to know if I make a new data named dataStore.data.myData and set it to true in a file, will the other file be able to understand if it exists?
BTW, Thanks.

It doesn’t seem like you understand how DataStore works. It saves stuff in the savefile, doesn’t matter from where you access it, it will be in the same savefile.

1 Like

That’s the answer I wanted. I just wasn’t really sure.