local countlessparts = workspace.CountlessParts:GetChildren()
local count = 0
for i,v in next, countlessparts:GetChildren() do
count += 1
if count >= 4 then
return end
end
and
local countlessparts = workspace.CountlessParts:GetChildren()
local count = 0
for i,v in next, countlessparts:GetChildren() do
count += 1
if count >= 4 then
break
end
end
Would both of them do the same thing or would one of them act differently or something?
Also what’s the difference?
Thank you!
Edit: If you don’t know what in next is, it’s basically the same as in pairs.