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

Why does not LIGHTING return to normal?

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)

2 comments

0

console error please?

0

no have error, simply the brightness is 100, and does not return to normal but the MONSTER2 object disappears.

1 answer

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

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