Fix remote

This commit is contained in:
Ukendio 2024-08-30 01:20:09 +02:00
parent 8bb86760cd
commit 5cade93cbd

View file

@ -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