Unanchored objects act anchored when unanchor and SetNetworkOwner are used in succession

The bug occurs here:

The bug seems to occur almost a 100% of the time when the vehicle contains a wheel part, online and in local servers.

The vehicle is parented to the Character by a server script, and as can be seen from this screen shot every part inside the Character, including the vehicle, is unanchored and yet the vehicle will not move as if anchored. (Note all baseparts in the character are selected, but the anchored box remains unticked.)

The players can get in and out of the seat to no effect. Motors 6D’s will still move, but not as expected:


It can be seen that the Motor6D controlling the steering has rotated, but the wheel, connected via hinge constraint, has not.

How the vehicles are generated:

  1. A player assembles the vehicle out of anchored parts, with the vehicle being welded together as they build it.
  2. When the player wants to drive it, a copy is generated.
  3. All parts inside the copy are unanchored
  4. All parts inside the copy have their network owner set to the player
  5. The player is put into the pilots seat.

I’ve added prints into the code that confirms all the code is working as expected, no errors are created, notably no errors are created when the network owner is set, which shouldn’t be possible to do if any part in the vehicle is anchored.

However, if a wait(0.5) is inserted between 3 and 4, the glitch will stop occurring. If it is removed, the glitch starts again.

You should post a repro file if you have one :slight_smile:

GTG right now and can’t post the entire place file, will see if I can get a repro when I get back in a few hours :slight_smile:

Repro on a separate place failed. :confused: