on_actor_state_created
An event delivered when a newly observed Actor state becomes available.
Syntax
on_actor_state_created: RBXScriptSignal
Returns
| Type | Description |
|---|---|
RBXScriptSignal | Event supplying one LuaStateProxy argument. |
Description
This is an event value, not a function to call. Connect a listener to receive later observations. Query getactorstates for contexts that already exist. Disconnect the listener when its consumer is finished; observation events are not a guarantee that the context remains alive forever.
Example
local connection = on_actor_state_created:Connect(function(value)
print(value)
end)
task.delay(10, function() connection:Disconnect() end)
These are Game executor contracts. Check build requirements and session lifetimes before using them.
