Skip to content
Untitled Sandbox - Developer Documentation
docs/types/Connection

Connection

The link between an event and your callback, which you get back from Event:connect and can use to stop listening.

Fields

connectedboolean

Connection:disconnect

method

Stops the function you gave connect from running again, and sets connected to false.

Connection:disconnect() -> ()
example
connection:disconnect()

Use it forturning off a kill brick once the round ends, so touching it is safe again.

↑ ↓ moveEnter openEsc close