Two OBjects following one object through Code

Hello People
i am new on this forum so my appoligies if i am breaking any norms.
I am new to programming and so learning as i go along, i have a problem
I rigged a camera to follow a Sphere object through code.

This is the code
public GameObject folloW;
private Vector3 offSET;
void Start ()
{
offSET = transform.position;
}
void Latedate ()
{
transform.position = folloW.transform.position + offSET;
}
}

with the camera its working
Now i wrote the same code with small changes like renaming variables and attached it to a capsule and its not moving… ?

Thank you for your time friends

Make that new object a child of the camera in the inspector and then change its position in the editor as you wish. It should now follow the camera.