rev_ReplicaSetParent.OnClientEvent:Connect(function(O,V)local G=Replicas[O]local Q=G.Parent.Children local a=Replicas[V]table.remove(Q,table.find(Q,G))table.insert(a.Children,G)G.Parent=a local f=ChildListeners[V]if f~=nil then for O=1,#f,1 do f[O](G)end end end)

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)
