Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to get the connection for remote functions and bindable functions?

Asked by 2 years ago

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.

0
What do you mean by connection? MarkedTomato 810 — 2y
0
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() DreadfulDeveloper 0 — 2y
0
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. MarkedTomato 810 — 2y

Answer this question