Character position not updating for new players

Came across a very strange behaviour.

Position of Player A is moved server side (humanoidrootpart) to a certain point. When Player B joins the game, this isn’t replicated to them (Player A is where they were before the move) and the movement of player A is all over the place; teleporting around.

player.Character.HumanoidRootPart.Position = data[“PlayerPoint”].Position is the server side script triggered by a remote event

The server side script is on the character if that is what is causing the de-sync?

Im pretty sure u cant move your humanoidrootpart like that, it causes some glitch where if u jump and walk backwords u start flying around.
For positioning your character use character:PivotTo()

Ah that might be it; does PivotTo() replicate position and orientation from the reference part?

Yes. :PivotTo() will also copy orientation, because CFrame contains Position, Orientation, Upvector, and Lookvector. So it copies every property of the CFrame.

Yeah just had a look at docs, all sorted now thanks

1 Like