Roblox UtilitiesDevlHub Roblox Documentation

Class

CustomEventReceiver

Deprecated
Inherits
Instance › Object
Memory category
Instances

Deprecated. CustomEvents have been superseded by BindableEvents and should not be used in new work.

Properties 1#

SourceInstanceAttaches 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#

GetCurrentValueReturns 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#

EventConnectedFires when the receiver is attached to a different CustomEvent, when the CustomEventReceiver.Source property is changed.Deprecated
EventDisconnectedFires when the receiver is attached to a different CustomEvent instance when the CustomEventReceiver.Source property is changed.Deprecated
SourceValueChangedFires 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.

NameTypeDefaultDescription
eventInstance

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.

NameTypeDefaultDescription
eventInstance

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.

NameTypeDefaultDescription
newValuefloat

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed