Material Shoot

I was wondering how to make in lua, when you shoot,a string of material shoots with your gun.
example picture

http://img119.imageshack.us/img119/7234/gauss4zm.jpg

Anyone?