Play
Edit
6 players liked this.
lua tables, unlike tables in other languages, work from 1, not from 0. For example table={a,b,c,d} starts with table[1] and ends with table[4]. You were trying to access mc[0], and it didnt exist, since your table starts from mc[1], thus the error. Hope i helped.