Particle system not working in gamemode

i have created the function callpoperps function in gamemode and call it in level blueprint but it is not working. and i want to call it at the end of every level so if a write it in blueprint function library the it is not allow addparticlesystemcomponent function to write there

its works in game mode because i forget to select emitter temple but how to create this in blueprint function library.

You don’t need to Add Particle System Component to anything. Spawn Emittor at Location is enough, and you can do it in the function library.