The start function finds a Cube with the Tag Cube.
It then sets the center (the point you are going to rotate around) to be the cube’s location.
It then sets the current objects location a given distance away from the cube, based on a radius.
In the update function, the current object is then set to rotate around the cube at a given speed (rotationSpeed).
As it rotates, the desiredPosition is set to be a point from the given cube and then the position is set based on the radiusSpeed (how fast it revolves around the object).
Think that’s the basis of what its doing anyway.
You need to have a Cube setup in the scene tagged as Cube and then attach this to the object you want to orbit the cube.