I was just wondering if someone could help me debug and error which ive never seen before:
"ServerScriptService.DataSave:20: attempt to index field '?' (a nil value)"
Here is the section of code:
local Pstats = Pdata:GetChildren() -- Pdata is an object value containing a Number Value, two int Values and a Bool Value. However, if i take out the three values that are not a Bool Value i lose the error. local S2 = {} for i=1,#Pstats do local n = Stats[i].Name -- error here (line 20) S2[n] = Stats[i].Value end
All the integers in the Values are correct, is it possible that i cant save multiple different values in one table?
Thanks for any help, it might be a small thing but im blind :) ~thanks, Bubs