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

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