📅  最后修改于: 2022-03-11 14:58:14.284000             🧑  作者: Mango
function generateParts(name, color, size)
local part = Instance.new("Part", game.Workspace);
part.Name = name;
part.BrickColor = BrickColor.new(color);
part.Size = Vector3.new(size);
end
generateParts("1", "0, 15, 0", 1, 1, 1) --blue part
generateParts("2") --red part
generateParts("6") -- big part
generateParts("9") --small part