#Stopping a countdown when condition is set to false
31 messages · Page 1 of 1 (latest)
If boolean == condition then return end
?
He already has a while ready == true do end
I don't understand what the dude wants well tbh
Right.
Also, please use task.wait(). I am not a wait() hater but people say it's better that way, so just use it.
And never space your code blocks so much ever again, it's disgusting.
Whatever the dude finds comfortable tbh
Imagine having a 100 lines script and spacing everything out like that.
Goes from 100 to 1000 really fast.
I've seen that on some free model guns lmao
Worst part that I was learning scripting from free models at that time lmao
I just spaced it out like that because I deleted some of the lines between
Also to 2), that's part of the issue I want to stop the timer and set ready = false, but I don't know where/ how, because the timer just keeps running
The timer is the while ready do right?
yes!
You use for I loops for stuff like that man
What's the intermission duration?
For I = 1,Duration,1 do
Task.Wait(1)
end
It'll end when the duration end
I did previously and someone told me to use while, so I changed it.
I had it like this before
variables dont update over the boundary
I don't see an issue with for I )loops tbh.
if u set ready to false in client
it wouldnt do shit in server
make another event for it
or handle it some other non shitty way
If u want to stop it then do if not ready then break/return end
if not ready then break/return end
oh okay !! I see I'll try that thank you !!