Detecting when a table value changes
⭐ Starfall•Updated 2 days ago•0 views
Store the previous value yourself and compare, or use a metatable __newindex/__index wrapper that records deltas - there's no built-in change detection.
How to detect if a value changed (e.g. for a 'changed' table)
Store the previous value yourself and compare, or use a metatable __newindex/__index wrapper that records deltas - there's no built-in change detection.