Is there a way to stop a function almost immediately stop a function even if it is currently running. I have been looking on the wiki but theres nothing.
I know theres a :disconnect() for a debounce, but is there anything for a :disconnect() or something for a function() like maybe..
time=10
function TEST()
for i=time,0,1 do
print(i)
if time==5 then TEST:disconnect() end
end
end
TEST()
