local myModel = script.Parent:FindFirstChild("Model")
local myModelChildren = myModel:GetChildren()
for _, child in pairs(myModelChildren) do
if child:IsA("BasePart") then
child.Anchored = true
child.Transparency = 0.5
child.Position = child.Position + Vector3.new(1, 0, 1)
end
end
I have recently posted a question and received an answer but I still do not understand how parts of the script works. In particular, I do not know what _, child in pairs(myModelChildren) means and why the for do loop does not contain the starting value, ending value, and increment. Also, I don't understand what child refers to. Hopefully, someone is able to clear up the confusion I'm experiencing.

1 comment
Thorough answer. Thank you!