How do I make a script that takes the lighting and puts it into a value. (It's for a map kit)

This is what I have right now, I don’t understand why it’s not working.

MapKit:WaitForChild("Lighting").Ambient.Value = game.Lighting.Ambient

Could you show us the hiearchy of MapKit? Also, what is exactly the problem? Is there an error? Or is it not doing anything?

1 Like

Does this help?
Screenshot (315)

Also, it doesn’t do anything. I don’t know if there’s an error, I’ve checked the output though.

Then could you show more of the script? If it’s not doing anything it could be that the code never reaches that line.

It does reach the line, there’s a "Warn(“Changed Lighting”) under it and it’s warned that many times.

Can you check if the value under the config does get set to the one under lighting?

Okay, somehow it randomly started working. Kinda weird but the original code is fine. I appreciate you trying to help though! :slight_smile: