Does each function such as PlayerAdded has its own "core"?

Hello!
I’m wondering if each function (Touched, PlayerAdded,…) has it’s own core like spawn() for example.
Let’s say that there’s a loop in PlayerAdded event. Will this loop work for each player separately and won’t affect another player’s “PlayerAdded Event”?

Thank you!

Hi Wizertex,

You’re describing ROBLOX Events. I think reading this article should answer most of your questions, but in short yes, if you have a piece of code listening for “PlayerAdded” with a loop in then it will run when the first player is added, and when a second player is added a second instance of this code will be running for that player. This is probably something you could test out in studio and I’d love to hear what you find out, let me know!

4 Likes