Basically as the title says.
I tried looking it up with no luck , and it's a hassle to ask on the forum so I thought I'd use this website to ask.
If anyone can answer me with a yes or a no , and if yes then an example , would be much appreciated!
Thanks in advance.

3 comments
What do you mean by connection?
For remote events for example you , it returns a connection and you can use it like so. local connection = remoteEvent.OnServerEvent:Connect(function(player) --[[stuff]] end) , then I could use that connection to disconnect it like so, connection:Disconnect()
I don't think you can. I get this error message: OnServerInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available. So I would say no, it can't be done.