So I have this code right here;
db_value.Value = db
repeat wait()
db_value.Value = db_value -1 --> Error line.
print(db)
until db_value.Value == 0
end
It's a simple debounce script that's supposed to update a value every second, but when I click the button firing the remote I get the following error; 8: attempt to perform arithmetic (sub) on userdata and number
How can I fix this and what does it mean in this context because it's not userdata, it's an intvalue.

1 comment
yea