does this break both or just the for loop

local deb = false
while true do
wait()
for i = 1, 50 do
wait()
if deb = true then
	break
	end
end
deb = true
end

2 comments

0

The break syntax would simply break the loop that it is inside of. If you had a while loop and a for loop and put break in that for loop, it would stop the for loop

0

thanks :)