Skip to content

Step Replication

This function will step the network batch.

function light.step_replication

Client Server Shared Synchronous
function step_replication(): ()

Some example code:

1
2
3
4
5
6
7
8
9
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local light = require(ReplicatedStorage.light).shared

-- identical to initializing without manual replication
RunService.PostSimulation:Connect(function()
    light.step_replication()
end)