From 5cade93cbd0209398dd062ffff68e68fd42a7560 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Fri, 30 Aug 2024 01:20:09 +0200 Subject: [PATCH] Fix remote --- .../StarterPlayerScripts/systems/syncTransforms.luau | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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