#Round System Loop isnt breaking. Help me for a cookie .im new to scripting i got the script from tut
17 messages · Page 1 of 1 (latest)
This is my script i want to break the loop when the round is over becouse 1 or 0 players are left so that the intermission phase starts again.
The break only breaks the innermost loop you called it in
You need to stack the breaks
IsBroken = false
while true do
if IsBroken then break end
if ... then
IsBroken = true
if IsBroken then
break
end
end
end
so i paste this all in the last part of the script before all the ends
i dont really understand this
It was just an example
Just before your while loop, add the following line;
**local IsBroken = false
**
Then, just after the while true do line, add;
if IsBroken then break end
Where you added the break in each if statement before, just change the break to;
IsBroken = true
ok Thank you soo much i will test it now
It didnt work the same thing is still happening. this is the modified script i have rn
@glossy marsh