My problem is that I need an object, if it is my character's arm, the problem is that this as my code, I think it is very broad and I want to place restrictions on it as it does not have a 360 degree turning capacity or that only stay in the front because it is a weapon arm, that is to say that this one will keep facing forward like a gun, but you can rotate it to the sides, up and down just to aim the target.
My code:
objetodejuego[0].transform.Rotate((Input.GetAxis("Mouse Y") * velocidad * Time.deltaTime), (Input.GetAxis("Mouse X") * velocidad * Time.deltaTime), 0, Space.World);