How do you get a collider to recognize a raycast?

Sorry if this is a dumb question as I am very new to unreal engine, but how can you get a ray-cast to connect with a box/sphere collider? I’ve tried on hit as well as other events and am having no detection. I am not using meshes, as I am trying to make a gib system with sprites in the style of the first doom game, and need specific parts of the sprite to be able to be targeted individually.