My dynamic wall generator does not position the wall correctly

Basically I want to generate corridor walls from a script, but when positioning in front of the base wall, it is far from the wall that was generated

local RS = game:GetService("ReplicatedStorage")

local sources = RS.resources--others wall's
local Map = script.Parent

local function generate()
	local Base = Map["1"].WallLong--Base wall
	for IndexWalls = 1, 10 do--Indicator of how many walls will be placed
		for walls = 1, -1, -2 do--It is to place two opposite walls
			local wall = sources.WallSmall:Clone()
			wall.CFrame = Base.CFrame * CFrame.new(wall.Size.Z*IndexWalls,0,walls*Base.Size.Z/2)*CFrame.Angles(0, math.rad(90), 0)
			wall.Parent = Base.Parent
		end
	end
end

generate()