That’s in fact what is causing their error, ‘_’ is being used as a control variable in the generic for loop. On each iteration its value is likely being incremented by 1 (not deterministic as the pairs() iterator is being used as opposed to the ipairs() iterator which is deterministic). The value of this _ variable (a numeric value) is then passed as the third argument to the TweenPosition() instance method which expects an enumeration item object belonging to the ‘EasingStyle’ enumeration list object, the reason this doesn’t always error is because number values (when received by parameters that expect enumeration item objects) are automatically translated into their enumeration item object counterparts, for the ‘EasingStyle’ enumeration list object the numbers 0 through 10 correspond to valid enumeration item objects, any numbers outside of that range will produce the error the thread’s poster encountered.
The fix as you suggested is to replace ‘_’ with an explicit enumeration item object, i.e; Enum.EasingStyle.Linear.
For future reference if you want to pass a value that represents ‘nothing’ as an argument to a function you should pass ‘nil’.
What? That’s not what I was talking about, but okay… Feel free to reply @Forummer’s post on this - states up everything I wanted to say in a more detailed manner.