# Auto-Pin Creation for Script Blocks

While working with script blocks, you can auto-create pins by dragging your mouse between blocks.

## What Is Auto-Pin Creation?

In prior releases, when dragging a block's output pin, you could only connect it to a previously existing input pin.

Auto-pin Creation allows you to drag an output pin onto a Script Block and, in doing so, create a new input pin of the appropriate type as the bottommost pin on the script block.

Pins can be generated automatically even for Script Blocks that have not been initialized. Dropping a pin on such a Script Block automatically initializes the block.

## Using Auto-Pin Creation by Dragging Output Pins

Use auto-pin creation by dragging an output pin to a block. A colored feedback line extends outwards toward the script block.

The new pin's name is derived from the name of the source block and the source pin, concatenating and separating with an underscore. All spaces in the name are converted to underscores. If a pin with the generated name already exists in the destination block, the smallest integer will be appended to the end of the generated name where the generated name is not yet in use.

For example, if a pin is generated from an output block named MyToolBlock and a pin named Index, the name of the newly generated pin will be MyToolBlock_Index. If a pin with this name already exists in the destination block, the name will be MyToolBlock_Index1.