Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why does repeat until let me wait the code after it?

Asked by 5 years ago
Edited 5 years ago

So I wonder whenever I use repeat until like

repeat
mov = mov - 1
until mov == -10
--i will wait for it

I have to wait for it, why do you have to wait? Does it acts like wait but it repeats? This left me curious today So when I create a charging script and I used it, pressed it I will just wait for it until it just fires

0
mov is not defined DeceptiveCaster 3761 — 5y
0
if it isn't defined you'll get an error because you subtracting 1 from nil DeceptiveCaster 3761 — 5y
0
add local mov = 0 LoganboyInCO 150 — 5y
0
Yes but this is just an example but I was being curious about why does it let me wait in the real script? cherrythetree 130 — 5y
0
for example: local mov = 0, then that repeat and until statement let me wait until until has found that value of mov is -10? cherrythetree 130 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

literally just do

local mov = 0
repeat
mov = mov - 1
until mov == -10

then put your script after it lel

Ad

Answer this question