How to put a flash of light where a sword hits?

Hello, im trying to make a lightsaber and cant figure out how to do this. Help would be appreciated!

spawn a particle effect at the hit location with a trace result.