Skip to main content

SyncVar.SyncSet(any Value)

Sets the value of the variable and synchronizes it with other clients.

Parameters:

NameTypeDescription
ValueanyThe value of the synchronized variable. It must be a serializable type otherwise it will send it as a null.

Usage

---@type SyncVar
local syncvar;

---@type any
local Value;


syncvar.SyncSet(Value)