A simple example of a LineTraceByChannel node that calculates a world rotation from the hit normal after the trace so that it can be used to orient Niagara System effects with the surface of the hit object. The second line trace is for visualization purposes and can be removed. The most important node is the Find Look at Rotation node that calculates the rotation for the Niagara System from the location and the location normal.
Keep in mind that some Niagara Systems might have rotation settings that change their rotation after spawning and may cause the Find Look at Rotation not to work. The below image has a Basic Niagara Beam Emitter from the templates.