rev_ReplicaDestroy.OnClientEvent:Connect(function(O)local w=Replicas[O]DestroyReplicaAndDescendantsRecursive(w)end)return ReplicaController
-- Replica destruction:
rev_ReplicaDestroy.OnClientEvent:Connect(function(replica_id) -- (replica_id)
	local replica = Replicas[replica_id]
	DestroyReplicaAndDescendantsRecursive(replica)
end)

return ReplicaController
