Brick wall pattern

When you start a thread, ask yourself: “What would I need to answer this question without creating geometry and a script from scratch?”. Did you read this?

3. Attach minimal versions of all the relevant files

Your geometry is not internalized, so your script is useless: