If changing from one scene to another using get_tree().change_scene_to_file() then you may have to make your fade to black animation a Global/Autoload, or add as a child of get_tree().root to use it temporarily, or use two AnimationPlayers with one fading to black, and the other fading from black once the scene loads.