Actors
Get Actors
<string> get_actors(<void>)
Returns all the actors in the game, example above will return
0
if there are no actors in the game.
Get Current Actor
<string> get_current_actor(<void>)
Returns the actor instance of the current running thread.
Get Deleted Actors
<string> get_deleted_actors(<void>)
Checks actor threads specifically connected to an expired actor instance.
Note: This function does not return the actor instance directly. Instead, it returns a lightuserdata that can be passed to
run_on_actor
.
Is Parallel
<string> is_parallel(<void>)
Returns if the thread is parallel or not.
Run On Actor
<string> run_on_actor(<ActorState>, <Script>)
Will run the script on an actor state.
local id, channel = create_comm_channel()
channel.Event:Connect(print) -- .Event returns channel, so we are connecting directly to channel
run_on_actor(Instance.new("Actor"), [[
local s = get_comm_channel(...)
s:Fire("hello from actor")
]], id)
Last updated