Connection is not a valid member of RBXScriptSignal

Hello, I’m doing some messing around with the attribute system (which I have not used until now), and when I created an event for one of the properties it seems to for some reason return the error.
Connection is not a valid member of RBXScriptSignal

script.Parent:GetAttributeChangedSignal("Active"):Connection(function(state)

end)

It should be

script.Parent:GetAttributeChangedSignal("Active"):Connect(function(state)

end)

Your right, my mistake. This should fix the problem.