Disconnect is not a valid member of RBXScriptSignal

local connection = screen.MoveSelected.Event:Connect(SetMove)
screen.MoveSelected.Event:Disconnect(connection)

SetMove is a function previously defined, am I supposed to disconnect the function itself?

1 Like

Disconnect is a function of the connection, so your line should look like this:

connection:Disconnect()
3 Likes