Show me your script please and which line.
Change it to game.Lighting:GetPropertyChangedSignal(âŚ)
local bloom = game.Lighting.BloomEffectHere
game.Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
if game.Lighting:GetMinutesAfterMidnight() > 6 * 60 then
bloom.Enabled = false
end
if game.Lighting:GetMinutesAfterMidnight() > 18 * 60 then
bloom.Enabled = true
end
end)
okie dokie. ill see if that works
honestly i give up at this point literally it sounded like a cool and practical idea but this just isnt gonna work
Whatâs the issue, is it not enabling?
It should work.
local bloom = game.Lighting.BloomEffectHere
game.Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
if game.Lighting:GetMinutesAfterMidnight() > 6 * 60 then
bloom.Enabled = false
end
if game.Lighting:GetMinutesAfterMidnight() > 18 * 60 then
bloom.Enabled = true
end
end)
the bloom doesnt enable no matter what place i put the script in, what kind of script, what i do to it, whats in the script
specify where you want me to put it, if the bloom is enabled, what kind of script please?
Did you set the clocktime during the play test? Set it to 17.8
changing the clocktime doesnt do anything although i did see some errors relating to my cars pop up whenever i changed the clocktime
something about âlightsâ not being a part of the car
What if it is just the brightness???
Did you try debugging? please add print statements and tell me which ifs statement isnât reached.
not sure what this means really
the brightness of what exactly?
Try lowering the brightness when it is day time.
When you add print statements, itâll be printing things. You can see whatâs not printing - hence debugging.
what is a print statement, im sorry i dont know much about scripting
local lowerbrightness = 1 -- choose
local higherbrightness = 5 -- choose
game.Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
if game.Lighting:GetMinutesAfterMidnight() > 6 * 60 then
game.Lighting.Brightness = lowerbrightness
end
if game.Lighting:GetMinutesAfterMidnight() > 18 * 60 then
game.Lighting.Brightness = higherbrightness
end
end)