How move objects at same speed as background, but via another script?

So I use the following code to loop my background image:

private Material mat;

void Start()
{
mat = GetComponent().material;
}

// Update is called once per frame
void Update()
{
offset += (Time.deltaTime * scrollSpeed) / 10f ;
mat.SetTextureOffset(“_MainTex”, new Vector3(0, offset, 0));
}

I want to move some objects in the exact same speed as my background, but via another script.
How do I do this?,So I use the following code to loop my background image:

private Material mat;

void Start()
{
mat = GetComponent().material;
}

// Update is called once per frame
void Update()
{
offset += (Time.deltaTime * scrollSpeed) / 10f ;
mat.SetTextureOffset(“_MainTex”, new Vector3(0, offset, 0));
}

I want to move some objects in the exact same speed as my background, but via another script.
How do I do this?