[tough cookie] Table.remove is not working properly. has something to do with looping through character

i think it has something to do with the for loop and it finding the cube. cuz i tried finding v another way and it errored. said table expected got instance

lol
dfgbdfghdfghfcghfghdfghdfghdfgh