- What do you want to achieve? Keep it simple and clear!
I recently found out that any functions passed to the connect method are run in reverse order. Whys that?
- What is the issue? Include screenshots / videos if possible!
There isnt any issue really haha. I am just more curious why theyre run in reverse order and not just in the “right” order from top to bottom?^^ does it have to do something with if a new handler gets connected in the middle of the signal firing process?
Example:
workspace.ChildAdded:Connect(function()
print("First")
end)
workspace.ChildAdded:Connect(function()
print("Second")
end)
workspace.ChildAdded:Connect(function()
print("Third")
end)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Ive done some research here and there but cant really find any post explaining why theyre run in reverse. There probably is a post out there that i could have missed. In that case please link it^^