Why is this not inline with 1 stud?

I want to make a kinda make a lattice shape but its not working and i do not know why its always of y half a stud

here is my code

local World = {
	WorldProportionX = 10, 
	WorldProportionY = 10, 
	WorldProportionZ = 10
}

local PartDimensions = 3
local Chasm = 5
Chasm = Chasm + PartDimensions

for Number = -World.WorldProportionX, World.WorldProportionX do
	for Number2 = -World.WorldProportionY, World.WorldProportionY do
		for Number3 = -World.WorldProportionZ, World.WorldProportionZ do
			local Part = Instance.new("Part")
			Part.Anchored = true
			Part.CFrame = CFrame.new(Number * Chasm, Number2 * Chasm, Number3 * Chasm)
			Part.Size = Vector3.new(PartDimensions, PartDimensions, PartDimensions)
			Part.Parent = workspace
		end
	end
	wait()
end

and an image of what i mean

how do i fix this?

1 Like