Humanoid trying to move to origin after calling MoveTo from specific network owner despite setting back to automatic network ownership

Reproduction Steps

- Spawn a character which has network ownership set to automatic

  • On the server, call MoveTo on its humanoid to move the character to a certain part/position
  • Set the network ownership to a player using the SetNetworkOwner method
  • On the client of the player owning the character, call MoveTo on the humanoid to move the character to a certain part/position
  • Set the network ownership back to automatic using the SetNetworkOwnershipAuto
  • On the server, call MoveTo on the humanoid to move the character to a certain part/position

Reproduction:
MoveToNetworkOwnerProblem.rbxl (38.0 KB)

More information about what the reproduction file does below.

Expected Behavior

The character should walk to the part/position lastly specified by the server (like at the start of the reproduction), no matter who owns the character.

Actual Behavior

The character tries to move to the origin when it’s owned automatically to the player who called MoveTo when it had ownership. When the character is owned by the server automatically, it moves to the expected part/position.

The video uses the reproduction file above.
We see in the video that during the first 10 seconds the character’s ownership is set to automatic, the character moves to the player, as expected.
Then, when the client gets ownership from the server through SetNetworkOwner, we see that the character moves to the location specified by the player (10, 0, 10), as expected.
Then, when the server sets network ownership back to automatic through SetNetworkOwnershipAuto, we see two cases:

  • When the network ownership is set automatically to the server, the character tries to move to the player, as expected.
  • But when the network ownership is set automatically to the player, the character tries to move to the origin.

Since the network ownership attribution is based on distance, the character tries to move to the origin when getting close of the player, and tries to move to the player when getting farther away from the player.

Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly
Date Last Experienced: 2023-02-25 00:02:00 (+01:00)

3 Likes

Thanks for the report. We’ve filed a ticket to our internal database and we’ll keep you updated on progress!

2 Likes