Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Check when a variable value changes?

1 answer

It isn't possible.

You could always do something similar to this.

local var = false;
local last = var;

var = true;
print(var)

if (var ~= last) then
    print(last);
    last = var;
end

This is an option if you absolutely have to do it. I am sure you can find some other alternative to this. This is just a quick and easy fix to your problem.

I don't understand why this is receiving downvotes though.

This discussion is preserved as it was. New answers, comments, and votes are closed.