Lua Loops | What are they, and how do I use them?

okay thanks
I was looking at this but someone showed me what task.spawn is, and how it runs alongside the code, so i don’t have to deal with loops.