I am having a problem with passing through the table for example:
warn(“Player has no data”)
for i, data in ipairs(PlrStats:GetChildren()) do
data.Value = baseStats[i]
print(data.Name,“:”,data.Value)
end
I keep getting Null for baseStats[i]. but it should be getting the values from the basestats array
Your problem is that baseStats does not use integer keys, it uses string keys such as ‘Health’ and ‘Strength’, so baseStats[1] is nil but baseStats[“Points”] is 0.
If you can’t find a solution, show me the PlrStats folder and I will find one for you.
I think you are right about that because baseStats.Health works so how would i be able to go through the table with strings? Also heres pic of plrstats when player loads in