You need to pick 1 instance of the line, pick 1 instance of the ship, pin line to the ship. Then repeat with the next pair.
How you do this depends on your code.
If lines are spawned from the ship sprite, simply pin them in the same event, for example:
On Space key pressed -> Ship spawn Laser; Laser pin to Ship