Closed mwalk-dev closed 2 years ago
This bug is caused due to this this.attributes.TestValue =
since Flamework uses this.attributes
to get the previous value, so a workaround is to use this.instance.SetAttribute
or storing the previous attribute value before you change it manually.
I'll likely store previous attributes in a weak table in the Components implementation instead of using this.attributes
When an
onAttributeChanged
callback is registered on the server, the oldValue parameter passed to the callback is always the current attribute value instead.Quick test case that can be dropped into a fresh project as a shared component. The client-side output is what you would expect, but the server-side output is not.