how to move a game object to another game object

im trying to add a head hitbox to my character, and how i want to do that is by moving a sphere collider where my camera is. but i dont know how im supposed to move the object. im thinking to get the vectors of the camera and just make the hitbox’s vectors the same. but im not sure how to do that.

btw i edited the question cuz i copy, pasted it twice for some reason

Assuming you want the hitbox to be exactly where the camera is, you could just make the game object which contains the sphere collider a child of the camera. Then it should always be attached to it, no matter the camera’s position.