In RBX.lua, an RBXScriptSignal is a data type that defines something as an event. It can be connected to a function that will run when the event is fired.
RBXScriptConnection Connect(function func)
Connects the function to run when the event is fired. The arguments of the function are dependent on the event that is being connected.
RBXScriptConnection connect(function func) [deprecated]
Deprecated. Use Connect.
Yields the script until the event is fired, and returns its parameters.
Tuple wait() [deprecated]
Deprecated. Use Wait.