Lua doesn't use 0 based index arrays, including vectors. RealMotion however uses 0 based index arrays so this needs to be accounted for when sending data to a Lua script. So the first position in a array in Lua will start at 1 while the first position in an array in Realmotion will start at 0.