e=3 if e==3 then coroutine.wrap(function() --Lighting.Archivable = false wait(0.5) Lighting.Archivable = true wait(0.5) repeat local Color = Color3.new(math.random(0,255)/255,math.random(0,255)/255,math.random(0,255)/255) Place.Lighting.Ambient = Color Place.Lighting.FogColor = Color Place.Lighting.TimeOfDay = 0 Place.Lighting.FogEnd = 100 wait(0.1) until Lighting.Archivable == false end)() end
The debugger says ~~~~~~~~~~~~~~~~~ end)() ~~~~~~~~~~~~~~~~~ Is invalid because Lighting is (a nil value) I mean it's not important, but it is something i'd like to know how to fix, so please help me.
For lines 7-10, replace 'Place.' with 'game.', and for line 12 do 'until game.Lighting.Archivable == false'. :P