Skip to main content
api.utility.connect(signal: RBXScriptSignal, callback: (...any) -> ()): ()
Connect to a Roblox signal (like RunService.Heartbeat). Automatically disconnects when your script unloads, so you don’t have to track the connection.
signal
RBXScriptSignal
required
Signal to subscribe to.
callback
function
required
Receives the signal’s arguments.
api.onUnload · Cleanup