Open Asterune
BindableFunction

BindableFunction

Calls a callback in another script on the same execution side.

Creatable
Instance.new("BindableFunction")
Inherits
Instance
Replication
Standard

Behavior

BindableFunction calls a callback in another script on the same execution side.

Summary

Members3
Properties1
  • OnInvoke: ((...any) -> ...any)? = nilparallel read

    The callback called by Invoke.

Methods2

Properties

OnInvoke

BindableFunction.OnInvoke: ((...any) -> ...any)? = nil

The callback called by Invoke. Arguments and return values are passed through on the same execution side.

Methods

GetExecutionGroup

BindableFunction:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Invoke

BindableFunction:Invoke(args: ...any): ...any

Calls OnInvoke and returns its results. This does not send a network request.

Inherited members

Inherited47

Instance