Problem
Anyone could give my info to why this isn’t working?
I change enabled from true to false manually, since I
just wanted to test it out quickly, but I’m not seeing any prints or errors.
Enabled is a boolvalue and it is a attribute.
Code (Local Script)
script.Switch:GetAttributeChangedSignal("Enabled"):Connect(function()
print("Hello my property has changed")
end)
Question
Is it because it’s in a local script and how would I be able to make it work in a local script?
The user is looking to find when an attribute is changed not a property. Enabled is not even a property of a boolvalue so it is clear it is not a property.
Yeah, but it’s not working. I’m not getting any prints or errors. I do the changes manually by going into properties and checking/unchecking the box for the attribute