What You Did
You made a glowing “magic” wand.
The light should have passed through the glue stick to the other end.
If your glue stick is too long, the light may not pass all the way through.
Try different kinds of flashlights
fiber optics, communication systems