Terrain error? | Extent can not be empty?

I got this error saying extent can not be empty this is my function:

local function Fill(Model, Material, Position, Size)

	if Model == "Block" then
		game.Workspace.Terrain:FillBlock(Position, Size, Material)
	elseif Model == "Wedge" then
		game.Workspace.Terrain:FillWedge(Position, Size, Material)
	else
		error("Unknown model")
	end
end

Extent is probably the Vector3 size of the terrain. Your terrain can’t be empty-sized. Basically, your Vector3 value is Vector3.new(0, 0, 0). That’s why it said the extent (size) cannot be empty.