server side:
serverTick.Changed:Connect(function(value)
print(typeof(playerPositions))
replicationEvents.PostPosition:FireAllClients(value, playerPositions)
end)
prints out: SharedTable
client side:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local replicationShared = ReplicatedStorage:WaitForChild("Replication")
local events = replicationShared:WaitForChild("Events")
events.PostPosition.OnClientEvent:Connect(function(serverTick: number, playerPositionData)
print(playerPositionData)
end)
prints out: nil
I don’t know if it’s somewhere else with my code, or there’s a “haha gotcha” moment with shared tables, or I’m misunderstanding something fundamental.
How do I fix this?