Hey I am having a problem with a script so i need a way to find children but i only have the first letters so i have been doing something like this
--(example)
Part = workspace.Baseplate
for i,v in pairs(blabla:GetChildren()) do
if string.sub(v.Name,1,4) == string.sub(Part.Name,1,4) then
print("found")
else
print("not found")
end
end
this wouldnt work because it would go through every single one of the chldren and print when the intention is just to know if one's name is the same as the other's name

1 comment
A answer to how to stop a in pairs function without stopping the entire script would be nice!