Daylight system light from below?

i made a blueprint script for a daylight system the problem that so many seem to have i have light from below
i have it set though when the sun is under the ground it turns off but why is the light still there?

Hi ,

Remember, It is not a sun, just a light.

You need to turn the light off for night.

You can do it degrees, for example, sun rotation is greater than X degree, hide the light.

Turn it back on later.

I got an example I will post.

You may need to edit this. As I have street lights to, and I run a timeline so the sun does not just turn on and off, it fades

One more shot below

Here is the last one

i have the set up but i think i know im missing the line and other extras

can u tell me more about your daylight system im going to have to remake mine im not to good with blueprints so i get lost pretty easily. i want to have mine so the torches and braziers light up in the evening and go out in the mornings with a actual functional daylight system but all the tuts i find dont really cut it.