Signals & connectionsOverviewNew · 0.744
getconnectionfunction
Describe the handler function associated with a connection.
Details#
Reads a connection's Function field. Normally returns a function or nil; optional raw=true returns the available raw field without function-type filtering. Not every connection exposes a callback.
Examples#
Example
local event = Instance.new("BindableEvent")
local own = event.Event:Connect(print)
local connection = getconnection(event.Event, 1)
if connection then print(type(getconnectionfunction(connection))) end
own:Disconnect()
event:Destroy()