Passing an RBXScriptSignal for an argument?

Hi, I’m making a module that has a metamethod that detects when a button is pressed. The argument is supposed to be an RBXScriptSignal. It looks like this:

function button:ConnectTo(signal: RBXScriptSignal)

Thing is, I don’t know how I would call that function. Can anyone help me? Thanks!


To call that function you would just simply need to do the following:


And also another thing to note while using ‘:’ it’ll automatically pass the ‘self’ argument.