Connecting two functions at once

How can I run two functions when the same value changes?
Do I have to run them separately like this:

boolValue.Changed:Connect(function1)
boolValue.Changed:Connect(function2)

Or can I connect them together by doing something like this:

boolValue.Changed:Connect(function1, function2)

I prefer to run them together on the same line, but I’m not sure if I can.

1 Like

Yes. Or you could run the other function inside the first function with a coroutine.

1 Like