Replicas
Call the package with a unique replica name and a template. Calling it on the server creates shared state and broadcasts its initial snapshot. Calling it on a client fetches the current state from the server.
local weather = replication("weather", {
condition = "clear",
temperature = 20,
})
All server mutations replicate to every connected client unless
shouldReplicate is false. A late joiner always receives the current public
state, including earlier mutations.