Skip to content

Api > SyncVar > SyncSet()


SyncVar.SyncSet(any Value)⚓︎

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

Parameters:⚓︎

Name Type Description
Value any The 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)