Code:
for _,t in pairs(LPSTAT) do
if type(t)=='table' then
t.Gold = nil
end
end
Essentially looping through a table (LPSTAT) and testing to see if an entry is another table. If it is then setting that tables ["gold"] entry to nil.
Code:
LPSTAT = {
TableEntry1 = {
gold=100,
silver=50,
copper=10,
},
NonTableEntry1 = "Something",
}
If LPSTAT looked something like that then TableEntry1 would have its gold set to nill but NonTableEntry1 would be ignored because it is a string.