Answers for "Brick color api rolbox"

0

Brick color api rolbox

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
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language