For 4 consecutive days, I've been looking for a solution to stop a script from performing its waiting task after the wait(1) has been ran. I want to stop the script from waiting in the middle whilst waiting.
The only conclusion I've come up with is to do script:Destroy() and then re-clone it but I rather avoid doing that.
Is there any way I can make this work?
while wait(5) do
print("Script is waiting 5 seconds but I want it to break the while loop while it's waiting.")
end
--Outside function or method to break this while loop before wait() re-runs task? ^

6 comments
break happens after the wait task is performed. For loops run instantly and adding a wait(0.1) inside them and setting max to 10 is an inaccurate wait(1). Sorry, didn't answer my question.
I see what you want now, didnt read good. Sorry, I don't know anything that can work like that.
Actually surprisingly recreating a wait(1) using for loops actually worked.
then accept my answer if u can ;)
I'm not sure how to do that. LOL help, sorry.
I can't really accept your answer because well.. Even the solution that I created doesn't 'really' break a wait(). I got the idea to my solution thanks to you but however It doesn't really answer the question.