i want the inner loop to break but not the outer, would this work?
for i = 1, player.OtherStats.MaxPetsEquipped.Value do
for key, value in pairs(bestDict) do
if value == values[i] then
selectedTemplate = scrollFrame:FindFirstChild(key)
onEquip()
break
end
end
end