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?
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?
Disconnect is a function of the connection, so your line should look like this:
connection:Disconnect()