arrays with objects attached

I have a robot with a ray gun by his side, I tried to parent the gun by making the gun part of the leg bone and also I tried to parent the gun to the body of the robot, but when I tried to array the robot the gun does not array with the robot only the first robot has the gun and the rest do not…help please. Am I attaching the gun wrong?

Sorry folks at age 80 it takes time to figure it out…I found the solution…I Control J to add the ray gun…it worked.