isluaconnection
Returns whether the connection is backed by Luau code.
Syntax
isluaconnection(connection: Connection) -> boolean
Also available as
is_lua_connection
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Connection object to inspect. |
Returns
| Type | Description |
|---|---|
boolean | Current connection Lua status. |
Description
This is the function-call counterpart of reading LuaConnection from a connection returned by getconnections. Native or foreign-state connections may not expose local callback values.
Example
local event = Instance.new("BindableEvent")
event.Event:Connect(function() end)
local connection = getconnections(event.Event)[1]
print(isluaconnection(connection))
event:Destroy()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
