here ya go
i commented it all for you so you can see how it works then implement it into your game or change stuff
EDIT
Just thinking as well, you could do this with clones. having the MidPointChainParts and ChainParts being the only two actors your need, then MidPointChainParts would find the midpoint of the ChainParts clone + and - 1 of its clone number. and the ChainParts finding the midpoint of A and ChainParts clone number + 1 of its. ect ect. that way you could have it create as many chain parts as it needs if the distance between the chain parts is too great leaving no gaps. a little more complicated. and I'm useless with clones so I wont make a demo of that just yet
just letting you know that it is possible to do that and no way to hard to implement once you understand how I did it in this demo
real rushed explanation sorry if you cant understand it, its only an extra note anyway