local e local C=ReplicaController._replicas local D=ReplicaController.NewReplicaSignal local m=ReplicaController._class_listeners local S=ReplicaController._child_listeners local I=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\082\101\113\117\101\115\116\068\097\116\097")local j=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\083\101\116\086\097\108\117\101")local h=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\083\101\116\086\097\108\117\101\115")local P=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\065\114\114\097\121\073\110\115\101\114\116")local b=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\065\114\114\097\121\083\101\116")local V=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\065\114\114\097\121\082\101\109\111\118\101")local U=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\087\114\105\116\101")local Q=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\083\105\103\110\097\108")local l=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\083\101\116\080\097\114\101\110\116")local o=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\067\114\101\097\116\101")local E=Madwork.SetupRemoteEvent("\082\101\112\108\105\099\097\095\082\101\112\108\105\099\097\068\101\115\116\114\111\121")local f=false local p={}
----- Private Variables -----

local Replica

local Replicas = ReplicaController._replicas
local NewReplicaSignal = ReplicaController.NewReplicaSignal

local ClassListeners = ReplicaController._class_listeners -- {["replica_class"] = script_signal, ...}
local ChildListeners = ReplicaController._child_listeners -- {[replica_id] = {listener, ...}, ...}

local rev_ReplicaRequestData = Madwork.SetupRemoteEvent("Replica_ReplicaRequestData") -- Fired client-side when the client loads for the first time

local rev_ReplicaSetValue = Madwork.SetupRemoteEvent("Replica_ReplicaSetValue") -- (replica_id, {path}, value)
local rev_ReplicaSetValues = Madwork.SetupRemoteEvent("Replica_ReplicaSetValues") -- (replica_id, {path}, {values})
local rev_ReplicaArrayInsert = Madwork.SetupRemoteEvent("Replica_ReplicaArrayInsert") -- (replica_id, {path}, value)
local rev_ReplicaArraySet = Madwork.SetupRemoteEvent("Replica_ReplicaArraySet") -- (replica_id, {path}, index, value)
local rev_ReplicaArrayRemove = Madwork.SetupRemoteEvent("Replica_ReplicaArrayRemove") -- (replica_id, {path}, index)
local rev_ReplicaWrite = Madwork.SetupRemoteEvent("Replica_ReplicaWrite") -- (replica_id, func_id, params...)
local rev_ReplicaSignal = Madwork.SetupRemoteEvent("Replica_ReplicaSignal") -- (replica_id, params...)
local rev_ReplicaSetParent = Madwork.SetupRemoteEvent("Replica_ReplicaSetParent") -- (replica_id, parent_replica_id)
local rev_ReplicaCreate = Madwork.SetupRemoteEvent("Replica_ReplicaCreate") -- (replica_id, {replica_data}) OR (top_replica_id, {creation_data}) or ({replica_package})
local rev_ReplicaDestroy = Madwork.SetupRemoteEvent("Replica_ReplicaDestroy") -- (replica_id)

local DataRequestStarted = false

local LoadedWriteLibPacks = {}
