local V=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local Q=require(V.components)local k=require(V.events)local N=require(V.Packages.sapphire_ecr)local K=N.create_replicator(Q.position,Q.velocity,Q.part)local l={}local J=k.data_replication.ecr_registry function l.system()return function()for V,Q in J.poll()do K.apply_difference(Q)end end end return l
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local components = require(ReplicatedStorage.components)
local events = require(ReplicatedStorage.events)
local sapphire_ecr = require(ReplicatedStorage.Packages.sapphire_ecr)

local replicator = sapphire_ecr.create_replicator(components.position, components.velocity, components.part)

local replication_system = {}

local replication_event = events.data_replication.ecr_registry

function replication_system.system()
    return function()
        for _, difference in replication_event.poll() do
            replicator.apply_difference(difference)
        end
    end
end

return replication_system
