yeah so I’ve known that you can get rid of the “for” in a i,v iterator loop but what purpose does this really serve I’ve tested around a little and found no use case for removing the “for” keyword in pairs heck you can even put i,v in a variable if you really want to .just seems like syntax sugar to me or whatever you call it. you can chop the statement up and it still seems to function the same code that i made with this concept below
local i,v = pairs(game.Workspace:GetChildren()) do
for x = 1,#v do
warn(v[x])
end
end
–this works the same as a typical for i,v loop but looks off you can even use next here
–so basically how does this work and why does it not just give an error