-- Make the waters' SurfaceLights the same color as themselves.

for i, water in ipairs({water1, water2}) do
	local function update()
		water.SurfaceLight.Color = water.Color
	end
	water:GetPropertyChangedSignal("Color"):Connect(update)
	update()
end

Lib.Script.setWaterState(water1, "acid")
Lib.Script.setWaterState(water2, "acid")
