Registers a function that runs on the next fire and then disconnects itself. Returns a connection you can still disconnect early if the fire never comes.

Parameters

function
required
The function to run a single time.

Returns

Connection
A connection with a :Disconnect() method.

Example

Errors