How to replicate player data to client

Im currently working on a new game and with the way the datastore is set up the data is stored in the client in a modulescript, but because its there the client can’t access it. What im doing right now is turning that data into instances like Stringvalue and NumberValue but that is a very lengthy process. Is there an easier way to replicate the data to the client?

dude wth you are overengineering?
Have you ever heard of remote events?
Once client is loaded make it “ping” server via remote event that it is ready to recive data and send it via remote event.
I also complitelly dont understand how information that it is inside modulescript could change the context

But the data changes very frequently so there would be lots of remote events, but i would still need to know immediately if a data changes

image
You just named “RemoteEvents” without realizing that.
Also if your data changes so frequently that it has to be replicated every time then it is the problem to beggin with.

what do you mean by this sentence?

use remote events please

Realistically, you only need one remote event to synchronize data between the server and the client. More insight on how you store data on the server would be useful in determining which approach would be more beneficial for you. There are modules out there that let you upload “states” of arrays, essentially letting you upload updates to the client.

Both good options and well documented.

3 Likes