I have this folder containing values like so:
and would like to loop through these values, find the property in lighting from the name of the value, and then set the property to the value inside.
The problem is, I keep getting this error, as if it was looking for a child object of Lighting rather than a property.
i am using this code block to accomplish this:
for _, i in pairs(Map.GameSettings:GetChildren()) do if game:FindFirstChild(i.Name) then local Service = game:GetService(i.Name) for _, j in pairs(i:GetChildren()) do Service[j.Name] = j.Value end end end