Class
CustomEvent
Deprecated
Deprecated. CustomEvents have been superseded by
BindableEvents and should not be used in new work.
Methods 2#
| GetAttachedReceivers | Returns the CustomEventReceivers that are
connected to the CustomEvent.Deprecated |
| SetValue | Sets 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.
| Name | Type | Default | Description |
|---|---|---|---|
newValue | float |
Returns
()
Events 2#
| ReceiverConnected | Fires when a receiver is connected to the CustomEvent.Deprecated |
| ReceiverDisconnected | Fires 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
| Name | Type | Default | Description |
|---|---|---|---|
receiver | Instance |
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.
| Name | Type | Default | Description |
|---|---|---|---|
receiver | Instance |
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