Yuari
Documentation

Wait

Yields until the signal fires and returns the fired arguments.

Syntax

:Wait() -> any

Parameters

This function takes no parameters.

Returns

TypeDescription
anyThe fired arguments

Description

Wait is part of the Signals library. Signals in the VM share the RBXScriptSignal API and are pumped from the external tick loop.

The calling thread yields as needed and resumes on the module scheduler when the operation completes.

Example

local child = workspace.ChildAdded:Wait()
print(child.Name)

Notes

  • Signals share the RBXScriptSignal API across the VM.