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
The callback called by Invoke.
Methods2
Returns this instance if it is an ExecutionGroup.
Calls OnInvoke and returns its results.
Properties
OnInvoke
BindableFunction.OnInvoke: ((...any) -> ...any)? = nilThe 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): ...anyCalls OnInvoke and returns its results. This does not send a network request.
Inherited members
Inherited47
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying