EDITED
Ok so lets say I have a sequence, like so:
local SequenceIsStopped = false
function Sequence()
--Do stuff
wait(1)
--Do stuff
wait(1)
end
And I wanted to stop the sequence mid-way, how would I go by doing so? The only other way that I know of is putting a conditional that breaks the sequence if SequenceIsStopped = true at the end of every single line. Is there a more effective way? Or is that the only way?
Note: This is what I was talking about when I said that the way I know of is using a conditional:
local SequenceIsStopped = false
function Sequence()
if SequenceIsStopped then break end
--Do stuff
if SequenceIsStopped then break end
wait(1)
if SequenceIsStopped then break end
--Do stuff
wait(1)
end
I know it's terribly inefficient

3 comments
That's a good idea, but not exactly what I was looking for. Read the edited version of the question
What were you looking for? The question looks the same.
I'm not trying to get it to print something, like if i wanted it to tween a gui 5 times, but i wanted it to stop mid-way