SetNetworkOwner Anchored wrong error

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local root = character:WaitForChild("HumanoidRootPart")
		while not root:IsDescendantOf(workspace) do
			root.AncestryChanged:Wait()
		end
		for k, v in pairs(root:GetConnectedParts()) do
			print(k, v, v.Anchored)
		end
		root:SetNetworkOwner()
	end)
end)

The output says
1 HumanoidRootPart false 00:44:38.197 - Network Ownership API cannot be called on Anchored parts or parts welded to Anchored parts.
which is nonsense because the part is not anchored or connected to any parts that are anchored.

Why does it error, anyway? What is it supposed to say?

4 Likes

Adding a wait() before setting the network owner seems to fix it, but it’s odd for sure.
Even removing any anchored parts in the workspace doesn’t seem to fix it.

1 Like

Maybe since the part just spawned, it’s physics aren’t enabled yet?