No, like in the Explorer tab, what the children of ServerScriptService are (fully expanded).
x.Value = d:GetAsync(plr.UserId) or v.Value is trying to reference the value of a child of this script. however, there isn’t a value for the child the script finds first.
Ok, so replace this with the current GetSaved() function.
function GetSaved(plr)
for i,v in pairs(script:GetChildren()) do
if v:IsA("IntValue") or v:IsA("NumberValue") then
local d = DataStore:GetDataStore(v.Name)
local x = Instance.new("NumberValue",plr.leaderstats)
x.Name = v.Name
x.Value = d:GetAsync(plr.UserId) or v.Value
end
end
end
This checks to make sure it only finds NumberValue or IntValues, values with numbers.