Is there a way to halt a function/prevent it from running? What I'm asking is something like this:
function a()
print("start")
wait(5)
print("end")
end
-- Do something so it doesn't print "end"
...
-- Also if I do spawn or delay I would run later so...

4 comments
that depends on your use case, I'd use a simple variable, but then again, that might not be what you want/need
All I'm asking is a method so "end" doesn't print.
Use debounces
That would only fire once.