Making a small little creepy game and every 7-15 seconds the audio distorts and the lighting changes. One second after, it goes back to normal and loops back around.
However, I notice when it changes the lighting, the baseplate just glows. And it stays glowing. How do I fix this? Here is my code:
while true do
task.wait(math.random(7, 15))
workspace.Simple.PitchShiftSoundEffect.Octave = 0.7
workspace.Baseplate.Color = Color3.new(155,0,0)
game.Lighting.Ambient = Color3.new(155,0,0)
game.Lighting.OutdoorAmbient = Color3.new(155,0,0)
game.Lighting.Brightness = 1
game.Lighting.Weather_Sky.Parent = game.ReplicatedStorage
game.ReplicatedStorage.Sky.Parent = game.Lighting
task.wait(1)
workspace.Simple.PitchShiftSoundEffect.Octave = 1
workspace.Baseplate.Color = Color3.new(99, 95, 98)
game.Lighting.Ambient = Color3.new(138, 138, 138)
game.Lighting.OutdoorAmbient = Color3.new(138, 138, 138)
game.Lighting.Brightness = 2
game.Lighting.Sky.Parent = game.ReplicatedStorage
game.ReplicatedStorage.Weather_Sky.Parent = game.Lighting
end