ScriptConnection
A class returned by ScriptSignal:Connect()
and ScriptSignal:Once()
.
Public
ScriptConnection.StateEnum
ScriptConnection.StateEnum -- {string: string}
enum.StateEnum
. Includes StateEnum.Paused
, StateEnum.Active
and StateEnum.Dead
.
ScriptConnection:GetIdentifier()
local identifier = ScriptConnection:GetIdentifier() -> string
ScriptConnection:Disconnect()
ScriptConnection:Disconnect()
Private
Note: Private variables, methods and functions should not be used unless you know what you're doing.
ScriptConnection._Connected
ScriptConnection._Connected -- boolean
ScriptConnection._Once
ScriptConnect._Once -- boolean
true
, automatically disconnects the ScriptConnection immediately when being fired the next time.
ScriptConnection._Identifier
ScriptConnection._Identifier -- string
ScriptConnection._State
ScriptConnection._State -- string
Active
, Paused
or Dead
. If the state is Dead
, the ScriptConnection should not be referenced anymore.
ScriptConnection._Signal
ScriptConnection._Signal -- ScriptSignal
ScriptConnection._Function
ScriptConnection._Function -- function
ScriptConnection._Fire(...)
ScriptConnection._Fire(...)
The main enum is intended to be completely private. You are not meant to access it.