Roblox UtilitiesDevlHub Roblox Documentation

Class

CustomEvent

Deprecated
Inherits
Instance › Object
Memory category
Instances

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

Methods 2#

GetAttachedReceiversReturns the CustomEventReceivers that are connected to the CustomEvent.Deprecated
SetValueSets the value of the CustomEvent and fires the CustomEventReceiver.SourceValueChanged event for all connected CustomEventReceiver|receivers.Deprecated

GetAttachedReceivers(): Instances#

Deprecated

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

This function returns the CustomEventReceivers that are connected to the CustomEvent.

Returns
  • Instances

SetValue(newValue: float): ()#

Deprecated

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

This function sets the value of the CustomEvent and fires the CustomEventReceiver.SourceValueChanged event for all connected CustomEventReceiver|receivers.

NameTypeDefaultDescription
newValuefloat
Returns
  • ()

Events 2#

ReceiverConnectedFires when a receiver is connected to the CustomEvent.Deprecated
ReceiverDisconnectedFires when a receiver is disconnected from the CustomEvent.Deprecated

ReceiverConnected(receiver: Instance)#

Deprecated

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

This event fires when a receiver is connected to the CustomEvent

NameTypeDefaultDescription
receiverInstance

ReceiverDisconnected(receiver: Instance)#

Deprecated

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

This event fires when a receiver is disconnected from the CustomEvent.

NameTypeDefaultDescription
receiverInstance

Inherited members#

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

ClassName, className

Events (1)

Changed