Hello, I have this script, which changes the Brightness, Fog and OutDoorAmbient of the game when you touch it.
My problem is: It instantly switches, how do I make it go more smoothly?
local lighting = game.Lighting
script.Parent.Touched:Connect(function()
lighting.Brightness = 0
lighting.FogStart = 50
lighting.FogColor = Color3.new(0,0,0)
lighting.OutdoorAmbient = Color3.new(0,0,0)
end)
It's a very simple script but I don't know how to do this kind of stuff. Thanks for your help

1 comment
Use a for loop