Iteration versus direct reference producing different results

why does this not throw an error:

clone.Head:SetNetworkOwner(plr)
clone.LeftHand:SetNetworkOwner(plr) -- Both head and hand are MeshParts

but this does (SetNetworkOwner is not a valid member of MeshPart):

for _, i in pairs(clone:GetChildren()) do
	if i:IsA("Part") or i:IsA("MeshPart") then
		i:SetNetworkOwnership(plr)
	end
end
1 Like

You have a typo. Here you said SetNetworkOwner.

But in the loop you said SetNetworkOwnership.

2 Likes

Ooooooooooof. That makes me feel dumb. Thank you for finding that xd xd

1 Like