How do I make bullet marks?

I am making a FPS, and I have the gun, and it raycasts a particle in front of the gun, and it works fine. My next task is to have a bullet mark appear where the particle hit. How would I go about doing this? Thanks in advance.

Have a look at the Bootcamp demo, as it does what you want.