Class
CustomEventReceiver
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
Properties 1#
SourceInstance | Attaches the CustomEventReceiver object to a CustomEvent.ReadSafeDeprecated |
Source: Instance#
ReadSafeDeprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
This property attaches the CustomEventReceiver object to a
CustomEvent.
Methods 1#
| GetCurrentValue | Returns the current value of the receiver's
CustomEventReceiver.Source property.Deprecated |
GetCurrentValue(): float#
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
This function returns the current value of the receiver's
CustomEventReceiver.Source property.
Returns
float
Events 3#
| EventConnected | Fires when the receiver is attached to a different CustomEvent,
when the CustomEventReceiver.Source property is changed.Deprecated |
| EventDisconnected | Fires when the receiver is attached to a different CustomEvent
instance when the CustomEventReceiver.Source property is changed.Deprecated |
| SourceValueChanged | Fires when the value of the CustomEvent's source is changed, passing the CustomEvent's new value.Deprecated |
EventConnected(event: Instance)#
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
This event fires when the receiver is attached to a different
CustomEvent, when the CustomEventReceiver.Source property
is changed.
| Name | Type | Default | Description |
|---|---|---|---|
event | Instance |
EventDisconnected(event: Instance)#
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
This event fires when the receiver is attached to a different
CustomEvent, when the CustomEventReceiver.Source property
is changed.
| Name | Type | Default | Description |
|---|---|---|---|
event | Instance |
SourceValueChanged(newValue: float)#
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
Fires when the value of the CustomEvent's source is changed, passing the CustomEvent's new value.
| Name | Type | Default | Description |
|---|---|---|---|
newValue | float |
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild