Parallel APIs
Functions
getactors
table getactors()
Returns a list of "active" Actor instances (any connected to a Lua state).
getactorstates
table getactorstates()
Returns a list of LuaStateProxy objects representing all Lua states created by the engine for use by Actors.
getluastate
LuaStateProxy getluastate(actor_or_script?: Instance)
Returns a LuaStateProxy for the given Actor or loaded script. If not provided, the current LuaStateProxy is returned.
getgamestate
LuaStateProxy getgamestate()
Returns a LuaStateProxy for the default game state.
checkparallel
bool checkparallel()
Returns whether this code is executing in parallel.
syn.run_on_actor
bool syn.run_on_actor(actor: Instance, source: string, ...any)
Schedules code to be executed on an actor's Lua state.
Classes
Events
syn.on_actor_state_created(actor: Instance)
Fired upon actor Lua state creation, before any scripts are ran.