diff --git a/demo/src/StarterPlayer/StarterPlayerScripts/systems/syncTransforms.luau b/demo/src/StarterPlayer/StarterPlayerScripts/systems/syncTransforms.luau index 4e7a8cb..6d68280 100644 --- a/demo/src/StarterPlayer/StarterPlayerScripts/systems/syncTransforms.luau +++ b/demo/src/StarterPlayer/StarterPlayerScripts/systems/syncTransforms.luau @@ -5,11 +5,9 @@ local ref = std.ref local world = std.world local cts = std.components -local UpdateTransforms = ReplicatedStorage:WaitForChild("UpdateTransforms") :: RemoteEvent -local collect = std.collect -local stream = collect(UpdateTransforms.OnClientEvent) + local function syncTransforms() - for _, id, cf in stream do + for _, id, cf in blink.UpdateTransform.Iter() do local e = ref("server-"..id) local transform = e:get(cts.Transform) if not transform then