I tried it in 2.82. Now it does move but all the block just go down by -0.544021 m. It is not forming a wave like pattern just like the sine curve.
I am not using Bassam’s cubes.blend file by the way. I just opened a new blender scene and
1. added a plane
2. subdivided it multiple times
3. edge splitted all the squares in the plane
4. Separated them all into different objects by separation by loose parts
5. Extruded all the squares down a bit so they form cubes
6. Tried bassam’s script in the text editor
All the cubes just moved down by -0.544021 m, they still are in the same plane in the z axis. They did not form a wave pattern.
Can you please help me.