Actors
Actor discovery, execution, and communication channels.
10 functions
What the icons meanCommChannel:ConnectSynchronousSubscribe a function to a communication channel’s event. Use the returned connection to stop receiving messages when your task is finished.
CommChannel:FireAsynchronousSend an event through a communication channel to its connected listeners. It is handy for one-way notifications between scripts or states.
create_comm_channelSynchronousCreate a communication channel and keep its numeric ID for code running in another state. The returned receiver also lets this script subscribe to or fire the same channel.
get_comm_channelSynchronousLook up a channel created with create_comm_channel by its numeric ID. Use this to share a simple event between pieces of code that do not share ordinary Luau tables.
get_current_actorSynchronousFind the Actor associated with the current executing thread. Use it inside Actor code to identify its owner without passing the Instance separately.
getactorfromthreadSynchronousResolve the Actor associated with a thread proxy or LuaStateProxy. Use it when state enumeration gave you a proxy and you need the owning Instance.
getactorsSynchronousList live Actor Instances whose Luau states Kawaii can currently see. This is a starting point for choosing an active Actor before calling run_on_actor.
getactorthreadsSynchronousGet thread proxies associated with active Actor states. Pass one of these proxies to run_on_thread when you need to run source in its represented state.
getdeletedactorsSynchronousList live thread references whose associated Actor owner has been deleted. This is a diagnostic view of leftover Actor execution state, useful when checking whether old threads are still retained.
run_on_actorAsynchronousCompile and start source in the active state belonging to an Actor. This is useful when a small piece of work must run where that Actor lives.