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

Why does not LIGHTING return to normal?

Asked by 4 years ago

The script works but when it arrives the part does not execute the:

game.Lighting.Brightness = 0 game.Lighting.OutdoorAmbient = Color3.new(75, 75, 75)

and the same view and does not return to normal.

function REffects()
    wait(2)
    game.Lighting.FogColor = Color3.fromRGB(0, 0, 0)
    game.Lighting.FogStart = 10
    game.Lighting.FogEnd = 1000
    game.Lighting.Brightness = 100
    game.Lighting.OutdoorAmbient = Color3.new(255, 255, 255)
    wait(2)
    game.Lighting.Brightness = 0
    game.Lighting.OutdoorAmbient = Color3.new(75, 75, 75)
    local m = game.Workspace.Road6.Monster2
    m:Destroy()
end
script.Parent.Touched:Connect(REffects)
0
console error please? Igoralexeymarengobr 365 — 4y
0
no have error, simply the brightness is 100, and does not return to normal but the MONSTER2 object disappears. Opt_Blacky 1 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

I think if you touch it once and don't move it should work. But maybe you just can't work on lightning from the script because as I tested script to just make brightness 0 it did nothing

Ad

Answer this question