How do i make a Railgun style effect with a raycast shot?

Im having problems with creating a railgun style beam, i’ve looked into into and to no avail and with line rendering it seems like i need to add a pointless object . My gun shoots, applies force and has spark and explosions effects…BUT… i would really like to have a glowing beam when i shoot.

help please!! :smiley:

wel after 3 days of searching and countless attach to an object… I DID SUCH A THING! :stuck_out_tongue: wasn’t as much a pain as i thought. i took gravity off and removed colliders.

discard everything but the beam i think it worked…

thanks guys!! :D!

[12942-screen+shot+2013-07-08+at+19.02.38.png|12942]