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

while wait() loop on a while wait() loop?

If I have a loop such as:

while wait() do
	while wait() do
		print("hi")
	end
end

Will this loop constantly create while wait() do loops? I can't test at the moment

1 answer

No the first loop will run once and then the second loop will start running so you will only ever have one loop active. If you break the second loop it will create a new second loop.

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