What is the difference on "pairs", "ipairs" and "next"? The ROBLOX Wiki is not precise on this subject, someone could explain me the difference and where to use them?
for index, value in pairs(game.Players:GetChildren()) do
print(index, value)
end
for index, value in ipairs(game.Players:GetChildren()) do
print(index, value)
end
for index, value in next, game.Players:GetChildren() do
print(index, value)
end

3 comments
pairs could be compared to next, as pairs returns next
In a sense they're kind of the same thing
ipairs stops at nil