How is it possible to store data in a different location then leaderstats?

Hey there,

I have to say I am highly confused when it comes to storing data in a location / Parent other then “leaderstats” (but still under the player). I have looked at similar posts, but cannot grasp the knowledge to create it.

I’m wondering if anyone can help me here, if so, please make it simple, I’m not too good with scripting.

1 Like

You can create attributes in the player and store data there, I use attributes for almost all forms of data I want to store. You can also create a folder in the player itself and add values to it as you see fit. Let me know if you want to know more.


The easiest way to store data in game is through value objects. This can be done in and outside of the leaderstats folder.
For example:

local serverStats ="Folder", game.ServerStorage)
serverStats.Name = "serverStats"
local startTime ="NumberValue", serverStats)
startTime.Name = "startTime"
startTime.Value = tick()

This will store the starting UNIX time of the server inside a folder in serverstorage