New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
Log in to vote

Anyone know why scripts don't detect changed values?

Asked by 1 year ago

Surely this should work, but it doesn't seem to fire the function when the value is changed by another script?

function NewValue() while true do wait(.5) plantName = NewValue print("Changed") -- more irrelevant code here end end


[]( sheepposu 526 — 1y
Just a suggestion. We used to have to use values for "inter-script" communication. However, with the introduction of bindable events ( this is no longer necessary. I highly suggest that if you are waiting for another script to do something (doing something to the plant name?) then it might be better to have that script use a bind.event kools 513 — 1y

Answer this question