Skip to main content

Signal

A Lua-implementation of RBXScriptSignals, with near-identical behavior.

Functions

Connect

Signal:Connect(Callbackfunction) → Connection

Connects a callback to the Signal, which will be called everytime the Signal is fired.

Show raw api
{
    "functions": [
        {
            "name": "Connect",
            "desc": "Connects a callback to the Signal, which will be called everytime the Signal is fired.",
            "params": [
                {
                    "name": "Callback",
                    "desc": "",
                    "lua_type": "function"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Connection"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 61,
                "path": "lib/init.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Signal",
    "desc": "A Lua-implementation of RBXScriptSignals, with near-identical behavior.",
    "source": {
        "line": 55,
        "path": "lib/init.luau"
    }
}