Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you write to a module script from another script? [Solved]

Asked by 5 years ago
Edited 5 years ago

I am trying to write to a module script from a server script and It doesn't seem to be working.

I am trying this

for Index, Object in pairs(PlayerData) do

    print(Index, Object)

    PlayerDataModule.Index = Object

end

But it isnt updating the module, but it also doesnt error so I am confused?? Can you write to a module script or is that not possible?

0
There will be a different copy of PlayerDataModule on the server and on each client - any data you assign to it on the server will therefore *not* appear on the client. Is that what's going on? (If not, please describe/show what you did to determine that it isn't updating.) chess123mate 5873 — 5y

Answer this question