I’m using a RemoteEvent to send information from a tool to the server, but I want it to disconnect the function if it hits a certain criteria when running through the function.
Can I use disconnect when Connecting it directly?
I.E.
Event.OnServerEvent:Connect(function()
--can i disconnect this?
end)
EDIT: I’m completely aware that you can use :Disconnect() on a normal function when it’s connected via an event, I’m wondering if you can disconnect it with the function being structured like shown above.