Goal is super simple, when calling a function witha given true or false, it will change the fog settings.
-- Fog Increase Event
function Events.Fog(enable)
eventStates.fogIncrease = enable
warn(enable) -- called once w true prints "true" once
if enable then
game.Lighting.FogEnd = 150
game.Lighting.FogStart = 0
else
game.Lighting.FogEnd = 700
game.Lighting.FogStart = 150
end
end
I only call the function once and it sets the fog correctly for a second but then it goes to 1000 and 150. sorta resetting. why is this?
oh i cant read. yeah it is indeed read parallel not read only. I looked through all my scripts and found it. it was in a loop for the camera. my apologies