rev_ReplicaSetParent.OnClientEvent:Connect(function(h,L)local x=Replicas[h]local T=x.Parent.Children local m=Replicas[L]table.remove(T,table.find(T,x))table.insert(m.Children,x)x.Parent=m local B=ChildListeners[L]if B~=nil then for h=1,#B,1 do B[h](x)end end end)
-- Inheritance:
rev_ReplicaSetParent.OnClientEvent:Connect(function(replica_id, parent_replica_id) -- (replica_id, parent_replica_id)
	local replica = Replicas[replica_id]
	local old_parent_children = replica.Parent.Children
	local new_parent = Replicas[parent_replica_id]
	table.remove(old_parent_children, table.find(old_parent_children, replica))
	table.insert(new_parent.Children, replica)
	replica.Parent = new_parent
	-- Trigger child added:
	local child_listener_table = ChildListeners[parent_replica_id]
	if child_listener_table ~= nil then
		for i = 1, #child_listener_table do
			child_listener_table[i](replica)
		end
	end
end)
