I wanna know how to keep the script from continuing until a certain variable is true, how would I do this?
Simply repeat
edly wait()
until
the value is true
.
I love repeat loops, they translate to English so well. What we're basically doing is telling the computer to repeat the wait()
function until the condition is met.
local value = true --Will wait until value equals true repeat wait() until value --Will wait until value equals false repeat wait() until not value