Why is wait() important?

?
You quite literally said that using while true do wait() --Code end would run code before waiting.

More specifically, you originally said “the second block would wait before running code”, the second block in the post you replied to, is this:

And you claimed the other block, (which is while true do wait() -- Code end) would run code first and then wait, which isn’t the case.