ROBLOX events connect to functions that seem to run on a separate thread. I know everything takes turns running, but this seems a lot like how ROBLOX's scheduler works. For example, if I were to create an event:
player.Chatted:connect(function()
while wait(1) do
print("Individual task")
end
end)
Every time the player chats, it's not yielding in the thread it was created in. Coroutines work the same way, are these two things related at all?

1 comment
No, I don't think so. Coroutines make a new thread, so do events, except you have more customization with coroutines.