How do I rig an object to a paint rig blender

Hello, I am new to rigging in blender and I want to know how do I rig a gun into a paint rig’s hand for a gfx.

Must get a certain type of rig, you have to make bones for it aswell.

Couldnt I just do copy rotation and location?

Please help me with this problem, TY

I don’t really use paint rig any more but from what I recall you go into the outliner the image
Screen Shot 2021-01-06 at 21.32.38
below and then select the gun in it and then click the arrow next to what says robone after you should see some attachments, once you decide where you want to put it drag the gun name into the specific attachment while holding shift and it should be attached to your rig sorry for the length.