Physics gun

I want to make a type of Physics gun like in Garrys mod or HalfLife but im not sure where to start. Does anyone know how to even start something like this.?

Anyone have any ideas on how to do this.?

Download “Content Examples” and play “Physics Map”:

Now you need a gun with a Beam Emitter. That’s all.

Thanks thats what i was looking for!