Script works on one prefab but not multiple

Hi everyone
I’m having an issue.

I want my prefabs to make a circular motion around another prefab (which is a UI panel). If I apply my script to a prefab, it works. As soon as there are several, it no longer works. If I group these prefabs to apply the script to this group, it no longer works either.

Here is my script RotateAround.cs :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RotateAround : MonoBehaviour
{

    public Transform target;
    public float rotateSpeed = 2f;

    void Update()
    {

        transform.RotateAround(target.position, Vector3.up, rotateSpeed * Time.deltaTime);

    }

}

A screenshot of my unity editor is available in attached files.

How do I run each of the prefabs with my script?
thanks a lot

You need to attach RotateAround script to each GameObject you want to rotate, regardless if it is a Prefab Instance or a regular GameObject. This will rotate the GameObject and its children.