Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

5 comments

0

mov is not defined

0

if it isn't defined you'll get an error because you subtracting 1 from nil

0

add local mov = 0

0

Yes but this is just an example but I was being curious about why does it let me wait in the real script?

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?

1 answer

literally just do

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

then put your script after it lel

This discussion is preserved as it was. New answers, comments, and votes are closed.