How can I make bullets that travel the length of a Raycast?

How can I make bullets that travel the length of a Raycast?
I have seen tutorials on this before but all of them have the part become as long as the raycast is, but what I’m looking for is having a little part travel from the were the raycast starts to were the raycast ends.