How can I make a planet day night cycle?

I’m making a planetary space game we’re you can walk around on a spherical planet but when it comes to the day night cycle I can’t get the lighting at night to be dark enough the planet it self gets dark but the trees and actors look like they are in daylight.

Might need to look if you are using static mesh lighting that might cause that.

Looking in to it more it seems that the planet gets darker but it’s shadow it cast on its dark side is lighter than its self