How can i fix this error Transform function attempt to index nil with

I have problem :

image

image

how can i fix it ?

1 Like

You provided the wrong screenshots. You’re not attempting to index a key named “Font” in either.

Font is string value and i want save it

So it errors when you get to the stat “font” of the returned children of playerData.Settings?
Did you make sure saveData.Settings exists prior to indexing it with stat.Name? It also looks like it should be saveData.Settings[stat.Name].Value = stat.Value

If your stat’s name is “Font” then saveData.Settings must be nil.