Yes, so i'm making a Datastore where I am copying Values from a pre-made folder and sending them over to the Player, the problem is that the Values wont copy, the names do but not the Values?
local function NewPlayerData(player)
local NewData = Instance.new("Folder", player)
NewData.Name = "PlayerData"
for _, Stats in pairs(script.PlayerData:GetChildren()) do
local NewStats = Instance.new(Stats.ClassName, NewData)
NewStats.Name = Stats.Name
NewStats.Value = Stats.Value
end
end
the function is called when the player joins.

6 comments
Instead of using Instance.new and copying everything, you can just use :Clone() and parent it to NewData
i tried that at first but the same problem happened
Stupid question but... Is the stat value is 0 ?
the number values are but the string values are empty
the string values should say "None"
ok i figured it out