So, I v loops are loops which are used to iterate over tables, Assuming you know what tables are, Im gonna give you a short example. I’ll just show you how to color a house using this method.
local ourAmazingTable = Game.Workspace.HouseModel:GetChildren() --get children always returns a table of the object it is being performed on.
for _, v in pairs(ourAmazingTable) do -- we put our table in parenthesis
v.BrickColor = BrickColor.Random()
end)
Now this might be confusing, but it is quite simple. i stands for index, but you can just leave it as _ and v stands for variable. As v is a variable, it can be anything. here v basically represents all of the things in the table, and our table only has parts.