People have always made loops sound like a horrible thing to use. The scum on the bottom soap, the gum under the desk. But they are a fundamental part of any Roblox game, right?
I get that it is all about whats inside and how you use them that determines performance impacts, but it seems like everyone looks down upon all loops in general, at least in my experience.
As I have increased my coding knowledge, loops have become the scooby doo villain of the coding world. Not as bad as I first thought.
But I have been stuck for a long time trying to figure out better alternatives for loops only because I thought they weren’t good to use. I was completely stumped on game security and anti exploit.
“You can’t send a remote to trigger a server side check, that doesn’t make any sense. And I can’t just have a loop constantly checking all the time…”
Apparently you can. I didn’t know it was common practice, and I assumed it wasn’t because of this bad rap.