Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is ROBLOX not recognizing Lighting?

Asked by 9 years ago
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.

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. TheLuaWeaver 301 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

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

0
Sweet thanks You are a saint xXxCONBOY456xXx 15 — 9y
Ad

Answer this question