Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is ROBLOX not recognizing Lighting?

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.

1 comment

0

Formatting tip: if you need just a tiny bit of code, use instead of the ~s. For example,end)()`. That will format it as code, but without taking up much space.

1 answer

✓ Accepted answer

For lines 7-10, replace 'Place.' with 'game.', and for line 12 do 'until game.Lighting.Archivable == false'. :P

1 comment

0

Sweet thanks You are a saint

This discussion is preserved as it was. New answers, comments, and votes are closed.