For loop not working

Im trying to make a for loop that loops through the table arguments starting at position 2 but whenever I try to implement it, it errors and doesnt work

for i = 2, v in pairs(arguments) do

You only have to do for i,v in pairs(arguments) do, this will iterate through the table and do something for each entry.

If this isn’t what you want, you can do for i = 2,#arguments do which will do something #arguments - 1 time(s).

nevermind I figured it out. Thank you

1 Like