Help with this bone scale code

that looks quite messy

function ScaleMesh(mesh,scale)
     mesh.Size = mesh.Size * scale
     for _,child in pairs(mesh:GetDescendants()) do
          if child:IsA("Bone") then
               child.Position = child.Position * scale
          end
     end
end

this should have the same effect