Issue with lighting

so i have an issue with the lighting where it’s just random on if the lighting is brighter or darker (i prefer darker). the pointlight brightness and range never get changed

if it matters, this is the code that changes the lighting right when the game runs:

local lighting = game:GetService("Lighting")


lighting.FogColor = Color3.fromRGB(290000,290000,290000)
lighting.FogEnd = 200000
lighting.FogStart = 200000
lighting.Ambient = Color3.fromRGB(0,0,0)
lighting.OutdoorAmbient = Color3.fromRGB(0,0,0)
lighting.Brightness = 0
lighting.ClockTime = 0


script:Destroy()

i still don’t know why it happens, but to fix it i just made it wait a second before changing the lighting