Need Help to Create a live Wallpaper like system inGame.

Hey guys pls help me to create a idea where an actor for example a cube is in scene. when my player goes near it or his body part touch it or gun shot, all random moving dots in cube as a texture comes at touch part and after going out of touch all goes to there location. no videos a working code or blueprint.

Thanks for your Time.