How can I update my variables when their value changes?
I’ve set up an attribute system for a rpg I want to make. I have several local scripts and a server script both calling upon a module script to retrieve the value of whatever attribute that script needs. My server script is the one increasing and decreasing the value of the attributes. I run into issues when functions within the module script, specifically the ones updating the GUIs for my different resource bars, try to update when one of the bar’s maximum resources (e.g. maximum stamina) is lowered. The code doesn’t seem to have any problems when something like maximum stamina is increased however.