Signal
A small signal with the same surface as RBXScriptSignal, written in plain Luau so the core
runs outside Roblox. Every Types.Signal the package exposes is one of these; you can make your
own for a Hearing noise source with VluxyAI.Signal.new().
Functions
new
Creates a signal.
Connect
Runs handler on every fire until disconnected.
Once
Runs handler on the next fire only.
Wait
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. YieldsSignal.Wait(self: self) → T...
Yields the calling thread until the next fire and returns what was fired. If the signal is
destroyed while waiting, returns nothing, so a state that waited on Arrived wakes up when
its agent is destroyed and can check agent:IsDestroyed().
Fire
Signal.Fire(self: self,...: T...) → ()Fires every connected handler with the arguments, each in its own thread. Handlers connected or disconnected during a fire take effect on the next one.
DisconnectAll
Signal.DisconnectAll(self: self) → ()Drops every handler. The signal stays usable.
Destroy
Signal.Destroy(self: self) → ()Drops every handler and refuses new connections. Fires after this do nothing.