Handling Player Data

Currently I have my player data as a bunch of values stored in folders under the player. This is however getting rather messy as I need an increasing number of values to store all the necessary information.

Is there another way to store data that replicates to the client when changed from the server?

try looking at this:

So I guess values in folders is still just better huh.

No no no no, no its not convert to tables dude

Don’t use _G, use modules instead.

Id rather use _G
30charactersss

ModuleScripts are a much better option and is definitely what Roblox is trying to lean developers towards. In my experience _G. is less efficient, causes lag and is less favorable.

_G only causes lag when its waiting for different keys at the top of a script.

I still recommend Modules over _G though.

yeah accessing data is way faster and the performance between both of them is the same, you can use modules ill use _G
were done here @Syclya

global variables are more accessible for hijacking by other clients therefore creating a security issue tho right?

Not if your only using it on the server. I only use it on the server for storing data unless an exploiter inserts a backdoor in my game, which even if they did i dont think they’d have intentions of hijjacking when they can do a whole load of other things with access to the server