>>113726755At the end of the film, the "Rainbow faces"(the dinosaurs from the OP image next to Littlefoot) talk to Littlefoot one last time and then pull a "look over there" on him. When he turns around, a tractor beam-like light appears behind him. He turns around and looks up in amazement and watches as a light zooms up into space, zig-zags across the sky, and then quickly zooms far away.
Throughout the film, whenever they appear, the Rainbow Faces are essentially trying to teach science to the dinosaurs in a round-a-bout way. The male one almost slips up a few times trying to tell them about things. The female one cuts him off but he almost references there being a black hole at the center of the galaxy or that all the lights in the sky are actually other stars, etc.