[FIXED]Loading level or scene after dying doesn't load up the directional light
as the title says, I'm making this simple platformer and I just finished the script for loading the level after the character falls off and dies. All is well except after the first death, the directional light I placed seems to be gone but still appears in the hierarchy tab with nothing changed before testing out the game yet it doesn't seem to work, it will only reactivate if I change the intensity setting
I don't know if this is relevant but the code I used is this one:
Keep in mind I'm not only a new user to Unity but a new user to Javascript (my only knowledge to coding was taking one semester of Python) so this code might be off to some of you. Any help would be greatly appreciated.
EDIT: After looking more I found that you have to untick the auto box in the Lighting section.