Hello, so I’m trying to make a system that allow players change their overhead color name, I made it to work, but the problem is that it doesn’t save in the Datastore so when the player rejoin the game they have their Name Color already changed.
You need to serialize the data into a datastore compatible format, i.e; by representing the value via the primitive Lua data types and then later deserialize that data when loading it.
When saving: NameColor = {Player.NameColor.Value.R, Player.NameColor.Value.G, Player.NameColor.Value.B}
When loading: NameColor.Value = Color3.new(table.unpack(Data.NameColor))
You can also use Lua’s global function unpack() instead of table.unpack(), whichever you prefer.