Please make my code!

This is a piano-shaped music maker I’m making. . .

But while making this, it got tangled up somewhere, making it difficult to make!

Please fix this code!

Variable Description:
Coordinates of X:piano-n
Camera: camera coordinates
Determine the coordinates and shape of Array:piano-x based on this variable