Welcome to the community, @Master_Poultry! :grinning_face_with_big_eyes: You mention a couple times that you’re copying data to another table, but you haven’t described your table setup. Knowing more about the design of your base will help us know what kind of advice to give. The script alone doesn’t contain enough detail.
On a side note, when pasting a script into a post, it’s preferable to mark it as preformatted text. In your post, you marked it as a blockquote, which doesn’t preserve the indentation, doesn’t show any syntax highlighting like the preformatted text option does, and leaves all quotation marks (single and double) as styled quotes vs straight quotes. The easiest way to delineate a large block of preformatted text is to surround it on both ends with graves triplets (the grave is the inverted apostrophe symbol that shares the key with the tilde, and looks like this: ` ). While editing, you’ll see something like this:
```
let table = base.getTable(“CopyRows”);
let query = await table.selectRecordsAsync();
let recordsArray = ;
// Etc.
```
…which will look like this when formatted:
let table = base.getTable("CopyRows");
let query = await table.selectRecordsAsync();
let recordsArray = [];
// Etc.