Yaw value not replicated

Hi,
Why the Yaw is not replicated in this code its working only on the listen server and standalone, is there any way to get the yaw value ?

FRotator AShooterCharacter::GetAimOffsets() const
{
	const FVector AimDirWS = GetBaseAimRotation().Vector();
	const FVector AimDirLS = ActorToWorld().InverseTransformVectorNoScale(AimDirWS);
	const FRotator AimRotLS = AimDirLS.Rotation();

	return AimRotLS;
}

Thanks,