Thread:User talk:CodeCat/Lua error in Module:descendants tree at line 18: attempt to perform arithmetic on local 'index' (a nil value)

Any idea why isn't working? I just get an error:.