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?

1 comment

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.)