I have a script that makes a camera and attaches it to the gameobject with the script (makes a mirror). Is there any way to move the camera without moving the whole object?
You may be in “Center” mode rather than “Pivot” mode. If you select a child object of a transform and it moves the parent, then you are in center mode. Disable that with a button click in the upper left of the editor. Click where it says “Center”. It will switch to Pivot and you’re good to go. Now when you move the child, it will move independently of the game object.
If you’re trying to do it in code, you can set the local position of the child and it will move relative to the parent object.