Boolean only working when played from a specific scene

I have a boolean that controls wether or not the blocks scale up and down and the lights change colour. but it only works if I’m in my game scene and I set it to true in the inspector. However if I load into the scene and set the boolean through code, like I need to, it doesn’t make the blocks scale up and down but it does change the light colour.

    if (isDubstepMode == true) {
        AnalyzeSound(); // This function works and happens
        UpdateVisualAudio(); // This function doesn't
        UpdateLight(); // This function does
    }

This method UpdateVisualAudio(); i guess controls the sound. In unity Audio source component, there is a bool check for Play on Awake. Untick that and check if thats the problem.