Vex v5 error

whenever I add a block that deals with the vision sensor item center it gives TypeError: indices must be integers

Could you post your code? it is much easier to help if we can see what your code looks like.

1 Like


here is the code I’m trying to get it to follow a red ball

Try using a block that says “set vision5 object item to” and put 1. Put it inside the forever loop.

1 Like

Sorry for the late response and I tried adding the set object to 1 and it worked