Auto-translated
You are right, such a script does exist:
SetAmbientLight(floorID, lightName, fade = false, time = 1); (fade=true if you want the lighting to change gradually; by default, it changes instantly).
SetAmbientLight(floorID, lightName, fade = false, time = 1); (fade=true if you want the lighting to change gradually; by default, it changes instantly).