If I have a module script, NOT inside of a server created model
And in that module script, I have … Model.AttributeChanged:Connect()
If the Model is destroyed, will the Connection be Deleted?
If they model gets destroyed then the function can never be called anyway.
Yes, all connections of an instance are disconnected if that instance is destroyed.
https://developer.roblox.com/en-us/api-reference/function/Instance/Destroy
Sets the
Instance.Parent
property to nil, locks theInstance.Parent
property, disconnects all connections, and calls Destroy on all children.
ok, thanks, just making sure attributes were included in that as well.