I have a script that changes the time of day,but i have another script for under water effects that changes similar attributes. But when the bool is equal to false the Time of day script doesn’t want to do anything.45073-example.jpg[a;t taxt]

Hi,

if you want to compare booleans you have to use the == operator instead of the = operator.

In your case you can just type:

if(!UnderWater)
{
    ...
}