Cloning a wire generates an error

  1. Create an AudioPitchShifter, an AudioEmitter, and a Wire.
  2. Set the Wire’s SourceInstance to the AudioPitchShifter and TargetInstance to the AudioEmitter.
  3. Select the wire and run this:
game.Selection:Get()[1]:Clone()

Observe that an error is generated.

Expected behavior

It shouldn’t generate an error unless you actually place the wire into the datamodel with these conflicting properties.

Hey @Sharksie, we have a flag to fix this; it should be flipped in the next couple of days.

Once enabled, you’ll be able to create duplicate or cyclic wires without property assignments being prevented – instead, the Connected property will just be false for those Wires. We will also avoid printing errors/warnings for wires that aren’t in the datamodel.

1 Like

Hey @Sharksie – this should be fixed now, can you confirm?