Attempt to index number with number error?

I keep getting this “attempt to index number with number” error on the second line of the code that loads the animations but I’m not exactly sure what is wrong with it, other devforum posts seem to all have very different problems so those didn’t help.
Code:

The table that is being referenced:

1 Like

Use for i, v and use v instead of i in the loop
I can’t be sure rn but I think your i is pointing towards the index rather than the item in the table

1 Like

In a for loop, i is the amount of times it has looped. You would want to use Animations[i] instead, because it will give you the value you are looking for. Hope this helped

ohhh my god im so stupid, i really shouldnt have missed that, thanks for the help regardless though