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.