-
What do you want to achieve?
I am trying to make something that checks if a number value increased -
What is the issue?
I have no idea on how to do that. -
What solutions have you tried so far?
.Changed wont work, since it will fire even if the value decreased.
I have searched far and wide all over the internet, found no solution.
4 Likes
This would just be a matter of storing the old value, and comparing it to the new value.
local old = number_value.Value
number_value.Changed:Connect(function(new)
if old < new then
-- it increased
end
old = new
end)
14 Likes