I want to make an script that changes general lighting and I copied every attribute of lighting over, now how would I make it so a script goes through every attribute and changes the matching names in Lighting properties? I couldnt find anything on the Internet.
This sounds counterintuitive, why do you need to set up a proxy to modify the lighting when you can easily just change it directly?
But to still answer your question, use the Instance.AttributeChanged
event:
local lighting = game:GetService("Lighting")
script.AttributeChanged:Connect(function(property) --listen for changes
lighting[property] = script:GetAttribute(property)
end)
--apply the settings that were already present
for k, v in script:GetAttributes() do
lighting[k] = v
end